feat: Implement product categories, stores, suppliers, and users management features
- Added ProductCategoriesService for handling product category API interactions. - Created components for listing and viewing product categories. - Implemented UI for managing product categories with a data list component. - Developed StoresService for managing store-related API calls. - Created components for listing and viewing stores with appropriate UI. - Added SuppliersService for handling supplier API interactions. - Implemented components for managing suppliers with a data list component. - Developed UsersService for managing user-related API calls. - Created components for listing and viewing users with appropriate UI. - Enhanced not found page with improved layout and navigation options.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const baseUrl = '/api/v1/inventories';
|
||||
|
||||
export const INVENTORIES_API_ROUTES = {
|
||||
list: () => `${baseUrl}`,
|
||||
single: (inventoryId: string) => `${baseUrl}/${inventoryId}`,
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './apiRoutes';
|
||||
export * from './routes';
|
||||
@@ -0,0 +1,25 @@
|
||||
import { NamedRoutes } from '@/core';
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
export type TInventoriesRouteNames = 'inventories' | 'inventory';
|
||||
|
||||
export const inventoriesNamedRoutes: NamedRoutes<TInventoriesRouteNames> = {
|
||||
inventories: {
|
||||
path: 'inventories',
|
||||
loadComponent: () => import('../../views/list.component').then((m) => m.InventoriesComponent),
|
||||
meta: {
|
||||
title: 'انبارها',
|
||||
pagePath: () => '/inventories',
|
||||
},
|
||||
},
|
||||
inventory: {
|
||||
path: 'inventories/:inventoryId',
|
||||
loadComponent: () => import('../../views/single.component').then((m) => m.InventoryComponent),
|
||||
meta: {
|
||||
title: 'انبار',
|
||||
pagePath: () => '/inventories/:inventoryId',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const INVENTORIES_ROUTES: Routes = Object.values(inventoriesNamedRoutes);
|
||||
Reference in New Issue
Block a user