260129_01_ENH: 카테고리 파트 layout 및 route 구조 변경
This commit is contained in:
@@ -141,4 +141,15 @@ export const categoryTarget: CategoryTargetItem[] = [
|
||||
{ target: CategoryTargetData.PURCHASE_FORMAT, label: "구매 형식"},
|
||||
]
|
||||
},
|
||||
]
|
||||
]
|
||||
|
||||
export const TARGET_SLUG: Record<CategoryTargetData, string> = {
|
||||
[CategoryTargetData.PROFILE]: "profile",
|
||||
[CategoryTargetData.BRAND]: "brand",
|
||||
[CategoryTargetData.TYPE_SPEC]: "type-spec",
|
||||
[CategoryTargetData.PURCHASE_FORMAT]: "purchase-format",
|
||||
[CategoryTargetData.PENETRATION_CHANGE]: "penetration-change",
|
||||
[CategoryTargetData.OWNERSHIP_PATH]: "ownership-path",
|
||||
[CategoryTargetData.PURCHASE_BEHAVIOR]: "purchase-behavior",
|
||||
[CategoryTargetData.PURCHASE_CHANNEL]: "purchase-channel",
|
||||
};
|
||||
@@ -10,7 +10,7 @@ export const topMenus: TopMenuItem[] = [
|
||||
{
|
||||
id: "category",
|
||||
label: "카테고리",
|
||||
path: "/category/ha-kitchen",
|
||||
path: "/category/ha-kitchen/profile",
|
||||
match: (pathname) => pathname.startsWith("/category"),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user