Update to fit stack
This commit is contained in:
+3
-2
@@ -70,7 +70,7 @@ async def lifespan(app: FastAPI):
|
||||
sched.shutdown(wait=False)
|
||||
|
||||
|
||||
app = FastAPI(title="Finance", lifespan=lifespan, docs_url=None, redoc_url=None)
|
||||
app = FastAPI(title="Spendr", lifespan=lifespan, docs_url=None, redoc_url=None)
|
||||
app.mount("/static", StaticFiles(directory=os.path.join(BASE_DIR, "static")), name="static")
|
||||
templates = Jinja2Templates(directory=os.path.join(BASE_DIR, "templates"))
|
||||
|
||||
@@ -100,7 +100,8 @@ def icon(name: str, cls: str = "") -> Markup:
|
||||
|
||||
|
||||
templates.env.filters.update(eur=eur, num=num, pct=pct)
|
||||
templates.env.globals.update(icon=icon)
|
||||
templates.env.globals.update(icon=icon, sign_out_url=os.getenv(
|
||||
"SIGN_OUT_URL", "https://auth.dv3.app/outpost.goauthentik.io/sign_out"))
|
||||
templates.env.globals.update(today=date.today, rec_state=rec_mod.state, monthly_eq=rec_mod.monthly_equivalent)
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>{% block title %}Finance{% endblock %} · Finance</title>
|
||||
<title>{% block title %}Finance{% endblock %} · Spendr</title>
|
||||
<script>try{var t=localStorage.getItem("theme");if(t==="dark"||t==="light")document.documentElement.dataset.theme=t;}catch(e){}</script>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
<script src="/static/chart.umd.min.js" defer></script>
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="layout">
|
||||
<nav class="side" aria-label="Main">
|
||||
<div class="brand"><span class="logo">{{ icon('wallet') }}</span> Finance</div>
|
||||
<div class="brand"><span class="logo">{{ icon('wallet') }}</span> Spendr</div>
|
||||
|
||||
<div class="nav-section">Overview</div>
|
||||
{{ navlink('/', 'layout-dashboard', 'Dashboard', path == '/') }}
|
||||
@@ -44,7 +44,7 @@
|
||||
<div class="user-chip">
|
||||
<span class="avatar">{{ (user or 'Me')[:1]|upper }}</span>
|
||||
<span class="who">{{ user or 'Signed in' }}</span>
|
||||
<a href="/outpost.goauthentik.io/sign_out" title="Sign out">{{ icon('log-out', 'sm') }}</a>
|
||||
<a href="{{ sign_out_url }}" title="Sign out">{{ icon('log-out', 'sm') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -53,7 +53,7 @@
|
||||
<div style="min-width:0">
|
||||
<header class="topbar">
|
||||
<button class="icon-btn" data-nav-toggle aria-label="Menu">{{ icon('menu') }}</button>
|
||||
<div class="brand"><span class="logo">{{ icon('wallet', 'sm') }}</span> Finance</div>
|
||||
<div class="brand"><span class="logo">{{ icon('wallet', 'sm') }}</span> Spendr</div>
|
||||
</header>
|
||||
<main>
|
||||
{% if msg %}<div class="flash">{{ icon('circle-alert') }}<span>{{ msg }}</span></div>{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user