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:
+29
-17
@@ -1,23 +1,35 @@
|
||||
import { CUSTOMERS_ROUTES } from '@/modules/customers/constants';
|
||||
import { INVENTORIES_ROUTES } from '@/modules/inventories/constants';
|
||||
import { PRODUCT_BRANDS_ROUTES } from '@/modules/productBrands/constants';
|
||||
import { PRODUCT_CATEGORIES_ROUTES } from '@/modules/productCategories/constants';
|
||||
import { STORES_ROUTES } from '@/modules/stores/constants';
|
||||
import { SUPPLIERS_ROUTES } from '@/modules/suppliers/constants';
|
||||
import { USERS_ROUTES } from '@/modules/users/constants';
|
||||
import { Routes } from '@angular/router';
|
||||
import { AppLayout } from './app/layout/component/app.layout';
|
||||
import { AppLayout } from './app/layout/component/app.layout.component';
|
||||
import { Dashboard } from './app/pages/dashboard/dashboard';
|
||||
import { Documentation } from './app/pages/documentation/documentation';
|
||||
import { Landing } from './app/pages/landing/landing';
|
||||
import { Notfound } from './app/pages/notfound/notfound';
|
||||
import { Notfound } from './app/pages/notfound/notfound.component';
|
||||
|
||||
export const appRoutes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: AppLayout,
|
||||
children: [
|
||||
{ path: '', component: Dashboard },
|
||||
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
||||
{ path: 'documentation', component: Documentation },
|
||||
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') }
|
||||
]
|
||||
},
|
||||
{ path: 'landing', component: Landing },
|
||||
{ path: 'notfound', component: Notfound },
|
||||
{ path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
||||
{ path: '**', redirectTo: '/notfound' }
|
||||
{
|
||||
path: '',
|
||||
component: AppLayout,
|
||||
children: [
|
||||
{ path: '', component: Dashboard },
|
||||
...USERS_ROUTES,
|
||||
...STORES_ROUTES,
|
||||
...SUPPLIERS_ROUTES,
|
||||
...PRODUCT_BRANDS_ROUTES,
|
||||
...PRODUCT_CATEGORIES_ROUTES,
|
||||
...CUSTOMERS_ROUTES,
|
||||
...INVENTORIES_ROUTES,
|
||||
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
||||
{ path: 'documentation', component: Documentation },
|
||||
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
|
||||
],
|
||||
},
|
||||
{ path: 'notfound', component: Notfound },
|
||||
{ path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
||||
{ path: '**', redirectTo: '/notfound' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user