2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
webpackJsonp([1],{BwhX:function(e,n){},HuWz:function(e,n){},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=t("7+uW"),i={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var c=t("VU/8")({name:"App"},i,!1,function(e){t("HuWz")},null,null).exports,o=t("/ocq"),s=t("mtWM"),r=t.n(s),u={name:"ping",data:function(){return{msg:""}},methods:{getMessage:function(){var e=this;r.a.get("http://localhost:5000/ping").then(function(n){e.msg=n.data}).catch(function(e){console.error(e)})}},created:function(){this.getMessage()}},h={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",[n("h1",[this._v(this._s(this.msg))])])},staticRenderFns:[]};var p=t("VU/8")(u,h,!1,function(e){t("qi78")},"data-v-a81dde94",null).exports,l={name:"chainetv",data:function(){return{messages:[],chaine:""}},methods:{getchaine:function(e){var n=this,t="http://localhost:5000/api/v1/chaine/";t+=e,r.a.get(t).then(function(t){n.messages.push(e+" ==> "+t.data),console.log(n.messages)}).catch(function(e){console.error(e)})},checkchaine:function(){this.getchaine(this.chaine)},parsechaine:function(){var e=this;r.a.put("http://localhost:5000/api/v1/chaine/").then(function(n){e.message=n.data}).catch(function(e){console.error(e)})}}},v={render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("h1",[e._v("ChaineTV")]),e._v(" "),t("div",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.chaine,expression:"chaine"}],attrs:{name:"chaine-input",type:"text"},domProps:{value:e.chaine},on:{input:function(n){n.target.composing||(e.chaine=n.target.value)}}})]),e._v(" "),t("div",[t("button",{on:{click:function(n){return e.checkchaine()}}},[e._v("search")]),e._v(" "),t("button",{on:{click:e.parsechaine}},[e._v("update chaine")])]),e._v(" "),t("div",[t("ul",e._l(e.messages,function(n){return t("li",{key:n},[e._v("\n "+e._s(n)+"\n ")])}),0)])])},staticRenderFns:[]};var d=t("VU/8")(l,v,!1,function(e){t("BwhX")},"data-v-9a5998dc",null).exports;a.a.use(o.a);var f=new o.a({routes:[{path:"/",name:"chaineTV",component:d},{path:"/ping",name:"ping",component:p}]});a.a.config.productionTip=!1,new a.a({el:"#app",router:f,components:{App:c},template:"<App/>"})},qi78:function(e,n){}},["NHnr"]);
|
|
//# sourceMappingURL=app.70907615fb9861a74abf.js.map
|