2019-05-22 07:12:53 +02:00
i n c l u d e / u s r / s h a r e / d p k g / p k g - i n f o . m k
2019-07-24 09:21:11 +02:00
i n c l u d e d e f i n e s . m k
2017-01-30 09:57:12 +01:00
2019-07-24 09:21:11 +02:00
SUBDIRS = css images
2017-01-30 09:57:12 +01:00
JSSRC = \
Utils.js \
2017-01-31 17:32:18 +01:00
Toolkit.js \
2020-05-15 10:19:25 +02:00
Logo.js \
2017-03-31 10:19:53 +02:00
mixin/CBind.js \
2017-01-30 09:57:12 +01:00
data/reader/JsonObject.js \
data/ProxmoxProxy.js \
data/UpdateStore.js \
data/DiffStore.js \
data/ObjectStore.js \
2017-08-29 07:03:32 +02:00
data/RRDStore.js \
2017-01-30 13:40:51 +01:00
data/TimezoneStore.js \
2020-05-15 10:19:26 +02:00
data/model/Realm.js \
form: add Proxmox.form.field.DisplayEdit
This allows to write our often used:
> {
> xtype: me.isCreate ? 'someEditableField' : 'displayfield',
> ...
> }
In a more schematic way, as it can now be controlled by either our
CBind mixin or ExtJS native data binding.
Use a Field container to add both, they editable and they display,
variants of a form field. As default use "textfield" for the editable
and "displayfield" xtype for the read only one.
Pass all but the editConfig and editable members of our initial
config to the display field, allow further to configure the editable
field with an editConfig object, which overwrites the config
properties inherited from the displayConfig/parent config.
This gives full control while not enforcing to specify anything extra
for most default cases.
Enforce initial state of the fields even if the databinding would
handle it to avoid glitches after first render for simple boolean expression
cases.
> {
> xtype: 'pmxDisplayEditField',
> cbind: {
> editable: '{isCreate}',
> },
> name: 'tokenid',
> fieldLabel: gettext('Token ID'),
> value: me.tokenid,
> allowBlank: false,
> }
Here, cbind could also be a bind or a native boolean expression.
For something else than a texfield one would use the editConfig, e.g.:
> {
> ....
> editConfig: {
> xtype: 'pveUserSelector',
> allowBlank: false,
> },
> },
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-03-31 18:14:36 +02:00
form/DisplayEdit.js \
2020-03-31 14:50:34 +02:00
form/ExpireDate.js \
2017-02-24 08:32:30 +01:00
form/IntegerField.js \
2017-01-31 17:12:14 +01:00
form/TextField.js \
2017-09-20 12:42:19 +02:00
form/DateTimeField.js \
2017-01-31 17:17:12 +01:00
form/Checkbox.js \
2017-02-25 10:20:12 +01:00
form/KVComboBox.js \
2017-10-04 10:50:59 +02:00
form/LanguageSelector.js \
2017-03-22 12:32:28 +01:00
form/ComboGrid.js \
2017-08-29 06:25:25 +02:00
form/RRDTypeSelector.js \
2017-11-14 11:17:03 +01:00
form/BondModeSelector.js \
2019-06-12 10:56:31 +02:00
form/NetworkSelector.js \
2020-05-15 10:19:26 +02:00
form/RealmComboBox.js \
2020-05-19 16:48:36 +02:00
form/RoleSelector.js \
2017-02-25 14:35:29 +01:00
button/Button.js \
2017-09-27 10:04:29 +02:00
button/HelpButton.js \
2017-01-30 13:40:51 +01:00
grid/ObjectGrid.js \
2017-02-24 07:45:09 +01:00
grid/PendingObjectGrid.js \
2017-01-31 17:08:47 +01:00
panel/InputPanel.js \
2017-01-31 11:58:53 +01:00
panel/LogView.js \
2019-05-15 11:15:12 +02:00
panel/JournalView.js \
2017-08-29 08:43:50 +02:00
panel/RRDChart.js \
2017-10-10 15:10:20 +02:00
panel/GaugeWidget.js \
2017-01-30 13:40:51 +01:00
window/Edit.js \
2017-03-27 08:14:46 +02:00
window/PasswordEdit.js \
2017-01-30 13:40:51 +01:00
window/TaskViewer.js \
2020-04-17 13:23:35 +02:00
window/LanguageEdit.js \
2017-09-21 13:05:07 +02:00
node/APT.js \
2017-01-31 17:05:09 +01:00
node/NetworkEdit.js \
node/NetworkView.js \
2017-02-01 07:14:07 +01:00
node/DNSEdit.js \
2018-09-13 14:55:54 +02:00
node/HostsView.js \
2017-02-01 07:14:07 +01:00
node/DNSView.js \
2017-01-31 09:25:24 +01:00
node/Tasks.js \
2017-01-31 15:21:37 +01:00
node/ServiceView.js \
2017-01-30 13:40:51 +01:00
node/TimeEdit.js \
node/TimeView.js
2017-01-30 09:57:12 +01:00
2019-07-24 09:21:11 +02:00
all : ${SUBDIRS }
set -e && for i in ${ SUBDIRS } ; do ${ MAKE } -C $$ i; done
2017-01-30 09:57:12 +01:00
2019-03-30 12:56:57 +01:00
${BUILDDIR} :
rm -rf ${ BUILDDIR }
rsync -a * ${ BUILDDIR }
2019-03-30 12:57:19 +01:00
echo " git clone git://git.proxmox.com/git/proxmox-widget-toolkit.git\\ngit checkout ${ GITVERSION } " > ${ BUILDDIR } /debian/SOURCE
2019-03-30 12:56:57 +01:00
2017-01-30 09:57:12 +01:00
.PHONY : deb
2018-02-09 10:13:31 +01:00
deb : ${DEB }
2019-03-30 12:56:57 +01:00
${DEB} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2017-01-30 09:57:12 +01:00
lintian ${ DEB }
2019-03-30 12:56:57 +01:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
2019-05-22 07:13:23 +02:00
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
2019-03-30 12:56:57 +01:00
lintian ${ DSC }
2017-01-30 09:57:12 +01:00
.PHONY : lint
2020-06-06 17:20:50 +02:00
check : lint
2017-01-30 09:57:12 +01:00
lint : ${JSSRC }
2020-06-06 17:20:50 +02:00
eslint ${ JSSRC }
2017-01-30 09:57:12 +01:00
proxmoxlib.js : ${JSSRC }
2017-12-18 10:31:13 +01:00
# add the version as comment in the file
2019-05-22 07:12:53 +02:00
echo " // ${ DEB_VERSION_UPSTREAM_REVISION } " > $@ .tmp
2017-12-18 10:31:13 +01:00
cat ${ JSSRC } >> $@ .tmp
2017-01-30 09:57:12 +01:00
mv $@ .tmp $@
install : proxmoxlib .js
install -d -m 755 ${ WWWBASEDIR }
install -m 0644 proxmoxlib.js ${ WWWBASEDIR }
2019-07-24 09:21:11 +02:00
set -e && for i in ${ SUBDIRS } ; do ${ MAKE } -C $$ i $@ ; done
2017-01-30 09:57:12 +01:00
.PHONY : upload
upload : ${DEB }
2020-06-06 17:20:30 +02:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster
2017-01-30 09:57:12 +01:00
distclean : clean
clean :
2019-03-30 12:56:57 +01:00
rm -rf ${ BUILDDIR } *.tar.gz *.dsc *.deb *.changes *.buildinfo proxmoxlib.js
2017-01-30 09:57:12 +01:00
find . -name '*~' -exec rm { } ';'
.PHONY : dinstall
dinstall : ${DEB }
dpkg -i ${ DEB }