UNPKG

mt-music-player

Version:

A simply web music player app.

40 lines (39 loc) 717 B
export const userData = { name: '', avatar: '', key: '', }; export const playerState = { maximize: false, errorList: [], currentSong: null, state: 'paused', // playing, paused, loading, error volume: 0.1, muted: false, shuffle: false, mode: 'repeat', }; export const audioState = { currentTime: 0, duration: 180, }; export const toastState = { type: 'info', text: null, }; export const selectorState = { type: '', list: [], }; export const historyState = { // coupling `lib/history.js`, `lib/component.js` // {path, query, title, state} // state: {$key, $close, ...} list: [], currentIndex: -1, }; export const uploaderState = { // {file} list: [], errorList: [], };