diff --git a/.gitignore b/.gitignore index 5f3b04f..24b4509 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__ *~ app/config.py users/ +users/testouni diff --git a/app/models/blocs.py b/app/models/blocs.py index b6afc67..2ee306d 100644 --- a/app/models/blocs.py +++ b/app/models/blocs.py @@ -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 diff --git a/users/testouni/page_de_secours/page.json b/users/testouni/page_de_secours/page.json deleted file mode 100644 index 59a6d6e..0000000 --- a/users/testouni/page_de_secours/page.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "blocs": { - "test_bloc": { - "name": "test_bloc", - "type": "text", - "title": "Salut c'est moi et ... voila quoi !!!!", - "text": "
\n#!/bin/bash\necho \"Putain con ! C'est g\u00e9nial !\"\n
Youpi\u00a0!!!!!!!!!!!!!!!
Une\u00a0citation
Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0
", - "bg_color": "#000000", - "fg_color": "#000000", - "text_button": null, - "link": null, - "email": null, - "address": null, - "phone": null, - "postal_code": null, - "city": null, - "property": "" - } - } -} \ No newline at end of file diff --git a/users/testouni/public/img/fullsize/1.jpg b/users/testouni/public/img/fullsize/1.jpg deleted file mode 100644 index 44692cc..0000000 Binary files a/users/testouni/public/img/fullsize/1.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/2.jpg b/users/testouni/public/img/fullsize/2.jpg deleted file mode 100644 index 0df8fde..0000000 Binary files a/users/testouni/public/img/fullsize/2.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/3.jpg b/users/testouni/public/img/fullsize/3.jpg deleted file mode 100644 index 3b08627..0000000 Binary files a/users/testouni/public/img/fullsize/3.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/4.jpg b/users/testouni/public/img/fullsize/4.jpg deleted file mode 100644 index 82243f2..0000000 Binary files a/users/testouni/public/img/fullsize/4.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/5.jpg b/users/testouni/public/img/fullsize/5.jpg deleted file mode 100644 index cd87077..0000000 Binary files a/users/testouni/public/img/fullsize/5.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/6.jpg b/users/testouni/public/img/fullsize/6.jpg deleted file mode 100644 index 9be6c5e..0000000 Binary files a/users/testouni/public/img/fullsize/6.jpg and /dev/null differ diff --git a/users/testouni/public/img/fullsize/black.png b/users/testouni/public/img/fullsize/black.png deleted file mode 100644 index 5ce5902..0000000 Binary files a/users/testouni/public/img/fullsize/black.png and /dev/null differ diff --git a/users/testouni/public/img/jhenning-poppy-9639559.jpg b/users/testouni/public/img/jhenning-poppy-9639559.jpg deleted file mode 100644 index c096dee..0000000 Binary files a/users/testouni/public/img/jhenning-poppy-9639559.jpg and /dev/null differ diff --git a/users/testouni/public/img/martinophuc-la-mure-village.jpg b/users/testouni/public/img/martinophuc-la-mure-village.jpg deleted file mode 100644 index a920c69..0000000 Binary files a/users/testouni/public/img/martinophuc-la-mure-village.jpg and /dev/null differ diff --git a/users/testouni/public/img/namden-vietnam-9963155.png b/users/testouni/public/img/namden-vietnam-9963155.png deleted file mode 100644 index 22dfa9a..0000000 Binary files a/users/testouni/public/img/namden-vietnam-9963155.png and /dev/null differ diff --git a/users/testouni/public/img/thumbnails/RAM.jpg b/users/testouni/public/img/thumbnails/RAM.jpg deleted file mode 100644 index 32931da..0000000 Binary files a/users/testouni/public/img/thumbnails/RAM.jpg and /dev/null differ diff --git a/users/testouni/public/img/thumbnails/jhenning-poppy-9639559.jpg b/users/testouni/public/img/thumbnails/jhenning-poppy-9639559.jpg deleted file mode 100644 index 9c95dcf..0000000 Binary files a/users/testouni/public/img/thumbnails/jhenning-poppy-9639559.jpg and /dev/null differ diff --git a/users/testouni/public/img/thumbnails/martinophuc-la-mure-village.jpg b/users/testouni/public/img/thumbnails/martinophuc-la-mure-village.jpg deleted file mode 100644 index 78eb5d2..0000000 Binary files a/users/testouni/public/img/thumbnails/martinophuc-la-mure-village.jpg and /dev/null differ diff --git a/users/testouni/public/img/thumbnails/namden-vietnam-9963155.png b/users/testouni/public/img/thumbnails/namden-vietnam-9963155.png deleted file mode 100644 index a4c788d..0000000 Binary files a/users/testouni/public/img/thumbnails/namden-vietnam-9963155.png and /dev/null differ diff --git a/users/testouni/test/page.json b/users/testouni/test/page.json deleted file mode 100644 index def2738..0000000 --- a/users/testouni/test/page.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "blocs": { - "test_bloc": { - "name": "test_bloc", - "type": "text", - "title": "Salut c'est moi et ... voila quoi !!!!", - "text": "\n#!/bin/bash\necho \"Un exemple de code\"\n
Youpi\u00a0!!!!!!!!!!!!!!!
Une\u00a0citation\u00a0de\u00a0connard
Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0
", - "bg_color": "#000000", - "fg_color": "#000000", - "text_button": null, - "link": null, - "email": null, - "address": null, - "phone": null, - "postal_code": null, - "city": null, - "property": "" - } - } -} \ No newline at end of file diff --git a/users/testouni/un_dernier_test/page.json b/users/testouni/un_dernier_test/page.json deleted file mode 100644 index 4a0412a..0000000 --- a/users/testouni/un_dernier_test/page.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "blocs": { - "test_bloc": { - "name": "test_bloc", - "type": "text", - "title": "Salut c'est moi et ... voila quoi !!!!", - "text": "\n#!/bin/bash\necho \"Un exemple de code\"\n
Youpi\u00a0!!!!!!!!!!!!!!!
Une\u00a0citation
Vous\u00a0pouvez\u00a0aussi\u00a0empiler\u00a0les\u00a0blocs\u00a0de\u00a0texte\u00a0poiur\u00a0les\u00a0mettre\u00a0de\u00a0couleur\u00a0diff\u00e9rentes\u00a0par\u00a0exemple\u00a0
", - "bg_color": "#000000", - "fg_color": "#000000", - "text_button": null, - "link": null, - "email": null, - "address": null, - "phone": null, - "postal_code": null, - "city": null, - "property": "" - } - } -} \ No newline at end of file