🔥 Remove the need of static (build time) configuration.

This commit is contained in:
Andrey Antukh 2020-08-18 16:33:12 +02:00
parent 2746d598b0
commit fb910a24e1
4 changed files with 32 additions and 64 deletions

View file

@ -12,13 +12,17 @@
<section id="app" tabindex="1"></section>
<section id="modal"></section>
<script>
window.uxboxConfig = JSON.parse({{& config }});
window.uxboxTranslations = JSON.parse({{& translations }});
window.uxboxThemes = {{& themes }};
window.uxboxTranslations = JSON.parse({{& translations }});
window.uxboxThemes = {{& themes }};
window.uxboxDeployDate = "{{& deployDate }}";
window.uxboxDeployCommit = "{{& deployCommit }}";
</script>
{{# manifest}}
<script src="{{& shared}}"></script>
<script src="{{& main}}"></script>
<script>window.uxboxWorkerURI="{{& worker}}"</script>
<script src="{{& config}}"></script>
<script src="{{& shared}}"></script>
<script src="{{& main}}"></script>
{{/manifest}}
</body>
</html>