260202_01_ENH: route 구조 초창기 기획으로 다시 변경 및 Category 별 하위 페이지에 샘플 데이터 모두 적용
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const BrandPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>Brand</div>;
|
||||
}
|
||||
|
||||
export default BrandPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const OwnershipPathPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>ownership path</div>;
|
||||
};
|
||||
|
||||
export default OwnershipPathPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const PenetrationChangePage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>PenetrationChange</div>
|
||||
}
|
||||
|
||||
export default PenetrationChangePage
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const ProfilePage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>Profile</div>
|
||||
}
|
||||
|
||||
export default ProfilePage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const PurchaseBehaviorPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>PurchaseBehavior</div>;
|
||||
};
|
||||
|
||||
export default PurchaseBehaviorPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const PurchaseChannelPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>PurchaseChannel</div>;
|
||||
};
|
||||
|
||||
export default PurchaseChannelPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const PurchaseFormatPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>PurchaseFormat</div>
|
||||
}
|
||||
|
||||
export default PurchaseFormatPage;
|
||||
@@ -1,12 +0,0 @@
|
||||
'use client'
|
||||
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
|
||||
const TypeSpecPage = () => {
|
||||
const { categoryValue } = useLayoutFilter();
|
||||
console.log(categoryValue);
|
||||
|
||||
return <div>TypeSpec</div>
|
||||
}
|
||||
|
||||
export default TypeSpecPage;
|
||||
7
src/app/(pages)/(main)/category/air-solution/page.tsx
Normal file
7
src/app/(pages)/(main)/category/air-solution/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import CategoryPage from "@/components/lge-dashboard/sub-page/CategoryPage";
|
||||
|
||||
const AirSolutionPage = () => {
|
||||
return <CategoryPage/>
|
||||
}
|
||||
|
||||
export default AirSolutionPage;
|
||||
7
src/app/(pages)/(main)/category/ha-kitchen/page.tsx
Normal file
7
src/app/(pages)/(main)/category/ha-kitchen/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import CategoryPage from "@/components/lge-dashboard/sub-page/CategoryPage";
|
||||
|
||||
const HaKitchenPage = () => {
|
||||
return <CategoryPage/>
|
||||
}
|
||||
|
||||
export default HaKitchenPage;
|
||||
7
src/app/(pages)/(main)/category/ha-living/page.tsx
Normal file
7
src/app/(pages)/(main)/category/ha-living/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import CategoryPage from "@/components/lge-dashboard/sub-page/CategoryPage";
|
||||
|
||||
const HaLivingPage = () => {
|
||||
return <CategoryPage/>
|
||||
}
|
||||
|
||||
export default HaLivingPage;
|
||||
7
src/app/(pages)/(main)/category/ms-digital/page.tsx
Normal file
7
src/app/(pages)/(main)/category/ms-digital/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import CategoryPage from "@/components/lge-dashboard/sub-page/CategoryPage";
|
||||
|
||||
const MsDigitalPage = () => {
|
||||
return <CategoryPage/>
|
||||
}
|
||||
|
||||
export default MsDigitalPage;
|
||||
@@ -10,20 +10,16 @@ import {
|
||||
apiOwnShareOfTotalPenetration,
|
||||
apiTrendCategories
|
||||
} from "@/config/sample.data";
|
||||
import LifeStageDiv from "@/components/lge-dashboard/sub-page/LifeStageDiv";
|
||||
import LifeStageDiv from "@/components/lge-dashboard/combo/LifeStageDiv";
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
import {formatRowLabel} from "@/lib/lg-dashboard";
|
||||
|
||||
const LGPenetrationPage = () => {
|
||||
const { totalValue } = useLayoutFilter();
|
||||
console.log(totalValue);
|
||||
|
||||
const displayRowLabel = (i:number, rowLabel: string) => {
|
||||
if (rowLabel === "gap") return "전년 대비 GAP(%)";
|
||||
return rowLabel;
|
||||
};
|
||||
const { isTotal, filterValue } = useLayoutFilter();
|
||||
console.log(filterValue);
|
||||
|
||||
const productTableRows: TopChartTableRow[] = apiOwnShareOfTotalPenetration.map((row, i) => ({
|
||||
label: displayRowLabel(i, row.rowLabel),
|
||||
label: formatRowLabel(row.rowLabel),
|
||||
values: PRODUCT_KEYS.map((k) => (row as any)[k] ?? null),
|
||||
}));
|
||||
|
||||
|
||||
@@ -11,18 +11,14 @@ import {
|
||||
} from "@/components/lge-dashboard";
|
||||
import { apiOwnShareOfTotalPurchase, apiTrendBuy} from "@/config/sample.data";
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
import {formatRowLabel} from "@/lib/lg-dashboard";
|
||||
|
||||
const LGPurchasePage = () => {
|
||||
const { totalValue } = useLayoutFilter();
|
||||
console.log(totalValue);
|
||||
|
||||
const displayRowLabel = (i:number, rowLabel: string) => {
|
||||
if (rowLabel === "gap") return "전년 대비 GAP(%)";
|
||||
return rowLabel;
|
||||
};
|
||||
const { isTotal, filterValue } = useLayoutFilter();
|
||||
console.log(filterValue);
|
||||
|
||||
const purchaseTableRows: TopChartTableRow[] = apiOwnShareOfTotalPurchase.map((row, i) => ({
|
||||
label: displayRowLabel(i, row.rowLabel),
|
||||
label: formatRowLabel(row.rowLabel),
|
||||
values: PRODUCT_KEYS.map((k) => (row as any)[k] ?? null),
|
||||
}));
|
||||
|
||||
|
||||
@@ -11,21 +11,17 @@ import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
import {apiBrandByYearCategories, apiTrendCategories} from "@/config/sample.data";
|
||||
import {Button} from "@/components/ui/button";
|
||||
import {BRAND_LIST, PRODUCT_KEYS, PRODUCTS, YEARS, AXIS_HIDE_STYLE, GRID_X_NOT_PADDING} from "@/const/lgConst";
|
||||
import {formatRowLabel} from "@/lib/lg-dashboard";
|
||||
|
||||
|
||||
const PenetrationPage = () => {
|
||||
const { totalValue, registerExcelExporter } = useLayoutFilter();
|
||||
console.log(totalValue);
|
||||
const { isTotal, filterValue, registerExcelExporter } = useLayoutFilter();
|
||||
console.log(filterValue);
|
||||
|
||||
const [isBrandShare, setIsBrandShare] = useState<boolean>(false);
|
||||
|
||||
const displayRowLabel = (i:number, rowLabel: string) => {
|
||||
if (rowLabel === "gap") return "전년 대비 GAP(%)";
|
||||
return rowLabel;
|
||||
};
|
||||
|
||||
const productTableRows: TopChartTableRow[] = apiTrendCategories.map((row, i) => ({
|
||||
label: displayRowLabel(i, row.rowLabel),
|
||||
label: formatRowLabel(row.rowLabel),
|
||||
values: PRODUCT_KEYS.map((k) => (row as any)[k] ?? null),
|
||||
}));
|
||||
|
||||
|
||||
@@ -8,18 +8,14 @@ import {
|
||||
} from "@/components/lge-dashboard";
|
||||
import {apiTrendBuy} from "@/config/sample.data";
|
||||
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
|
||||
import {formatRowLabel} from "@/lib/lg-dashboard";
|
||||
|
||||
const PurchasePage = () => {
|
||||
const { totalValue } = useLayoutFilter();
|
||||
console.log(totalValue);
|
||||
|
||||
const displayRowLabel = (i:number, rowLabel: string) => {
|
||||
if (rowLabel === "gap") return "전년 대비 GAP(%)";
|
||||
return rowLabel;
|
||||
};
|
||||
const { isTotal, filterValue } = useLayoutFilter();
|
||||
console.log(filterValue);
|
||||
|
||||
const purchaseTableRows: TopChartTableRow[] = apiTrendBuy.map((row, i) => ({
|
||||
label: displayRowLabel(i, row.rowLabel),
|
||||
label: formatRowLabel(row.rowLabel),
|
||||
values: PRODUCT_KEYS.map((k) => (row as any)[k] ?? null),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user