Commit 160bddea authored by Lu Xu's avatar Lu Xu 👀

WIP

parent e8ec80dd
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = dc8276bfe127e4ea03fbfd15331122df md5sum = 318ee1e789feac31f74a0f48d1710b21
[amarisoft-stats.jinja2.py] [amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py _update_hash_filename_ = amarisoft-stats.jinja2.py
...@@ -117,7 +117,7 @@ md5sum = 44ae5693f62b7a4dbc98f700f68d8600 ...@@ -117,7 +117,7 @@ md5sum = 44ae5693f62b7a4dbc98f700f68d8600
[software.cfg.html] [software.cfg.html]
_update_hash_filename_ = gadget/software.cfg.html _update_hash_filename_ = gadget/software.cfg.html
md5sum = 61a2f783fbf683a34aed3d13e00baca2 md5sum = 61a2f783fbf683a34aed3d13e00baca2
[promise.gadget.js ] [promise.gadget.js]
_update_hash_filename_ = gadget/promise.gadget.js _update_hash_filename_ = gadget/promise.gadget.js
md5sum = 1a06b21b8bc3401ccc73b449faedce8b md5sum = 1a06b21b8bc3401ccc73b449faedce8b
[renderjs.js] [renderjs.js]
......
...@@ -234,4 +234,27 @@ context = ...@@ -234,4 +234,27 @@ context =
import json_module json import json_module json
key slave_instance_list slap-configuration:configuration.slave-list key slave_instance_list slap-configuration:configuration.slave-list
[gadget] [gadget-template-base]
recipe = slapos.recipe.template:jinja2
output = ${monitor-directory:public}/gadget/$${:filename}
content =
raw $${:filename} ${$${:filename}:target}
[promise-gadget-js]
< = gadget-template-base
filename = promise.gadget.js
[software-cfg-html]
< = gadget-template-base
filename = software.cfg.html
[promise-gadget-js]
< = gadget-template-base
filename = promise.gadget.js
[renderjs-js]
< = gadget-template-base
filename = renderjs.js
[rsvp-js]
< = gadget-template-base
filename = rsvp.js
[g-chart-line-js]
< = gadget-template-base
filename = g-chart.line.js
...@@ -22,7 +22,6 @@ parts += ...@@ -22,7 +22,6 @@ parts +=
ue-nr.jinja2.cfg ue-nr.jinja2.cfg
sib23.asn sib23.asn
# copy all gadget file # copy all gadget file
g-chart.css
g-chart.line.js g-chart.line.js
promise.gadget.js promise.gadget.js
renderjs.js renderjs.js
...@@ -129,7 +128,7 @@ filename = ue-nr.jinja2.cfg ...@@ -129,7 +128,7 @@ filename = ue-nr.jinja2.cfg
[software.cfg.html] [software.cfg.html]
<= copy-gadget-to-software <= copy-gadget-to-software
filename = software.cfg.html filename = software.cfg.html
[promise.gadget.js ] [promise.gadget.js]
<= copy-gadget-to-software <= copy-gadget-to-software
filename = promise.gadget.js filename = promise.gadget.js
[renderjs.js] [renderjs.js]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment