Add logo and version v1.0.1

This commit is contained in:
2026-07-23 18:11:27 +04:00
parent 51d89b2289
commit f057297e42
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -5,9 +5,12 @@ from flask import Flask
from routes.main import bp as main_bp from routes.main import bp as main_bp
from routes.api import bp as api_bp from routes.api import bp as api_bp
VERSION = "1.0.1"
app = Flask(__name__, template_folder="templates", static_folder="static") app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
app.config["NUBES_API_TOKEN"] = os.getenv("NUBES_API_TOKEN", "") app.config["NUBES_API_TOKEN"] = os.getenv("NUBES_API_TOKEN", "")
app.config["VERSION"] = VERSION
app.register_blueprint(main_bp) app.register_blueprint(main_bp)
app.register_blueprint(api_bp) app.register_blueprint(api_bp)
+5 -1
View File
@@ -13,7 +13,11 @@
</head> </head>
<body> <body>
<form method="post" style="max-width:900px;margin:16px auto 0;padding:0 16px;display:flex;align-items:center;gap:8px;"> <div style="max-width:900px;margin:0 auto;padding:12px 16px 0;display:flex;align-items:center;gap:12px;">
<img src="{{ url_for('static', filename='logo.svg') }}" alt="Nubes" style="height:24px;" />
<span style="font-size:11px;color:var(--muted);">v{{ config.VERSION if config else '?' }}</span>
<span style="flex:1;"></span>
<form method="post" style="display:flex;align-items:center;gap:6px;">
<input type="password" name="token" placeholder="env: {{ env_token_masked }}" value="{{ '' if not has_user_token else '••••••••' }}" style="height:28px;width:200px;font-size:12px;border:1px solid var(--brand-gray);border-radius:4px;padding:0 6px;" /> <input type="password" name="token" placeholder="env: {{ env_token_masked }}" value="{{ '' if not has_user_token else '••••••••' }}" style="height:28px;width:200px;font-size:12px;border:1px solid var(--brand-gray);border-radius:4px;padding:0 6px;" />
<button type="submit" name="action" value="save" class="btn" style="height:28px;font-size:12px;padding:0 8px;">OK</button> <button type="submit" name="action" value="save" class="btn" style="height:28px;font-size:12px;padding:0 8px;">OK</button>
{% if has_user_token %} {% if has_user_token %}