Compare commits

..
59 Commits
Author SHA1 Message Date
kitoy 613361c262 rework theme creative 2026-08-04 05:19:03 +02:00
kitoy 91281da2a2 Add config.py.example for configuration 2026-08-04 05:13:32 +02:00
kitoy 8ad3ca21bb remove cache files 2026-08-03 02:44:06 +02:00
kitoy d6cba094c8 Add pycache to gitingore 2026-08-03 02:37:16 +02:00
kitoy 1c8424bf8b Rename project 2026-08-03 02:23:47 +02:00
kitoy 61adba05a5 add quill style for theme switch 2026-08-03 01:56:11 +02:00
kitoy df11e6437f Refactoring of list blocs 2026-08-03 01:13:16 +02:00
kitoy fbe915021a Add footer in page 2026-08-03 01:12:36 +02:00
kitoy e03977f1b4 Correct minimim size of image to 30px 2026-07-24 01:56:03 +02:00
kitoy 5de1df4112 Add assets 2026-07-23 04:33:51 +02:00
kitoy 00914e3f48 correction for admin tools 2026-07-23 04:33:33 +02:00
kitoy 8fffd3cecb Correction for edit tools 2026-07-23 04:33:21 +02:00
kitoy e4f0ad7d02 Add image default image for creative theme 2026-07-23 04:33:02 +02:00
kitoy a588aadfd8 implement index.tpl and and edit.tpl 2026-07-23 04:28:57 +02:00
kitoy 5d25c38f11 correct forms 2026-07-23 04:28:30 +02:00
kitoy b6dd8b7caf Implements functions in backend 2026-07-23 04:28:15 +02:00
kitoy 395f938576 Deplace list blocs and list page functions 2026-07-23 04:27:55 +02:00
kitoy 8eec3a80b5 exclued users directory 2026-07-23 04:27:11 +02:00
kitoy 2841c69953 Add function for create website 2026-07-23 04:26:04 +02:00
kitoy 64552bc928 Add image default for creative theme 2026-07-23 04:25:33 +02:00
kitoy 0b4f57deeb Modify style for mapageperso 2026-07-23 04:25:13 +02:00
kitoy e74159f1ec Modify css for toolbar 2026-07-23 04:24:58 +02:00
kitoy b97692701e delete image default 2026-07-23 04:24:20 +02:00
kitoy b1579ff231 create theme chocolate 2026-07-23 04:24:02 +02:00
kitoy 9a5fde2bb8 Correct blocs for creative theme 2026-07-23 04:23:07 +02:00
kitoy 42d8dfb70a Add ident-default for theme creative 2026-07-23 04:22:09 +02:00
kitoy 9f74eee079 Correction for multiple page editions 2026-06-06 01:03:25 +02:00
kitoy 49109c5ac9 Correct error edit 2026-06-05 16:29:55 +02:00
kitoy 43c5bb7240 Functions for publish website by ftp or sftp 2026-06-04 20:33:16 +02:00
kitoy ec1e127234 delete files 2026-06-04 15:06:27 +02:00
kitoy d45c1be1e4 update time refresh gallery 2026-06-04 15:05:55 +02:00
kitoy 85037121bf Add test login to sftp/ftp repository 2026-06-03 12:24:24 +02:00
kitoy da9cfc862c Correct method call name 2026-06-03 12:23:47 +02:00
kitoy 2139824af7 Replace parameters code 2026-05-22 02:26:15 +02:00
kitoy 95a6e1a1df Remove inutiles files 2026-05-22 01:31:03 +02:00
kitoy ff1f923672 Correct link of stylesheet 2026-05-22 01:28:17 +02:00
kitoy 7cdb75efbe reactive function upload 2026-05-22 01:22:04 +02:00
kitoy 94bb2ad40a Clean HTML for admin site 2026-05-22 01:21:39 +02:00
kitoy 419d97cedc delete export from source code 2026-05-21 23:11:57 +02:00
kitoy c57c92c2a7 Add method copy_static_files 2026-05-21 23:09:26 +02:00
kitoy 0e85830b6e Add function copy_static_files and clean directory 2026-05-21 23:08:59 +02:00
kitoy d484f232e0 Deplace static files for themes 2026-05-21 22:28:49 +02:00
kitoy 71ec2f99e1 replace name of methods and funtions 2026-05-21 22:27:23 +02:00
kitoy 7dfab077ed Deplace new menu item in main page
Trop de modal tu les modal
2026-05-21 13:04:29 +02:00
kitoy cdd15b9d86 Function to upload site in ftp or sftp 2026-05-21 13:02:20 +02:00
kitoy 4192e10f34 Big commit i'm sorry ... 2026-05-09 01:53:54 +02:00
kitoy 4a56042b25 update sites.py for a folder per user 2026-03-28 12:47:30 +01:00
kitoy 7456f61c32 Add fontes for themes 2026-03-28 12:46:58 +01:00
kitoy 9db6df4f22 add main 2026-03-28 12:46:03 +01:00
kitoy 7f3b9a1ace Add some library for themes 2026-03-28 12:24:36 +01:00
kitoy 710390008d add css for toolbar edit 2026-03-28 12:22:19 +01:00
kitoy f5a0716085 simplify edit blocs form 2026-03-28 12:21:10 +01:00
kitoy cdf1d439f5 Rewrite edit blocs and themes 2026-03-28 12:20:30 +01:00
kitoy 48c5c31818 add somes files to gitignore 2026-03-28 12:16:34 +01:00
kitoy cd0f969e2a Add images to gallery 2026-02-07 06:28:55 +01:00
kitoy 5d32ab00f7 Add submenu 2026-02-07 06:27:33 +01:00
kitoy 27793b65fe ADd menu edition 2026-02-06 13:11:37 +01:00
kitoy e8a42abec9 add Menu edit 2026-02-06 13:11:20 +01:00
kitoy 7f27463f5a Start repo 2026-02-03 01:24:56 +01:00
4 changed files with 20 additions and 27 deletions
-11
View File
@@ -1,11 +0,0 @@
Copyright (c) 2026 kitoy.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -15,15 +15,15 @@
"Contact": "#contact" "Contact": "#contact"
}, },
"publish": { "publish": {
"Address": "sftp://kitoy.me", "Address": "",
"Port": "56565", "Port": "22",
"username": "preview", "username": "",
"folder": "/preview" "folder": ""
}, },
"blocs": { "blocs": {
"bloc0": { "bloc0": {
"name": "bloc0", "name": "bloc0",
"type": "presentation", "type": "_presentation",
"title": "Mon Petit site pas \u00e0 Moi", "title": "Mon Petit site pas \u00e0 Moi",
"text": " ", "text": " ",
"text_button": "En savoir plus", "text_button": "En savoir plus",
@@ -35,7 +35,7 @@
}, },
"Lien": { "Lien": {
"name": "Lien", "name": "Lien",
"type": "external_link", "type": "_external_link",
"property": "", "property": "",
"bg_color": "#000000", "bg_color": "#000000",
"fg_color": "#000000", "fg_color": "#000000",
@@ -46,7 +46,7 @@
}, },
"galerie": { "galerie": {
"name": "galerie", "name": "galerie",
"type": "gallery", "type": "_gallery",
"coquelicot.jpg": { "coquelicot.jpg": {
"title": "Coquelicot", "title": "Coquelicot",
"subtitle": "Un coquelicot", "subtitle": "Un coquelicot",
@@ -71,7 +71,7 @@
}, },
"Texte1": { "Texte1": {
"name": "Texte1", "name": "Texte1",
"type": "text", "type": "_text",
"property": "", "property": "",
"bg_color": "#000000", "bg_color": "#000000",
"fg_color": "#000000", "fg_color": "#000000",
@@ -79,7 +79,7 @@
}, },
"contact": { "contact": {
"name": "contact", "name": "contact",
"type": "contact", "type": "_contact",
"property": "", "property": "",
"bg_color": "#000000", "bg_color": "#000000",
"fg_color": "#000000", "fg_color": "#000000",
+1 -7
View File
@@ -13,9 +13,8 @@ def login_required(f):
def init_app(config): def init_app(config):
if 'USERS_FOLDER' in config.keys() and 'PUBLIC_FOLDER' in config.keys(): if 'USERS_FOLDER' in config.keys():
users_folder = config['USERS_FOLDER'] users_folder = config['USERS_FOLDER']
public_folder = config['PUBLIC_FOLDER']
else: else:
print ("L'application n'est pas configuré correctement, veuillez renseigner les paramètres USERS_FOLDER et/ou PUBLIC_FOLDER ne sont pas configuré") print ("L'application n'est pas configuré correctement, veuillez renseigner les paramètres USERS_FOLDER et/ou PUBLIC_FOLDER ne sont pas configuré")
return False return False
@@ -26,11 +25,6 @@ def init_app(config):
os.makedirs(users_folder) os.makedirs(users_folder)
print("Le dossier {} a été créé".format(users_folder)) print("Le dossier {} a été créé".format(users_folder))
if os.path.isdir(public_folder):
print("Le dossier {} existe".format(public_folder))
else:
os.makedirs(public_folder)
print("Le dossier {} a été créé".format(public_folder))
return True return True
+10
View File
@@ -0,0 +1,10 @@
HOST="127.0.0.1"
PORT="7000"
SECRET_KEY = "CHANGE-ME"
STATIC_PATH = './app/static/'
#Dossier privé des utilisateurs
# Spécifier le chemin complet exemple: /opt/monsiteperso/users
USERS_FOLDER = "/PATH/USERS/FOLDERS"