2019-01-31 13:43:09 +01:00
i n c l u d e . . / d e f i n e s . m k
2023-06-23 09:08:47 +02:00
ESLINT ?= $( if $( shell command -v pve-eslint) , pve-eslint, eslint)
2019-01-31 13:43:09 +01:00
IMAGES := \
2020-12-11 13:02:23 +01:00
images/icon-tape.svg \
2021-03-08 14:35:28 +01:00
images/icon-tape-drive.svg \
2020-12-11 13:02:23 +01:00
images/logo-128.png \
2019-01-31 13:43:09 +01:00
images/proxmox_logo.png
2020-12-04 12:50:08 +01:00
TAPE_UI_FILES = \
2021-01-28 12:59:45 +01:00
tape/form/AllocationSelector.js \
tape/form/ChangerSelector.js \
tape/form/DriveSelector.js \
tape/form/PoolSelector.js \
tape/form/RetentionSelector.js \
tape/form/TapeDevicePathSelector.js \
2021-02-04 13:56:30 +01:00
tape/form/KeySelector.js \
2021-01-28 12:59:46 +01:00
tape/window/ChangerEdit.js \
tape/window/DriveEdit.js \
2021-03-03 08:27:54 +01:00
tape/window/Erase.js \
2021-02-04 13:56:29 +01:00
tape/window/EncryptionEdit.js \
2021-01-28 12:59:46 +01:00
tape/window/LabelMedia.js \
2024-01-11 11:40:36 +01:00
tape/window/MediaRemoveWindow.js \
2021-01-28 12:59:46 +01:00
tape/window/PoolEdit.js \
tape/window/TapeBackup.js \
2021-02-23 11:58:01 +01:00
tape/window/TapeBackupJob.js \
2021-02-02 14:00:38 +01:00
tape/window/TapeRestore.js \
2021-01-28 12:59:47 +01:00
tape/BackupOverview.js \
2021-01-29 14:57:49 +01:00
tape/ChangerConfig.js \
2021-01-28 12:59:48 +01:00
tape/ChangerStatus.js \
2021-01-28 12:59:49 +01:00
tape/DriveConfig.js \
2021-03-01 12:22:39 +01:00
tape/DriveStatus.js \
2021-02-04 13:56:29 +01:00
tape/EncryptionKeys.js \
2021-01-28 12:59:50 +01:00
tape/PoolConfig.js \
2021-02-02 14:00:39 +01:00
tape/TapeInventory.js \
2021-02-18 12:48:54 +01:00
tape/BackupJobs.js \
2021-03-03 08:27:54 +01:00
tape/TapeManagement.js
2020-12-04 12:50:08 +01:00
2018-12-04 17:53:10 +01:00
JSSRC = \
2020-11-06 08:24:30 +01:00
Utils.js \
2022-06-10 13:17:57 +02:00
Schema.js \
2020-10-28 11:07:27 +01:00
form/TokenSelector.js \
2020-11-06 13:01:56 +01:00
form/AuthidSelector.js \
2020-05-29 10:53:40 +02:00
form/RemoteSelector.js \
2022-05-11 17:34:34 +02:00
form/RemoteTargetSelector.js \
2020-05-29 10:53:40 +02:00
form/DataStoreSelector.js \
2022-05-06 09:26:47 +02:00
form/NamespaceSelector.js \
2022-05-11 09:42:49 +02:00
form/NamespaceMaxDepth.js \
2020-07-21 19:32:25 +02:00
form/CalendarEvent.js \
2020-07-25 20:10:06 +02:00
form/PermissionPathSelector.js \
2024-11-25 17:22:00 +01:00
form/PartitionSelector.js \
2021-11-29 15:39:40 +01:00
form/GroupSelector.js \
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-11-29 15:39:41 +01:00
form/GroupFilter.js \
2022-05-11 14:17:26 +02:00
form/VerifyOutdatedAfter.js \
2020-07-09 13:38:20 +02:00
data/RunningTasksStore.js \
2020-07-09 13:38:21 +02:00
button/TaskButton.js \
2022-05-14 18:51:54 +02:00
panel/PrunePanel.js \
2020-05-18 14:18:38 +02:00
config/UserView.js \
2020-10-22 11:40:43 +02:00
config/TokenView.js \
2020-05-26 12:23:25 +02:00
config/RemoteView.js \
2021-11-19 15:42:27 +01:00
config/TrafficControlView.js \
2020-05-20 12:15:37 +02:00
config/ACLView.js \
2020-05-29 10:53:42 +02:00
config/SyncView.js \
2020-10-20 11:10:08 +02:00
config/VerifyView.js \
2022-05-23 11:00:55 +02:00
config/PruneView.js \
2024-04-18 12:16:58 +02:00
config/GCView.js \
2021-01-15 11:06:18 +01:00
config/WebauthnView.js \
2021-05-03 11:39:58 +02:00
config/CertificateView.js \
2021-05-12 16:42:32 +02:00
config/NodeOptionView.js \
2022-06-10 13:17:57 +02:00
config/MetricServerView.js \
2024-04-23 13:52:13 +02:00
config/NotificationConfigView.js \
2024-04-18 12:16:59 +02:00
config/PruneAndGC.js \
2020-10-28 18:25:47 +01:00
window/ACLEdit.js \
2020-11-06 19:47:00 +01:00
window/BackupGroupChangeOwner.js \
2020-10-28 18:25:47 +01:00
window/CreateDirectory.js \
window/DataStoreEdit.js \
2022-05-06 11:02:59 +02:00
window/NamespaceEdit.js \
2022-04-12 05:26:01 +00:00
window/MaintenanceOptions.js \
2020-10-28 18:25:47 +01:00
window/NotesEdit.js \
window/RemoteEdit.js \
2021-11-19 15:42:27 +01:00
window/TrafficControlEdit.js \
2020-11-06 17:49:22 +01:00
window/NotifyOptions.js \
2020-10-28 18:25:47 +01:00
window/SyncJobEdit.js \
2022-05-23 11:00:55 +02:00
window/PruneJobEdit.js \
2024-04-18 12:16:58 +02:00
window/GCJobEdit.js \
2020-05-18 14:18:38 +02:00
window/UserEdit.js \
2021-02-19 15:40:48 +01:00
window/Settings.js \
2020-10-22 11:40:43 +02:00
window/TokenEdit.js \
2020-10-20 11:10:09 +02:00
window/VerifyJobEdit.js \
2022-05-11 14:28:33 +02:00
window/VerifyAll.js \
2020-07-03 17:19:59 +02:00
window/ZFSCreate.js \
2022-06-10 13:17:56 +02:00
window/InfluxDbEdit.js \
2023-11-29 16:49:50 +01:00
window/DatastoreRepoInfo.js \
2020-06-09 10:01:14 +02:00
dashboard/DataStoreStatistics.js \
2020-06-12 13:34:05 +02:00
dashboard/LongestTasks.js \
dashboard/RunningTasks.js \
dashboard/TaskSummary.js \
2020-11-04 15:35:08 +01:00
panel/XtermJsConsole.js \
2020-11-06 08:24:30 +01:00
panel/AccessControl.js \
2020-11-10 10:15:44 +01:00
panel/StorageAndDisks.js \
2020-11-10 10:18:06 +01:00
panel/UsageChart.js \
2021-04-19 13:02:04 +02:00
panel/NodeInfo.js \
2020-06-25 14:53:05 +02:00
ZFSList.js \
2020-06-16 11:13:34 +02:00
DirectoryList.js \
2019-01-30 15:14:20 +01:00
LoginView.js \
2018-12-04 17:58:40 +01:00
VersionInfo.js \
2019-01-22 11:48:00 +01:00
SystemConfiguration.js \
Subscription.js \
2020-11-06 08:24:30 +01:00
datastore/Summary.js \
datastore/Notes.js \
datastore/Prune.js \
datastore/Content.js \
2020-11-06 17:51:52 +01:00
datastore/OptionView.js \
2020-11-06 08:24:30 +01:00
datastore/Panel.js \
2020-11-09 16:01:29 +01:00
datastore/DataStoreListSummary.js \
datastore/DataStoreList.js \
2020-04-30 12:11:08 +02:00
ServerStatus.js \
2019-01-25 13:10:55 +01:00
ServerAdministration.js \
2022-04-12 12:34:23 +02:00
NodeNotes.js \
2019-12-18 17:29:05 +01:00
Dashboard.js \
2020-12-04 12:50:08 +01:00
${ TAPE_UI_FILES } \
2019-01-22 11:48:00 +01:00
NavigationTree.js \
2018-12-04 17:53:10 +01:00
Application.js \
MainView.js
2019-12-16 18:16:05 +01:00
all : js /proxmox -backup -gui .js css /ext 6-pbs .css
2018-12-04 17:53:10 +01:00
2019-01-31 13:36:33 +01:00
js :
mkdir js
2020-09-02 14:41:03 +02:00
.PHONY : OnlineHelpInfo .js
2020-09-02 14:22:36 +02:00
OnlineHelpInfo.js :
$( MAKE) -C ../docs onlinehelpinfo
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
2020-10-01 13:12:44 +02:00
js/proxmox-backup-gui.js : .lint -incremental js OnlineHelpInfo .js ${JSSRC }
2019-01-25 12:37:01 +01:00
cat OnlineHelpInfo.js ${ JSSRC } >$@ .tmp
2018-12-04 17:53:10 +01:00
mv $@ .tmp $@
2020-10-01 13:12:44 +02:00
.PHONY : check
check :
2023-06-23 09:08:47 +02:00
$( ESLINT) --strict ${ JSSRC }
2020-10-01 13:12:44 +02:00
touch ".lint-incremental"
.lint-incremental : ${JSSRC }
2023-06-23 09:08:47 +02:00
$( ESLINT) $?
2020-10-01 13:12:44 +02:00
touch " $@ "
2020-07-14 07:42:55 +02:00
2018-12-04 17:53:10 +01:00
.PHONY : clean
clean :
2020-10-01 13:12:44 +02:00
find . -name '*~' -exec rm { } ';'
rm -rf js .lint-incremental
2019-01-31 13:43:09 +01:00
2020-04-29 11:59:31 +02:00
install : js /proxmox -backup -gui .js css /ext 6-pbs .css index .hbs
2019-01-31 13:43:09 +01:00
install -dm755 $( DESTDIR) $( JSDIR)
2020-04-29 11:59:31 +02:00
install -m644 index.hbs $( DESTDIR) $( JSDIR) /
2019-01-31 13:43:09 +01:00
install -dm755 $( DESTDIR) $( JSDIR) /js
install -m644 js/proxmox-backup-gui.js $( DESTDIR) $( JSDIR) /js/
2019-12-16 18:16:05 +01:00
install -dm755 $( DESTDIR) $( JSDIR) /css
install -m644 css/ext6-pbs.css $( DESTDIR) $( JSDIR) /css/
2019-01-31 13:43:09 +01:00
install -dm755 $( DESTDIR) $( JSDIR) /images
$( foreach i,$( IMAGES) , \
install -m644 $( i) $( DESTDIR) $( JSDIR) /images/ ; )