docs: add Toolkit.js to lto-barcode
and generate a single js file for it Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
442d6da8fb
commit
d738669066
|
@ -50,8 +50,8 @@ PRUNE_SIMULATOR_JS_SOURCE := \
|
||||||
/usr/share/javascript/proxmox-widget-toolkit-dev/Toolkit.js \
|
/usr/share/javascript/proxmox-widget-toolkit-dev/Toolkit.js \
|
||||||
prune-simulator/prune-simulator_source.js
|
prune-simulator/prune-simulator_source.js
|
||||||
|
|
||||||
LTO_BARCODE_FILES := \
|
LTO_BARCODE_JS_SOURCE := \
|
||||||
lto-barcode/index.html \
|
/usr/share/javascript/proxmox-widget-toolkit-dev/Toolkit.js \
|
||||||
lto-barcode/code39.js \
|
lto-barcode/code39.js \
|
||||||
lto-barcode/prefix-field.js \
|
lto-barcode/prefix-field.js \
|
||||||
lto-barcode/label-style.js \
|
lto-barcode/label-style.js \
|
||||||
|
@ -63,6 +63,10 @@ LTO_BARCODE_FILES := \
|
||||||
lto-barcode/label-setup.js \
|
lto-barcode/label-setup.js \
|
||||||
lto-barcode/lto-barcode.js
|
lto-barcode/lto-barcode.js
|
||||||
|
|
||||||
|
LTO_BARCODE_FILES := \
|
||||||
|
lto-barcode/index.html \
|
||||||
|
lto-barcode/lto-barcode-generator.js
|
||||||
|
|
||||||
API_VIEWER_SOURCES= \
|
API_VIEWER_SOURCES= \
|
||||||
api-viewer/index.html \
|
api-viewer/index.html \
|
||||||
api-viewer/apidoc.js
|
api-viewer/apidoc.js
|
||||||
|
@ -207,6 +211,10 @@ prune-simulator/prune-simulator.js: ${PRUNE_SIMULATOR_JS_SOURCE}
|
||||||
cat ${PRUNE_SIMULATOR_JS_SOURCE} >$@.tmp
|
cat ${PRUNE_SIMULATOR_JS_SOURCE} >$@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
lto-barcode/lto-barcode-generator.js: ${LTO_BARCODE_JS_SOURCE}
|
||||||
|
cat ${LTO_BARCODE_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
|
||||||
|
|
|
@ -34,17 +34,7 @@
|
||||||
</style>
|
</style>
|
||||||
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.css"/>
|
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.css"/>
|
||||||
<script type="text/javascript" src="extjs/ext-all.js"></script>
|
<script type="text/javascript" src="extjs/ext-all.js"></script>
|
||||||
|
<script type="text/javascript" src="lto-barcode-generator.js"></script>
|
||||||
<script type="text/javascript" src="code39.js"></script>
|
|
||||||
<script type="text/javascript" src="prefix-field.js"></script>
|
|
||||||
<script type="text/javascript" src="label-style.js"></script>
|
|
||||||
<script type="text/javascript" src="tape-type.js"></script>
|
|
||||||
<script type="text/javascript" src="paper-size.js"></script>
|
|
||||||
<script type="text/javascript" src="page-layout.js"></script>
|
|
||||||
<script type="text/javascript" src="page-calibration.js"></script>
|
|
||||||
<script type="text/javascript" src="label-list.js"></script>
|
|
||||||
<script type="text/javascript" src="label-setup.js"></script>
|
|
||||||
<script type="text/javascript" src="lto-barcode.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -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 gettext(val) { return val; };
|
||||||
Ext.$eventNameMap.DOMMouseScroll = 'DOMMouseScroll';
|
|
||||||
}
|
|
||||||
|
|
||||||
function draw_labels(target_id, label_list, page_layout, calibration) {
|
function draw_labels(target_id, label_list, page_layout, calibration) {
|
||||||
let max_labels = compute_max_labels(page_layout);
|
let max_labels = compute_max_labels(page_layout);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// for Toolkit.js
|
// for Toolkit.js
|
||||||
function gettxt(val) { return val; };
|
function gettext(val) { return val; };
|
||||||
|
|
||||||
Ext.onReady(function() {
|
Ext.onReady(function() {
|
||||||
const NOW = new Date();
|
const NOW = new Date();
|
||||||
|
|
Loading…
Reference in New Issue