Netflex 0.1.2: new screens, and an ARM build for the Raspberry Pi
Some checks failed
release / release (push) Failing after 18m38s
Some checks failed
release / release (push) Failing after 18m38s
- Pages from the web app: search, my list, anime hub and anime details, settings; the home and detail screens moved under src/screens on the shared page model (src/page.rs, ui/page.slint). - package.sh --arm cross-compiles support.bluefox.netflex-<version>-aarch64.tar.zst, which Fennec OS on ARM installs (docs/store.md). The release CI builds both: the GStreamer dev packages of amd64 and arm64 can't be installed together, so it swaps them between the two builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
39
AGENTS.md
39
AGENTS.md
@@ -7,17 +7,28 @@ Read first:
|
||||
## Layout
|
||||
|
||||
```
|
||||
app.toml store manifest (id support.bluefox.netflex; permissions network, gpu, audio)
|
||||
src/main.rs window, glass layer (lists every exported [GlassRect]), images, controller
|
||||
src/app.rs Controller: screens (message, signin, home, detail, player), Back stack, start-up, sign-in
|
||||
src/home.rs tabs (Kezdőlap, Filmek, Sorozatok, Listám, Keresés): rows, focus, lazy images, backdrop, search
|
||||
src/detail.rs title page: Play/Continue/Next target, My List, seasons, episodes
|
||||
src/player.rs sources -> /api/play/start -> probe -> sf_ui::video::Player; tracks, seek, OSD, progress
|
||||
src/api.rs Netflex HTTP API (mirrors netflex/packages/client/src/api.ts)
|
||||
src/task.rs blocking work on a thread, result on the UI thread
|
||||
ui/app.slint root: screen fades, one FocusScope -> Rust `key`, glass exports
|
||||
ui/{home,detail,player,signin}.slint, ui/types.slint
|
||||
tools/mock_server.py stand-in server (real Cinemeta data, password "netflex", --video file streamed)
|
||||
app.toml store manifest (id support.bluefox.netflex; permissions network, gpu, audio)
|
||||
src/main.rs window, glass layer (lists every exported [GlassRect]), images, controller
|
||||
src/app.rs Controller: screen stack, keys, input/picker/toast overlays, backdrop, start-up, sign-in
|
||||
src/page.rs the line-based page engine: lines (L) and chips (Ch) -> layout, focus, scroll, lazy images
|
||||
src/screens/mod.rs sections of the top nav, shared cards, Load<T>, opening a card
|
||||
src/screens/home.rs Kezdőlap: admin setup checklist, spotlight, Folytatás, the server's rows
|
||||
src/screens/source.rs Filmek / Sorozatok: Ajánlott, Könyvtáram, Böngészés (genre, year, rating, sort)
|
||||
src/screens/detail.rs film / series page: Play/Continue, My List, season cards, episodes, nCore versions
|
||||
src/screens/anime_hub.rs Anime: Ajánlott, Könyvtáram, Böngészés (AniList filters)
|
||||
src/screens/anime_detail.rs anime page: franchise seasons, release group, episodes, nyaa versions
|
||||
src/screens/mylist.rs Listám: saved and history
|
||||
src/screens/search.rs Keresés: embedded keyboard, results
|
||||
src/screens/settings.rs Beállítások: account, users, server; admin: VPN, nCore, seeding, sources, anime, TMDB; player; look
|
||||
src/player.rs source -> torrent -> probe -> sf_ui::video::Player; tracks, quality, prev/next, up next, skip intro
|
||||
src/api.rs Netflex HTTP API (mirrors netflex/packages/client/src/api.ts)
|
||||
src/config.rs server + token (config.toml), per-TV settings (device.toml: glass look, anime release groups)
|
||||
src/format.rs Hungarian texts: times, dates, languages, genres
|
||||
src/task.rs blocking work on a thread, result on the UI thread
|
||||
ui/app.slint root: screen fades, one FocusScope -> Rust `key`, glass exports
|
||||
ui/page.slint LinePage: draws the lines Rust lays out (nav, side list, keyboard)
|
||||
ui/{player,signin,overlays,types}.slint
|
||||
tools/mock_server.py stand-in server: Cinemeta + AniList data, admin pages, password "netflex", --video file
|
||||
```
|
||||
|
||||
## Rules of this codebase
|
||||
@@ -25,7 +36,11 @@ tools/mock_server.py stand-in server (real Cinemeta data, password "netflex", -
|
||||
- **Rust owns state and focus.** Slint only draws. Every key goes to `Controller::key`, except while an on-screen keyboard has the focus (signin, search).
|
||||
- **Short borrows:** never hold `state.borrow_mut()` while calling `images.load*`; a cached picture calls back at once. Use the `Then` enum pattern: decide under the borrow, act after it.
|
||||
- **Glass:** new glass elements need their `glass` listed in a root `out property <[GlassRect]>`, and that array added in `main.rs`. Nothing Slint draws may sit under a glass pane.
|
||||
- **Texts are Hungarian.** Follow the Netflex web app's behaviour (resume rules, track picking: `player.rs` tests).
|
||||
- **A new page** is a `Screen` (src/app.rs): `spec` returns lines, `activate` gets (line id, chip id). Never draw focus in Slint; the page engine does it.
|
||||
- **Feature parity:** every screen follows a page of the web app (`netflex/apps/web/src`); the module docs name it. Check there first.
|
||||
- **Texts are Hungarian.** Follow the Netflex web app's behaviour (resume rules, track picking, skip segments: `player.rs` tests).
|
||||
- **Free-standing `GlassButton`** (outside a layout) needs `width: self.preferred-width`, else it fills its parent.
|
||||
- **`match state.borrow().x { ... }` keeps the borrow for the whole match:** copy the value out first.
|
||||
|
||||
## Check your change
|
||||
|
||||
|
||||
Reference in New Issue
Block a user