mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-390): slicing UI and API integration for production dashboard
This commit is contained in:
+1
-1
@@ -51,4 +51,4 @@
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1798,4 +1798,4 @@
|
||||
"fcr": 2.2
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
/**
|
||||
* Dummy data for DashboardProduction
|
||||
* Generated from: dashboard.production.dummy.json
|
||||
*
|
||||
*
|
||||
* This file is auto-generated. Do not edit manually.
|
||||
*/
|
||||
|
||||
import { DashboardProductionStatisticsData, DashboardProductionProductionChartsFlocks, DashboardProductionProductionCharts, DashboardProductionStandardProductionsStandards, DashboardProductionStandardProductions, DashboardProductionFcrDataFlock, DashboardProductionEggWeights, DashboardProductionFcrData, DashboardProduction } from '../../types/api/dashboard/dashboard-production';
|
||||
import {
|
||||
DashboardProductionStatisticsData,
|
||||
DashboardProductionProductionChartsFlocks,
|
||||
DashboardProductionProductionCharts,
|
||||
DashboardProductionStandardProductionsStandards,
|
||||
DashboardProductionStandardProductions,
|
||||
DashboardProductionFcrDataFlock,
|
||||
DashboardProductionEggWeights,
|
||||
DashboardProductionFcrData,
|
||||
DashboardProduction,
|
||||
} from '../../types/api/dashboard/dashboard-production';
|
||||
import { BaseApiResponse } from '@/types/api/api-general';
|
||||
import dummyData from './dashboard.production.dummy.json';
|
||||
|
||||
@@ -13,7 +23,9 @@ import dummyData from './dashboard.production.dummy.json';
|
||||
* Get dummy DashboardProduction data
|
||||
* @returns Promise with BaseApiResponse containing DashboardProduction
|
||||
*/
|
||||
export async function getDummySingle(): Promise<BaseApiResponse<DashboardProduction>> {
|
||||
export async function getDummySingle(): Promise<
|
||||
BaseApiResponse<DashboardProduction>
|
||||
> {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
|
||||
+1
-1
@@ -49,4 +49,4 @@ export interface DashboardProductionProductionChartsFlocks {
|
||||
id: number;
|
||||
name: string;
|
||||
data: number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user