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