1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! The state every Redseat app shows (feature `app`), so each app only draws it: a
//! desktop app on GPUI, an Exact app, native mobile apps through bindings.
//!
//! - [`ServerCopy`]: a server through its local copy ([`Mirror`](crate::Mirror)): the
//! connection in the background, the libraries in the sidebar's order, a library as
//! its grid shows it ([`LibraryView`]: its count, held still while it syncs, and the
//! sync's progress), its medias in the grid's order, the names of its people and
//! tags, where its files are, and the user's changes (offline too, through the
//! copy's action queue: what waits, what failed, retry and discard).
//! - [`TokenStore`]: the cloud session token between runs.
//! - [`details`]: a media's details panel: its info rows, dates, place, relations as
//! chips, what its "Add" field offers, its faces, what the user may change, and the
//! queue actions of its chips.
//! - [`filter`]: a grid's order and filters as the user sets them, their tokens'
//! wording, and the query they make.
//! - [`overview`]: a server's Overview in its settings: what the user is on it, how
//! this device reaches it, the addresses it reports, and leaving or deleting it.
//! - [`text`]: what the screens say: durations, sizes, times ago, the sync's
//! progress, cloud errors.
//! - [`tracks`]: a video's audio and subtitle tracks: their labels and the ones to
//! play first.
//! - [`downloads`] (native): files kept offline to play without the server (in-process
//! or handed to a mobile OS downloader), and copies saved where the user chose.
//! - [`sources`]: a movie's or an episode's files found online by the server's
//! plugins: grouped, ranked, played or added to the library, or the best one that
//! works played or added (Play Best, Add Best).
//! - [`convert`]: video conversions: the editor's fields, their checks and the
//! request they make, the grid's one-click qualities, saved presets, and (with
//! `mirror`) the server's conversions as they go.
//!
//! The state is read, not pushed: an app reads what it shows, and reads it again when
//! a [`Change`] says it changed. That fits every UI: an Exact source observes a topic,
//! a GPUI view calls `cx.notify()`, a SwiftUI or Compose model publishes the value
//! read. Reads of the copy are async (SQLite); the rest answers at once.
//!
//! The module starts no runtime of its own: on native targets [`ServerCopy::open`] runs
//! on the tokio runtime it is called in, and [`ServerCopy::with_mirror`] takes the
//! app's [`Runtime`](crate::mirror::Runtime), as the mirror does.
pub use crate;
pub use ;
pub use TokenStore;