загрузил иконку и поменял название вкладки браузера
This commit is contained in:
2
app.py
2
app.py
@@ -29,7 +29,7 @@ from ui_builder import install_ui_builder
|
||||
from khl_site.khl_data_center import APP as khl_site_app
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
BUILD_VERSION = "2026.08.19.21"
|
||||
BUILD_VERSION = "2026.08.19.22"
|
||||
load_dotenv(BASE_DIR / ".env.local")
|
||||
load_dotenv(BASE_DIR / ".env")
|
||||
VMIX_API_URL = os.getenv("VMIX_API_URL", "http://127.0.0.1:8088/api/")
|
||||
|
||||
@@ -6,7 +6,7 @@ APP = (ROOT / "app.py").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_build_version_bumped():
|
||||
assert 'BUILD_VERSION = "2026.08.19.21"' in APP
|
||||
assert 'BUILD_VERSION = "2026.08.19.22"' in APP
|
||||
|
||||
|
||||
def test_sequence_targets_match_active_overlay_input():
|
||||
|
||||
@@ -6,7 +6,7 @@ APP = (ROOT / "app.py").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_build_version_bumped():
|
||||
assert 'BUILD_VERSION = "2026.08.19.21"' in APP
|
||||
assert 'BUILD_VERSION = "2026.08.19.22"' in APP
|
||||
|
||||
|
||||
def test_overlay_parser_accepts_legacy_function_strings():
|
||||
|
||||
@@ -39,4 +39,4 @@ def test_runtime_has_hockey_account_logout_button_and_handler():
|
||||
|
||||
def test_build_version_bumped():
|
||||
app = (ROOT / "app.py").read_text(encoding="utf-8")
|
||||
assert 'BUILD_VERSION = "2026.08.19.21"' in app
|
||||
assert 'BUILD_VERSION = "2026.08.19.22"' in app
|
||||
|
||||
15
tests/test_build64_browser_title_favicon.py
Normal file
15
tests/test_build64_browser_title_favicon.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_main_html_has_hockey_vmix_title_and_favicon():
|
||||
html = (ROOT / "ui_builder" / "static" / "index.html").read_text(encoding="utf-8")
|
||||
assert "<title>Хоккейный vMix</title>" in html
|
||||
assert 'href="__UI_BUILDER_ASSETS__/favicon.svg?v=__UI_BUILDER_ASSET_VERSION__"' in html
|
||||
|
||||
|
||||
def test_favicon_svg_exists_and_is_valid_svg_shell():
|
||||
svg = (ROOT / "ui_builder" / "static" / "favicon.svg").read_text(encoding="utf-8")
|
||||
assert svg.lstrip().startswith("<svg")
|
||||
assert "viewBox=\"0 0 64 64\"" in svg
|
||||
25
ui_builder/static/favicon.svg
Normal file
25
ui_builder/static/favicon.svg
Normal file
@@ -0,0 +1,25 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="8" y1="6" x2="56" y2="60" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#17233c"/>
|
||||
<stop offset="1" stop-color="#07101f"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="ice" x1="12" y1="13" x2="49" y2="52" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#88f0ff"/>
|
||||
<stop offset="1" stop-color="#38a7ff"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="150%">
|
||||
<feDropShadow dx="0" dy="2" stdDeviation="2" flood-opacity=".38"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="2" y="2" width="60" height="60" rx="15" fill="url(#bg)"/>
|
||||
<path d="M11 18c8-6 34-6 42 0M11 46c8 6 34 6 42 0" fill="none" stroke="#ffffff" stroke-opacity=".08" stroke-width="2"/>
|
||||
<circle cx="32" cy="32" r="21" fill="none" stroke="#75dfff" stroke-opacity=".18" stroke-width="1.5"/>
|
||||
<path d="M19 13l22 28c1.7 2.2 4.1 3.6 6.9 4l5.2.7-2.6 6.1-7.8-2.3c-3.2-.9-5.9-2.8-7.8-5.4L13.7 17.2 19 13z" fill="url(#ice)" filter="url(#shadow)"/>
|
||||
<path d="M16.3 11.2l4.4 5.8-5.1 3.9-4.5-5.9 5.2-3.8z" fill="#f7fbff"/>
|
||||
<ellipse cx="25.5" cy="46" rx="12.5" ry="5.5" fill="#02050a" filter="url(#shadow)"/>
|
||||
<ellipse cx="25.5" cy="44.5" rx="12" ry="4.1" fill="#1f2d42"/>
|
||||
<path d="M15.5 44.8c5.5-2.7 14.6-3 20.2-.7" fill="none" stroke="#4d607b" stroke-width="1.4" stroke-linecap="round" opacity=".75"/>
|
||||
<circle cx="49.5" cy="14.5" r="4" fill="#63e7ff"/>
|
||||
<circle cx="49.5" cy="14.5" r="7" fill="none" stroke="#63e7ff" stroke-opacity=".22" stroke-width="2"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Universal UI Builder</title>
|
||||
<title>Хоккейный vMix</title>
|
||||
<link rel="icon" type="image/svg+xml" href="__UI_BUILDER_ASSETS__/favicon.svg?v=__UI_BUILDER_ASSET_VERSION__">
|
||||
<link rel="stylesheet" href="__UI_BUILDER_ASSETS__/styles.css?v=__UI_BUILDER_ASSET_VERSION__">
|
||||
__UI_BUILDER_CUSTOM_STYLES__
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user