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.
| Path | Purpose |
| --- | --- |
| ----------------- | ------------------------------------------------ |
| `api/*` | Feature routes: anime, auth, playback, watchlist |
| `cmd/server` | Application entrypoint and CLI commands |
| `integrations/*` | External API clients and scraping |
@@ -109,7 +109,7 @@ docker exec mal ./cmd/user <username> <password>
## Configuration
| Variable | Default | Description |
| --- | --- | --- |
| ----------------------- | ------------------- | ----------------------------------------------------------- |
| `PORT` | `3000` | HTTP listen port |
| `DATABASE_FILE` | `mal.db` | SQLite database file path |
| `ENV` | _(empty)_ | Set to `production` to enable secure session cookies |

View File

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

View File

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

View File

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

View File

@@ -3,7 +3,7 @@
## Available Templates
| Component | File | Purpose |
|-----------|------|---------|
| ----------------- | -------------------------- | -------------------------------------------- |
| Anime Card | `anime_card.gohtml` | Poster card with hover reveal |
| Continue Watching | `continue_watching.gohtml` | Continue watching row |
| 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
Components accept a `dict` with named keys:
- `dict "Key" .Value "Key2" .Value2`
This keeps prop names explicit and self-documenting.

View File

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