Compare commits

..
60 Commits
Author SHA1 Message Date
kitoy c634e6e471 remove cache files 2026-08-03 02:48:14 +02:00
kitoy ba579db109 remove cache files 2026-08-03 02:44:53 +02:00
kitoy 944844805f Add pycache to gitingore 2026-08-03 02:42:10 +02:00
kitoy 31d76526ff Rename project 2026-08-03 02:33:58 +02:00
kitoy f261e62b6f add quill style for theme switch 2026-08-03 02:33:58 +02:00
kitoy b7e27d65a6 Refactoring of list blocs 2026-08-03 02:33:58 +02:00
kitoy ce3bc609ed Add footer in page 2026-08-03 02:33:58 +02:00
kitoy 99d49aee9e Correct minimim size of image to 30px 2026-08-03 02:33:58 +02:00
kitoy 8db027333b Add assets 2026-08-03 02:33:58 +02:00
kitoy 545d15b7f6 correction for admin tools 2026-08-03 02:33:58 +02:00
kitoy 2da8aad1a9 Correction for edit tools 2026-08-03 02:33:58 +02:00
kitoy fb9388a0de Add image default image for creative theme 2026-08-03 02:33:58 +02:00
kitoy 63aee39708 implement index.tpl and and edit.tpl 2026-08-03 02:33:58 +02:00
kitoy 4f306c0dee correct forms 2026-08-03 02:33:58 +02:00
kitoy 5065b3d7d4 Implements functions in backend 2026-08-03 02:33:58 +02:00
kitoy ade56c6bb6 Deplace list blocs and list page functions 2026-08-03 02:33:58 +02:00
kitoy c3438afc01 exclued users directory 2026-08-03 02:33:58 +02:00
kitoy 772941eb4f Add function for create website 2026-08-03 02:33:58 +02:00
kitoy b473d7f170 Add image default for creative theme 2026-08-03 02:33:58 +02:00
kitoy e4aa5cb707 Modify style for mapageperso 2026-08-03 02:33:58 +02:00
kitoy 3046f4ca2c Modify css for toolbar 2026-08-03 02:33:58 +02:00
kitoy 35b078a463 delete image default 2026-08-03 02:33:58 +02:00
kitoy 0a9baaafb1 create theme chocolate 2026-08-03 02:33:58 +02:00
kitoy cf3f6a33ae Correct blocs for creative theme 2026-08-03 02:33:58 +02:00
kitoy 9c2a8d4e38 Add ident-default for theme creative 2026-08-03 02:33:58 +02:00
kitoy e2df81a282 Correction for multiple page editions 2026-08-03 02:33:58 +02:00
kitoy ca077ebc19 Correct error edit 2026-08-03 02:33:58 +02:00
kitoy c073b3aaf9 Functions for publish website by ftp or sftp 2026-08-03 02:33:58 +02:00
kitoy 576b382e53 delete files 2026-08-03 02:33:58 +02:00
kitoy 5667b923e0 update time refresh gallery 2026-08-03 02:33:58 +02:00
kitoy 854f3bd4a2 Add test login to sftp/ftp repository 2026-08-03 02:33:58 +02:00
kitoy 25d6541894 Correct method call name 2026-08-03 02:33:58 +02:00
kitoy e0323af817 Replace parameters code 2026-08-03 02:33:58 +02:00
kitoy f7925e6cce Remove inutiles files 2026-08-03 02:33:58 +02:00
kitoy 425230f52f Correct link of stylesheet 2026-08-03 02:33:58 +02:00
kitoy c2df86bcc7 reactive function upload 2026-08-03 02:33:58 +02:00
kitoy 7ee91198ef Clean HTML for admin site 2026-08-03 02:33:58 +02:00
kitoy 852d680b15 delete export from source code 2026-08-03 02:33:58 +02:00
kitoy 690db8ae6e Add method copy_static_files 2026-08-03 02:33:58 +02:00
kitoy 824fcc9639 Add function copy_static_files and clean directory 2026-08-03 02:33:58 +02:00
kitoy bae713ed61 Deplace static files for themes 2026-08-03 02:33:58 +02:00
kitoy bf43a417c8 replace name of methods and funtions 2026-08-03 02:33:58 +02:00
kitoy 7709f6127b Deplace new menu item in main page
Trop de modal tu les modal
2026-08-03 02:33:58 +02:00
kitoy 5c17b65820 Function to upload site in ftp or sftp 2026-08-03 02:33:58 +02:00
kitoy 50829e9f60 Big commit i'm sorry ... 2026-08-03 02:33:58 +02:00
kitoy ced34339f9 update sites.py for a folder per user 2026-08-03 02:33:58 +02:00
kitoy 6b2be261f8 Add fontes for themes 2026-08-03 02:33:58 +02:00
kitoy eebdba61db add main 2026-08-03 02:33:58 +02:00
kitoy 8fed8b1092 Add some library for themes 2026-08-03 02:33:58 +02:00
kitoy f97aa4bfeb add css for toolbar edit 2026-08-03 02:33:58 +02:00
kitoy 64dc67d082 simplify edit blocs form 2026-08-03 02:33:58 +02:00
kitoy 3a5edc30bb Rewrite edit blocs and themes 2026-08-03 02:33:58 +02:00
kitoy 9497c64b09 add somes files to gitignore 2026-08-03 02:33:58 +02:00
kitoy a2eab5e0ef Add images to gallery 2026-08-03 02:33:58 +02:00
kitoy 38f4edfca1 Add submenu 2026-08-03 02:33:58 +02:00
kitoy 5db7bc75f5 ADd menu edition 2026-08-03 02:33:58 +02:00
kitoy f69e29b286 add Menu edit 2026-08-03 02:33:58 +02:00
kitoy c2aaa0ed4a Start repo 2026-08-03 02:33:58 +02:00
kitoy e176b7212f Supprimer README.md 2026-08-03 02:33:37 +02:00
kitoy 976afc4517 Initial commit 2026-08-03 02:00:12 +02:00
4 changed files with 27 additions and 20 deletions
+11
View File
@@ -0,0 +1,11 @@
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": "", "Address": "sftp://kitoy.me",
"Port": "22", "Port": "56565",
"username": "", "username": "preview",
"folder": "" "folder": "/preview"
}, },
"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",
+7 -1
View File
@@ -13,8 +13,9 @@ def login_required(f):
def init_app(config): def init_app(config):
if 'USERS_FOLDER' in config.keys(): if 'USERS_FOLDER' in config.keys() and 'PUBLIC_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
@@ -25,6 +26,11 @@ 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
@@ -1,10 +0,0 @@
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"