From 170d7a61f720ece9dc4b347b19f5a8213f1d8984 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 20 Jun 2020 16:50:49 +0200 Subject: viewer: prettier formatting based on eslint-prettier plugin --- viewer/src/@types/Operation.ts | 2 +- viewer/src/@types/gallery.d.ts | 89 ++++++++++++++++++----------------- viewer/src/@types/scrollposition.d.ts | 2 +- 3 files changed, 47 insertions(+), 46 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/Operation.ts b/viewer/src/@types/Operation.ts index e7aad27..e566f4b 100644 --- a/viewer/src/@types/Operation.ts +++ b/viewer/src/@types/Operation.ts @@ -21,4 +21,4 @@ export enum Operation { INTERSECTION = "", ADDITION = "+", SUBSTRACTION = "-", -}; +} diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 151ae92..1342ff9 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -19,90 +19,91 @@ declare namespace Gallery { interface Config { - galleryRoot: string, + galleryRoot: string; } interface GalleryProperties { - galleryTitle: string, - tagCategories: RawTag[] + galleryTitle: string; + tagCategories: RawTag[]; } interface Index { - properties: GalleryProperties, - tree: Directory + properties: GalleryProperties; + tree: Directory; } interface Other extends Item { - properties: OtherProperties, + properties: OtherProperties; } interface Picture extends Item { - properties: PictureProperties, + properties: PictureProperties; } interface PlainText extends Item { - properties: PlainTextProperties, + properties: PlainTextProperties; } interface PDF extends Item { - properties: PDFProperties, + properties: PDFProperties; } interface Video extends Item { - properties: VideoProperties, + properties: VideoProperties; } interface Audio extends Item { - properties: AudioProperties, + properties: AudioProperties; } interface Directory extends Item { - properties: DirectoryProperties, + properties: DirectoryProperties; } interface Item { - title: string, - datetime: string, - description: string, - tags: RawTag[], - path: string, - thumbnail?: Thumbnail - properties: OtherProperties - | PictureProperties - | PlainTextProperties - | PDFProperties - | VideoProperties - | AudioProperties - | DirectoryProperties, + title: string; + datetime: string; + description: string; + tags: RawTag[]; + path: string; + thumbnail?: Thumbnail; + properties: + | OtherProperties + | PictureProperties + | PlainTextProperties + | PDFProperties + | VideoProperties + | AudioProperties + | DirectoryProperties; } interface Resolution { - width: number, - height: number, + width: number; + height: number; } interface OtherProperties { - type: import("./ItemType").ItemType.OTHER, - resource: string + type: import("./ItemType").ItemType.OTHER; + resource: string; } interface PictureProperties { - type: import("./ItemType").ItemType.PICTURE, - resource: string, - resolution: Resolution + type: import("./ItemType").ItemType.PICTURE; + resource: string; + resolution: Resolution; } interface PlainTextProperties { - type: import("./ItemType").ItemType.PLAINTEXT, - resource: string, + type: import("./ItemType").ItemType.PLAINTEXT; + resource: string; } interface PDFProperties { - type: import("./ItemType").ItemType.PDF, - resource: string, + type: import("./ItemType").ItemType.PDF; + resource: string; } interface VideoProperties { - type: import("./ItemType").ItemType.VIDEO, - resource: string, + type: import("./ItemType").ItemType.VIDEO; + resource: string; } interface AudioProperties { - type: import("./ItemType").ItemType.AUDIO, - resource: string, + type: import("./ItemType").ItemType.AUDIO; + resource: string; } interface DirectoryProperties { - type: import("./ItemType").ItemType.DIRECTORY, - items: Item[] + type: import("./ItemType").ItemType.DIRECTORY; + items: Item[]; } interface Thumbnail { - resource: string, - resolution: Resolution + resource: string; + resolution: Resolution; } type RawTag = string; } diff --git a/viewer/src/@types/scrollposition.d.ts b/viewer/src/@types/scrollposition.d.ts index cd393b3..2f17515 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 = Record +type ScrollPosition = Record; -- cgit v1.2.3