feat: remove commit version (#1980)

This commit is contained in:
Vlad Stan 2023-10-02 22:31:06 +03:00 committed by GitHub
parent 52608c4ffc
commit 542273a8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 0 additions and 33 deletions

View File

@ -418,7 +418,6 @@ def log_server_info():
logger.info(f"Site title: {settings.lnbits_site_title}") logger.info(f"Site title: {settings.lnbits_site_title}")
logger.info(f"Funding source: {settings.lnbits_backend_wallet_class}") logger.info(f"Funding source: {settings.lnbits_backend_wallet_class}")
logger.info(f"Data folder: {settings.lnbits_data_folder}") logger.info(f"Data folder: {settings.lnbits_data_folder}")
logger.info(f"Git version: {settings.lnbits_commit}")
logger.info(f"Database: {get_db_vendor_name()}") logger.info(f"Database: {get_db_vendor_name()}")
logger.info(f"Service fee: {settings.lnbits_service_fee}") logger.info(f"Service fee: {settings.lnbits_service_fee}")

View File

@ -49,7 +49,6 @@ 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["COMMIT_VERSION"] = settings.lnbits_commit
t.env.globals["LNBITS_VERSION"] = settings.version 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["LNBITS_NODE_UI"] = ( t.env.globals["LNBITS_NODE_UI"] = (

View File

@ -4,7 +4,6 @@ import importlib
import importlib.metadata import importlib.metadata
import inspect import inspect
import json import json
import subprocess
from os import path from os import path
from sqlite3 import Row from sqlite3 import Row
from typing import Any, List, Optional from typing import Any, List, Optional
@ -289,7 +288,6 @@ class EnvSettings(LNbitsSettings):
lnbits_title: str = Field(default="LNbits API") lnbits_title: str = Field(default="LNbits API")
lnbits_path: str = Field(default=".") lnbits_path: str = Field(default=".")
lnbits_extensions_path: str = Field(default="lnbits") lnbits_extensions_path: str = Field(default="lnbits")
lnbits_commit: str = Field(default="unknown")
super_user: str = Field(default="") super_user: str = Field(default="")
version: str = Field(default="0.0.0") version: str = Field(default="0.0.0")
@ -420,18 +418,6 @@ settings = Settings()
settings.lnbits_path = str(path.dirname(path.realpath(__file__))) settings.lnbits_path = str(path.dirname(path.realpath(__file__)))
try:
settings.lnbits_commit = (
subprocess.check_output(
["git", "-C", settings.lnbits_path, "rev-parse", "HEAD"],
stderr=subprocess.DEVNULL,
)
.strip()
.decode("ascii")
)
except Exception:
settings.lnbits_commit = "docker"
settings.version = importlib.metadata.version("lnbits") settings.version = importlib.metadata.version("lnbits")
# printing environment variable for debugging # printing environment variable for debugging

View File

@ -37,7 +37,6 @@ window.localisation.br = {
toggle_darkmode: 'Alternar modo escuro', toggle_darkmode: 'Alternar modo escuro',
view_swagger_docs: 'Ver a documentação da API do LNbits Swagger', view_swagger_docs: 'Ver a documentação da API do LNbits Swagger',
api_docs: 'Documentação da API', api_docs: 'Documentação da API',
commit_version: 'Versão de commit',
lnbits_version: 'Versão do LNbits', lnbits_version: 'Versão do LNbits',
runs_on: 'Executa em', runs_on: 'Executa em',
credit_hint: 'Pressione Enter para creditar a conta', credit_hint: 'Pressione Enter para creditar a conta',

View File

@ -36,7 +36,6 @@ window.localisation.cn = {
toggle_darkmode: '切换暗黑模式', toggle_darkmode: '切换暗黑模式',
view_swagger_docs: '查看 LNbits Swagger API 文档', view_swagger_docs: '查看 LNbits Swagger API 文档',
api_docs: 'API文档', api_docs: 'API文档',
commit_version: '提交版本',
lnbits_version: 'LNbits版本', lnbits_version: 'LNbits版本',
runs_on: '可运行在', runs_on: '可运行在',
credit_hint: '按 Enter 键充值账户', credit_hint: '按 Enter 键充值账户',

View File

@ -40,7 +40,6 @@ window.localisation.de = {
toggle_darkmode: 'Auf Dark Mode umschalten', toggle_darkmode: 'Auf Dark Mode umschalten',
view_swagger_docs: 'LNbits Swagger API-Dokumente', view_swagger_docs: 'LNbits Swagger API-Dokumente',
api_docs: 'API docs', api_docs: 'API docs',
commit_version: 'Commit Version',
runs_on: 'Läuft auf', runs_on: 'Läuft auf',
credit_hint: 'Klicke Enter, um das Konto zu belasten', credit_hint: 'Klicke Enter, um das Konto zu belasten',
credit_label: '%{denomination} zu belasten', credit_label: '%{denomination} zu belasten',

View File

@ -58,7 +58,6 @@ window.localisation.en = {
toggle_darkmode: 'Toggle Dark Mode', toggle_darkmode: 'Toggle Dark Mode',
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',
lnbits_version: 'LNbits 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',

View File

@ -38,7 +38,6 @@ window.localisation.es = {
toggle_darkmode: 'Cambiar modo oscuro', toggle_darkmode: 'Cambiar modo oscuro',
view_swagger_docs: 'Ver documentos de API de LNbits Swagger', view_swagger_docs: 'Ver documentos de API de LNbits Swagger',
api_docs: 'Documentos de API', api_docs: 'Documentos de API',
commit_version: 'Versión de compromiso',
runs_on: 'Corre en', runs_on: 'Corre en',
credit_hint: 'Presione Enter para cargar la cuenta', credit_hint: 'Presione Enter para cargar la cuenta',
credit_label: 'Cargar %{denomination}', credit_label: 'Cargar %{denomination}',

View File

@ -41,7 +41,6 @@ window.localisation.fr = {
toggle_darkmode: 'Basculer le mode sombre', toggle_darkmode: 'Basculer le mode sombre',
view_swagger_docs: "Voir les documents de l'API Swagger de LNbits", view_swagger_docs: "Voir les documents de l'API Swagger de LNbits",
api_docs: "Documents de l'API", api_docs: "Documents de l'API",
commit_version: 'Version de commit',
lnbits_version: 'Version de LNbits', lnbits_version: 'Version de LNbits',
runs_on: 'Fonctionne sur', runs_on: 'Fonctionne sur',
credit_hint: 'Appuyez sur Entrée pour créditer le compte', credit_hint: 'Appuyez sur Entrée pour créditer le compte',

View File

@ -38,7 +38,6 @@ window.localisation.it = {
toggle_darkmode: 'Attiva la modalità notturna', toggle_darkmode: 'Attiva la modalità notturna',
view_swagger_docs: "Visualizza i documenti dell'API Swagger di LNbits", view_swagger_docs: "Visualizza i documenti dell'API Swagger di LNbits",
api_docs: 'Documenti API', api_docs: 'Documenti API',
commit_version: 'Commit version',
lnbits_version: 'Versione di LNbits', lnbits_version: 'Versione di LNbits',
runs_on: 'Esegue su', runs_on: 'Esegue su',
credit_hint: 'Premere Invio per accreditare i fondi', credit_hint: 'Premere Invio per accreditare i fondi',

View File

@ -36,7 +36,6 @@ window.localisation.jp = {
toggle_dark_mode: 'ダークモードを切り替える', toggle_dark_mode: 'ダークモードを切り替える',
view_swagger_docs: 'Swaggerドキュメントを表示', view_swagger_docs: 'Swaggerドキュメントを表示',
api_docs: 'APIドキュメント', api_docs: 'APIドキュメント',
commit_version: 'コミットバージョン',
runs_on: 'で実行', runs_on: 'で実行',
credit_hint: credit_hint:
'クレジットカードを使用して資金を追加するには、LNbitsを使用してください。', 'クレジットカードを使用して資金を追加するには、LNbitsを使用してください。',

View File

@ -39,7 +39,6 @@ window.localisation.nl = {
toggle_darkmode: 'Donkere modus aan/uit', toggle_darkmode: 'Donkere modus aan/uit',
view_swagger_docs: 'Bekijk LNbits Swagger API-documentatie', view_swagger_docs: 'Bekijk LNbits Swagger API-documentatie',
api_docs: 'API-documentatie', api_docs: 'API-documentatie',
commit_version: 'Commit-versie',
lnbits_version: 'LNbits-versie', lnbits_version: 'LNbits-versie',
runs_on: 'Draait op', runs_on: 'Draait op',
credit_hint: 'Druk op Enter om de rekening te crediteren', credit_hint: 'Druk op Enter om de rekening te crediteren',

View File

@ -38,7 +38,6 @@ window.localisation.pi = {
toggle_darkmode: 'Toggle Dark Mode, arr!', toggle_darkmode: 'Toggle Dark Mode, arr!',
view_swagger_docs: 'View LNbits Swagger API docs and learn the secrets', view_swagger_docs: 'View LNbits Swagger API docs and learn the secrets',
api_docs: 'API docs for the scallywags', api_docs: 'API docs for the scallywags',
commit_version: 'Commit version like a true pirate',
lnbits_version: 'LNbits version, arr!', lnbits_version: 'LNbits version, arr!',
runs_on: 'Runs on, matey', runs_on: 'Runs on, matey',
credit_hint: 'Press Enter to credit account and make it richer', credit_hint: 'Press Enter to credit account and make it richer',

View File

@ -36,7 +36,6 @@ window.localisation.pl = {
toggle_darkmode: 'Tryb nocny', toggle_darkmode: 'Tryb nocny',
view_swagger_docs: 'Dokumentacja Swagger API', view_swagger_docs: 'Dokumentacja Swagger API',
api_docs: 'Dokumentacja API', api_docs: 'Dokumentacja API',
commit_version: 'Commit',
lnbits_version: 'Wersja LNbits', lnbits_version: 'Wersja LNbits',
runs_on: 'Działa na', runs_on: 'Działa na',
credit_hint: 'Naciśnij Enter aby doładować konto', credit_hint: 'Naciśnij Enter aby doładować konto',

View File

@ -37,7 +37,6 @@ window.localisation.pt = {
toggle_darkmode: 'Alternar modo escuro', toggle_darkmode: 'Alternar modo escuro',
view_swagger_docs: 'Ver a documentação da API do LNbits Swagger', view_swagger_docs: 'Ver a documentação da API do LNbits Swagger',
api_docs: 'Documentação da API', api_docs: 'Documentação da API',
commit_version: 'Versão de commit',
lnbits_version: 'Versão do LNbits', lnbits_version: 'Versão do LNbits',
runs_on: 'Executa em', runs_on: 'Executa em',
credit_hint: 'Pressione Enter para creditar a conta', credit_hint: 'Pressione Enter para creditar a conta',

View File

@ -37,7 +37,6 @@ window.localisation.we = {
toggle_darkmode: 'Toglo Modd Tywyll', toggle_darkmode: 'Toglo Modd Tywyll',
view_swagger_docs: 'Gweld dogfennau API LNbits Swagger', view_swagger_docs: 'Gweld dogfennau API LNbits Swagger',
api_docs: 'Api docs', api_docs: 'Api docs',
commit_version: 'fersiwn ymrwymo',
lnbits_version: 'Fersiwn LNbits', lnbits_version: 'Fersiwn LNbits',
Runs_on: 'Yn rhedeg ymlaen', Runs_on: 'Yn rhedeg ymlaen',
credit_hint: 'Pwyswch Enter i gyfrif credyd', credit_hint: 'Pwyswch Enter i gyfrif credyd',

View File

@ -253,10 +253,6 @@
>{% raw %}{{ $t('lnbits_version') }}{% endraw %}: >{% raw %}{{ $t('lnbits_version') }}{% endraw %}:
{{LNBITS_VERSION}}, {{LNBITS_VERSION}},
</small> </small>
<small
>{% raw %}{{ $t('commit_version') }}{% endraw %}:
{{COMMIT_VERSION}}</small
>
</q-toolbar-title> </q-toolbar-title>
<q-space></q-space> <q-space></q-space>
<q-btn <q-btn