From 1f9c7bec9bc366848810dd9f6282f11484171642 Mon Sep 17 00:00:00 2001 From: administrateur Date: Mon, 15 Mar 2021 10:51:28 +0100 Subject: [PATCH] First commit of thumbsup --- config-npm.json | 18 ++++++++++++++++++ config.json | 19 +++++++++++++++++++ config.json.bak | 19 +++++++++++++++++++ readme.md | 4 ++++ theme-flow | 1 + theme-flow-bruno | 1 + theme_options.json | 3 +++ thumbsup.sh | 15 +++++++++++++++ thumbsup_update.sh | 13 +++++++++++++ 9 files changed, 93 insertions(+) create mode 100644 config-npm.json create mode 100644 config.json create mode 100644 config.json.bak create mode 100644 readme.md create mode 160000 theme-flow create mode 160000 theme-flow-bruno create mode 100644 theme_options.json create mode 100644 thumbsup.sh create mode 100644 thumbsup_update.sh diff --git a/config-npm.json b/config-npm.json new file mode 100644 index 0000000..72ae88c --- /dev/null +++ b/config-npm.json @@ -0,0 +1,18 @@ +{ + "input": "../Sites/Gordes", + "output": "./website", + "exclude": ["_Archived Items/","thumbsup"], + "include-raw-photos": true, + "thumb-size": 250, + "large-size": 1600, + "photo-download": "symlink", + "cleanup": true, + "sort-albums-by": "title", + "sort-media-by": "date", + "sort-media-direction": "desc", + "home-album-name": "Accueil", + "theme-path": "theme-flow-bruno/theme", + "title": "Photos...", + "embed-exif": true, + "locale": "fr" +} diff --git a/config.json b/config.json new file mode 100644 index 0000000..80b067a --- /dev/null +++ b/config.json @@ -0,0 +1,19 @@ +{ + "input": "/input/Flore", + "output": "/output/gallery", + "exclude": ["_Archived Items/","thumbsup"], + "include-raw-photos": true, + "thumb-size": 250, + "large-size": 1600, + "photo-download": "symlink", + "cleanup": true, + "sort-albums-by": "title", + "sort-media-by": "date", + "sort-media-direction": "desc", + "home-album-name": "Accueil", + "theme-path": "/input/thumbsup/theme-flow/theme", + "title": "Photos...", + "embed-exif": true, + "locale": "fr", + "footer": "bruno@clicclac.info" +} diff --git a/config.json.bak b/config.json.bak new file mode 100644 index 0000000..80b067a --- /dev/null +++ b/config.json.bak @@ -0,0 +1,19 @@ +{ + "input": "/input/Flore", + "output": "/output/gallery", + "exclude": ["_Archived Items/","thumbsup"], + "include-raw-photos": true, + "thumb-size": 250, + "large-size": 1600, + "photo-download": "symlink", + "cleanup": true, + "sort-albums-by": "title", + "sort-media-by": "date", + "sort-media-direction": "desc", + "home-album-name": "Accueil", + "theme-path": "/input/thumbsup/theme-flow/theme", + "title": "Photos...", + "embed-exif": true, + "locale": "fr", + "footer": "bruno@clicclac.info" +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..1dbdad4 --- /dev/null +++ b/readme.md @@ -0,0 +1,4 @@ + +15/03/2021 +Avec la version 2.15.0, les boutons plein écran et download sont activés par défaut. Le thème theme-flow-bruno n'as plus de nécéssité. + diff --git a/theme-flow b/theme-flow new file mode 160000 index 0000000..30b9f03 --- /dev/null +++ b/theme-flow @@ -0,0 +1 @@ +Subproject commit 30b9f031621ff3608824b510beb78f9148a8c14a diff --git a/theme-flow-bruno b/theme-flow-bruno new file mode 160000 index 0000000..d85f5e3 --- /dev/null +++ b/theme-flow-bruno @@ -0,0 +1 @@ +Subproject commit d85f5e3086271743fa076f98c726dc8167ba019e diff --git a/theme_options.json b/theme_options.json new file mode 100644 index 0000000..d535914 --- /dev/null +++ b/theme_options.json @@ -0,0 +1,3 @@ +{ + sliderInterval: 500 +} \ No newline at end of file diff --git a/thumbsup.sh b/thumbsup.sh new file mode 100644 index 0000000..adc4b27 --- /dev/null +++ b/thumbsup.sh @@ -0,0 +1,15 @@ +#/bin/bash -e + +sudo docker run -t \ + -v /volume1/photo:/input:ro \ + -v /volume1/web:/output \ + thumbsupgallery/thumbsup:latest \ + thumbsup --config "/input/thumbsup/config.json" + +echo "Changing forder permission /volume1/web/gallery/ ..." +# files/folders in /gallery/public don't have permissions, so we change them to 755 + +sudo chmod -R 755 /volume1/web/gallery/ + +echo "Go to https://clicclac.synology.me/gallery/" +echo "" diff --git a/thumbsup_update.sh b/thumbsup_update.sh new file mode 100644 index 0000000..c6645bf --- /dev/null +++ b/thumbsup_update.sh @@ -0,0 +1,13 @@ +#/bin/bash -e + +# Ne pas oublier l'option -i (attach the container’s STDIN) +sudo docker start -i thumbsup2.15 + +echo "" +echo "Changing forder permission /volume1/web/gallery/ ..." +# files/folders in /gallery/public don't have permissions, so we change them to 755 + +sudo chmod -R 755 /volume1/web/gallery/ + +echo "Go to https://clicclac.synology.me/gallery/" +echo ""