style: format remaining files

This commit is contained in:
2026-05-10 19:25:51 +02:00
parent 3703bbfcfe
commit b152e246ff
6 changed files with 43 additions and 44 deletions

View File

@@ -53,7 +53,7 @@ Upstream APIs can fail transiently with `429` and `5xx` responses, so the app fa
The codebase follows standard Go project layout conventions. The codebase follows standard Go project layout conventions.
| Path | Purpose | | Path | Purpose |
| --- | --- | | ----------------- | ------------------------------------------------ |
| `api/*` | Feature routes: anime, auth, playback, watchlist | | `api/*` | Feature routes: anime, auth, playback, watchlist |
| `cmd/server` | Application entrypoint and CLI commands | | `cmd/server` | Application entrypoint and CLI commands |
| `integrations/*` | External API clients and scraping | | `integrations/*` | External API clients and scraping |
@@ -109,7 +109,7 @@ docker exec mal ./cmd/user <username> <password>
## Configuration ## Configuration
| Variable | Default | Description | | Variable | Default | Description |
| --- | --- | --- | | ----------------------- | ------------------- | ----------------------------------------------------------- |
| `PORT` | `3000` | HTTP listen port | | `PORT` | `3000` | HTTP listen port |
| `DATABASE_FILE` | `mal.db` | SQLite database file path | | `DATABASE_FILE` | `mal.db` | SQLite database file path |
| `ENV` | _(empty)_ | Set to `production` to enable secure session cookies | | `ENV` | _(empty)_ | Set to `production` to enable secure session cookies |

View File

@@ -3,6 +3,6 @@
Executables live here. Executables live here.
| binary | purpose | | binary | purpose |
| --- | --- | | ------------ | ----------------- |
| `cmd/server` | web server | | `cmd/server` | web server |
| `cmd/user` | user creation CLI | | `cmd/user` | user creation CLI |

View File

@@ -1,12 +1,12 @@
version: "2" version: '2'
sql: sql:
- engine: "sqlite" - engine: 'sqlite'
queries: "internal/db/queries.sql" queries: 'internal/db/queries.sql'
schema: "migrations/" schema: 'migrations/'
gen: gen:
go: go:
package: "db" package: 'db'
out: "internal/db" out: 'internal/db'
emit_json_tags: true emit_json_tags: true
emit_prepared_queries: false emit_prepared_queries: false
emit_interface: true emit_interface: true

View File

@@ -60,11 +60,11 @@
--radius: 6px; --radius: 6px;
} }
[data-theme="light"] { [data-theme='light'] {
color-scheme: light; color-scheme: light;
} }
[data-theme="dark"] { [data-theme='dark'] {
color-scheme: dark; color-scheme: dark;
} }

View File

@@ -3,7 +3,7 @@
## Available Templates ## Available Templates
| Component | File | Purpose | | Component | File | Purpose |
|-----------|------|---------| | ----------------- | -------------------------- | -------------------------------------------- |
| Anime Card | `anime_card.gohtml` | Poster card with hover reveal | | Anime Card | `anime_card.gohtml` | Poster card with hover reveal |
| Continue Watching | `continue_watching.gohtml` | Continue watching row | | Continue Watching | `continue_watching.gohtml` | Continue watching row |
| Dropdown | `dropdown.gohtml` | Dropdown wrapper (also uses `<ui-dropdown>`) | | Dropdown | `dropdown.gohtml` | Dropdown wrapper (also uses `<ui-dropdown>`) |
@@ -27,6 +27,7 @@ All components are exposed as Go templates. Import by name:
## Props Convention ## Props Convention
Components accept a `dict` with named keys: Components accept a `dict` with named keys:
- `dict "Key" .Value "Key2" .Value2` - `dict "Key" .Value "Key2" .Value2`
This keeps prop names explicit and self-documenting. This keeps prop names explicit and self-documenting.

View File

@@ -11,7 +11,5 @@
"removeComments": false, "removeComments": false,
"skipLibCheck": true "skipLibCheck": true
}, },
"include": [ "include": ["static/*.ts"]
"static/*.ts"
]
} }