Skip to content

Commit

Permalink
Merge pull request #69 from Weflo-A/develop
Browse files Browse the repository at this point in the history
[Feat]: 부품 배포
  • Loading branch information
ymj07168 authored Mar 7, 2024
2 parents 9d27f58 + bbc3103 commit a0eb8de
Show file tree
Hide file tree
Showing 35 changed files with 1,910 additions and 25 deletions.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="root">
</div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
14 changes: 11 additions & 3 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import DroneSearchPage from './pages/DroneSearhPage';
import NavBar from './components/common/NavBar';
import EstimatePage from './pages/EstimatePage';
import DashBoard from './pages/DashBoard';
import CostPartPage from './pages/CostPartPage';
import EstimatePartPage from './pages/EstimatePartPage';
import PurchasePartPage from './pages/PurchasePartPage';
import TestDetailPage from './pages/TestDetailPage';

const Router = () => {
Expand All @@ -25,7 +28,7 @@ const Router = () => {
<Route path='/trade' element={<DroneSearchPage />} />
{/* 드론 [대시보드, 견적서, 부품], 중고거래 */}
<Route
path='/drone-group/:groupId/drone/:id/dashboard'
path='/drone-group/drone/:id/dashboard'
element={<DashBoard />}
/>
<Route
Expand All @@ -40,9 +43,14 @@ const Router = () => {
path='/drone-group/:groupId/drone/:id/estimate'
element={<EstimatePage />}
/>
<Route path='/drone-group/drone/1/parts' element={<CostPartPage />} />
<Route
path='/drone-group/:groupId/drone/:id/parts'
element={<DroneSearchPage />}
path='/drone-group/drone/2/parts'
element={<EstimatePartPage />}
/>
<Route
path='/drone-group/drone/3/parts'
element={<PurchasePartPage />}
/>
</Routes>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion src/assets/data/filterData.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface FilterDataType {
id: string;
label: string;
filterName: string; // 필터명 추가
filterName: string;
}

export const modelFilterData: FilterDataType[] = [
Expand Down
11 changes: 11 additions & 0 deletions src/assets/data/menuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@ export const groups: Group[] = [
],
},
];

export const parts: Group[] = [
{
name: '부품',
drones: [
{ id: 1, name: '투입 비용 현황' },
{ id: 2, name: '부품 예측 관리' },
{ id: 3, name: '부품 구매' },
],
},
];
18 changes: 18 additions & 0 deletions src/assets/data/periodData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export const periodData = [
{
id: 0,
period: '1주',
},
{
id: 0,
period: '1주 ~ 2주',
},
{
id: 0,
period: '2주 ~ 1개월',
},
{
id: 0,
period: '1개월 ~ 3개월',
},
];
59 changes: 59 additions & 0 deletions src/assets/data/productData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
export interface Product {
id: number;
store: string;
name: string;
price: number;
rank: number;
image: string;
category: Category;
}

export type Category = 'all' | 'blade' | 'motor' | 'esc' | 'other';

export const productData: Product[] = [
{
id: 1,
store: 'A 스토어',
name: '4pcs / 2pairs Gemfan 51499 허리케인 블레이드 프로펠러',
price: 135000,
rank: 4.1,
image: '',
category: 'blade',
},
{
id: 2,
store: 'B 스토어',
name: '어쩌고 블레이드 프로펠러',
price: 135000,
rank: 4.1,
image: '',
category: 'motor',
},
{
id: 3,
store: 'B 스토어',
name: '뭐시기 블레이드 프로펠러',
price: 135000,
rank: 4.1,
image: '',
category: 'blade',
},
{
id: 4,
store: 'C 스토어',
name: '어쩌고 블레이드 프로펠러 어쩌고',
price: 135000,
rank: 4.1,
image: '',
category: 'esc',
},
{
id: 5,
store: 'D 스토어',
name: '뭐시기 블레이드 프로펠러 뭐시기',
price: 135000,
rank: 4.1,
image: '',
category: 'blade',
},
];
5 changes: 5 additions & 0 deletions src/assets/icon/BiggerBlue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icon/Blade.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icon/BladeAccent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/assets/icon/ESC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a0eb8de

Please sign in to comment.