mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 09:13:24 +00:00
ENH - merge Picstagram Sky UI updates
Merge the Picstagram Sky UI work and its dependent phone, media, voice, gallery, app store, setup, and UI parity updates into weather-app. Resolve the frontend development port configuration and retain the Sky UI EasyShare implementation. Frontend validation and local resource deployment completed; included configuration, locale, and SQL updates require no separate migration step beyond this merge.
This commit is contained in:
@@ -92,6 +92,7 @@ export function useWeatherService() {
|
||||
: phone.t('Common.loading'),
|
||||
),
|
||||
forecast: computed(() => weather.forecast),
|
||||
loading: computed(() => weather.isLoading),
|
||||
location: computed(() =>
|
||||
phone.t(
|
||||
`Apps.weather.regions.${weather.forecast?.region ?? 'los_santos'}`,
|
||||
@@ -103,17 +104,16 @@ export function useWeatherService() {
|
||||
export function useMusicService() {
|
||||
const music = useMusicStore()
|
||||
return {
|
||||
current: computed(
|
||||
() =>
|
||||
music.currentTrack ?? {
|
||||
artist: 'Music',
|
||||
title: 'Not Playing',
|
||||
},
|
||||
),
|
||||
current: computed(() => music.currentTrack),
|
||||
next(): void {
|
||||
void music.next()
|
||||
},
|
||||
playing: computed(() => music.isPlaying),
|
||||
progress: computed(() =>
|
||||
music.duration > 0
|
||||
? Math.max(0, Math.min(100, (music.currentTime / music.duration) * 100))
|
||||
: 0,
|
||||
),
|
||||
toggle(): void {
|
||||
void music.toggle()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user