mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
refactor(FE): Remove unused imports and redundant code
This commit is contained in:
Vendored
-3
@@ -1,6 +1,3 @@
|
||||
import { Area } from '@/types/api/master-data/area';
|
||||
import { Flock } from '@/types/api/master-data/flock';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import { Product } from '@type/api/master-data/product';
|
||||
import { Customer } from '@type/api/master-data/customer';
|
||||
|
||||
-2
@@ -1,6 +1,4 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseLocation } from '@/types/api/master-data/location';
|
||||
import { BaseUser } from '@/types/api/user';
|
||||
import { BaseKandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
export type BaseEmployee = {
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
import { SuccessApiResponse } from '@/types/api/api-general';
|
||||
|
||||
export interface Dashboard {
|
||||
statistics_data: DashboardStatisticsData[];
|
||||
charts: DashboardComparisonCharts | DashboardOverviewCharts;
|
||||
|
||||
Vendored
+3
-5
@@ -1,9 +1,7 @@
|
||||
import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseLocation, Location } from '@/types/api/master-data/location';
|
||||
import { BaseKandang, Kandang } from '@/types/api/master-data/kandang';
|
||||
import { BaseSupplier, Supplier } from '@/types/api/master-data/supplier';
|
||||
import { BaseNonstock, Nonstock } from '@/types/api/master-data/nonstock';
|
||||
import { BaseUser } from '@/types/api/user';
|
||||
import { BaseLocation } from '@/types/api/master-data/location';
|
||||
import { BaseSupplier } from '@/types/api/master-data/supplier';
|
||||
import { BaseNonstock } from '@/types/api/master-data/nonstock';
|
||||
|
||||
export type BaseExpense = {
|
||||
id: number;
|
||||
|
||||
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
import { BaseMetadata, CreatedUser } from '@/types/api/api-general';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Uom } from '@/types/api/master-data/uom';
|
||||
|
||||
-1
@@ -6,7 +6,6 @@ import {
|
||||
} from '@/types/api/api-general';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import { id } from 'react-day-picker/locale';
|
||||
import { Warehouse } from '@/types/api/master-data/warehouse';
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { BaseApiResponse, BaseMetadata, flags } from '@/types/api/api-general';
|
||||
import { BaseMetadata, flags } from '@/types/api/api-general';
|
||||
import { BaseUom } from '@/types/api/master-data/uom';
|
||||
import { BaseSupplier } from '@/types/api/master-data/supplier';
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Uom } from '@/types/api/master-data/uom';
|
||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||
import { BaseSupplier, Supplier } from '@/types/api/master-data/supplier';
|
||||
import { BaseSupplier } from '@/types/api/master-data/supplier';
|
||||
|
||||
export type BaseProduct = {
|
||||
id: number;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Kandang } from '@/type/master-data/kandang';
|
||||
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { BaseApproval } from '@/types/api/api-general';
|
||||
|
||||
export type BaseProjectFlockKandang = {
|
||||
|
||||
+2
-7
@@ -1,10 +1,5 @@
|
||||
import {
|
||||
BaseApiResponse,
|
||||
BaseMetadata,
|
||||
CreatedUser,
|
||||
flags,
|
||||
} from '@/types/api/api-general';
|
||||
import { BaseKandang, Kandang } from '@/types/api/master-data/kandang';
|
||||
import { BaseMetadata, CreatedUser } from '@/types/api/api-general';
|
||||
import { BaseKandang } from '@/types/api/master-data/kandang';
|
||||
import { WarehouseType } from '@/types/api/master-data/warehouse';
|
||||
|
||||
export type BaseTransferToLaying = {
|
||||
|
||||
Vendored
+1
-4
@@ -1,13 +1,10 @@
|
||||
import { BaseApiResponse, BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseCustomer, Customer } from '@/types/api/master-data/customer';
|
||||
import { BaseCustomer } from '@/types/api/master-data/customer';
|
||||
import {
|
||||
BaseWarehouseArea,
|
||||
BaseWarehouseKandang,
|
||||
BaseWarehouseLocation,
|
||||
Warehouse,
|
||||
} from '@/types/api/master-data/warehouse';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { Area } from '@/types/api/master-data/area';
|
||||
import { BaseProduct } from '@/types/api/master-data/product';
|
||||
import { BaseUser } from '@/types/api/user';
|
||||
|
||||
|
||||
-1
@@ -1,6 +1,5 @@
|
||||
import { BaseApproval, CreatedUser } from '@/types/api/api-general';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { Nonstock } from '@/types/api/master-data/nonstock';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user