]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - src/Schema.js
auth ui: add LDAP realm edit panel
[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 },
11 openid: {
12 name: gettext('OpenID Connect Server'),
13 ipanel: 'pmxAuthOpenIDPanel',
14 add: true,
15 edit: true,
16 tfa: false,
17 pwchange: false,
18 iconCls: 'pmx-itype-icon-openid-logo',
19 },
20 ldap: {
21 name: gettext('LDAP Server'),
22 ipanel: 'pmxAuthLDAPPanel',
23 add: true,
24 edit: true,
25 tfa: true,
26 pwchange: false,
27 },
28 },
29 // to add or change existing for product specific ones
30 overrideAuthDomains: function(extra) {
31 for (const [key, value] of Object.entries(extra)) {
32 Proxmox.Schema.authDomains[key] = value;
33 }
34 },
35
36 pxarFileTypes: {
37 b: { icon: 'cube', label: gettext('Block Device') },
38 c: { icon: 'tty', label: gettext('Character Device') },
39 d: { icon: 'folder-o', label: gettext('Directory') },
40 f: { icon: 'file-text-o', label: gettext('File') },
41 h: { icon: 'file-o', label: gettext('Hardlink') },
42 l: { icon: 'link', label: gettext('Softlink') },
43 p: { icon: 'exchange', label: gettext('Pipe/Fifo') },
44 s: { icon: 'plug', label: gettext('Socket') },
45 v: { icon: 'cube', label: gettext('Virtual') },
46 },
47 });