owntone-server/htdocs/js/app.js

2 lines
108 KiB
JavaScript
Raw Normal View History

webpackJsonp([1],{"3CuR":function(t,s){},"46DV":function(t,s){},"46T3":function(t,s){},"4Suh":function(t,s){},"4XX/":function(t,s,a){"use strict";var i=a("3CuR"),e=a.n(i),n=a("Ho37");var l=function(t){a("BQ2u")},o=a("VU/8")(e.a,n.a,!1,l,null,null);s.default=o.exports},"6/Lu":function(t,s){},"6vIy":function(t,s){},"8QY/":function(t,s){},ASWg:function(t,s){},BQ2u:function(t,s){},CwkH:function(t,s){},E6Sb:function(t,s){},Ebb7:function(t,s){},GK12:function(t,s){},Gxly:function(t,s){},Ho37:function(t,s,a){"use strict";var i={render:function(){var t=this.$createElement,s=this._self._c||t;return s("section",{staticClass:"section"},[s("div",{staticClass:"container"},[s("div",{staticClass:"columns is-centered"},[s("div",{staticClass:"column is-four-fifths"},[s("nav",{staticClass:"level"},[s("div",{staticClass:"level-left"},[s("div",{staticClass:"level-item has-text-centered-mobile"},[s("div",[this._t("heading-left")],2)])]),this._v(" "),s("div",{staticClass:"level-right has-text-centered-mobile"},[this._t("heading-right")],2)]),this._v(" "),this._t("content"),this._v(" "),s("div",{staticStyle:{"margin-top":"16px"}},[this._t("footer")],2)],2)])])])},staticRenderFns:[]};s.a=i},Izzv:function(t,s){},JCHG:function(t,s){},KS7U:function(t,s){},Lq5b:function(t,s){},M8ZA:function(t,s){},NHnr:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i,e=a("7+uW"),n=a("mvHQ"),l=a.n(n),o=a("//Fk"),r=a.n(o),c=a("mtWM"),u=a.n(c),d=a("bOdI"),_=a.n(d),m=a("NYxO");e.a.use(m.a);var p=new m.a.Store({state:{config:{websocket_port:0,version:"",buildoptions:[]},library:{artists:0,albums:0,songs:0,db_playtime:0,updating:!1},audiobooks_count:{},podcasts_count:{},outputs:[],player:{state:"stop",repeat:"off",consume:!1,shuffle:!1,volume:0,item_id:0,item_length_ms:0,item_progress_ms:0},queue:{version:0,count:0,items:[]},spotify:{},spotify_new_releases:[],spotify_featured_playlists:[],notifications:{next_id:1,list:[]},recent_searches:[],hide_singles:!1,show_only_next_items:!1,show_burger_menu:!1},getters:{now_playing:function(t){var s=t.queue.items.find(function(s){return s.id===t.player.item_id});return void 0===s?{}:s}},mutations:(i={},_()(i,"UPDATE_CONFIG",function(t,s){t.config=s}),_()(i,"UPDATE_LIBRARY_STATS",function(t,s){t.library=s}),_()(i,"UPDATE_LIBRARY_AUDIOBOOKS_COUNT",function(t,s){t.audiobooks_count=s}),_()(i,"UPDATE_LIBRARY_PODCASTS_COUNT",function(t,s){t.podcasts_count=s}),_()(i,"UPDATE_OUTPUTS",function(t,s){t.outputs=s}),_()(i,"UPDATE_PLAYER_STATUS",function(t,s){t.player=s}),_()(i,"UPDATE_QUEUE",function(t,s){t.queue=s}),_()(i,"UPDATE_SPOTIFY",function(t,s){t.spotify=s}),_()(i,"SPOTIFY_NEW_RELEASES",function(t,s){t.spotify_new_releases=s}),_()(i,"SPOTIFY_FEATURED_PLAYLISTS",function(t,s){t.spotify_featured_playlists=s}),_()(i,"ADD_NOTIFICATION",function(t,s){if(s.topic){var a=t.notifications.list.findIndex(function(t){return t.topic===s.topic});if(a>=0)return void t.notifications.list.splice(a,1,s)}t.notifications.list.push(s)}),_()(i,"DELETE_NOTIFICATION",function(t,s){var a=t.notifications.list.indexOf(s);-1!==a&&t.notifications.list.splice(a,1)}),_()(i,"ADD_RECENT_SEARCH",function(t,s){var a=t.recent_searches.findIndex(function(t){return t===s});a>=0&&t.recent_searches.splice(a,1),t.recent_searches.splice(0,0,s),t.recent_searches.length>5&&t.recent_searches.pop()}),_()(i,"HIDE_SINGLES",function(t,s){t.hide_singles=s}),_()(i,"SHOW_ONLY_NEXT_ITEMS",function(t,s){t.show_only_next_items=s}),_()(i,"SHOW_BURGER_MENU",function(t,s){t.show_burger_menu=s}),i),actions:{add_notification:function(t,s){var a=t.commit,i={id:t.state.notifications.next_id++,type:s.type,text:s.text,topic:s.topic,timeout:s.timeout};a("ADD_NOTIFICATION",i),s.timeout>0&&setTimeout(function(){a("DELETE_NOTIFICATION",i)},s.timeout)}}});u.a.interceptors.response.use(function(t){return t},function(t){return p.dispatch("add_notification",{text:"Request failed (status: "+t.request.status+" "+t.request.statusText+", url: "+t.request.responseURL+")",type:"danger"}),r.a.reject(t)});var h=function(){return u.a.get("/api/config")},f=function(){return u.a.get
//# sourceMappingURL=app.js.map