]> git.proxmox.com Git - pmg-gui.git/blame - js/Certificates.js
StatTimeSelector: don't show invalid month/day combinations
[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'),
31
32 items: [
33 {
34 xtype: 'pmxCertificates',
35 border: 0,
36 infoUrl: '/nodes/' + Proxmox.NodeName + '/certificates/info',
37 uploadButtons: [
38 {
39 name: 'API',
40 id: 'pmg-api.pem',
41 url: `/nodes/${Proxmox.NodeName}/certificates/custom/api`,
42 deletable: false,
43 reloadUi: true,
44 },
45 {
46 name: 'SMTP',
47 id: 'pmg-tls.pem',
48 url: `/nodes/${Proxmox.NodeName}/certificates/custom/smtp`,
49 deletable: true,
50 },
51 ],
52 },
53 {
54 xtype: 'pmxACMEDomains',
55 border: 0,
56 url: `/nodes/${Proxmox.NodeName}/config`,
57 nodename: Proxmox.NodeName,
58 acmeUrl: '/config/acme',
59 domainUsages: [
60 {
61 usage: 'api',
62 name: 'API',
63 url: `/nodes/${Proxmox.NodeName}/certificates/acme/api`,
64 reloadUi: true,
65 },
66 {
67 usage: 'smtp',
68 name: 'SMTP',
69 url: `/nodes/${Proxmox.NodeName}/certificates/acme/smtp`,
70 },
71 ],
72 },
73 ],
74});
75
76Ext.define('PMG.ACMEConfigView', {
77 extend: 'Ext.panel.Panel',
78 alias: 'widget.pmgACMEConfigView',
79
a7f1529c 80 title: gettext('ACME Accounts/Challenges'),
c083fb77
WB
81
82 //onlineHelp: 'sysadmin_certificate_management',
83
84 items: [
85 {
a7f1529c 86 xtype: 'pmxACMEAccounts',
c083fb77
WB
87 region: 'north',
88 border: false,
c083fb77
WB
89 acmeUrl: '/config/acme',
90 },
91 {
a7f1529c 92 xtype: 'pmxACMEPluginView',
c083fb77
WB
93 region: 'center',
94 border: false,
c083fb77
WB
95 acmeUrl: '/config/acme',
96 },
97 ],
98});
99
100