2 lines
42 KiB
JavaScript
2 lines
42 KiB
JavaScript
(function(t){function e(e){for(var n,o,i=e[0],l=e[1],u=e[2],d=0,p=[];d<i.length;d++)o=i[d],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&p.push(r[o][0]),r[o]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n]);c&&c(e);while(p.length)p.shift()();return s.push.apply(s,u||[]),a()}function a(){for(var t,e=0;e<s.length;e++){for(var a=s[e],n=!0,i=1;i<a.length;i++){var l=a[i];0!==r[l]&&(n=!1)}n&&(s.splice(e--,1),t=o(o.s=a[0]))}return t}var n={},r={app:0},s=[];function o(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],l=i.push.bind(i);i.push=e,i=i.slice();for(var u=0;u<i.length;u++)e(i[u]);var c=l;s.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),r=(a("42d3"),a("02a4"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("background",[a("router-view")],1)}),s=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{style:{background:"url("+t.bgpic+") repeat",height:"100%",overflow:"auto"}},[t.headerIsActive?a("osdict-header"):t._e(),a("div",{staticClass:"container mt-3"},[t._t("default")],2)],1)},i=[],l=(a("b0c0"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{staticClass:"navbar navbar-expand-md navbar-dark bg-dark"},[a("router-link",{staticClass:"navbar-brand",attrs:{"one-link-mark":"yes",to:{name:"Main"}}},[t._v("OSDICT")]),a("button",{staticClass:"navbar-toggler collapsed",attrs:{type:"button"},on:{click:t.classbind}},[a("span",{staticClass:"navbar-toggler-icon"})]),a("div",{staticClass:"collapse navbar-collapse",class:{show:t.expanded},attrs:{id:"navbarCollapse"}},[a("ul",{staticClass:"navbar-nav"},[a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link",attrs:{"one-link-mark":"yes",to:{name:"WordAdd"}}},[t._v("添加新单词")])],1)]),a("ul",{staticClass:"navbar-nav ml-auto"},[t.user.is_authenticated?[a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link",attrs:{"one-link-mark":"yes",to:{name:"ManagementMeanings"}}},[t._v("ManagementMeanings")])],1),a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link",attrs:{"one-link-mark":"yes",to:{name:"ManagementWords"}}},[t._v("ManagementWords")])],1),a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link",attrs:{"one-link-mark":"yes",to:{name:"CollectedWords"}}},[t._v(t._s(t.user.nickname))])],1),a("li",{staticClass:"nav-item",on:{click:t.logout}},[a("a",{staticClass:"nav-link",attrs:{href:"#","one-link-mark":"yes"}},[t._v("登出")])])]:a("li",{staticClass:"nav-item"},[a("router-link",{staticClass:"nav-link",attrs:{to:{name:"Login"},"one-link-mark":"yes"}},[t._v("登录")])],1)],2)])],1)}),u=[],c="osdict_jwt";function d(t){return"JWT "+t}var p=function(){var t=function(t){t=d(t),localStorage.setItem(c,t)},e=function(){var t="";try{t=localStorage.getItem(c)}catch(e){t=null}return t},a=function(){try{localStorage.removeItem(c)}catch(t){}},n=function(t){var a=e();return t.Authorization=a,t["Content-Type"]="application/json",t};return{setJWTlocalStorage:t,getJWTlocalStorage:e,removeJWTlocalStorage:a,headerAuthorization:n}},m=p(),v=a("4ff3"),h=a.n(v),_="https://www.osdict.cn/api/",f={registration:_+"user/registration",registrationVerifyEmail:_+"user/registration/verify-email",passwordReset:_+"user/password-reset",passwordResetVerifyEmail:_+"user/password-reset/verify-email",wordSearch:_+"word/search",userCheck:_+"user/check",login:_+"user/login",word:_+"word/",meaningList:_+"meaning/list/",meaningCreate:_+"meaning/create/",meaningAppend:_+"meaning/append/",manageWords:_+"management/words",manageMeanings:_+"management/meanings",manageStaffs:_+"management/staffs",manageDeleteRefuse:_+"management/delete-refuse",collectedWord:_+"user/collected-word"},g=f,y={data:function(){return{user:{is_authenticated:!1,username:null},expanded:!1}},methods:{getData:function(){var t=g.userCheck,e=this,a=m.getJWTlocalStorage();null!=a?h()({method:"POST",url:t,headers:m.headerAuthorization({})}).then((function(t){var a=t.data;e.user=a.user})).catch((function(){e.user={is_authenticated:!1,username:null},m.removeJWTlocalStorage()})):this.user={is_authenticated:!1,username:null}},logout:function(){m.removeJWTlocalStorage(),this.user.is_authenticated=!1,this.$router.push({name:"Main"})},classbind:function(){this.expanded=!this.expanded}},created:function(){this.getData()}},b=y,w=a("2877"),C=Object(w["a"])(b,l,u,!1,null,null,null),x=C.exports,k=a("969a"),$=a.n(k),S={components:{OsdictHeader:x},data:function(){return{bgpic:$.a,headerIsActive:!0}},watch:{"$route.name":function(t,e){var a=this;document.querySelector("title").textContent=this.$route.name+" osdict","Login"===e&&(this.headerIsActive=!1,this.$nextTick((function(){a.headerIsActive=!0})))}},created:function(){document.querySelector("title").textContent=this.$route.name+" osdict"}},O=S,E=Object(w["a"])(O,o,i,!1,null,null,null),P=E.exports,A={name:"App",components:{Background:P}},T=A,D=Object(w["a"])(T,r,s,!1,null,null,null),j=D.exports,N=a("a5e4"),W=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h1",{staticClass:"my-3",style:{"font-size":t.fontSize,"text-align":"center"}},[t._v("OSDICT")]),a("searchinputgroup"),a("local-history-list",{attrs:{length:t.length}})],1)},M=[],q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"input-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.spelling,expression:"spelling"}],staticClass:"form-control",attrs:{type:"text",placeholder:"word",id:"search-input"},domProps:{value:t.spelling},on:{input:function(e){e.target.composing||(t.spelling=e.target.value)}}})]),a("div",[a("ul",{staticClass:"list-group"},[t._l(t.data,(function(e){return a("li",{key:e.word_id,staticClass:"list-group-item"},[a("a",{attrs:{href:"#"},on:{click:function(a){return t.history(e)}}},[t._v(t._s(e.spelling))])])})),t.noAnswer?a("li",{staticClass:"list-group-item"},[a("span",{staticClass:"disabled"},[t._v("No Answer")]),a("br"),a("router-link",{attrs:{to:{name:"WordAdd"}}},[t._v("Add Word")])],1):t._e()],2)])])},H=[],L=(a("ac1f"),a("841c"),"localuser");function z(t){try{var e=JSON.parse(localStorage.getItem(t));return null==e?[]:e}catch(a){return J(),[]}}function G(){var t=z(L);return null==t?[]:t}function I(t){var e=G();return e.push(t),e=JSON.stringify(e),localStorage.setItem(L,e)}function J(){return localStorage.removeItem(L)}var F={data:function(){return{spelling:"",data:[],noAnswer:!1}},name:"search-input-group",methods:{search:function(){var t=g.wordSearch,e=this,a={spelling:e.spelling};h()({methods:"POST",url:t,params:a}).then((function(t){e.data=t.data,e.noAnswer=!1,""!==e.spelling&&0===e.data.length&&(e.noAnswer=!0)})).catch((function(t){404===t.response.status&&(e.data=[],e.noAnswer=!0)}))},history:function(t){var e=t,a="time",n=new Date;if(n.getMinutes()<10)var r="0"+n.getMinutes();else r=n.getMinutes();var s=n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate(),o=s+" "+n.getHours()+":"+r;e[a]=o,I(e),this.$router.push({name:"word",query:{word_id:t.word_id}})}},watch:{spelling:function(t,e){t!==e&&""!==t?this.search():""===t&&(this.data=[],this.noAnswer=!1)},"$route.query.word_id":function(t,e){t!==e&&(this.spelling="")}}},R=F,V=Object(w["a"])(R,q,H,!1,null,null,null),B=V.exports,Y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"localhistory-container m-3",style:{width:t.length+"px"}},[a("table",{staticClass:"table table-borderless "},[a("thead",[a("tr",[a("th",[t._v("历史记录")]),a("th",[a("a",{attrs:{href:"#"}},[a("i",{staticClass:"bi-trash",staticStyle:{color:"black","font-size":"1.2em",float:"right"},on:{click:t.remove_history}})])])])]),a("tbody",t._l(t.history_display,(function(e){return a("tr",{key:e.spelling},[a("td",[a("router-link",{attrs:{to:{name:"word",query:{word_id:e.word_id}}}},[t._v(t._s(e.spelling))])],1),a("td",{staticStyle:{float:"right"}},[t._v(t._s(e.time))])])})),0)])])},K=[],Q=(a("a9e3"),a("fb6a"),{props:{length:Number},data:function(){var t=G(),e=t.length,a=e>10?t.slice(e-10,e):t;return{history_display:a}},methods:{remove_history:function(){J(),this.history_display=[]}}}),U=Q,X=(a("df8e"),Object(w["a"])(U,Y,K,!1,null,null,null)),Z=X.exports,tt={components:{searchinputgroup:B,LocalHistoryList:Z},data:function(){return{fontSize:"7.5em",length:1078}},created:function(){var t=document.body.clientWidth||document.documentElement.clientWidth;t<=768&&(this.fontSize=parseInt(.8*t/5)+"px")},mounted:function(){var t=document.getElementById("search-input");this.length=t.clientWidth}},et=tt,at=Object(w["a"])(et,W,M,!1,null,null,null),nt=at.exports,rt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("registration-form")},st=[],ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("form",[a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.email,expression:"data_.email"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱"},domProps:{value:t.data_.email},on:{input:function(e){e.target.composing||t.$set(t.data_,"email",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.password1,expression:"data_.password1"}],staticClass:"form-control",attrs:{type:"password",placeholder:"输入密码"},domProps:{value:t.data_.password1},on:{input:function(e){e.target.composing||t.$set(t.data_,"password1",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.password2,expression:"data_.password2"}],staticClass:"form-control",attrs:{type:"password",placeholder:"确认密码"},domProps:{value:t.data_.password2},on:{input:function(e){e.target.composing||t.$set(t.data_,"password2",e.target.value)}}})]),a("div",{staticClass:"input-group mb-2"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.code,expression:"data_.code"}],staticClass:"form-control",attrs:{type:"text",placeholder:"验证码"},domProps:{value:t.data_.code},on:{input:function(e){e.target.composing||t.$set(t.data_,"code",e.target.value)}}}),a("div",{staticClass:"input-group-append"},[t.veHasSend?a("span",{staticClass:"input-group-text"},[t._v("已发送")]):a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.sendVerifyCode}},[t._v(" 发送 ")])])])]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button","data-toggle":"button","aria-pressed":"false"},on:{click:t.send}},[t._v(" 注册 ")]),t.veHasError?a("div",{staticClass:"alert alert-warning alert-dismissible fade show",attrs:{role:"alert"}},[a("strong",[t._v("信息错误")]),t._v(" "),a("br"),a("ul",t._l(t.errorData,(function(e,n){return a("li",{key:n},[t._v(" "+t._s(n)+":"+t._s(e)+" ")])})),0),a("button",{staticClass:"close",on:{click:function(e){t.veHasError=!1}}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]):t._e()])},it=[],lt={data:function(){return{data_:{email:null,password1:null,password2:null,code:null},veHasSend:!1,veHasError:!1,errorData:null}},methods:{send:function(){var t=g.registration,e=this;h()({method:"POST",url:t,data:e.data_}).catch((function(t){e.veHasError=!0,e.errorData=t.response.data})).then((function(){e.$router.push({name:"Login"})}))},sendVerifyCode:function(){var t=g.registrationVerifyEmail,e=this;h()({method:"POST",url:t,data:{email:e.data_.email}}).then((function(t){e.veHasSend=!0})).catch((function(t){e.veHasError=!0,e.errorData=t.response.data}))}}},ut=lt,ct=Object(w["a"])(ut,ot,it,!1,null,null,null),dt=ct.exports,pt={components:{RegistrationForm:dt},data:function(){return{}}},mt=pt,vt=Object(w["a"])(mt,rt,st,!1,null,null,null),ht=vt.exports,_t=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("login-form")},ft=[],gt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("form",[a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.username,expression:"data_.username"}],staticClass:"form-control",attrs:{type:"email",placeholder:"邮箱"},domProps:{value:t.data_.username},on:{input:function(e){e.target.composing||t.$set(t.data_,"username",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.password,expression:"data_.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"密码"},domProps:{value:t.data_.password},on:{input:function(e){e.target.composing||t.$set(t.data_,"password",e.target.value)}}})])]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"submit"},on:{click:t.send}},[t._v(" 登录 ")]),a("router-link",{staticClass:"mx-4 btn btn-outline-secondary",attrs:{to:{name:"Registation"}}},[t._v(" 注册 ")]),a("router-link",{staticClass:"btn btn-outline-secondary",attrs:{to:{name:"PasswordReset"}}},[t._v(" 重设密码 ")]),t.veHasError?a("div",{staticClass:"alert alert-warning alert-dismissible fade show",attrs:{role:"alert"}},[a("strong",[t._v("信息错误")]),t._v(" "),a("br"),a("ul",t._l(t.errorData,(function(e,n){return a("li",{key:n},[t._v(" "+t._s(n)+":"+t._s(e)+" ")])})),0),a("button",{staticClass:"close",on:{click:function(e){t.veHasError=!1}}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]):t._e()],1)},yt=[],bt={data:function(){return{data_:{username:null,password:null},errorData:null,veHasError:!1}},methods:{send:function(){var t=g.login,e=this;h()({method:"POST",url:t,data:e.data_}).then((function(t){var a=t.data.token;m.setJWTlocalStorage(a),e.$router.go(-1)})).catch((function(t){e.veHasError=!0,e.errorData=t.response.data}))}}},wt=bt,Ct=Object(w["a"])(wt,gt,yt,!1,null,null,null),xt=Ct.exports,kt={components:{LoginForm:xt}},$t=kt,St=Object(w["a"])($t,_t,ft,!1,null,null,null),Ot=St.exports,Et=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("passwordreset-form")},Pt=[],At=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("form",[a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.email,expression:"data_.email"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱"},domProps:{value:t.data_.email},on:{input:function(e){e.target.composing||t.$set(t.data_,"email",e.target.value)}}})]),a("div",{staticClass:"input-group mb-2"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.code,expression:"data_.code"}],staticClass:"form-control",attrs:{type:"text",placeholder:"验证码"},domProps:{value:t.data_.code},on:{input:function(e){e.target.composing||t.$set(t.data_,"code",e.target.value)}}}),a("div",{staticClass:"input-group-append"},[t.veHasSend?a("span",{staticClass:"input-group-text"},[t._v("已发送")]):a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.sendVerifyCode}},[t._v(" 发送 ")])])]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.password1,expression:"data_.password1"}],staticClass:"form-control",attrs:{type:"password",placeholder:"输入密码"},domProps:{value:t.data_.password1},on:{input:function(e){e.target.composing||t.$set(t.data_,"password1",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.password2,expression:"data_.password2"}],staticClass:"form-control",attrs:{type:"password",placeholder:"确认密码"},domProps:{value:t.data_.password2},on:{input:function(e){e.target.composing||t.$set(t.data_,"password2",e.target.value)}}})])]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button","data-toggle":"button","aria-pressed":"false"},on:{click:t.send}},[t._v(" 重置 ")]),t.veHasError?a("div",{staticClass:"alert alert-warning alert-dismissible fade show",attrs:{role:"alert"}},[a("strong",[t._v("信息错误")]),t._v(" "),a("br"),a("ul",t._l(t.errorData,(function(e,n){return a("li",{key:n},[t._v(" "+t._s(n)+":"+t._s(e)+" ")])})),0),a("button",{staticClass:"close",on:{click:function(e){t.veHasError=!1}}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]):t._e()])},Tt=[],Dt={data:function(){return{data_:{email:null,password1:null,password2:null,code:null},veHasSend:!1,veHasError:!1,errorData:null}},methods:{send:function(){var t=g.passwordReset,e=this;h()({method:"POST",url:t,data:e.data_}).catch((function(t){e.veHasError=!0,e.errorData=t.response.data})).then((function(){e.$router.push({name:"Login"})}))},sendVerifyCode:function(){var t=g.passwordResetVerifyEmail,e=this;h()({method:"POST",url:t,data:{email:e.data_.email}}).then((function(t){e.veHasSend=!0})).catch((function(t){e.veHasError=!0,console.log(t.response),e.errorData=t.response.data}))}}},jt=Dt,Nt=Object(w["a"])(jt,At,Tt,!1,null,null,null),Wt=Nt.exports,Mt={components:{PasswordresetForm:Wt},data:function(){return{}}},qt=Mt,Ht=Object(w["a"])(qt,Et,Pt,!1,null,null,null),Lt=Ht.exports,zt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("searchinputgroup"),a("div",{staticClass:"container"},[t.wordCardState?a("word-card",{attrs:{spelling:t.data.spelling,importance:t.data.importance,word_id:t.$route.query.word_id,iscollected:t.collected}}):t._e(),t._l(t.data.meanings,(function(e){return a("div",{key:e.add_time},[a("meanings-card",t._b({},"meanings-card",e,!1))],1)}))],2)],1)},Gt=[],It=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"card mb-3"},[a("ul",{staticClass:"list-group list-group-flush"},[a("li",{staticClass:"list-group-item"},[a("div",{staticClass:"card-body"},[null!=t.field?a("h5",{staticClass:"card-title text-left"},[t._v(" "+t._s(t.word_property)+" "+t._s(t.meaning)+",["+t._s(t.field)+"] ")]):a("h5",{staticClass:"card-title text-left"},[t._v(" "+t._s(t.word_property)+" "+t._s(t.meaning)+" ")]),a("p",{staticClass:"card-text text-left"},[t._v(t._s(t.sentence))]),a("p",{staticClass:"card-text text-left"},[t._v(t._s(t.localtime))]),a("router-link",{attrs:{to:{name:"MeaningAppend",query:{meaningfield_id:t.meaningfield_id}}}},[t._v("修改含义")]),t.count>1&&null==t.dataList?a("a",{staticStyle:{display:"block"},attrs:{href:"#"},on:{click:t.getdata}},[t._v(" 浏览历史版本 ")]):t._e()],1)]),null!=t.dataList?t._l(t.dataList,(function(e){return a("li",{key:e.version,staticClass:"list-group-item"},[a("div",{staticClass:"card-body"},[null!=e.field?a("h5",{staticClass:"card-title text-left"},[t._v(" "+t._s(e.word_property)+" "+t._s(e.meaning)+",["+t._s(e.field)+"] ")]):a("h5",{staticClass:"card-title text-left"},[t._v(" "+t._s(e.word_property)+" "+t._s(e.meaning)+" ")]),a("p",{staticClass:"card-text text-left"},[t._v(t._s(e.sentence))]),a("p",{staticClass:"card-text text-left"},[t._v(t._s(e.localtime))])])])})):t._e()],2)])])},Jt=[],Ft={props:{field:String,word_property:String,meaning:String,sentence:String,meaningfield_id:Number,count:Number,add_time:String},data:function(){return{dataList:null}},methods:{transform:function(t){var e=new Date(t);if(e.getMinutes()<10)var a="0"+e.getMinutes();else a=e.getMinutes();var n=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate(),r=n+" "+e.getHours()+":"+a;return r},getdata:function(){var t=g.meaningList+this.meaningfield_id,e=this;h()({method:"GET",url:t}).then((function(t){e.dataList=t.data;for(var a=0;a<e.dataList.length;a++)e.dataList[a].localtime=e.transform(e.dataList[a].add_time)}))}},computed:{localtime:function(){return this.transform(this.add_time)}}},Rt=Ft,Vt=Object(w["a"])(Rt,It,Jt,!1,null,null,null),Bt=Vt.exports,Yt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"card my-3"},[a("div",{staticClass:"card-body"},[a("a",{attrs:{href:"#"}},[0==t.data_.collected?a("i",{staticClass:"bi-star",on:{click:t.toCollect}}):t._e()]),a("a",{attrs:{href:"#"}},[1==t.data_.collected?a("i",{staticClass:"bi-star-fill",on:{click:t.toCollect}}):t._e()]),a("h5",{staticClass:"card-title text-center"},[t._v(t._s(t.spelling))]),null!=t.importance?a("h6",{staticClass:"card-subtitle mb-2 text-muted text-center"},[t._v(" "+t._s(t.importance)+" ")]):t._e(),a("router-link",{attrs:{to:{name:"MeaningAdd",query:{word_id:t.word_id}}}},[t._v("添加新含义")])],1)])},Kt=[],Qt={props:{spelling:String,importance:String,word_id:Number,iscollected:Boolean},data:function(){return{data_:{word_id:this.word_id,collected:this.iscollected}}},methods:{toCollect:function(){var t=this,e=g.collectedWord;this.data_.collected=!t.data_.collected,h()({method:"POST",url:e,data:this.data_,headers:m.headerAuthorization({})}).then((function(){})).catch((function(){t.$router.push({name:"Login"})}))}},watch:{word_id:function(t,e){this.data_.word_id=this.word_id,this.data_.collected=this.iscollected}}},Ut=Qt,Xt=Object(w["a"])(Ut,Yt,Kt,!1,null,null,null),Zt=Xt.exports,te={components:{MeaningsCard:Bt,WordCard:Zt,searchinputgroup:B},data:function(){return{data:null,collected:!1,wordCardState:!0}},methods:{getData:function(){var t=this.$route.query.word_id,e=g.word+t,a=this;h()({url:e,method:"GET",headers:m.headerAuthorization({})}).then((function(t){a.wordCardState=!1,a.data=t.data,a.collected=t.data.collected,a.$nextTick((function(){a.wordCardState=!0}))}))}},created:function(){this.getData()},watch:{"$route.query.word_id":function(t,e){t!==e&&this.getData()}}},ee=te,ae=Object(w["a"])(ee,zt,Gt,!1,null,null,null),ne=ae.exports,re=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("form",[a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.spelling,expression:"data_.spelling"}],staticClass:"form-control",attrs:{type:"text",placeholder:"拼写"},domProps:{value:t.data_.spelling},on:{input:function(e){e.target.composing||t.$set(t.data_,"spelling",e.target.value)}}})]),a("div",{staticClass:"input-group mb-3"},[t._m(0),a("select",{directives:[{name:"model",rawName:"v-model",value:t.data_.word_property,expression:"data_.word_property"}],staticClass:"custom-select",attrs:{id:"inputGroupSelect01"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.data_,"word_property",e.target.multiple?a:a[0])}}},t._l(t.choices,(function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.property))])})),0)]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.field,expression:"data_.field"}],staticClass:"form-control",attrs:{type:"text",placeholder:"适用领域(选填)"},domProps:{value:t.data_.field},on:{input:function(e){e.target.composing||t.$set(t.data_,"field",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.meaning,expression:"data_.meaning"}],staticClass:"form-control",attrs:{type:"text",placeholder:"含义"},domProps:{value:t.data_.meaning},on:{input:function(e){e.target.composing||t.$set(t.data_,"meaning",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.sentance,expression:"data_.sentance"}],staticClass:"form-control",attrs:{type:"text",placeholder:"例句(选填)"},domProps:{value:t.data_.sentance},on:{input:function(e){e.target.composing||t.$set(t.data_,"sentance",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.author_name,expression:"data_.author_name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"作者名(选填)"},domProps:{value:t.data_.author_name},on:{input:function(e){e.target.composing||t.$set(t.data_,"author_name",e.target.value)}}})])]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button","data-toggle":"button","aria-pressed":"false"},on:{click:t.send}},[t._v(" 添加 ")])])},se=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group-prepend"},[a("label",{staticClass:"input-group-text",attrs:{for:"inputGroupSelect01"}},[t._v("词性")])])}],oe=[{value:"n.",property:"名词"},{value:"adj.",property:"形容词"},{value:"v.",property:"动词"},{value:"adv.",property:"副词"},{value:"num.",property:"数词"},{value:"pron.",property:"代词"},{value:"art.",property:"冠词"},{value:"prep.",property:"节词"},{value:"conj.",property:"连词"},{value:"interj.",property:"感叹词"},{value:"abbr.",property:"缩写词"},{value:"comb.",property:"合成词"},{value:"suff.",property:"后缀"}],ie=function(t){var e="";for(var a in t)e=e+a+":"+String(t[a])+"\n";return e},le={data:function(){return{data_:{spelling:null,field:null,meaning:null,sentance:null,author_name:null,word_property:null},choices:oe}},methods:{send:function(){var t=g.word,e=this;h()({method:"POST",url:t,data:e.data_}).then((function(){alert("添加成功,即将返回上一页"),e.$router.go(-1)})).catch((function(t){alert("错误\n"+ie(t.response.data))}))}}},ue=le,ce=Object(w["a"])(ue,re,se,!1,null,null,null),de=ce.exports,pe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("search-form",{on:{reload:t.refreshData}}),t.tableState?a("words-table",{attrs:{data_words:t.WordsTableData,thead_:t.thead_,"change-state":t.changeState},on:{reload:t.refreshData}}):t._e(),a("page-nav",t._b({on:{reload:t.refreshData}},"page-nav",t.page_,!1))],1)},me=[],ve=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"input-group mb-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.spelling,expression:"spelling"}],staticClass:"form-control",attrs:{type:"text",placeholder:"word"},domProps:{value:t.spelling},on:{input:function(e){e.target.composing||(t.spelling=e.target.value)}}}),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.search}},[t._v(" Search ")])]),a("div",{staticClass:"input-group mt-3"},[t._m(0),a("select",{directives:[{name:"model",rawName:"v-model",value:t.state,expression:"state"}],staticClass:"custom-select",attrs:{id:"inputGroupSelect01"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.state=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",selected:""}},[t._v("无")]),a("option",{attrs:{value:"rf"}},[t._v("已拒绝")]),a("option",{attrs:{value:"ck"}},[t._v("待发布")]),a("option",{attrs:{value:"pb"}},[t._v("已发布")])])])])])])},he=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group-prepend"},[a("label",{staticClass:"input-group-text",attrs:{for:"inputGroupSelect01"}},[t._v("状态筛选")])])}],_e={props:{url:String,search_word:String},data:function(){return{spelling:null,state:null,noAnswer:!1}},methods:{search:function(){var t=this.$route.query;t.spelling=this.spelling,t.page=1,this.$router.push({name:this.$route.name,query:t}),this.$emit("reload")}},watch:{state:function(t,e){if(t!==e){var a=this.$route.query;a.state=t,a.page=1,this.$router.push({name:this.$route.name,query:a}),this.$emit("reload")}}}},fe=_e,ge=Object(w["a"])(fe,ve,he,!1,null,null,null),ye=ge.exports,be=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("table",{staticClass:"table table-light table-striped"},[a("thead",[a("tr",[a("th",{attrs:{scope:"col"}}),t._l(t.thead_,(function(e){return a("th",{key:e.key,attrs:{scope:"col"}},[t._v(" "+t._s(e.thead_)+" ")])}))],2)]),a("tbody",[t._l(t.dataArray,(function(e){return[a("tr",{key:Object.keys(e)[0]},[a("th",{attrs:{scope:"row"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.__state,expression:"word.__state"}],attrs:{type:"checkbox",id:"defaultCheck1"},domProps:{checked:Array.isArray(e.__state)?t._i(e.__state,null)>-1:e.__state},on:{change:function(a){var n=e.__state,r=a.target,s=!!r.checked;if(Array.isArray(n)){var o=null,i=t._i(n,o);r.checked?i<0&&t.$set(e,"__state",n.concat([o])):i>-1&&t.$set(e,"__state",n.slice(0,i).concat(n.slice(i+1)))}else t.$set(e,"__state",s)}}})]),t._l(t.thead_,(function(n){return a("td",{key:n.key},[t._v(t._s(e[n.key]))])}))],2)]}))],2)]),a("button",{staticClass:"btn btn-primary btn-sm mx-3",attrs:{type:"button"},on:{click:function(e){return t.refuse()}}},[t._v(" 拒绝 ")]),a("button",{staticClass:"btn btn-secondary btn-sm",attrs:{type:"button"},on:{click:function(e){return t.publish()}}},[t._v(" 发布 ")])])},we=[],Ce={props:{data_words:Array,thead_:Array,changeState:Function},watch:{data_words:function(t,e){if(t!==e){var a=t;this.dataArray=a}}},data:function(){for(var t=this.data_words.slice(),e=0;e<t.length;e++)t[e].__state=!1;return{dataArray:t}},methods:{refuse:function(){var t=this;this.changeState("rf",this.dataArray),setTimeout((function(){t.$emit("reload")}))},publish:function(){var t=this;this.changeState("pb",this.dataArray),setTimeout((function(){t.$emit("reload")}))}}},xe=Ce,ke=Object(w["a"])(xe,be,we,!1,null,null,null),$e=ke.exports,Se=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("nav",{staticClass:"mt-3",attrs:{"aria-label":"..."}},[a("ul",{staticClass:"pagination"},[t.previous?a("li",{staticClass:"page-item"},[a("a",{staticClass:"page-link",on:{click:t.pagePrevious}},[t._v("上一页")])]):a("li",{staticClass:"page-item disabled"},[a("span",{staticClass:"page-link"},[t._v("上一页")])]),a("li",{staticClass:"page-item"},[a("span",{staticClass:"page-link"},[t._v("第"+t._s(t.currentpage)+"页")])]),a("li",{staticClass:"page-item"},[a("span",{staticClass:"page-link"},[t._v("共"+t._s(t.maxpage)+"页")])]),t.next?a("li",{staticClass:"page-item"},[a("a",{staticClass:"page-link",on:{click:t.pageNext}},[t._v("下一页")])]):a("li",{staticClass:"page-item disabled"},[a("span",{staticClass:"page-link"},[t._v("下一页")])])])])},Oe=[],Ee={props:{count:null,next:null,previous:null,currentpage:Number},methods:{pageChange:function(t){var e=Object(this.$route.query);e.page=t,this.$router.push({name:this.$route.name,query:e}),this.$emit("reload")},pagePrevious:function(){this.pageChange(this.currentpage-1)},pageNext:function(){this.pageChange(this.currentpage+1)}},computed:{maxpage:function(){return Math.ceil(this.count/12)}}},Pe=Ee,Ae=Object(w["a"])(Pe,Se,Oe,!1,null,null,null),Te=Ae.exports,De={components:{WordsTable:$e,SearchForm:ye,PageNav:Te},data:function(){return{WordsTableData:[],thead_:[{thead_:"单词",key:"spelling"},{thead_:"状态",key:"state"}],page_:{count:null,previous:null,next:null,currentpage:1},tableState:!0}},methods:{getData:function(){var t=g.manageWords,e=this;h()({method:"GET",url:t,params:this.$route.query,headers:m.headerAuthorization({})}).then((function(t){e.WordsTableData=t.data.results;var a=1;void 0!==e.$route.query.page&&(a=Number(e.$route.query.page)),e.page_={count:t.data.count,previous:t.data.previous,next:t.data.next,currentpage:a}})).catch((function(t){404===t.response.status&&(e.WordsTableData=null)}))},refreshData:function(){this.tableState=!1,this.getData(),this.tableState=!0},changeState:function(t,e){for(var a=g.manageWords,n=0;n<e.length;n++)!0===e[n].__state&&h()({headers:m.headerAuthorization({}),method:"POST",url:a,params:{word:e[n].spelling},data:{state:t}}).then((function(t){})).catch((function(t){console.log(t.response)}))}},created:function(){this.getData()}},je=De,Ne=Object(w["a"])(je,pe,me,!1,null,null,null),We=Ne.exports,Me=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("search-form",{on:{reload:t.refreshData}}),t.tableState?a("words-table",{attrs:{data_words:t.WordsTableData,thead_:t.thead_,"change-state":t.changeState},on:{reload:t.refreshData}}):t._e(),a("page-nav",t._b({on:{reload:t.refreshData}},"page-nav",t.page_,!1))],1)},qe=[],He={components:{WordsTable:$e,SearchForm:ye,PageNav:Te},data:function(){return{WordsTableData:[],thead_:[{thead_:"单词",key:"word"},{thead_:"词性",key:"word_property"},{thead_:"含义",key:"meaning"},{thead_:"领域",key:"field"},{thead_:"例句",key:"sentence"},{thead_:"状态",key:"state"}],page_:{count:null,previous:null,next:null,currentpage:1},tableState:!0}},methods:{getData:function(){var t=g.manageMeanings,e=this;h()({method:"GET",url:t,params:this.$route.query,headers:m.headerAuthorization({})}).then((function(t){e.WordsTableData=t.data.results;var a=1;void 0!==e.$route.query.page&&(a=Number(e.$route.query.page)),e.page_={count:t.data.count,previous:t.data.previous,next:t.data.next,currentpage:a}})).catch((function(t){404===t.response.status&&(e.WordsTableData=null)}))},refreshData:function(){this.tableState=!1,this.getData(),this.tableState=!0},changeState:function(t,e){for(var a=g.manageMeanings,n=0;n<e.length;n++)!0===e[n].__state&&h()({headers:m.headerAuthorization({}),method:"POST",url:a,params:{meaning_id:e[n].meaning_id},data:{state:t}}).then((function(){})).catch((function(t){console.log(t.response)}))}},created:function(){this.getData()}},Le=He,ze=Object(w["a"])(Le,Me,qe,!1,null,null,null),Ge=ze.exports,Ie=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h1",[t._v(t._s(t.spell))]),a("meaning-append-form",{attrs:{url1:t.sendplace,word_id:t.returnurl}})],1)},Je=[],Fe=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[t._m(0),a("select",{directives:[{name:"model",rawName:"v-model",value:t.data_.word_property,expression:"data_.word_property"}],staticClass:"custom-select",attrs:{id:"inputGroupSelect01"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.data_,"word_property",e.target.multiple?a:a[0])}}},t._l(t.choices,(function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(" "+t._s(e.property)+" ")])})),0)]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.meaning,expression:"data_.meaning"}],staticClass:"form-control",attrs:{type:"text",placeholder:"含义"},domProps:{value:t.data_.meaning},on:{input:function(e){e.target.composing||t.$set(t.data_,"meaning",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.sentence,expression:"data_.sentence"}],staticClass:"form-control",attrs:{type:"text",placeholder:"例句(选填)"},domProps:{value:t.data_.sentence},on:{input:function(e){e.target.composing||t.$set(t.data_,"sentence",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.author_name,expression:"data_.author_name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"作者名(选填)"},domProps:{value:t.data_.author_name},on:{input:function(e){e.target.composing||t.$set(t.data_,"author_name",e.target.value)}}})]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.send}},[t._v("添加")])])},Re=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group-prepend"},[a("label",{staticClass:"input-group-text",attrs:{for:"inputGroupSelect01"}},[t._v("词性")])])}],Ve={props:{url1:{type:String,required:!0},word_id:{type:null,required:!0}},data:function(){return{data_:{meaning:null,sentence:null,author_name:null,word_property:null},choices:oe,spell:null}},methods:{send:function(){var t=this,e=this.url1,a="word?word_id="+this.word_id;h()({method:"PATCH",url:e,data:this.data_}).then((function(){alert("添加成功"),t.$router.push({path:a})})).catch((function(t){alert("错误\n"+ie(t.response.data))}))}}},Be=Ve,Ye=Object(w["a"])(Be,Fe,Re,!1,null,null,null),Ke=Ye.exports,Qe={components:{MeaningAppendForm:Ke},data:function(){var t=this.$route.query,e=Number(t.meaningfield_id),a=g.meaningAppend+e;return{sendplace:a,spell:null,returnurl:null}},created:function(){var t=g.wordSearch,e=this;h()({method:"GET",url:t,params:this.$route.query}).catch((function(t){console.log(t.response)})).then((function(t){e.spell=t.data[0].spelling,e.returnurl=t.data[0].word_id}))}},Ue=Qe,Xe=Object(w["a"])(Ue,Ie,Je,!1,null,null,null),Ze=Xe.exports,ta=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h1",[t._v(t._s(t.spell))]),a("meaningadd-form",{attrs:{urladd:t.sendplace,usedurl:t.fomerurl}})],1)},ea=[],aa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"input-group mb-3"},[t._m(0),a("select",{directives:[{name:"model",rawName:"v-model",value:t.data_.word_property,expression:"data_.word_property"}],staticClass:"custom-select",attrs:{id:"inputGroupSelect01"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.data_,"word_property",e.target.multiple?a:a[0])}}},t._l(t.choices,(function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(" "+t._s(e.property)+" ")])})),0)]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.meaning,expression:"data_.meaning"}],staticClass:"form-control",attrs:{type:"text",placeholder:"含义"},domProps:{value:t.data_.meaning},on:{input:function(e){e.target.composing||t.$set(t.data_,"meaning",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.sentence,expression:"data_.sentence"}],staticClass:"form-control",attrs:{type:"text",placeholder:"例句(选填)"},domProps:{value:t.data_.sentence},on:{input:function(e){e.target.composing||t.$set(t.data_,"sentence",e.target.value)}}})]),a("div",{staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.data_.author_name,expression:"data_.author_name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"作者名(选填)"},domProps:{value:t.data_.author_name},on:{input:function(e){e.target.composing||t.$set(t.data_,"author_name",e.target.value)}}})]),a("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:t.send}},[t._v("修改")])])},na=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"inputmeaning"},[a("label",{staticClass:"input-group-text",attrs:{for:"InputGroupSelect"}},[t._v("词性")])])}],ra={props:{urladd:{type:String,required:!0},usedurl:{type:String,required:!0}},data:function(){return{data_:{meaning:null,sentence:null,author_name:null,Word_Property:null},choices:oe}},methods:{send:function(){var t=this.data_,e=this.urladd,a=this.usedurl;h()({method:"POST",url:e,data:t}).then((function(){alert("添加成功"),location.href=a})).catch((function(t){alert("错误\n"+ie(t.response.data))}))}}},sa=ra,oa=Object(w["a"])(sa,aa,na,!1,null,null,null),ia=oa.exports,la={components:{MeaningaddForm:ia},data:function(){var t=this.$route.query,e=Number(t.word_id);return{sendplace:g.meaningCreate+e,spell:null,fomerurl:"word?word_id="+e}},created:function(){var t=g.wordSearch,e=this;h()({method:"GET",url:t,params:this.$route.query}).then((function(t){e.spell=t.data[0].spelling})).catch((function(t){console.log(t.response)}))}},ua=la,ca=Object(w["a"])(ua,ta,ea,!1,null,null,null),da=ca.exports,pa=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h1",[t._v("收藏")]),a("collect-card-form")],1)},ma=[],va=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null==t.items||0==t.items.length?a("p",[t._v("当前无收藏记录")]):a("div",[a("ul",{staticClass:"list-group"},t._l(t.items,(function(e){return a("li",{key:e.spelling,staticClass:"list-group-item"},[a("router-link",{attrs:{to:{name:"word",query:{word_id:e.word_id}}}},[t._v(" "+t._s(e.spelling)+" ")]),a("a",{attrs:{href:"#"}},[a("i",{staticClass:"bi-x-circle",staticStyle:{float:"right"},on:{click:function(a){return t.cancelCollect(e)}}})])],1)})),0)])},ha=[],_a=(a("a434"),{data:function(){return{items:null}},created:function(){var t=this,e=g.collectedWord;h()({method:"GET",url:e,headers:m.headerAuthorization({})}).catch((function(t){console.log(t.response)})).then((function(e){t.items=e.data}))},methods:{cancelCollect:function(t){var e=this,a=g.collectedWord;h()({method:"POST",url:a,data:{word_id:t.word_id,collected:!1},headers:m.headerAuthorization({})}).then((function(){e.items.splice(e.items.indexOf(t),1)})).catch((function(){e.$router.push({name:"Login"})}))}}}),fa=_a,ga=Object(w["a"])(fa,va,ha,!1,null,null,null),ya=ga.exports,ba={components:{CollectCardForm:ya}},wa=ba,Ca=Object(w["a"])(wa,pa,ma,!1,null,null,null),xa=Ca.exports;n["a"].use(N["a"]);var ka=new N["a"]({mode:"history",routes:[{path:"/registration",name:"Registation",component:ht},{path:"/",name:"Main",component:nt},{path:"/login",name:"Login",component:Ot},{path:"/password-reset",name:"PasswordReset",component:Lt},{path:"/word",name:"word",component:ne},{path:"/word-add",name:"WordAdd",component:de},{path:"/management/words",name:"ManagementWords",component:We},{path:"/meaningappend",name:"MeaningAppend",component:Ze},{path:"/meaningadd",name:"MeaningAdd",component:da},{path:"/management/meanings",name:"ManagementMeanings",component:Ge},{path:"/collected-words",name:"CollectedWords",component:xa}]});n["a"].config.productionTip=!1,new n["a"]({render:function(t){return t(j)},router:ka}).$mount("#app")},"969a":function(t,e,a){t.exports=a.p+"img/g1.ac4f1c70.jpg"},df8e:function(t,e,a){"use strict";a("ff20")},ff20:function(t,e,a){}});
|
||
//# sourceMappingURL=app.172fd3fb.js.map
|