mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
refactor: update play time property and enhance player settings management
- Changed the play time property from 'play_time' to 'time' in HomeScreen. - Removed unused player control functions from PlayScreen. - Added PlayerSettings interface and implemented PlayerSettingsManager for local storage of player settings. - Refactored PlayRecordManager to merge API records with local player settings. - Updated authentication logic in authStore to handle optional username parameter in login function. - Cleaned up and optimized imports across various components.
This commit is contained in:
@@ -96,7 +96,7 @@ export default function HomeScreen() {
|
||||
year={item.year}
|
||||
rate={item.rate}
|
||||
progress={item.progress}
|
||||
playTime={item.play_time}
|
||||
playTime={item.time}
|
||||
episodeIndex={item.episodeIndex}
|
||||
sourceName={item.sourceName}
|
||||
totalEpisodes={item.totalEpisodes}
|
||||
|
||||
@@ -26,7 +26,6 @@ export default function PlayScreen() {
|
||||
|
||||
const { detail } = useDetailStore();
|
||||
const {
|
||||
status,
|
||||
isLoading,
|
||||
showControls,
|
||||
showNextEpisodeOverlay,
|
||||
@@ -37,9 +36,6 @@ export default function PlayScreen() {
|
||||
setShowControls,
|
||||
setShowNextEpisodeOverlay,
|
||||
reset,
|
||||
playEpisode,
|
||||
togglePlayPause,
|
||||
seek,
|
||||
} = usePlayerStore();
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user