You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cjvt-valency/src/frontend_vue/dist_bkp/static/js/app.8538f7133303d3e391b2.js

2 lines
31 KiB

webpackJsonp([1],{"0Xmg":function(e,t){},"3mwq":function(e,t){},"9M+g":function(e,t){},GUeG:function(e,t){},"J/Fn":function(e,t){throw new Error("Module build failed: SyntaxError: Unexpected token / in JSON at position 3\n at JSON.parse (<anonymous>)\n at Object.module.exports (/src/node_modules/json-loader/index.js:4:49)")},Jmt5:function(e,t){},NHnr:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s("7+uW"),r={render:function(){var e=this.$createElement;return(this._self._c||e)("router-view")},staticRenderFns:[]};var a=s("VU/8")({name:"App"},r,!1,function(e){s("ZhfO")},null,null).exports,i=s("/ocq"),o={name:"Nav",props:["appState"],data(){return{optCorpora:["kres","ssj"],optIndexes:[{key:"besede",val:"words"},{key:"udeleženske vloge",val:"functors"}],indexText:"pregled: "+this.$root.store.selIndex.key,corpText:"korpus: "+this.$root.store.selCorpus}},methods:{updateAll(){this.$root.store.indexReloader+=1,this.$root.store.radio="one",this.$router.push({name:"Home"})},setCorpText(e){this.corpText="kropus: "+e},updateCorpus(e){this.setCorpText(e),this.$root.store.selCorpus=e,this.updateAll()},setIndexText(e){this.indexText="index: "+e},updateIndex(e){this.setIndexText(e.key),this.$root.store.selIndex=e,this.updateAll()},loggedIn(){return null!==this.$root.store.token},logOut(){this.$root.store.token=null,this.$root.store.username=null,this.$router.push({name:"Home"})},goHome(){this.$router.replace({path:"/home"})}}},l={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("nav",[s("b-navbar",{attrs:{id:"nav-red-bg",toggleable:"md",type:"light",variant:"light"}},[s("b-navbar-toggle",{attrs:{target:"nav_collapse"}}),e._v(" "),s("b-navbar-brand",{staticClass:"cursorpointer",on:{click:e.goHome}},[e._v("\n VEZLJIVOSTNI VZORCI SLOVENSKIH GLAGOLOV\n ")]),e._v(" "),s("b-collapse",{attrs:{"is-nav":"",id:"nav_collapse"}},[s("b-navbar-nav",[s("b-nav-item-dropdown",{attrs:{text:e.corpText,right:""}},e._l(e.optCorpora,function(t){return s("b-dropdown-item",{key:t,attrs:{value:t},on:{click:function(s){return e.updateCorpus(t)}}},[e._v("\n "+e._s(t)+"\n ")])}),1)],1),e._v(" "),s("b-navbar-nav",[s("b-nav-item-dropdown",{attrs:{text:e.indexText,right:""}},e._l(e.optIndexes,function(t){return s("b-dropdown-item",{key:t.val,attrs:{value:t.val},on:{click:function(s){return e.updateIndex(t)}}},[e._v("\n "+e._s(t.key)+"\n ")])}),1)],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){return 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:[]};var d=s("VU/8")(o,l,!1,function(e){s("0Xmg")},null,null).exports,c={name:"LWords",data:()=>({alphabet:"abcčdefghijklmnoprsštuvzž",letters:{},selectedLetter:"a"}),methods:{apiGetWords:function(){var e=this;this.$http.get(this.$root.store.api_addr+"/api/words/"+this.$root.store.selCorpus).then(function(t){e.$root.store.api_error=null,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()}},u={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"redlinks"},[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}
//# sourceMappingURL=app.8538f7133303d3e391b2.js.map