add lnbits version to frontend (#1677)
This commit is contained in:
parent
590b52cb31
commit
7feac3bb5e
5 changed files with 11 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
// update cache version every time there is a new deployment
|
// update cache version every time there is a new deployment
|
||||||
// so the service worker reinitializes the cache
|
// so the service worker reinitializes the cache
|
||||||
const CACHE_VERSION = 3
|
const CACHE_VERSION = 5
|
||||||
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
const CURRENT_CACHE = `lnbits-${CACHE_VERSION}-`
|
||||||
|
|
||||||
const getApiKey = request => {
|
const getApiKey = request => {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,8 @@ def template_renderer(additional_folders: Optional[List] = None) -> Jinja2Templa
|
||||||
t.env.globals["SITE_TAGLINE"] = settings.lnbits_site_tagline
|
t.env.globals["SITE_TAGLINE"] = settings.lnbits_site_tagline
|
||||||
t.env.globals["SITE_DESCRIPTION"] = settings.lnbits_site_description
|
t.env.globals["SITE_DESCRIPTION"] = settings.lnbits_site_description
|
||||||
t.env.globals["LNBITS_THEME_OPTIONS"] = settings.lnbits_theme_options
|
t.env.globals["LNBITS_THEME_OPTIONS"] = settings.lnbits_theme_options
|
||||||
t.env.globals["LNBITS_VERSION"] = settings.lnbits_commit
|
t.env.globals["COMMIT_VERSION"] = settings.lnbits_commit
|
||||||
|
t.env.globals["LNBITS_VERSION"] = settings.version
|
||||||
t.env.globals["LNBITS_ADMIN_UI"] = settings.lnbits_admin_ui
|
t.env.globals["LNBITS_ADMIN_UI"] = settings.lnbits_admin_ui
|
||||||
t.env.globals["EXTENSIONS"] = [
|
t.env.globals["EXTENSIONS"] = [
|
||||||
e
|
e
|
||||||
|
|
|
||||||
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -37,6 +37,7 @@ window.localisation.en = {
|
||||||
view_swagger_docs: 'View LNbits Swagger API docs',
|
view_swagger_docs: 'View LNbits Swagger API docs',
|
||||||
api_docs: 'Api docs',
|
api_docs: 'Api docs',
|
||||||
commit_version: 'Commit version',
|
commit_version: 'Commit version',
|
||||||
|
lnbits_version: 'LNbits version',
|
||||||
runs_on: 'Runs on',
|
runs_on: 'Runs on',
|
||||||
credit_hint: 'Press Enter to credit account',
|
credit_hint: 'Press Enter to credit account',
|
||||||
credit_label: '%{denomination} to credit',
|
credit_label: '%{denomination} to credit',
|
||||||
|
|
|
||||||
|
|
@ -240,10 +240,13 @@
|
||||||
<q-toolbar-title class="text-caption">
|
<q-toolbar-title class="text-caption">
|
||||||
{{ SITE_TITLE }}, {{SITE_TAGLINE}}
|
{{ SITE_TITLE }}, {{SITE_TAGLINE}}
|
||||||
<br />
|
<br />
|
||||||
|
<small
|
||||||
<small v-if="'{{SITE_TITLE}}' == 'LNbits'"
|
>{% raw %}{{ $t('lnbits_version') }}{% endraw %}:
|
||||||
|
{{LNBITS_VERSION}},
|
||||||
|
</small>
|
||||||
|
<small
|
||||||
>{% raw %}{{ $t('commit_version') }}{% endraw %}:
|
>{% raw %}{{ $t('commit_version') }}{% endraw %}:
|
||||||
{{LNBITS_VERSION}}</small
|
{{COMMIT_VERSION}}</small
|
||||||
>
|
>
|
||||||
</q-toolbar-title>
|
</q-toolbar-title>
|
||||||
<q-space></q-space>
|
<q-space></q-space>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue