{"size": 12428, "ext": "js", "max_stars_repo_path": "static/js/app.47334c6904a2bc05cd64.js", "max_stars_repo_name": "lishenyu16/morefun", "max_stars_repo_stars_event_min_datetime": "2019-01-12T21:54:59.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-12T21:54:59.000Z", "max_issues_repo_path": "static/js/app.47334c6904a2bc05cd64.js", "max_issues_repo_name": "lishenyu16/morefun", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/js/app.47334c6904a2bc05cd64.js", "max_forks_repo_name": "lishenyu16/morefun", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 6214.0, "max_line_length": 12375, "alphanum_fraction": 0.6560186675}
webpackJsonp([1],{"B+qV":function(t,a){},"Fi+T":function(t,a){t.exports="1fa7a611c50b431697169760c02340c3"},MwEn:function(t,a){},NHnr:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e=s("7+uW"),n={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("nav",{staticClass:"navbar navbar-expand-md navbar-dark bg-dark fixed-top"},[s("a",{staticClass:"navbar-brand",attrs:{href:"https://lishenyu16.github.io/aboutMe",target:"_blank"}},[t._v("About Me")]),t._v(" "),t._m(0),t._v(" "),s("div",{staticClass:"collapse navbar-collapse",attrs:{id:"navbarsExampleDefault"}},[s("ul",{staticClass:"nav navbar-nav mr-auto"},[s("router-link",{staticClass:"nav-item",attrs:{to:"/main/dog",tag:"li"}},[s("a",{staticClass:"nav-link"},[t._v("Home")])]),t._v(" "),t._m(1)],1),t._v(" "),t._m(2)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("button",{staticClass:"navbar-toggler",attrs:{type:"button","data-toggle":"collapse","data-target":"#navbarsExampleDefault","aria-controls":"navbarsExampleDefault","aria-expanded":"false","aria-label":"Toggle navigation"}},[a("span",{staticClass:"navbar-toggler-icon"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"http://shenyu16.com",target:"_blank"}},[this._v("Blog")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("ul",{staticClass:"nav navbar-nav navbar-right"},[a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[this._v("Welcome ")])]),this._v(" "),a("li",{staticClass:"nav-item"},[a("a",{staticClass:"nav-link",attrs:{href:"#"}},[this._v("Login")])])])}]};var i=s("VU/8")({},n,!1,function(t){s("k4or")},"data-v-33a5c3c9",null).exports,r={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticStyle:{width:"100%"}},[s("div",{staticClass:"mobile-sidebar dropdown"},[s("button",{staticClass:"btn btn-secondary ",attrs:{type:"button",id:"dropdownMenuButton","data-toggle":"dropdown"}},[t._v("\n            Select your favorite ▼\n        ")]),t._v(" "),s("div",{staticClass:"dropdown-menu"},[s("router-link",{staticClass:"dropdown-item side-nav-item",attrs:{to:"/main/dog",tag:"li"}},[t._v("\n                Dog\n            ")]),t._v(" "),s("router-link",{staticClass:"dropdown-item side-nav-item",attrs:{to:"/main/cat",tag:"li"}},[t._v("\n                Cat\n            ")]),t._v(" "),s("router-link",{staticClass:"dropdown-item side-nav-item",attrs:{to:"/main/jokes",tag:"li"}},[t._v("\n                Jokes\n            ")]),t._v(" "),s("router-link",{staticClass:"dropdown-item side-nav-item",attrs:{to:"/main/usnews",tag:"li"}},[t._v("\n                US News\n            ")]),t._v(" "),s("router-link",{staticClass:"dropdown-item side-nav-item",attrs:{to:"/main/cnnews",tag:"li"}},[t._v("\n                China News\n            ")])],1)]),t._v(" "),s("div",{staticClass:"side-nav"},[s("ul",[s("router-link",{staticClass:"side-nav-item",attrs:{to:"/main/dog",tag:"li"}},[s("p",[t._v("Dog")])]),t._v(" "),s("router-link",{staticClass:"side-nav-item",attrs:{to:"/main/cat",tag:"li"}},[s("p",[t._v("Cat")])]),t._v(" "),s("router-link",{staticClass:"side-nav-item",attrs:{to:"/main/jokes",tag:"li"}},[s("p",[t._v("Jokes")])]),t._v(" "),s("router-link",{staticClass:"side-nav-item",attrs:{to:"/main/usnews",tag:"li"}},[s("p",[t._v("US News")])]),t._v(" "),s("router-link",{staticClass:"side-nav-item",attrs:{to:"/main/cnnews",tag:"li"}},[s("p",[t._v("China News")])])],1)])])},staticRenderFns:[]};var o={components:{sideBar:s("VU/8")({},r,!1,function(t){s("j+qy")},"data-v-a596ee40",null).exports}},c={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"container-fluid mt"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-12 col-sm-2 mt-10"},[a("side-bar")],1),this._v(" "),a("div",{staticClass:" col-12 col-sm-10 mt-6"},[a("router-view")],1)])])},staticRenderFns:[]};var l=s("VU/8")(o,c,!1,function(t){s("Z6At")},"data-v-9f3ceb14",null).exports,d={name:"App",components:{appHeader:i,appMain:l}},u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{attrs:{id:"app"}},[a("app-header"),this._v(" "),a("router-view")],1)},staticRenderFns:[]};var v=s("VU/8")(d,u,!1,function(t){s("B+qV")},"data-v-f8dfa44c",null).exports,f=s("/ocq"),m=s("mtWM"),p=s.n(m),h={created:function(){var t=this;this.loading=!0,p.a.get("https://dog.ceo/api/breeds/image/random/2").then(function(a){t.loading=!1;var s=a.data.message;t.$store.dispatch("setDogs",s)}).catch(function(t){alert("Internal error occured, plz try again!")})},data:function(){return{loading:!1}},methods:{randomDogs:function(){var t=this;this.loading=!0,p.a.get("https://dog.ceo/api/breeds/image/random/2").then(function(a){t.loading=!1;var s=a.data.message;t.$store.dispatch("setDogs",s)}).catch(function(t){alert("Internal error occured, plz try again!")})}},computed:{dogs:function(){return this.$store.getters.dogs}}},g={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"random-btn"},[e("button",{staticClass:"btn btn-success",on:{click:t.randomDogs}},[t._v("Show Random Dogs!")])])]),t._v(" "),t.loading?e("div",{staticClass:"container-fluid loading"},[e("img",{attrs:{src:s("yREI"),alt:""}})]):t._e(),t._v(" "),t.loading?t._e():e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"img-box"},[e("a",{attrs:{href:t.dogs[0]}},[e("div",{staticClass:"frame"},[e("img",{attrs:{src:t.dogs[0],alt:"this is a dog"}})])])])]),t._v(" "),t.loading?t._e():e("div",{staticClass:"container-fluid"},[e("div",{staticClass:"img-box"},[e("a",{attrs:{href:t.dogs[1]}},[e("div",{staticClass:"frame"},[e("img",{attrs:{src:t.dogs[1],alt:"this is a dog"}})])])])])])},staticRenderFns:[]};var _=s("VU/8")(h,g,!1,function(t){s("Ttu+")},"data-v-563cb3b5",null).exports,C={beforeCreate:function(){var t=this;p.a.get("https://aws.random.cat/meow").then(function(a){var s=a.data.file;t.$store.dispatch("setCat",s)}).catch(function(t){alert("Internal error occured, plz try again!")})},data:function(){return{}},methods:{randomCat:function(){var t=this;p.a.get("https://aws.random.cat/meow").then(function(a){var s=a.data.file;t.$store.dispatch("setCat",s)}).catch(function(t){alert("Internal error occured, plz try again!")})}},computed:{cat:function(){return this.$store.getters.cat}}},b={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"random-btn"},[a("button",{staticClass:"btn btn-success",on:{click:this.randomCat}},[this._v("Show Random Cat!")])])]),this._v(" "),a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"img-box"},[a("a",{attrs:{href:this.cat}},[a("div",{staticClass:"frame"},[a("img",{attrs:{src:this.cat,alt:"this is a cat"}})])])])])])},staticRenderFns:[]};var w=s("VU/8")(C,b,!1,function(t){s("aasc")},"data-v-f9b3b264",null).exports,k=s("Fi+T"),y=s.n(k),$={beforeCreate:function(){var t=this;p.a.get("https://newsapi.org/v2/top-headlines?country=us&apiKey="+y.a).then(function(a){var s=a.data.articles;t.$store.dispatch("setUsnews",s)}).catch(function(t){alert("Internal error occured, plz try again!")})},computed:{news:function(){return this.$store.getters.usnews}}},x={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"container-fluid"},[t._m(0),t._v(" "),t._l(t.news,function(a){return s("div",{staticClass:"newsblock"},[s("div",{staticClass:"container-fluid"},[s("h3",[t._v(t._s(a.title))])]),t._v(" "),null!=a.urlToImage?s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"img-box"},[s("img",{attrs:{src:a.urlToImage,alt:"image"}})])]):t._e(),t._v(" "),s("div",{staticClass:"container-fluid"},[s("p",[t._v(t._s(a.description)),s("span",[s("a",{attrs:{href:a.url,target:"_blank"}},[t._v("Read More")])])])])])})],2)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"container"},[a("a",{attrs:{href:"https://newsapi.org",target:"_blank"}},[this._v("Powered by News API")])])}]};var E=s("VU/8")($,x,!1,function(t){s("MwEn")},"data-v-4cbaa410",null).exports,j={beforeCreate:function(){var t=this;p.a.get("https://newsapi.org/v2/top-headlines?country=cn&apiKey="+y.a).then(function(a){var s=a.data.articles;t.$store.dispatch("setUsnews",s)}).catch(function(t){alert("Internal error occured, plz try again!")})},computed:{news:function(){return this.$store.getters.usnews}}},I={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"container-fluid"},[t._m(0),t._v(" "),t._l(t.news,function(a){return s("div",{staticClass:"newsblock"},[s("div",{staticClass:"container-fluid"},[s("h3",[t._v(t._s(a.title))])]),t._v(" "),null!=a.urlToImage?s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"img-box"},[s("img",{attrs:{src:a.urlToImage,alt:"image"}})])]):t._e(),t._v(" "),s("div",{staticClass:"container-fluid"},[s("p",[t._v(t._s(a.description)),s("span",[s("a",{attrs:{href:a.url,target:"_blank"}},[t._v("Read More")])])])])])})],2)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"container"},[a("a",{attrs:{href:"https://newsapi.org",target:"_blank"}},[this._v("Powered by News API")])])}]};var M=s("VU/8")(j,I,!1,function(t){s("SoXd")},"data-v-fa151a98",null).exports,R={beforeCreate:function(){var t=this;p.a.get("https://official-joke-api.appspot.com/random_ten").then(function(a){var s=a.data;t.$store.dispatch("setJokes",s)}).catch(function(t){alert("Internal error occured, plz try again!")})},data:function(){return{}},methods:{randomJokes:function(){var t=this;p.a.get("https://official-joke-api.appspot.com/random_ten").then(function(a){var s=a.data;t.$store.dispatch("setJokes",s)}).catch(function(t){alert("Internal error occured, plz try again!")})}},computed:{jokes:function(){return this.$store.getters.jokes}}},U={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"container-fluid"},[s("div",{staticClass:"random-btn"},[s("button",{staticClass:"btn btn-success",on:{click:t.randomJokes}},[t._v("More Jokes!")])])]),t._v(" "),t._l(3,function(a){return s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("blockquote",{staticClass:"blockquote mb-0"},[s("p",[t._v(t._s(t.jokes[a-1].setup))]),t._v(" "),s("footer",{staticClass:"blockquote-footer"},[t._v(t._s(t.jokes[a-1].punchline)+" "),s("span",{staticStyle:{"font-size":"1.5rem"}},[t._v("☺")])])])])])})],2)},staticRenderFns:[]};var N=s("VU/8")(R,U,!1,function(t){s("xXiN")},"data-v-0db7e230",null).exports;e.a.use(f.a);var D=new f.a({routes:[{path:"/",name:"main",component:l},{path:"/main/",component:l,children:[{path:"dog",component:_},{path:"cat",component:w},{path:"jokes",component:N},{path:"usnews",component:E},{path:"cnnews",component:M}]}]}),F=s("NYxO"),V={dogs:[]},S={state:V,mutations:{},actions:{setDogs:function(t,a){var s=t.state;t.commit,s.dogs=a}},getters:{dogs:function(){return V.dogs}}},T={cat:null},z={state:T,mutations:{},actions:{setCat:function(t,a){var s=t.state;t.commit,s.cat=a}},getters:{cat:function(){return T.cat}}},J={jokes:[]},q={state:J,mutations:{},actions:{setJokes:function(t,a){var s=t.state;t.commit,s.jokes=a}},getters:{jokes:function(){return J.jokes}}},A={usnews:[]},B={state:A,mutations:{},actions:{setUsnews:function(t,a){var s=t.state;t.commit,s.usnews=a}},getters:{usnews:function(){return A.usnews}}},P={cnnews:[]},H={state:P,mutations:{},actions:{setCnnews:function(t,a){var s=t.state;t.commit,s.cnnews=a}},getters:{cnnews:function(){return P.cnnews}}};e.a.use(F.a);var X=new F.a.Store({modules:{dogsModule:S,catsModule:z,jokesModule:q,usNewsModule:B,cnNewsModule:H},state:{},mutations:{},actions:{},getters:{}});e.a.config.productionTip=!1,new e.a({el:"#app",router:D,store:X,components:{App:v},template:"<App/>"})},SoXd:function(t,a){},"Ttu+":function(t,a){},Z6At:function(t,a){},aasc:function(t,a){},"j+qy":function(t,a){},k4or:function(t,a){},xXiN:function(t,a){},yREI:function(t,a,s){t.exports=s.p+"static/img/spinner.4e242a3.gif"}},["NHnr"]);
//# sourceMappingURL=app.47334c6904a2bc05cd64.js.map