]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - src/Schema.js
bump version to 4.2.3
[proxmox-widget-toolkit.git] / src / Schema.js
1 Ext.define('Proxmox.Schema', { // a singleton
2 singleton: true,
3
4 authDomains: {
5 pam: {
6 name: 'Linux PAM',
7 add: false,
8 edit: false,
9 pwchange: true,
10 sync: false,
11 },
12 openid: {
13 name: gettext('OpenID Connect Server'),
14 ipanel: 'pmxAuthOpenIDPanel',
15 add: true,
16 edit: true,
17 tfa: false,
18 pwchange: false,
19 sync: false,
20 iconCls: 'pmx-itype-icon-openid-logo',
21 },
22 ldap: {
23 name: gettext('LDAP Server'),
24 ipanel: 'pmxAuthLDAPPanel',
25 syncipanel: 'pmxAuthLDAPSyncPanel',
26 add: true,
27 edit: true,
28 tfa: true,
29 pwchange: false,
30 sync: true,
31 },
32 ad: {
33 name: gettext('Active Directory Server'),
34 ipanel: 'pmxAuthADPanel',
35 syncipanel: 'pmxAuthADSyncPanel',
36 add: true,
37 edit: true,
38 tfa: true,
39 pwchange: false,
40 sync: true,
41 },
42 },
43 // to add or change existing for product specific ones
44 overrideAuthDomains: function(extra) {
45 for (const [key, value] of Object.entries(extra)) {
46 Proxmox.Schema.authDomains[key] = value;
47 }
48 },
49
50 notificationEndpointTypes: {
51 sendmail: {
52 name: 'Sendmail',
53 ipanel: 'pmxSendmailEditPanel',
54 iconCls: 'fa-envelope-o',
55 },
56 smtp: {
57 name: 'SMTP',
58 ipanel: 'pmxSmtpEditPanel',
59 iconCls: 'fa-envelope-o',
60 },
61 gotify: {
62 name: 'Gotify',
63 ipanel: 'pmxGotifyEditPanel',
64 iconCls: 'fa-bell-o',
65 },
66 },
67
68 pxarFileTypes: {
69 b: { icon: 'cube', label: gettext('Block Device') },
70 c: { icon: 'tty', label: gettext('Character Device') },
71 d: { icon: 'folder-o', label: gettext('Directory') },
72 f: { icon: 'file-text-o', label: gettext('File') },
73 h: { icon: 'file-o', label: gettext('Hardlink') },
74 l: { icon: 'link', label: gettext('Softlink') },
75 p: { icon: 'exchange', label: gettext('Pipe/Fifo') },
76 s: { icon: 'plug', label: gettext('Socket') },
77 v: { icon: 'cube', label: gettext('Virtual') },
78 },
79 });