Support multiple image sets
This commit is contained in:
11
src/model.ts
11
src/model.ts
@@ -1,11 +1,18 @@
|
||||
export const SIZES = [1600, 1200, 800, 600, 400, 200];
|
||||
export const URL = "img/data.json";
|
||||
|
||||
export interface Images {
|
||||
[name: string]: Image
|
||||
export interface Data {
|
||||
sets: ImageSet[]
|
||||
}
|
||||
|
||||
export interface ImageSet {
|
||||
location: string;
|
||||
description: string;
|
||||
images: Image[]
|
||||
}
|
||||
|
||||
export interface Image {
|
||||
src: string;
|
||||
height: number;
|
||||
width: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user