style: format remaining files
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
Executables live here.
|
||||
|
||||
| binary | purpose |
|
||||
| --- | --- |
|
||||
| ------------ | ----------------- |
|
||||
| `cmd/server` | web server |
|
||||
| `cmd/user` | user creation CLI |
|
||||
|
||||
12
sqlc.yaml
12
sqlc.yaml
@@ -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
|
||||
|
||||
@@ -60,11 +60,11 @@
|
||||
--radius: 6px;
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
[data-theme='light'] {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -11,7 +11,5 @@
|
||||
"removeComments": false,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": [
|
||||
"static/*.ts"
|
||||
]
|
||||
"include": ["static/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user