]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/acq/routing.module.ts
LP 2061136 follow-up: ng lint --fix
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / acq / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminAcqSplashComponent} from './admin-acq-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {ClaimingAdminComponent} from './claiming-admin.component';
6 import {FiscalYearAdminComponent} from './fiscal-year-admin.component';
7
8 const routes: Routes = [{
9     path: 'splash',
10     component: AdminAcqSplashComponent
11 }, {
12     path: 'edi_account',
13     component: BasicAdminPageComponent,
14     data: [{
15         schema: 'acq',
16         table: 'edi_account',
17         fieldOrder: 'id,label,provider,owner,account,vendacct,vendcode,last_activity,host,username,password,path,in_dir,use_attrs,attr_set',
18         readonlyFields: 'last_activity'
19     }]
20 }, {
21     path: 'claiming',
22     component: ClaimingAdminComponent
23 }, {
24     path: 'claim_event_type',
25     redirectTo: 'claiming' // from legacy auto-generated admin page
26 }, {
27     path: 'claim_policy',
28     redirectTo: 'claiming' // from legacy auto-generated admin page
29 }, {
30     path: 'claim_policy_action',
31     redirectTo: 'claiming' // from legacy auto-generated admin page
32 }, {
33     path: 'claim_type',
34     redirectTo: 'claiming' // from legacy auto-generated admin page
35 }, {
36     path: 'currency',
37     loadChildren: () =>
38         import('./currency/currencies.module').then(m => m.CurrenciesModule)
39 }, {
40     path: 'currency_type',
41     redirectTo: 'currency' // from auto-generated admin page
42 }, {
43     path: 'exchange_rate',
44     redirectTo: 'currency' // from auto-generated admin page
45 }, {
46     path: 'distribution_formula',
47     loadChildren: () =>
48         import('./distribution_formula/distribution-formulas.module').then(m => m.DistributionFormulasModule)
49 }, {
50     path: 'edi_attr_set',
51     loadChildren: () =>
52         import('./edi_attr_set/edi-attr-sets.module').then(m => m.EdiAttrSetsModule)
53 }, {
54     path: 'fiscal-year-admin',
55     component: FiscalYearAdminComponent
56 }, {
57     path:'fiscal_calendar',
58     redirectTo: 'fiscal-year-admin' // from legacy auto-generated admin page
59 }, {
60     path:'fiscal_year',
61     redirectTo: 'fiscal-year-admin' // from legacy auto-generated admin page
62 }, {
63     path: 'funds',
64     loadChildren: () =>
65         import('./funds/funds.module').then(m => m.FundsModule)
66 }, {
67     path: 'fund',
68     redirectTo: 'funds' // from auto-generated admin page
69 }, {
70     path: 'fund_allocation',
71     redirectTo: 'funds' // from auto-generated admin page
72 }, {
73     path: 'fund_allocation_percent',
74     redirectTo: 'funds' // from auto-generated admin page
75 }, {
76     path: 'fund_debit',
77     redirectTo: 'funds' // from auto-generated admin page
78 }, {
79     path: 'funding_source',
80     redirectTo: 'funds' // from auto-generated admin page
81 }, {
82     path: 'funding_source_credit',
83     redirectTo: 'funds' // from auto-generated admin page
84 }, {
85     path: 'fund_tag',
86     redirectTo: 'funds' // from auto-generated admin page
87 }, {
88     path: 'fund_tag_map',
89     redirectTo: 'funds' // from auto-generated admin page
90 }, {
91     path: 'fund_transfer',
92     redirectTo: 'funds' // from auto-generated admin page
93 }, {
94     path: ':table',
95     component: BasicAdminPageComponent,
96     // All ACQ admin pages cover data in the acq.* schema.  No need to
97     // duplicate it within the URL path.  Pass it manually instead.
98     data: [{schema: 'acq'}]
99 }];
100
101 @NgModule({
102     imports: [RouterModule.forChild(routes)],
103     exports: [RouterModule]
104 })
105
106 export class AdminAcqRoutingModule {}