mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +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",
|
"tailwindcss": "^4",
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1798,4 +1798,4 @@
|
|||||||
"fcr": 2.2
|
"fcr": 2.2
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,21 @@
|
|||||||
/**
|
/**
|
||||||
* Dummy data for DashboardProduction
|
* Dummy data for DashboardProduction
|
||||||
* Generated from: dashboard.production.dummy.json
|
* Generated from: dashboard.production.dummy.json
|
||||||
*
|
*
|
||||||
* This file is auto-generated. Do not edit manually.
|
* 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 { BaseApiResponse } from '@/types/api/api-general';
|
||||||
import dummyData from './dashboard.production.dummy.json';
|
import dummyData from './dashboard.production.dummy.json';
|
||||||
|
|
||||||
@@ -13,7 +23,9 @@ import dummyData from './dashboard.production.dummy.json';
|
|||||||
* Get dummy DashboardProduction data
|
* Get dummy DashboardProduction data
|
||||||
* @returns Promise with BaseApiResponse containing DashboardProduction
|
* @returns Promise with BaseApiResponse containing DashboardProduction
|
||||||
*/
|
*/
|
||||||
export async function getDummySingle(): Promise<BaseApiResponse<DashboardProduction>> {
|
export async function getDummySingle(): Promise<
|
||||||
|
BaseApiResponse<DashboardProduction>
|
||||||
|
> {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resolve({
|
resolve({
|
||||||
|
|||||||
+1
-1
@@ -49,4 +49,4 @@ export interface DashboardProductionProductionChartsFlocks {
|
|||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
data: number;
|
data: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user