Skip to content

Commit

Permalink
Player features (#25)
Browse files Browse the repository at this point in the history
* Mockup of sleep timer, playback rate, and chapter selection buttons

* Playback rate modal + streaming/downloaded indicator

* Refactor store names

* Refactor book, person, and series screens to use better queries and fade in content when loaded

* Refactor media screen to use better queries and fade in content when loaded

* Re-arrange routes to make more sense

* Smoother sign-out process

* Sign-out if we ever get a 401

* useFadeInQuery for downloads

* Refactor player and library screen to use better queries and fade in content when loaded

* Current chapter display and chapter skip buttons

* Chapter select modal

* Hide scrubber timecode unless scrubbing

* Add new local user settings database table

* Separate actions from state

* Add sleep timer enabled boolean

* Move player state updates into player service

* Cleanup/refactor player store + playback service

* Sleep timer

* Tweak media loading; add some more forced syncs; style sleep timer and rate modals better
  • Loading branch information
doughsay authored Nov 4, 2024
1 parent 7f64ee0 commit df2bab3
Show file tree
Hide file tree
Showing 66 changed files with 7,200 additions and 2,989 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Check dependencies
run: bun expo install --check
- name: Run expo-doctor
run: bun run doctor
run: bun doctor
- name: Run eslint
run: bun run lint
run: bun lint
- name: Run tsc
run: bun tsc
- name: Run prebuild
run: bun run prebuild
run: bun prebuild
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ npm-debug.*
*.orig.*
web-build/
*.apk
*.aab

# macOS
.DS_Store
Expand Down
Binary file modified bun.lockb
Binary file not shown.
5 changes: 5 additions & 0 deletions drizzle/0007_numerous_wong.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE `local_user_settings` (
`user_email` text PRIMARY KEY NOT NULL,
`preferred_playback_rate` real DEFAULT 1 NOT NULL,
`sleep_timer` integer DEFAULT 600 NOT NULL
);
1 change: 1 addition & 0 deletions drizzle/0008_hard_raider.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `local_user_settings` ADD `sleep_timer_enabled` integer DEFAULT false NOT NULL;
Loading

0 comments on commit df2bab3

Please sign in to comment.