refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
-3
View File
@@ -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
View File
@@ -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
View File
@@ -1,5 +1,3 @@
import { SuccessApiResponse } from '@/types/api/api-general';
export interface Dashboard {
statistics_data: DashboardStatisticsData[];
charts: DashboardComparisonCharts | DashboardOverviewCharts;
+3 -5
View File
@@ -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;
-1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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 = {
+1 -4
View File
@@ -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
View File
@@ -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';