From 19d40a5ee98fb1f244612155acc559ff2f21bf6b Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 12 Feb 2020 00:09:34 +0100 Subject: viewer: implemented config.json Note: The DevServer needs to know when the file is from the App, or from the FileSystem. We use a tilde to make this separation. The tilde URL is declared in '.env.development' GitHub: Resolves #32 --- example/config.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 example/config.json (limited to 'example') diff --git a/example/config.json b/example/config.json new file mode 100644 index 0000000..6487594 --- /dev/null +++ b/example/config.json @@ -0,0 +1,4 @@ +{ + "generationTimestamp": 0, + "galleryRoot": "out/" +} \ No newline at end of file -- cgit v1.2.3 From ee9d82d0b307dee1c9138babf954a3864a0c2f83 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 12 Feb 2020 00:33:45 +0100 Subject: example: cleaner examples --- example/Glacier 3000/_DSC5475.jpg | Bin 363216 -> 0 bytes example/Glacier 3000/_DSC5475.jpg.yaml | 15 --------------- example/Glacier 3000/_DSC5542.jpg | Bin 457873 -> 0 bytes example/Glacier 3000/_DSC5542.jpg.yaml | 15 --------------- example/Glacier 3000/thumbnail.jpg | Bin 457873 -> 0 bytes example/_DSC8808-1.jpg | Bin 1010643 -> 0 bytes example/_DSC8808-1.jpg.yaml | 12 ------------ example/gallery.yaml | 26 -------------------------- example/readme.md | 3 +-- example/src/Glacier 3000/_DSC5475.jpg | Bin 0 -> 363216 bytes example/src/Glacier 3000/_DSC5475.jpg.yaml | 15 +++++++++++++++ example/src/Glacier 3000/_DSC5542.jpg | Bin 0 -> 457873 bytes example/src/Glacier 3000/_DSC5542.jpg.yaml | 15 +++++++++++++++ example/src/Glacier 3000/thumbnail.jpg | Bin 0 -> 457873 bytes example/src/_DSC8808-1.jpg | Bin 0 -> 1010643 bytes example/src/_DSC8808-1.jpg.yaml | 12 ++++++++++++ example/src/gallery.yaml | 26 ++++++++++++++++++++++++++ 17 files changed, 69 insertions(+), 70 deletions(-) delete mode 100644 example/Glacier 3000/_DSC5475.jpg delete mode 100644 example/Glacier 3000/_DSC5475.jpg.yaml delete mode 100644 example/Glacier 3000/_DSC5542.jpg delete mode 100644 example/Glacier 3000/_DSC5542.jpg.yaml delete mode 100644 example/Glacier 3000/thumbnail.jpg delete mode 100644 example/_DSC8808-1.jpg delete mode 100644 example/_DSC8808-1.jpg.yaml delete mode 100644 example/gallery.yaml create mode 100644 example/src/Glacier 3000/_DSC5475.jpg create mode 100644 example/src/Glacier 3000/_DSC5475.jpg.yaml create mode 100644 example/src/Glacier 3000/_DSC5542.jpg create mode 100644 example/src/Glacier 3000/_DSC5542.jpg.yaml create mode 100644 example/src/Glacier 3000/thumbnail.jpg create mode 100644 example/src/_DSC8808-1.jpg create mode 100644 example/src/_DSC8808-1.jpg.yaml create mode 100644 example/src/gallery.yaml (limited to 'example') diff --git a/example/Glacier 3000/_DSC5475.jpg b/example/Glacier 3000/_DSC5475.jpg deleted file mode 100644 index 9835447..0000000 Binary files a/example/Glacier 3000/_DSC5475.jpg and /dev/null differ diff --git a/example/Glacier 3000/_DSC5475.jpg.yaml b/example/Glacier 3000/_DSC5475.jpg.yaml deleted file mode 100644 index 3454a68..0000000 --- a/example/Glacier 3000/_DSC5475.jpg.yaml +++ /dev/null @@ -1,15 +0,0 @@ -title: Fog 3000 - -datetime: 2019-08-10T14:38:47+01:00 - -description: > - © Philippe NGUYEN - -tags: - - photographer.nphilou - - location.switzerland.ormont-dessus - - glacier3000 - - time.day - - weather.foggy - - forest - - trees diff --git a/example/Glacier 3000/_DSC5542.jpg b/example/Glacier 3000/_DSC5542.jpg deleted file mode 100644 index 19a716e..0000000 Binary files a/example/Glacier 3000/_DSC5542.jpg and /dev/null differ diff --git a/example/Glacier 3000/_DSC5542.jpg.yaml b/example/Glacier 3000/_DSC5542.jpg.yaml deleted file mode 100644 index d174911..0000000 --- a/example/Glacier 3000/_DSC5542.jpg.yaml +++ /dev/null @@ -1,15 +0,0 @@ -title: Foggy catwalk - -datetime: 2019-08-10T16:00:45+01:00 - -description: > - © Philippe NGUYEN - -tags: - - photographer.nphilou - - location.switzerland.ormont-dessus - - glacier3000 - - time.day - - weather.foggy - - catwalk - - mountain diff --git a/example/Glacier 3000/thumbnail.jpg b/example/Glacier 3000/thumbnail.jpg deleted file mode 100644 index 19a716e..0000000 Binary files a/example/Glacier 3000/thumbnail.jpg and /dev/null differ diff --git a/example/_DSC8808-1.jpg b/example/_DSC8808-1.jpg deleted file mode 100644 index 51b43b0..0000000 Binary files a/example/_DSC8808-1.jpg and /dev/null differ diff --git a/example/_DSC8808-1.jpg.yaml b/example/_DSC8808-1.jpg.yaml deleted file mode 100644 index b946ff7..0000000 --- a/example/_DSC8808-1.jpg.yaml +++ /dev/null @@ -1,12 +0,0 @@ -title: Book shop - -datetime: 2016-12-19T16:48:50+02:00 - -description: > - © Philippe NGUYEN - -tags: - - photographer.nphilou - - location.germany.berlin - - books - - book-shop diff --git a/example/gallery.yaml b/example/gallery.yaml deleted file mode 100644 index ea23d8a..0000000 --- a/example/gallery.yaml +++ /dev/null @@ -1,26 +0,0 @@ -compiler: - galleryName: Example gallery - - #includedDirectories: ["*"] - #excludedDirectories: [] - - includedFiles: - - "*.jpg" - - #excludedFiles: - #- "*.md" - - tagsFromDirectories: 0 # default - - thumbnailMaxResolution: - width: 400 # default - height: 300 # default - - pictureMaxResolution: - width: 1024 - height: 768 - - #jpegExportQuality: 80 # default - - -viewer: {} diff --git a/example/readme.md b/example/readme.md index d5a7563..087a8bc 100644 --- a/example/readme.md +++ b/example/readme.md @@ -8,7 +8,7 @@ Content ------- ``` -./example +./example/src ├── _DSC8808-1.jpg -- a picture ├── _DSC8808-1.jpg.yaml -- its associated sidecar metadata file ├── Glacier 3000 -- a directory grouping gallery items @@ -18,5 +18,4 @@ Content │   ├── _DSC5542.jpg │   └── _DSC5542.jpg.yaml ├── gallery.yaml -- gallery settings file -└── readme.md -- this README ``` diff --git a/example/src/Glacier 3000/_DSC5475.jpg b/example/src/Glacier 3000/_DSC5475.jpg new file mode 100644 index 0000000..9835447 Binary files /dev/null and b/example/src/Glacier 3000/_DSC5475.jpg differ diff --git a/example/src/Glacier 3000/_DSC5475.jpg.yaml b/example/src/Glacier 3000/_DSC5475.jpg.yaml new file mode 100644 index 0000000..3454a68 --- /dev/null +++ b/example/src/Glacier 3000/_DSC5475.jpg.yaml @@ -0,0 +1,15 @@ +title: Fog 3000 + +datetime: 2019-08-10T14:38:47+01:00 + +description: > + © Philippe NGUYEN + +tags: + - photographer.nphilou + - location.switzerland.ormont-dessus + - glacier3000 + - time.day + - weather.foggy + - forest + - trees diff --git a/example/src/Glacier 3000/_DSC5542.jpg b/example/src/Glacier 3000/_DSC5542.jpg new file mode 100644 index 0000000..19a716e Binary files /dev/null and b/example/src/Glacier 3000/_DSC5542.jpg differ diff --git a/example/src/Glacier 3000/_DSC5542.jpg.yaml b/example/src/Glacier 3000/_DSC5542.jpg.yaml new file mode 100644 index 0000000..d174911 --- /dev/null +++ b/example/src/Glacier 3000/_DSC5542.jpg.yaml @@ -0,0 +1,15 @@ +title: Foggy catwalk + +datetime: 2019-08-10T16:00:45+01:00 + +description: > + © Philippe NGUYEN + +tags: + - photographer.nphilou + - location.switzerland.ormont-dessus + - glacier3000 + - time.day + - weather.foggy + - catwalk + - mountain diff --git a/example/src/Glacier 3000/thumbnail.jpg b/example/src/Glacier 3000/thumbnail.jpg new file mode 100644 index 0000000..19a716e Binary files /dev/null and b/example/src/Glacier 3000/thumbnail.jpg differ diff --git a/example/src/_DSC8808-1.jpg b/example/src/_DSC8808-1.jpg new file mode 100644 index 0000000..51b43b0 Binary files /dev/null and b/example/src/_DSC8808-1.jpg differ diff --git a/example/src/_DSC8808-1.jpg.yaml b/example/src/_DSC8808-1.jpg.yaml new file mode 100644 index 0000000..b946ff7 --- /dev/null +++ b/example/src/_DSC8808-1.jpg.yaml @@ -0,0 +1,12 @@ +title: Book shop + +datetime: 2016-12-19T16:48:50+02:00 + +description: > + © Philippe NGUYEN + +tags: + - photographer.nphilou + - location.germany.berlin + - books + - book-shop diff --git a/example/src/gallery.yaml b/example/src/gallery.yaml new file mode 100644 index 0000000..ea23d8a --- /dev/null +++ b/example/src/gallery.yaml @@ -0,0 +1,26 @@ +compiler: + galleryName: Example gallery + + #includedDirectories: ["*"] + #excludedDirectories: [] + + includedFiles: + - "*.jpg" + + #excludedFiles: + #- "*.md" + + tagsFromDirectories: 0 # default + + thumbnailMaxResolution: + width: 400 # default + height: 300 # default + + pictureMaxResolution: + width: 1024 + height: 768 + + #jpegExportQuality: 80 # default + + +viewer: {} -- cgit v1.2.3 From 1763c8ce725098100618079553a9ec4f79386a5d Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 13 Feb 2020 17:44:34 +0100 Subject: viewer: no-cache for config.json and index.json --- example/config.json | 1 - 1 file changed, 1 deletion(-) (limited to 'example') diff --git a/example/config.json b/example/config.json index 6487594..51baf84 100644 --- a/example/config.json +++ b/example/config.json @@ -1,4 +1,3 @@ { - "generationTimestamp": 0, "galleryRoot": "out/" } \ No newline at end of file -- cgit v1.2.3 From ef1778e051e007f08f9188a479d04fdf95a57d21 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 13 Feb 2020 18:13:55 +0100 Subject: documentation --- example/readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/readme.md b/example/readme.md index 087a8bc..e455f03 100644 --- a/example/readme.md +++ b/example/readme.md @@ -8,7 +8,8 @@ Content ------- ``` -./example/src +./example/out -- the output directory for the compiled version of the gallery +./example/src -- source directory with pictures, configuration, tags and metadata ├── _DSC8808-1.jpg -- a picture ├── _DSC8808-1.jpg.yaml -- its associated sidecar metadata file ├── Glacier 3000 -- a directory grouping gallery items @@ -17,5 +18,5 @@ Content │   ├── _DSC5475.jpg.yaml │   ├── _DSC5542.jpg │   └── _DSC5542.jpg.yaml -├── gallery.yaml -- gallery settings file +└── gallery.yaml -- gallery settings file ``` -- cgit v1.2.3