]> git.proxmox.com Git - pmg-gui.git/blob - js/Certificates.js
mail proxy: networks: consitent add/edit/remove button & modernization
[pmg-gui.git] / js / Certificates.js
1 Ext.define('PMG.CertificateConfiguration', {
2 extend: 'Ext.tab.Panel',
3 alias: 'widget.pmgCertificateConfiguration',
4
5 title: gettext('Certificates'),
6
7 ...PMG.Utils.onlineHelpTool('sysadmin_certificate_management'),
8
9 border: false,
10 defaults: { border: false },
11
12 items: [
13 {
14 xtype: 'pmgCertificatesView',
15 itemId: 'certificates',
16 iconCls: 'fa fa-certificate',
17 },
18 {
19 xtype: 'pmgACMEConfigView',
20 itemId: 'acme',
21 iconCls: 'fa fa-file-text',
22 },
23 ],
24 });
25
26 Ext.define('PMG.CertificateView', {
27 extend: 'Ext.panel.Panel',
28 alias: 'widget.pmgCertificatesView',
29
30 title: gettext('Certificates'),
31 scrollable: 'y',
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
77 Ext.define('PMG.ACMEConfigView', {
78 extend: 'Ext.panel.Panel',
79 alias: 'widget.pmgACMEConfigView',
80
81 title: gettext('ACME Accounts/Challenges'),
82
83 //onlineHelp: 'sysadmin_certificate_management',
84
85 items: [
86 {
87 xtype: 'pmxACMEAccounts',
88 region: 'north',
89 border: false,
90 acmeUrl: '/config/acme',
91 },
92 {
93 xtype: 'pmxACMEPluginView',
94 region: 'center',
95 border: false,
96 acmeUrl: '/config/acme',
97 },
98 ],
99 });
100
101