Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05607e8fca | ||
|
|
5e12c76029 | ||
|
|
613361c262 | ||
|
|
91281da2a2 | ||
|
|
8ad3ca21bb | ||
|
|
d6cba094c8 | ||
|
|
1c8424bf8b | ||
|
|
61adba05a5 | ||
|
|
df11e6437f | ||
|
|
fbe915021a | ||
|
|
e03977f1b4 | ||
|
|
5de1df4112 | ||
|
|
00914e3f48 | ||
|
|
8fffd3cecb | ||
|
|
e4f0ad7d02 | ||
|
|
a588aadfd8 | ||
|
|
5d25c38f11 | ||
|
|
b6dd8b7caf | ||
|
|
395f938576 | ||
|
|
8eec3a80b5 | ||
|
|
2841c69953 | ||
|
|
64552bc928 | ||
|
|
0b4f57deeb | ||
|
|
e74159f1ec | ||
|
|
b97692701e | ||
|
|
b1579ff231 | ||
|
|
9a5fde2bb8 | ||
|
|
42d8dfb70a | ||
|
|
9f74eee079 | ||
|
|
49109c5ac9 | ||
|
|
43c5bb7240 | ||
|
|
ec1e127234 | ||
|
|
d45c1be1e4 | ||
|
|
85037121bf | ||
|
|
da9cfc862c | ||
|
|
2139824af7 | ||
|
|
95a6e1a1df | ||
|
|
ff1f923672 | ||
|
|
7cdb75efbe | ||
|
|
94bb2ad40a | ||
|
|
419d97cedc | ||
|
|
c57c92c2a7 | ||
|
|
0e85830b6e | ||
|
|
d484f232e0 | ||
|
|
71ec2f99e1 | ||
|
|
7dfab077ed | ||
|
|
cdd15b9d86 | ||
|
|
4192e10f34 | ||
|
|
4a56042b25 | ||
|
|
7456f61c32 | ||
|
|
9db6df4f22 | ||
|
|
7f3b9a1ace | ||
|
|
710390008d | ||
|
|
f5a0716085 | ||
|
|
cdf1d439f5 | ||
|
|
48c5c31818 | ||
|
|
cd0f969e2a | ||
|
|
5d32ab00f7 | ||
|
|
27793b65fe | ||
|
|
e8a42abec9 | ||
|
|
7f27463f5a |
@@ -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.
|
||||
|
Before Width: | Height: | Size: 274 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 963 KiB After Width: | Height: | Size: 963 KiB |
|
Before Width: | Height: | Size: 438 KiB After Width: | Height: | Size: 438 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
@@ -15,15 +15,15 @@
|
||||
"Contact": "#contact"
|
||||
},
|
||||
"publish": {
|
||||
"Address": "sftp://kitoy.me",
|
||||
"Port": "56565",
|
||||
"username": "preview",
|
||||
"folder": "/preview"
|
||||
"Address": "",
|
||||
"Port": "22",
|
||||
"username": "",
|
||||
"folder": ""
|
||||
},
|
||||
"blocs": {
|
||||
"bloc0": {
|
||||
"name": "bloc0",
|
||||
"type": "presentation",
|
||||
"type": "_presentation",
|
||||
"title": "Mon Petit site pas \u00e0 Moi",
|
||||
"text": " ",
|
||||
"text_button": "En savoir plus",
|
||||
@@ -35,7 +35,7 @@
|
||||
},
|
||||
"Lien": {
|
||||
"name": "Lien",
|
||||
"type": "external_link",
|
||||
"type": "_external_link",
|
||||
"property": "",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
"galerie": {
|
||||
"name": "galerie",
|
||||
"type": "gallery",
|
||||
"type": "_gallery",
|
||||
"coquelicot.jpg": {
|
||||
"title": "Coquelicot",
|
||||
"subtitle": "Un coquelicot",
|
||||
@@ -71,7 +71,7 @@
|
||||
},
|
||||
"Texte1": {
|
||||
"name": "Texte1",
|
||||
"type": "text",
|
||||
"type": "_text",
|
||||
"property": "",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
@@ -79,7 +79,7 @@
|
||||
},
|
||||
"contact": {
|
||||
"name": "contact",
|
||||
"type": "contact",
|
||||
"type": "_contact",
|
||||
"property": "",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
|
||||
@@ -13,9 +13,8 @@ def login_required(f):
|
||||
|
||||
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']
|
||||
public_folder = config['PUBLIC_FOLDER']
|
||||
else:
|
||||
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
|
||||
@@ -26,11 +25,6 @@ def init_app(config):
|
||||
os.makedirs(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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||