]>
Commit | Line | Data |
---|---|---|
5c085daf TL |
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, | |
d6b65a89 | 10 | sync: false, |
5c085daf TL |
11 | }, |
12 | openid: { | |
13 | name: gettext('OpenID Connect Server'), | |
14 | ipanel: 'pmxAuthOpenIDPanel', | |
15 | add: true, | |
16 | edit: true, | |
17 | tfa: false, | |
18 | pwchange: false, | |
d6b65a89 | 19 | sync: false, |
5c085daf TL |
20 | iconCls: 'pmx-itype-icon-openid-logo', |
21 | }, | |
aa5cbdbb LW |
22 | ldap: { |
23 | name: gettext('LDAP Server'), | |
24 | ipanel: 'pmxAuthLDAPPanel', | |
d6b65a89 | 25 | syncipanel: 'pmxAuthLDAPSyncPanel', |
aa5cbdbb LW |
26 | add: true, |
27 | edit: true, | |
28 | tfa: true, | |
29 | pwchange: false, | |
d6b65a89 | 30 | sync: true, |
aa5cbdbb | 31 | }, |
5c085daf TL |
32 | }, |
33 | // to add or change existing for product specific ones | |
34 | overrideAuthDomains: function(extra) { | |
35 | for (const [key, value] of Object.entries(extra)) { | |
2908d358 | 36 | Proxmox.Schema.authDomains[key] = value; |
5c085daf TL |
37 | } |
38 | }, | |
427685c6 TL |
39 | |
40 | pxarFileTypes: { | |
41 | b: { icon: 'cube', label: gettext('Block Device') }, | |
42 | c: { icon: 'tty', label: gettext('Character Device') }, | |
43 | d: { icon: 'folder-o', label: gettext('Directory') }, | |
53dc88d4 | 44 | f: { icon: 'file-text-o', label: gettext('File') }, |
427685c6 TL |
45 | h: { icon: 'file-o', label: gettext('Hardlink') }, |
46 | l: { icon: 'link', label: gettext('Softlink') }, | |
47 | p: { icon: 'exchange', label: gettext('Pipe/Fifo') }, | |
48 | s: { icon: 'plug', label: gettext('Socket') }, | |
49 | v: { icon: 'cube', label: gettext('Virtual') }, | |
50 | }, | |
5c085daf | 51 | }); |