exclued users directory
1
.gitignore
vendored
@@ -4,3 +4,4 @@ __pycache__
|
||||
*~
|
||||
app/config.py
|
||||
users/
|
||||
users/testouni
|
||||
|
||||
@@ -4,7 +4,6 @@ from werkzeug.utils import secure_filename
|
||||
from app.forms import *
|
||||
from PIL import Image
|
||||
from os import remove, path
|
||||
from pathlib import Path, PurePath, PurePosixPath
|
||||
|
||||
|
||||
|
||||
@@ -28,13 +27,4 @@ class MyBlocs:
|
||||
def new_img_form():
|
||||
return ImageUpload()
|
||||
|
||||
def list_type_blocs(theme):
|
||||
typeBlocs = list()
|
||||
folders = Path(PurePosixPath('./app').joinpath('templates', theme, 'blocs'))
|
||||
for folder in folders.iterdir():
|
||||
if not(folder.is_dir()):
|
||||
typeBloc=folder.name.split('.')[0]
|
||||
typeBlocs.append(typeBloc[1:])
|
||||
|
||||
return typeBlocs
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"blocs": {
|
||||
"test_bloc": {
|
||||
"name": "test_bloc",
|
||||
"type": "text",
|
||||
"title": "Salut c'est moi et ... voila quoi !!!!",
|
||||
"text": "<h2 class=\"ql-align-center\">Mon\u00a0titre\u00a0</h2><pre data-language=\"bash\">\n#!/bin/bash\necho \"Putain con ! C'est g\u00e9nial !\"\n</pre><p></p><h2>Titre\u00a02</h2><h3>Titre\u00a03</h3><h4>Titre\u00a04\u00a0</h4><p></p><p class=\"ql-align-right\"><span style=\"background-color: rgb(255, 153, 0);\">Youpi\u00a0!!!!!!!!!!!!!!!</span></p><p class=\"ql-align-center\"></p><blockquote>Une\u00a0citation</blockquote><p></p><p></p><p>Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0</p><p></p><p></p>",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
"text_button": null,
|
||||
"link": null,
|
||||
"email": null,
|
||||
"address": null,
|
||||
"phone": null,
|
||||
"postal_code": null,
|
||||
"city": null,
|
||||
"property": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 963 KiB |
|
Before Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 438 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 509 KiB |
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"blocs": {
|
||||
"test_bloc": {
|
||||
"name": "test_bloc",
|
||||
"type": "text",
|
||||
"title": "Salut c'est moi et ... voila quoi !!!!",
|
||||
"text": "<h2 class=\"ql-align-center\">Votre\u00a0titre\u00a0</h2><pre data-language=\"bash\">\n#!/bin/bash\necho \"Un exemple de code\"\n</pre><p></p><h2>Titre\u00a02</h2><h3>Titre\u00a03</h3><h4>Titre\u00a04\u00a0</h4><p></p><p class=\"ql-align-right\"><span style=\"background-color: rgb(255, 153, 0);\">Youpi\u00a0!!!!!!!!!!!!!!!</span></p><p class=\"ql-align-center\"></p><blockquote>Une\u00a0citation\u00a0de\u00a0connard</blockquote><p></p><p></p><p>Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0</p><p></p><p></p>",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
"text_button": null,
|
||||
"link": null,
|
||||
"email": null,
|
||||
"address": null,
|
||||
"phone": null,
|
||||
"postal_code": null,
|
||||
"city": null,
|
||||
"property": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"blocs": {
|
||||
"test_bloc": {
|
||||
"name": "test_bloc",
|
||||
"type": "text",
|
||||
"title": "Salut c'est moi et ... voila quoi !!!!",
|
||||
"text": "<h2 class=\"ql-align-center\">Votre\u00a0titre\u00a0</h2><pre data-language=\"bash\">\n#!/bin/bash\necho \"Un exemple de code\"\n</pre><p></p><h2>Titre\u00a02</h2><h3>Titre\u00a03</h3><h4>Titre\u00a04\u00a0</h4><p></p><p class=\"ql-align-right\"><span style=\"background-color: rgb(255, 153, 0);\">Youpi\u00a0!!!!!!!!!!!!!!!</span></p><p class=\"ql-align-center\"></p><blockquote>Une\u00a0citation</blockquote><p></p><p></p><p>Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0</p><p></p><p></p>",
|
||||
"bg_color": "#000000",
|
||||
"fg_color": "#000000",
|
||||
"text_button": null,
|
||||
"link": null,
|
||||
"email": null,
|
||||
"address": null,
|
||||
"phone": null,
|
||||
"postal_code": null,
|
||||
"city": null,
|
||||
"property": ""
|
||||
}
|
||||
}
|
||||
}
|
||||