docs: add Toolkit.js to prune simulator

from proxmox-widget-toolkit-dev and not as normal dependency,
else we would have to ship widget-toolkit on the wiki

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-06-04 14:35:28 +02:00 committed by Thomas Lamprecht
parent 62f10a01db
commit 442d6da8fb
4 changed files with 12 additions and 4 deletions

1
debian/control vendored
View File

@ -96,6 +96,7 @@ Build-Depends: debhelper (>= 12),
graphviz <!nodoc>, graphviz <!nodoc>,
latexmk <!nodoc>, latexmk <!nodoc>,
patchelf, patchelf,
proxmox-widget-toolkit-dev <!nodoc>,
pve-eslint (>= 7.18.0-1), pve-eslint (>= 7.18.0-1),
python3-docutils, python3-docutils,
python3-pygments, python3-pygments,

View File

@ -17,6 +17,7 @@ build_depends = [
"graphviz <!nodoc>", "graphviz <!nodoc>",
"latexmk <!nodoc>", "latexmk <!nodoc>",
"patchelf", "patchelf",
"proxmox-widget-toolkit-dev <!nodoc>",
"pve-eslint (>= 7.18.0-1)", "pve-eslint (>= 7.18.0-1)",
"python3-docutils", "python3-docutils",
"python3-pygments", "python3-pygments",

View File

@ -46,6 +46,10 @@ PRUNE_SIMULATOR_FILES := \
prune-simulator/clear-trigger.png \ prune-simulator/clear-trigger.png \
prune-simulator/prune-simulator.js prune-simulator/prune-simulator.js
PRUNE_SIMULATOR_JS_SOURCE := \
/usr/share/javascript/proxmox-widget-toolkit-dev/Toolkit.js \
prune-simulator/prune-simulator_source.js
LTO_BARCODE_FILES := \ LTO_BARCODE_FILES := \
lto-barcode/index.html \ lto-barcode/index.html \
lto-barcode/code39.js \ lto-barcode/code39.js \
@ -199,6 +203,10 @@ api-viewer/apidata.js: ${COMPILEDIR}/docgen
api-viewer/apidoc.js: api-viewer/apidata.js api-viewer/PBSAPI.js api-viewer/apidoc.js: api-viewer/apidata.js api-viewer/PBSAPI.js
cat api-viewer/apidata.js api-viewer/PBSAPI.js >$@ cat api-viewer/apidata.js api-viewer/PBSAPI.js >$@
prune-simulator/prune-simulator.js: ${PRUNE_SIMULATOR_JS_SOURCE}
cat ${PRUNE_SIMULATOR_JS_SOURCE} >$@.tmp
mv $@.tmp $@
.PHONY: html .PHONY: html
html: ${GENERATED_SYNOPSIS} images/proxmox-logo.svg custom.css conf.py ${PRUNE_SIMULATOR_FILES} ${LTO_BARCODE_FILES} ${API_VIEWER_SOURCES} html: ${GENERATED_SYNOPSIS} images/proxmox-logo.svg custom.css conf.py ${PRUNE_SIMULATOR_FILES} ${LTO_BARCODE_FILES} ${API_VIEWER_SOURCES}
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

View File

@ -1,7 +1,5 @@
// FIXME: HACK! Makes scrolling in number spinner work again. fixed in ExtJS >= 6.1 // for Toolkit.js
if (Ext.isFirefox) { function gettxt(val) { return val; };
Ext.$eventNameMap.DOMMouseScroll = 'DOMMouseScroll';
}
Ext.onReady(function() { Ext.onReady(function() {
const NOW = new Date(); const NOW = new Date();