feat(view): fix index page
This commit is contained in:
@@ -2,6 +2,6 @@ from fastapi import APIRouter
|
||||
|
||||
from . import schedule, weather
|
||||
|
||||
router = APIRouter(prefix="/api", tags=["API"])
|
||||
router = APIRouter(prefix="/api")
|
||||
router.include_router(weather.router)
|
||||
router.include_router(schedule.router)
|
||||
|
||||
@@ -7,7 +7,7 @@ from gallery.easel.depends.schedule import ScheduleApiDepends
|
||||
from gallery.sketch.schedule.api import ScheduleApi
|
||||
from gallery.sketch.schedule.model import Channel, Schedule
|
||||
|
||||
router = APIRouter(prefix="/schedule")
|
||||
router = APIRouter(prefix="/schedule", tags=["Schedule"])
|
||||
|
||||
|
||||
@router.get("/providers")
|
||||
|
||||
@@ -7,7 +7,7 @@ from gallery.easel.depends.weather import WeatherApiDepends
|
||||
from gallery.sketch.weather.api import WeatherApi
|
||||
from gallery.sketch.weather.model import Location, WeatherResponse
|
||||
|
||||
router = APIRouter(prefix="/weather")
|
||||
router = APIRouter(prefix="/weather", tags=["Weather"])
|
||||
|
||||
|
||||
@router.get("/providers")
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
{% block header %}{% endblock %}
|
||||
</div>
|
||||
<ul class="navbar-nav flex-row flex-wrap ms-md-auto">
|
||||
<li class="nav-item me-2">
|
||||
<span class="nav-link">{{ version }}</span>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<button class="btn btn-link nav-link py-2 px-0 px-lg-2 dropdown-toggle d-flex align-items-center"
|
||||
id="bd-language"
|
||||
@@ -115,8 +112,11 @@
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
{% if not is_widget %}
|
||||
<footer class="pt-5 my-5 text-muted border-top">
|
||||
Created by shmyga · © 2026
|
||||
<footer class="app-footer pt-5 my-5 text-muted border-top">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span>Created by shmyga · © 2026</span>
|
||||
<span>v{{ version }}</span>
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -6,21 +6,28 @@
|
||||
|
||||
{% block content %}
|
||||
<h1>{{_("View")}}</h1>
|
||||
<div class="list-group mb-5">
|
||||
<div class="list-group mb-3">
|
||||
{% for section in sections %}
|
||||
<a href="{{section.link}}"
|
||||
class="list-group-item list-group-item-action px-4">
|
||||
<app-link href="{{section.link}}"
|
||||
icon="{{section.icon}}">
|
||||
{{_(section.title)}}
|
||||
</app-link>
|
||||
</a>
|
||||
<app-link href="{{section.link}}"
|
||||
icon="{{section.icon}}"
|
||||
class="list-group-item list-group-item-action">
|
||||
{{_(section.title)}}
|
||||
</app-link>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<hr class="col-3 col-md-2 mb-5">
|
||||
<h1>{{_("Docs")}}</h1>
|
||||
<a href="/docs"
|
||||
target="_blank">
|
||||
<h4>Swagger</h4>
|
||||
</a>
|
||||
<div class="list-group mb-3">
|
||||
<app-link href="/docs"
|
||||
target="_blank"
|
||||
icon="file-earmark-text"
|
||||
class="list-group-item list-group-item-action">
|
||||
Swagger UI
|
||||
</app-link>
|
||||
<app-link href="/redoc"
|
||||
target="_blank"
|
||||
icon="file-earmark-text"
|
||||
class="list-group-item list-group-item-action">
|
||||
ReDoc
|
||||
</app-link>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user