text: webpackJsonp([1],{11:function(t,e,a){"use strict";var s=a(6),i=a(66),n=a(61),o=a.n(n),c=a(14);s.a.use(i.a);var r=a(60);s.a.use(r,c.a),e.a=new i.a({routes:[{path:"/",name:"Dashboard",component:o.a}]})},12:function(t,e,a){function s(t){a(19),a(20)}var i=a(5)(a(15),a(64),s,null,null);t.exports=i.exports},13:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a(6),i=a(12),n=a.n(i),o=a(11);s.a.config.productionTip=!1,new s.a({el:"#app",router:o.a,template:"<App/>",components:{App:n.a}})},14:function(t,e,a){"use strict";var s=a(33),i=a.n(s),n=a(49),o=a(40),c=a(32),r=a(26),l="http://localhost:3000";l="http://138.197.91.189";var v=o().configure(i()(l).jquery(n)).configure(c()).configure(r({storage:window.localStorage}));v.service("match"),e.a=v},15:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"app",components:{navbar:a(62)}}},16:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"dashboard",data:function(){return{columns:["Formation","Own Score","Rival Score"],matches:[],isSel:!1,iformation:"",iownScore:0,irivalScore:0}},created:function(){var t=this;this.$services.match.on("created",function(e){t.matches.push(e)}),this.getMatches()},methods:{getMatches:function(){var t=this;this.$services.match.find({query:{$limit:100}}).then(function(e){t.matches=e.data})},addMatch:function(){this.$services.match.create({formation:this.iformation,ownScore:this.iownScore,rivalScore:this.irivalScore}),this.getMatches},selectMatch:function(){this.isSel=!this.isSel},deleteLastMatch:function(){var t=document.getElementsByClassName("is-selected")[0].getAttribute("id");this.$services.match.remove(t).then(this.getMatches)}}}},17:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"navbar"}},19:function(t,e){},20:function(t,e){},21:function(t,e){},61:function(t,e,a){function s(t){a(21)}var i=a(5)(a(16),a(65),s,"data-v-21f3abea",null);t.exports=i.exports},62:function(t,e,a){var s=a(5)(a(17),a(63),null,null,null);t.exports=s.exports},63:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"nav has-shadow"},[a("div",{staticClass:"container"},[a("div",{staticClass:"nav-left"},[a("a",{staticClass:"nav-item"}),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-mobile is-active"},[t._v("Dashboard")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-mobile"},[t._v("Matches")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-mobile"},[t._v("Formations")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-mobile"},[t._v("Custom Tactics")])]),t._v(" "),a("span",{staticClass:"nav-toggle"},[a("span"),t._v(" "),a("span"),t._v(" "),a("span")]),t._v(" "),a("div",{staticClass:"nav-right nav-menu"},[a("a",{staticClass:"nav-item is-tab is-hidden-tablet is-active"},[t._v("Dashboard")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-tablet"},[t._v("Matches")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-tablet"},[t._v("Formations")]),t._v(" "),a("a",{staticClass:"nav-item is-tab is-hidden-tablet"},[t._v("Custom Tactics")]),t._v(" "),a("a",{staticClass:"nav-item is-tab"},[t._v("\n        Profile\n      ")]),t._v(" "),a("a",{staticClass:"nav-item is-tab"},[t._v("Log out")])])])])}]}},64:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("navbar"),t._v(" "),a("h1",[t._v("Welcome to the Tracker ")]),t._v(" "),a("router-view"),t._v(" "),a("link",{attrs:{rel:"stylesheet",href:"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"}})],1)},staticRenderFns:[]}},65:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hello columns"},[a("div",{staticClass:"column is-three-quarter"},[a("table",{staticClass:"table"},[a("thead",[a("tr",t._l(t.columns,function(e){return a("th",{key:e},[t._v("\n            "+t._s(e)+"\n          ")])}))]),t._v(" "),a("tbody",t._l(t.matches,function(e){return a("tr",{key:e,class:{"is-selected":t.isSel},attrs:{id:e._id},on:{click:t.selectMatch}},[a("th",[t._v(t._s(e.formation))]),t._v(" "),a("td",[t._v(t._s(e.ownScore))]),t._v(" "),a("td",[t._v(t._s(e.rivalScore))])])}))]),t._v(" "),a("button",{staticClass:"button is-primary",on:{click:t.addMatch}},[t._v("Add a new Match")]),t._v(" "),a("button",{staticClass:"button is-danger",on:{click:t.deleteLastMatch}},[t._v("Delete last Match")])]),t._v(" "),a("div",{staticClass:"column"},[a("form",[a("div",{staticClass:"field"},[a("label",{staticClass:"label"},[t._v("Formation")]),t._v(" "),a("p",{staticClass:"control"},[a("span",{staticClass:"select"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.iformation,expression:"iformation"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.iformation=e.target.multiple?a:a[0]}}},[a("option",{attrs:{selected:""}},[t._v("4-1-2-1-2")]),t._v(" "),a("option",[t._v("4-3-2-1")])])])])]),t._v(" "),a("div",{staticClass:"field"},[a("label",{staticClass:"label"},[t._v("Own Score")]),t._v(" "),a("p",{staticClass:"control"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.iownScore,expression:"iownScore"}],staticClass:"input",attrs:{type:"text",placeholder:"Text input"},domProps:{value:t.iownScore},on:{input:function(e){e.target.composing||(t.iownScore=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"field"},[a("label",{staticClass:"label"},[t._v("Rival Score")]),t._v(" "),a("p",{staticClass:"control"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.irivalScore,expression:"irivalScore"}],staticClass:"input",attrs:{type:"text",placeholder:"Text input"},domProps:{value:t.irivalScore},on:{input:function(e){e.target.composing||(t.irivalScore=e.target.value)}}})])]),t._v(" "),a("button",{staticClass:"button is-primary",on:{click:t.addMatch}},[t._v("Add a new Match")])])])])},staticRenderFns:[]}}},[13]);
  //# sourceMappingURL=app.50dc625d99125751a566.js.map