Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const albums: Array<AlbumInfo> = [{
- id: 'album1',
- title: 'Album 1',
- artist: 'Artist 1',
- imageURL: 'http://lorempixel.com/200/200/cats/1/'
- }, {
- id: 'album1',
- title: 'Album 2',
- artist: 'Artist2',
- imageURL: 'http://lorempixel.com/200/200/cats/4/'
- }, {
- id: 'album1',
- title: 'Album 3',
- artist: 'Artist3',
- imageURL: 'http://lorempixel.com/200/200/cats/3/'
- }]
- export const songs: Array<Song> = [
- {
- id: 'song1',
- title: 'Lorem Ipsum Dolor',
- artist: 'Dopsh Milkinfriendman',
- album: albums[0],
- year: '2001',
- path: ['abc','song1.mp3'],
- audio: {
- url: '',
- length: (2*60 + 30)*1000
- }
- },
- {
- id: 'song2',
- title: 'Song 2',
- artist: 'Artist 1',
- album: albums[0],
- year: '2001',
- path: ['abc','song2.mp3'],
- audio: {
- url: '',
- length: (2*60 + 16)*1000
- }
- },
- {
- id: 'song3',
- title: 'Song 3',
- artist: 'Artist 2',
- album: albums[1],
- year: '2005',
- path: ['abc','song3.mp3'],
- audio: {
- url: '',
- length: (1*60 + 50)*1000
- }
- },
- {
- id: 'song4',
- title: 'Elevator Music',
- artist: 'The Elevator Chorus',
- album: albums[2],
- year: '2001',
- path: ['abc','anotherdir','song4.mp3'],
- audio: {
- url: '',
- length: (3*60 + 30)*1000
- }
- }
- ]
- const artists = []
- const initialState: AppState = {
- route: {
- locationBeforeTransitions: null,
- },
- dashboardPage: {
- view: {
- id: 'favorites',
- songs: [songs[0], songs[2], songs[3]],
- playlists: [],
- albums: [],
- artists: [],
- selectedTab: 'songs'
- }
- },
- loginPage: {
- userName: 'josh',
- password: 'securepassword'
- },
- fileExplorer: {},
- language: { locale: 'en' },
- musicPlayer: {
- playHistory: [songs[0], songs[3]],
- currentSelection: songs[3],
- playing: false,
- progress: (59 * 60) * 1000
- },
- navbar: {
- servers: [{
- name: 'Seve\'s mStream Server',
- url: ''
- }, {
- name: 'Darn Coyote\'s mStream Server',
- url: ''
- }, {
- name: 'Paul\'s mStream Server',
- url: ''
- }, {
- name: 'Josh\'s mStream Server ',
- url: '',
- active: true
- }]
- },
- server: {
- name: "Josh's mStream Server",
- url: ''
- }
- }
- export default initialState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement