2019-01-31 12:43:09 +00:00
|
|
|
include ../defines.mk
|
|
|
|
|
|
|
|
IMAGES := \
|
2020-12-11 12:02:23 +00:00
|
|
|
images/icon-tape.svg \
|
2021-03-08 13:35:28 +00:00
|
|
|
images/icon-tape-drive.svg \
|
2020-12-11 12:02:23 +00:00
|
|
|
images/logo-128.png \
|
2019-01-31 12:43:09 +00:00
|
|
|
images/proxmox_logo.png
|
|
|
|
|
2020-12-04 11:50:08 +00:00
|
|
|
TAPE_UI_FILES= \
|
2021-01-28 11:59:45 +00: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 12:56:30 +00:00
|
|
|
tape/form/KeySelector.js \
|
2021-01-28 11:59:46 +00:00
|
|
|
tape/window/ChangerEdit.js \
|
|
|
|
tape/window/DriveEdit.js \
|
2021-03-03 07:27:54 +00:00
|
|
|
tape/window/Erase.js \
|
2021-02-04 12:56:29 +00:00
|
|
|
tape/window/EncryptionEdit.js \
|
2021-01-28 11:59:46 +00:00
|
|
|
tape/window/LabelMedia.js \
|
|
|
|
tape/window/PoolEdit.js \
|
|
|
|
tape/window/TapeBackup.js \
|
2021-02-23 10:58:01 +00:00
|
|
|
tape/window/TapeBackupJob.js \
|
2021-02-02 13:00:38 +00:00
|
|
|
tape/window/TapeRestore.js \
|
2021-01-28 11:59:47 +00:00
|
|
|
tape/BackupOverview.js \
|
2021-01-29 13:57:49 +00:00
|
|
|
tape/ChangerConfig.js \
|
2021-01-28 11:59:48 +00:00
|
|
|
tape/ChangerStatus.js \
|
2021-01-28 11:59:49 +00:00
|
|
|
tape/DriveConfig.js \
|
2021-03-01 11:22:39 +00:00
|
|
|
tape/DriveStatus.js \
|
2021-02-04 12:56:29 +00:00
|
|
|
tape/EncryptionKeys.js \
|
2021-01-28 11:59:50 +00:00
|
|
|
tape/PoolConfig.js \
|
2021-02-02 13:00:39 +00:00
|
|
|
tape/TapeInventory.js \
|
2021-02-18 11:48:54 +00:00
|
|
|
tape/BackupJobs.js \
|
2021-03-03 07:27:54 +00:00
|
|
|
tape/TapeManagement.js
|
2020-12-04 11:50:08 +00:00
|
|
|
|
2018-12-04 16:53:10 +00:00
|
|
|
JSSRC= \
|
2020-11-06 07:24:30 +00:00
|
|
|
Utils.js \
|
2020-05-20 10:15:33 +00:00
|
|
|
form/UserSelector.js \
|
2020-10-28 10:07:27 +00:00
|
|
|
form/TokenSelector.js \
|
2020-11-06 12:01:56 +00:00
|
|
|
form/AuthidSelector.js \
|
2020-05-29 08:53:40 +00:00
|
|
|
form/RemoteSelector.js \
|
|
|
|
form/DataStoreSelector.js \
|
2020-07-21 17:32:25 +00:00
|
|
|
form/CalendarEvent.js \
|
2020-07-25 18:10:06 +00:00
|
|
|
form/PermissionPathSelector.js \
|
2020-07-09 11:38:20 +00:00
|
|
|
data/RunningTasksStore.js \
|
2020-07-09 11:38:21 +00:00
|
|
|
button/TaskButton.js \
|
2020-05-18 12:18:38 +00:00
|
|
|
config/UserView.js \
|
2020-11-02 13:36:10 +00:00
|
|
|
config/TfaView.js \
|
2020-10-22 09:40:43 +00:00
|
|
|
config/TokenView.js \
|
2020-05-26 10:23:25 +00:00
|
|
|
config/RemoteView.js \
|
2020-05-20 10:15:37 +00:00
|
|
|
config/ACLView.js \
|
2020-05-29 08:53:42 +00:00
|
|
|
config/SyncView.js \
|
2020-10-20 09:10:08 +00:00
|
|
|
config/VerifyView.js \
|
2021-01-15 10:06:18 +00:00
|
|
|
config/WebauthnView.js \
|
2021-05-03 09:39:58 +00:00
|
|
|
config/CertificateView.js \
|
2021-05-12 14:42:32 +00:00
|
|
|
config/NodeOptionView.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/ACLEdit.js \
|
2020-11-02 13:36:10 +00:00
|
|
|
window/AddTfaRecovery.js \
|
|
|
|
window/AddTotp.js \
|
|
|
|
window/AddWebauthn.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/BackupFileDownloader.js \
|
2020-11-06 18:47:00 +00:00
|
|
|
window/BackupGroupChangeOwner.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/CreateDirectory.js \
|
|
|
|
window/DataStoreEdit.js \
|
|
|
|
window/NotesEdit.js \
|
|
|
|
window/RemoteEdit.js \
|
2020-11-06 16:49:22 +00:00
|
|
|
window/NotifyOptions.js \
|
2020-10-28 17:25:47 +00:00
|
|
|
window/SyncJobEdit.js \
|
2020-05-18 12:18:38 +00:00
|
|
|
window/UserEdit.js \
|
2020-08-03 09:56:25 +00:00
|
|
|
window/UserPassword.js \
|
2021-02-19 14:40:48 +00:00
|
|
|
window/Settings.js \
|
2020-10-22 09:40:43 +00:00
|
|
|
window/TokenEdit.js \
|
2020-11-02 13:36:10 +00:00
|
|
|
window/TfaEdit.js \
|
2020-10-20 09:10:09 +00:00
|
|
|
window/VerifyJobEdit.js \
|
2020-07-03 15:19:59 +00:00
|
|
|
window/ZFSCreate.js \
|
2020-06-09 08:01:14 +00:00
|
|
|
dashboard/DataStoreStatistics.js \
|
2020-06-12 11:34:05 +00:00
|
|
|
dashboard/LongestTasks.js \
|
|
|
|
dashboard/RunningTasks.js \
|
|
|
|
dashboard/TaskSummary.js \
|
2020-10-30 14:02:15 +00:00
|
|
|
panel/Tasks.js \
|
2020-11-04 14:35:08 +00:00
|
|
|
panel/XtermJsConsole.js \
|
2020-11-06 07:24:30 +00:00
|
|
|
panel/AccessControl.js \
|
2020-11-10 09:15:44 +00:00
|
|
|
panel/StorageAndDisks.js \
|
2020-11-10 09:18:06 +00:00
|
|
|
panel/UsageChart.js \
|
2020-06-25 12:53:05 +00:00
|
|
|
ZFSList.js \
|
2020-06-16 09:13:34 +00:00
|
|
|
DirectoryList.js \
|
2019-01-30 14:14:20 +00:00
|
|
|
LoginView.js \
|
2018-12-04 16:58:40 +00:00
|
|
|
VersionInfo.js \
|
2019-01-22 10:48:00 +00:00
|
|
|
SystemConfiguration.js \
|
|
|
|
Subscription.js \
|
2020-11-06 07:24:30 +00:00
|
|
|
datastore/Summary.js \
|
|
|
|
datastore/Notes.js \
|
|
|
|
datastore/PruneAndGC.js \
|
|
|
|
datastore/Prune.js \
|
|
|
|
datastore/Content.js \
|
2020-11-06 16:51:52 +00:00
|
|
|
datastore/OptionView.js \
|
2020-11-06 07:24:30 +00:00
|
|
|
datastore/Panel.js \
|
2020-11-09 15:01:29 +00:00
|
|
|
datastore/DataStoreListSummary.js \
|
|
|
|
datastore/DataStoreList.js \
|
2020-04-30 10:11:08 +00:00
|
|
|
ServerStatus.js \
|
2019-01-25 12:10:55 +00:00
|
|
|
ServerAdministration.js \
|
2019-12-18 16:29:05 +00:00
|
|
|
Dashboard.js \
|
2020-12-04 11:50:08 +00:00
|
|
|
${TAPE_UI_FILES} \
|
2019-01-22 10:48:00 +00:00
|
|
|
NavigationTree.js \
|
2018-12-04 16:53:10 +00:00
|
|
|
Application.js \
|
|
|
|
MainView.js
|
|
|
|
|
2019-12-16 17:16:05 +00:00
|
|
|
all: js/proxmox-backup-gui.js css/ext6-pbs.css
|
2018-12-04 16:53:10 +00:00
|
|
|
|
2019-01-31 12:36:33 +00:00
|
|
|
js:
|
|
|
|
mkdir js
|
|
|
|
|
2020-09-02 12:41:03 +00:00
|
|
|
.PHONY: OnlineHelpInfo.js
|
2020-09-02 12:22:36 +00:00
|
|
|
OnlineHelpInfo.js:
|
|
|
|
$(MAKE) -C ../docs onlinehelpinfo
|
|
|
|
mv ../docs/output/scanrefs/OnlineHelpInfo.js .
|
|
|
|
|
2020-10-01 11:12:44 +00:00
|
|
|
js/proxmox-backup-gui.js: .lint-incremental js OnlineHelpInfo.js ${JSSRC}
|
2019-01-25 11:37:01 +00:00
|
|
|
cat OnlineHelpInfo.js ${JSSRC} >$@.tmp
|
2018-12-04 16:53:10 +00:00
|
|
|
mv $@.tmp $@
|
|
|
|
|
2020-10-01 11:12:44 +00:00
|
|
|
.PHONY: check
|
|
|
|
check:
|
2020-11-12 08:50:48 +00:00
|
|
|
eslint --strict ${JSSRC}
|
2020-10-01 11:12:44 +00:00
|
|
|
touch ".lint-incremental"
|
|
|
|
|
|
|
|
.lint-incremental: ${JSSRC}
|
|
|
|
eslint $?
|
|
|
|
touch "$@"
|
2020-07-14 05:42:55 +00:00
|
|
|
|
2018-12-04 16:53:10 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2020-10-01 11:12:44 +00:00
|
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
rm -rf js .lint-incremental
|
2019-01-31 12:43:09 +00:00
|
|
|
|
2020-04-29 09:59:31 +00:00
|
|
|
install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)
|
2020-04-29 09:59:31 +00:00
|
|
|
install -m644 index.hbs $(DESTDIR)$(JSDIR)/
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/js
|
|
|
|
install -m644 js/proxmox-backup-gui.js $(DESTDIR)$(JSDIR)/js/
|
2019-12-16 17:16:05 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/css
|
|
|
|
install -m644 css/ext6-pbs.css $(DESTDIR)$(JSDIR)/css/
|
2019-01-31 12:43:09 +00:00
|
|
|
install -dm755 $(DESTDIR)$(JSDIR)/images
|
|
|
|
$(foreach i,$(IMAGES), \
|
|
|
|
install -m644 $(i) $(DESTDIR)$(JSDIR)/images/ ;)
|