proxmox-backup/www/Makefile
Dominik Csapak 65bd918ac3 ui: add GroupFilter form field(container)
this contains a grid + button + hidden field which lets the user
add group filters one by one. the first column is the type selector
(type, group, regex) and the second column shows the relevant
input field (groupselector, kvcombobox for type, and textfield for regex)

i had to hack a little to get access to the widgets of the
fieldcontainer, since we cannot simply access the widget of a column
from another column (which we need to show the correct one when changing
the type), also we cannot traverse the widget hirachy in the usual way,
since extjs seems to build it differently for widgetcolumns.

to solve this, i added references of the widgets to the record, and a
reference of the record to the widgets. since this is now a cyclic
reference, i solve that in 'removeFilter' and in 'beforedestroy' of the grid
by removing the references again

also contains a small css style to remove the padding in the rows

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:42:31 +01:00

145 lines
3.7 KiB
Makefile

include ../defines.mk
IMAGES := \
images/icon-tape.svg \
images/icon-tape-drive.svg \
images/logo-128.png \
images/proxmox_logo.png
TAPE_UI_FILES= \
tape/form/AllocationSelector.js \
tape/form/ChangerSelector.js \
tape/form/DriveSelector.js \
tape/form/PoolSelector.js \
tape/form/RetentionSelector.js \
tape/form/TapeDevicePathSelector.js \
tape/form/KeySelector.js \
tape/window/ChangerEdit.js \
tape/window/DriveEdit.js \
tape/window/Erase.js \
tape/window/EncryptionEdit.js \
tape/window/LabelMedia.js \
tape/window/PoolEdit.js \
tape/window/TapeBackup.js \
tape/window/TapeBackupJob.js \
tape/window/TapeRestore.js \
tape/BackupOverview.js \
tape/ChangerConfig.js \
tape/ChangerStatus.js \
tape/DriveConfig.js \
tape/DriveStatus.js \
tape/EncryptionKeys.js \
tape/PoolConfig.js \
tape/TapeInventory.js \
tape/BackupJobs.js \
tape/TapeManagement.js
JSSRC= \
Utils.js \
form/TokenSelector.js \
form/AuthidSelector.js \
form/RemoteSelector.js \
form/DataStoreSelector.js \
form/CalendarEvent.js \
form/PermissionPathSelector.js \
form/GroupSelector.js \
form/GroupFilter.js \
data/RunningTasksStore.js \
button/TaskButton.js \
config/UserView.js \
config/TokenView.js \
config/RemoteView.js \
config/TrafficControlView.js \
config/ACLView.js \
config/SyncView.js \
config/VerifyView.js \
config/WebauthnView.js \
config/CertificateView.js \
config/NodeOptionView.js \
window/ACLEdit.js \
window/BackupFileDownloader.js \
window/BackupGroupChangeOwner.js \
window/CreateDirectory.js \
window/DataStoreEdit.js \
window/NotesEdit.js \
window/RemoteEdit.js \
window/TrafficControlEdit.js \
window/NotifyOptions.js \
window/SyncJobEdit.js \
window/UserEdit.js \
window/UserPassword.js \
window/Settings.js \
window/TokenEdit.js \
window/VerifyJobEdit.js \
window/ZFSCreate.js \
dashboard/DataStoreStatistics.js \
dashboard/LongestTasks.js \
dashboard/RunningTasks.js \
dashboard/TaskSummary.js \
panel/XtermJsConsole.js \
panel/AccessControl.js \
panel/StorageAndDisks.js \
panel/UsageChart.js \
panel/NodeInfo.js \
ZFSList.js \
DirectoryList.js \
LoginView.js \
VersionInfo.js \
SystemConfiguration.js \
Subscription.js \
datastore/Summary.js \
datastore/Notes.js \
datastore/PruneAndGC.js \
datastore/Prune.js \
datastore/Content.js \
datastore/OptionView.js \
datastore/Panel.js \
datastore/DataStoreListSummary.js \
datastore/DataStoreList.js \
ServerStatus.js \
ServerAdministration.js \
Dashboard.js \
${TAPE_UI_FILES} \
NavigationTree.js \
Application.js \
MainView.js
all: js/proxmox-backup-gui.js css/ext6-pbs.css
js:
mkdir js
.PHONY: OnlineHelpInfo.js
OnlineHelpInfo.js:
$(MAKE) -C ../docs onlinehelpinfo
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC}
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
mv $@.tmp $@
.PHONY: check
check:
eslint --strict ${JSSRC}
touch ".lint-incremental"
.lint-incremental: ${JSSRC}
eslint $?
touch "$@"
.PHONY: clean
clean:
find . -name '*~' -exec rm {} ';'
rm -rf js .lint-incremental
install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
install -dm755 $(DESTDIR)$(JSDIR)
install -m644 index.hbs $(DESTDIR)$(JSDIR)/
install -dm755 $(DESTDIR)$(JSDIR)/js
install -m644 js/proxmox-backup-gui.js $(DESTDIR)$(JSDIR)/js/
install -dm755 $(DESTDIR)$(JSDIR)/css
install -m644 css/ext6-pbs.css $(DESTDIR)$(JSDIR)/css/
install -dm755 $(DESTDIR)$(JSDIR)/images
$(foreach i,$(IMAGES), \
install -m644 $(i) $(DESTDIR)$(JSDIR)/images/ ;)