f671e37b14
- Implemented bank accounts management with form and list components. - Added bank branches management with form and list components. - Created services for bank accounts and branches to handle API interactions. - Updated routing to include bank accounts and branches. - Enhanced UI with new select fields for banks and branches. - Added necessary models and constants for bank accounts and branches. - Improved state management for banks using a store pattern. - Updated menu items to include links for bank accounts and branches.
54 lines
2.1 KiB
TypeScript
54 lines
2.1 KiB
TypeScript
import { AuthComponent } from '@/modules/auth/pages/auth.component';
|
|
import { BANK_ACCOUNTS_ROUTES } from '@/modules/bankAccounts/constants';
|
|
import { BANK_BRANCHES_ROUTES } from '@/modules/bankBranches/constants';
|
|
import { CARDEX_ROUTES } from '@/modules/cardex/constants';
|
|
import { CUSTOMERS_ROUTES } from '@/modules/customers/constants';
|
|
import { INVENTORIES_ROUTES } from '@/modules/inventories/constants';
|
|
import { POSComponent } from '@/modules/pos/views/pos.component';
|
|
import { PRODUCT_BRANDS_ROUTES } from '@/modules/productBrands/constants';
|
|
import { PRODUCT_CATEGORIES_ROUTES } from '@/modules/productCategories/constants';
|
|
import { PRODUCTS_ROUTES } from '@/modules/products/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.component';
|
|
import { Dashboard } from './app/pages/dashboard/dashboard';
|
|
import { Documentation } from './app/pages/documentation/documentation';
|
|
import { Notfound } from './app/pages/notfound/notfound.component';
|
|
|
|
export const appRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: AppLayout,
|
|
children: [
|
|
{ path: '', component: Dashboard },
|
|
...USERS_ROUTES,
|
|
...STORES_ROUTES,
|
|
...SUPPLIERS_ROUTES,
|
|
...PRODUCT_BRANDS_ROUTES,
|
|
...PRODUCT_CATEGORIES_ROUTES,
|
|
...CUSTOMERS_ROUTES,
|
|
...INVENTORIES_ROUTES,
|
|
...PRODUCTS_ROUTES,
|
|
...CARDEX_ROUTES,
|
|
...BANK_BRANCHES_ROUTES,
|
|
...BANK_ACCOUNTS_ROUTES,
|
|
{ path: 'uikit', loadChildren: () => import('./app/pages/uikit/uikit.routes') },
|
|
{ path: 'documentation', component: Documentation },
|
|
{ path: 'pages', loadChildren: () => import('./app/pages/pages.routes') },
|
|
],
|
|
},
|
|
{
|
|
path: 'pos',
|
|
component: POSComponent,
|
|
},
|
|
{
|
|
path: 'auth',
|
|
component: AuthComponent,
|
|
},
|
|
{ path: 'notfound', component: Notfound },
|
|
// { path: 'auth', loadChildren: () => import('./app/pages/auth/auth.routes') },
|
|
{ path: '**', redirectTo: '/notfound' },
|
|
];
|