update for build
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { NamedRoutes } from '@/core';
|
||||
import { Routes } from '@angular/router';
|
||||
import config from 'src/config';
|
||||
|
||||
export type TPosAboutRouteNames = 'about';
|
||||
const baseRoute = `${config.isPosApplication ? '' : '/pos'}/about`;
|
||||
|
||||
export const posAboutNamedRoutes: NamedRoutes<TPosAboutRouteNames> = {
|
||||
about: {
|
||||
@@ -9,7 +11,7 @@ export const posAboutNamedRoutes: NamedRoutes<TPosAboutRouteNames> = {
|
||||
loadComponent: () => import('../../views/root.component').then((m) => m.PosAboutPageComponent),
|
||||
meta: {
|
||||
title: 'درباره سیستم',
|
||||
pagePath: () => '/pos/about',
|
||||
pagePath: () => baseRoute,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,23 +1,28 @@
|
||||
import { NamedRoutes } from '@/core';
|
||||
import { Routes } from '@angular/router';
|
||||
import config from 'src/config';
|
||||
|
||||
export type TPosSaleInvoicesRouteNames = 'saleInvoices' | 'saleInvoice';
|
||||
|
||||
const baseRoute = `${config.isPosApplication ? '' : '/pos'}/sale_invoices`;
|
||||
|
||||
export const posSaleInvoicesNamedRoutes: NamedRoutes<TPosSaleInvoicesRouteNames> = {
|
||||
saleInvoices: {
|
||||
path: 'sale_invoices',
|
||||
loadComponent: () => import('../../views/list.component').then((m) => m.PosSaleInvoicesComponent),
|
||||
loadComponent: () =>
|
||||
import('../../views/list.component').then((m) => m.PosSaleInvoicesComponent),
|
||||
meta: {
|
||||
title: 'فاکتورها',
|
||||
pagePath: () => `/pos/sale_invoices`,
|
||||
pagePath: () => baseRoute,
|
||||
},
|
||||
},
|
||||
saleInvoice: {
|
||||
path: 'sale_invoices/:invoiceId',
|
||||
loadComponent: () => import('../../views/single.component').then((m) => m.PosSaleInvoiceComponent),
|
||||
loadComponent: () =>
|
||||
import('../../views/single.component').then((m) => m.PosSaleInvoiceComponent),
|
||||
meta: {
|
||||
title: 'جزئیات فاکتور',
|
||||
pagePath: (invoiceId: string) => `/pos/sale_invoices/${invoiceId}`,
|
||||
pagePath: (invoiceId: string) => `${baseRoute}/${invoiceId}`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { NamedRoutes } from '@/core';
|
||||
import { Routes } from '@angular/router';
|
||||
import config from 'src/config';
|
||||
|
||||
export type TPosSupportRouteNames = 'support';
|
||||
const baseRoute = `${config.isPosApplication ? '' : '/pos'}/support`;
|
||||
|
||||
export const posSupportNamedRoutes: NamedRoutes<TPosSupportRouteNames> = {
|
||||
support: {
|
||||
@@ -10,7 +12,7 @@ export const posSupportNamedRoutes: NamedRoutes<TPosSupportRouteNames> = {
|
||||
import('../../views/root.component').then((m) => m.PosSupportPageComponent),
|
||||
meta: {
|
||||
title: 'پشتیبانی',
|
||||
pagePath: () => '/pos/support',
|
||||
pagePath: () => baseRoute,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user