Commit b83fbe97 authored by david's avatar david
Browse files

Display app version. #1

parent 4a2d619c
......@@ -8,6 +8,7 @@ import {config} from 'dotenv';
const html = require('@rollup/plugin-html');
import fs from 'fs';
import path from 'path';
import pkg from "./package.json";
const production = !process.env.ROLLUP_WATCH;
......@@ -25,6 +26,10 @@ export default {
globalConfig: JSON.stringify(config().parsed)
}),
replace({
APP_VERSION: pkg.version
}),
svelte({
// enable run-time checks when not in production
dev: !production,
......
......@@ -13,6 +13,7 @@
export let unknowntitle = globalConfig.UNKNOWN_TITLE;
export let playoffset = globalConfig.PLAY_OFFSET;
let version = "APP_VERSION";
let time = new Date();
let queryCurrent = "clock";
let rootElement;
......@@ -590,7 +591,7 @@
<footer>
<a href="https://gitlab.servus.at/aura/engine-clock">Engine Clock</a> is fuelled by <a href="https://gitlab.servus.at/aura/engine">AURA Engine</a>
<a href="https://gitlab.servus.at/aura/engine-clock">Engine Clock v{version}</a> is fuelled by <a href="https://gitlab.servus.at/aura/engine">AURA Engine</a>
</footer>
</div>
......
Supports Markdown
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