Compare commits
9 commits
main
...
codex/desi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1883381f3f | ||
|
|
97ded2d287 | ||
|
|
4bb8f1229d | ||
|
|
32635d9d0d | ||
|
|
a0617c6be4 | ||
|
|
e3ead49f13 | ||
|
|
8b7f2664d0 | ||
|
|
4a3d045b85 | ||
|
|
55d2718968 |
29 changed files with 1628 additions and 779 deletions
39
.agents/skills/web-design-guidelines/SKILL.md
Normal file
39
.agents/skills/web-design-guidelines/SKILL.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
name: web-design-guidelines
|
||||
description: Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
|
||||
metadata:
|
||||
author: vercel
|
||||
version: "1.0.0"
|
||||
argument-hint: <file-or-pattern>
|
||||
---
|
||||
|
||||
# Web Interface Guidelines
|
||||
|
||||
Review files for compliance with Web Interface Guidelines.
|
||||
|
||||
## How It Works
|
||||
|
||||
1. Fetch the latest guidelines from the source URL below
|
||||
2. Read the specified files (or prompt user for files/pattern)
|
||||
3. Check against all rules in the fetched guidelines
|
||||
4. Output findings in the terse `file:line` format
|
||||
|
||||
## Guidelines Source
|
||||
|
||||
Fetch fresh guidelines before each review:
|
||||
|
||||
```
|
||||
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
|
||||
```
|
||||
|
||||
Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
|
||||
|
||||
## Usage
|
||||
|
||||
When a user provides a file or pattern argument:
|
||||
1. Fetch guidelines from the source URL above
|
||||
2. Read the specified files
|
||||
3. Apply all rules from the fetched guidelines
|
||||
4. Output findings using the format specified in the guidelines
|
||||
|
||||
If no files specified, ask the user which files to review.
|
||||
72
agents.md
72
agents.md
|
|
@ -104,6 +104,24 @@ This file is the single source of truth for codebase obstacles, oddities, and th
|
|||
**Solution/Workaround:** Use Tailwind v4 `@theme` tokens with semantic pairs such as `background/foreground`, `card/card-foreground`, `primary/primary-foreground`, `secondary/secondary-foreground`, `border`, `input`, and `ring`. Keep shared component structure in base classes like `.btn`, with variant classes only setting semantic colors.
|
||||
**Preference:** Prefer semantic token names over appearance-based names; add dark mode by overriding CSS variables under `.dark`.
|
||||
|
||||
### Dark-only Tailwind tokens live at root
|
||||
**Area:** web/app/static/css/input.css, web/app/templates/*.html
|
||||
**Obstacle:** The Firebreak UI is currently dark-only, but stale light theme tokens and scattered literal palette values made the active design system harder to change safely.
|
||||
**Solution/Workaround:** Define Firebreak brand primitives and dark semantic roles in the root Tailwind v4 `@theme`; templates and component classes use token-backed utilities/classes instead of raw theme colors.
|
||||
**Preference:** Keep palette values centralized in `@theme`; avoid arbitrary color utilities in templates. Reintroduce light mode only after defining a full paired token set.
|
||||
|
||||
### Button hover states belong to variants
|
||||
**Area:** web/app/static/css/input.css, web/app/templates/*.html
|
||||
**Obstacle:** Buttons mixed shared variants with page-specific hover utilities and ID selectors, causing inconsistent hover colors across pages.
|
||||
**Solution/Workaround:** Add explicit variants such as `btn-danger` and `btn-link`; templates should choose the correct variant instead of stacking custom hover color utilities.
|
||||
**Preference:** Keep hover behavior in component variants. Use `btn-link` for low-emphasis navigation actions such as returning home from an error page.
|
||||
|
||||
### Vercel web guideline fixes should stay template-scoped
|
||||
**Area:** web/app/templates/*.html, web/app/static/css/input.css
|
||||
**Obstacle:** Vercel Web Interface Guidelines flagged accessibility/theming issues such as missing skip links, missing dark `color-scheme`, non-locale date formatting, form inputs without autocomplete metadata, and motion without reduced-motion handling.
|
||||
**Solution/Workaround:** Add global `color-scheme: dark`, keep form metadata in templates, format visible dates with `Intl.DateTimeFormat`, confirm destructive forms client-side, and provide `prefers-reduced-motion` CSS fallbacks.
|
||||
**Preference:** Prefer lightweight template/CSS fixes for UI guideline compliance; avoid backend route changes unless the issue requires server state.
|
||||
|
||||
### Header brand SVG inherits unwanted icon styling
|
||||
**Area:** web/app/templates/base.html, web/app/templates/index.html, web/app/static/css/input.css
|
||||
**Obstacle:** The inline Firebreak header wordmark uses hardcoded SVG fills, and page-level header rules can accidentally apply icon `stroke` styles to the brand SVG. On forced-dark landing headers, the `#17191C` wordmark fill disappears against the obsidian nav.
|
||||
|
|
@ -127,3 +145,57 @@ This file is the single source of truth for codebase obstacles, oddities, and th
|
|||
**Obstacle:** Theme switching and persisted localStorage theme state conflicted with the current Firebreak brand pass, especially on the cinematic landing page.
|
||||
**Solution/Workaround:** Force the root document to use the `.dark` token set and remove the theme toggle UI/scripts.
|
||||
**Preference:** Keep semantic dark tokens; only reintroduce theme switching after the dark Firebreak identity is stable.
|
||||
|
||||
### Landing hero styles belong in tokenized CSS
|
||||
**Area:** web/app/templates/index.html, web/app/static/css/input.css
|
||||
**Obstacle:** Inline hero gradients, shadows, and hardcoded OKLCH values made the landing page harder to tune without drifting away from the Firebreak design token system.
|
||||
**Solution/Workaround:** Keep landing hero structure in `index.html`, but define overlays, logo effects, proof chips, and panel styling in `input.css` using hero-specific tokens.
|
||||
**Preference:** Use semantic hero/component classes for cinematic landing styling; avoid inline `<style>` blocks and template-level color literals.
|
||||
|
||||
### Landing hero should avoid generic card and pill treatment
|
||||
**Area:** web/app/templates/index.html, web/app/static/css/input.css
|
||||
**Obstacle:** Bordered hero copy cards and pill-shaped proof badges made the cinematic landing page feel like generic SaaS UI instead of a Firebreak title card.
|
||||
**Solution/Workaround:** Put hero copy directly over the video using tuned overlays, text shadow, a soft invisible copy scrim, a small burn-line accent, and bottom-anchored inline metadata separated by ember dots.
|
||||
**Preference:** Preserve the video-led title-card feel; use red sparingly as an accent rather than wrapping hero content in panels or badges.
|
||||
|
||||
### Dashboard avoids card-heavy summary UI
|
||||
**Area:** web/app/templates/dashboard.html, web/app/static/css/input.css
|
||||
**Obstacle:** Dashboard summary metrics used repeated bordered cards and page-specific disabled button utilities, which made the UI feel generic and inconsistent with Firebreak's darker operational tone.
|
||||
**Solution/Workaround:** Use a metric strip with hairline dividers, notice rails, tokenized table styles, and shared button disabled/hover variants.
|
||||
**Preference:** Favor operational density, hairline separation, and semantic component classes over cards, pills, and one-off utility stacks.
|
||||
|
||||
### FastAPI drops `Depends` on params typed with TYPE_CHECKING-only forward refs
|
||||
**Area:** web/app/config.py, any FastAPI dependency function
|
||||
**Obstacle:** A dependency function (`get_app_settings`) had a parameter typed `Annotated[AppSettings | None, Depends(current_app_settings)]`, but `AppSettings` was imported only under `TYPE_CHECKING`. FastAPI introspects a dependency's signature at *runtime*; the unresolved forward ref made the annotation fail to evaluate, so FastAPI silently discarded the `Depends(...)` marker and treated `settings` as a **required query parameter**. Every gated route then 422'd demanding `?settings=...`. Route registration did not error — it only surfaced at request time.
|
||||
**Solution/Workaround:** Required-settings dependency takes only `request: Request` and *calls* `current_app_settings(request)` internally (mirroring how `get_current_session` calls `lookup_session`), rather than declaring the accessor as a sub-`Depends` with a forward-ref-typed param.
|
||||
**Preference:** Never give a FastAPI dependency/route a parameter whose type is a TYPE_CHECKING-only forward ref. Build required dependencies by *calling* the plain accessor, not by `Depends`-ing on it with a typed param. Verify dependency wiring by inspecting `route.dependant.query_params`, not by calling the function directly.
|
||||
|
||||
### Forgejo API access goes through app/services/forgejo.py
|
||||
**Area:** web/app/services/forgejo.py, web/app/routers/auth.py, web/app/routers/dashboard.py
|
||||
**Obstacle:** Forgejo HTTP calls (httpx client, base-URL joining, error handling) were duplicated across the OAuth flow and the dashboard, and a hand-built authorize URL re-introduced a trailing-slash double-slash hazard.
|
||||
**Solution/Workaround:** All Forgejo HTTP goes through the `forgejo` service module: `get`/`post`, plus OAuth ops `authorize_url`/`exchange_code`/`fetch_user`. Base-URL joining is centralized in `_url()` with a defensive `rstrip('/')`. Failures raise a typed `ForgejoError` (with `.unreachable`); routers translate it — OAuth routes to HTTP 502, the dashboard to an inline message.
|
||||
**Preference:** Add new Forgejo operations as `forgejo.*` functions; routers orchestrate (cookies, sessions, error mapping) but never build URLs or call httpx directly. Import the module (`from app.services import forgejo` → `forgejo.get(...)`), not individual functions.
|
||||
|
||||
### Credential encryption is centralized in app/auth/tokens.py
|
||||
**Area:** web/app/auth/tokens.py, web/app/routers/settings.py, web/app/routers/setup.py, web/app/routers/auth.py
|
||||
**Obstacle:** The `get_fernet()` + crypto-primitive + which-column pattern was scattered across routers and handlers, leaking the at-rest encryption detail into the web layer and duplicating it (e.g. the client-secret encrypt block appeared twice in setup.py).
|
||||
**Solution/Workaround:** `app.auth.tokens` is the single app-aware layer pairing the app Fernet cipher with a model column: `decrypt_pat`/`set_pat` (PAT, keeps `pat_registered_at` in sync) and `set_client_secret`/`decrypt_client_secret`. It sits one level above `app.auth.crypto` (the primitives, which take a `fernet` and know nothing about the app).
|
||||
**Preference:** Routers/handlers call `tokens.*`, never `get_fernet()` + crypto inline. Access-token encryption in `auth/identity.py` is intentionally left there — it is already cohesive in one domain function. Key rotation should be a one-file change in `tokens.py`/`crypto.py`.
|
||||
|
||||
### App settings exposed as required/optional FastAPI dependencies
|
||||
**Area:** web/app/config.py, web/app/middleware.py, web/app/routers/setup.py
|
||||
**Obstacle:** `app.state.app_settings` was read/written raw in many places, and the lone `get_app_settings` was typed `-> AppSettings` while actually returning `None` before setup — its non-None guarantee silently depended on `SetupRequiredMiddleware` having gated the route.
|
||||
**Solution/Workaround:** Mirror the `session.py` trio: `current_app_settings(request) -> AppSettings | None` (honest accessor, used by middleware and setup), `get_app_settings(request) -> AppSettings` (required dependency; raises HTTP 500 if reached unconfigured), and `set_app_settings(app, row)` (single write path, used by lifespan and setup).
|
||||
**Preference:** Routes that require config use `Depends(get_app_settings)`; None-tolerant readers (setup, middleware) use `current_app_settings`. Never read/write `app.state.app_settings` raw outside config.py.
|
||||
|
||||
### main.py is a composition root, not a route module
|
||||
**Area:** web/app/main.py, web/app/errors.py, web/app/routers/dashboard.py, web/app/routers/dev.py
|
||||
**Obstacle:** main.py held the lifespan, app wiring, the global exception handler, page route handlers, and a dev-only endpoint — feature logic mixed into the composition root, inconsistent with the per-feature router convention.
|
||||
**Solution/Workaround:** Page routes live in `routers/dashboard.py`; the content-negotiated error handler in `errors.py` (wired via `register_error_handlers(app)`); dev-only endpoints in `routers/dev.py`, included only when `get_settings().debug`. main.py keeps lifespan + wiring + the trivial `/` landing route. An app factory (`create_app()`) is a deferred goal for when tests are added.
|
||||
**Preference:** New feature routes get their own `routers/*.py`. Keep dev-only endpoints out of production by gating the `include_router` on the debug flag rather than guarding individual routes.
|
||||
|
||||
### Dashboard repositories load lazily; dev CSS reload is debug-gated
|
||||
**Area:** web/app/routers/dashboard.py, web/app/templates/dashboard.html, web/app/templates/base.html
|
||||
**Obstacle:** The dashboard blocked first paint on a live Forgejo fetch (up to 15s if the instance was slow/unreachable), and a dev CSS live-reload script polled an endpoint every 500ms in *all* environments, including production.
|
||||
**Solution/Workaround:** `/dashboard` renders instantly; the repo list loads via an htmx fragment (`/dashboard/repositories` → `partials/dashboard_repositories.html`) after first paint, with a 10s timeout. The live-reload `<script>` and the `/api/dev/css-mtime` endpoint are both gated on the `debug` flag (a Jinja `debug` global + conditional `include_router`). Forgejo-supplied `html_url` is sanitized to drop non-`http(s)` schemes before rendering into an `href` (XSS guard).
|
||||
**Preference:** Never block a page render on an external API; lazy-load via htmx. Keep dev tooling behind the debug flag. Treat external-API string fields as untrusted in templates.
|
||||
|
|
|
|||
11
skills-lock.json
Normal file
11
skills-lock.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"version": 1,
|
||||
"skills": {
|
||||
"web-design-guidelines": {
|
||||
"source": "vercel-labs/agent-skills",
|
||||
"sourceType": "github",
|
||||
"skillPath": "skills/web-design-guidelines/SKILL.md",
|
||||
"computedHash": "f3bc47f890f42a44db1007ab390709ec368e4b8c089baee6b0007182236ac474"
|
||||
}
|
||||
}
|
||||
}
|
||||
54
web/app/auth/tokens.py
Normal file
54
web/app/auth/tokens.py
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
"""App-aware token encryption.
|
||||
|
||||
The single place that pairs the application Fernet cipher (`get_fernet`) with a
|
||||
model's ciphertext column. Routers and handlers call these helpers instead of
|
||||
deriving the cipher and touching the encrypted columns directly, so the at-rest
|
||||
encryption detail — and any future key rotation — lives in one file.
|
||||
|
||||
This sits one layer above `app.auth.crypto`, which holds the cipher primitives
|
||||
and knows nothing about the application or its models.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import UTC, datetime
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from app.auth.crypto import decrypt_optional, decrypt_token, encrypt_optional, encrypt_token
|
||||
from app.config import get_fernet
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from app.models.app_settings import AppSettings
|
||||
from app.models.user import User
|
||||
|
||||
|
||||
def decrypt_pat(user: User) -> str | None:
|
||||
"""Return the user's decrypted Forgejo PAT, or None if none is stored."""
|
||||
return decrypt_optional(get_fernet(), user.pat_encrypted)
|
||||
|
||||
|
||||
def set_pat(user: User, raw: str | None) -> None:
|
||||
"""Store (or clear) a user's Forgejo PAT.
|
||||
|
||||
Passing None clears it. The registered-at stamp is kept in sync with the
|
||||
ciphertext so the two columns can never drift apart.
|
||||
"""
|
||||
user.pat_encrypted = encrypt_optional(get_fernet(), raw)
|
||||
user.pat_registered_at = datetime.now(UTC) if raw else None
|
||||
|
||||
|
||||
def set_client_secret(app_settings: AppSettings, raw: str) -> None:
|
||||
"""Encrypt and store the Forgejo OAuth client secret.
|
||||
|
||||
Raises ValueError (from `get_fernet`) when the encryption key is unavailable.
|
||||
"""
|
||||
app_settings.forgejo_oauth_client_secret_encrypted = encrypt_token(get_fernet(), raw)
|
||||
|
||||
|
||||
def decrypt_client_secret(app_settings: AppSettings) -> str:
|
||||
"""Return the decrypted Forgejo OAuth client secret.
|
||||
|
||||
Raises ValueError when the key is unavailable or the ciphertext can't be
|
||||
decrypted (e.g. the encryption key changed).
|
||||
"""
|
||||
return decrypt_token(get_fernet(), app_settings.forgejo_oauth_client_secret_encrypted)
|
||||
|
|
@ -5,7 +5,7 @@ from pathlib import Path
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
from fastapi import Request
|
||||
from fastapi import FastAPI, HTTPException, Request, status
|
||||
from pydantic import SecretStr
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
|
@ -27,6 +27,7 @@ class Settings(BaseSettings):
|
|||
app_name: str = "Firebreak"
|
||||
database_url: str = "postgresql+asyncpg://firebreak:firebreak@db:5432/firebreak_db"
|
||||
token_encryption_key: str = ""
|
||||
debug: bool = False
|
||||
|
||||
model_config = SettingsConfigDict(env_file=str(_env_file))
|
||||
|
||||
|
|
@ -56,6 +57,32 @@ def get_fernet() -> Fernet:
|
|||
return fernet
|
||||
|
||||
|
||||
def get_app_settings(request: Request) -> AppSettings:
|
||||
"""FastAPI dependency returning the AppSettings row from app state."""
|
||||
def current_app_settings(request: Request) -> AppSettings | None:
|
||||
"""Get AppSettings row, or None if not available.
|
||||
|
||||
This is the source of truth for the live AppSettings row
|
||||
"""
|
||||
return request.app.state.app_settings
|
||||
|
||||
|
||||
def get_app_settings(request: Request) -> AppSettings:
|
||||
"""FastAPI dependency that requires configured app settings.
|
||||
|
||||
Calls `current_app_settings` directly (rather than depending on it) so the
|
||||
only injected parameter is the runtime-resolvable `request` — mirroring how
|
||||
`get_current_session` calls `lookup_session`. Raises HTTP 500 when settings
|
||||
are unavailable, which should only happen if a route that requires settings
|
||||
is reached before setup completes (i.e. not gated by setup middleware).
|
||||
"""
|
||||
settings = current_app_settings(request)
|
||||
if settings is None:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||
detail="App settings unavailable — route not gated by setup middleware.",
|
||||
)
|
||||
return settings
|
||||
|
||||
|
||||
def set_app_settings(app: FastAPI, row: AppSettings | None) -> None:
|
||||
"""Set application settings on the FastAPI app state."""
|
||||
app.state.app_settings = row
|
||||
|
|
|
|||
45
web/app/errors.py
Normal file
45
web/app/errors.py
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
"""Application error rendering — content-negotiated HTML/JSON error responses."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi import FastAPI, Request
|
||||
from fastapi.responses import JSONResponse
|
||||
from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||
from starlette.responses import Response
|
||||
|
||||
from app.templating import templates
|
||||
|
||||
ERROR_TITLES = {
|
||||
400: "Bad Request",
|
||||
401: "Unauthorized",
|
||||
403: "Forbidden",
|
||||
404: "Not Found",
|
||||
500: "Internal Server Error",
|
||||
503: "Service Unavailable",
|
||||
}
|
||||
|
||||
|
||||
async def http_exception_handler(request: Request, exc: Exception) -> Response:
|
||||
"""Render a styled error page for browser requests, JSON for API clients."""
|
||||
# Starlette only routes StarletteHTTPException here; narrow for the type
|
||||
# checker and re-raise anything unexpected to the default handler.
|
||||
if not isinstance(exc, StarletteHTTPException):
|
||||
raise exc
|
||||
accept = request.headers.get("accept", "")
|
||||
if "text/html" in accept:
|
||||
return templates.TemplateResponse(
|
||||
request,
|
||||
"error.html",
|
||||
{
|
||||
"status_code": exc.status_code,
|
||||
"title": ERROR_TITLES.get(exc.status_code, "Error"),
|
||||
"detail": exc.detail,
|
||||
},
|
||||
status_code=exc.status_code,
|
||||
)
|
||||
return JSONResponse({"detail": exc.detail}, status_code=exc.status_code)
|
||||
|
||||
|
||||
def register_error_handlers(app: FastAPI) -> None:
|
||||
"""Wire the application's exception handlers onto the app."""
|
||||
app.add_exception_handler(StarletteHTTPException, http_exception_handler)
|
||||
|
|
@ -5,21 +5,21 @@ from pathlib import Path
|
|||
from typing import Annotated
|
||||
|
||||
from fastapi import Depends, FastAPI, Request
|
||||
from fastapi.responses import HTMLResponse, JSONResponse
|
||||
from fastapi.responses import HTMLResponse
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||
from starlette.responses import Response
|
||||
from sqlalchemy import func as sql_func, select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
|
||||
|
||||
from app import models as _models # noqa: F401 - register ORM tables on metadata
|
||||
from app.auth.session import get_current_session, get_optional_session
|
||||
from app.config import get_settings
|
||||
from app.auth.session import get_optional_session
|
||||
from app.config import get_settings, set_app_settings
|
||||
from app.database import Base
|
||||
from app.errors import register_error_handlers
|
||||
from app.middleware import SetupRequiredMiddleware
|
||||
from app.models.app_settings import AppSettings
|
||||
from app.models.session import Session as UserBrowserSession
|
||||
from app.routers import auth, links, settings, setup
|
||||
from app.routers import auth, dashboard, dev, links, settings, setup
|
||||
from app.templating import templates
|
||||
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ async def lifespan(app: FastAPI):
|
|||
row = result.scalar_one_or_none()
|
||||
user_count = await db.scalar(select(sql_func.count()).select_from(User))
|
||||
|
||||
app.state.app_settings = row
|
||||
set_app_settings(app, row)
|
||||
|
||||
# Generate a setup token whenever no users exist yet — whether it's
|
||||
# a fresh install or a retry after bad OAuth config.
|
||||
|
|
@ -74,36 +74,14 @@ app.add_middleware(SetupRequiredMiddleware)
|
|||
|
||||
app.mount("/static", StaticFiles(directory=Path(__file__).parent / "static"), name="static")
|
||||
app.include_router(auth.router)
|
||||
app.include_router(dashboard.router)
|
||||
app.include_router(links.router)
|
||||
app.include_router(settings.router)
|
||||
app.include_router(setup.router)
|
||||
if get_settings().debug:
|
||||
app.include_router(dev.router)
|
||||
|
||||
ERROR_TITLES = {
|
||||
400: "Bad Request",
|
||||
401: "Unauthorized",
|
||||
403: "Forbidden",
|
||||
404: "Not Found",
|
||||
500: "Internal Server Error",
|
||||
503: "Service Unavailable",
|
||||
}
|
||||
|
||||
|
||||
@app.exception_handler(StarletteHTTPException)
|
||||
async def http_exception_handler(request: Request, exc: StarletteHTTPException) -> Response:
|
||||
"""Render a styled error page for browser requests, JSON for API clients."""
|
||||
accept = request.headers.get("accept", "")
|
||||
if "text/html" in accept:
|
||||
return templates.TemplateResponse(
|
||||
request,
|
||||
"error.html",
|
||||
{
|
||||
"status_code": exc.status_code,
|
||||
"title": ERROR_TITLES.get(exc.status_code, "Error"),
|
||||
"detail": exc.detail,
|
||||
},
|
||||
status_code=exc.status_code,
|
||||
)
|
||||
return JSONResponse({"detail": exc.detail}, status_code=exc.status_code)
|
||||
register_error_handlers(app)
|
||||
|
||||
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
|
|
@ -115,17 +93,3 @@ async def root(
|
|||
"index.html",
|
||||
{"user": sess.user if sess else None},
|
||||
)
|
||||
|
||||
|
||||
@app.get("/dashboard", response_class=HTMLResponse)
|
||||
async def dashboard(
|
||||
request: Request, sess: Annotated[UserBrowserSession, Depends(get_current_session)]
|
||||
) -> Response:
|
||||
return templates.TemplateResponse(
|
||||
request,
|
||||
"dashboard.html",
|
||||
{
|
||||
"user": sess.user,
|
||||
"pat_registered": sess.user.has_pat,
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ from starlette.middleware.base import BaseHTTPMiddleware
|
|||
from starlette.requests import Request
|
||||
from starlette.responses import RedirectResponse, Response
|
||||
|
||||
from app.config import current_app_settings
|
||||
|
||||
|
||||
class SetupRequiredMiddleware(BaseHTTPMiddleware):
|
||||
"""Redirect all requests to /setup when the app has not been configured yet."""
|
||||
|
|
@ -11,7 +13,7 @@ class SetupRequiredMiddleware(BaseHTTPMiddleware):
|
|||
if path.startswith("/setup") or path.startswith("/static") or path == "/favicon.ico":
|
||||
return await call_next(request)
|
||||
|
||||
if request.app.state.app_settings is None:
|
||||
if current_app_settings(request) is None:
|
||||
if request.headers.get("HX-Request"):
|
||||
response = Response(status_code=200)
|
||||
response.headers["HX-Redirect"] = "/setup"
|
||||
|
|
|
|||
|
|
@ -3,60 +3,32 @@ from __future__ import annotations
|
|||
import secrets
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from typing import Annotated
|
||||
from urllib.parse import urlencode
|
||||
|
||||
import httpx
|
||||
from fastapi import APIRouter, Cookie, Depends, HTTPException, Request, status
|
||||
from fastapi.responses import RedirectResponse
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.auth.crypto import decrypt_token
|
||||
from app.auth import tokens
|
||||
from app.auth.identity import find_or_create_user
|
||||
from app.auth.session import create_session, revoke_session
|
||||
from app.config import get_app_settings, get_fernet
|
||||
from app.config import get_app_settings
|
||||
from app.deps import get_db
|
||||
from app.models.app_settings import AppSettings
|
||||
from app.services import forgejo
|
||||
|
||||
router = APIRouter(prefix="/auth", tags=["auth"])
|
||||
|
||||
|
||||
# ── Forgejo API client ──
|
||||
# ── Forgejo OAuth error translation ──
|
||||
|
||||
|
||||
async def _forgejo_post(app_settings: AppSettings, path: str, data: dict) -> dict:
|
||||
url = f"{app_settings.forgejo_base_url}{path}"
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
resp = await client.post(url, data=data, headers={"Accept": "application/json"})
|
||||
except httpx.RequestError:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_502_BAD_GATEWAY,
|
||||
detail="Cannot reach Forgejo. Check your connection settings.",
|
||||
)
|
||||
if resp.status_code != 200:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_502_BAD_GATEWAY,
|
||||
detail=f"Forgejo returned an error ({resp.status_code}). Verify your OAuth configuration.",
|
||||
)
|
||||
return resp.json()
|
||||
|
||||
|
||||
async def _forgejo_get(app_settings: AppSettings, path: str, token: str) -> dict:
|
||||
url = f"{app_settings.forgejo_base_url}{path}"
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
resp = await client.get(url, headers={"Authorization": f"token {token}"})
|
||||
except httpx.RequestError:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_502_BAD_GATEWAY,
|
||||
detail="Cannot reach Forgejo. Check your connection settings.",
|
||||
)
|
||||
if resp.status_code != 200:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_502_BAD_GATEWAY,
|
||||
detail=f"Forgejo returned an error ({resp.status_code}). Verify your OAuth configuration.",
|
||||
)
|
||||
return resp.json()
|
||||
def _oauth_gateway_error(exc: forgejo.ForgejoError) -> HTTPException:
|
||||
"""Translate a Forgejo failure into the OAuth flow's 502 response."""
|
||||
if exc.unreachable:
|
||||
detail = "Cannot reach Forgejo. Check your connection settings."
|
||||
else:
|
||||
detail = f"Forgejo returned an error ({exc.status_code}). Verify your OAuth configuration."
|
||||
return HTTPException(status_code=status.HTTP_502_BAD_GATEWAY, detail=detail)
|
||||
|
||||
|
||||
# ── OAuth CSRF helpers ──
|
||||
|
|
@ -126,7 +98,7 @@ def _forgejo_oauth_redirect_uri(request: Request, app_settings: AppSettings) ->
|
|||
|
||||
def _get_oauth_client_secret(app_settings: AppSettings) -> str:
|
||||
try:
|
||||
return decrypt_token(get_fernet(), app_settings.forgejo_oauth_client_secret_encrypted)
|
||||
return tokens.decrypt_client_secret(app_settings)
|
||||
except ValueError:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
||||
|
|
@ -145,15 +117,7 @@ async def login_forgejo(
|
|||
|
||||
redirect_uri = _forgejo_oauth_redirect_uri(request, app_settings)
|
||||
state = secrets.token_urlsafe(32)
|
||||
query = urlencode(
|
||||
{
|
||||
"client_id": app_settings.forgejo_oauth_client_id,
|
||||
"response_type": "code",
|
||||
"redirect_uri": redirect_uri,
|
||||
"state": state,
|
||||
}
|
||||
)
|
||||
authorization_url = f"{app_settings.forgejo_base_url}/login/oauth/authorize?{query}"
|
||||
authorization_url = forgejo.authorize_url(app_settings, redirect_uri=redirect_uri, state=state)
|
||||
response = RedirectResponse(authorization_url, status_code=status.HTTP_302_FOUND)
|
||||
_set_oauth_state_cookie(response, state)
|
||||
return response
|
||||
|
|
@ -181,20 +145,21 @@ async def callback_forgejo(
|
|||
client_secret = _get_oauth_client_secret(app_settings)
|
||||
redirect_uri = _forgejo_oauth_redirect_uri(request, app_settings)
|
||||
|
||||
token_data = await _forgejo_post(
|
||||
app_settings,
|
||||
"/login/oauth/access_token",
|
||||
{
|
||||
"grant_type": "authorization_code",
|
||||
"client_id": app_settings.forgejo_oauth_client_id,
|
||||
"client_secret": client_secret,
|
||||
"code": code,
|
||||
"redirect_uri": redirect_uri,
|
||||
},
|
||||
)
|
||||
try:
|
||||
token_data = await forgejo.exchange_code(
|
||||
app_settings,
|
||||
code=code,
|
||||
client_secret=client_secret,
|
||||
redirect_uri=redirect_uri,
|
||||
)
|
||||
except forgejo.ForgejoError as exc:
|
||||
raise _oauth_gateway_error(exc) from exc
|
||||
access_token, refresh_plain, expires_at = _parse_token_response(token_data)
|
||||
|
||||
user_data = await _forgejo_get(app_settings, "/api/v1/user", access_token)
|
||||
try:
|
||||
user_data = await forgejo.fetch_user(app_settings, access_token)
|
||||
except forgejo.ForgejoError as exc:
|
||||
raise _oauth_gateway_error(exc) from exc
|
||||
provider_user_id, provider_username, email = _parse_user_response(user_data)
|
||||
|
||||
user = await find_or_create_user(
|
||||
|
|
|
|||
75
web/app/routers/dashboard.py
Normal file
75
web/app/routers/dashboard.py
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, Depends, Request
|
||||
from fastapi.responses import HTMLResponse
|
||||
from starlette.responses import Response
|
||||
|
||||
from app.auth import tokens
|
||||
from app.auth.session import get_current_session
|
||||
from app.config import get_app_settings
|
||||
from app.models.app_settings import AppSettings
|
||||
from app.models.session import Session as UserBrowserSession
|
||||
from app.services import forgejo
|
||||
from app.templating import templates
|
||||
|
||||
router = APIRouter(tags=["dashboard"])
|
||||
|
||||
|
||||
@router.get("/dashboard", response_class=HTMLResponse)
|
||||
async def dashboard(
|
||||
request: Request,
|
||||
sess: Annotated[UserBrowserSession, Depends(get_current_session)],
|
||||
) -> Response:
|
||||
return templates.TemplateResponse(
|
||||
request,
|
||||
"dashboard.html",
|
||||
{"user": sess.user},
|
||||
)
|
||||
|
||||
|
||||
@router.get("/dashboard/repositories", response_class=HTMLResponse)
|
||||
async def dashboard_repositories(
|
||||
request: Request,
|
||||
sess: Annotated[UserBrowserSession, Depends(get_current_session)],
|
||||
app_settings: Annotated[AppSettings, Depends(get_app_settings)],
|
||||
) -> Response:
|
||||
"""Lazy-loaded fragment: fetch the user's Forgejo repositories.
|
||||
|
||||
The dashboard pulls this in via htmx after first paint, so a slow or
|
||||
unreachable Forgejo instance never blocks the page from rendering.
|
||||
"""
|
||||
repositories: list[dict] = []
|
||||
repo_error: str | None = None
|
||||
|
||||
if sess.user.has_pat:
|
||||
pat = tokens.decrypt_pat(sess.user)
|
||||
if pat:
|
||||
try:
|
||||
repos = await forgejo.get(
|
||||
app_settings,
|
||||
"/api/v1/user/repos",
|
||||
token=pat,
|
||||
params={"limit": 50, "sort": "updated"},
|
||||
timeout=10.0,
|
||||
)
|
||||
repositories = [r for r in repos if r.get("permissions", {}).get("pull", True)]
|
||||
# Defend against a hostile/MITM'd Forgejo returning a
|
||||
# javascript: (or other non-http) URL we'd render into href.
|
||||
for r in repositories:
|
||||
url = r.get("html_url")
|
||||
if not isinstance(url, str) or not url.startswith(("http://", "https://")):
|
||||
r["html_url"] = ""
|
||||
except forgejo.ForgejoError as exc:
|
||||
repo_error = (
|
||||
"Could not reach your Forgejo instance."
|
||||
if exc.unreachable
|
||||
else "Could not fetch repositories from Forgejo."
|
||||
)
|
||||
|
||||
return templates.TemplateResponse(
|
||||
request,
|
||||
"partials/dashboard_repositories.html",
|
||||
{"repositories": repositories, "repo_error": repo_error},
|
||||
)
|
||||
19
web/app/routers/dev.py
Normal file
19
web/app/routers/dev.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"""Development-only endpoints. Included on the app only when debug is enabled."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter(prefix="/api/dev", tags=["dev"])
|
||||
|
||||
_CSS_OUTPUT = Path(__file__).parent.parent / "static" / "css" / "output.css"
|
||||
|
||||
|
||||
@router.get("/css-mtime")
|
||||
async def css_mtime() -> dict:
|
||||
"""Report the built CSS file's mtime so the browser can live-reload on change."""
|
||||
if _CSS_OUTPUT.exists():
|
||||
return {"mtime": _CSS_OUTPUT.stat().st_mtime}
|
||||
return {"mtime": 0}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from datetime import UTC, datetime
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, Depends, Form, HTTPException, Request, status
|
||||
|
|
@ -8,9 +7,8 @@ from fastapi.responses import HTMLResponse, RedirectResponse
|
|||
from starlette.responses import Response
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.auth.crypto import encrypt_optional
|
||||
from app.auth import tokens
|
||||
from app.auth.session import get_current_session
|
||||
from app.config import get_fernet
|
||||
from app.deps import get_db
|
||||
from app.models.session import Session as UserBrowserSession
|
||||
from app.templating import templates
|
||||
|
|
@ -28,8 +26,6 @@ async def settings_page(
|
|||
"settings.html",
|
||||
{
|
||||
"user": sess.user,
|
||||
"pat_registered": sess.user.has_pat,
|
||||
"pat_registered_at": sess.user.pat_registered_at,
|
||||
"pat_deleted": request.query_params.get("pat") == "deleted",
|
||||
},
|
||||
)
|
||||
|
|
@ -48,9 +44,7 @@ async def register_pat(
|
|||
detail="Forgejo access token is required.",
|
||||
)
|
||||
|
||||
fernet = get_fernet()
|
||||
sess.user.pat_encrypted = encrypt_optional(fernet, pat)
|
||||
sess.user.pat_registered_at = datetime.now(UTC)
|
||||
tokens.set_pat(sess.user, pat)
|
||||
await db.commit()
|
||||
|
||||
return RedirectResponse(
|
||||
|
|
@ -64,8 +58,7 @@ async def delete_pat(
|
|||
db: Annotated[AsyncSession, Depends(get_db)],
|
||||
sess: Annotated[UserBrowserSession, Depends(get_current_session)],
|
||||
) -> RedirectResponse:
|
||||
sess.user.pat_encrypted = None
|
||||
sess.user.pat_registered_at = None
|
||||
tokens.set_pat(sess.user, None)
|
||||
await db.commit()
|
||||
|
||||
return RedirectResponse(
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ from starlette.responses import Response
|
|||
from sqlalchemy import func as sql_func, select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.auth.crypto import encrypt_token
|
||||
from app.auth import tokens
|
||||
from app.auth.session import lookup_session
|
||||
from app.config import get_fernet
|
||||
from app.config import current_app_settings, set_app_settings
|
||||
from app.deps import get_db
|
||||
from app.models.app_settings import AppSettings
|
||||
from app.models.user import User
|
||||
|
|
@ -19,9 +19,21 @@ from app.templating import templates
|
|||
router = APIRouter(prefix="/setup", tags=["setup"])
|
||||
|
||||
|
||||
def _encryption_unavailable() -> HTTPException:
|
||||
"""503 raised when the Forgejo client secret can't be encrypted (no key)."""
|
||||
return HTTPException(
|
||||
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
||||
detail=(
|
||||
"TOKEN_ENCRYPTION_KEY is not set. Add it to your .env file or deployment "
|
||||
"environment. Generate one with: "
|
||||
"uv run python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'"
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
async def _require_auth_if_configured(
|
||||
request: Request,
|
||||
db: Annotated[AsyncSession, Depends(get_db)],
|
||||
app_settings: Annotated[AppSettings | None, Depends(current_app_settings)],
|
||||
firebreak_session: Annotated[str | None, Cookie()] = None,
|
||||
) -> None:
|
||||
"""Block anonymous access to /setup after initial configuration.
|
||||
|
|
@ -29,7 +41,7 @@ async def _require_auth_if_configured(
|
|||
If no users exist yet (e.g. bad OAuth config on first setup), the setup
|
||||
token is still required but login is not — there's nobody to log in as.
|
||||
"""
|
||||
if request.app.state.app_settings is None:
|
||||
if app_settings is None:
|
||||
return
|
||||
|
||||
# If no users exist, allow access — the setup token still protects POST
|
||||
|
|
@ -46,9 +58,12 @@ async def _require_auth_if_configured(
|
|||
|
||||
|
||||
@router.get("", dependencies=[Depends(_require_auth_if_configured)])
|
||||
async def setup_page(request: Request, db: Annotated[AsyncSession, Depends(get_db)]) -> Response:
|
||||
async def setup_page(
|
||||
request: Request,
|
||||
db: Annotated[AsyncSession, Depends(get_db)],
|
||||
existing: Annotated[AppSettings | None, Depends(current_app_settings)],
|
||||
) -> Response:
|
||||
"""Render the setup wizard. Pre-fills fields when reconfiguring."""
|
||||
existing = request.app.state.app_settings
|
||||
user_count = await db.scalar(select(sql_func.count()).select_from(User)) or 0
|
||||
has_users = user_count > 0
|
||||
public_base = (existing.firebreak_public_base_url if existing else "") or str(
|
||||
|
|
@ -68,6 +83,7 @@ async def setup_page(request: Request, db: Annotated[AsyncSession, Depends(get_d
|
|||
async def setup_submit(
|
||||
request: Request,
|
||||
db: Annotated[AsyncSession, Depends(get_db)],
|
||||
app_settings: Annotated[AppSettings | None, Depends(current_app_settings)],
|
||||
forgejo_base_url: Annotated[str, Form()],
|
||||
forgejo_oauth_client_id: Annotated[str, Form()],
|
||||
forgejo_oauth_client_secret: Annotated[str, Form()] = "",
|
||||
|
|
@ -77,7 +93,7 @@ async def setup_submit(
|
|||
"""Process the setup wizard — creates or updates Forgejo settings."""
|
||||
user_count = await db.scalar(select(sql_func.count()).select_from(User)) or 0
|
||||
has_users = user_count > 0
|
||||
is_reconfiguring = request.app.state.app_settings is not None and has_users
|
||||
is_reconfiguring = app_settings is not None and has_users
|
||||
|
||||
# Require setup token when no users exist (first-time or fixing bad config)
|
||||
if not has_users:
|
||||
|
|
@ -111,22 +127,12 @@ async def setup_submit(
|
|||
row.firebreak_public_base_url = firebreak_public_base_url
|
||||
if forgejo_oauth_client_secret:
|
||||
try:
|
||||
fernet = get_fernet()
|
||||
tokens.set_client_secret(row, forgejo_oauth_client_secret)
|
||||
except ValueError:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
||||
detail=(
|
||||
"TOKEN_ENCRYPTION_KEY is not set. Add it to your .env file or deployment "
|
||||
"environment. Generate one with: "
|
||||
"uv run python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'"
|
||||
),
|
||||
)
|
||||
row.forgejo_oauth_client_secret_encrypted = encrypt_token(
|
||||
fernet, forgejo_oauth_client_secret
|
||||
)
|
||||
raise _encryption_unavailable()
|
||||
await db.commit()
|
||||
await db.refresh(row)
|
||||
request.app.state.app_settings = row
|
||||
set_app_settings(request.app, row)
|
||||
return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER)
|
||||
|
||||
# First-time setup (or retry after bad config) — no users exist yet
|
||||
|
|
@ -136,38 +142,21 @@ async def setup_submit(
|
|||
detail="Client Secret is required during initial setup.",
|
||||
)
|
||||
|
||||
try:
|
||||
fernet = get_fernet()
|
||||
except ValueError:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
||||
detail=(
|
||||
"TOKEN_ENCRYPTION_KEY is not set. Add it to your .env file or deployment "
|
||||
"environment. Generate one with: "
|
||||
"uv run python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())'"
|
||||
),
|
||||
)
|
||||
encrypted_secret = encrypt_token(fernet, forgejo_oauth_client_secret)
|
||||
|
||||
# Update existing row if retrying after bad config, otherwise create
|
||||
# Update existing row if retrying after bad config, otherwise create one.
|
||||
result = await db.execute(select(AppSettings).where(AppSettings.id == 1))
|
||||
row = result.scalar_one_or_none()
|
||||
if row:
|
||||
row.forgejo_base_url = forgejo_base_url
|
||||
row.forgejo_oauth_client_id = forgejo_oauth_client_id
|
||||
row.forgejo_oauth_client_secret_encrypted = encrypted_secret
|
||||
row.firebreak_public_base_url = firebreak_public_base_url
|
||||
else:
|
||||
row = AppSettings(
|
||||
id=1,
|
||||
forgejo_base_url=forgejo_base_url,
|
||||
forgejo_oauth_client_id=forgejo_oauth_client_id,
|
||||
forgejo_oauth_client_secret_encrypted=encrypted_secret,
|
||||
firebreak_public_base_url=firebreak_public_base_url,
|
||||
)
|
||||
if row is None:
|
||||
row = AppSettings(id=1, forgejo_oauth_client_secret_encrypted="")
|
||||
db.add(row)
|
||||
row.forgejo_base_url = forgejo_base_url
|
||||
row.forgejo_oauth_client_id = forgejo_oauth_client_id
|
||||
row.firebreak_public_base_url = firebreak_public_base_url
|
||||
try:
|
||||
tokens.set_client_secret(row, forgejo_oauth_client_secret)
|
||||
except ValueError:
|
||||
raise _encryption_unavailable()
|
||||
await db.commit()
|
||||
await db.refresh(row)
|
||||
request.app.state.app_settings = row
|
||||
set_app_settings(request.app, row)
|
||||
|
||||
return RedirectResponse("/", status_code=status.HTTP_303_SEE_OTHER)
|
||||
|
|
|
|||
0
web/app/services/__init__.py
Normal file
0
web/app/services/__init__.py
Normal file
132
web/app/services/forgejo.py
Normal file
132
web/app/services/forgejo.py
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
"""Thin async client for the Forgejo API.
|
||||
|
||||
Centralizes the httpx mechanics, base-URL joining, and error shape shared by
|
||||
the OAuth flow (`app.routers.auth`) and the dashboard repository fragment
|
||||
(`app.main`). Transport failures and non-2xx responses both surface as a typed
|
||||
`ForgejoError`, leaving each caller free to decide how to handle them — the
|
||||
OAuth routes translate it into an HTTP 502, while the dashboard renders an
|
||||
inline message.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING, Any
|
||||
from urllib.parse import urlencode
|
||||
|
||||
import httpx
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from app.models.app_settings import AppSettings
|
||||
|
||||
DEFAULT_TIMEOUT = 30.0
|
||||
|
||||
|
||||
class ForgejoError(Exception):
|
||||
"""A Forgejo API call failed — either unreachable or a non-2xx response."""
|
||||
|
||||
def __init__(self, message: str, *, status_code: int | None = None) -> None:
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
# The HTTP status returned by Forgejo, or None if it was unreachable.
|
||||
self.status_code = status_code
|
||||
|
||||
@property
|
||||
def unreachable(self) -> bool:
|
||||
"""True when the request never got an HTTP response (network error)."""
|
||||
return self.status_code is None
|
||||
|
||||
|
||||
def _url(app_settings: AppSettings, path: str) -> str:
|
||||
# Defensive rstrip: a base URL stored with a trailing slash would otherwise
|
||||
# produce a double slash (`https://forge//api/...`) and 404.
|
||||
return f"{app_settings.forgejo_base_url.rstrip('/')}{path}"
|
||||
|
||||
|
||||
async def get(
|
||||
app_settings: AppSettings,
|
||||
path: str,
|
||||
*,
|
||||
token: str | None = None,
|
||||
params: dict[str, Any] | None = None,
|
||||
timeout: float = DEFAULT_TIMEOUT,
|
||||
) -> Any:
|
||||
"""GET a Forgejo API path, returning parsed JSON. Raises ForgejoError."""
|
||||
headers = {"Accept": "application/json"}
|
||||
if token:
|
||||
headers["Authorization"] = f"token {token}"
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=timeout) as client:
|
||||
resp = await client.get(_url(app_settings, path), params=params, headers=headers)
|
||||
except httpx.RequestError as exc:
|
||||
raise ForgejoError("Cannot reach Forgejo. Check your connection settings.") from exc
|
||||
if resp.status_code != 200:
|
||||
raise ForgejoError(
|
||||
f"Forgejo returned an error ({resp.status_code}).",
|
||||
status_code=resp.status_code,
|
||||
)
|
||||
return resp.json()
|
||||
|
||||
|
||||
async def post(
|
||||
app_settings: AppSettings,
|
||||
path: str,
|
||||
data: dict[str, Any],
|
||||
*,
|
||||
timeout: float = DEFAULT_TIMEOUT,
|
||||
) -> Any:
|
||||
"""POST form data to a Forgejo API path, returning parsed JSON. Raises ForgejoError."""
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=timeout) as client:
|
||||
resp = await client.post(
|
||||
_url(app_settings, path), data=data, headers={"Accept": "application/json"}
|
||||
)
|
||||
except httpx.RequestError as exc:
|
||||
raise ForgejoError("Cannot reach Forgejo. Check your connection settings.") from exc
|
||||
if resp.status_code != 200:
|
||||
raise ForgejoError(
|
||||
f"Forgejo returned an error ({resp.status_code}).",
|
||||
status_code=resp.status_code,
|
||||
)
|
||||
return resp.json()
|
||||
|
||||
|
||||
# ── OAuth ──
|
||||
|
||||
|
||||
def authorize_url(app_settings: AppSettings, *, redirect_uri: str, state: str) -> str:
|
||||
"""Build the Forgejo OAuth authorize URL to redirect the browser to."""
|
||||
query = urlencode(
|
||||
{
|
||||
"client_id": app_settings.forgejo_oauth_client_id,
|
||||
"response_type": "code",
|
||||
"redirect_uri": redirect_uri,
|
||||
"state": state,
|
||||
}
|
||||
)
|
||||
return f"{_url(app_settings, '/login/oauth/authorize')}?{query}"
|
||||
|
||||
|
||||
async def exchange_code(
|
||||
app_settings: AppSettings,
|
||||
*,
|
||||
code: str,
|
||||
client_secret: str,
|
||||
redirect_uri: str,
|
||||
) -> Any:
|
||||
"""Exchange an authorization code for tokens. Raises ForgejoError."""
|
||||
return await post(
|
||||
app_settings,
|
||||
"/login/oauth/access_token",
|
||||
{
|
||||
"grant_type": "authorization_code",
|
||||
"client_id": app_settings.forgejo_oauth_client_id,
|
||||
"client_secret": client_secret,
|
||||
"code": code,
|
||||
"redirect_uri": redirect_uri,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
async def fetch_user(app_settings: AppSettings, token: str) -> Any:
|
||||
"""Fetch the authenticated user's Forgejo profile. Raises ForgejoError."""
|
||||
return await get(app_settings, "/api/v1/user", token=token)
|
||||
|
|
@ -4,103 +4,72 @@
|
|||
--font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
|
||||
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
|
||||
|
||||
--color-background: #f8f8f6;
|
||||
--color-foreground: #17191c;
|
||||
--color-brand-cream: #f7f2e8;
|
||||
--color-brand-red: #c62030;
|
||||
--color-brand-flame: #f04a36;
|
||||
|
||||
--color-card: #f8f8f6;
|
||||
--color-card-foreground: #17191c;
|
||||
|
||||
--color-muted: #eeeeea;
|
||||
--color-muted-foreground: #3a3d42;
|
||||
|
||||
--color-accent: #f1f1ee;
|
||||
--color-accent-foreground: #17191c;
|
||||
|
||||
--color-primary: #2a2d31;
|
||||
--color-primary-foreground: #ffffff;
|
||||
--color-primary-hover: #17191c;
|
||||
--color-primary-muted: rgb(23 25 28 / 10%);
|
||||
|
||||
--color-secondary: #eeeeea;
|
||||
--color-secondary-foreground: #17191c;
|
||||
|
||||
--color-border: #d8d8d2;
|
||||
--color-border-subtle: #e9e9e4;
|
||||
--color-input: #ffffff;
|
||||
--color-ring: #2a2d31;
|
||||
--color-ring-muted: rgb(23 25 28 / 12%);
|
||||
--shadow-card: 0 1px 2px rgb(23 25 28 / 5%);
|
||||
|
||||
--color-success: oklch(47.8% 0.13 150);
|
||||
--color-success-foreground: oklch(47.8% 0.13 150);
|
||||
--color-success-muted: oklch(94.8% 0.055 150);
|
||||
|
||||
--color-warning: oklch(54.7% 0.13 65);
|
||||
--color-warning-foreground: oklch(54.7% 0.13 65);
|
||||
--color-warning-muted: oklch(96.3% 0.052 85);
|
||||
|
||||
--color-danger: #c62030;
|
||||
--color-danger-foreground: #c62030;
|
||||
--color-danger-muted: rgb(198 32 48 / 10%);
|
||||
|
||||
--color-expired: #5c5c58;
|
||||
--color-expired-foreground: #4b4b47;
|
||||
--color-expired-muted: #eeeeea;
|
||||
/* Ash & Ember (light): the page is cleared ground — warm ash-paper
|
||||
surfaces and charcoal ink. Fire is rationed to a single contained
|
||||
ember accent; flame red stays alarm-only. */
|
||||
--color-background: oklch(0.959 0.01 86);
|
||||
--color-foreground: oklch(0.3 0.013 75);
|
||||
--color-card: oklch(0.985 0.006 88);
|
||||
--color-card-foreground: var(--color-foreground);
|
||||
--color-muted: oklch(0.929 0.014 86);
|
||||
--color-muted-foreground: oklch(0.51 0.028 80);
|
||||
--color-elevated: oklch(0.94 0.013 84);
|
||||
--color-primary: oklch(0.52 0.15 40);
|
||||
--color-primary-foreground: var(--color-brand-cream);
|
||||
--color-primary-hover: oklch(0.45 0.135 38);
|
||||
--color-secondary: oklch(0.93 0.013 84);
|
||||
--color-secondary-hover: oklch(0.9 0.015 84);
|
||||
--color-secondary-foreground: var(--color-foreground);
|
||||
--color-border: oklch(0.881 0.02 84);
|
||||
--color-border-subtle: oklch(0.915 0.014 84);
|
||||
--color-input: oklch(0.98 0.006 88);
|
||||
/* Ember: the interactive/alive warm tier (contained). Flame red is alarm-only. */
|
||||
--color-ember: oklch(0.52 0.15 40);
|
||||
--color-ring: var(--color-ember);
|
||||
--color-ring-muted: oklch(0.52 0.13 40 / 0.35);
|
||||
--color-header: oklch(0.985 0.006 88);
|
||||
--color-header-foreground: var(--color-foreground);
|
||||
/* Overlay stays dark — it vignettes the dark hero video for legibility. */
|
||||
--color-overlay: oklch(0.14 0.006 260);
|
||||
--color-hero-ember: oklch(0.58 0.2 34 / 0.22);
|
||||
--color-hero-burn: var(--color-brand-flame);
|
||||
--color-success: oklch(0.521 0.057 135);
|
||||
--color-success-foreground: oklch(0.46 0.065 140);
|
||||
--color-warning: oklch(0.618 0.121 74);
|
||||
--color-warning-foreground: oklch(0.5 0.11 70);
|
||||
/* Danger: solid brand-red fill for destructive actions (rest state),
|
||||
darkening on hover. danger-foreground is the on-light text used by
|
||||
error messages and badge text. */
|
||||
--color-danger: var(--color-brand-red);
|
||||
--color-danger-hover: color-mix(
|
||||
in oklab,
|
||||
var(--color-brand-red) 78%,
|
||||
black
|
||||
);
|
||||
--color-danger-foreground: oklch(0.5 0.172 30);
|
||||
--color-danger-muted: color-mix(
|
||||
in oklab,
|
||||
var(--color-danger) 18%,
|
||||
transparent
|
||||
);
|
||||
--color-expired: oklch(0.6 0.01 80);
|
||||
--color-expired-foreground: oklch(0.4 0.01 80);
|
||||
|
||||
--radius-sm: 0.125rem;
|
||||
--radius-md: 0.25rem;
|
||||
--radius-lg: 0.375rem;
|
||||
--radius-xl: 0.5rem;
|
||||
--radius-2xl: 0.75rem;
|
||||
}
|
||||
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
.dark {
|
||||
--color-background: #17191c;
|
||||
--color-foreground: #f7f2e8;
|
||||
|
||||
--color-card: #1f2226;
|
||||
--color-card-foreground: #f7f2e8;
|
||||
|
||||
--color-muted: #282b30;
|
||||
--color-muted-foreground: #bdb8ad;
|
||||
|
||||
--color-accent: #2f2728;
|
||||
--color-accent-foreground: #f7f2e8;
|
||||
|
||||
--color-primary: #2a2d31;
|
||||
--color-primary-foreground: #f7f2e8;
|
||||
--color-primary-hover: #17191c;
|
||||
--color-primary-muted: rgb(247 242 232 / 14%);
|
||||
|
||||
--color-secondary: #282b30;
|
||||
--color-secondary-foreground: #f7f2e8;
|
||||
|
||||
--color-border: #34373d;
|
||||
--color-border-subtle: #282b30;
|
||||
--color-input: #1f2226;
|
||||
--color-ring: #f7f2e8;
|
||||
--color-ring-muted: rgb(247 242 232 / 18%);
|
||||
--shadow-card: 0 1px 2px rgb(0 0 0 / 22%);
|
||||
|
||||
--color-success: oklch(75% 0.12 150);
|
||||
--color-success-foreground: oklch(82% 0.12 150);
|
||||
--color-success-muted: oklch(32% 0.07 150);
|
||||
|
||||
--color-warning: oklch(82% 0.13 75);
|
||||
--color-warning-foreground: oklch(86% 0.13 75);
|
||||
--color-warning-muted: oklch(35% 0.075 75);
|
||||
|
||||
--color-danger: #f04a36;
|
||||
--color-danger-foreground: #ff7a66;
|
||||
--color-danger-muted: rgb(240 74 54 / 18%);
|
||||
|
||||
--color-expired: #bdb8ad;
|
||||
--color-expired-foreground: #d6d0c4;
|
||||
--color-expired-muted: #282b30;
|
||||
|
||||
--image-wrapper-size: 100%;
|
||||
--shadow-card: 0 1px 2px rgb(60 40 20 / 6%), 0 1px 3px rgb(60 40 20 / 7%);
|
||||
--shadow-elevated:
|
||||
0 10px 28px rgb(50 35 20 / 12%), 0 2px 6px rgb(50 35 20 / 8%);
|
||||
--shadow-hero-logo: 0 14px 34px rgb(0 0 0 / 28%);
|
||||
--shadow-hero-text: 0 4px 18px rgb(0 0 0 / 40%);
|
||||
--shadow-hero-copy: 0 4px 18px rgb(0 0 0 / 62%);
|
||||
--glow-hero: 0 0 80px oklch(0.58 0.2 34 / 0.16);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
|
|
@ -110,12 +79,22 @@
|
|||
|
||||
html {
|
||||
@apply bg-background text-foreground;
|
||||
color-scheme: light;
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased;
|
||||
@apply antialiased bg-background text-foreground;
|
||||
letter-spacing: 0;
|
||||
/* "The fire is off-screen": a faint warm haze at the top edge so
|
||||
interior pages share the hero's light without its motion. */
|
||||
background-image: radial-gradient(
|
||||
60rem 32rem at 50% -14rem,
|
||||
oklch(0.7 0.15 45 / 0.07),
|
||||
transparent 65%
|
||||
);
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
code {
|
||||
|
|
@ -127,6 +106,11 @@
|
|||
h3 {
|
||||
@apply text-foreground;
|
||||
}
|
||||
|
||||
/* Alpine utility, dont show elements until alpine.js is fetched & loaded in browser*/
|
||||
[x-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
|
|
@ -134,164 +118,400 @@
|
|||
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
|
||||
}
|
||||
|
||||
.btn-xs {
|
||||
@apply px-2 py-1 text-xs;
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
@apply px-3 py-2 text-sm;
|
||||
}
|
||||
|
||||
.btn-md {
|
||||
@apply px-4 py-2.5 text-sm;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
@apply px-5 py-3 text-base;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
@apply text-primary-foreground bg-primary-hover hover:bg-[#c62030]/90 hover:text-[#f7f2e8];
|
||||
@apply border border-foreground/12 bg-primary text-primary-foreground hover:border-ember/45 hover:bg-primary-hover hover:text-primary-foreground;
|
||||
}
|
||||
|
||||
/* Buttons are solid fills that darken a step on hover (the hero button's
|
||||
behavior), never sheer washes with colored borders. */
|
||||
.btn-secondary {
|
||||
@apply border border-border bg-card text-secondary-foreground hover:border-border hover:bg-accent hover:text-accent-foreground;
|
||||
@apply border border-foreground/12 bg-secondary text-secondary-foreground hover:bg-secondary-hover;
|
||||
}
|
||||
|
||||
.btn-borderless {
|
||||
@apply bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground;
|
||||
.btn-danger {
|
||||
@apply border border-transparent bg-danger text-brand-cream hover:bg-danger-hover;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
background: lab(0% 0 0);
|
||||
border-bottom: 0;
|
||||
box-shadow: none;
|
||||
/* Destructive action at rest — quiet outline; solid red is reserved for
|
||||
the moment of confirmation. Flame red never burns idle on a page. */
|
||||
.btn-danger-quiet {
|
||||
@apply border border-danger/45 bg-transparent text-danger-foreground hover:border-danger hover:bg-danger-muted;
|
||||
}
|
||||
|
||||
.app-header a,
|
||||
.app-header button,
|
||||
.app-header nav svg {
|
||||
color: #f7f2e8;
|
||||
stroke: #f7f2e8;
|
||||
.btn-link {
|
||||
@apply relative inline-flex items-center justify-center gap-2 px-0 py-1 text-sm font-medium transition bg-transparent rounded-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50;
|
||||
}
|
||||
|
||||
.app-header .brand-link svg {
|
||||
stroke: none;
|
||||
.btn-link::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset-inline: 0;
|
||||
bottom: 0.125rem;
|
||||
height: 1px;
|
||||
background: var(--color-ember);
|
||||
transform: scaleX(0);
|
||||
transform-origin: left center;
|
||||
transition: transform 160ms ease;
|
||||
}
|
||||
|
||||
.app-header .brand-link svg path[fill="#17191C"] {
|
||||
fill: #f7f2e8;
|
||||
.btn-link:hover::after,
|
||||
.btn-link:focus-visible::after {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.app-header .btn-borderless {
|
||||
color: #f7f2e8;
|
||||
/* Current-page nav link keeps its ember underline lit. */
|
||||
.btn-link[aria-current="page"]::after {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
||||
.app-header .btn-borderless:hover {
|
||||
background: rgb(247 242 232 / 10%);
|
||||
color: #fffdf8;
|
||||
.btn-disabled {
|
||||
/* border (not just border-color) keeps disabled buttons the same
|
||||
height as their bordered siblings in the Actions column. */
|
||||
@apply pointer-events-none border border-foreground/8 bg-foreground/6 text-foreground/35;
|
||||
}
|
||||
|
||||
.app-header .btn-secondary {
|
||||
background: rgb(247 242 232 / 8%);
|
||||
border-color: rgb(247 242 232 / 18%);
|
||||
color: #f7f2e8;
|
||||
.notice-rail {
|
||||
@apply border-l-2 border-warning px-5 py-1.5;
|
||||
background: var(--color-card);
|
||||
}
|
||||
|
||||
.app-header .btn-secondary:hover {
|
||||
background: rgb(247 242 232 / 14%);
|
||||
border-color: rgb(247 242 232 / 28%);
|
||||
color: #fffdf8;
|
||||
/* The cut rule: an ember segment, a gap, then the hairline. The gap is
|
||||
the point — the break the fire cannot cross. Ember sits 2px proud of
|
||||
the 1px hairline so the burning side reads heavier than the ground. */
|
||||
.firebreak-rule {
|
||||
height: 2px;
|
||||
background:
|
||||
linear-gradient(var(--color-ember), var(--color-ember)) 0 0 /
|
||||
2.5rem 2px no-repeat,
|
||||
linear-gradient(var(--color-border), var(--color-border)) 3.25rem
|
||||
50% / calc(100% - 3.25rem) 1px no-repeat;
|
||||
}
|
||||
|
||||
.landing-page .app-header {
|
||||
display: none;
|
||||
/* Share-link lifetime as a fuse: ember = remaining, ash = burned.
|
||||
The server sets --fuse to the remaining-lifetime percentage
|
||||
(style="--fuse: 62%"); omitted = a fresh, fully-lit fuse. */
|
||||
.link-fuse {
|
||||
height: 2px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--color-ember) var(--fuse, 100%),
|
||||
var(--color-border-subtle) var(--fuse, 100%)
|
||||
);
|
||||
}
|
||||
|
||||
.landing-page {
|
||||
background: #17191c;
|
||||
/* Containment status grammar — the operator voice for state reports
|
||||
(STATUS · CONTAINED — 0 EXPOSED). Write copy in sentence case and
|
||||
let the CSS shout; color comes from the call site. */
|
||||
.status-line {
|
||||
@apply font-mono text-[0.6875rem] font-medium uppercase tracking-[0.12em];
|
||||
}
|
||||
|
||||
.brand-link svg {
|
||||
@apply shrink-0;
|
||||
stroke: none;
|
||||
}
|
||||
|
||||
.brand-link svg:last-child {
|
||||
width: 5.25rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.dark .brand-link svg path[fill="#17191C"] {
|
||||
fill: var(--color-foreground);
|
||||
}
|
||||
|
||||
.section-header-subtle {
|
||||
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
|
||||
}
|
||||
|
||||
.badge {
|
||||
@apply rounded-full px-2.5 py-1 text-xs font-medium;
|
||||
}
|
||||
|
||||
.badge-success {
|
||||
@apply rounded-full bg-success-muted px-2.5 py-1 text-xs font-medium text-success-foreground;
|
||||
}
|
||||
|
||||
.badge-warning {
|
||||
@apply rounded-full bg-warning-muted px-2.5 py-1 text-xs font-medium text-warning-foreground;
|
||||
}
|
||||
|
||||
.badge-danger {
|
||||
@apply rounded-full bg-danger-muted px-2.5 py-1 text-xs font-medium text-danger-foreground;
|
||||
}
|
||||
|
||||
.badge-expired {
|
||||
@apply rounded-full bg-expired-muted px-2.5 py-1 text-xs font-medium text-expired-foreground;
|
||||
}
|
||||
|
||||
.card {
|
||||
@apply rounded-lg border border-border bg-card text-card-foreground;
|
||||
.table-panel {
|
||||
@apply overflow-hidden rounded-lg border border-border bg-card;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
@apply border-b border-border px-4 py-3;
|
||||
.table-shell {
|
||||
@apply overflow-x-auto;
|
||||
}
|
||||
|
||||
.card-header-label {
|
||||
@apply text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground;
|
||||
.data-table {
|
||||
/* Narrower floor on small screens — secondary columns are hidden
|
||||
there, so less width needs to scroll. Tabular numerals keep
|
||||
counts and dates aligned as they tick. */
|
||||
@apply w-full min-w-[34rem] text-left text-sm tabular-nums md:min-w-[45rem];
|
||||
}
|
||||
|
||||
.card-header-title {
|
||||
@apply mt-1 text-base font-semibold text-card-foreground;
|
||||
.data-table thead {
|
||||
@apply border-b border-border bg-elevated text-xs font-semibold uppercase tracking-[0.12em] text-foreground/75;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
@apply px-4 py-4;
|
||||
.data-table th {
|
||||
@apply px-4 py-2.5;
|
||||
}
|
||||
|
||||
.input-mono {
|
||||
@apply rounded-md border border-border bg-input px-3 py-2 font-mono text-[13px] leading-5 text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
|
||||
.data-table th:first-child,
|
||||
.data-table td:first-child {
|
||||
@apply pl-5;
|
||||
}
|
||||
|
||||
.input-error {
|
||||
@apply text-sm font-medium text-danger-foreground;
|
||||
.data-table th:last-child,
|
||||
.data-table td:last-child {
|
||||
@apply pr-5;
|
||||
}
|
||||
|
||||
.data-table tbody {
|
||||
@apply divide-y divide-border-subtle;
|
||||
}
|
||||
|
||||
.data-table tbody tr:not(.table-empty) {
|
||||
@apply transition-colors;
|
||||
}
|
||||
|
||||
/* Row hover is a pass of warm light, not a gray lift. */
|
||||
.data-table tbody tr:not(.table-empty):hover {
|
||||
background: color-mix(in oklab, var(--color-ember) 6%, transparent);
|
||||
}
|
||||
|
||||
.data-table td {
|
||||
@apply px-4 py-2.5;
|
||||
}
|
||||
|
||||
.table-empty {
|
||||
@apply text-center text-muted-foreground;
|
||||
}
|
||||
|
||||
/* Loading/error/empty states inside a table panel share one fixed-feel
|
||||
height so the htmx swap to the real table doesn't shift layout (CLS). */
|
||||
.table-placeholder {
|
||||
@apply flex min-h-40 items-center justify-center gap-2.5 px-5 py-8 text-center text-sm text-muted-foreground;
|
||||
}
|
||||
|
||||
.status-icon {
|
||||
@apply size-4 shrink-0;
|
||||
}
|
||||
|
||||
/* Loading-skeleton bar for table rows ("instrument warming up"). */
|
||||
.skeleton-bar {
|
||||
@apply inline-block h-3.5 rounded bg-muted/80 motion-safe:animate-pulse;
|
||||
}
|
||||
|
||||
/* Inline technical strings (branch names, SHAs) — brighter than
|
||||
muted-foreground so mono text reads as data, not chrome. */
|
||||
.mono-chip {
|
||||
@apply inline-block rounded bg-muted px-1 py-0.5 font-mono text-xs leading-none text-foreground/85;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
@apply mb-1.5 block text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
@apply block w-full rounded-md border border-border bg-input px-3 py-2.5 text-sm text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted;
|
||||
}
|
||||
|
||||
@keyframes creep-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes trot {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
}
|
||||
|
||||
25% {
|
||||
transform: translateY(-3px) rotate(-0.6deg);
|
||||
}
|
||||
|
||||
75% {
|
||||
transform: translateY(-3px) rotate(0.6deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes look-up {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(3deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes laser-pulse {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rattle {
|
||||
0%,
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
|
||||
10% {
|
||||
transform: translate(-1px, 1px);
|
||||
}
|
||||
|
||||
20% {
|
||||
transform: translate(1px, -1px);
|
||||
}
|
||||
|
||||
30% {
|
||||
transform: translate(-2px, 0);
|
||||
}
|
||||
|
||||
40% {
|
||||
transform: translate(2px, 1px);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: translate(-1px, -2px);
|
||||
}
|
||||
|
||||
60% {
|
||||
transform: translate(2px, 2px);
|
||||
}
|
||||
|
||||
70% {
|
||||
transform: translate(-3px, 1px);
|
||||
}
|
||||
|
||||
80% {
|
||||
transform: translate(3px, -1px);
|
||||
}
|
||||
|
||||
90% {
|
||||
transform: translate(-2px, 2px);
|
||||
}
|
||||
}
|
||||
|
||||
.guard-dog-wrap {
|
||||
animation: creep-in 6s ease-out both;
|
||||
animation-delay: 1.5s;
|
||||
}
|
||||
|
||||
.guard-dog-trot {
|
||||
animation: trot 0.4s ease-in-out 15;
|
||||
animation-delay: 1.5s;
|
||||
}
|
||||
|
||||
.guard-dog-look {
|
||||
animation: look-up 0.8s ease-out both;
|
||||
animation-delay: 7.5s;
|
||||
transform-origin: bottom center;
|
||||
}
|
||||
|
||||
.laser-eye {
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-brand-red);
|
||||
box-shadow:
|
||||
0 0 8px 2px var(--color-brand-red),
|
||||
0 0 24px 6px
|
||||
color-mix(in oklab, var(--color-brand-red) 45%, transparent);
|
||||
animation: laser-pulse 2s ease-in-out infinite;
|
||||
animation-delay: 7.5s;
|
||||
animation-fill-mode: both;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.laser-eye-left {
|
||||
inset-block-start: 40px;
|
||||
inset-inline-start: 81px;
|
||||
}
|
||||
|
||||
.laser-eye-right {
|
||||
inset-block-start: 39px;
|
||||
inset-inline-start: 100px;
|
||||
}
|
||||
|
||||
.laser-beam {
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
height: 2px;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--color-brand-red),
|
||||
color-mix(in oklab, var(--color-brand-red) 0%, transparent)
|
||||
);
|
||||
box-shadow:
|
||||
0 0 8px 2px
|
||||
color-mix(in oklab, var(--color-brand-red) 67%, transparent),
|
||||
0 0 20px 4px
|
||||
color-mix(in oklab, var(--color-brand-red) 27%, transparent);
|
||||
opacity: 0;
|
||||
transform-origin: left center;
|
||||
}
|
||||
|
||||
.laser-beam.fire {
|
||||
opacity: 1;
|
||||
transition: opacity 0.05s;
|
||||
}
|
||||
|
||||
.laser-beam.fade {
|
||||
opacity: 0;
|
||||
transition: opacity 0.4s;
|
||||
}
|
||||
|
||||
.btn-zapped {
|
||||
background: var(--color-brand-red) !important;
|
||||
color: var(--color-brand-cream) !important;
|
||||
box-shadow:
|
||||
0 0 12px 4px
|
||||
color-mix(in oklab, var(--color-brand-red) 50%, transparent),
|
||||
0 0 30px 8px
|
||||
color-mix(in oklab, var(--color-brand-red) 25%, transparent);
|
||||
animation: rattle 0.15s linear infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.guard-dog-wrap,
|
||||
.guard-dog-trot,
|
||||
.guard-dog-look,
|
||||
.laser-eye,
|
||||
.laser-beam,
|
||||
.btn-zapped {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.laser-eye,
|
||||
.laser-beam {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* One badge, one size — sizes fold back in here if a real second size
|
||||
ever ships. leading-none: without it, 10px caps float in the
|
||||
inherited line box and the slack lands below the text. */
|
||||
.badge {
|
||||
@apply inline-block whitespace-nowrap rounded-full px-1.5 py-0.5 text-[10px] font-medium uppercase leading-none tracking-[0.06em];
|
||||
}
|
||||
|
||||
/* Live ember — heat that's already outside the break (public repos:
|
||||
potential fire starters). Soft wash, not alarm red; same recipe as
|
||||
the sibling badges so it sits flush beside them. */
|
||||
.badge-ember {
|
||||
background: color-mix(in oklab, var(--color-ember) 42%, transparent);
|
||||
border: 1px solid
|
||||
color-mix(in oklab, var(--color-ember) 60%, transparent);
|
||||
color: oklch(0.4 0.13 38);
|
||||
}
|
||||
|
||||
.badge-danger {
|
||||
background: color-mix(in oklab, var(--color-danger) 42%, transparent);
|
||||
border: 1px solid
|
||||
color-mix(in oklab, var(--color-danger) 60%, transparent);
|
||||
color: var(--color-danger-foreground);
|
||||
}
|
||||
|
||||
.badge-expired {
|
||||
background: color-mix(in oklab, var(--color-expired) 38%, transparent);
|
||||
border: 1px solid
|
||||
color-mix(in oklab, var(--color-expired) 55%, transparent);
|
||||
color: var(--color-expired-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@utility img-wrapper-* {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: --value(--max-w-*, [length], [percentage], [*], "none", "inherit", "initial", "unset");
|
||||
|
||||
/* Automatically target the image inside */
|
||||
& img {
|
||||
width: 100%; /* Replaces 'stretch' for better compatibility */
|
||||
height: auto; /* Maintains aspect ratio */
|
||||
display: block; /* Removes bottom whitespace common in inline images */
|
||||
}
|
||||
}
|
||||
12
web/app/static/img/firebreak-brand-text.svg
Normal file
12
web/app/static/img/firebreak-brand-text.svg
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<svg width="560" height="96" viewBox="0 0 560 96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M239.045 0.0319824C240.53 1.43298 240.04 32.507 240.04 36.579C247.645 30.781 255.661 26.693 265.554 28.157C287.473 31.399 298.726 58.306 288.737 77.177C285.609 83.087 282.182 86.355 276.881 90.212C264.339 98.164 251.833 95.186 240.56 87.028C240.564 89.632 240.291 91.367 239.954 93.926C235.389 93.806 230.673 93.934 226.096 93.997C225.471 64.562 226.406 34.452 225.99 4.88702C230.259 3.63802 234.869 1.68498 239.045 0.0319824ZM260.64 81.431C284.761 76.056 282.438 38.664 255.615 41.617C249.413 44.028 244.263 47.121 241.468 53.456C237.184 63.166 240.963 76.132 251.256 79.975C254.258 81.071 257.447 81.566 260.64 81.431Z" fill="#F7F2E8"/>
|
||||
<path d="M376.834 28.126C392.589 25.95 407.281 34.637 411.99 49.807C413.916 56.008 413.713 60.747 413.639 67.103C396.945 67.006 380.25 67.017 363.557 67.138C370.021 84.748 383.312 85.1801 398.211 77.7621C399.505 76.9421 399.654 76.7261 401.176 76.4131C404.595 77.4261 405.973 81.212 407.828 84.474C396.781 96.566 375.369 98.422 362.001 89.035C354.887 83.959 350.104 76.245 348.721 67.617C345.602 48.074 357.101 31.357 376.834 28.126ZM363.575 55.286C370.086 55.465 376.064 55.24 382.569 55.013C387.325 54.943 393.355 55.0171 397.989 54.5381C394.911 45.4401 390.287 40.019 379.923 40.6451C370.034 42.507 366.785 45.807 363.575 55.286Z" fill="#F7F2E8"/>
|
||||
<path d="M450.783 27.678C463.381 26.391 478.525 32.427 480.177 45.961C482.013 60.992 481.097 78.711 481.059 93.967C476.834 93.911 471.01 94.4351 467.07 93.843C466.173 92.7681 466.562 91.536 466.57 89.699L466.096 89.326C453.885 95.572 438.62 99.262 427.46 87.26C425.658 85.322 424.818 83.109 423.811 80.698C418.781 55.154 448.1 51.963 466.25 54.217C464.708 33.354 441.917 39.683 430.435 48.858C428.5 45.379 426.645 42.293 424.541 38.909C433.821 31.827 439.131 29.112 450.783 27.678ZM449.019 83.188C456.215 83.371 462.633 80.747 466.804 74.728C466.664 71.366 466.477 67.953 466.484 64.591C463.339 64.763 460.779 64.773 457.63 64.733C451.389 64.994 444.694 64.968 440.086 69.845C436.914 73.204 436.393 77.565 440.481 80.382C443.187 82.246 445.834 82.811 449.019 83.188Z" fill="#F7F2E8"/>
|
||||
<path d="M174.311 28.08C176.186 27.896 178.071 27.833 179.955 27.892C193.937 28.217 205.662 34.908 209.952 48.858C211.943 55.331 211.684 60.202 211.383 66.932C196.105 67.643 177.607 67.171 162.094 67.152C162.639 69.086 163.385 70.958 164.319 72.738C166.757 77.356 171.023 80.738 176.077 82.059C183.72 83.987 190.477 81.327 196.849 77.483C199.815 75.366 200.807 75.413 203.029 78.609C204.363 80.529 205.591 82.78 206.818 84.789C173.446 112.422 131.378 79.806 152.853 41.469C157.246 33.626 165.956 29.849 174.311 28.08ZM161.667 55.506C167.996 55.435 174.931 55.014 181.09 55.067C183.945 55.173 194.052 56.118 195.85 54.463C196.244 44.36 185.451 40.41 176.934 40.624C167.477 43.2 165.106 46.657 161.667 55.506Z" fill="#F7F2E8"/>
|
||||
<path d="M510.587 0C511.181 0.054 510.77 -0.00898048 511.77 0.39502C512.16 19.151 511.996 38.453 512.018 57.239C519.805 48.965 529.089 38.101 536.717 29.52C543.54 29.56 550.363 29.514 557.184 29.382C548.665 38.491 539.906 47.019 531.014 55.757C538.813 66.164 546.737 76.478 554.783 86.695C555.562 87.968 558.892 92.115 559.962 93.521C554.024 93.506 548.088 93.681 542.162 94.048C537.701 89.416 525.057 72.37 520.404 66.438C517.653 69.067 515.051 71.158 512.094 73.559C511.931 80.282 512.076 87.533 512.092 94.296C507.521 94.072 502.222 94.228 497.597 94.255C497.181 64.483 497.492 34.175 497.415 4.33301C501.414 3.34401 506.602 1.381 510.587 0Z" fill="#F7F2E8"/>
|
||||
<path d="M0.0149994 5.42902C20.369 5.93702 43.334 5.41398 63.895 5.47198C61.753 10.076 60.057 14.631 58.243 19.362C47.704 18.42 26.906 19.033 15.505 19.065L15.541 42.469C19.604 42.424 49.409 42.026 50.987 42.971L50.897 44.612C50.257 48.455 49.469 52.264 48.836 56.149C37.717 55.948 26.596 55.899 15.476 56.003L15.549 94.015L0 93.989L0.0149994 5.42902Z" fill="#F7F2E8"/>
|
||||
<path d="M318.451 26.043L318.823 26.116C320.222 27.584 319.69 36.849 319.649 39.455C328.361 31.502 333.189 30.515 344.3 27.326C344.2 32.073 344.303 37.139 344.315 41.913C333.744 44.954 327.319 46.541 320.563 55.542L320.523 69.245L320.546 93.565C315.602 93.516 311.286 93.54 306.317 93.762C305.626 73.468 306.044 50.816 306.004 30.409C310.106 28.823 314.257 27.368 318.451 26.043Z" fill="#F7F2E8"/>
|
||||
<path d="M118.058 26.01L118.792 26.513C119.261 30.074 119.091 36.224 119.097 40.004C128.728 32.089 132.245 30.99 144.057 27.502C144.041 32.331 143.921 37.263 144.369 42.062C133.869 44.569 127.89 47.132 120.539 54.929L120.496 69.245L120.527 94.027L105.912 93.938C105.635 73.111 105.962 51.423 105.994 30.547C110.156 28.83 113.8 27.48 118.058 26.01Z" fill="#F7F2E8"/>
|
||||
<path d="M87.61 27.166L88.113 27.305C88.879 28.853 88.576 88.127 88.576 94.012L74.541 94.01C74.477 93.966 74.397 93.94 74.349 93.879C72.844 91.962 73.564 36.012 73.551 30.329C78.393 29.126 82.684 28.091 87.61 27.166Z" fill="#F7F2E8"/>
|
||||
<path d="M77.945 1.83897C81.329 0.76297 85.031 1.61299 87.606 4.05699C90.181 6.50199 91.223 10.1539 90.325 13.5899C89.426 17.0249 86.73 19.7 83.288 20.571C78.181 21.863 72.973 18.862 71.528 13.797C70.083 8.73198 72.925 3.43497 77.945 1.83897Z" fill="#F7F2E8"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.1 KiB |
|
|
@ -2,13 +2,14 @@
|
|||
<path d="M377.962 129.188C385.411 128.358 400.217 129.01 406.209 133.886C413.904 140.147 412.291 141.893 422.547 143.756C421.628 160.141 424.421 155.076 430.312 167.016C434.602 178.302 439.545 190.292 442.356 201.998C445.601 215.507 432.515 224.911 451.216 229.969C446.32 253.35 459.456 263.677 480.027 267.911C462.104 273.673 455.434 280.725 450.843 298.856C449.37 304.277 447.525 309.812 446.463 315.322C444.889 323.49 444.488 331.703 438.473 338.129C436.534 340.201 434.568 341.721 432.327 343.476C432.958 346.046 433.71 348.707 434.399 351.274C425.856 364.031 421.845 377.694 413.283 390.288C410.748 394.017 408.476 397.854 406.498 401.912C431.658 396.635 449.39 388.554 471.358 375.723C465.386 384.405 456.796 396.09 449.198 403.364C441.405 410.63 433.158 417.326 425.363 424.611C415.921 433.437 406.683 442.49 397.23 451.3C392.57 455.643 387.408 459.468 382.628 463.716C385.333 458.74 388.714 452.274 390.674 447.102C394.763 436.314 397.435 414.849 395.401 403.561C392.762 388.915 391.116 388.029 392.21 372.764C385.229 387.788 387.843 391.997 388.853 407.542C389.123 411.695 385.842 421.395 382.706 424.163C375.034 426.11 372.311 431.758 366.076 436.337C359.032 441.509 351.269 445.415 343.711 449.763C348.19 444.046 350.59 441.303 356.083 436.573C349.295 439.91 341.729 444.088 335.799 448.749C333.459 450.587 331.403 453.953 328.751 455.431C313.065 464.172 293.325 469.279 276.039 472.712C258.928 475.778 241.512 476.788 224.162 475.721C214.013 474.999 208.966 473.493 199.632 469.783C199.205 469.614 196.619 471.959 195.349 472.005C189.313 472.222 183.072 471.029 177.31 469.272C157.587 460.851 137.72 451.155 119.546 439.758C113.945 436.245 109.325 430.952 103.634 427.607C96.708 423.534 89.396 420.568 82.602 416.378C111.177 419.184 119.977 416.864 147.056 414.508C151.731 416.853 157.669 420.887 162.36 423.634C169.427 427.713 176.912 431.019 184.687 433.495C200.305 438.277 216.645 440.261 232.953 439.354C242.349 438.789 252.24 436.844 261.591 437.9C285.265 440.572 304.715 429.336 324.952 418.77L326.038 424.703C334.169 417.28 336.549 412.358 342.402 403.525C343.909 401.252 352.335 395.226 355.1 392.996C362.155 387.306 369.542 381.653 375.996 375.179C398.834 352.405 397.48 335.602 428.694 320.978C404.129 308.756 411.471 302.401 419.259 281.878C420.756 277.933 421.035 270.918 421.175 266.656C425.479 268.107 430.277 269.341 434.68 270.567C433.784 269.589 432.906 268.594 432.048 267.582C420.454 253.795 411.214 230.104 408.873 212.131C408.386 208.393 408.945 202.195 409.261 198.376C407.73 195.834 401.413 189.401 400.938 188.184C391.64 164.373 379.381 151.492 359.801 135.067C366.73 131.041 369.995 130.362 377.962 129.188Z" fill="#F7F2E8"/>
|
||||
<path d="M233.09 0.233836C239.92 -0.550164 246.953 0.807827 253.728 1.79283C242.942 6.95983 233.51 9.77284 224.799 18.6518C211.193 32.4778 203.036 52.4348 202.226 71.7428C201.701 84.2438 204.18 95.4258 200.525 107.755C196.896 119.993 189.464 128.06 180.664 136.796C185.966 124.088 187.51 119.167 186.617 105.616C182.859 115.368 178.414 122.814 167.981 126.433C168.108 123.403 169.119 115.356 167.05 113.39C166.027 113.655 165.24 114.297 164.658 115.17C159.014 123.635 153.833 131.929 147.055 139.629C136.807 151.126 123.274 158.896 111.837 169.138C100.722 179.091 93.941 190.385 85.782 202.569C82.658 207.234 77.789 211.293 75.204 216.478C72.024 222.859 71.583 230.133 68.559 236.545C66.751 240.277 61.259 244.21 59.499 248.4C55.219 258.59 60.558 261.489 63.887 269.894C66.696 276.986 63.132 283.023 60.034 289.207C76.493 302.204 62.469 320.543 76.305 335.334C81.966 341.385 86.628 351.947 90.994 359.408C102.636 379.306 117.441 392.376 135.358 406.178C126.656 409.773 108.823 415.301 99.721 413.476C93.64 412.257 91.358 409.007 88.226 404.357C62.442 400.535 75.754 422.835 81.118 436.794C84.956 446.781 90.972 457.846 95.633 467.627C80.875 455.728 70.339 442.378 56.494 429.717C50.004 423.783 43.833 417.666 37.704 411.363C27.601 401.183 17.367 387.401 9.07001 375.795C14.478 378.808 19.28 382.412 25.181 385.498C40.18 393.343 54.036 396.27 70.312 399.064C56.907 383.747 49.129 368.374 41.22 349.856L47.14 353.238C43.236 345.434 37.962 336.712 34.82 328.753C35.195 326.153 36.024 322.598 36.57 319.944C35.051 317.799 29.407 310.199 28.567 308.256C25.684 301.589 25.272 293.991 22.384 286.725C17.915 275.48 10.472 271.542 0 266.979C19.649 264.03 34.605 247.297 29.595 226.935C33.332 225.178 37.073 223.071 40.714 221.095C39.847 217.611 37.029 209.094 35.714 205.857C27.59 185.845 47.007 178.747 53.997 164.814C57.965 156.907 58.542 143.283 64.029 133.218C75.733 111.748 92.948 94.1708 114.612 82.5658C121.073 79.1048 127.964 76.8178 134.758 74.5428C128.397 79.4308 122.414 84.7938 116.86 90.5838C106.665 101.327 98.586 114.076 98.795 129.561C98.85 133.652 100.296 136.776 103.338 139.452C105.443 141.303 108.883 142.651 111.712 142.052C129.245 138.335 145.112 109.966 151.098 94.9598C152.793 90.7118 154.446 79.3968 155.078 74.9898C157.244 59.8748 162.929 46.7948 172.274 34.7808C187.043 15.5188 208.981 3.05584 233.09 0.233836Z" fill="#F7F2E8"/>
|
||||
<path d="M302.906 63.3759C324.544 68.7329 347.484 77.6769 366.374 89.6779C371.294 92.9379 375.736 97.3269 380.765 100.384C388.39 105.019 396.29 109.134 403.262 114.779C406.793 117.638 407.973 119.451 409.903 123.422C397.077 121.539 390.051 121.087 377.302 121.153C369.465 121.675 362.223 123.046 354.485 123.814C343.82 124.873 330.679 117.679 321.338 112.932C317.886 111.178 314.245 105.6 309.246 103.579C303.405 101.217 298.13 102.173 292.824 100.863C285.99 99.1749 278.719 96.9778 271.835 95.1358C276.31 90.4778 281.356 86.0619 285.853 81.4429C291.603 75.5379 297.278 69.4059 302.906 63.3759Z" fill="#F7F2E8"/>
|
||||
<path d="M287.056 10.4429C288.037 11.3969 287.52 13.4899 287.303 14.7619C281.065 51.3959 257.636 83.0359 227.436 104.285C229.836 97.4399 234.914 87.3949 238.097 80.8129C246.617 64.7889 256.313 49.4179 267.106 34.8279C255.57 38.1369 251.519 39.9349 241.219 45.5469C241.084 44.2189 240.834 40.9859 240.922 39.8279C241.384 33.7359 256.869 29.2769 262.106 27.1309C265.158 25.8869 268.112 24.4149 270.943 22.7289C276.714 19.2989 281.887 14.7429 287.056 10.4429Z" fill="#C62030"/>
|
||||
<path d="M313.295 127.731C326.3 130.726 350.649 145.122 360.516 154.765C365.829 159.957 371.104 168.71 370.706 176.294C370.577 178.752 370.194 182.806 368.312 184.636C367.044 180.931 366.414 178.883 364.518 175.496C355.642 160.155 347.281 153.013 331.484 146.495C333.699 151.229 335.938 154.654 338.913 158.906C328.23 151.42 319.031 139.345 313.295 127.731Z" fill="#F04A36"/>
|
||||
<path d="M135.504 384.543C139.568 385.886 150.072 391.509 155.134 393.578C175.841 402.041 194.371 406.735 216.5 409.936C212.334 411.154 207.55 412.128 203.279 413.095C200.573 413.511 197.76 414.362 195.1 415.079L200.952 420.249C196.758 419.368 192.594 418.351 188.466 417.199C171.288 412.324 144.646 400.866 135.504 384.543Z" fill="#C62030"/>
|
||||
<path d="M377.687 183.898C379.552 185.267 383.983 192.853 385.126 195.036C395.247 214.352 398.461 234.795 400.779 256.162C398.497 253.472 395.878 249.815 393.705 246.951C383.873 232.804 380.907 227.958 377.006 211.575L385.181 220.88C383.437 211.047 378.321 192.628 377.687 183.898Z" fill="#F04A36"/>
|
||||
<path d="M287.056 10.4429C288.037 11.3969 287.52 13.4899 287.303 14.7619C281.065 51.3959 257.636 83.0359 227.436 104.285C229.836 97.4399 234.914 87.3949 238.097 80.8129C246.617 64.7889 256.313 49.4179 267.106 34.8279C255.57 38.1369 251.519 39.9349 241.219 45.5469C241.084 44.2189 240.834 40.9859 240.922 39.8279C241.384 33.7359 256.869 29.2769 262.106 27.1309C265.158 25.8869 268.112 24.4149 270.943 22.7289C276.714 19.2989 281.887 14.7429 287.056 10.4429Z" fill="#F04A36"/>
|
||||
<path d="M117 197.726C123.052 185.832 142.911 165.689 154.655 158.448C160.978 154.549 170.747 151.548 178.009 153.769C180.363 154.489 184.204 155.841 185.525 158.11C181.623 158.444 179.483 158.56 175.738 159.58C158.706 164.481 149.753 170.866 139.607 184.617C144.736 183.613 148.601 182.269 153.447 180.411C143.598 188.966 129.657 194.97 117 197.726Z" fill="#E23A32"/>
|
||||
<path d="M313.295 127.731C326.3 130.726 350.649 145.122 360.516 154.765C365.829 159.957 371.104 168.71 370.706 176.294C370.577 178.752 370.194 182.806 368.312 184.636C367.044 180.931 366.414 178.883 364.518 175.496C355.642 160.155 347.281 153.013 331.484 146.495C333.699 151.229 335.938 154.654 338.913 158.906C328.23 151.42 319.031 139.345 313.295 127.731Z" fill="#C62030"/>
|
||||
<path d="M137.214 381.081C141.146 382.773 151.12 389.29 155.982 391.793C175.873 402.028 193.923 408.319 215.689 413.437C211.432 414.287 206.582 414.84 202.243 415.432C199.511 415.61 196.634 416.213 193.922 416.695L199.301 422.355C195.2 421.112 191.14 419.736 187.128 418.229C170.441 411.875 144.899 398.139 137.214 381.081Z" fill="#C62030"/>
|
||||
<path d="M377.687 183.898C379.552 185.267 383.983 192.853 385.126 195.036C395.247 214.352 398.461 234.795 400.779 256.162C398.497 253.472 395.878 249.815 393.705 246.951C383.873 232.804 380.907 227.958 377.006 211.575L385.181 220.88C383.437 211.047 378.321 192.628 377.687 183.898Z" fill="#C62030"/>
|
||||
<path d="M328.964 392.524L329.393 393.126C305.874 418.773 283.705 424.874 249.834 422.345C252.977 420.089 273.915 414.168 279.126 412.07C286.096 409.597 292.775 406.338 299.75 403.895C301.091 403.425 302.054 404.213 303.239 404.853C308.169 404.855 323.67 395.351 328.964 392.524Z" fill="#C62030"/>
|
||||
<path d="M90.246 298C92.786 299.846 95.633 310.986 97.042 314.645C103.097 330.367 111.323 347.35 119.659 361.921C114.567 358.33 111.052 355.072 106.72 350.613C95.59 338.8 86.954 325.256 82 309.696L93.363 324.312C91.611 315.192 89.999 307.351 90.246 298Z" fill="#C62030"/>
|
||||
<path d="M105.051 202.535L105.305 202.827C105.237 206.488 93.189 225.359 91.587 234.04C93.139 235.388 93.534 233.475 95.311 234.764C94.858 240.699 92.687 246.476 91.678 252.249C90.789 257.34 90.215 262.897 89.535 268.059L88.965 268.208C82.262 254.16 79.902 246.014 85.351 231.004C89.806 218.734 95.713 211.415 105.051 202.535Z" fill="#C62030"/>
|
||||
<path d="M401.596 276.713C404.265 283.545 396.981 311.688 394.308 319.3L391.233 314.499C386.709 307.62 385.704 299.885 384.799 291.86C389.118 285.628 395.349 280.866 401.596 276.713Z" fill="#E23A32"/>
|
||||
<path d="M383.222 318.362C383.812 319.528 384.142 320.983 384.332 322.268C386.525 337.098 383.732 345.071 375.024 356.974C367.081 367.831 356.567 376.413 343.097 378.576C346.105 374.81 352.659 370.215 356.435 366.233C359.063 363.46 366.8 352.512 368.899 351.734C370.399 352.657 369.77 352.56 371.347 352.601C378.414 346.511 381.048 327.399 383.222 318.362Z" fill="#E23A32"/>
|
||||
<path d="M90.246 298C92.786 299.846 95.633 310.986 97.042 314.645C103.097 330.367 111.323 347.35 119.659 361.921C114.567 358.33 111.052 355.072 106.72 350.613C95.59 338.8 86.954 325.256 82 309.696L93.363 324.312C91.611 315.192 89.999 307.351 90.246 298Z" fill="#E23A32"/>
|
||||
<path d="M104.719 211L104.973 211.292C104.905 214.953 92.8572 233.824 91.2552 242.505C92.8072 243.853 93.2022 241.94 94.9792 243.229C94.5262 249.164 92.3552 254.941 91.3462 260.714C90.4572 265.805 89.8832 271.362 89.2032 276.524L88.6332 276.673C81.9302 262.625 79.5702 254.479 85.0192 239.469C89.4742 227.199 95.3812 219.88 104.719 211Z" fill="#E23A32"/>
|
||||
<path d="M401.596 276.713C404.265 283.545 396.981 311.688 394.308 319.3L391.233 314.499C386.709 307.62 385.704 299.885 384.799 291.86C389.118 285.628 395.349 280.866 401.596 276.713Z" fill="#C62030"/>
|
||||
<path d="M383.222 318.362C383.812 319.528 384.142 320.983 384.332 322.268C386.525 337.098 383.732 345.071 375.024 356.974C367.081 367.831 356.567 376.413 343.097 378.576C346.105 374.81 352.659 370.215 356.435 366.233C359.063 363.46 366.8 352.512 368.899 351.734C370.399 352.657 369.77 352.56 371.347 352.601C378.414 346.511 381.048 327.399 383.222 318.362Z" fill="#C62030"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.9 KiB |
|
|
@ -1,11 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="dark">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>
|
||||
{% block title %}Firebreak{% endblock %}
|
||||
</title>
|
||||
<link rel="preconnect" href="https://unpkg.com" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
||||
|
|
@ -13,51 +14,58 @@
|
|||
<link rel="stylesheet" href="/static/css/output.css" />
|
||||
<script src="https://unpkg.com/htmx.org@2"></script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-background text-sm text-foreground antialiased {% block body_class %}{% endblock %}">
|
||||
<body class="min-h-dvh flex flex-col bg-background text-sm text-foreground antialiased {% block body_class %}{% endblock %}">
|
||||
<header class="app-header">
|
||||
<div class="flex items-center justify-between px-4 py-3 mx-auto max-w-7xl sm:px-8">
|
||||
<div class="mx-auto grid w-full max-w-7xl grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-4 px-4 py-3 sm:px-8">
|
||||
<a href="/"
|
||||
class="brand-link flex items-center gap-2 text-base text-foreground hover:text-primary"
|
||||
class="brand-link flex min-w-0 shrink-0 items-center gap-2 justify-self-start text-base text-foreground"
|
||||
aria-label="Firebreak home">
|
||||
<svg width="28"
|
||||
height="30"
|
||||
viewBox="0 0 28 30"
|
||||
class="text-brand-red"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M21.5596 8.01157C21.9844 7.96011 22.829 8.0003 23.1709 8.30259C23.6097 8.69079 23.5179 8.79938 24.1025 8.91489C24.0501 9.93095 24.2099 9.61686 24.5459 10.3573C24.7906 11.0572 25.0721 11.8012 25.2324 12.5272C25.4173 13.3648 24.6717 13.9479 25.7383 14.2616C25.4591 15.7115 26.2085 16.3515 27.3818 16.6141C26.3596 16.9714 25.9787 17.4089 25.7168 18.5331C25.6328 18.8692 25.5274 19.2128 25.4668 19.5545C25.377 20.0609 25.3545 20.5702 25.0117 20.9686C24.9012 21.097 24.7889 21.1919 24.6611 21.3006C24.6971 21.46 24.74 21.6249 24.7793 21.784C24.292 22.5752 24.0626 23.4229 23.5742 24.204C23.4297 24.4351 23.3003 24.6731 23.1875 24.9247C24.6225 24.5974 25.6338 24.0962 26.8867 23.3006C26.5461 23.839 26.0563 24.5635 25.623 25.0145C25.1786 25.465 24.7082 25.8802 24.2637 26.3319C23.7252 26.8791 23.1983 27.4409 22.6592 27.9872C22.3934 28.2565 22.0988 28.4942 21.8262 28.7577C21.9804 28.4492 22.1733 28.0481 22.2852 27.7274C22.5183 27.0585 22.6706 25.7273 22.5547 25.0272C22.4042 24.119 22.3097 24.0636 22.3721 23.117C21.9741 24.0484 22.123 24.3097 22.1807 25.2733C22.1961 25.5308 22.009 26.1329 21.8301 26.3045C21.3927 26.4253 21.2374 26.7755 20.8818 27.0594C20.4801 27.3801 20.0375 27.6228 19.6064 27.8924C19.8619 27.5379 19.9983 27.3673 20.3115 27.0741C19.9244 27.281 19.4925 27.5399 19.1543 27.829C19.0209 27.943 18.9042 28.1524 18.7529 28.244C17.8582 28.786 16.7321 29.1024 15.7461 29.3153C14.7702 29.5054 13.7767 29.5679 12.7871 29.5018C12.2082 29.457 11.9201 29.3637 11.3877 29.1336C11.3634 29.1232 11.2161 29.2681 11.1436 29.2713C10.7993 29.2848 10.4429 29.2104 10.1143 29.1014C8.98932 28.5792 7.85592 27.9781 6.81934 27.2713C6.50006 27.0536 6.23649 26.7258 5.91211 26.5184C5.51707 26.2658 5.09943 26.0819 4.71191 25.8221C6.34186 25.9961 6.84406 25.852 8.38867 25.7059C8.65531 25.8513 8.99419 26.101 9.26172 26.2713C9.66483 26.5243 10.0917 26.7301 10.5352 26.8836C11.4259 27.1801 12.358 27.3031 13.2881 27.2469C13.824 27.2119 14.3885 27.0906 14.9219 27.1561C16.2722 27.3218 17.3818 26.6248 18.5361 25.9696L18.5977 26.3377C19.0615 25.8774 19.1974 25.5721 19.5312 25.0243C19.6175 24.8832 20.0982 24.5102 20.2559 24.3719C20.6583 24.0191 21.0791 23.6679 21.4473 23.2665C22.7499 21.8542 22.6729 20.812 24.4531 19.9051C23.0524 19.1473 23.4708 18.7529 23.915 17.4803C24.0003 17.2358 24.0164 16.8013 24.0244 16.537C24.2699 16.6269 24.5438 16.7031 24.7949 16.7792C24.7438 16.7185 24.6935 16.6564 24.6445 16.5936C23.9833 15.7385 23.4568 14.2696 23.3232 13.1551C23.2955 12.9235 23.3267 12.5395 23.3447 12.3026C23.2574 12.1449 22.8972 11.7452 22.8701 11.6698C22.3398 10.1933 21.6402 9.39436 20.5234 8.37583C20.9186 8.12619 21.1053 8.08436 21.5596 8.01157Z" fill="#C62030" />
|
||||
<path d="M13.2959 0.0145017C13.6855 -0.0341185 14.0872 0.0500961 14.4736 0.111181C13.8585 0.431567 13.3201 0.605665 12.8232 1.1561C12.0471 2.01353 11.5814 3.25168 11.5352 4.44907C11.5052 5.22427 11.6469 5.91793 11.4385 6.68247C11.2315 7.44129 10.8076 7.94154 10.3057 8.48325C10.6081 7.69518 10.6964 7.38997 10.6455 6.54966C10.4311 7.15443 10.1771 7.61624 9.58203 7.84067C9.58927 7.65292 9.64694 7.15451 9.5293 7.03208C9.47094 7.04851 9.42578 7.08829 9.39258 7.14243C9.07071 7.6673 8.77523 8.1816 8.38867 8.65903C7.80412 9.37201 7.03225 9.85396 6.37988 10.4891C5.74587 11.1064 5.35895 11.8068 4.89355 12.5624C4.71537 12.8516 4.43748 13.1032 4.29004 13.4247C4.10871 13.8203 4.08348 14.2712 3.91113 14.6688C3.80804 14.9001 3.49506 15.1444 3.39453 15.4042C3.15043 16.036 3.45464 16.2161 3.64453 16.7372C3.80476 17.177 3.60152 17.5519 3.4248 17.9354C4.36334 18.7414 3.56357 19.8786 4.35254 20.7958C4.67545 21.171 4.94139 21.8262 5.19043 22.2889C5.8545 23.5229 6.6997 24.3334 7.72168 25.1893C7.22531 25.4123 6.20766 25.7546 5.68848 25.6415C5.34174 25.5658 5.21182 25.3643 5.0332 25.076C3.56246 24.839 4.32196 26.2221 4.62793 27.0877C4.84684 27.707 5.18924 28.3934 5.45508 28.9999C4.6134 28.262 4.01229 27.4344 3.22266 26.6493C2.8525 26.2813 2.50094 25.9014 2.15137 25.5106C1.57508 24.8793 0.990847 24.0243 0.517578 23.3045C0.826056 23.4914 1.09992 23.7157 1.43652 23.9071C2.29197 24.3935 3.08249 24.5746 4.01074 24.7479C3.24619 23.7981 2.80267 22.8445 2.35156 21.6961L2.68945 21.9061C2.46677 21.4221 2.16555 20.8811 1.98633 20.3875C2.0077 20.2265 2.05479 20.0062 2.08594 19.8417C1.99929 19.7086 1.6778 19.2366 1.62988 19.1161C1.46554 18.7027 1.44204 18.2316 1.27734 17.7811C1.02243 17.0837 0.597331 16.8395 0 16.5565C1.1208 16.3736 1.97425 15.3359 1.68848 14.0731C1.90163 13.9641 2.11556 13.8333 2.32324 13.7108C2.27375 13.4947 2.11213 12.9673 2.03711 12.7665C1.57371 11.5254 2.68136 11.0846 3.08008 10.2206C3.30636 9.73027 3.33952 8.8857 3.65234 8.26157C4.31995 6.9301 5.30235 5.83966 6.53809 5.11997C6.90658 4.90538 7.30002 4.76397 7.6875 4.6229C7.32469 4.92601 6.9828 5.25801 6.66602 5.61704C6.08448 6.28327 5.62382 7.0747 5.63574 8.03501C5.63897 8.28848 5.72113 8.48244 5.89453 8.64829C6.0146 8.76308 6.21168 8.84657 6.37305 8.80942C7.37298 8.57853 8.27774 6.819 8.61914 5.88853C8.7158 5.62493 8.81064 4.92348 8.84668 4.65024C8.97023 3.71302 9.29421 2.90205 9.82715 2.15708C10.6695 0.962598 11.9208 0.189561 13.2959 0.0145017Z" fill="#C62030" />
|
||||
<path d="M18.7891 24.3797C17.4476 25.9701 16.1829 26.3481 14.251 26.1913C14.4305 26.0513 15.6244 25.6847 15.9219 25.5545C16.3195 25.4012 16.7008 25.1992 17.0986 25.0477C17.1751 25.0186 17.2303 25.0676 17.2979 25.1073C17.5794 25.1068 18.4626 24.518 18.7646 24.3426L18.7891 24.3797Z" fill="#C62030" />
|
||||
<path d="M7.72949 23.8475C7.96131 23.9308 8.56087 24.2797 8.84961 24.4081C10.0306 24.9328 11.0876 25.2232 12.3496 25.4217C12.112 25.4973 11.8393 25.5581 11.5957 25.618C11.4414 25.6438 11.2806 25.6966 11.1289 25.7411L11.4629 26.0614C11.2238 26.0068 10.9863 25.9443 10.751 25.8729C9.77113 25.5706 8.25097 24.8598 7.72949 23.8475Z" fill="#C62030" />
|
||||
<path d="M21.8594 19.743C21.893 19.8153 21.912 19.9056 21.9229 19.9852C22.0479 20.9048 21.8891 21.3995 21.3926 22.1375C20.9396 22.8108 20.3395 23.3432 19.5713 23.4774C19.7429 23.2439 20.1167 22.9587 20.332 22.7118C20.4821 22.5395 20.9233 21.8606 21.043 21.8124C21.1285 21.8696 21.0927 21.8635 21.1826 21.8661C21.5855 21.488 21.7354 20.3033 21.8594 19.743Z" fill="#C62030" />
|
||||
<path d="M5.36621 19.0877C5.51104 19.2022 5.6735 19.8928 5.75391 20.12C6.09929 21.095 6.56845 22.149 7.04395 23.0526C6.75349 22.8299 6.55277 22.627 6.30566 22.3504C5.67096 21.6179 5.17804 20.7781 4.89551 19.8133L5.54395 20.7196C5.44402 20.1541 5.35212 19.6676 5.36621 19.0877Z" fill="#C62030" />
|
||||
<path d="M22.9082 17.16C23.0604 17.5837 22.6447 19.3295 22.4922 19.8016L22.3164 19.5038C22.0584 19.0772 22.0018 18.5971 21.9502 18.0995C22.1965 17.7131 22.552 17.4175 22.9082 17.16Z" fill="#C62030" />
|
||||
<path d="M6.00684 12.578C6.00296 12.805 5.31622 13.975 5.22461 14.5135C5.31314 14.5971 5.33614 14.4785 5.4375 14.5584C5.41166 14.9265 5.28705 15.2854 5.22949 15.6434C5.17881 15.959 5.1462 16.3039 5.10742 16.6239L5.0752 16.6327C4.69292 15.7616 4.55847 15.2567 4.86914 14.326C5.1232 13.5653 5.45975 13.1109 5.99219 12.5604L6.00684 12.578Z" fill="#C62030" />
|
||||
<path d="M21.5439 11.4042C21.6503 11.489 21.9034 11.9589 21.9688 12.0946C22.546 13.2924 22.7291 14.5606 22.8613 15.8856C22.7312 15.7188 22.5819 15.4919 22.458 15.3143C21.8972 14.4371 21.7274 14.1368 21.5049 13.1209L21.9717 13.6981C21.8722 13.0883 21.5801 11.9455 21.5439 11.4042Z" fill="#C62030" />
|
||||
<path d="M17.8711 7.92075C18.6129 8.10648 20.0016 8.99949 20.5645 9.59751C20.8675 9.91944 21.1681 10.4622 21.1455 10.9325C21.1381 11.0849 21.1161 11.3366 21.0088 11.45C20.9365 11.2205 20.9009 11.0934 20.793 10.8836C20.2867 9.93226 19.8093 9.48903 18.9082 9.08481C19.0345 9.37833 19.1624 9.59074 19.332 9.85435C18.7228 9.39008 18.1982 8.64091 17.8711 7.92075Z" fill="#C62030" />
|
||||
<path d="M17.2783 3.93052C18.5125 4.26272 19.821 4.81717 20.8984 5.56138C21.1791 5.76355 21.4329 6.03586 21.7197 6.22544C22.1546 6.51282 22.6053 6.768 23.0029 7.11802C23.2042 7.29526 23.2718 7.40794 23.3818 7.65415C22.6504 7.5374 22.2494 7.50944 21.5225 7.51353C21.0755 7.54589 20.6621 7.63093 20.2207 7.67856C19.6125 7.74422 18.8629 7.29815 18.3301 7.00376C18.1332 6.89498 17.9248 6.54901 17.6396 6.42368C17.3066 6.27732 17.0057 6.33596 16.7031 6.25474C16.3134 6.15006 15.8984 6.01348 15.5059 5.89927C15.7611 5.61047 16.0492 5.33701 16.3057 5.05063C16.6336 4.68454 16.9574 4.30436 17.2783 3.93052Z" fill="#C62030" />
|
||||
<path d="M16.374 0.647314C16.4299 0.706385 16.4011 0.835973 16.3887 0.914892C16.0329 3.18667 14.6962 5.14888 12.9736 6.46665C13.1106 6.04216 13.4005 5.41964 13.582 5.01157C14.068 4.01794 14.6208 3.06473 15.2363 2.16001C14.5785 2.36517 14.3471 2.47613 13.7598 2.82407C13.7521 2.74152 13.7382 2.5413 13.7432 2.46958C13.7698 2.09189 14.6524 1.81555 14.9512 1.68247C15.1253 1.60532 15.2936 1.51359 15.4551 1.40903C15.7842 1.19636 16.0792 0.913941 16.374 0.647314Z" fill="#C62030" />
|
||||
<path d="M21.5596 8.01157C21.9844 7.96011 22.829 8.0003 23.1709 8.30259C23.6097 8.69079 23.5179 8.79938 24.1025 8.91489C24.0501 9.93095 24.2099 9.61686 24.5459 10.3573C24.7906 11.0572 25.0721 11.8012 25.2324 12.5272C25.4173 13.3648 24.6717 13.9479 25.7383 14.2616C25.4591 15.7115 26.2085 16.3515 27.3818 16.6141C26.3596 16.9714 25.9787 17.4089 25.7168 18.5331C25.6328 18.8692 25.5274 19.2128 25.4668 19.5545C25.377 20.0609 25.3545 20.5702 25.0117 20.9686C24.9012 21.097 24.7889 21.1919 24.6611 21.3006C24.6971 21.46 24.74 21.6249 24.7793 21.784C24.292 22.5752 24.0626 23.4229 23.5742 24.204C23.4297 24.4351 23.3003 24.6731 23.1875 24.9247C24.6225 24.5974 25.6338 24.0962 26.8867 23.3006C26.5461 23.839 26.0563 24.5635 25.623 25.0145C25.1786 25.465 24.7082 25.8802 24.2637 26.3319C23.7252 26.8791 23.1983 27.4409 22.6592 27.9872C22.3934 28.2565 22.0988 28.4942 21.8262 28.7577C21.9804 28.4492 22.1733 28.0481 22.2852 27.7274C22.5183 27.0585 22.6706 25.7273 22.5547 25.0272C22.4042 24.119 22.3097 24.0636 22.3721 23.117C21.9741 24.0484 22.123 24.3097 22.1807 25.2733C22.1961 25.5308 22.009 26.1329 21.8301 26.3045C21.3927 26.4253 21.2374 26.7755 20.8818 27.0594C20.4801 27.3801 20.0375 27.6228 19.6064 27.8924C19.8619 27.5379 19.9983 27.3673 20.3115 27.0741C19.9244 27.281 19.4925 27.5399 19.1543 27.829C19.0209 27.943 18.9042 28.1524 18.7529 28.244C17.8582 28.786 16.7321 29.1024 15.7461 29.3153C14.7702 29.5054 13.7767 29.5679 12.7871 29.5018C12.2082 29.457 11.9201 29.3637 11.3877 29.1336C11.3634 29.1232 11.2161 29.2681 11.1436 29.2713C10.7993 29.2848 10.4429 29.2104 10.1143 29.1014C8.98932 28.5792 7.85592 27.9781 6.81934 27.2713C6.50006 27.0536 6.23649 26.7258 5.91211 26.5184C5.51707 26.2658 5.09943 26.0819 4.71191 25.8221C6.34186 25.9961 6.84406 25.852 8.38867 25.7059C8.65531 25.8513 8.99419 26.101 9.26172 26.2713C9.66483 26.5243 10.0917 26.7301 10.5352 26.8836C11.4259 27.1801 12.358 27.3031 13.2881 27.2469C13.824 27.2119 14.3885 27.0906 14.9219 27.1561C16.2722 27.3218 17.3818 26.6248 18.5361 25.9696L18.5977 26.3377C19.0615 25.8774 19.1974 25.5721 19.5312 25.0243C19.6175 24.8832 20.0982 24.5102 20.2559 24.3719C20.6583 24.0191 21.0791 23.6679 21.4473 23.2665C22.7499 21.8542 22.6729 20.812 24.4531 19.9051C23.0524 19.1473 23.4708 18.7529 23.915 17.4803C24.0003 17.2358 24.0164 16.8013 24.0244 16.537C24.2699 16.6269 24.5438 16.7031 24.7949 16.7792C24.7438 16.7185 24.6935 16.6564 24.6445 16.5936C23.9833 15.7385 23.4568 14.2696 23.3232 13.1551C23.2955 12.9235 23.3267 12.5395 23.3447 12.3026C23.2574 12.1449 22.8972 11.7452 22.8701 11.6698C22.3398 10.1933 21.6402 9.39436 20.5234 8.37583C20.9186 8.12619 21.1053 8.08436 21.5596 8.01157Z" fill="currentColor" />
|
||||
<path d="M13.2959 0.0145017C13.6855 -0.0341185 14.0872 0.0500961 14.4736 0.111181C13.8585 0.431567 13.3201 0.605665 12.8232 1.1561C12.0471 2.01353 11.5814 3.25168 11.5352 4.44907C11.5052 5.22427 11.6469 5.91793 11.4385 6.68247C11.2315 7.44129 10.8076 7.94154 10.3057 8.48325C10.6081 7.69518 10.6964 7.38997 10.6455 6.54966C10.4311 7.15443 10.1771 7.61624 9.58203 7.84067C9.58927 7.65292 9.64694 7.15451 9.5293 7.03208C9.47094 7.04851 9.42578 7.08829 9.39258 7.14243C9.07071 7.6673 8.77523 8.1816 8.38867 8.65903C7.80412 9.37201 7.03225 9.85396 6.37988 10.4891C5.74587 11.1064 5.35895 11.8068 4.89355 12.5624C4.71537 12.8516 4.43748 13.1032 4.29004 13.4247C4.10871 13.8203 4.08348 14.2712 3.91113 14.6688C3.80804 14.9001 3.49506 15.1444 3.39453 15.4042C3.15043 16.036 3.45464 16.2161 3.64453 16.7372C3.80476 17.177 3.60152 17.5519 3.4248 17.9354C4.36334 18.7414 3.56357 19.8786 4.35254 20.7958C4.67545 21.171 4.94139 21.8262 5.19043 22.2889C5.8545 23.5229 6.6997 24.3334 7.72168 25.1893C7.22531 25.4123 6.20766 25.7546 5.68848 25.6415C5.34174 25.5658 5.21182 25.3643 5.0332 25.076C3.56246 24.839 4.32196 26.2221 4.62793 27.0877C4.84684 27.707 5.18924 28.3934 5.45508 28.9999C4.6134 28.262 4.01229 27.4344 3.22266 26.6493C2.8525 26.2813 2.50094 25.9014 2.15137 25.5106C1.57508 24.8793 0.990847 24.0243 0.517578 23.3045C0.826056 23.4914 1.09992 23.7157 1.43652 23.9071C2.29197 24.3935 3.08249 24.5746 4.01074 24.7479C3.24619 23.7981 2.80267 22.8445 2.35156 21.6961L2.68945 21.9061C2.46677 21.4221 2.16555 20.8811 1.98633 20.3875C2.0077 20.2265 2.05479 20.0062 2.08594 19.8417C1.99929 19.7086 1.6778 19.2366 1.62988 19.1161C1.46554 18.7027 1.44204 18.2316 1.27734 17.7811C1.02243 17.0837 0.597331 16.8395 0 16.5565C1.1208 16.3736 1.97425 15.3359 1.68848 14.0731C1.90163 13.9641 2.11556 13.8333 2.32324 13.7108C2.27375 13.4947 2.11213 12.9673 2.03711 12.7665C1.57371 11.5254 2.68136 11.0846 3.08008 10.2206C3.30636 9.73027 3.33952 8.8857 3.65234 8.26157C4.31995 6.9301 5.30235 5.83966 6.53809 5.11997C6.90658 4.90538 7.30002 4.76397 7.6875 4.6229C7.32469 4.92601 6.9828 5.25801 6.66602 5.61704C6.08448 6.28327 5.62382 7.0747 5.63574 8.03501C5.63897 8.28848 5.72113 8.48244 5.89453 8.64829C6.0146 8.76308 6.21168 8.84657 6.37305 8.80942C7.37298 8.57853 8.27774 6.819 8.61914 5.88853C8.7158 5.62493 8.81064 4.92348 8.84668 4.65024C8.97023 3.71302 9.29421 2.90205 9.82715 2.15708C10.6695 0.962598 11.9208 0.189561 13.2959 0.0145017Z" fill="currentColor" />
|
||||
<path d="M18.7891 24.3797C17.4476 25.9701 16.1829 26.3481 14.251 26.1913C14.4305 26.0513 15.6244 25.6847 15.9219 25.5545C16.3195 25.4012 16.7008 25.1992 17.0986 25.0477C17.1751 25.0186 17.2303 25.0676 17.2979 25.1073C17.5794 25.1068 18.4626 24.518 18.7646 24.3426L18.7891 24.3797Z" fill="currentColor" />
|
||||
<path d="M7.72949 23.8475C7.96131 23.9308 8.56087 24.2797 8.84961 24.4081C10.0306 24.9328 11.0876 25.2232 12.3496 25.4217C12.112 25.4973 11.8393 25.5581 11.5957 25.618C11.4414 25.6438 11.2806 25.6966 11.1289 25.7411L11.4629 26.0614C11.2238 26.0068 10.9863 25.9443 10.751 25.8729C9.77113 25.5706 8.25097 24.8598 7.72949 23.8475Z" fill="currentColor" />
|
||||
<path d="M21.8594 19.743C21.893 19.8153 21.912 19.9056 21.9229 19.9852C22.0479 20.9048 21.8891 21.3995 21.3926 22.1375C20.9396 22.8108 20.3395 23.3432 19.5713 23.4774C19.7429 23.2439 20.1167 22.9587 20.332 22.7118C20.4821 22.5395 20.9233 21.8606 21.043 21.8124C21.1285 21.8696 21.0927 21.8635 21.1826 21.8661C21.5855 21.488 21.7354 20.3033 21.8594 19.743Z" fill="currentColor" />
|
||||
<path d="M5.36621 19.0877C5.51104 19.2022 5.6735 19.8928 5.75391 20.12C6.09929 21.095 6.56845 22.149 7.04395 23.0526C6.75349 22.8299 6.55277 22.627 6.30566 22.3504C5.67096 21.6179 5.17804 20.7781 4.89551 19.8133L5.54395 20.7196C5.44402 20.1541 5.35212 19.6676 5.36621 19.0877Z" fill="currentColor" />
|
||||
<path d="M22.9082 17.16C23.0604 17.5837 22.6447 19.3295 22.4922 19.8016L22.3164 19.5038C22.0584 19.0772 22.0018 18.5971 21.9502 18.0995C22.1965 17.7131 22.552 17.4175 22.9082 17.16Z" fill="currentColor" />
|
||||
<path d="M6.00684 12.578C6.00296 12.805 5.31622 13.975 5.22461 14.5135C5.31314 14.5971 5.33614 14.4785 5.4375 14.5584C5.41166 14.9265 5.28705 15.2854 5.22949 15.6434C5.17881 15.959 5.1462 16.3039 5.10742 16.6239L5.0752 16.6327C4.69292 15.7616 4.55847 15.2567 4.86914 14.326C5.1232 13.5653 5.45975 13.1109 5.99219 12.5604L6.00684 12.578Z" fill="currentColor" />
|
||||
<path d="M21.5439 11.4042C21.6503 11.489 21.9034 11.9589 21.9688 12.0946C22.546 13.2924 22.7291 14.5606 22.8613 15.8856C22.7312 15.7188 22.5819 15.4919 22.458 15.3143C21.8972 14.4371 21.7274 14.1368 21.5049 13.1209L21.9717 13.6981C21.8722 13.0883 21.5801 11.9455 21.5439 11.4042Z" fill="currentColor" />
|
||||
<path d="M17.8711 7.92075C18.6129 8.10648 20.0016 8.99949 20.5645 9.59751C20.8675 9.91944 21.1681 10.4622 21.1455 10.9325C21.1381 11.0849 21.1161 11.3366 21.0088 11.45C20.9365 11.2205 20.9009 11.0934 20.793 10.8836C20.2867 9.93226 19.8093 9.48903 18.9082 9.08481C19.0345 9.37833 19.1624 9.59074 19.332 9.85435C18.7228 9.39008 18.1982 8.64091 17.8711 7.92075Z" fill="currentColor" />
|
||||
<path d="M17.2783 3.93052C18.5125 4.26272 19.821 4.81717 20.8984 5.56138C21.1791 5.76355 21.4329 6.03586 21.7197 6.22544C22.1546 6.51282 22.6053 6.768 23.0029 7.11802C23.2042 7.29526 23.2718 7.40794 23.3818 7.65415C22.6504 7.5374 22.2494 7.50944 21.5225 7.51353C21.0755 7.54589 20.6621 7.63093 20.2207 7.67856C19.6125 7.74422 18.8629 7.29815 18.3301 7.00376C18.1332 6.89498 17.9248 6.54901 17.6396 6.42368C17.3066 6.27732 17.0057 6.33596 16.7031 6.25474C16.3134 6.15006 15.8984 6.01348 15.5059 5.89927C15.7611 5.61047 16.0492 5.33701 16.3057 5.05063C16.6336 4.68454 16.9574 4.30436 17.2783 3.93052Z" fill="currentColor" />
|
||||
<path d="M16.374 0.647314C16.4299 0.706385 16.4011 0.835973 16.3887 0.914892C16.0329 3.18667 14.6962 5.14888 12.9736 6.46665C13.1106 6.04216 13.4005 5.41964 13.582 5.01157C14.068 4.01794 14.6208 3.06473 15.2363 2.16001C14.5785 2.36517 14.3471 2.47613 13.7598 2.82407C13.7521 2.74152 13.7382 2.5413 13.7432 2.46958C13.7698 2.09189 14.6524 1.81555 14.9512 1.68247C15.1253 1.60532 15.2936 1.51359 15.4551 1.40903C15.7842 1.19636 16.0792 0.913941 16.374 0.647314Z" fill="currentColor" />
|
||||
</svg>
|
||||
<svg width="114"
|
||||
height="20"
|
||||
viewBox="0 0 114 20"
|
||||
class="text-header-foreground"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M48.4923 0.00654069C48.7964 0.29344 48.6961 6.65684 48.6961 7.49071C50.2534 6.30339 51.895 5.46624 53.9209 5.76604C58.4095 6.42994 60.7139 11.94 58.6683 15.8045C58.0278 17.0147 57.326 17.6839 56.2404 18.4738C53.6721 20.1022 51.1111 19.4924 48.8025 17.8218C48.8034 18.355 48.7475 18.7103 48.6785 19.2344C47.7436 19.2098 46.7779 19.236 45.8406 19.2489C45.7126 13.2211 45.9041 7.05515 45.8189 1.00077C46.6931 0.744994 47.6371 0.345046 48.4923 0.00654069ZM52.9146 16.6756C57.8541 15.5749 57.3784 7.91769 51.8855 8.52241C50.6155 9.01614 49.5609 9.64953 48.9885 10.9468C48.1112 12.9353 48.8851 15.5905 50.9929 16.3774C51.6077 16.6019 52.2607 16.7032 52.9146 16.6756Z" fill="#17191C" />
|
||||
<path d="M76.8226 5.75962C80.0489 5.31401 83.0576 7.09296 84.0219 10.1995C84.4163 11.4694 84.3748 12.4398 84.3596 13.7414C80.941 13.7215 77.5221 13.7238 74.1037 13.7486C75.4274 17.3548 78.1492 17.4433 81.2002 15.9242C81.4652 15.7563 81.4957 15.712 81.8074 15.6479C82.5075 15.8554 82.7897 16.6307 83.1696 17.2987C80.9074 19.7749 76.5226 20.155 73.7851 18.2327C72.3282 17.1932 71.3488 15.6135 71.0655 13.8467C70.4268 9.84462 72.7816 6.42127 76.8226 5.75962ZM74.1074 11.3215C75.4407 11.3582 76.6649 11.3121 77.997 11.2656C78.971 11.2513 80.2058 11.2664 81.1547 11.1683C80.5244 9.30522 79.5775 8.1951 77.4552 8.32329C75.4301 8.7046 74.7647 9.38038 74.1074 11.3215Z" fill="#17191C" />
|
||||
<path d="M91.1896 5.66801C93.7694 5.40445 96.8706 6.64052 97.2089 9.41204C97.5849 12.4901 97.3973 16.1187 97.3895 19.2428C96.5243 19.2313 95.3317 19.3387 94.5248 19.2174C94.3411 18.9973 94.4208 18.745 94.4224 18.3688L94.3254 18.2924C91.8248 19.5715 88.6988 20.3271 86.4134 17.8693C86.0444 17.4725 85.8724 17.0193 85.6662 16.5256C84.6361 11.2946 90.6401 10.6411 94.3569 11.1027C94.0411 6.83035 89.374 8.12642 87.0227 10.0053C86.6264 9.29286 86.2465 8.6609 85.8157 7.96792C87.716 6.51765 88.8034 5.96167 91.1896 5.66801ZM90.8283 17.0355C92.3019 17.0729 93.6162 16.5356 94.4704 15.303C94.4417 14.6145 94.4034 13.9156 94.4048 13.2271C93.7608 13.2624 93.2365 13.2644 92.5917 13.2562C91.3136 13.3097 89.9426 13.3043 88.999 14.3031C88.3494 14.9909 88.2427 15.884 89.0799 16.4609C89.634 16.8426 90.1761 16.9583 90.8283 17.0355Z" fill="#17191C" />
|
||||
<path d="M35.9596 5.7504C36.3435 5.71272 36.7295 5.69981 37.1153 5.71189C39.9786 5.77844 42.3797 7.14864 43.2582 10.0054C43.6659 11.3309 43.6129 12.3284 43.5512 13.7066C40.4226 13.8522 36.6345 13.7555 33.4577 13.7516C33.5693 14.1477 33.7221 14.531 33.9134 14.8955C34.4126 15.8412 35.2862 16.5338 36.3212 16.8043C37.8863 17.1992 39.2701 16.6544 40.5749 15.8672C41.1823 15.4337 41.3855 15.4433 41.8405 16.0978C42.1137 16.491 42.3651 16.952 42.6164 17.3634C35.7824 23.0221 27.1676 16.343 31.5653 8.49222C32.4649 6.88612 34.2486 6.11266 35.9596 5.7504ZM33.3703 11.3667C34.6664 11.3522 36.0865 11.266 37.3478 11.2769C37.9324 11.2986 40.0022 11.4921 40.3704 11.1532C40.451 9.08425 38.2408 8.27536 36.4967 8.31919C34.5601 8.8467 34.0745 9.55463 33.3703 11.3667Z" fill="#17191C" />
|
||||
<path d="M103.265 0C103.387 0.0110582 103.303 -0.00183904 103.508 0.080893C103.587 3.92179 103.554 7.87449 103.558 11.7215C105.153 10.0272 107.054 7.80241 108.616 6.04517C110.014 6.05336 111.411 6.04394 112.808 6.01691C111.063 7.88227 109.269 9.62866 107.448 11.418C109.046 13.5492 110.668 15.6613 112.316 17.7536C112.475 18.0143 113.157 18.8635 113.376 19.1514C112.16 19.1484 110.945 19.1842 109.731 19.2593C108.818 18.3108 106.229 14.8201 105.276 13.6053C104.712 14.1437 104.18 14.5719 103.574 15.0636C103.541 16.4403 103.57 17.9252 103.574 19.3101C102.637 19.2643 101.552 19.2962 100.605 19.3017C100.52 13.205 100.584 6.99843 100.568 0.887323C101.387 0.684793 102.449 0.282804 103.265 0Z" fill="#17191C" />
|
||||
<path d="M0.00307161 1.11183C4.17121 1.21586 8.87403 1.10876 13.0846 1.12063C12.6459 2.06345 12.2986 2.99623 11.9271 3.96506C9.76893 3.77215 5.50987 3.89769 3.17515 3.90424L3.18252 8.69696C4.01455 8.68774 10.1181 8.60624 10.4412 8.79976L10.4228 9.13581C10.2917 9.92279 10.1304 10.7028 10.0007 11.4984C7.72377 11.4572 5.44639 11.4472 3.16921 11.4685L3.18416 19.2527L0 19.2473L0.00307161 1.11183Z" fill="#17191C" />
|
||||
<path d="M64.3923 5.33318L64.4685 5.34813C64.755 5.64875 64.6461 7.54606 64.6377 8.07972C66.4217 6.45109 67.4104 6.24897 69.6858 5.59592C69.6653 6.56802 69.6864 7.60545 69.6888 8.58308C67.5241 9.20582 66.2084 9.53081 64.8248 11.3741L64.8166 14.1802L64.8214 19.1605C63.8089 19.1504 62.9251 19.1554 61.9075 19.2008C61.766 15.045 61.8516 10.4063 61.8434 6.22726C62.6834 5.90248 63.5335 5.60451 64.3923 5.33318Z" fill="#17191C" />
|
||||
<path d="M23.7341 5.32638L23.8844 5.42939C23.9804 6.15862 23.9456 7.41802 23.9468 8.1921C25.9191 6.57125 26.6393 6.3462 29.0582 5.63192C29.0549 6.62081 29.0303 7.6308 29.1221 8.61355C26.9719 9.12694 25.7475 9.6518 24.2421 11.2485L24.2333 14.1801L24.2397 19.255L21.2468 19.2368C21.1901 14.9718 21.257 10.5305 21.2636 6.25548C22.1159 5.90387 22.8621 5.62741 23.7341 5.32638Z" fill="#17191C" />
|
||||
<path d="M17.4168 5.56308L17.5198 5.59154C17.6766 5.90854 17.6146 18.0468 17.6146 19.2519L14.7405 19.2515C14.7274 19.2425 14.711 19.2372 14.7011 19.2247C14.3929 18.8321 14.5404 7.37457 14.5377 6.2108C15.5293 5.96444 16.408 5.7525 17.4168 5.56308Z" fill="#17191C" />
|
||||
<path d="M15.4375 0.376667C16.1305 0.156321 16.8886 0.33039 17.4159 0.830877C17.9432 1.33157 18.1566 2.07943 17.9727 2.78306C17.7886 3.48648 17.2365 4.03428 16.5317 4.21265C15.4858 4.47722 14.4193 3.86267 14.1234 2.82545C13.8275 1.78823 14.4095 0.703499 15.4375 0.376667Z" fill="#17191C" />
|
||||
<path d="M48.4923 0.00654069C48.7964 0.29344 48.6961 6.65684 48.6961 7.49071C50.2534 6.30339 51.895 5.46624 53.9209 5.76604C58.4095 6.42994 60.7139 11.94 58.6683 15.8045C58.0278 17.0147 57.326 17.6839 56.2404 18.4738C53.6721 20.1022 51.1111 19.4924 48.8025 17.8218C48.8034 18.355 48.7475 18.7103 48.6785 19.2344C47.7436 19.2098 46.7779 19.236 45.8406 19.2489C45.7126 13.2211 45.9041 7.05515 45.8189 1.00077C46.6931 0.744994 47.6371 0.345046 48.4923 0.00654069ZM52.9146 16.6756C57.8541 15.5749 57.3784 7.91769 51.8855 8.52241C50.6155 9.01614 49.5609 9.64953 48.9885 10.9468C48.1112 12.9353 48.8851 15.5905 50.9929 16.3774C51.6077 16.6019 52.2607 16.7032 52.9146 16.6756Z" fill="currentColor" />
|
||||
<path d="M76.8226 5.75962C80.0489 5.31401 83.0576 7.09296 84.0219 10.1995C84.4163 11.4694 84.3748 12.4398 84.3596 13.7414C80.941 13.7215 77.5221 13.7238 74.1037 13.7486C75.4274 17.3548 78.1492 17.4433 81.2002 15.9242C81.4652 15.7563 81.4957 15.712 81.8074 15.6479C82.5075 15.8554 82.7897 16.6307 83.1696 17.2987C80.9074 19.7749 76.5226 20.155 73.7851 18.2327C72.3282 17.1932 71.3488 15.6135 71.0655 13.8467C70.4268 9.84462 72.7816 6.42127 76.8226 5.75962ZM74.1074 11.3215C75.4407 11.3582 76.6649 11.3121 77.997 11.2656C78.971 11.2513 80.2058 11.2664 81.1547 11.1683C80.5244 9.30522 79.5775 8.1951 77.4552 8.32329C75.4301 8.7046 74.7647 9.38038 74.1074 11.3215Z" fill="currentColor" />
|
||||
<path d="M91.1896 5.66801C93.7694 5.40445 96.8706 6.64052 97.2089 9.41204C97.5849 12.4901 97.3973 16.1187 97.3895 19.2428C96.5243 19.2313 95.3317 19.3387 94.5248 19.2174C94.3411 18.9973 94.4208 18.745 94.4224 18.3688L94.3254 18.2924C91.8248 19.5715 88.6988 20.3271 86.4134 17.8693C86.0444 17.4725 85.8724 17.0193 85.6662 16.5256C84.6361 11.2946 90.6401 10.6411 94.3569 11.1027C94.0411 6.83035 89.374 8.12642 87.0227 10.0053C86.6264 9.29286 86.2465 8.6609 85.8157 7.96792C87.716 6.51765 88.8034 5.96167 91.1896 5.66801ZM90.8283 17.0355C92.3019 17.0729 93.6162 16.5356 94.4704 15.303C94.4417 14.6145 94.4034 13.9156 94.4048 13.2271C93.7608 13.2624 93.2365 13.2644 92.5917 13.2562C91.3136 13.3097 89.9426 13.3043 88.999 14.3031C88.3494 14.9909 88.2427 15.884 89.0799 16.4609C89.634 16.8426 90.1761 16.9583 90.8283 17.0355Z" fill="currentColor" />
|
||||
<path d="M35.9596 5.7504C36.3435 5.71272 36.7295 5.69981 37.1153 5.71189C39.9786 5.77844 42.3797 7.14864 43.2582 10.0054C43.6659 11.3309 43.6129 12.3284 43.5512 13.7066C40.4226 13.8522 36.6345 13.7555 33.4577 13.7516C33.5693 14.1477 33.7221 14.531 33.9134 14.8955C34.4126 15.8412 35.2862 16.5338 36.3212 16.8043C37.8863 17.1992 39.2701 16.6544 40.5749 15.8672C41.1823 15.4337 41.3855 15.4433 41.8405 16.0978C42.1137 16.491 42.3651 16.952 42.6164 17.3634C35.7824 23.0221 27.1676 16.343 31.5653 8.49222C32.4649 6.88612 34.2486 6.11266 35.9596 5.7504ZM33.3703 11.3667C34.6664 11.3522 36.0865 11.266 37.3478 11.2769C37.9324 11.2986 40.0022 11.4921 40.3704 11.1532C40.451 9.08425 38.2408 8.27536 36.4967 8.31919C34.5601 8.8467 34.0745 9.55463 33.3703 11.3667Z" fill="currentColor" />
|
||||
<path d="M103.265 0C103.387 0.0110582 103.303 -0.00183904 103.508 0.080893C103.587 3.92179 103.554 7.87449 103.558 11.7215C105.153 10.0272 107.054 7.80241 108.616 6.04517C110.014 6.05336 111.411 6.04394 112.808 6.01691C111.063 7.88227 109.269 9.62866 107.448 11.418C109.046 13.5492 110.668 15.6613 112.316 17.7536C112.475 18.0143 113.157 18.8635 113.376 19.1514C112.16 19.1484 110.945 19.1842 109.731 19.2593C108.818 18.3108 106.229 14.8201 105.276 13.6053C104.712 14.1437 104.18 14.5719 103.574 15.0636C103.541 16.4403 103.57 17.9252 103.574 19.3101C102.637 19.2643 101.552 19.2962 100.605 19.3017C100.52 13.205 100.584 6.99843 100.568 0.887323C101.387 0.684793 102.449 0.282804 103.265 0Z" fill="currentColor" />
|
||||
<path d="M0.00307161 1.11183C4.17121 1.21586 8.87403 1.10876 13.0846 1.12063C12.6459 2.06345 12.2986 2.99623 11.9271 3.96506C9.76893 3.77215 5.50987 3.89769 3.17515 3.90424L3.18252 8.69696C4.01455 8.68774 10.1181 8.60624 10.4412 8.79976L10.4228 9.13581C10.2917 9.92279 10.1304 10.7028 10.0007 11.4984C7.72377 11.4572 5.44639 11.4472 3.16921 11.4685L3.18416 19.2527L0 19.2473L0.00307161 1.11183Z" fill="currentColor" />
|
||||
<path d="M64.3923 5.33318L64.4685 5.34813C64.755 5.64875 64.6461 7.54606 64.6377 8.07972C66.4217 6.45109 67.4104 6.24897 69.6858 5.59592C69.6653 6.56802 69.6864 7.60545 69.6888 8.58308C67.5241 9.20582 66.2084 9.53081 64.8248 11.3741L64.8166 14.1802L64.8214 19.1605C63.8089 19.1504 62.9251 19.1554 61.9075 19.2008C61.766 15.045 61.8516 10.4063 61.8434 6.22726C62.6834 5.90248 63.5335 5.60451 64.3923 5.33318Z" fill="currentColor" />
|
||||
<path d="M23.7341 5.32638L23.8844 5.42939C23.9804 6.15862 23.9456 7.41802 23.9468 8.1921C25.9191 6.57125 26.6393 6.3462 29.0582 5.63192C29.0549 6.62081 29.0303 7.6308 29.1221 8.61355C26.9719 9.12694 25.7475 9.6518 24.2421 11.2485L24.2333 14.1801L24.2397 19.255L21.2468 19.2368C21.1901 14.9718 21.257 10.5305 21.2636 6.25548C22.1159 5.90387 22.8621 5.62741 23.7341 5.32638Z" fill="currentColor" />
|
||||
<path d="M17.4168 5.56308L17.5198 5.59154C17.6766 5.90854 17.6146 18.0468 17.6146 19.2519L14.7405 19.2515C14.7274 19.2425 14.711 19.2372 14.7011 19.2247C14.3929 18.8321 14.5404 7.37457 14.5377 6.2108C15.5293 5.96444 16.408 5.7525 17.4168 5.56308Z" fill="currentColor" />
|
||||
<path d="M15.4375 0.376667C16.1305 0.156321 16.8886 0.33039 17.4159 0.830877C17.9432 1.33157 18.1566 2.07943 17.9727 2.78306C17.7886 3.48648 17.2365 4.03428 16.5317 4.21265C15.4858 4.47722 14.4193 3.86267 14.1234 2.82545C13.8275 1.78823 14.4095 0.703499 15.4375 0.376667Z" fill="currentColor" />
|
||||
</svg>
|
||||
</a>
|
||||
<nav class="flex items-center gap-2">
|
||||
<nav class="flex shrink-0 items-center justify-center gap-6"
|
||||
aria-label="Primary navigation">
|
||||
{% if user %}
|
||||
<a href="/dashboard" class="btn-link">Dashboard</a>
|
||||
<a href="/settings" class="btn-link">Settings</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
<div class="flex items-center justify-self-end">
|
||||
{% if user %}
|
||||
<a href="/dashboard" class="btn btn-sm btn-borderless">Dashboard</a>
|
||||
<a href="/settings" class="btn btn-sm btn-borderless">Settings</a>
|
||||
<a href="/auth/logout" class="btn btn-sm btn-secondary">Logout</a>
|
||||
{% else %}
|
||||
<a href="/auth/login/forgejo" class="btn btn-sm btn-primary">
|
||||
|
|
@ -67,14 +75,40 @@
|
|||
height="16"
|
||||
class="size-4 shrink-0 brightness-0 invert"
|
||||
aria-hidden="true" />
|
||||
<span>Sign in with Forgejo</span>
|
||||
<span>Sign In with Forgejo</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<main class="{% block main_class %}px-4 py-8 mx-auto max-w-7xl sm:px-8{% endblock %}">
|
||||
<main id="main"
|
||||
class="{% block main_class %}flex-1 w-full px-4 py-8 mx-auto max-w-7xl sm:px-8{% endblock %}">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
{% if debug %}
|
||||
<!-- Live reload for CSS changes (development only; gated on the debug flag) -->
|
||||
<script>
|
||||
let lastCssMtime = null;
|
||||
|
||||
async function checkForCssChanges() {
|
||||
try {
|
||||
const response = await fetch('/api/dev/css-mtime');
|
||||
const data = await response.json();
|
||||
|
||||
if (lastCssMtime === null) {
|
||||
lastCssMtime = data.mtime;
|
||||
} else if (data.mtime > lastCssMtime) {
|
||||
lastCssMtime = data.mtime;
|
||||
location.reload();
|
||||
}
|
||||
} catch (err) {
|
||||
// Endpoint unavailable — stop polling rather than spamming errors.
|
||||
}
|
||||
}
|
||||
|
||||
// Check every second.
|
||||
setInterval(checkForCssChanges, 1000);
|
||||
</script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,70 +1,132 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Dashboard — Firebreak{% endblock %}
|
||||
{% block content %}
|
||||
<div class="flex flex-col gap-6">
|
||||
<section class="flex flex-col justify-between gap-4 pb-6 border-b border-border sm:flex-row sm:items-end">
|
||||
<div>
|
||||
<h1 class="mt-2 text-3xl font-semibold leading-10 tracking-normal">Welcome,</h1>
|
||||
<p class=" text-2xl text-muted-foreground">{{ user.display_name or user.email }}.</p>
|
||||
</div>
|
||||
{% if pat_registered %}
|
||||
<a href="/links/create" class="btn btn-primary w-fit">Create share link</a>
|
||||
{% else %}
|
||||
<span class="btn btn-primary w-fit opacity-50 pointer-events-none"
|
||||
aria-disabled="true">Create share link</span>
|
||||
{% endif %}
|
||||
<div class="flex flex-col gap-6 sm:gap-8">
|
||||
<section>
|
||||
<h1 class="text-2xl font-semibold leading-tight text-foreground sm:text-3xl">
|
||||
Welcome, {{ user.display_name or user.email }}.
|
||||
</h1>
|
||||
<p class="mt-2 text-sm leading-7 text-muted-foreground sm:text-base">
|
||||
Private repository snapshots and access boundaries.
|
||||
</p>
|
||||
<div class="firebreak-rule mt-6" aria-hidden="true"></div>
|
||||
</section>
|
||||
<section class="grid gap-4 md:grid-cols-3">
|
||||
<div class="p-4 card">
|
||||
<p class="section-header-subtle">Active links</p>
|
||||
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
|
||||
<p class="mt-2 text-xs text-muted-foreground">No repository snapshots published yet.</p>
|
||||
</div>
|
||||
<div class="p-4 card">
|
||||
<p class="section-header-subtle">Default expiry</p>
|
||||
<p class="mt-3 text-2xl font-semibold text-foreground">7 days</p>
|
||||
<p class="mt-2 text-xs text-muted-foreground">Applied to newly created links.</p>
|
||||
</div>
|
||||
<div class="p-4 card">
|
||||
<p class="section-header-subtle">Audit events</p>
|
||||
<p class="mt-3 text-2xl font-semibold text-foreground">0</p>
|
||||
<p class="mt-2 text-xs text-muted-foreground">Viewer activity will appear here.</p>
|
||||
</div>
|
||||
</section>
|
||||
{% if not pat_registered %}
|
||||
<div class="rounded-lg border border-warning-muted bg-warning-muted/40 px-5 py-4">
|
||||
{% if not user.has_pat %}
|
||||
<div class="notice-rail">
|
||||
<p class="text-sm font-semibold text-warning-foreground">Access token required</p>
|
||||
<p class="mt-1 text-sm text-muted-foreground">
|
||||
Register a Forgejo access token to create share links.
|
||||
<p class="mt-1 text-sm leading-6 text-muted-foreground">
|
||||
Register a Forgejo access token to fetch repositories and create share links.
|
||||
</p>
|
||||
<a href="/settings" class="btn btn-sm btn-primary mt-3 w-fit">Go to Settings</a>
|
||||
<a href="/settings" class="mt-3 w-fit btn-link">Go to Settings</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="space-y-3">
|
||||
<div>
|
||||
<h2 class="text-base font-semibold">Share links</h2>
|
||||
<p class="mt-2 text-sm text-muted-foreground">Repository snapshots published from this account.</p>
|
||||
{% if user.has_pat %}
|
||||
{# min-h reserves the swapped-in table's space so content below doesn't jump (CLS) #}
|
||||
<div id="repositories-region" class="min-h-64">
|
||||
<section class="table-panel"
|
||||
hx-get="/dashboard/repositories"
|
||||
hx-trigger="load"
|
||||
hx-swap="outerHTML">
|
||||
<div class="flex flex-col gap-1 border-b border-border px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<h2 class="flex items-center gap-2 text-base font-semibold text-foreground">
|
||||
<svg class="status-icon text-muted-foreground"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />
|
||||
</svg>
|
||||
Repositories
|
||||
</h2>
|
||||
<p class="text-sm leading-6 text-muted-foreground">
|
||||
Create a share link to grant temporary read-only access.
|
||||
</p>
|
||||
</div>
|
||||
{# Skeleton rows #}
|
||||
<p class="sr-only" role="status">Loading repositories…</p>
|
||||
<div class="divide-y divide-border-subtle" aria-hidden="true">
|
||||
<div class="flex items-center gap-6 px-4 py-4 sm:px-5">
|
||||
<span class="skeleton-bar w-44"></span>
|
||||
<span class="skeleton-bar w-14"></span>
|
||||
<span class="skeleton-bar hidden w-12 sm:inline-block"></span>
|
||||
<span class="skeleton-bar ml-auto w-20"></span>
|
||||
</div>
|
||||
<div class="flex items-center gap-6 px-4 py-4 sm:px-5">
|
||||
<span class="skeleton-bar w-36"></span>
|
||||
<span class="skeleton-bar w-14"></span>
|
||||
<span class="skeleton-bar hidden w-12 sm:inline-block"></span>
|
||||
<span class="skeleton-bar ml-auto w-20"></span>
|
||||
</div>
|
||||
<div class="flex items-center gap-6 px-4 py-4 sm:px-5">
|
||||
<span class="skeleton-bar w-52"></span>
|
||||
<span class="skeleton-bar w-14"></span>
|
||||
<span class="skeleton-bar hidden w-12 sm:inline-block"></span>
|
||||
<span class="skeleton-bar ml-auto w-20"></span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<section class="card">
|
||||
<div class="overflow-x-auto">
|
||||
<table class="w-full min-w-[720px] text-left text-sm">
|
||||
<thead class="bg-muted text-xs font-semibold uppercase tracking-[0.05em] text-muted-foreground">
|
||||
<tr>
|
||||
<th class="px-4 py-3">Repository</th>
|
||||
<th class="px-4 py-3">Commit</th>
|
||||
<th class="px-4 py-3">Status</th>
|
||||
<th class="px-4 py-3">Views</th>
|
||||
<th class="px-4 py-3">Expires</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-border-subtle">
|
||||
<tr class="text-muted-foreground text-center">
|
||||
<td class="px-4 py-5" colspan="5">You have not created any share links yet.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{% endif %}
|
||||
<section class="table-panel">
|
||||
<div class="flex flex-col gap-1 border-b border-border px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<h2 class="flex items-center gap-2 text-base font-semibold text-foreground">
|
||||
<svg class="status-icon {% if exposure.active %}text-ember{% else %}text-muted-foreground{% endif %}"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
{% if exposure.active %}role="img" aria-label="Live"{% else %}aria-hidden="true"{% endif %}>
|
||||
<path d="M9 17H7A5 5 0 0 1 7 7h2m6 0h2a5 5 0 1 1 0 10h-2m-7-5h8" />
|
||||
</svg>
|
||||
Share links
|
||||
</h2>
|
||||
<p class="text-sm leading-6 text-muted-foreground">
|
||||
Repository snapshots published from this account.
|
||||
</p>
|
||||
</div>
|
||||
{# Empty state — share-link data isn't wired yet; the populated table
|
||||
(thead + rows) belongs here once links exist. #}
|
||||
<div class="px-5 py-10 text-center">
|
||||
<p class="status-line text-muted-foreground">Status · Contained — 0 exposed</p>
|
||||
<p class="mt-3 text-sm font-medium text-foreground">No active share links</p>
|
||||
<p class="mt-1 text-sm leading-6 text-muted-foreground">
|
||||
Create one from a repository above to grant temporary, read-only access.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<script>
|
||||
function localizeDates(root) {
|
||||
const scope = root || document;
|
||||
const absolute = new Intl.DateTimeFormat(undefined, {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
});
|
||||
scope.querySelectorAll("time[data-local-date]").forEach((time) => {
|
||||
const date = new Date(time.getAttribute("datetime"));
|
||||
if (Number.isNaN(date.valueOf())) return;
|
||||
time.textContent = absolute.format(date);
|
||||
});
|
||||
// Operational consoles read recency: "3d ago" / "in 3d", absolute on hover.
|
||||
const relative = new Intl.RelativeTimeFormat(undefined, { numeric: "auto", style: "narrow" });
|
||||
scope.querySelectorAll("time[data-relative-date]").forEach((time) => {
|
||||
const date = new Date(time.getAttribute("datetime"));
|
||||
if (Number.isNaN(date.valueOf())) return;
|
||||
const seconds = (date - Date.now()) / 1000;
|
||||
const units = [["day", 86400], ["hour", 3600], ["minute", 60]];
|
||||
const [unit, size] = units.find(([, s]) => Math.abs(seconds) >= s) || ["minute", 60];
|
||||
time.textContent = relative.format(Math.trunc(seconds / size), unit);
|
||||
time.title = absolute.format(date);
|
||||
});
|
||||
}
|
||||
localizeDates(document);
|
||||
// Repositories load lazily via htmx, so re-localize their dates after swap.
|
||||
document.body.addEventListener("htmx:afterSwap", (event) => localizeDates(event.target));
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,126 +1,34 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ status_code }} — Firebreak{% endblock %}
|
||||
{% block body_class %}landing-page{% endblock %}
|
||||
{% block main_class %}{% endblock %}
|
||||
{% block main_class %}flex-1 flex flex-col{% endblock %}
|
||||
{% block content %}
|
||||
{% if status_code == 401 %}
|
||||
<style>
|
||||
@keyframes creep-in {
|
||||
from { transform: translateX(100%); opacity: 0; }
|
||||
to { transform: translateX(0); opacity: 1; }
|
||||
}
|
||||
@keyframes trot {
|
||||
0%, 100% { transform: translateY(0) rotate(0deg); }
|
||||
25% { transform: translateY(-3px) rotate(-0.6deg); }
|
||||
75% { transform: translateY(-3px) rotate(0.6deg); }
|
||||
}
|
||||
@keyframes look-up {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(3deg); }
|
||||
}
|
||||
@keyframes laser-pulse {
|
||||
0%, 100% { opacity: 0.8; box-shadow: 0 0 6px 2px #ff0000, 0 0 16px 4px #ff000066; }
|
||||
50% { opacity: 1; box-shadow: 0 0 10px 4px #ff0000, 0 0 30px 8px #ff000088; }
|
||||
}
|
||||
@keyframes btn-hit {
|
||||
0% { filter: brightness(1); }
|
||||
20% { filter: brightness(3) drop-shadow(0 0 12px #ff0000); }
|
||||
100% { filter: brightness(1); }
|
||||
}
|
||||
.guard-dog-wrap {
|
||||
animation: creep-in 6s ease-out both;
|
||||
animation-delay: 1.5s;
|
||||
}
|
||||
.guard-dog-trot {
|
||||
animation: trot 0.4s ease-in-out 15;
|
||||
animation-delay: 1.5s;
|
||||
}
|
||||
.guard-dog-look {
|
||||
animation: look-up 0.8s ease-out both;
|
||||
animation-delay: 7.5s;
|
||||
transform-origin: bottom center;
|
||||
}
|
||||
.laser-eye {
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: #ff0000;
|
||||
animation: laser-pulse 2s ease-in-out infinite;
|
||||
animation-delay: 7.5s;
|
||||
opacity: 0;
|
||||
animation-fill-mode: both;
|
||||
}
|
||||
.laser-eye-left { inset-block-start: 40px; inset-inline-start: 81px; }
|
||||
.laser-eye-right { inset-block-start: 39px; inset-inline-start: 100px; }
|
||||
.laser-beam {
|
||||
position: fixed;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, #ff0000, #ff000000);
|
||||
transform-origin: left center;
|
||||
pointer-events: none;
|
||||
z-index: 100;
|
||||
opacity: 0;
|
||||
box-shadow: 0 0 8px 2px #ff0000aa, 0 0 20px 4px #ff000044;
|
||||
}
|
||||
.laser-beam.fire { opacity: 1; transition: opacity 0.05s; }
|
||||
.laser-beam.fade { opacity: 0; transition: opacity 0.4s; }
|
||||
@keyframes rattle {
|
||||
0%, 100% { transform: translate(0, 0); }
|
||||
10% { transform: translate(-1px, 1px); }
|
||||
20% { transform: translate(1px, -1px); }
|
||||
30% { transform: translate(-2px, 0px); }
|
||||
40% { transform: translate(2px, 1px); }
|
||||
50% { transform: translate(-1px, -2px); }
|
||||
60% { transform: translate(2px, 2px); }
|
||||
70% { transform: translate(-3px, 1px); }
|
||||
80% { transform: translate(3px, -1px); }
|
||||
90% { transform: translate(-2px, 2px); }
|
||||
}
|
||||
.btn-zapped {
|
||||
background: #c62030 !important;
|
||||
color: #f7f2e8 !important;
|
||||
box-shadow: 0 0 12px 4px rgba(198, 32, 48, 0.5), 0 0 30px 8px rgba(198, 32, 48, 0.25);
|
||||
animation: rattle 0.15s linear infinite;
|
||||
}
|
||||
#go-home-btn:hover {
|
||||
background: #c62030;
|
||||
color: #f7f2e8;
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
<section class="relative flex min-h-dvh items-center justify-center overflow-hidden px-6 py-20">
|
||||
<div class="img-wrapper-[800px] absolute inset-bs-8 opacity-50">
|
||||
<section class="relative flex flex-1 items-center justify-center px-6 py-20 overflow-hidden">
|
||||
<div class="error-backdrop-logo">
|
||||
<img src="/static/img/firebreak-logo-red.svg"
|
||||
alt="Firebreak"
|
||||
width="240"
|
||||
height="268" />
|
||||
</div>
|
||||
<div class="relative z-10 w-full max-w-md text-center">
|
||||
{% if status_code == 401 %}
|
||||
<p class="text-8xl font-bold text-[#f7f2e8]/20 sm:text-9xl">{{ status_code }}</p>
|
||||
<h1 class="mt-1 text-xl font-semibold text-[#f7f2e8]">{{ title }}</h1>
|
||||
{% else %}
|
||||
<p class="text-8xl font-bold text-[#f7f2e8]/20 sm:text-9xl">{{ status_code }}</p>
|
||||
<h1 class="mt-1 text-xl font-semibold text-[#f7f2e8]">{{ title }}</h1>
|
||||
{% endif %}
|
||||
<p class="mt-4 text-sm leading-6 text-[#f7f2e8]/60">{{ detail }}</p>
|
||||
<p class="font-bold text-8xl text-foreground/20 sm:text-9xl">{{ status_code }}</p>
|
||||
<h1 class="mt-1 text-xl font-semibold text-foreground">{{ title }}</h1>
|
||||
<p class="mt-4 text-sm leading-6 text-foreground/60">{{ detail }}</p>
|
||||
{% if status_code == 401 %}
|
||||
{% set quips = [
|
||||
"I'm not saying you're a data scraper, but I AM saying that this page is off-limits.",
|
||||
"I'm watching you Wazowski.... ALWAYS watching.",
|
||||
"I'm watching you Wazowski… ALWAYS watching.",
|
||||
"He doesn't bite. He just harvests your data.",
|
||||
"Move along clanker! Nothing to see here.",
|
||||
"Just get out of here you STUPID, DUMB ANIMAL!"
|
||||
] %}
|
||||
<p class="text-xs italic text-[#f7f2e8]/30">{{ quips | random }}</p>
|
||||
<p class="text-xs italic text-foreground/30">{{ quips | random }}</p>
|
||||
{% endif %}
|
||||
<div class="mt-8">
|
||||
<a href="/" class="btn btn-primary" id="go-home-btn">Go home</a>
|
||||
<a href="/" class="btn-link" id="go-home-btn">Go Home</a>
|
||||
</div>
|
||||
</div>
|
||||
{% if status_code == 401 %}
|
||||
<div class="guard-dog-wrap pointer-events-none absolute -bottom-4 -right-8 w-44 sm:w-56"
|
||||
<div class="absolute pointer-events-none guard-dog-wrap -bottom-4 -right-8 w-44 sm:w-56"
|
||||
aria-hidden="true">
|
||||
<div class="guard-dog-trot">
|
||||
<div class="guard-dog-look">
|
||||
|
|
@ -138,7 +46,7 @@
|
|||
</section>
|
||||
{% if status_code == 401 %}
|
||||
<script>
|
||||
console.log('%cUnauthorized access detected. Deploying CUCKerberg.', 'font-size: 16px; color: red;');
|
||||
console.log('Unauthorized access detected. Deploying CUCKerberg.');
|
||||
|
||||
function fireBeam(eye, target) {
|
||||
const eyeRect = eye.getBoundingClientRect();
|
||||
|
|
@ -185,7 +93,9 @@
|
|||
const blur = 30 + t * 40;
|
||||
const opacity = 0.5 + t * 0.4;
|
||||
const scale = 1 + t * 0.06;
|
||||
btn.style.boxShadow = `0 0 ${spread}px ${spread/3}px rgba(198,32,48,${opacity}), 0 0 ${blur}px ${blur/3}px rgba(198,32,48,${opacity * 0.5})`;
|
||||
const primaryGlow = `color-mix(in oklab, var(--color-brand-red) ${Math.round(opacity * 100)}%, transparent)`;
|
||||
const secondaryGlow = `color-mix(in oklab, var(--color-brand-red) ${Math.round(opacity * 50)}%, transparent)`;
|
||||
btn.style.boxShadow = `0 0 ${spread}px ${spread / 3}px ${primaryGlow}, 0 0 ${blur}px ${blur / 3}px ${secondaryGlow}`;
|
||||
btn.style.scale = scale;
|
||||
if (t < 1) requestAnimationFrame(intensify);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Firebreak — protect your code from scraping{% endblock %}
|
||||
{% block body_class %}landing-page{% endblock %}
|
||||
{% block main_class %}{% endblock %}
|
||||
{% block header_class %}hidden{% endblock %}
|
||||
{% block main_class %}flex-1{% endblock %}
|
||||
{% block content %}
|
||||
<section class="relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-[#17191c] px-6 py-20 text-center text-[#f7f2e8]">
|
||||
<section class="relative flex min-h-dvh w-full items-center justify-center overflow-hidden bg-background px-4 py-10 text-center text-brand-cream sm:px-6 sm:py-14 lg:py-16">
|
||||
<video class="absolute inset-0 h-full w-full object-cover"
|
||||
autoplay
|
||||
muted
|
||||
|
|
@ -14,26 +14,45 @@
|
|||
aria-hidden="true">
|
||||
<source src="/static/video/firebreak-hero.mp4" type="video/mp4" />
|
||||
</video>
|
||||
<div class="absolute inset-0 bg-[#17191c]/65"></div>
|
||||
<div class="absolute inset-0 bg-[radial-gradient(circle_at_center,transparent_0,transparent_30%,rgb(23_25_28_/0.44)_62%,rgb(23_25_28_/0.92)_100%)]">
|
||||
<div class="pointer-events-none absolute inset-0"
|
||||
style="background: radial-gradient(circle at center, transparent 0, transparent 30%, color-mix(in oklab, var(--color-overlay) 38%, transparent) 62%, color-mix(in oklab, var(--color-overlay) 90%, transparent) 100%), linear-gradient(180deg, color-mix(in oklab, var(--color-overlay) 64%, transparent) 0, transparent 28%, color-mix(in oklab, var(--color-overlay) 70%, transparent) 100%), radial-gradient(ellipse at center, color-mix(in oklab, var(--color-overlay) 10%, transparent) 0, color-mix(in oklab, var(--color-overlay) 26%, transparent) 36%, transparent 58%)">
|
||||
</div>
|
||||
<div class="relative z-10 flex w-full max-w-4xl flex-col items-center">
|
||||
<img src="/static/img/firebreak-brand.svg"
|
||||
alt="Firebreak"
|
||||
<div class="pointer-events-none absolute inset-[12%_18%_18%]"
|
||||
style="background: radial-gradient(circle at center, var(--color-hero-ember) 0%, color-mix(in oklab, var(--color-hero-ember) 35%, transparent) 35%, transparent 70%);
|
||||
mix-blend-mode: screen"></div>
|
||||
<div class="relative z-10 flex w-full max-w-4xl translate-y-[-2dvh] flex-col items-center gap-6 sm:gap-8 lg:gap-9">
|
||||
<img src="/static/img/firebreak-logo-cream-red.svg"
|
||||
alt=""
|
||||
width="240"
|
||||
height="268"
|
||||
class="h-auto w-full max-w-36 drop-shadow-[0_14px_34px_rgb(0_0_0_/0.55)] sm:max-w-48 lg:max-w-60" />
|
||||
<p class="mt-8 max-w-2xl text-balance text-base font-medium leading-8 tracking-normal text-[#f7f2e8]/90 drop-shadow-[0_4px_18px_rgb(0_0_0_/0.72)] sm:text-lg sm:leading-9">
|
||||
<span class="block">Fight Fire with Fire.</span>
|
||||
<span class="mt-2 block">Draw a boundary around your code. Let them look, but don't let them scrape.</span>
|
||||
</p>
|
||||
<p class="mt-7 max-w-xl rounded-lg border border-[#f7f2e8]/14 bg-[#17191c]/42 px-5 py-4 text-sm leading-6 text-[#f7f2e8]/76 shadow-[0_18px_50px_rgb(0_0_0_/0.24)] backdrop-blur-sm sm:text-[0.9375rem]">
|
||||
Firebreak creates temporary, read-only links to private Forgejo repository snapshots.
|
||||
Sign in using Forgejo, register an access token, and control what can be viewed and by whom.
|
||||
</p>
|
||||
<div class="mt-7 flex flex-wrap items-center justify-center gap-3">
|
||||
height="238"
|
||||
class="h-auto w-full max-w-24 sm:max-w-32 lg:max-w-40"
|
||||
style="filter: drop-shadow(var(--shadow-hero-logo)) drop-shadow(var(--glow-hero))"
|
||||
aria-hidden="true" />
|
||||
<img src="/static/img/firebreak-brand-text.svg"
|
||||
alt="Firebreak"
|
||||
width="280"
|
||||
height="48"
|
||||
class="h-auto w-full max-w-40 sm:max-w-48 lg:max-w-56"
|
||||
style="filter: drop-shadow(var(--shadow-hero-text))" />
|
||||
<div class="relative isolate flex max-w-lg flex-col items-center text-balance px-4 py-2 text-brand-cream sm:max-w-xl"
|
||||
style="filter: drop-shadow(var(--shadow-hero-copy))">
|
||||
<div class="pointer-events-none absolute -z-10 blur-[10px]"
|
||||
style="inset: -1.5rem -3rem;
|
||||
background: radial-gradient(ellipse at center, color-mix(in oklab, var(--color-overlay) 72%, transparent) 0, color-mix(in oklab, var(--color-overlay) 44%, transparent) 42%, transparent 72%)">
|
||||
</div>
|
||||
<p class="text-base font-semibold leading-7 text-brand-cream sm:text-lg">Fight Fire with Fire.</p>
|
||||
<div class="my-4 h-px w-16 rounded-full sm:my-5"
|
||||
style="background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--color-brand-red) 85%, transparent) 18%, var(--color-hero-burn) 50%, color-mix(in oklab, var(--color-brand-red) 85%, transparent) 82%, transparent);
|
||||
box-shadow: 0 0 14px color-mix(in oklab, var(--color-brand-flame) 45%, transparent), 0 0 1px var(--color-brand-cream)"
|
||||
aria-hidden="true"></div>
|
||||
<p class="max-w-md text-sm leading-6 text-brand-cream/90 sm:max-w-lg sm:text-[0.9375rem] sm:leading-7">
|
||||
Temporary read-only access to private Forgejo snapshots.
|
||||
Let them inspect what you allow. Nothing more.
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex flex-wrap items-center justify-center gap-3">
|
||||
{% if user %}
|
||||
<a href="/dashboard" class="btn btn-primary">Open dashboard</a>
|
||||
<a href="/dashboard" class="btn btn-primary">Open Dashboard</a>
|
||||
{% else %}
|
||||
<a href="/auth/login/forgejo" class="btn btn-primary">
|
||||
<img src="/static/img/forgejo-logo.svg"
|
||||
|
|
@ -42,10 +61,26 @@
|
|||
height="16"
|
||||
class="size-4 shrink-0 brightness-0 invert"
|
||||
aria-hidden="true" />
|
||||
<span>Sign in with Forgejo</span>
|
||||
<span>Sign In with Forgejo</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<p class="absolute inset-x-4 z-10 flex flex-wrap items-center justify-center gap-x-3 gap-y-2 text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-brand-cream/56 sm:text-xs"
|
||||
style="bottom: clamp(1.5rem, 5dvh, 4rem);
|
||||
filter: drop-shadow(var(--shadow-hero-text))"
|
||||
aria-label="Firebreak security properties">
|
||||
<span>Snapshot scoped</span>
|
||||
<span class="size-1 rounded-full"
|
||||
style="background: var(--color-brand-flame);
|
||||
box-shadow: 0 0 10px color-mix(in oklab, var(--color-brand-flame) 55%, transparent)"
|
||||
aria-hidden="true"></span>
|
||||
<span>Read-only</span>
|
||||
<span class="size-1 rounded-full"
|
||||
style="background: var(--color-brand-flame);
|
||||
box-shadow: 0 0 10px color-mix(in oklab, var(--color-brand-flame) 55%, transparent)"
|
||||
aria-hidden="true"></span>
|
||||
<span>Forgejo-native</span>
|
||||
</p>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
|||
149
web/app/templates/partials/dashboard_repositories.html
Normal file
149
web/app/templates/partials/dashboard_repositories.html
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
<section class="table-panel">
|
||||
<div class="flex flex-col gap-1 border-b border-border px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<h2 class="flex items-center gap-2 text-base font-semibold text-foreground">
|
||||
<svg class="status-icon text-muted-foreground"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />
|
||||
</svg>
|
||||
Repositories
|
||||
{% if repositories %}
|
||||
<span class="text-sm font-normal text-muted-foreground">{{ repositories|length }}</span>
|
||||
{% endif %}
|
||||
</h2>
|
||||
<p class="text-sm leading-6 text-muted-foreground">
|
||||
Your Forgejo repositories. Create a share link to grant temporary read-only access.
|
||||
</p>
|
||||
</div>
|
||||
{% if repo_error %}
|
||||
<div class="table-placeholder text-warning-foreground">
|
||||
{{ repo_error }}
|
||||
<button type="button"
|
||||
class="btn btn-sm btn-secondary"
|
||||
hx-get="/dashboard/repositories"
|
||||
hx-target="#repositories-region"
|
||||
hx-swap="innerHTML">Retry</button>
|
||||
</div>
|
||||
{% elif repositories %}
|
||||
<div class="table-shell">
|
||||
<table class="data-table">
|
||||
<caption class="sr-only">Your Forgejo repositories</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Repository</th>
|
||||
<th scope="col">Type</th>
|
||||
<th scope="col">Branch</th>
|
||||
<th scope="col" class="hidden lg:table-cell">Language</th>
|
||||
<th scope="col" class="hidden md:table-cell">Last Updated</th>
|
||||
<th scope="col" class="text-center">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for repo in repositories %}
|
||||
<tr>
|
||||
<td>
|
||||
{# Owner muted, name bright — eyes land on the repo, not the prefix #}
|
||||
{% set owner, slash, name = repo.full_name.partition('/') %}
|
||||
{% if repo.html_url %}
|
||||
<a href="{{ repo.html_url }}"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="group inline-flex items-center gap-1 font-medium text-foreground hover:text-ember">
|
||||
{% if slash %}
|
||||
<span class="font-normal text-muted-foreground">{{ owner }}/</span>{{ name }}
|
||||
{% else %}
|
||||
{{ repo.full_name }}
|
||||
{% endif %}
|
||||
<svg class="size-3 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-ember"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
|
||||
</svg>
|
||||
<span class="sr-only">(opens in Forgejo in a new tab)</span>
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="font-medium text-foreground">
|
||||
{% if slash %}
|
||||
<span class="font-normal text-muted-foreground">{{ owner }}/</span>{{ name }}
|
||||
{% else %}
|
||||
{{ repo.full_name }}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
{# Provenance is metadata, not risk — muted mono, never a badge #}
|
||||
{% set provenance = (['fork'] if repo.fork else []) + (['mirror'] if repo.mirror else []) %}
|
||||
{% if provenance %}
|
||||
<span class="font-mono text-xs text-muted-foreground">· {{ provenance | join(' · ') }}</span>
|
||||
{% endif %}
|
||||
{% if repo.description %}
|
||||
<p class="mt-0.5 max-w-[16rem] truncate text-xs text-muted-foreground sm:max-w-md">
|
||||
{{ repo.description }}
|
||||
</p>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{# Heat = exposure: only exception states earn a badge.
|
||||
Private is the ground state — an unmarked row is contained. #}
|
||||
<div class="flex flex-wrap items-center gap-1.5">
|
||||
{% if not repo.private %}
|
||||
<span class="badge badge-ember">Public</span>
|
||||
{% endif %}
|
||||
{% if repo.archived %}<span class="badge badge-expired">Archived</span>{% endif %}
|
||||
{% if repo.empty %}<span class="badge badge-danger">Empty</span>{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span class="mono-chip inline-flex items-center gap-1">
|
||||
<svg class="size-3 shrink-0"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M15 6a9 9 0 0 0-9 9V3" />
|
||||
<circle cx="18" cy="6" r="3" />
|
||||
<circle cx="6" cy="18" r="3" />
|
||||
</svg>
|
||||
{{ repo.default_branch }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="hidden whitespace-nowrap text-muted-foreground lg:table-cell">
|
||||
{% if repo.language %}
|
||||
{{ repo.language }}
|
||||
{% else %}
|
||||
<span class="text-muted-foreground">—</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="hidden whitespace-nowrap text-muted-foreground md:table-cell">
|
||||
<time datetime="{{ repo.updated_at }}" data-relative-date>{{ repo.updated_at }}</time>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{% if repo.empty %}
|
||||
<span class="btn btn-sm btn-disabled" aria-disabled="true">Create Link</span>
|
||||
{% else %}
|
||||
<a href="/links/create"
|
||||
class="btn btn-sm btn-primary"
|
||||
aria-label="Create link for {{ repo.full_name }}">Create Link</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="table-placeholder">No repositories found in your Forgejo account.</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
|
@ -1,108 +1,130 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Settings — Firebreak{% endblock %}
|
||||
{% block content %}
|
||||
<div class="flex flex-col gap-6">
|
||||
<section class="pb-6 border-b border-border">
|
||||
<h1 class="text-2xl font-semibold">Settings</h1>
|
||||
<p class="mt-2 text-sm text-muted-foreground">Manage your Firebreak configuration.</p>
|
||||
{# One section doesn't earn a sidebar — a single quiet column until it does. #}
|
||||
<div class="mx-auto flex w-full max-w-3xl flex-col gap-6">
|
||||
<section>
|
||||
<h1 class="text-2xl font-semibold leading-tight text-foreground sm:text-3xl">Settings</h1>
|
||||
<div class="firebreak-rule mt-6" aria-hidden="true"></div>
|
||||
</section>
|
||||
{% if pat_deleted %}
|
||||
<div class="rounded-md border-l-4 border-warning bg-warning-muted px-4 py-3 text-sm font-semibold text-warning-foreground"
|
||||
role="status">Access token removed.</div>
|
||||
{% endif %}
|
||||
<div id="forgejo-access-token">
|
||||
<h2 class="text-base font-semibold">Forgejo access token</h2>
|
||||
<p class="mt-2 text-sm text-muted-foreground">
|
||||
A <code class="rounded-sm bg-secondary px-1.5 py-0.5 text-foreground">read:repository</code>-scoped
|
||||
Personal Access Token is required for share link viewing.
|
||||
</p>
|
||||
<div class="flex min-w-0 flex-col gap-4">
|
||||
{% if pat_deleted %}
|
||||
<div class="notice-rail" role="status">
|
||||
<p class="text-sm font-semibold text-warning-foreground">Access token removed.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if pat_registered %}
|
||||
<div class="mt-4 card">
|
||||
<div class="flex items-center justify-between px-4 py-3.5">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex size-8 items-center justify-center rounded-md bg-success-muted text-success-foreground">
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round">
|
||||
<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="notice-rail border-success" role="status">
|
||||
<p class="text-sm font-semibold text-success-foreground">Access token registered.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<section class="table-panel">
|
||||
<div class="flex flex-col gap-1 border-b border-border px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<h2 class="text-base font-semibold text-foreground">Forgejo access token</h2>
|
||||
<p class="text-sm leading-6 text-muted-foreground">
|
||||
A <code class="mono-chip">read:repository</code>-scoped
|
||||
Personal Access Token is required for share link viewing.
|
||||
</p>
|
||||
</div>
|
||||
{% if user.has_pat %}
|
||||
<div class="flex items-center justify-between gap-4 border-b border-border-subtle px-4 py-3.5 sm:px-5">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<svg class="status-icon text-success-foreground"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z" />
|
||||
<circle cx="16.5" cy="7.5" r=".5" fill="currentColor" stroke="none" />
|
||||
</svg>
|
||||
<div>
|
||||
<p class="text-sm font-medium text-foreground">Access token</p>
|
||||
<p class="mt-0.5 text-xs text-muted-foreground">
|
||||
{% if pat_registered_at %}
|
||||
Registered {{ pat_registered_at.strftime("%b %d, %Y") }}
|
||||
{% if user.pat_registered_at %}
|
||||
Registered <time datetime="{{ user.pat_registered_at.isoformat() }}" data-local-date>{{ user.pat_registered_at.isoformat() }}</time>
|
||||
{% else %}
|
||||
Registered
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" action="/settings/pat/delete">
|
||||
<button type="submit"
|
||||
class="btn btn-xs btn-secondary text-danger-foreground hover:bg-danger-muted hover:border-danger-muted">
|
||||
Delete
|
||||
</button>
|
||||
<form method="post"
|
||||
action="/settings/pat/delete"
|
||||
data-confirm="Delete this access token? You can register a new token later.">
|
||||
<button type="submit" class="btn btn-sm btn-danger-quiet">Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<details class="mt-4">
|
||||
<summary class="cursor-pointer text-sm text-muted-foreground hover:text-foreground">
|
||||
Update token
|
||||
</summary>
|
||||
<form id="pat-form"
|
||||
class="mt-3"
|
||||
method="post"
|
||||
action="/settings/pat"
|
||||
novalidate>
|
||||
<div class="grid gap-2 sm:gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
||||
{% else %}
|
||||
<div class="flex items-center gap-2.5 border-b border-border-subtle px-4 py-3.5 sm:px-5">
|
||||
<svg class="status-icon text-warning-foreground"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true">
|
||||
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" />
|
||||
</svg>
|
||||
<p class="status-line text-warning-foreground">Status · No token registered</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="px-4 py-3.5 sm:px-5 sm:py-4">
|
||||
<form id="pat-form" method="post" action="/settings/pat" novalidate>
|
||||
<label for="pat" class="form-label">
|
||||
{{ "Replace token" if user.has_pat else "Register token" }}
|
||||
</label>
|
||||
<div class="grid gap-2 sm:grid-cols-[1fr_auto] sm:gap-3">
|
||||
<input type="password"
|
||||
id="pat"
|
||||
name="pat"
|
||||
class="block w-full input-mono"
|
||||
placeholder="Paste new token..."
|
||||
class="form-input font-mono"
|
||||
placeholder="Paste new token…"
|
||||
aria-describedby="pat-error"
|
||||
aria-invalid="false"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
required />
|
||||
<button type="submit" class="btn btn-sm btn-primary self-center">Update</button>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<p id="pat-error" class="input-error hidden">A Forgejo token is required.</p>
|
||||
<button type="submit" class="btn btn-sm btn-primary self-center">
|
||||
{{ "Update" if user.has_pat else "Register" }}
|
||||
</button>
|
||||
</div>
|
||||
<p id="pat-error"
|
||||
class="mt-2 hidden text-sm font-medium text-danger-foreground"
|
||||
aria-live="polite">A Forgejo token is required.</p>
|
||||
</form>
|
||||
</details>
|
||||
{% else %}
|
||||
<form id="pat-form"
|
||||
class="mt-4"
|
||||
method="post"
|
||||
action="/settings/pat"
|
||||
novalidate>
|
||||
<div class="grid gap-2 sm:gap-4 sm:grid-cols-[1fr_auto] sm:items-end">
|
||||
<input type="password"
|
||||
id="pat"
|
||||
name="pat"
|
||||
class="block w-full input-mono"
|
||||
placeholder="ad8j3..."
|
||||
aria-describedby="pat-error"
|
||||
aria-invalid="false"
|
||||
required />
|
||||
<button type="submit" class="btn btn-sm btn-primary self-center">Register</button>
|
||||
</div>
|
||||
<div class="mt-2">
|
||||
<p id="pat-error" class="input-error hidden">A Forgejo token is required.</p>
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
(() => {
|
||||
document.querySelectorAll("form[data-confirm]").forEach((confirmForm) => {
|
||||
confirmForm.addEventListener("submit", (event) => {
|
||||
const message = confirmForm.getAttribute("data-confirm");
|
||||
if (message && !window.confirm(message)) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll("time[data-local-date]").forEach((time) => {
|
||||
const value = time.getAttribute("datetime");
|
||||
if (!value) return;
|
||||
|
||||
const date = new Date(value);
|
||||
if (Number.isNaN(date.valueOf())) return;
|
||||
|
||||
time.textContent = new Intl.DateTimeFormat(undefined, {
|
||||
month: "short",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
}).format(date);
|
||||
});
|
||||
|
||||
const form = document.getElementById("pat-form");
|
||||
const input = document.getElementById("pat");
|
||||
const error = document.getElementById("pat-error");
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}{{ "Reconfigure" if reconfiguring else "Setup" }} — Firebreak{% endblock %}
|
||||
{% block body_class %}landing-page{% endblock %}
|
||||
{% block main_class %}{% endblock %}
|
||||
{% block main_class %}flex-1{% endblock %}
|
||||
{% block content %}
|
||||
<section class="flex min-h-dvh items-center justify-center px-6 py-20">
|
||||
<div class="w-full max-w-lg">
|
||||
|
|
@ -10,43 +10,43 @@
|
|||
alt="Firebreak"
|
||||
width="240"
|
||||
height="268"
|
||||
class="mx-auto h-auto w-full max-w-24" />
|
||||
<h1 class="mt-6 text-2xl font-semibold text-[#f7f2e8]">
|
||||
class="setup-logo" />
|
||||
<h1 class="mt-6 text-2xl font-semibold text-foreground">
|
||||
{{ "Reconfigure" if reconfiguring else "Setup" }}
|
||||
</h1>
|
||||
{% if reconfiguring %}
|
||||
<p class="mt-2 text-sm leading-6 text-[#f7f2e8]/60">
|
||||
<p class="mt-2 text-sm leading-6 text-foreground/60">
|
||||
Update your Forgejo OAuth connection. Make sure the OAuth application
|
||||
is registered in your Forgejo instance before continuing.
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="mt-2 text-sm leading-6 text-[#f7f2e8]/60">
|
||||
<p class="mt-2 text-sm leading-6 text-foreground/60">
|
||||
Connect Firebreak to your Forgejo instance. You'll need to
|
||||
<a href="https://forgejo.org/docs/latest/user/oauth2-provider/"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="underline underline-offset-2 text-[#f7f2e8]/80 hover:text-[#f7f2e8]">register an OAuth application</a>
|
||||
class="text-foreground/80 underline underline-offset-2 hover:text-foreground">register an OAuth application</a>
|
||||
in Forgejo first.
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if not reconfiguring %}
|
||||
<div class="mb-8 rounded-lg border border-[#f7f2e8]/10 bg-[#1f2226]/60 px-5 py-4 text-xs leading-5 text-[#f7f2e8]/50">
|
||||
<p class="font-medium text-[#f7f2e8]/70 mb-2.5">How to get your OAuth credentials:</p>
|
||||
<div class="mb-8 rounded-lg border border-foreground/10 bg-card/60 px-5 py-4 text-xs leading-5 text-foreground/50">
|
||||
<p class="mb-2.5 font-medium text-foreground/70">How to get your OAuth credentials:</p>
|
||||
<ol class="list-decimal list-inside space-y-1.5">
|
||||
<li>
|
||||
In Forgejo, go to <strong class="text-[#f7f2e8]/70">Settings → Applications</strong>
|
||||
In Forgejo, go to <strong class="text-foreground/70">Settings → Applications</strong>
|
||||
</li>
|
||||
<li>
|
||||
Under <strong class="text-[#f7f2e8]/70">Manage OAuth2 Applications</strong>, create a new app
|
||||
Under <strong class="text-foreground/70">Manage OAuth2 Applications</strong>, create a new app
|
||||
</li>
|
||||
<li>
|
||||
Set the redirect URI to
|
||||
<br />
|
||||
<code class="mt-1 inline-block rounded bg-[#f7f2e8]/8 px-1.5 py-0.5 font-mono text-[10px] text-[#f7f2e8]/60">{{ oauth_callback_url }}</code>
|
||||
<code class="mt-1 inline-block rounded bg-foreground/8 px-1.5 py-0.5 font-mono text-[10px] text-foreground/60">{{ oauth_callback_url }}</code>
|
||||
</li>
|
||||
<li>
|
||||
Copy the <strong class="text-[#f7f2e8]/70">Client ID</strong> and <strong class="text-[#f7f2e8]/70">Client Secret</strong> into the form below
|
||||
Copy the <strong class="text-foreground/70">Client ID</strong> and <strong class="text-foreground/70">Client Secret</strong> into the form below
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
|
@ -54,78 +54,75 @@
|
|||
<form method="post" action="/setup" class="space-y-5">
|
||||
{% if not reconfiguring %}
|
||||
<div>
|
||||
<label for="setup_token"
|
||||
class="block text-xs font-semibold uppercase tracking-[0.05em] text-[#f7f2e8]/50 mb-1.5">
|
||||
Setup Token
|
||||
</label>
|
||||
<label for="setup_token" class="form-label">Setup Token</label>
|
||||
<input type="password"
|
||||
id="setup_token"
|
||||
name="setup_token"
|
||||
class="block w-full rounded-md border border-[#f7f2e8]/14 bg-[#1f2226] px-3 py-2.5 font-mono text-sm text-[#f7f2e8] placeholder:text-[#f7f2e8]/30 focus:border-[#f7f2e8]/30 focus:outline-none focus:ring-2 focus:ring-[#f7f2e8]/10"
|
||||
class="form-input font-mono"
|
||||
placeholder="Paste the token from your server logs"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
required />
|
||||
<p class="mt-1.5 text-xs text-[#f7f2e8]/30">Printed to the server console on first boot.</p>
|
||||
<p class="mt-1.5 text-xs text-foreground/30">Printed to the server console on first boot.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<label for="forgejo_base_url"
|
||||
class="block text-xs font-semibold uppercase tracking-[0.05em] text-[#f7f2e8]/50 mb-1.5">
|
||||
Forgejo Instance URL
|
||||
</label>
|
||||
<label for="forgejo_base_url" class="form-label">Forgejo Instance URL</label>
|
||||
<input type="url"
|
||||
id="forgejo_base_url"
|
||||
name="forgejo_base_url"
|
||||
class="block w-full rounded-md border border-[#f7f2e8]/14 bg-[#1f2226] px-3 py-2.5 text-sm text-[#f7f2e8] placeholder:text-[#f7f2e8]/30 focus:border-[#f7f2e8]/30 focus:outline-none focus:ring-2 focus:ring-[#f7f2e8]/10"
|
||||
class="form-input"
|
||||
placeholder="https://git.example.com"
|
||||
autocomplete="off"
|
||||
value="{{ forgejo_base_url }}"
|
||||
required />
|
||||
</div>
|
||||
<div>
|
||||
<label for="forgejo_oauth_client_id"
|
||||
class="block text-xs font-semibold uppercase tracking-[0.05em] text-[#f7f2e8]/50 mb-1.5">
|
||||
OAuth Client ID
|
||||
</label>
|
||||
<label for="forgejo_oauth_client_id" class="form-label">OAuth Client ID</label>
|
||||
<input type="text"
|
||||
id="forgejo_oauth_client_id"
|
||||
name="forgejo_oauth_client_id"
|
||||
class="block w-full rounded-md border border-[#f7f2e8]/14 bg-[#1f2226] px-3 py-2.5 font-mono text-sm text-[#f7f2e8] placeholder:text-[#f7f2e8]/30 focus:border-[#f7f2e8]/30 focus:outline-none focus:ring-2 focus:ring-[#f7f2e8]/10"
|
||||
placeholder="c8ab3315-537d-44f3-..."
|
||||
class="form-input font-mono"
|
||||
placeholder="c8ab3315-537d-44f3-…"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
value="{{ forgejo_oauth_client_id }}"
|
||||
required />
|
||||
</div>
|
||||
<div>
|
||||
<label for="forgejo_oauth_client_secret"
|
||||
class="block text-xs font-semibold uppercase tracking-[0.05em] text-[#f7f2e8]/50 mb-1.5">
|
||||
<label for="forgejo_oauth_client_secret" class="form-label">
|
||||
OAuth Client Secret
|
||||
{% if reconfiguring %}
|
||||
<span class="ml-1 normal-case tracking-normal font-normal text-[#f7f2e8]/30">(leave blank to keep current)</span>
|
||||
<span class="ml-1 font-normal tracking-normal normal-case text-foreground/30">(leave blank to keep current)</span>
|
||||
{% endif %}
|
||||
</label>
|
||||
<input type="password"
|
||||
id="forgejo_oauth_client_secret"
|
||||
name="forgejo_oauth_client_secret"
|
||||
class="block w-full rounded-md border border-[#f7f2e8]/14 bg-[#1f2226] px-3 py-2.5 font-mono text-sm text-[#f7f2e8] placeholder:text-[#f7f2e8]/30 focus:border-[#f7f2e8]/30 focus:outline-none focus:ring-2 focus:ring-[#f7f2e8]/10"
|
||||
placeholder="gto_wkxxnv4ewa..."
|
||||
class="form-input font-mono"
|
||||
placeholder="gto_wkxxnv4ewa…"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
{{ "" if reconfiguring else "required" }} />
|
||||
</div>
|
||||
<div>
|
||||
<label for="firebreak_public_base_url"
|
||||
class="block text-xs font-semibold uppercase tracking-[0.05em] text-[#f7f2e8]/50 mb-1.5">
|
||||
<label for="firebreak_public_base_url" class="form-label">
|
||||
Public Base URL
|
||||
<span class="ml-1 normal-case tracking-normal font-normal text-[#f7f2e8]/30">(optional)</span>
|
||||
<span class="ml-1 font-normal tracking-normal normal-case text-foreground/30">(optional)</span>
|
||||
</label>
|
||||
<input type="url"
|
||||
id="firebreak_public_base_url"
|
||||
name="firebreak_public_base_url"
|
||||
class="block w-full rounded-md border border-[#f7f2e8]/14 bg-[#1f2226] px-3 py-2.5 text-sm text-[#f7f2e8] placeholder:text-[#f7f2e8]/30 focus:border-[#f7f2e8]/30 focus:outline-none focus:ring-2 focus:ring-[#f7f2e8]/10"
|
||||
class="form-input"
|
||||
placeholder="https://share.example.com"
|
||||
autocomplete="off"
|
||||
value="{{ firebreak_public_base_url }}" />
|
||||
<p class="mt-1.5 text-xs text-[#f7f2e8]/30">
|
||||
Your production domain for OAuth redirects. Leave blank on localhost — Firebreak will use <code class="font-mono text-[#f7f2e8]/40">http://localhost:8000</code> automatically.
|
||||
<p class="mt-1.5 text-xs text-foreground/30">
|
||||
Your production domain for OAuth redirects. Leave blank on localhost — Firebreak will use <code class="font-mono text-foreground/40">http://localhost:8000</code> automatically.
|
||||
</p>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary w-full mt-2">
|
||||
{{ "Save Forgejo settings" if reconfiguring else "Complete Setup" }}
|
||||
{{ "Save Forgejo Settings" if reconfiguring else "Complete Setup" }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@ from pathlib import Path
|
|||
|
||||
from jinja2_fragments.fastapi import Jinja2Blocks
|
||||
|
||||
from app.config import get_settings
|
||||
|
||||
TEMPLATES_DIR = Path(__file__).parent / "templates"
|
||||
|
||||
templates = Jinja2Blocks(directory=str(TEMPLATES_DIR))
|
||||
|
||||
# Expose the debug flag to every template (gates the dev-only CSS live reload).
|
||||
templates.env.globals["debug"] = get_settings().debug
|
||||
|
|
|
|||
21
web/dev.sh
21
web/dev.sh
|
|
@ -5,6 +5,7 @@ cd "$(dirname "$0")"
|
|||
|
||||
export DATABASE_URL="postgresql+asyncpg://firebreak:firebreak@localhost:5432/firebreak_db"
|
||||
export FIREBREAK_PUBLIC_BASE_URL="http://localhost:8000"
|
||||
export DEBUG="true" # enables the dev-only CSS live reload
|
||||
|
||||
echo "Starting local Postgres and Adminer..."
|
||||
docker compose -f ../docker-compose.yml up -d db adminer
|
||||
|
|
@ -16,11 +17,25 @@ echo "Starting Firebreak dev server..."
|
|||
echo " FastAPI: http://localhost:8000"
|
||||
echo " Adminer: http://localhost:8080"
|
||||
echo " PostgreSQL / db / firebreak / firebreak / firebreak_db"
|
||||
echo " CSS: watching app/static/css/input.css"
|
||||
echo " CSS: watching app/templates and app/static/css/input.css"
|
||||
|
||||
./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --watch &
|
||||
# Rebuild Tailwind whenever templates or the input CSS change. `entr -d` exits
|
||||
# when a new file appears in a watched directory, so the loop re-scans and picks
|
||||
# up newly added templates without needing a manual restart.
|
||||
if command -v entr >/dev/null 2>&1; then
|
||||
(
|
||||
while true; do
|
||||
find app/templates app/static/css/input.css \
|
||||
| entr -d ./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css
|
||||
done
|
||||
) &
|
||||
else
|
||||
echo " (entr not installed — falling back to 'tailwindcss --watch';"
|
||||
echo " new template files will need a dev.sh restart. Install: brew install entr)"
|
||||
./tailwindcss -i ./app/static/css/input.css -o ./app/static/css/output.css --watch &
|
||||
fi
|
||||
TW_PID=$!
|
||||
|
||||
trap "kill $TW_PID 2>/dev/null" EXIT
|
||||
trap 'kill "$TW_PID" 2>/dev/null; pkill -P "$TW_PID" 2>/dev/null' EXIT
|
||||
|
||||
uv run uvicorn app.main:app --reload --port 8000
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@ requires-python = ">=3.13"
|
|||
dependencies = [
|
||||
"aiofiles>=24.1.0",
|
||||
"asyncpg>=0.31.0",
|
||||
"cryptography>=48.0.1",
|
||||
"cryptography>=46.0.0",
|
||||
"fastapi>=0.136.0",
|
||||
"httpx>=0.28.1",
|
||||
"jinja2>=3.1.0",
|
||||
"jinja2-fragments>=0.1.0",
|
||||
"pydantic-settings>=2.14.2",
|
||||
"pydantic-settings>=2.13.1",
|
||||
"pydantic[email]>=2.13.2",
|
||||
"python-multipart>=0.0.31",
|
||||
"python-multipart>=0.0.18",
|
||||
"sqlalchemy[asyncio]>=2.0.49",
|
||||
]
|
||||
|
||||
|
|
|
|||
112
web/uv.lock
generated
112
web/uv.lock
generated
|
|
@ -194,55 +194,55 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "cryptography"
|
||||
version = "48.0.1"
|
||||
version = "48.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cffi", marker = "platform_python_implementation != 'PyPy'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/12/45/870e7f4bef50e5f53b9f51d4428aee5290eedf58ba443f16b1ebb7ab8e66/cryptography-48.0.1.tar.gz", hash = "sha256:266f4ee051abb2f725b74ef8072b521ce1feacf685a3364fa6a6b45548db791a", size = 832989, upload-time = "2026-06-09T22:32:31.8Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9f/a9/db8f313fdcd85d767d4973515e1db101f9c71f95fced83233de224673757/cryptography-48.0.0.tar.gz", hash = "sha256:5c3932f4436d1cccb036cb0eaef46e6e2db91035166f1ad6505c3c9d5a635920", size = 832984, upload-time = "2026-05-04T22:59:38.133Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/bc/ee4137cbbe105652c0ee4252792b78fc8e7afa4b8e61d9d5dc05a7f45731/cryptography-48.0.1-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:3e4a1a3232eef2e6c732827d5722db29a0cc8b27af2a4d865b094cf954be9ca1", size = 8008324, upload-time = "2026-06-09T22:31:00.702Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/85/6379d42181bfc713094f081360fc5784d6c816b599d45e7f082502d173ce/cryptography-48.0.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:32143b24adb918f078134e1e230f1eb8cc04886b92c28b5f0041aaf3e5699225", size = 4696243, upload-time = "2026-06-09T22:32:33.446Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9c/87/c85d147b53323c7eb4d850920c8901377323c2a0ff8d79c262d4fee89aa2/cryptography-48.0.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f0d27a5696721ef7a672b8c810f6aded391058e0b9486e63e6d93baf765da691", size = 4713235, upload-time = "2026-06-09T22:31:40.141Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/58/67cbf8cf1ee7c54b439ca07bbecf8362c07afc11a3724fea70f745784add/cryptography-48.0.1-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:eb86ce1af36fe65041b6db9a8bb064ee621a7e5fded0f80d475ec243477cd242", size = 4702323, upload-time = "2026-06-09T22:31:42.191Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/c6/24266ac10c47f6cd2a865f4446062b466da1d1f10b27189eac00e61bf0c9/cryptography-48.0.1-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:b024e784ad6c077ee0147b35ea9cbfc1e34e1fd4c1dcca214c2794d73a12df08", size = 5300085, upload-time = "2026-06-09T22:31:58.703Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/bb/cc4b78784f97efc8c5874c2a9743708d172be6663024b34a0467885ae0c8/cryptography-48.0.1-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3752f2dbc8f07a30aad2932c986cea495b03bb554887828225da104f732852b6", size = 4746137, upload-time = "2026-06-09T22:31:31.01Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/52/0c44de3f5267f8fbe8e835138017522a333436166e406f0db9b9e6e3033f/cryptography-48.0.1-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:bd81490cd5801d755cf97bb68ac191f14b708470b1c7cf4580f669b9c9264cd8", size = 4333867, upload-time = "2026-06-09T22:32:28.096Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/2e/772d7adbfa931537bc401640b7cac9976bff689bda187833e5d63b428e49/cryptography-48.0.1-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:66fd0771e7b9c6dcd44cf1120690d2338d16d72795cf40cae2786a39eba65429", size = 4701805, upload-time = "2026-06-09T22:31:38.284Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/a3/b06844f303873493c963caf581c04df31c7035e0c1b0f02c4814d319ec80/cryptography-48.0.1-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:3fd2ca57062b241c856670b073487d2e86c4637937ca5601e48f97bf8e11fc8f", size = 5258461, upload-time = "2026-06-09T22:31:04.187Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/13/8b765e2e12b07c74941caadb9d1c8fdc006c4dfbf2b8f2d610519758954d/cryptography-48.0.1-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:0ee6ea481db1ab889cba043ec1eda17bb9c1ea79db6722f779c3667f9f70322f", size = 4745488, upload-time = "2026-06-09T22:32:30.07Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/aa/48972bce55049b32a94f4907eda4d75fa385aad8a39506cc2fc72196ecf0/cryptography-48.0.1-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:f2ceef93cb096aa3c4cc4b5c94ca6131f9196d28c64d6111533402a9b2054d41", size = 4830256, upload-time = "2026-06-09T22:31:43.868Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/a2/e5079a032fb85cf6005046ca92bbd78b0c82dad2b5751ab8c311659da06f/cryptography-48.0.1-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9bd3f92d76217892b15df84ca256c2c113d386fdda7a7d8691aeeced976507c6", size = 4979117, upload-time = "2026-06-09T22:31:05.845Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b7/a0/8f50cae9c74e718ed769d63ed5c74bd0ea830c9550a74629cebd1b9c7bc7/cryptography-48.0.1-cp311-abi3-win32.whl", hash = "sha256:b9a32b876490d66c8bcc9963ef220199569748434ab01a9d6aaeabf88e7f5158", size = 3304154, upload-time = "2026-06-09T22:32:16.845Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/69/0572c77dbace6fef72f33755bd52ea399c71367250d366237f8691826b9e/cryptography-48.0.1-cp311-abi3-win_amd64.whl", hash = "sha256:39489bfca54c7a1f6b297efcd8bc608ab92d16c4ca631b0cad4da46724588b24", size = 3817138, upload-time = "2026-06-09T22:32:00.388Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/06/3e768b4c3bc78201583fa35a0e18f640dd782ff41afba88f8545481a8874/cryptography-48.0.1-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:f817adc181390bd54f2f700107a7419040fb7c1bdf2fc26f36551a06a68c3345", size = 7989830, upload-time = "2026-06-09T22:31:07.8Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/13/6476736484b94041110c8340a3eb63962fea4975baea8cb4a512adb44d4d/cryptography-48.0.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d5d30989c6917b478b5817902e85fddaea2261efa8648383d965381ccb9e1ac4", size = 4689201, upload-time = "2026-06-09T22:31:09.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/62/65a87f34d2a431546e2509b85d55e8c90df86d668f6731da64d538512ac2/cryptography-48.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:df637c05205ea7c1d7fbcbe54bbfea648a52951155f997af13d895d0ecc96991", size = 4702822, upload-time = "2026-06-09T22:32:24.409Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/59/810b5204b0a9b10f4b6bc06bd551a8b609803cd931806bc3b71884b225e5/cryptography-48.0.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:869c3b8a53bfe27147832df48b32adadf558249d50e76cb3769d40e986b13265", size = 4694875, upload-time = "2026-06-09T22:32:08.737Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/dc/d8ca05ffea724eec6d232ea6f18e74c269eb6bdfdcc9bfba689790d1325f/cryptography-48.0.1-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:e361afba8918070d376df76f408a4f67fec0ee9cff81a99e48fe9a233ef59e17", size = 5290385, upload-time = "2026-06-09T22:31:15.212Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/8c/3be6cb4da181f5bb6c19cf560c2359d60644a6b5fc5b57854e528f47b296/cryptography-48.0.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:d069066deead00ac7f090be101be875a06855908f7ec004c27b8fefb4acfb411", size = 4737082, upload-time = "2026-06-09T22:32:22.66Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/f6/d5f60a5a1434dbfd949e227fd0065d194c7e6b6ac526b17f5c06152b8231/cryptography-48.0.1-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:09f73a725d582cef64b91281a322cd798d14a33b2b6f2b7ad9531dc336d84c02", size = 4325328, upload-time = "2026-06-09T22:32:10.777Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/b7/ba75dd947a14b6ad907b01ae8f6b5b348cdd1b48142f0063dee9e20c1d9d/cryptography-48.0.1-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:15254441469dd6bf027039453288e2072124f8b6603563f5d759e1c9b69273fa", size = 4694530, upload-time = "2026-06-09T22:31:53.105Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/29/50d6b9e8aff12d8b67afaeb3569335e32dc83a5723e3bbded24fdac9f809/cryptography-48.0.1-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:8ace4507d1e6533c125f4fac754f8bb8b6a74c08e92179dabd7e16571a3efbf3", size = 5245046, upload-time = "2026-06-09T22:31:25.774Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/04/618f4115cfc0add0838c82507aa18a346089428da8653ad38b3ff36f5cb3/cryptography-48.0.1-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:b4e391975f038e66432328639620a4aff2d307513b004f1ca06d6225bced815c", size = 4736660, upload-time = "2026-06-09T22:32:12.676Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/9c/06e062462a0de28a3b3911322eded4c16deb9f441b1b7575d3dc59488ab5/cryptography-48.0.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:42fcd8e26fe555d9b3577a135f5091fefa0aa4e99129c23fb56787a1bd4ada72", size = 4822229, upload-time = "2026-06-09T22:31:17.062Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/be/0561971eaaee4b8a0e7d5113c536921063ab91aaf23278ac374eaf881e11/cryptography-48.0.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c1400da5e32a43253392277eac7490a60e497d810a63dd5608d71bbd7af507c9", size = 4966364, upload-time = "2026-06-09T22:31:32.842Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/27/728c77876f12b000820b69ae490f3c4083775e79e07827e9e60be07ad209/cryptography-48.0.1-cp314-cp314t-win32.whl", hash = "sha256:0df56b056bc17c1b7d6821dfa65216e62bd232d8ab05eb3db44e71d235651471", size = 3278498, upload-time = "2026-06-09T22:31:29.154Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/06/e3/79a612c6d7b1e6ee0edd43633d53035bec2cfb78c82b76f7864f39e36f34/cryptography-48.0.1-cp314-cp314t-win_amd64.whl", hash = "sha256:9de21387aa95e2a895823d0745b430bed4f33503ba9ab5e0b5311f33e37d66d2", size = 3798790, upload-time = "2026-06-09T22:31:56.697Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/6c/00fa2a95997164c8b2072ce327c23d4ab20809ccc323ea5fab91e53a4bba/cryptography-48.0.1-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:4fdc69f8e4316bcf0c8c8ec1f26f285d12e8142d88d96c876a59a03be3f6ae67", size = 7987408, upload-time = "2026-06-09T22:32:20.777Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/d9/45f309a7e4e5f3f8f121d6d3be9e94024a7726ec598d6e08ae04edb2f04d/cryptography-48.0.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:48fe40804d4caa2288f24e70ca8c64c42dd826da0ad7e4f1b41b2128d679e6c8", size = 4690196, upload-time = "2026-06-09T22:31:54.74Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5f/9f/a1bc8bcc798811b8527eb374bbccf30a3f3e806829d967118222bf1125eb/cryptography-48.0.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:86be3b1b0b6bf09482fb50a979c508d2950ed95f5621ec77f4e385962006b83a", size = 4696782, upload-time = "2026-06-09T22:31:45.615Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/c2/81a4fb4e4373c500bb526bc337ac5719dd31dd15b970b84a238168c6aa08/cryptography-48.0.1-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:4ab0a343c807bbcd90c971cd1ecf072937cd01847a9e002bef88fb47ac6be577", size = 4696618, upload-time = "2026-06-09T22:31:11.564Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/0b/aa68b221dde92d09cb29a024ede17550ee21e77a404e59fc093c82bb51e1/cryptography-48.0.1-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:9621de99d2da096006b629979efd8ae7eb2d8b822488d0c89ee4000c306c59b1", size = 5289970, upload-time = "2026-06-09T22:31:20.368Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/13/fba657f958d2af66ea959a4ba01212632089249d34af1ae48054136344d7/cryptography-48.0.1-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:88c852a0ae366e262e5a1744b685e6a433dc8788dd2a277e418bf4904203609d", size = 4731873, upload-time = "2026-06-09T22:31:22.253Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/4c/9a964756d24a26b3e34dfcb16f961b89838786e6700b635b0d1e3adff4b6/cryptography-48.0.1-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:43c5835e2cb98c8733d86f57d6fc879b613f5c3478607281c3e36daffc6dd8a6", size = 4330804, upload-time = "2026-06-09T22:31:36.56Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/0f/a10f3a6eb12950a10e3a874070283aa2dd5875b2bfd15fad8a3e17b3f13e/cryptography-48.0.1-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:fe0180af5bf9236518a087e35bf2d9a347d5f5f51e63c579d683ddff424e3d46", size = 4696217, upload-time = "2026-06-09T22:31:13.351Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/6f/5cd12f951165ea73ef85266775d97e4c763b2474ccfd816dd69d3a18d6f8/cryptography-48.0.1-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:b7a2d1a937a738a881737cec135a38bb61470589b17515b9f73f571d0ae10401", size = 5245252, upload-time = "2026-06-09T22:32:02.193Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/ab/8aaa12e4516ec4464033ab79b6f3b592bd5a92102467c4ace8a0d970203f/cryptography-48.0.1-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:b74ca3b8e5ecdd833bf6a002ca41b4793bb27fb8f1c06ffaf2643c9e9140e31b", size = 4731388, upload-time = "2026-06-09T22:32:04.019Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/24/50027ea4dca85ec1f40688f3c24fb32ccacd520583c9592c3cc95628e6fb/cryptography-48.0.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2c37f2461406063b417837f5f3daab668652acd82423efcd7f0a9f04be972de1", size = 4824186, upload-time = "2026-06-09T22:32:18.707Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/41/04cb5eb17085ade6f50cc611fb657df6a0f5885350de8764ece89c050197/cryptography-48.0.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:86fe77abb1bd87afb251d4d02ada7ecf53a32cee9b67d976abb2e45a13297475", size = 4964539, upload-time = "2026-06-09T22:31:18.793Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/bf/ed70785c496e89d7e73b7cda2d21f2447fd6d4e821714b8d04ff217fed92/cryptography-48.0.1-cp39-abi3-win32.whl", hash = "sha256:6b2c0c3e6ccf3ade7750f836ef3ee36eea250cc467d45c256895573ac08cc6f1", size = 3282307, upload-time = "2026-06-09T22:30:53.162Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/ff/371ea7d252656ee1eb6d83eeeef3d1d0c6baf1d6497687d081ea03814670/cryptography-48.0.1-cp39-abi3-win_amd64.whl", hash = "sha256:9a49ca6c81417f6a5edb50375a60cccdd70fa0a91a5211829dbea74eba94d2ac", size = 3793408, upload-time = "2026-06-09T22:32:15.191Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/3d/01f6dd9190170a5a241e0e98c2d04be3664a9e6f5b9b872cde63aff1c3dd/cryptography-48.0.0-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:0c558d2cdffd8f4bbb30fc7134c74d2ca9a476f830bb053074498fbc86f41ed6", size = 8001587, upload-time = "2026-05-04T22:57:36.803Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/6e/e90527eef33f309beb811cf7c982c3aeffcce8e3edb178baa4ca3ae4a6fa/cryptography-48.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5333311663ea94f75dd408665686aaf426563556bb5283554a3539177e03b8c", size = 4690433, upload-time = "2026-05-04T22:57:40.373Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/04/673510ed51ddff56575f306cf1617d80411ee76831ccd3097599140efdfe/cryptography-48.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7995ef305d7165c3f11ae07f2517e5a4f1d5c18da1376a0a9ed496336b69e5f3", size = 4710620, upload-time = "2026-05-04T22:57:42.935Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/d5/e9c4ef932c8d800490c34d8bd589d64a31d5890e27ec9e9ad532be893294/cryptography-48.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:40ba1f85eaa6959837b1d51c9767e230e14612eea4ef110ee8854ada22da1bf5", size = 4696283, upload-time = "2026-05-04T22:57:45.294Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/29/174b9dfb60b12d59ecfc6cfa04bc88c21b42a54f01b8aae09bb6e51e4c7f/cryptography-48.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:369a6348999f94bbd53435c894377b20ab95f25a9065c283570e70150d8abc3c", size = 5296573, upload-time = "2026-05-04T22:57:47.933Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/38/0d29a6fd7d0d1373f0c0c88a04ba20e359b257753ac497564cd660fc1d55/cryptography-48.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a0e692c683f4df67815a2d258b324e66f4738bd7a96a218c826dce4f4bd05d8f", size = 4743677, upload-time = "2026-05-04T22:57:50.067Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/be/eef653013d5c63b6a490529e0316f9ac14a37602965d4903efed1399f32b/cryptography-48.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:18349bbc56f4743c8b12dc32e2bccb2cf83ee8b69a3bba74ef8ae857e26b3d25", size = 4330808, upload-time = "2026-05-04T22:57:52.301Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/9e/500463e87abb7a0a0f9f256ec21123ecde0a7b5541a15e840ea54551fd81/cryptography-48.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:7e8eac43dfca5c4cccc6dad9a80504436fca53bb9bc3100a2386d730fbe6b602", size = 4695941, upload-time = "2026-05-04T22:57:54.603Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e3/dc/7303087450c2ec9e7fbb750e17c2abfbc658f23cbd0e54009509b7cc4091/cryptography-48.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:9ccdac7d40688ecb5a3b4a604b8a88c8002e3442d6c60aead1db2a89a041560c", size = 5252579, upload-time = "2026-05-04T22:57:57.207Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/c0/7101d3b7215edcdc90c45da544961fd8ed2d6448f77577460fa75a8443f7/cryptography-48.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:bd72e68b06bb1e96913f97dd4901119bc17f39d4586a5adf2d3e47bc2b9d58b5", size = 4743326, upload-time = "2026-05-04T22:57:59.535Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/d8/5b833bad13016f562ab9d063d68199a4bd121d18458e439515601d3357ec/cryptography-48.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:59baa2cb386c4f0b9905bd6eb4c2a79a69a128408fd31d32ca4d7102d4156321", size = 4826672, upload-time = "2026-05-04T22:58:01.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/e1/7074eb8bf3c135558c73fc2bcf0f5633f912e6fb87e868a55c454080ef09/cryptography-48.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9249e3cd978541d665967ac2cb2787fd6a62bddf1e75b3e347a594d7dacf4f74", size = 4972574, upload-time = "2026-05-04T22:58:03.968Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/70/e5a1b41d325f797f39427aa44ef8baf0be500065ab6d8e10369d850d4a4f/cryptography-48.0.0-cp311-abi3-win32.whl", hash = "sha256:9c459db21422be75e2809370b829a87eb37f74cd785fc4aa9ea1e5f43b47cda4", size = 3294868, upload-time = "2026-05-04T22:58:06.467Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/ac/8ac51b4a5fc5932eb7ee5c517ba7dc8cd834f0048962b6b352f00f41ebf9/cryptography-48.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:5b012212e08b8dd5edc78ef54da83dd9892fd9105323b3993eff6bea65dc21d7", size = 3817107, upload-time = "2026-05-04T22:58:08.845Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/84/70e3feea9feea87fd7cbe77efb2712ae1e3e6edf10749dc6e95f4e60e455/cryptography-48.0.0-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:3cb07a3ed6431663cd321ea8a000a1314c74211f823e4177fefa2255e057d1ec", size = 7986556, upload-time = "2026-05-04T22:58:11.172Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/6e/18e07a618bb5442ba10cf4df16e99c071365528aa570dfcb8c02e25a303b/cryptography-48.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8c7378637d7d88016fa6791c159f698b3d3eed28ebf844ac36b9dc04a14dae18", size = 4684776, upload-time = "2026-05-04T22:58:13.712Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/6a/4ea3b4c6c6759794d5ee2103c304a5076dc4b19ae1f9fe47dba439e159e9/cryptography-48.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cc90c0b39b2e3c65ef52c804b72e3c58f8a04ab2a1871272798e5f9572c17d20", size = 4698121, upload-time = "2026-05-04T22:58:16.448Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/59/6ff6ad6cae03bb887da2a5860b2c9805f8dac969ef01ce563336c49bd1d1/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:76341972e1eff8b4bea859f09c0d3e64b96ce931b084f9b9b7db8ef364c30eff", size = 4690042, upload-time = "2026-05-04T22:58:18.544Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ca/b4/fc334ed8cfd705aca282fe4d8f5ae64a8e0f74932e9feecb344610cf6e4d/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:55b7718303bf06a5753dcdccf2f3945cf18ad7bffde41b61226e4db31ab89a9c", size = 5282526, upload-time = "2026-05-04T22:58:20.75Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/11/08/9f8c5386cc4cd90d8255c7cdd0f5baf459a08502a09de30dc51f553d38dc/cryptography-48.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:a64697c641c7b1b2178e573cbc31c7c6684cd56883a478d75143dbb7118036db", size = 4733116, upload-time = "2026-05-04T22:58:23.627Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/77/99307d7574045699f8805aa500fa0fb83422d115b5400a064ddd306d7750/cryptography-48.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:561215ea3879cb1cbbf272867e2efda62476f240fb58c64de6b393ae19246741", size = 4316030, upload-time = "2026-05-04T22:58:25.581Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/36/a608b98337af3cb2aff4818e406649d30572b7031918b04c87d979495348/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:ad64688338ed4bc1a6618076ba75fd7194a5f1797ac60b47afe926285adb3166", size = 4689640, upload-time = "2026-05-04T22:58:27.747Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dd/a6/825010a291b4438aecc1f568bc428189fc1175515223632477c07dc0a6df/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:906cbf0670286c6e0044156bc7d4af9cbb0ef6db9f73e52c3ec56ba6bdde5336", size = 5237657, upload-time = "2026-05-04T22:58:29.848Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/09/4e76a09b4caa29aad535ddc806f5d4c5d01885bd978bd984fbc6ca032cae/cryptography-48.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:ea8990436d914540a40ab24b6a77c0969695ed52f4a4874c5137ccf7045a7057", size = 4732362, upload-time = "2026-05-04T22:58:32.009Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/78/444fa04a77d0cb95f417dda20d450e13c56ba8e5220fc892a1658f44f882/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c18684a7f0cc9a3cb60328f496b8e3372def7c5d2df39ac267878b05565aaaae", size = 4819580, upload-time = "2026-05-04T22:58:34.254Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/85/ea67067c70a1fd4be2c63d35eeed82658023021affccc7b17705f8527dd2/cryptography-48.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9be5aafa5736574f8f15f262adc81b2a9869e2cfe9014d52a44633905b40d52c", size = 4963283, upload-time = "2026-05-04T22:58:36.376Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/54/cc6d0f3deac3e81c7f847e8a189a12b6cdd65059b43dad25d4316abd849a/cryptography-48.0.0-cp314-cp314t-win32.whl", hash = "sha256:c17dfe85494deaeddc5ce251aebd1d60bbe6afc8b62071bb0b469431a000124f", size = 3270954, upload-time = "2026-05-04T22:58:38.791Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/49/67/cc947e288c0758a4e5473d1dcb743037ab7785541265a969240b8885441a/cryptography-48.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27241b1dc9962e056062a8eef1991d02c3a24569c95975bd2322a8a52c6e5e12", size = 3797313, upload-time = "2026-05-04T22:58:40.746Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/63/61d4a4e1c6b6bab6ce1e213cd36a24c415d90e76d78c5eb8577c5541d2e8/cryptography-48.0.0-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:58d00498e8933e4a194f3076aee1b4a97dfec1a6da444535755822fe5d8b0b86", size = 7983482, upload-time = "2026-05-04T22:58:43.769Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/ac/f5b5995b87770c693e2596559ffafe195b4033a57f14a82268a2842953f3/cryptography-48.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:614d0949f4790582d2cc25553abd09dd723025f0c0e7c67376a1d77196743d6e", size = 4683266, upload-time = "2026-05-04T22:58:46.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/c6/8b14f67e18338fbc4adb76f66c001f5c3610b3e2d1837f268f47a347dbbb/cryptography-48.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7ce4bfae76319a532a2dc68f82cc32f5676ee792a983187dac07183690e5c66f", size = 4696228, upload-time = "2026-05-04T22:58:48.22Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ea/73/f808fbae9514bd91b47875b003f13e284c8c6bdfd904b7944e803937eec1/cryptography-48.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:2eb992bbd4661238c5a397594c83f5b4dc2bc5b848c365c8f991b6780efcc5c7", size = 4689097, upload-time = "2026-05-04T22:58:50.9Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/01/d86632d7d28db8ae83221995752eeb6639ffb374c2d22955648cf8d52797/cryptography-48.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:22a5cb272895dce158b2cacdfdc3debd299019659f42947dbdac6f32d68fe832", size = 5283582, upload-time = "2026-05-04T22:58:53.017Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/e1/50edc7a50334807cc4791fc4a0ce7468b4a1416d9138eab358bfc9a3d70b/cryptography-48.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2b4d59804e8408e2fea7d1fbaf218e5ec984325221db76e6a241a9abd6cdd95c", size = 4730479, upload-time = "2026-05-04T22:58:55.611Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/af/99a582b1b1641ff5911ac559beb45097cf79efd4ead4657f578ef1af2d47/cryptography-48.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:984a20b0f62a26f48a3396c72e4bc34c66e356d356bf370053066b3b6d54634a", size = 4326481, upload-time = "2026-05-04T22:58:57.607Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/ee/89aa26a06ef0a7d7611788ffd571a7c50e368cc6a4d5eef8b4884e866edb/cryptography-48.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5a5ed8fde7a1d09376ca0b40e68cd59c69fe23b1f9768bd5824f54681626032a", size = 4688713, upload-time = "2026-05-04T22:59:00.077Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/ba/bcb1b0bb7a33d4c7c0c4d4c7874b4a62ae4f56113a5f4baefa362dfb1f0f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:8cd666227ef7af430aa5914a9910e0ddd703e75f039cef0825cd0da71b6b711a", size = 5238165, upload-time = "2026-05-04T22:59:02.317Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/70/ca4003b1ce5ca3dc3186ada51908c8a9b9ff7d5cab83cc0d43ee14ec144f/cryptography-48.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9071196d81abc88b3516ac8cdfad32e2b66dd4a5393a8e68a961e9161ddc6239", size = 4729947, upload-time = "2026-05-04T22:59:05.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/a0/4ec7cf774207905aef1a8d11c3750d5a1db805eb380ee4e16df317870128/cryptography-48.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1e2d54c8be6152856a36f0882ab231e70f8ec7f14e93cf87db8a2ed056bf160c", size = 4822059, upload-time = "2026-05-04T22:59:07.802Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/75/a2e55f99c16fcac7b5d6c1eb19ad8e00799854d6be5ca845f9259eae1681/cryptography-48.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a5da777e32ffed6f85a7b2b3f7c5cbc88c146bfcd0a1d7baf5fcc6c52ee35dd4", size = 4960575, upload-time = "2026-05-04T22:59:09.851Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/23/6e6f32143ab5d8b36ca848a502c4bcd477ae75b9e1677e3530d669062578/cryptography-48.0.0-cp39-abi3-win32.whl", hash = "sha256:77a2ccbbe917f6710e05ba9adaa25fb5075620bf3ea6fb751997875aff4ae4bd", size = 3279117, upload-time = "2026-05-04T22:59:12.019Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/9a/0fea98a70cf1749d41d738836f6349d97945f7c89433a259a6c2642eefeb/cryptography-48.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:16cd65b9330583e4619939b3a3843eec1e6e789744bb01e7c7e2e62e33c239c8", size = 3792100, upload-time = "2026-05-04T22:59:14.884Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -360,14 +360,14 @@ dev = [
|
|||
requires-dist = [
|
||||
{ name = "aiofiles", specifier = ">=24.1.0" },
|
||||
{ name = "asyncpg", specifier = ">=0.31.0" },
|
||||
{ name = "cryptography", specifier = ">=48.0.1" },
|
||||
{ name = "cryptography", specifier = ">=46.0.0" },
|
||||
{ name = "fastapi", specifier = ">=0.136.0" },
|
||||
{ name = "httpx", specifier = ">=0.28.1" },
|
||||
{ name = "jinja2", specifier = ">=3.1.0" },
|
||||
{ name = "jinja2-fragments", specifier = ">=0.1.0" },
|
||||
{ name = "pydantic", extras = ["email"], specifier = ">=2.13.2" },
|
||||
{ name = "pydantic-settings", specifier = ">=2.14.2" },
|
||||
{ name = "python-multipart", specifier = ">=0.0.31" },
|
||||
{ name = "pydantic-settings", specifier = ">=2.13.1" },
|
||||
{ name = "python-multipart", specifier = ">=0.0.18" },
|
||||
{ name = "sqlalchemy", extras = ["asyncio"], specifier = ">=2.0.49" },
|
||||
]
|
||||
|
||||
|
|
@ -771,16 +771,16 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "pydantic-settings"
|
||||
version = "2.14.2"
|
||||
version = "2.13.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pydantic" },
|
||||
{ name = "python-dotenv" },
|
||||
{ name = "typing-inspection" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/5c/b5/8f48e906c3e0205276e8bd8cb7512217a87b2685304d64be27cad5b3019f/pydantic_settings-2.14.2.tar.gz", hash = "sha256:c19dd64b19097f1de80184f0cc7b0272a13ae6e170cbf240a3e27e381ed14a5f", size = 237700, upload-time = "2026-06-19T13:44:56.324Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/52/6d/fffca34caecc4a3f97bda81b2098da5e8ab7efc9a66e819074a11955d87e/pydantic_settings-2.13.1.tar.gz", hash = "sha256:b4c11847b15237fb0171e1462bf540e294affb9b86db4d9aa5c01730bdbe4025", size = 223826, upload-time = "2026-02-19T13:45:08.055Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/77/c1/6e422f34e569cf8e18df68d1939c81c099d2b61e4f7d9621c8a77560799c/pydantic_settings-2.14.2-py3-none-any.whl", hash = "sha256:a20c97b37910b6550d5ea50fbcc2d4187defe58cd57070b73863d069419c9440", size = 61715, upload-time = "2026-06-19T13:44:55.02Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/4b/ccc026168948fec4f7555b9164c724cf4125eac006e176541483d2c959be/pydantic_settings-2.13.1-py3-none-any.whl", hash = "sha256:d56fd801823dbeae7f0975e1f8c8e25c258eb75d278ea7abb5d9cebb01b56237", size = 58929, upload-time = "2026-02-19T13:45:06.034Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -794,11 +794,11 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "python-multipart"
|
||||
version = "0.0.31"
|
||||
version = "0.0.28"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/64/7e/9b35ad8f3d9ca680f7c87a88f19612fdd8da9796c4d3b46e560ac79dcc4a/python_multipart-0.0.31.tar.gz", hash = "sha256:fc631183bb13e56db3158a4909908dfb2e23565286744e798241e63750e5d680", size = 46689, upload-time = "2026-06-04T08:27:49.014Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/82/54/a85eb421fbdd5007bc5af39d0f4ed9fa609e0fedbfdc2adcf0b34526870e/python_multipart-0.0.28.tar.gz", hash = "sha256:8550da197eac0f7ab748961fc9509b999fa2662ea25cef857f05249f6893c0f8", size = 45314, upload-time = "2026-05-10T11:05:16.596Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5e/1e/7f7f299527a5a8ad90acd5f2f78dfa6c8495c6301a3205106ea68a84de96/python_multipart-0.0.31-py3-none-any.whl", hash = "sha256:8408153d68a9773291fc1da39a8b85a50044bddbabd2dd72e9229776b7b15e28", size = 29996, upload-time = "2026-06-04T08:27:47.804Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/a2/43bbc5860b5034e2af4ef99a0e04d726ff329c43e192ef3abaa8d7ecfce5/python_multipart-0.0.28-py3-none-any.whl", hash = "sha256:10faac07eb966c3f48dc415f9dee46c04cb10d58d30a35677db8027c825ed9b6", size = 29438, upload-time = "2026-05-10T11:05:15.052Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -989,14 +989,14 @@ asyncio = [
|
|||
|
||||
[[package]]
|
||||
name = "starlette"
|
||||
version = "1.3.1"
|
||||
version = "1.0.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "anyio" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/eb/e3/7c1dc7381d9f8ab7d854328ebfa884e62cb3f3d8549ddfd37c7814f42afa/starlette-1.3.1.tar.gz", hash = "sha256:05d0213193f2fbaae60e2ecb593b4add4262ad4e46536b54abe36f11a71724e0", size = 2703240, upload-time = "2026-06-12T09:23:11.602Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/08/a3/84e821cc54b4ab50ae6dbc6ac3800a651b65ec35f045cc73785380654057/starlette-1.0.1.tar.gz", hash = "sha256:512399c5f1de7fac99c88572212ded9ddeddef2fb32afa82d724000e88b38f4f", size = 2659596, upload-time = "2026-05-21T21:58:58.433Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/bb/2799cc2ede3ed41131f8975621e7213dfc7ef4acbbaadfa440f32500c370/starlette-1.3.1-py3-none-any.whl", hash = "sha256:c7372aae11c3c3f26a42df7bd626cec2f47d03483d261d369516a615a53714c6", size = 73632, upload-time = "2026-06-12T09:23:10.017Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/e1/b2df4bc09a1e51ff664c1e17018a4274b42e5e9352e4a478ea540512dc88/starlette-1.0.1-py3-none-any.whl", hash = "sha256:7c0e69b2ee1c848bd54669d908500117a3ee13de603a21427e5c6fc1adf98dcd", size = 72802, upload-time = "2026-05-21T21:58:56.551Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue