]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
LP 2061136 follow-up: ng lint --fix
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminServerSplashComponent} from './admin-server-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {OrgUnitTypeComponent} from './org-unit-type.component';
6 import {CustomOrgUnitTreesComponent} from './custom-org-unit-trees.component';
7 import {PrintTemplateComponent} from './print-template.component';
8 import {PermGroupTreeComponent} from './perm-group-tree.component';
9
10 const routes: Routes = [{
11     path: 'splash',
12     component: AdminServerSplashComponent
13 }, {
14     path: 'actor/org_unit_type',
15     component: OrgUnitTypeComponent
16 }, {
17     path: 'actor/custom_org_unit_trees',
18     component: CustomOrgUnitTreesComponent
19 }, {
20     path: 'config/coded_value_map',
21     loadChildren: () =>
22         import('./coded-value-maps/coded-value-maps.module').then(m => m.CodedValueMapsModule)
23 }, {
24     path: 'config/record_attr_definition',
25     loadChildren: () =>
26         import('./record-attr-definitions/record-attr-definitions.module').then(m => m.RecordAttrDefinitionsModule)
27 }, {
28     path: 'authority/control_set_authority_field',
29     loadChildren: () =>
30         import('./control-set-authority-fields/control-set-authority-fields.module').then(m => m.CSAuthorityFieldsModule)
31 }, {
32     path: 'config/floating_group',
33     loadChildren: () =>
34         import('./floating-group/floating-group.module').then(m => m.FloatingGroupModule)
35 }, {
36     path: 'config/hard_due_date',
37     component: BasicAdminPageComponent,
38     data: [{
39         schema: 'config',
40         table: 'hard_due_date',
41         fieldOrder: 'name,owner,ceiling_date,forceto'
42     }]
43 }, {
44     path: 'config/print_template',
45     component: PrintTemplateComponent
46 }, {
47     path: 'config/rule_recurring_fine',
48     component: BasicAdminPageComponent,
49     data: [{
50         schema: 'config',
51         table: 'rule_recurring_fine',
52         fieldOrder: 'name,low,normal,high,recurrence_interval,grace_period'
53     }]
54 }, {
55     path: 'config/z3950_source',
56     component: BasicAdminPageComponent,
57     data: [{
58         schema: 'config',
59         table: 'z3950_source',
60         fieldOrder: 'name,label,host,port,db,record_format,transmission_format,auth,use_perm'
61     }]
62 }, {
63     path: 'permission/grp_tree',
64     component: PermGroupTreeComponent
65 }, {
66     path: 'actor/org_unit',
67     loadChildren: () =>
68         import('./org-unit.module').then(m => m.OrgUnitModule)
69 }, {
70     path: 'actor/org_unit_proximity_adjustment',
71     component: BasicAdminPageComponent,
72     data: [{schema: 'actor',
73         table: 'org_unit_proximity_adjustment', disableOrgFilter: true}]
74 }, {
75     path: 'asset/call_number_prefix',
76     component: BasicAdminPageComponent,
77     data: [{schema: 'asset',
78         table: 'call_number_prefix', readonlyFields: 'label_sortkey'}]
79 }, {
80     path: 'asset/call_number_suffix',
81     component: BasicAdminPageComponent,
82     data: [{schema: 'asset',
83         table: 'call_number_suffix', readonlyFields: 'label_sortkey'}]
84 }, {
85     path: ':schema/:table',
86     component: BasicAdminPageComponent
87 }];
88
89 @NgModule({
90     imports: [RouterModule.forChild(routes)],
91     exports: [RouterModule]
92 })
93
94 export class AdminServerRoutingModule {}