From be6598a940284a1b5db1699b8c102f1848002b2d Mon Sep 17 00:00:00 2001 From: kkfluous Date: Wed, 1 Apr 2026 19:19:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E5=8A=A8=20types.ts=20?= =?UTF-8?q?=E5=92=8C=20api.ts=20=E5=88=B0=20modules/assets/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/App.tsx | 6 +++--- src/{ => modules/assets}/api.ts | 0 src/{ => modules/assets}/types.ts | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => modules/assets}/api.ts (100%) rename src/{ => modules/assets}/types.ts (100%) diff --git a/src/App.tsx b/src/App.tsx index 336c96c..92acf37 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,9 +31,9 @@ import { Cell, LabelList, } from 'recharts'; -import type { SummaryData, TypeSummary, VehicleListItem, DeptGroup, RegionGroup, CustomerStats, RegionalInventoryStats } from './types'; -import { fetchSummary, fetchByType, fetchVehicleList, fetchWeeklyDetail, fetchDeptStats, fetchRegionStats, fetchCustomerStats, fetchInventoryStats, fetchRegionChart } from './api'; -import type { WeeklyDetailItem } from './api'; +import type { SummaryData, TypeSummary, VehicleListItem, DeptGroup, RegionGroup, CustomerStats, RegionalInventoryStats } from './modules/assets/types'; +import { fetchSummary, fetchByType, fetchVehicleList, fetchWeeklyDetail, fetchDeptStats, fetchRegionStats, fetchCustomerStats, fetchInventoryStats, fetchRegionChart } from './modules/assets/api'; +import type { WeeklyDetailItem } from './modules/assets/api'; // --- SearchSelect Component --- function SearchSelect({ value, onChange, options, placeholder, className }: { diff --git a/src/api.ts b/src/modules/assets/api.ts similarity index 100% rename from src/api.ts rename to src/modules/assets/api.ts diff --git a/src/types.ts b/src/modules/assets/types.ts similarity index 100% rename from src/types.ts rename to src/modules/assets/types.ts