260129_01_ENH: 카테고리 파트 layout 및 route 구조 변경

This commit is contained in:
2026-01-29 13:42:42 +09:00
parent d48decab52
commit 4b40c43962
34 changed files with 508 additions and 309 deletions

View File

@@ -1,11 +1,7 @@
// sample.data.ts
import {
ProductKey,
BannerKey,
ServerBannerRow,
ServerProductRow,
} from "@/components/lge-dashboard";
import {PRODUCT_KEY_MAP} from "@/components/lge-dashboard";
import {PRODUCT_KEY_MAP} from "@/const/lgConst";
import {BannerKey, ProductKey, ServerBannerRow, ServerProductRow} from "@/types/lg";
const PRODUCT_KEYS = Object.keys(PRODUCT_KEY_MAP) as ProductKey[];
@@ -270,36 +266,23 @@ export const apiOwnShareOfTotalPurchase: ServerProductRow[] = [
];
export const apiLifeStageByProduct: ServerBannerRow[] = [
bannerRow(26, "냉장고", 1200),
bannerRow(26, "세탁기", 1100),
bannerRow(26, "에어컨", 900),
bannerRow(26, "TV", 950),
bannerRow(26, "청소기", 1000),
bannerRow(26, "김치 냉장고", 700),
bannerRow(26, "공기 청정기", 800),
bannerRow(26, "가습기", 650),
bannerRow(26, "제습기", 600),
bannerRow(26, "건조기", 500),
bannerRow(26, "식기세척기", 450),
bannerRow(26, "의류 관리기", 320),
bannerRow(26, "로봇 청소기", 420),
];
export const apiLifeStageByProductForGauge: ServerBannerRow[] = [
bannerRow(26, "냉장고", 1200, {min:10, max:99}),
bannerRow(26, "세탁기", 1100, {min:10, max:99}),
bannerRow(26, "에어컨", 900, {min:10, max:99}),
bannerRow(26, "TV", 950, {min:10, max:99}),
bannerRow(26, "청소기", 1000, {min:10, max:99}),
bannerRow(26, "김치 냉장고", 700, {min:10, max:99}),
bannerRow(26, "공기 청정기", 800, {min:10, max:99}),
bannerRow(26, "가습기", 650, {min:10, max:99}),
bannerRow(26, "제습기", 600, {min:10, max:99}),
bannerRow(26, "건조기", 500, {min:10, max:99}),
bannerRow(26, "TV", 950, {min:10, max:99}),
bannerRow(26, "김치 냉장고", 700, {min:10, max:99}),
bannerRow(26, "식기세척기", 450, {min:10, max:99}),
bannerRow(26, "의류 관리기", 320, {min:10, max:99}),
bannerRow(26, "청소기", 1000, {min:10, max:99}),
bannerRow(26, "공기 청정기", 800, {min:10, max:99}),
bannerRow(26, "정수기", 800, {min:10, max:99}),
bannerRow(26, "로봇 청소기", 420, {min:10, max:99}),
bannerRow(26, "음식물처리기", 420, {min:10, max:99}),
];
/** ---------------------------
* API #6
* year rowLabel total banner