cjvt-valency/src_diploma/flask_app/vue/dist/static/js/app.abe281d88cb13e210c8b.js

2 lines
30 KiB
JavaScript
Raw Normal View History

2019-03-07 08:00:01 +00:00
webpackJsonp([1],{"/U5P":function(e,t){},"0eAL":function(e,t){},"1/oy":function(e,t){},"9M+g":function(e,t){},BtA6:function(e,t){},GfHa:function(e,t){},Id91:function(e,t){},"J/Fn":function(e,t){e.exports={api_addr:"http://localhost:5004"}},Jmt5:function(e,t){},LZNP:function(e,t){},MGy4:function(e,t){},NHnr:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s("woOf"),a=s.n(n),i=s("//Fk"),r=s.n(i),o=s("7+uW"),l={render:function(){var e=this.$createElement;return(this._self._c||e)("router-view")},staticRenderFns:[]},c=s("VU/8")({name:"App"},l,!1,null,null,null).exports,d=s("/ocq"),u={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("nav",[s("b-navbar",{attrs:{toggleable:"md",type:"light",variant:"light"}},[s("b-navbar-toggle",{attrs:{target:"nav_collapse"}}),e._v(" "),s("b-navbar-brand",[e._v("Vezljivostni vzorci slovenskih glagolov")]),e._v(" "),s("b-collapse",{attrs:{"is-nav":"",id:"nav_collapse"}},[s("b-navbar-nav",[s("b-nav-item-dropdown",{attrs:{text:"Prikaz",right:""}},e._l(e.search_options,function(t){return s("b-dropdown-item",{key:t.val,attrs:{value:t.val},on:{click:function(s){e.setNavSS(t.val)}}},[e._v("\n "+e._s(t.key)+"\n ")])}))],1),e._v(" "),this.loggedIn()?s("b-navbar-nav",{staticClass:"ml-auto",attrs:{right:""}},[s("b-nav-item",[e._v("\n Uporabnik: "+e._s(this.$root.store.username)+" \n "),s("a",{attrs:{href:"#"},on:{click:function(t){e.logOut()}}},[e._v("(odjava)")])])],1):s("b-navbar-nav",{staticClass:"ml-auto",attrs:{right:""}},[s("b-nav-item",[s("router-link",{attrs:{to:"/register"}},[e._v("\n Registracija\n ")])],1),e._v(" "),s("b-nav-item",[s("router-link",{attrs:{to:"/login"}},[e._v("\n Prijava\n ")])],1)],1)],1)],1)],1)},staticRenderFns:[]},p=s("VU/8")({name:"Nav",props:["appState"],data:function(){return{search_options:[{key:"besede",val:"words"},{key:"udeleženske vloge",val:"functors"}]}},methods:{setNavSS:function(e){this.$root.store.radio="one",this.$root.store.navSS=e,this.$router.push({name:"Home"})},loggedIn:function(){return null!==this.$root.store.token},logOut:function(){this.$root.store.token=null,this.$root.store.username=null,this.$router.push({name:"Home"})}}},u,!1,null,null,null).exports,h={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedLetter,expression:"selectedLetter"}],on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selectedLetter=t.target.multiple?s:s[0]}}},e._l(e.alphabet,function(t){return s("option",{domProps:{value:t}},[e._v("\n "+e._s(t.toUpperCase())+" ("+e._s(e.getNumWords(t))+")\n ")])})),e._v(" "),s("table",e._l(e.getWords(),function(t){return s("tr",[s("td",[s("a",{attrs:{href:"#"},on:{click:function(s){e.selectHw(t)}}},[e._v(e._s(t[0])+"\n "),e.$root.store.has_se.includes(t[0])?s("span",[e._v("se")]):e._e()])]),e._v(" "),s("td",[e._v("("+e._s(t[1])+")")])])}))])},staticRenderFns:[]};var v=s("VU/8")({name:"LWords",data:function(){return{alphabet:"abcčdefghijklmnoprsštuvzž",letters:{},selectedLetter:"a"}},methods:{apiGetWords:function(){var e=this;this.$http.get(this.$root.storeGet("api_addr")+"/api/words").then(function(t){e.$root.store.api_error=null,e.$root.store.has_se=t.data.has_se,e.letters=t.data.sorted_words}).catch(function(t){e.$root.store.api_error=t})},getNumWords:function(e){var t=this.letters[e];return t?t.length:0},getWords:function(){var e=this.letters[this.selectedLetter];return e||[]},selectHw:function(e){this.$router.push({name:"MainDispl",params:{hw:e[0],fmode:!1}})}},mounted:function(){this.apiGetWords()}},h,!1,function(e){s("zbom")},"data-v-52c6d79c",null).exports,m={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("table",e._l(e.functors,function(t){return s("tr",[s("td",[s("a",{attrs:{href:"#"},on:{click:func
//# sourceMappingURL=app.abe281d88cb13e210c8b.js.map