-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from flareseek/feat/asset-info
static 데이터 정리
- Loading branch information
Showing
95 changed files
with
1,432 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+162 KB
src/assets/data/booth_image/playground/bottom_pink_line/02ab7987ed.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+50.6 KB
src/assets/data/booth_image/playground/bottom_pink_line/09eb7da1de.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.6 MB
src/assets/data/booth_image/playground/bottom_pink_line/0c761c827e.jpg
Oops, something went wrong.
Binary file added
BIN
+136 KB
src/assets/data/booth_image/playground/bottom_pink_line/0c96d9a479.jpg
Oops, something went wrong.
Binary file added
BIN
+190 KB
src/assets/data/booth_image/playground/bottom_pink_line/19aa65aa9d.jpg
Oops, something went wrong.
Binary file added
BIN
+915 KB
src/assets/data/booth_image/playground/bottom_pink_line/1c1d260dc6.jpg
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+30.3 KB
src/assets/data/booth_image/playground/bottom_pink_line/23e09c30f3.jpg
Oops, something went wrong.
Binary file added
BIN
+218 KB
src/assets/data/booth_image/playground/bottom_pink_line/27c55c0463.jpg
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+117 KB
src/assets/data/booth_image/playground/bottom_pink_line/327afcdba7.jpg
Oops, something went wrong.
Binary file added
BIN
+286 KB
src/assets/data/booth_image/playground/bottom_pink_line/36b68df0f4.jpg
Oops, something went wrong.
Binary file added
BIN
+43.8 KB
src/assets/data/booth_image/playground/bottom_pink_line/43c62c61f9.jpg
Oops, something went wrong.
Binary file added
BIN
+77.5 KB
src/assets/data/booth_image/playground/bottom_pink_line/4c06b8ef37.jpg
Oops, something went wrong.
Binary file added
BIN
+42.1 KB
src/assets/data/booth_image/playground/bottom_pink_line/50c1fce68a.jpg
Oops, something went wrong.
Binary file added
BIN
+24.3 KB
src/assets/data/booth_image/playground/bottom_pink_line/67e3c1c3cc.jpg
Oops, something went wrong.
Binary file added
BIN
+6.29 KB
src/assets/data/booth_image/playground/bottom_pink_line/71e31bfc6e.jpg
Oops, something went wrong.
Binary file added
BIN
+66.7 KB
src/assets/data/booth_image/playground/bottom_pink_line/73f46f69f4.jpg
Oops, something went wrong.
Binary file added
BIN
+199 KB
src/assets/data/booth_image/playground/bottom_pink_line/7497d24939.jpg
Oops, something went wrong.
Binary file added
BIN
+43.8 KB
src/assets/data/booth_image/playground/bottom_pink_line/872d6c6cf5.jpg
Oops, something went wrong.
Binary file added
BIN
+118 KB
src/assets/data/booth_image/playground/bottom_pink_line/8a18754738.jpg
Oops, something went wrong.
Binary file added
BIN
+11.6 KB
src/assets/data/booth_image/playground/bottom_pink_line/93d949f5e9.jpg
Oops, something went wrong.
Binary file added
BIN
+195 KB
src/assets/data/booth_image/playground/bottom_pink_line/9c5d6a5577.jpg
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+67.2 KB
src/assets/data/booth_image/playground/bottom_pink_line/a57dbe82b5.jpg
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
src/assets/data/booth_image/playground/bottom_pink_line/ab4a0c15a2.jpg
Oops, something went wrong.
Binary file added
BIN
+91.9 KB
src/assets/data/booth_image/playground/bottom_pink_line/ac2902d6e4.jpg
Oops, something went wrong.
Binary file added
BIN
+87.5 KB
src/assets/data/booth_image/playground/bottom_pink_line/bded94c18d.jpg
Oops, something went wrong.
Binary file added
BIN
+14.7 KB
src/assets/data/booth_image/playground/bottom_pink_line/c19aa8be65.jpg
Oops, something went wrong.
Binary file added
BIN
+1.75 MB
src/assets/data/booth_image/playground/bottom_pink_line/c7b5e9b9d3.jpg
Oops, something went wrong.
Binary file added
BIN
+1.18 MB
src/assets/data/booth_image/playground/bottom_pink_line/c9b8f95d36.jpg
Oops, something went wrong.
Binary file added
BIN
+190 KB
src/assets/data/booth_image/playground/bottom_pink_line/cdd594c254.jpg
Oops, something went wrong.
Binary file added
BIN
+240 KB
src/assets/data/booth_image/playground/bottom_pink_line/e185176c19.jpg
Oops, something went wrong.
Binary file added
BIN
+47.6 KB
src/assets/data/booth_image/playground/bottom_pink_line/e28aa0738e.jpg
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+58.3 KB
src/assets/data/booth_image/playground/bottom_pink_line/ffb5da54d5.jpg
Oops, something went wrong.
Binary file added
BIN
+554 KB
src/assets/data/booth_image/playground/middle_yellow_line/02b75dfc25.jpg
Oops, something went wrong.
Binary file added
BIN
+77 KB
src/assets/data/booth_image/playground/middle_yellow_line/8ae87b7d0c.jpg
Oops, something went wrong.
Binary file added
BIN
+40.3 KB
src/assets/data/booth_image/playground/middle_yellow_line/c7f9627d65.jpg
Oops, something went wrong.
Binary file added
BIN
+38.8 KB
src/assets/data/booth_image/playground/middle_yellow_line/fa178d3fa1.jpg
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
import { FoodTruck } from "../../shared/types/asset_types"; | ||
|
||
export const FOODTRUCK_60TH_ANNIV_LIST: FoodTruck[] = [ | ||
new FoodTruck({ | ||
id: "cfa60e2f3e", | ||
order: 1, | ||
name: "위키스마일", | ||
menu: ["분식"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "dd840a637b", | ||
order: 2, | ||
name: "체리블라썸", | ||
menu: ["소떡소떡 외 기타"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "c8a7090348", | ||
order: 3, | ||
name: "뷰카페", | ||
menu: ["크레페"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "ef7acfd49f", | ||
order: 4, | ||
name: "메이트럭", | ||
menu: ["불초밥"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "9f676aeabe", | ||
order: 5, | ||
name: "오픈더키친", | ||
menu: ["야끼소바"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "5eaf2e31d2", | ||
order: 6, | ||
name: "춘향전", | ||
menu: ["김치전"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "acb1c8dfed", | ||
order: 7, | ||
name: "오올라", | ||
menu: ["타코"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "07b72f1c8c", | ||
order: 8, | ||
name: "럭키비키", | ||
menu: ["감자치즈볼"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "91e0c4b1cb", | ||
order: 9, | ||
name: "츄러스앤디저트", | ||
menu: ["츄러스"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "64e499c2db", | ||
order: 10, | ||
name: "곱창좋은날", | ||
menu: ["순대곱창"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "b9f1d2a1f8", | ||
order: 11, | ||
name: "푸드캐스팅", | ||
menu: ["닭꼬치"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "a0dfb2e0a4", | ||
order: 12, | ||
name: "고스트", | ||
menu: ["스테이크"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "42ff792b54", | ||
order: 13, | ||
name: "믹스", | ||
menu: ["크림새우"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "7e66b6f57e", | ||
order: 14, | ||
name: "듀피에", | ||
menu: ["피자"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "1d673ae5f7", | ||
order: 15, | ||
name: "듀피에", | ||
menu: ["닭강정"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "b792fd7a32", | ||
order: 16, | ||
name: "그양반네", | ||
menu: ["타코야끼"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "40c1e5aee2", | ||
order: 17, | ||
name: "곰두마리", | ||
menu: ["닭강정"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "5f04b43167", | ||
order: 18, | ||
name: "아임스크림", | ||
menu: ["아이스크림"], | ||
place: "60주년기념관", | ||
}), | ||
new FoodTruck({ | ||
id: "dce6b5f90b", | ||
order: 19, | ||
name: "미스터블랙", | ||
menu: ["흑돼지덮밥"], | ||
place: "60주년기념관", | ||
}), | ||
]; | ||
|
||
export const FOODTRUCK_FUTURE_LIST: FoodTruck[] = [ | ||
new FoodTruck({ | ||
id: "dce6b5f90b", | ||
order: 1, | ||
name: "미스터블랙", | ||
menu: ["흑돼지덮밥"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "40c1e5aee2", | ||
order: 2, | ||
name: "닭강정", | ||
menu: ["닭강정"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "7e66b6f57e", | ||
order: 3, | ||
name: "진츄", | ||
menu: ["소프트아이스크림"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "b792fd7a32", | ||
order: 4, | ||
name: "그양반네", | ||
menu: ["타코야끼"], | ||
place: "미래광장", | ||
}), | ||
]; | ||
|
||
export const FOODTRUCK_HAMINSEOP_LIST: FoodTruck[] = [ | ||
new FoodTruck({ | ||
id: "dce6b5f90b1", | ||
order: 1, | ||
name: "미스터블랙", | ||
menu: ["흑돼지덮밥"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "40c1e5aee21", | ||
order: 2, | ||
name: "닭강정", | ||
menu: ["닭강정"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "7e66b6f57e1", | ||
order: 3, | ||
name: "진츄", | ||
menu: ["소프트아이스크림"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "b792fd7a321", | ||
order: 4, | ||
name: "그양반네", | ||
menu: ["타코야끼"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "random1", | ||
order: 5, | ||
name: "랜덤", | ||
menu: ["랜덤"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "random2", | ||
order: 6, | ||
name: "랜덤", | ||
menu: ["랜덤"], | ||
place: "미래광장", | ||
}), | ||
new FoodTruck({ | ||
id: "random3", | ||
order: 7, | ||
name: "랜덤", | ||
menu: ["랜덤"], | ||
place: "미래광장", | ||
}), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
const invalidImg = new URL("../../assets/data/invalid.png", import.meta.url).href; | ||
|
||
export type BoothPlaceType = "대운중앙노랑" | "대운상단초록" | "대운하단분홍" | "함인섭"; | ||
export type FoodtruckPlaceType = "60주년기념관" | "미래광장" | "함인섭광장"; | ||
|
||
export class Asset { | ||
id: string; | ||
order: number; | ||
name: string; | ||
date: number[] = [23, 24, 25]; | ||
visible: boolean = true; | ||
|
||
constructor({ | ||
id, | ||
order, | ||
name, | ||
visible, | ||
date = [23, 24, 25], | ||
}: { | ||
id: string; | ||
order: number; | ||
name: string; | ||
visible?: boolean; | ||
date?: number[]; | ||
}) { | ||
this.id = id; | ||
this.order = order; | ||
this.name = name; | ||
this.visible = visible ?? true; | ||
this.date = date; | ||
} | ||
} | ||
|
||
export class FoodTruck extends Asset { | ||
menu: string[]; | ||
place: FoodtruckPlaceType; | ||
constructor({ | ||
id, | ||
order, | ||
name, | ||
menu, | ||
place, | ||
visible, | ||
date = [23, 24, 25], | ||
}: { | ||
id: string; | ||
order: number; | ||
name: string; | ||
menu: string[]; | ||
place: FoodtruckPlaceType; | ||
visible?: boolean; | ||
date?: number[]; | ||
}) { | ||
super({ id, order, name, visible, date }); | ||
this.menu = menu; | ||
this.place = place; | ||
} | ||
} | ||
|
||
export interface SaleItems { | ||
item: string; | ||
price: { min: number | null; max: number | null } | null; | ||
} | ||
|
||
export class Booth extends Asset { | ||
description: string; | ||
saleItems: SaleItems[]; | ||
place: BoothPlaceType; | ||
image: string; | ||
constructor({ | ||
id, | ||
order, | ||
name, | ||
description, | ||
saleItems, | ||
place, | ||
imageName, | ||
visible, | ||
date = [23, 24, 25], | ||
}: { | ||
id: string; | ||
order: number; | ||
name: string; | ||
description: string; | ||
saleItems: SaleItems[]; | ||
place: BoothPlaceType; | ||
imageName?: string; | ||
visible?: boolean; | ||
date?: number[]; | ||
}) { | ||
super({ id, order, name, visible, date }); | ||
this.description = description; | ||
this.saleItems = saleItems; | ||
this.place = place; | ||
this.image = new URL( | ||
`../../assets/data/booth_image/${place === "함인섭" ? "haminseop" : "playground/" + (place === "대운중앙노랑" ? "middle_yellow_line" : place === "대운상단초록" ? "top_green_line" : "bottom_pink_line")}/${imageName ?? this.id}.jpg`, | ||
import.meta.url, | ||
).href; | ||
if (this.image.endsWith("undefined")) this.image = invalidImg; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Asset } from "../types/asset_types"; | ||
|
||
export const availableAsset = <T extends Asset>(assets: T[]) => { | ||
if (assets.length === 0) throw new Error("No assets"); | ||
if (assets.find((v) => v.date === undefined)) return assets[0]; | ||
|
||
const START_DATE = 23; | ||
const END_DATE = 25; | ||
const now = new Date(); | ||
const options = { timeZone: "Asia/Seoul" }; | ||
const seoulDate = new Date(now.toLocaleString("en-US", options)); | ||
const curDay = seoulDate.getDate(); | ||
|
||
if (curDay < START_DATE) { | ||
return assets.sort((a, b) => a.date![0] - b.date![0])[0]; | ||
} else if (curDay > END_DATE) { | ||
return assets.sort((a, b) => b.date![0] - a.date![0])[0]; | ||
} | ||
return assets.find((v) => v.date!.includes(curDay)) ?? assets[0]; | ||
}; |