]> git.proxmox.com Git - pmg-gui.git/blame - js/Certificates.js
quarantines: add support for a theme toggle
[pmg-gui.git] / js / Certificates.js
CommitLineData
c083fb77
WB
1Ext.define('PMG.CertificateConfiguration', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pmgCertificateConfiguration',
4
5 title: gettext('Certificates'),
6
a78fbb70
TL
7 ...PMG.Utils.onlineHelpTool('sysadmin_certificate_management'),
8
c083fb77
WB
9 border: false,
10 defaults: { border: false },
11
12 items: [
13 {
c083fb77 14 xtype: 'pmgCertificatesView',
5b75abc7
TL
15 itemId: 'certificates',
16 iconCls: 'fa fa-certificate',
c083fb77
WB
17 },
18 {
c083fb77 19 xtype: 'pmgACMEConfigView',
5b75abc7
TL
20 itemId: 'acme',
21 iconCls: 'fa fa-file-text',
c083fb77
WB
22 },
23 ],
24});
25
26Ext.define('PMG.CertificateView', {
a7f1529c 27 extend: 'Ext.panel.Panel',
c083fb77
WB
28 alias: 'widget.pmgCertificatesView',
29
30 title: gettext('Certificates'),
bfe02702 31 scrollable: 'y',
c083fb77
WB
32
33 items: [
34 {
35 xtype: 'pmxCertificates',
36 border: 0,
37 infoUrl: '/nodes/' + Proxmox.NodeName + '/certificates/info',
38 uploadButtons: [
39 {
40 name: 'API',
41 id: 'pmg-api.pem',
42 url: `/nodes/${Proxmox.NodeName}/certificates/custom/api`,
43 deletable: false,
44 reloadUi: true,
45 },
46 {
47 name: 'SMTP',
48 id: 'pmg-tls.pem',
49 url: `/nodes/${Proxmox.NodeName}/certificates/custom/smtp`,
50 deletable: true,
51 },
52 ],
53 },
54 {
55 xtype: 'pmxACMEDomains',
56 border: 0,
57 url: `/nodes/${Proxmox.NodeName}/config`,
58 nodename: Proxmox.NodeName,
59 acmeUrl: '/config/acme',
60 domainUsages: [
61 {
62 usage: 'api',
63 name: 'API',
64 url: `/nodes/${Proxmox.NodeName}/certificates/acme/api`,
65 reloadUi: true,
66 },
67 {
68 usage: 'smtp',
69 name: 'SMTP',
70 url: `/nodes/${Proxmox.NodeName}/certificates/acme/smtp`,
71 },
72 ],
73 },
74 ],
75});
76
77Ext.define('PMG.ACMEConfigView', {
78 extend: 'Ext.panel.Panel',
79 alias: 'widget.pmgACMEConfigView',
80
a7f1529c 81 title: gettext('ACME Accounts/Challenges'),
c083fb77
WB
82
83 //onlineHelp: 'sysadmin_certificate_management',
84
85 items: [
86 {
a7f1529c 87 xtype: 'pmxACMEAccounts',
c083fb77
WB
88 region: 'north',
89 border: false,
c083fb77
WB
90 acmeUrl: '/config/acme',
91 },
92 {
a7f1529c 93 xtype: 'pmxACMEPluginView',
c083fb77
WB
94 region: 'center',
95 border: false,
c083fb77
WB
96 acmeUrl: '/config/acme',
97 },
98 ],
99});
100
101