From 8d543ab94d3678728466d3627e0d419ec00f3010 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 29 Jan 2020 04:53:35 +0100 Subject: viewer: finalized the thumbnails view layouts. implemented thumbnails lazy-loading --- viewer/src/@types/v-lazy-image.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 viewer/src/@types/v-lazy-image.d.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts new file mode 100644 index 0000000..e307751 --- /dev/null +++ b/viewer/src/@types/v-lazy-image.d.ts @@ -0,0 +1,20 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +declare module 'v-lazy-image'; \ No newline at end of file -- cgit v1.2.3 From c4a51940295d514dd52f48b6f18638ac554224f4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 29 Jan 2020 05:35:35 +0100 Subject: viewer: Tag auto-completion should be more flexible. Resolves #38 --- viewer/src/@types/tag/index.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag/index.d.ts b/viewer/src/@types/tag/index.d.ts index c77fc3b..1d5df88 100644 --- a/viewer/src/@types/tag/index.d.ts +++ b/viewer/src/@types/tag/index.d.ts @@ -20,6 +20,7 @@ declare namespace Tag { interface Node { tag: Gallery.RawTag; + tagfiltered: Gallery.RawTag; items: Gallery.Item[]; children: Index; } -- cgit v1.2.3 From e91065602eeeebef236dae29e67d8e3334ab4029 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 29 Jan 2020 07:54:03 +0100 Subject: viewer: improved the picture layout. clicking a picture will switch between resized-to-screen and original-size (+fullscreen). drag-n-drop scrolls/moves the picture, just like a touch device. Resolves #19 --- viewer/src/@types/vue-dragscroll.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 viewer/src/@types/vue-dragscroll.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/vue-dragscroll.ts b/viewer/src/@types/vue-dragscroll.ts new file mode 100644 index 0000000..b0967a9 --- /dev/null +++ b/viewer/src/@types/vue-dragscroll.ts @@ -0,0 +1,20 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +declare module 'vue-dragscroll'; \ No newline at end of file -- cgit v1.2.3 From 76af6cffce939ef3c9a0952e6f7adc234e92f782 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 30 Jan 2020 17:04:09 +0100 Subject: viewer: directories first and sorted by title in the navigation mode --- viewer/src/@types/gallery/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts index 25407e8..b112b6d 100644 --- a/viewer/src/@types/gallery/index.d.ts +++ b/viewer/src/@types/gallery/index.d.ts @@ -18,6 +18,9 @@ */ declare namespace Gallery { + interface Other extends Item { + properties: OtherProperties, + } interface Picture extends Item { properties: PictureProperties, } @@ -31,7 +34,10 @@ declare namespace Gallery { tags: RawTag[], path: string, thumbnail?: string, - properties: PictureProperties | DirectoryProperties, + properties: OtherProperties | PictureProperties | DirectoryProperties, + } + interface OtherProperties { + type: "other", } interface PictureProperties { type: "picture", @@ -42,4 +48,5 @@ declare namespace Gallery { items: Item[] } type RawTag = string; + type ItemType = "other" | "picture" | "directory"; } \ No newline at end of file -- cgit v1.2.3 From 170da2d55fec0359cbac780786383710b734eda7 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 31 Jan 2020 09:17:57 +0100 Subject: viewer: code cleaning, moved some views to components --- viewer/src/@types/Operation.ts | 24 +++++++++++++++++ viewer/src/@types/gallery.d.ts | 52 ++++++++++++++++++++++++++++++++++++ viewer/src/@types/gallery/index.d.ts | 52 ------------------------------------ viewer/src/@types/tag.d.ts | 34 +++++++++++++++++++++++ viewer/src/@types/tag/Operation.ts | 24 ----------------- viewer/src/@types/tag/index.d.ts | 34 ----------------------- 6 files changed, 110 insertions(+), 110 deletions(-) create mode 100644 viewer/src/@types/Operation.ts create mode 100644 viewer/src/@types/gallery.d.ts delete mode 100644 viewer/src/@types/gallery/index.d.ts create mode 100644 viewer/src/@types/tag.d.ts delete mode 100644 viewer/src/@types/tag/Operation.ts delete mode 100644 viewer/src/@types/tag/index.d.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts new file mode 100644 index 0000000..f1e7a41 --- /dev/null +++ b/viewer/src/@types/Operation.ts @@ -0,0 +1,24 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +export enum Operation { + INTERSECTION = '', + ADDITION = '+', + SUBSTRACTION = '-', +}; \ No newline at end of file diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts new file mode 100644 index 0000000..b112b6d --- /dev/null +++ b/viewer/src/@types/gallery.d.ts @@ -0,0 +1,52 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +declare namespace Gallery { + interface Other extends Item { + properties: OtherProperties, + } + interface Picture extends Item { + properties: PictureProperties, + } + interface Directory extends Item { + properties: DirectoryProperties, + } + interface Item { + title: string, + datetime: string, + description: string, + tags: RawTag[], + path: string, + thumbnail?: string, + properties: OtherProperties | PictureProperties | DirectoryProperties, + } + interface OtherProperties { + type: "other", + } + interface PictureProperties { + type: "picture", + resource: string, + } + interface DirectoryProperties { + type: "directory", + items: Item[] + } + type RawTag = string; + type ItemType = "other" | "picture" | "directory"; +} \ No newline at end of file diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts deleted file mode 100644 index b112b6d..0000000 --- a/viewer/src/@types/gallery/index.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* ldgallery - A static generator which turns a collection of tagged --- pictures into a searchable web gallery. --- --- Copyright (C) 2019-2020 Guillaume FOUET --- --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU Affero General Public License as --- published by the Free Software Foundation, either version 3 of the --- License, or (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU Affero General Public License for more details. --- --- You should have received a copy of the GNU Affero General Public License --- along with this program. If not, see . -*/ - -declare namespace Gallery { - interface Other extends Item { - properties: OtherProperties, - } - interface Picture extends Item { - properties: PictureProperties, - } - interface Directory extends Item { - properties: DirectoryProperties, - } - interface Item { - title: string, - datetime: string, - description: string, - tags: RawTag[], - path: string, - thumbnail?: string, - properties: OtherProperties | PictureProperties | DirectoryProperties, - } - interface OtherProperties { - type: "other", - } - interface PictureProperties { - type: "picture", - resource: string, - } - interface DirectoryProperties { - type: "directory", - items: Item[] - } - type RawTag = string; - type ItemType = "other" | "picture" | "directory"; -} \ No newline at end of file diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts new file mode 100644 index 0000000..1d5df88 --- /dev/null +++ b/viewer/src/@types/tag.d.ts @@ -0,0 +1,34 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +declare namespace Tag { + interface Node { + tag: Gallery.RawTag; + tagfiltered: Gallery.RawTag; + items: Gallery.Item[]; + children: Index; + } + interface Search extends Node { + parent?: Node; + operation: string; // Enum Operation + display: string; + } + type SearchByOperation = { [index: string]: Tag.Search[] }; + type Index = { [index: string]: Node }; +} \ No newline at end of file diff --git a/viewer/src/@types/tag/Operation.ts b/viewer/src/@types/tag/Operation.ts deleted file mode 100644 index f1e7a41..0000000 --- a/viewer/src/@types/tag/Operation.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* ldgallery - A static generator which turns a collection of tagged --- pictures into a searchable web gallery. --- --- Copyright (C) 2019-2020 Guillaume FOUET --- --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU Affero General Public License as --- published by the Free Software Foundation, either version 3 of the --- License, or (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU Affero General Public License for more details. --- --- You should have received a copy of the GNU Affero General Public License --- along with this program. If not, see . -*/ - -export enum Operation { - INTERSECTION = '', - ADDITION = '+', - SUBSTRACTION = '-', -}; \ No newline at end of file diff --git a/viewer/src/@types/tag/index.d.ts b/viewer/src/@types/tag/index.d.ts deleted file mode 100644 index 1d5df88..0000000 --- a/viewer/src/@types/tag/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* ldgallery - A static generator which turns a collection of tagged --- pictures into a searchable web gallery. --- --- Copyright (C) 2019-2020 Guillaume FOUET --- --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU Affero General Public License as --- published by the Free Software Foundation, either version 3 of the --- License, or (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU Affero General Public License for more details. --- --- You should have received a copy of the GNU Affero General Public License --- along with this program. If not, see . -*/ - -declare namespace Tag { - interface Node { - tag: Gallery.RawTag; - tagfiltered: Gallery.RawTag; - items: Gallery.Item[]; - children: Index; - } - interface Search extends Node { - parent?: Node; - operation: string; // Enum Operation - display: string; - } - type SearchByOperation = { [index: string]: Tag.Search[] }; - type Index = { [index: string]: Node }; -} \ No newline at end of file -- cgit v1.2.3 From 0697693934c700f50bcc45ad58ab0b8f0370561c Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 2 Feb 2020 05:01:17 +0100 Subject: viewer: adaptation to the thumbnail's new structure --- viewer/src/@types/gallery.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index b112b6d..1987416 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -33,7 +33,7 @@ declare namespace Gallery { description: string, tags: RawTag[], path: string, - thumbnail?: string, + thumbnail?: Thumbnail properties: OtherProperties | PictureProperties | DirectoryProperties, } interface OtherProperties { @@ -47,6 +47,13 @@ declare namespace Gallery { type: "directory", items: Item[] } + interface Thumbnail { + resource: string, + resolution: { + width: number, + height: number, + } + } type RawTag = string; type ItemType = "other" | "picture" | "directory"; } \ No newline at end of file -- cgit v1.2.3 From baa22ba2fb8d53b08487ef261ebde6028675448e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 11 Feb 2020 03:28:49 +0100 Subject: viewer: wrong file name fix --- viewer/src/@types/vue-dragscroll.d.ts | 20 ++++++++++++++++++++ viewer/src/@types/vue-dragscroll.ts | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 viewer/src/@types/vue-dragscroll.d.ts delete mode 100644 viewer/src/@types/vue-dragscroll.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts new file mode 100644 index 0000000..b0967a9 --- /dev/null +++ b/viewer/src/@types/vue-dragscroll.d.ts @@ -0,0 +1,20 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +declare module 'vue-dragscroll'; \ No newline at end of file diff --git a/viewer/src/@types/vue-dragscroll.ts b/viewer/src/@types/vue-dragscroll.ts deleted file mode 100644 index b0967a9..0000000 --- a/viewer/src/@types/vue-dragscroll.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* ldgallery - A static generator which turns a collection of tagged --- pictures into a searchable web gallery. --- --- Copyright (C) 2019-2020 Guillaume FOUET --- --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU Affero General Public License as --- published by the Free Software Foundation, either version 3 of the --- License, or (at your option) any later version. --- --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU Affero General Public License for more details. --- --- You should have received a copy of the GNU Affero General Public License --- along with this program. If not, see . -*/ - -declare module 'vue-dragscroll'; \ No newline at end of file -- cgit v1.2.3 From e61a7c84f1a1753186980ff1990ee146395ddfc1 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 11 Feb 2020 03:30:08 +0100 Subject: viewer: store and restore the scroll position through navigation GitHub: closes #58 --- viewer/src/@types/scrollposition.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 viewer/src/@types/scrollposition.d.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts new file mode 100644 index 0000000..d4fad52 --- /dev/null +++ b/viewer/src/@types/scrollposition.d.ts @@ -0,0 +1,20 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +type ScrollPosition = { [index: string]: number } \ No newline at end of file -- cgit v1.2.3 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 --- viewer/src/@types/gallery.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 1987416..865f621 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -18,6 +18,11 @@ */ declare namespace Gallery { + interface Config { + generationTimestamp: number, + galleryRoot: string, + } + interface Other extends Item { properties: OtherProperties, } -- cgit v1.2.3 From af4660b4c4fea455dfffbf2d966bae425ed6effb Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 12 Feb 2020 21:25:07 +0100 Subject: viewer: project configuration - eof-last enforced --- viewer/src/@types/Operation.ts | 2 +- viewer/src/@types/gallery.d.ts | 2 +- viewer/src/@types/scrollposition.d.ts | 2 +- viewer/src/@types/tag.d.ts | 2 +- viewer/src/@types/v-lazy-image.d.ts | 2 +- viewer/src/@types/vue-dragscroll.d.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts index f1e7a41..ba31bc0 100644 --- a/viewer/src/@types/Operation.ts +++ b/viewer/src/@types/Operation.ts @@ -21,4 +21,4 @@ export enum Operation { INTERSECTION = '', ADDITION = '+', SUBSTRACTION = '-', -}; \ No newline at end of file +}; diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 1987416..14a7ed9 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -56,4 +56,4 @@ declare namespace Gallery { } type RawTag = string; type ItemType = "other" | "picture" | "directory"; -} \ No newline at end of file +} diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts index d4fad52..b2147fa 100644 --- a/viewer/src/@types/scrollposition.d.ts +++ b/viewer/src/@types/scrollposition.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -type ScrollPosition = { [index: string]: number } \ No newline at end of file +type ScrollPosition = { [index: string]: number } diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 1d5df88..a390c80 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -31,4 +31,4 @@ declare namespace Tag { } type SearchByOperation = { [index: string]: Tag.Search[] }; type Index = { [index: string]: Node }; -} \ No newline at end of file +} diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts index e307751..df29484 100644 --- a/viewer/src/@types/v-lazy-image.d.ts +++ b/viewer/src/@types/v-lazy-image.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -declare module 'v-lazy-image'; \ No newline at end of file +declare module 'v-lazy-image'; diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts index b0967a9..052023d 100644 --- a/viewer/src/@types/vue-dragscroll.d.ts +++ b/viewer/src/@types/vue-dragscroll.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -declare module 'vue-dragscroll'; \ No newline at end of file +declare module 'vue-dragscroll'; -- 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 --- viewer/src/@types/gallery.d.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 865f621..44eecf6 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -19,7 +19,6 @@ declare namespace Gallery { interface Config { - generationTimestamp: number, galleryRoot: string, } -- cgit v1.2.3 From 2766f5f9a491c5f7ebf1eeac1c970daec3656be2 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 25 Feb 2020 16:03:00 +0100 Subject: transverse: combine item tree and gallery-wide properties GitHub: closes #142 --- viewer/src/@types/gallery.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 03d21fc..d7645b6 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -22,6 +22,13 @@ declare namespace Gallery { galleryRoot: string, } + interface GalleryProperties { + // empty for now + } + interface Index { + properties: GalleryProperties, + tree: Item + } interface Other extends Item { properties: OtherProperties, } -- cgit v1.2.3 From 7c2a2ff46469d5e8f44fb3ec7feae5f798e0baf8 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 27 Feb 2020 17:23:32 +0100 Subject: viewer: architectural fixes and improvements Make use of VueX's strict mode (which is different from vuex-class-component strict mode) Fixed issues and bad-practices with search filter tags mutations Correctly implement the new index.json format --- viewer/src/@types/gallery.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index d7645b6..399fb66 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -27,8 +27,9 @@ declare namespace Gallery { } interface Index { properties: GalleryProperties, - tree: Item + tree: Directory } + interface Other extends Item { properties: OtherProperties, } -- cgit v1.2.3 From b468dcbf3343ea251703078ec89d3215116fc2f6 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 25 Feb 2020 19:25:16 +0100 Subject: compiler: re-introduce gallery title --- viewer/src/@types/gallery.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 399fb66..4fa544f 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -23,7 +23,7 @@ declare namespace Gallery { } interface GalleryProperties { - // empty for now + galleryTitle: string } interface Index { properties: GalleryProperties, -- cgit v1.2.3 From 54790c6c73d7c51ff22cf5e9722b141cdc0249df Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 29 Feb 2020 16:39:55 +0100 Subject: compiler: add tagCategories setting to gallery.yaml --- viewer/src/@types/gallery.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 4fa544f..de1c0dd 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -23,7 +23,8 @@ declare namespace Gallery { } interface GalleryProperties { - galleryTitle: string + galleryTitle: string, + tagCategories: RawTag[] } interface Index { properties: GalleryProperties, -- cgit v1.2.3 From 577f49ab6e1fd9cd8007804a13dea1471ee2fb1f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 3 Apr 2020 03:42:35 +0200 Subject: viewer: tag categories implementation GitHub: Resolves #29 --- viewer/src/@types/tag.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index a390c80..425a995 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -31,4 +31,9 @@ declare namespace Tag { } type SearchByOperation = { [index: string]: Tag.Search[] }; type Index = { [index: string]: Node }; + + interface Category { + tag: string; + index: Index; + } } -- cgit v1.2.3 From ce04802f300ba627a3b9e9612d938b825045e63f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 4 Apr 2020 01:36:34 +0200 Subject: viewer: tag categories implementation fixed single tags not appearing in the "Other filters" special category, following code review GitHub: Resolves #29 --- viewer/src/@types/tag.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 425a995..229c418 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -21,6 +21,7 @@ declare namespace Tag { interface Node { tag: Gallery.RawTag; tagfiltered: Gallery.RawTag; + rootPart: boolean; items: Gallery.Item[]; children: Index; } -- cgit v1.2.3 From c9c69214dcb16a581525eee319ced6e7d9c98bf3 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 17 Apr 2020 23:19:49 +0200 Subject: viewer: fixed tag categories proposed again in "other filters" github: resolves #186 --- viewer/src/@types/tag.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 229c418..8f7e6a9 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -22,6 +22,7 @@ declare namespace Tag { tag: Gallery.RawTag; tagfiltered: Gallery.RawTag; rootPart: boolean; + childPart: boolean; items: Gallery.Item[]; children: Index; } -- cgit v1.2.3 From 579df471dee7b6fe0be8a9ad8e2fa2362c9bf6cd Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 28 Apr 2020 00:14:31 +0200 Subject: compiler: add picture size to index This is needed for the picture viewer fancy loading phase. --- viewer/src/@types/gallery.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index de1c0dd..956ab6b 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -49,12 +49,17 @@ declare namespace Gallery { thumbnail?: Thumbnail properties: OtherProperties | PictureProperties | DirectoryProperties, } + interface Resolution { + width: number, + height: number, + } interface OtherProperties { type: "other", } interface PictureProperties { type: "picture", resource: string, + resolution: Resolution } interface DirectoryProperties { type: "directory", @@ -62,10 +67,7 @@ declare namespace Gallery { } interface Thumbnail { resource: string, - resolution: { - width: number, - height: number, - } + resolution: Resolution } type RawTag = string; type ItemType = "other" | "picture" | "directory"; -- cgit v1.2.3 From ccecfd9421f4550a71134cd46e1388e486f8c564 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 28 Apr 2020 03:47:39 +0200 Subject: viewer: global formatting unification --- viewer/src/@types/Operation.ts | 6 +- viewer/src/@types/gallery.d.ts | 102 +++++++++++++++++----------------- viewer/src/@types/tag.d.ts | 38 ++++++------- viewer/src/@types/v-lazy-image.d.ts | 2 +- viewer/src/@types/vue-dragscroll.d.ts | 2 +- 5 files changed, 75 insertions(+), 75 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts index ba31bc0..e7aad27 100644 --- a/viewer/src/@types/Operation.ts +++ b/viewer/src/@types/Operation.ts @@ -18,7 +18,7 @@ */ export enum Operation { - INTERSECTION = '', - ADDITION = '+', - SUBSTRACTION = '-', + INTERSECTION = "", + ADDITION = "+", + SUBSTRACTION = "-", }; diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 956ab6b..066aedf 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -18,57 +18,57 @@ */ declare namespace Gallery { - interface Config { - galleryRoot: string, - } + interface Config { + galleryRoot: string, + } - interface GalleryProperties { - galleryTitle: string, - tagCategories: RawTag[] - } - interface Index { - properties: GalleryProperties, - tree: Directory - } + interface GalleryProperties { + galleryTitle: string, + tagCategories: RawTag[] + } + interface Index { + properties: GalleryProperties, + tree: Directory + } - interface Other extends Item { - properties: OtherProperties, - } - interface Picture extends Item { - properties: PictureProperties, - } - interface Directory extends Item { - properties: DirectoryProperties, - } - interface Item { - title: string, - datetime: string, - description: string, - tags: RawTag[], - path: string, - thumbnail?: Thumbnail - properties: OtherProperties | PictureProperties | DirectoryProperties, - } - interface Resolution { - width: number, - height: number, - } - interface OtherProperties { - type: "other", - } - interface PictureProperties { - type: "picture", - resource: string, - resolution: Resolution - } - interface DirectoryProperties { - type: "directory", - items: Item[] - } - interface Thumbnail { - resource: string, - resolution: Resolution - } - type RawTag = string; - type ItemType = "other" | "picture" | "directory"; + interface Other extends Item { + properties: OtherProperties, + } + interface Picture extends Item { + properties: PictureProperties, + } + interface Directory extends Item { + properties: DirectoryProperties, + } + interface Item { + title: string, + datetime: string, + description: string, + tags: RawTag[], + path: string, + thumbnail?: Thumbnail + properties: OtherProperties | PictureProperties | DirectoryProperties, + } + interface Resolution { + width: number, + height: number, + } + interface OtherProperties { + type: "other", + } + interface PictureProperties { + type: "picture", + resource: string, + resolution: Resolution + } + interface DirectoryProperties { + type: "directory", + items: Item[] + } + interface Thumbnail { + resource: string, + resolution: Resolution + } + type RawTag = string; + type ItemType = "other" | "picture" | "directory"; } diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 8f7e6a9..76f1207 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -18,24 +18,24 @@ */ declare namespace Tag { - interface Node { - tag: Gallery.RawTag; - tagfiltered: Gallery.RawTag; - rootPart: boolean; - childPart: boolean; - items: Gallery.Item[]; - children: Index; - } - interface Search extends Node { - parent?: Node; - operation: string; // Enum Operation - display: string; - } - type SearchByOperation = { [index: string]: Tag.Search[] }; - type Index = { [index: string]: Node }; + interface Node { + tag: Gallery.RawTag; + tagfiltered: Gallery.RawTag; + rootPart: boolean; + childPart: boolean; + items: Gallery.Item[]; + children: Index; + } + interface Search extends Node { + parent?: Node; + operation: string; // Enum Operation + display: string; + } + type SearchByOperation = { [index: string]: Tag.Search[] }; + type Index = { [index: string]: Node }; - interface Category { - tag: string; - index: Index; - } + interface Category { + tag: string; + index: Index; + } } diff --git a/viewer/src/@types/v-lazy-image.d.ts b/viewer/src/@types/v-lazy-image.d.ts index df29484..2777921 100644 --- a/viewer/src/@types/v-lazy-image.d.ts +++ b/viewer/src/@types/v-lazy-image.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -declare module 'v-lazy-image'; +declare module "v-lazy-image"; diff --git a/viewer/src/@types/vue-dragscroll.d.ts b/viewer/src/@types/vue-dragscroll.d.ts index 052023d..c07c7d8 100644 --- a/viewer/src/@types/vue-dragscroll.d.ts +++ b/viewer/src/@types/vue-dragscroll.d.ts @@ -17,4 +17,4 @@ -- along with this program. If not, see . */ -declare module 'vue-dragscroll'; +declare module "vue-dragscroll"; -- cgit v1.2.3