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/gallery.d.ts | 102 ++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'viewer/src/@types/gallery.d.ts') 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"; } -- cgit v1.2.3