260326_01_ENH: 일부 설정 파일들 리펙토링
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { CHART_GRID_DEFAULTS, BAR_WIDTHS } from "@/const/chartConst";
|
||||
import { AXIS_HIDE_Y_STYLE, BAR_WIDTHS, CHART_GRID_DEFAULTS } from "@/components/lge-dashboard/chart/chart.config";
|
||||
import {ChartData, NewNumber} from "@/components/lge-dashboard";
|
||||
import {AXIS_HIDE_Y_STYLE} from "@/const/lgConst";
|
||||
|
||||
export function reverseCategories<T extends ChartData>(data: T): T {
|
||||
const categories = [...data.categories].reverse();
|
||||
|
||||
@@ -4,16 +4,12 @@ import {
|
||||
BannerRow, BuildPageModeConfigResult,
|
||||
ProductResponse, ProductRow,
|
||||
StatisticsRequest
|
||||
} from "@/types/lg";
|
||||
} from "@/types/lg.types";
|
||||
import {ChartData} from "@/components/lge-dashboard";
|
||||
import {
|
||||
API_DECIMAL_POINT,
|
||||
BANNER_GROUP,
|
||||
BANNER_KEYS,
|
||||
CATEGORY_PAGE_FIELDS,
|
||||
GAP_WORDING,
|
||||
PRODUCT_KEYS, VIEW_DECIMAL_POINT
|
||||
} from "@/const/lgConst";
|
||||
import {API_DECIMAL_POINT, GAP_WORDING, VIEW_DECIMAL_POINT} from "@/const/lg-common.const";
|
||||
import {BANNER_GROUP, BANNER_KEYS} from "@/const/lg-banner.const";
|
||||
import {PRODUCT_KEYS} from "@/const/lg-product.const";
|
||||
import {CATEGORY_PAGE_FIELDS} from "@/config/lg-page.config";
|
||||
import {formatNumber} from "@/lib/utils";
|
||||
import {nextApi} from "@/lib/http-client";
|
||||
import {CategoryFilterValue} from "@/components/layout/CategoryFilter";
|
||||
@@ -533,4 +529,4 @@ export const buildPageModeConfig = (
|
||||
const variableIdMap = Object.fromEntries(fields.map((f) => [f.requestKeyResolved, f.qid])) as Record<string, string>;
|
||||
|
||||
return { fields, variableIdMap };
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user