pve-manager/www/manager6/Makefile

348 lines
8.9 KiB
Makefile
Raw Normal View History

2016-03-31 12:42:29 +03:00
include ../../defines.mk
ESLINT ?= $(if $(shell command -v pve-eslint), pve-eslint, eslint)
JSSRC= \
2016-03-31 12:42:29 +03:00
Parser.js \
StateProvider.js \
Utils.js \
UIOptions.js \
Toolkit.js \
VNCConsole.js \
2016-03-31 12:42:29 +03:00
button/ConsoleButton.js \
button/Revert.js \
button/Split.js \
controller/StorageEdit.js \
data/PermPathStore.js \
2016-03-31 12:42:29 +03:00
data/ResourceStore.js \
data/model/RRDModels.js \
container/TwoColumnContainer.js \
form/ACMEAPISelector.js \
form/ACMEAccountSelector.js \
form/ACMEPluginSelector.js \
form/AgentFeatureSelector.js \
form/BackupCompressionSelector.js \
form/BackupModeSelector.js \
form/BandwidthSelector.js \
form/BridgeSelector.js \
form/BusTypeSelector.js \
form/CPUModelSelector.js \
form/CacheTypeSelector.js \
form/CalendarEvent.js \
form/CephPoolSelector.js \
form/CephFSSelector.js \
form/ComboBoxSetStoreNode.js \
form/ContentTypeSelector.js \
form/ControllerSelector.js \
form/DayOfWeekSelector.js \
form/DiskFormatSelector.js \
form/DiskStorageSelector.js \
form/FileSelector.js \
form/FirewallPolicySelector.js \
form/GlobalSearchField.js \
2016-03-31 12:42:29 +03:00
form/GroupSelector.js \
form/GuestIDSelector.js \
form/HashAlgorithmSelector.js \
form/HotplugFeatureSelector.js \
form/IPProtocolSelector.js \
form/IPRefSelector.js \
form/MDevSelector.js \
2016-03-31 12:42:29 +03:00
form/MemoryField.js \
form/MultiPCISelector.js \
2016-03-31 12:42:29 +03:00
form/NetworkCardSelector.js \
form/NodeSelector.js \
form/NotificationModeSelector.js \
form/NotificationTargetSelector.js \
form/NotificationPolicySelector.js \
form/PCISelector.js \
form/PCIMapSelector.js \
form/PermPathSelector.js \
form/PoolSelector.js \
form/PreallocationSelector.js \
form/PrivilegesSelector.js \
form/QemuBiosSelector.js \
form/SDNControllerSelector.js \
form/SDNZoneSelector.js \
form/SDNVnetSelector.js \
form/SDNIpamSelector.js \
form/SDNDnsSelector.js \
form/ScsiHwSelector.js \
2016-03-31 12:42:29 +03:00
form/SecurityGroupSelector.js \
form/SnapshotSelector.js \
form/SpiceEnhancementSelector.js \
form/StorageScanNodeSelector.js \
form/StorageSelector.js \
form/TFASelector.js \
form/TokenSelector.js \
form/USBSelector.js \
form/USBMapSelector.js \
form/UserSelector.js \
form/VLanField.js \
form/VMCPUFlagSelector.js \
form/VMSelector.js \
form/VNCKeyboardSelector.js \
form/ViewSelector.js \
form/iScsiProviderSelector.js \
form/TagColorGrid.js \
form/ListField.js \
form/Tag.js \
form/TagEdit.js \
form/MultiFileButton.js \
form/TagFieldSet.js \
form/IsoSelector.js \
grid/BackupView.js \
2016-03-31 12:42:29 +03:00
grid/FirewallAliases.js \
grid/FirewallOptions.js \
grid/FirewallRules.js \
grid/PoolMembers.js \
grid/Replication.js \
grid/ResourceGrid.js \
panel/ConfigPanel.js \
panel/BackupAdvancedOptions.js \
panel/BackupJobPrune.js \
panel/HealthWidget.js \
panel/IPSet.js \
panel/RunningChart.js \
panel/StatusPanel.js \
panel/GuestStatusView.js \
panel/GuestSummary.js \
panel/TemplateStatusView.js \
panel/MultiDiskEdit.js \
tree/ResourceTree.js \
tree/SnapshotTree.js \
tree/ResourceMapTree.js \
tree/DhcpTree.js \
window/Backup.js \
window/BackupConfig.js \
window/BulkAction.js \
window/CephInstall.js \
window/Clone.js \
window/FirewallEnableEdit.js \
window/FirewallLograteEdit.js \
window/LoginWindow.js \
window/Migrate.js \
window/Prune.js \
window/Restore.js \
window/SafeDestroyGuest.js \
window/SafeDestroyStorage.js \
window/Settings.js \
window/Snapshot.js \
window/StartupEdit.js \
window/DownloadUrlToStorage.js \
window/UploadToStorage.js \
window/ScheduleSimulator.js \
window/Wizard.js \
window/GuestDiskReassign.js \
fix #4474: ui: guest stop: offer to overrule active shutdown tasks Implement a new "guest stop" confirmation message box which first checks if there is an active shutdown task for the same guest that is visible to the logged-in user. If there is at least one, the dialog displays an additional default-on checkbox for overruling active shutdown tasks. If the user confirms and the checkbox is checked, the UI sends a guest stop API request with the `overrule-shutdown` parameter set to 1. If there are no active shutdown tasks, or the checkbox is unchecked, the UI sends a guest stop API request without `overrule-shutdown`. To avoid an additional API request for querying active shutdown tasks, check the UI's current view of cluster tasks instead, which is fetched from the `pve-cluster-tasks` store. As the UI might hold an outdated task list, there are some opportunities for races, e.g., the UI may miss a new shutdown task or consider a shutdown task active even though it has already terminated. These races either result in a surviving shutdown task that the user still needs to abort manually, or a superfluous `override-shutdown=1` parameter that does not actually abort any tasks. Since "stop overrules shutdown" is merely a convenience feature, both outcomes seem bearable. The confirmation message box is now always marked as dangerous (with a warning sign icon), whereas previously it was only marked dangerous if the stop issued from the guest panel, but not when issued from the resource tree command menu. Signed-off-by: Friedrich Weber <f.weber@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> [ TL: squash in some slightly opinionated code/style clean-ups ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-12 17:15:53 +03:00
window/GuestStop.js \
window/TreeSettingsEdit.js \
window/PCIMapEdit.js \
window/USBMapEdit.js \
window/GuestImport.js \
ha/Fencing.js \
ha/GroupEdit.js \
ha/GroupSelector.js \
ha/Groups.js \
ha/ResourceEdit.js \
ha/Resources.js \
ha/Status.js \
ha/StatusView.js \
dc/ACLView.js \
dc/ACMEClusterView.js \
dc/ACMEPluginEdit.js \
dc/AuthEditBase.js \
dc/AuthEditAD.js \
dc/AuthEditLDAP.js \
dc/AuthEditOpenId.js \
dc/AuthView.js \
dc/BackupJobDetail.js \
dc/Backup.js \
dc/Cluster.js \
dc/ClusterEdit.js \
dc/Config.js \
dc/CorosyncLinkEdit.js \
dc/GroupEdit.js \
dc/GroupView.js \
dc/Guests.js \
dc/Health.js \
dc/Log.js \
dc/NodeView.js \
dc/OptionView.js \
dc/PermissionView.js \
dc/PoolEdit.js \
dc/PoolView.js \
dc/RoleEdit.js \
dc/RoleView.js \
dc/SecurityGroups.js \
dc/StorageView.js \
dc/Summary.js \
dc/Support.js \
dc/SyncWindow.js \
dc/Tasks.js \
dc/TokenEdit.js \
dc/TokenView.js \
dc/UserEdit.js \
dc/UserView.js \
dc/MetricServerView.js \
dc/UserTagAccessEdit.js \
dc/RegisteredTagsEdit.js \
dc/RealmSyncJob.js \
dc/PCIMapView.js \
dc/USBMapView.js \
lxc/CmdMenu.js \
lxc/Config.js \
lxc/CreateWizard.js \
lxc/DeviceEdit.js \
lxc/DNS.js \
lxc/FeaturesEdit.js \
lxc/MPEdit.js \
lxc/MPResize.js \
lxc/Network.js \
lxc/Options.js \
lxc/ResourceEdit.js \
lxc/Resources.js \
lxc/MultiMPEdit.js \
menu/MenuItem.js \
menu/TemplateMenu.js \
ceph/CephInstallWizard.js \
ceph/Config.js \
ceph/Crush.js \
ceph/FS.js \
ceph/Log.js \
ceph/Monitor.js \
ceph/OSD.js \
ceph/OSDDetails.js \
ceph/Pool.js \
ceph/ServiceList.js \
ceph/Services.js \
ceph/Status.js \
ceph/StatusDetail.js \
node/ACME.js \
node/Certificates.js \
node/CmdMenu.js \
node/Config.js \
node/Directory.js \
node/LVM.js \
node/LVMThin.js \
2016-03-31 12:42:29 +03:00
node/StatusView.js \
node/Subscription.js \
node/Summary.js \
node/ZFS.js \
node/NodeOptionsView.js \
pool/Config.js \
pool/StatusView.js \
pool/Summary.js \
qemu/AgentIPView.js \
qemu/AudioEdit.js \
2016-03-31 12:42:29 +03:00
qemu/BootOrderEdit.js \
qemu/CDEdit.js \
qemu/CIDriveEdit.js \
qemu/CloudInit.js \
qemu/CmdMenu.js \
qemu/Config.js \
qemu/CreateWizard.js \
qemu/DisplayEdit.js \
2016-03-31 12:42:29 +03:00
qemu/HDEdit.js \
qemu/HDEfi.js \
qemu/HDTPM.js \
qemu/HDMove.js \
qemu/HDResize.js \
2016-03-31 12:42:29 +03:00
qemu/HardwareView.js \
qemu/IPConfigEdit.js \
qemu/KeyboardEdit.js \
qemu/MachineEdit.js \
qemu/MemoryEdit.js \
qemu/Monitor.js \
qemu/MultiHDEdit.js \
qemu/NetworkEdit.js \
qemu/OSDefaults.js \
qemu/OSTypeEdit.js \
2016-03-31 12:42:29 +03:00
qemu/Options.js \
qemu/PCIEdit.js \
qemu/ProcessorEdit.js \
qemu/QemuBiosEdit.js \
qemu/RNGEdit.js \
qemu/SSHKey.js \
qemu/ScsiHwEdit.js \
qemu/SerialEdit.js \
qemu/Smbios1Edit.js \
qemu/SystemEdit.js \
qemu/USBEdit.js \
sdn/Browser.js \
sdn/ControllerView.js \
sdn/Status.js \
sdn/StatusView.js \
sdn/VnetEdit.js \
sdn/VnetView.js \
sdn/VnetACLView.js \
sdn/VnetPanel.js \
sdn/SubnetEdit.js \
sdn/SubnetView.js \
sdn/ZoneContentView.js \
sdn/ZoneContentPanel.js \
sdn/ZoneView.js \
sdn/IpamEdit.js \
sdn/OptionsPanel.js \
sdn/controllers/Base.js \
sdn/controllers/EvpnEdit.js \
sdn/controllers/BgpEdit.js \
2023-09-13 14:38:42 +03:00
sdn/controllers/IsisEdit.js \
sdn/IpamView.js \
sdn/ipams/Base.js \
sdn/ipams/NetboxEdit.js \
sdn/ipams/PVEIpamEdit.js \
sdn/ipams/PhpIpamEdit.js \
sdn/DnsView.js \
sdn/dns/Base.js \
sdn/dns/PowerdnsEdit.js \
sdn/zones/Base.js \
sdn/zones/EvpnEdit.js \
sdn/zones/QinQEdit.js \
sdn/zones/SimpleEdit.js \
sdn/zones/VlanEdit.js \
sdn/zones/VxlanEdit.js \
storage/ContentView.js \
storage/BackupView.js \
storage/Base.js \
2016-03-31 12:42:29 +03:00
storage/Browser.js \
2018-03-16 17:02:34 +03:00
storage/CIFSEdit.js \
storage/CephFSEdit.js \
storage/DirEdit.js \
2016-03-31 12:42:29 +03:00
storage/GlusterFsEdit.js \
storage/ImageView.js \
2016-03-31 12:42:29 +03:00
storage/IScsiEdit.js \
storage/LVMEdit.js \
storage/LvmThinEdit.js \
storage/BTRFSEdit.js \
storage/NFSEdit.js \
storage/PBSEdit.js \
2016-03-31 12:42:29 +03:00
storage/RBDEdit.js \
storage/StatusView.js \
storage/Summary.js \
storage/TemplateView.js \
2016-03-31 12:42:29 +03:00
storage/ZFSEdit.js \
storage/ZFSPoolEdit.js \
storage/ESXIEdit.js \
Workspace.js \
# end of JSSRC list
2016-03-31 12:42:29 +03:00
WIDGETKIT=/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
all:
2024-02-29 20:47:01 +03:00
pvemanagerlib.js: OnlineHelpInfo.js $(JSSRC)
cat OnlineHelpInfo.js $(JSSRC) >$@.tmp
mv $@.tmp $@
OnlineHelpInfo.js: $(JSSRC) $(WIDGETKIT)
/usr/bin/asciidoc-pve scan-extjs $^ >$@.tmp
2016-03-31 12:42:29 +03:00
mv $@.tmp $@
.PHONY: install
2016-03-31 12:42:29 +03:00
install: pvemanagerlib.js
install -d $(WWWJSDIR)
install -m 0644 pvemanagerlib.js $(WWWJSDIR)
2016-03-31 12:42:29 +03:00
.PHONY: clean
clean:
rm -rf pvemanagerlib.js OnlineHelpInfo.js .lint-incremental