]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/Toolkit.js
ui: toolkit: eslint fixes
[pve-manager.git] / www / manager6 / Toolkit.js
1 // ExtJS related things
2
3 Proxmox.Utils.toolkit = 'extjs';
4
5 // custom PVE specific VTypes
6 Ext.apply(Ext.form.field.VTypes, {
7
8 QemuStartDate: function(v) {
9 return (/^(now|\d{4}-\d{1,2}-\d{1,2}(T\d{1,2}:\d{1,2}:\d{1,2})?)$/).test(v);
10 },
11 QemuStartDateText: gettext('Format') + ': "now" or "2006-06-17T16:01:21" or "2006-06-17"',
12 IP64AddressList: v => PVE.Utils.verify_ip64_address_list(v, false),
13 IP64AddressWithSuffixList: v => PVE.Utils.verify_ip64_address_list(v, true),
14 IP64AddressListText: gettext('Example') + ': 192.168.1.1,192.168.1.2',
15 IP64AddressListMask: /[A-Fa-f0-9,:.; ]/,
16 });
17
18 Ext.define('PVE.form.field.Display', {
19 override: 'Ext.form.field.Display',
20
21 setSubmitValue: function(value) {
22 // do nothing, this is only to allow generalized bindings for the:
23 // `me.isCreate ? 'textfield' : 'displayfield'` cases we have.
24 },
25 });