Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const albums: Array<AlbumInfo> = [{
  2.   id: 'album1',
  3.   title: 'Album 1',
  4.   artist: 'Artist 1',
  5.   imageURL: 'http://lorempixel.com/200/200/cats/1/'
  6. }, {
  7.   id: 'album1',
  8.   title: 'Album 2',
  9.   artist: 'Artist2',
  10.   imageURL: 'http://lorempixel.com/200/200/cats/4/'
  11. }, {
  12.   id: 'album1',
  13.   title: 'Album 3',
  14.   artist: 'Artist3',
  15.   imageURL: 'http://lorempixel.com/200/200/cats/3/'
  16. }]
  17.  
  18. export const songs: Array<Song> = [
  19.   {
  20.     id: 'song1',
  21.     title: 'Lorem Ipsum Dolor',
  22.     artist: 'Dopsh Milkinfriendman',
  23.     album: albums[0],
  24.     year: '2001',
  25.     path: ['abc','song1.mp3'],
  26.     audio: {
  27.       url: '',
  28.       length: (2*60 + 30)*1000
  29.     }
  30.   },
  31.   {
  32.     id: 'song2',
  33.     title: 'Song 2',
  34.     artist: 'Artist 1',
  35.     album: albums[0],
  36.     year: '2001',
  37.     path: ['abc','song2.mp3'],
  38.     audio: {
  39.       url: '',
  40.       length: (2*60 + 16)*1000
  41.     }
  42.   },
  43.   {
  44.     id: 'song3',
  45.     title: 'Song 3',
  46.     artist: 'Artist 2',
  47.     album: albums[1],
  48.     year: '2005',
  49.     path: ['abc','song3.mp3'],
  50.     audio: {
  51.       url: '',
  52.       length: (1*60 + 50)*1000
  53.     }
  54.   },
  55.   {
  56.     id: 'song4',
  57.     title: 'Elevator Music',
  58.     artist: 'The Elevator Chorus',
  59.     album: albums[2],
  60.     year: '2001',
  61.     path: ['abc','anotherdir','song4.mp3'],
  62.     audio: {
  63.       url: '',
  64.       length: (3*60 + 30)*1000
  65.     }
  66.   }
  67. ]
  68.  
  69. const artists = []
  70.  
  71. const initialState: AppState = {
  72.   route: {
  73.     locationBeforeTransitions: null,
  74.   },
  75.   dashboardPage: {
  76.     view: {
  77.       id: 'favorites',
  78.       songs: [songs[0], songs[2], songs[3]],
  79.       playlists: [],
  80.       albums: [],
  81.       artists: [],
  82.       selectedTab: 'songs'
  83.     }
  84.   },
  85.   loginPage: {
  86.     userName: 'josh',
  87.     password: 'securepassword'
  88.   },
  89.   fileExplorer: {},
  90.   language: { locale: 'en' },
  91.   musicPlayer: {
  92.     playHistory: [songs[0], songs[3]],
  93.     currentSelection: songs[3],
  94.     playing: false,
  95.     progress: (59 * 60) * 1000
  96.   },
  97.   navbar: {
  98.     servers: [{
  99.       name: 'Seve\'s mStream Server',
  100.       url: ''
  101.     }, {
  102.       name: 'Darn Coyote\'s mStream Server',
  103.       url: ''
  104.     }, {
  105.       name: 'Paul\'s mStream Server',
  106.       url: ''
  107.     }, {
  108.       name: 'Josh\'s mStream Server ',
  109.       url: '',
  110.       active: true
  111.     }]
  112.   },
  113.   server: {
  114.     name: "Josh's mStream Server",
  115.     url: ''
  116.   }
  117. }
  118.  
  119. export default initialState
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement