/
app-global.ts
114 lines (107 loc) · 2.69 KB
/
app-global.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { StringLiteral } from '@dasch-swiss/dsp-js';
import { MenuItem } from './main/declarations/menu-item';
export class AppGlobal {
// project navigation
public static projectNav: MenuItem[] = [
{
label: 'Project information',
shortLabel: 'Project',
route: 'info',
icon: 'assignment'
},
{
label: 'Project members',
shortLabel: 'Members',
route: 'collaboration',
icon: 'group'
},
{
label: 'Permission groups',
shortLabel: 'Groups',
route: 'permissions',
icon: 'lock_open'
},
{
label: 'Data model',
shortLabel: 'Data model',
route: 'ontologies',
icon: 'bubble_chart'
},
{
label: 'Lists',
shortLabel: 'Lists',
route: 'lists',
icon: 'list'
}
];
// user navigation
public static userNav: MenuItem[] = [
{
label: 'Dashboard',
shortLabel: 'Dashboard',
route: '/dashboard',
icon: 'dashboard'
},
{
label: 'My Projects',
shortLabel: 'Projects',
route: '/projects',
icon: 'assignment'
},
// label to reactivate when dsp-app will be used as a research platform again: -->
/* {
label: 'My Collections',
shortLabel: 'Collections',
route: '/collections',
icon: 'star'
}, */
{
label: 'My Account',
shortLabel: 'Account',
route: '/account',
icon: 'settings'
}
];
// system navigation (sys admin only)
public static systemNav: MenuItem[] = [
{
label: 'All projects',
shortLabel: 'Projects',
route: 'projects',
icon: 'assignment'
},
{
label: 'All users',
shortLabel: 'Users',
route: 'users',
icon: 'group'
}
];
/*
{
label: 'Api status',
shortLabel: 'Api status',
route: 'status',
icon: 'network_check'
}
*/
// possible languages, will be used in form and to change the gui language
public static languagesList: StringLiteral[] = [
{
language: 'en',
value: 'english'
},
{
language: 'de',
value: 'deutsch'
},
{
language: 'fr',
value: 'français'
},
{
language: 'it',
value: 'italiano'
}
];
}