diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 9c82155c4..4c74c86be 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -9,6 +9,7 @@ ## Bugfix - 添加根据关键词查询动漫花园资源接口,修复问题:如果通过番组计划的中文查不到资源,则无法正常订阅 #147 +- 给剧集服务根据季度ID的查询结果添加了按照序号进行排序的逻辑,修复问题:动漫详情页根据剧集序号的表格需要进行排序 #135 ## Pages - 完善动漫详情页,并对接服务端 diff --git a/src/main/java/run/ikaros/server/service/EpisodeServiceImpl.java b/src/main/java/run/ikaros/server/service/EpisodeServiceImpl.java index 0102dcce6..f2a68a432 100644 --- a/src/main/java/run/ikaros/server/service/EpisodeServiceImpl.java +++ b/src/main/java/run/ikaros/server/service/EpisodeServiceImpl.java @@ -1,5 +1,6 @@ package run.ikaros.server.service; +import java.util.Comparator; import java.util.List; import java.util.Optional; import java.util.function.Function; @@ -43,7 +44,10 @@ public EpisodeServiceImpl( @Override public List findBySeasonId(@Nonnull Long seasonId) { AssertUtils.notNull(seasonId, "seasonId"); - return episodeRepository.findBySeasonIdAndStatus(seasonId, true); + return episodeRepository.findBySeasonIdAndStatus(seasonId, true) + .stream() + .sorted((o1, o2) -> Integer.parseInt(String.valueOf(o1.getSeq() - o2.getSeq()))) + .collect(Collectors.toList()); } @Override diff --git a/src/main/resources/admin/css/816.8903803c.css b/src/main/resources/admin/css/304.8903803c.css similarity index 100% rename from src/main/resources/admin/css/816.8903803c.css rename to src/main/resources/admin/css/304.8903803c.css diff --git a/src/main/resources/admin/index.html b/src/main/resources/admin/index.html index a40dcc62d..1745636ee 100644 --- a/src/main/resources/admin/index.html +++ b/src/main/resources/admin/index.html @@ -1 +1 @@ -Ikaros Admin

Ikaros

Ikaros Admin
\ No newline at end of file +Ikaros Admin

Ikaros

Ikaros Admin
\ No newline at end of file diff --git a/src/main/resources/admin/js/816.5063ecd9.js b/src/main/resources/admin/js/304.70d2994c.js similarity index 53% rename from src/main/resources/admin/js/816.5063ecd9.js rename to src/main/resources/admin/js/304.70d2994c.js index f6d909f6e..2f933c88b 100644 --- a/src/main/resources/admin/js/816.5063ecd9.js +++ b/src/main/resources/admin/js/304.70d2994c.js @@ -1 +1 @@ -"use strict";(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[816],{10910:function(e,t,i){i.d(t,{Z:function(){return v}});i(68309);var s=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{width:"70%",title:"文件详情",destroyOnClose:!0},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("extraFooter"),t("a-popconfirm",{attrs:{cancelText:"取消",okText:"确定",title:"你确定要删除该文件?"},on:{confirm:e.handleDelete}},[t("a-button",{attrs:{type:"danger",loading:e.deleting}},[e._v("删除")])],1)]},proxy:!0}],null,!0),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[t("a-row",{attrs:{gutter:24,type:"flex"}},[t("a-col",{attrs:{lg:15,md:24,sm:24,xl:15,xs:24}},[t("div",{staticClass:"attach-detail-img pb-3"},[e.isImage?t("a",{attrs:{href:e.file.url,target:"_blank"}},[t("img",{staticClass:"file-detail-preview-img",attrs:{src:e.file.url,loading:"lazy"}})]):e.isVideo?t("VideoDPlayer",{attrs:{url:e.file.url}}):e.isVoice?t("audio",{attrs:{controls:"",src:e.file.url}},[e._v(" 您的浏览器不支持这个格式的音频 ")]):t("div",[e._v("此文件不支持预览")])],1)]),t("a-col",{attrs:{lg:9,md:24,sm:24,xl:9,xs:24}},[t("a-list",{attrs:{itemLayout:"horizontal"}},[t("a-list-item",{staticStyle:{"padding-top":"0"}},[t("a-list-item-meta",{attrs:{description:e.file.id}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件ID:")])])],1),t("a-list-item",[t("a-list-item-meta",[e.editable?t("template",{slot:"description"},[t("a-input",{ref:"nameInput",on:{blur:e.handleUpdateName,pressEnter:e.handleUpdateName},model:{value:e.file.name,callback:function(t){e.$set(e.file,"name",t)},expression:"file.name"}})],1):t("template",{slot:"description"},[e._v(e._s(e.file.name))]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(" 文件名: "),t("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:e.handleEditName}},[t("a-icon",{attrs:{type:"edit"}})],1)],1)],2)],1),t("a-list-item",[t("a-list-item-meta",[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件类型:")]),t("span",{attrs:{slot:"description"},slot:"description"},[e._v(" "+e._s(e._f("fileTypeText")(e.file.type)))])])],1),t("a-list-item",[t("a-list-item-meta",{attrs:{description:e._f("fileTypePlace")(e.file.place)}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("存储位置:")])])],1),t("a-list-item",[t("a-list-item-meta",[t("template",{slot:"description"},[e._v(" "+e._s(e._f("fileSizeFormat")(e.file.size))+" ")]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件大小:")])],2)],1),t("a-list-item",[t("a-list-item-meta",[t("template",{slot:"description"},[e._v(" "+e._s(e._f("moment")(e.file.createTime))+" ")]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("上传日期:")])],2)],1)],1)],1)],1)],1)},n=[],a=i(6835),r=i(48534),o=(i(23157),i(30627)),l=function(){var e=this,t=e._self._c;return t("d-player",{ref:"myVideoDPlayer",attrs:{options:e.options}})},u=[],d={name:"VideoDPlayer",props:{pic:{type:String,default:""},url:{type:String,default:""}},computed:{variablyUrl:function(){return"".concat(this.url)}},data:function(){return{options:{container:{},screenshot:!0,preload:"metadata",volume:.7,video:{pic:"",url:""}}}},beforeMount:function(){this.options.video.pic=this.pic,this.options.video.url=this.url},mounted:function(){this.$emit("player",this.$refs.myVideoDPlayer.dp)},watch:{variablyUrl:function(e,t){this.reRanderVideo(e)}},methods:{reRanderVideo:function(e){this.$log.debug("newVideoUrl",e),this.$refs.myVideoDPlayer.dp.pause(),this.$refs.myVideoDPlayer.dp.switchVideo({url:e})}}},c=d,b=i(1001),m=(0,b.Z)(c,l,u,!1,null,"1aca4086",null),f=m.exports,p={name:"FileDetailModal",components:{VideoDPlayer:f},props:{visible:{type:Boolean,default:!0},file:{type:Object,default:function(){return{}}}},data:function(){return{editable:!1,deleting:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},isImage:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("IMAGE")},isVideo:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("VIDEO")},isVoice:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("VOICE")}},methods:{handleDelete:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,(0,o.Jp)(e.file.id);case 4:e.$emit("delete",e.file),e.deleteErrored=!1,e.modalVisible=!1,t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$log.error(t.t0),e.deleteErrored=!0;case 13:return t.prev=13,setTimeout((function(){e.deleting=!1}),400),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,9,13,16]])})))()},handleEditName:function(){var e=this;this.editable=!this.editable,this.editable&&this.$nextTick((function(){e.$refs.nameInput.focus()}))},handleUpdateName:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.file.name){t.next=3;break}return e.$notification["error"]({message:"提示",description:"文件名称不能为空!"}),t.abrupt("return");case 3:return t.prev=3,t.next=6,(0,o.Wd)(e.file.id,e.file.name);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](3),e.$log.error(t.t0);case 11:return t.prev=11,e.editable=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[3,8,11,14]])})))()},handleCopyLink:function(e){var t=this;this.$copyText(e).then((function(e){t.$log.debug("copy",e),t.$message.success("复制成功!")})).catch((function(e){t.$log.debug("copy.err",e),t.$message.error("复制失败!")}))}}},h=p,g=(0,b.Z)(h,s,n,!1,null,"416117c0",null),v=g.exports},31067:function(e,t,i){i.r(t),i.d(t,{default:function(){return k}});i(68309);var s=function(){var e=this,t=e._self._c;return t("page-header-wrapper",{attrs:{title:!1}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{xs:24,sm:12,md:8,lg:6,xl:6}},[t("img",{staticStyle:{width:"100%","border-radius":"4px"},attrs:{src:e.anime.coverUrl,alt:"anime.title"}})]),t("a-col",{attrs:{xs:24,sm:12,md:16,lg:18,xl:18}},[t("h2",[e._v(e._s(e.anime.title))]),""!==e.anime.titleCn?t("p",[e._v("中文名:"+e._s(e.anime.titleCn))]):e._e(),""!==e.anime.platform?t("p",[e._v("平台:"+e._s(e.anime.platform))]):e._e(),""!==e.anime.bgmtvId?t("p",[e._v(" 番组计划: "),t("a",{attrs:{href:"https://bgm.tv/subject/"+e.anime.bgmtvId,target:"_blank"}},[e._v(e._s(e.anime.bgmtvId))])]):e._e(),t("p",[e._v("简介:"+e._s(e.anime.overview))]),t("div",[t("h2",[e._v("订阅")]),t("p",[e._v("状态:"+e._s(e.userSubStatus)+" "),t("br"),e._v(" 进度:"+e._s(e._f("userSubProgressFilter")(e.userSubProgress)))]),t("a-button",{attrs:{type:e.userSubButton.type,icon:e.userSubButton.icon,loading:e.userSubButton.loading},on:{click:e.handleUserSubButtonClick}},[e._v(e._s(e.userSubButton.value)+" ")]),e._v("   "),e.userSubProgress?t("span",[t("a-radio-group",{on:{change:e.onUserSubProgressChange},model:{value:e.userSubProgress,callback:function(t){e.userSubProgress=t},expression:"userSubProgress"}},[t("a-radio-button",{attrs:{value:"WISH"}},[e._v(" 想看 ")]),t("a-radio-button",{attrs:{value:"DOING"}},[e._v(" 在看 ")]),t("a-radio-button",{attrs:{value:"DONE"}},[e._v(" 看过 ")]),t("a-radio-button",{attrs:{value:"SHELVE"}},[e._v(" 搁置 ")]),t("a-radio-button",{attrs:{value:"DISCARD"}},[e._v(" 抛弃 ")])],1)],1):e._e()],1),t("br"),e.userSubAdditional?t("div",[t("h2",[e._v("特征")]),t("a-alert",{attrs:{message:"Ikaros会筛选出与当前名称特征最近似的剧集资源文件,一般是您订阅番剧时选择的第一集",banner:"",closable:""}}),t("p",[e._v(e._s(e.userSubAdditional))])],1):e._e()])],1),t("br"),t("a-row",[t("a-col",{attrs:{span:"24"}},e._l(e.anime.seasons,(function(i){return t("div",{key:i.id},[t("h2",[e._v(" "+e._s(e._f("seasonTypeFilter")(i.type)))]),t("span",[t("strong",[e._v("原始标题")]),e._v(": "+e._s(i.title))]),t("br"),t("span",[t("strong",[e._v("中文标题")]),e._v(": "+e._s(i.titleCn))]),t("br"),t("span",[t("strong",[e._v("当前集数")]),e._v(": "+e._s(i.episodes.length))]),t("br"),t("span",[t("strong",[e._v("季度简介")]),e._v(": "+e._s(i.overview))]),t("br"),t("a-table",{attrs:{bordered:"",columns:e.episodeTableColumns,pagination:!1,"data-source":i.episodes,rowKey:function(e){return e.seq}},scopedSlots:e._u([{key:"airTimeSlot",fn:function(i){return t("span",{},[e._v(" "+e._s(e._f("moment")(i))+" ")])}},{key:"resourceSlot",fn:function(i){return t("span",{},[t("span",i?[t("a-icon",{attrs:{type:"check-circle",theme:"twoTone","two-tone-color":"#52c41a"}}),t("a",{on:{click:function(t){return e.openFileDetailModal(i)}}},[e._v(e._s(i.name))])]:[t("a-icon",{attrs:{type:"close-circle",theme:"twoTone","two-tone-color":"red"}})],1)])}},{key:"operationSlot",fn:function(i,s){return t("span",{},[t("a-button",{attrs:{type:"dashed"},on:{click:function(t){return e.handleSingleMatchingButtonClick(s)}}},[e._v(" 单个匹配 ")])],1)}}],null,!0)},[t("span",{attrs:{slot:"customOperateTitleSlot"},slot:"customOperateTitleSlot"},[t("a-button",{attrs:{type:"dashed"},on:{click:function(t){return e.handleBatchMatchingButtonClick(i.id)}}},[e._v(" 批量匹配 ")])],1)])],1)})),0)],1),t("FileDetailModal",{attrs:{addToPhoto:!0,file:e.file,visible:e.fileDetailVisible},on:{"update:visible":function(t){e.fileDetailVisible=t}}}),t("FileMatchingModal",{key:e.fileMatchingModalKey,attrs:{"receive-episode-id":e.currentEpisodeIdStr,"receive-season-id":e.currentSeasonIdStr,visible:e.fileMatchingModalVisible},on:{"update:visible":function(t){e.fileMatchingModalVisible=t},dataHasUpdated:function(t){return e.reRenderTable(e.anime.id)}}}),t("AnimeSubscribeModal",{attrs:{visible:e.animeSubscribeModalVisible,animeId:e.anime.id,additional:e.userSubAdditional},on:{"update:visible":function(t){e.animeSubscribeModalVisible=t},"update:animeId":function(t){return e.$set(e.anime,"id",t)},"update:anime-id":function(t){return e.$set(e.anime,"id",t)},userSubProgressUpdated:e.handleUserSubProgressUpdated}})],1)},n=[],a=(i(60086),i(41539),i(54747),i(39714),i(30381)),r=i.n(a),o=i(37498),l=i(10910),u=i(72030),d=i(32900),c=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{width:"70%",afterClose:e.onModalClose,title:"动漫订阅"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[t("a-radio-group",{model:{value:e.subscribe.progress,callback:function(t){e.$set(e.subscribe,"progress",t)},expression:"subscribe.progress"}},[t("a-radio-button",{attrs:{value:"WISH"}},[e._v(" 想看 ")]),t("a-radio-button",{attrs:{value:"DOING"}},[e._v(" 在看 ")]),t("a-radio-button",{attrs:{value:"DONE"}},[e._v(" 看过 ")]),t("a-radio-button",{attrs:{value:"SHELVE"}},[e._v(" 搁置 ")]),t("a-radio-button",{attrs:{value:"DISCARD"}},[e._v(" 抛弃 ")])],1),t("div",[t("p",[e._v("请选择下方列表的第一集资源作为筛选其它剧集资源的的特征资源")]),t("a-table",{attrs:{size:"middle",loading:e.resourceTableLoading,"row-selection":{selectedRowKeys:e.selectedRowKeys,type:"radio",onChange:e.onSelectChange},customRow:e.customRowClick,columns:e.columns,"data-source":e.list}})],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v(" 返回 ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.submitButtonLoading},on:{click:e.handleOk}},[e._v(" 提交订阅 ")])],1)],2)},b=[],m=(i(9653),i(69826),i(12921)),f={name:"AnimeSubscribeModal",components:{},props:{visible:{type:Boolean,default:!1},animeId:{type:Number,default:-1},additional:{type:String,default:""}},watch:{visible:function(e,t){e&&!this.additional&&this.findList(this.animeId)}},data:function(){return{subscribe:{animeId:this.animeId,progress:"WISH",additional:this.additional},columns:[{title:"名称",dataIndex:"title"}],list:[],selectedRowKeys:[],submitButtonLoading:!1,resourceTableLoading:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{findList:function(e){var t=this;this.resourceTableLoading=!0,(0,m.hP)(e,"1").then((function(e){var i=e.result;i.forEach((function(e){e.key=e.pubDate})),t.list=i,0===i.length&&t.$message.warn("未查询到资源")})).catch((function(e){t.$log.error("find dmhy rss items fail",e)})).finally((function(){t.resourceTableLoading=!1}))},onModalClose:function(){this.$emit("animeSubscribeModalClose")},onSelectChange:function(e){this.selectedRowKeys=e,this.subscribe.additional=this.getAdditionalByKey(e)},customRowClick:function(e){var t=this;return{on:{click:function(){t.$log.debug("record",e),t.subscribe.additional=e.name,t.selectedRowKeys=[],t.selectedRowKeys.push(e.key)}}}},getAdditionalByKey:function(e){var t=this.list.find((function(t){return t.key===e}));return t.title},handleOk:function(e){var t=this;if(this.selectedRowKeys&&0!==this.selectedRowKeys.length){var i=this.getAdditionalByKey(this.selectedRowKeys[0]),s=this.animeId;this.submitButtonLoading=!0,this.subscribe.additional=i,(0,d.sL)(s,this.subscribe.progress,this.subscribe.additional).then((function(e){e.result&&(t.$message.success("订阅成功"),t.modalVisible=!1,t.$emit("userSubProgressUpdated",t.subscribe))})).catch((function(e){t.$log.error("sub anime fail, animeId="+s+", error msg: ",e),t.$message.error("sub anime fail, animeId="+s+", error msg: ",e)})).finally((function(){t.submitButtonLoading=!1}))}else this.$message.warn("请选择一个特征资源")},handleCancel:function(e){this.modalVisible=!1}}},p=f,h=i(1001),g=(0,h.Z)(p,c,b,!1,null,null,null),v=g.exports,S={name:"AnimeDetail",components:{AnimeSubscribeModal:v,FileDetailModal:l.Z,FileMatchingModal:u.Z},data:function(){return{anime:{},episodes:[],currentEpisodeIdStr:"",currentSeasonIdStr:"",episodeTableColumns:[{title:"序号",dataIndex:"seq",key:"seq"},{title:"标题",dataIndex:"title",key:"title"},{title:"中文标题",dataIndex:"titleCn",key:"titleCn"},{title:"放送时间",dataIndex:"airTime",key:"airTime",scopedSlots:{customRender:"airTimeSlot"}},{title:"资源",dataIndex:"file",key:"file",scopedSlots:{customRender:"resourceSlot"}},{dataIndex:"operate",key:"operate",slots:{title:"customOperateTitleSlot"},scopedSlots:{customRender:"operationSlot"}}],fileDetailVisible:!1,fileMatchingModalVisible:!1,fileMatchingModalKey:0,file:{},userSubButton:{isSub:!1,type:"dashed",icon:"close",loading:!1,value:"订阅"},userSubStatus:"未订阅",userSubProgress:"",animeSubscribeModalVisible:!1,userSubAdditional:""}},beforeMount:function(){if(this.$router.currentRoute.params.id){var e=this.$router.currentRoute.params.id;this.getAnimeDtoById(e)}else this.$set(this,"anime",{})},methods:{getAnimeDtoById:function(e){var t=this;(0,o.NC)(e).then((function(e){var i=e.result;i.airTime=r()(i.airTime),t.updateUserSubButton(i.sub),i.subscribe&&(t.$set(t,"userSubProgress",i.subscribe.progress),t.$set(t,"userSubAdditional",i.subscribe.additional)),t.$set(t,"anime",i)})).catch((function(i){t.$log.error("find animeDTO fail, err: ",i),t.$message.error("查询番剧详情失败, ID="+e)}))},dataTableAdapter:function(e){e.forEach((function(e){e.key=e.id}))},openFileDetailModal:function(e){this.file=e,this.fileDetailVisible=!0},handleSingleMatchingButtonClick:function(e){this.currentEpisodeIdStr=e.id.toString(),this.currentSeasonIdStr="",this.fileMatchingModalVisible=!0,this.fileMatchingModalKey+=1},handleBatchMatchingButtonClick:function(e){this.currentEpisodeIdStr="",this.currentSeasonIdStr=e.toString(),this.fileMatchingModalVisible=!0,this.fileMatchingModalKey+=1},reRenderTable:function(e){this.getAnimeDtoById(e)},reloadUserSubButton:function(){this.userSubButton.isSub?(this.userSubButton.type="default",this.userSubButton.icon="check",this.userSubButton.value="取消订阅",this.userSubStatus="已订阅"):(this.userSubButton.type="dashed",this.userSubButton.icon="close",this.userSubButton.value="订阅",this.userSubStatus="未订阅",this.userSubProgress="")},updateUserSubButton:function(e){this.userSubButton.isSub=e,this.reloadUserSubButton()},handleUserSubButtonClick:function(){this.userSubButton.isSub?this.cancelUserSub():this.addUserSub()},addUserSub:function(){this.animeSubscribeModalVisible=!0},cancelUserSub:function(){var e=this,t=this.anime.id;this.userSubButton.loading=!0,(0,d.Xf)(t).then((function(t){t.result&&(e.$message.success("取消订阅成功"),e.updateUserSubButton(!1),e.userSubProgress="",e.userSubAdditional="")})).catch((function(i){e.$log.error("sub anime fail, animeId="+t+", error msg: ",i),e.$message.error("sub anime fail, animeId="+t+", error msg: ",i)})).finally((function(){e.userSubButton.loading=!1}))},handleUserSubProgressUpdated:function(e){this.userSubProgress=e.progress,this.userSubAdditional=e.additional,this.updateUserSubButton(!0)},onUserSubProgressChange:function(){var e=this;(0,d.sL)(this.anime.id,this.userSubProgress,this.userSubAdditional).then((function(t){t.result?(e.$message.success("更新订阅进度成功"),e.$log.debug("update sub progress success")):(e.$message.warn("更新订阅进度失败"),e.$log.warn("update sub progress fail"))})).catch((function(t){e.$message.error("更新订阅进度失败, 异常信息:",t),e.$log.error("update sub progress fail, err: ",t)}))}}},y=S,_=(0,h.Z)(y,s,n,!1,null,"7669e579",null),k=_.exports},12921:function(e,t,i){i.d(t,{Zv:function(){return r},hP:function(){return o},nG:function(){return a}});var s=i(46945),n={testQbittorrentConnect:"/tripartite/qbittorrent/connect/test",getBgmTvMe:"/tripartite/bgmtv/token/user/me",findDmhyRssItems:"/tripartite/dmhy/rss/items/anime"};function a(){return(0,s.ZP)({url:n.testQbittorrentConnect,mentions:"get"})}function r(){return(0,s.ZP)({url:n.getBgmTvMe,method:"get"})}function o(e,t){return(0,s.ZP)({url:n.findDmhyRssItems+"/"+e,method:"get",params:{seq:t}})}}}]); \ No newline at end of file +"use strict";(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[304],{10910:function(e,t,i){i.d(t,{Z:function(){return v}});i(68309);var s=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{width:"70%",title:"文件详情",destroyOnClose:!0},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("extraFooter"),t("a-popconfirm",{attrs:{cancelText:"取消",okText:"确定",title:"你确定要删除该文件?"},on:{confirm:e.handleDelete}},[t("a-button",{attrs:{type:"danger",loading:e.deleting}},[e._v("删除")])],1)]},proxy:!0}],null,!0),model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[t("a-row",{attrs:{gutter:24,type:"flex"}},[t("a-col",{attrs:{lg:15,md:24,sm:24,xl:15,xs:24}},[t("div",{staticClass:"attach-detail-img pb-3"},[e.isImage?t("a",{attrs:{href:e.file.url,target:"_blank"}},[t("img",{staticClass:"file-detail-preview-img",attrs:{src:e.file.url,loading:"lazy"}})]):e.isVideo?t("VideoDPlayer",{attrs:{url:e.file.url}}):e.isVoice?t("audio",{attrs:{controls:"",src:e.file.url}},[e._v(" 您的浏览器不支持这个格式的音频 ")]):t("div",[e._v("此文件不支持预览")])],1)]),t("a-col",{attrs:{lg:9,md:24,sm:24,xl:9,xs:24}},[t("a-list",{attrs:{itemLayout:"horizontal"}},[t("a-list-item",{staticStyle:{"padding-top":"0"}},[t("a-list-item-meta",{attrs:{description:e.file.id}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件ID:")])])],1),t("a-list-item",[t("a-list-item-meta",[e.editable?t("template",{slot:"description"},[t("a-input",{ref:"nameInput",on:{blur:e.handleUpdateName,pressEnter:e.handleUpdateName},model:{value:e.file.name,callback:function(t){e.$set(e.file,"name",t)},expression:"file.name"}})],1):t("template",{slot:"description"},[e._v(e._s(e.file.name))]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v(" 文件名: "),t("a-button",{staticClass:"!p-0",attrs:{type:"link"},on:{click:e.handleEditName}},[t("a-icon",{attrs:{type:"edit"}})],1)],1)],2)],1),t("a-list-item",[t("a-list-item-meta",[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件类型:")]),t("span",{attrs:{slot:"description"},slot:"description"},[e._v(" "+e._s(e._f("fileTypeText")(e.file.type)))])])],1),t("a-list-item",[t("a-list-item-meta",{attrs:{description:e._f("fileTypePlace")(e.file.place)}},[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("存储位置:")])])],1),t("a-list-item",[t("a-list-item-meta",[t("template",{slot:"description"},[e._v(" "+e._s(e._f("fileSizeFormat")(e.file.size))+" ")]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文件大小:")])],2)],1),t("a-list-item",[t("a-list-item-meta",[t("template",{slot:"description"},[e._v(" "+e._s(e._f("moment")(e.file.createTime))+" ")]),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("上传日期:")])],2)],1)],1)],1)],1)],1)},n=[],a=i(6835),r=i(48534),o=(i(23157),i(30627)),l=function(){var e=this,t=e._self._c;return t("d-player",{ref:"myVideoDPlayer",attrs:{options:e.options}})},u=[],d={name:"VideoDPlayer",props:{pic:{type:String,default:""},url:{type:String,default:""}},computed:{variablyUrl:function(){return"".concat(this.url)}},data:function(){return{options:{container:{},screenshot:!0,preload:"metadata",volume:.7,video:{pic:"",url:""}}}},beforeMount:function(){this.options.video.pic=this.pic,this.options.video.url=this.url},mounted:function(){this.$emit("player",this.$refs.myVideoDPlayer.dp)},watch:{variablyUrl:function(e,t){this.reRanderVideo(e)}},methods:{reRanderVideo:function(e){this.$log.debug("newVideoUrl",e),this.$refs.myVideoDPlayer.dp.pause(),this.$refs.myVideoDPlayer.dp.switchVideo({url:e})}}},c=d,h=i(1001),m=(0,h.Z)(c,l,u,!1,null,"1aca4086",null),b=m.exports,f={name:"FileDetailModal",components:{VideoDPlayer:b},props:{visible:{type:Boolean,default:!0},file:{type:Object,default:function(){return{}}}},data:function(){return{editable:!1,deleting:!1}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},isImage:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("IMAGE")},isVideo:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("VIDEO")},isVoice:function(){return!(!this.file||!this.file.type)&&this.file.type.startsWith("VOICE")}},methods:{handleDelete:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.deleting=!0,t.next=4,(0,o.Jp)(e.file.id);case 4:e.$emit("delete",e.file),e.deleteErrored=!1,e.modalVisible=!1,t.next=13;break;case 9:t.prev=9,t.t0=t["catch"](0),e.$log.error(t.t0),e.deleteErrored=!0;case 13:return t.prev=13,setTimeout((function(){e.deleting=!1}),400),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,9,13,16]])})))()},handleEditName:function(){var e=this;this.editable=!this.editable,this.editable&&this.$nextTick((function(){e.$refs.nameInput.focus()}))},handleUpdateName:function(){var e=this;return(0,r.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.file.name){t.next=3;break}return e.$notification["error"]({message:"提示",description:"文件名称不能为空!"}),t.abrupt("return");case 3:return t.prev=3,t.next=6,(0,o.Wd)(e.file.id,e.file.name);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](3),e.$log.error(t.t0);case 11:return t.prev=11,e.editable=!1,t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[3,8,11,14]])})))()},handleCopyLink:function(e){var t=this;this.$copyText(e).then((function(e){t.$log.debug("copy",e),t.$message.success("复制成功!")})).catch((function(e){t.$log.debug("copy.err",e),t.$message.error("复制失败!")}))}}},p=f,g=(0,h.Z)(p,s,n,!1,null,"416117c0",null),v=g.exports},32951:function(e,t,i){i.r(t),i.d(t,{default:function(){return k}});i(68309);var s=function(){var e=this,t=e._self._c;return t("page-header-wrapper",{attrs:{title:!1}},[t("a-row",{attrs:{gutter:12}},[t("a-col",{attrs:{xs:24,sm:12,md:8,lg:6,xl:6}},[t("img",{staticStyle:{width:"100%","border-radius":"4px"},attrs:{src:e.anime.coverUrl,alt:"anime.title"}})]),t("a-col",{attrs:{xs:24,sm:12,md:16,lg:18,xl:18}},[t("h2",[e._v(e._s(e.anime.title))]),""!==e.anime.titleCn?t("p",[e._v("中文名:"+e._s(e.anime.titleCn))]):e._e(),""!==e.anime.platform?t("p",[e._v("平台:"+e._s(e.anime.platform))]):e._e(),""!==e.anime.bgmtvId?t("p",[e._v(" 番组计划: "),t("a",{attrs:{href:"https://bgm.tv/subject/"+e.anime.bgmtvId,target:"_blank"}},[e._v(e._s(e.anime.bgmtvId))])]):e._e(),t("p",[e._v("简介:"+e._s(e.anime.overview))]),t("div",[t("h2",[e._v("订阅")]),t("p",[e._v("状态:"+e._s(e.userSubStatus)+" "),t("br"),e._v(" 进度:"+e._s(e._f("userSubProgressFilter")(e.userSubProgress)))]),t("a-button",{attrs:{type:e.userSubButton.type,icon:e.userSubButton.icon,loading:e.userSubButton.loading},on:{click:e.handleUserSubButtonClick}},[e._v(e._s(e.userSubButton.value)+" ")]),e._v("   "),e.userSubProgress?t("span",[t("a-radio-group",{on:{change:e.onUserSubProgressChange},model:{value:e.userSubProgress,callback:function(t){e.userSubProgress=t},expression:"userSubProgress"}},[t("a-radio-button",{attrs:{value:"WISH"}},[e._v(" 想看 ")]),t("a-radio-button",{attrs:{value:"DOING"}},[e._v(" 在看 ")]),t("a-radio-button",{attrs:{value:"DONE"}},[e._v(" 看过 ")]),t("a-radio-button",{attrs:{value:"SHELVE"}},[e._v(" 搁置 ")]),t("a-radio-button",{attrs:{value:"DISCARD"}},[e._v(" 抛弃 ")])],1)],1):e._e()],1),t("br"),e.userSubAdditional?t("div",[t("h2",[e._v("特征")]),t("a-alert",{attrs:{message:"Ikaros会筛选出与当前名称特征最近似的剧集资源文件,一般是您订阅番剧时选择的第一集",banner:"",closable:""}}),t("p",[e._v(e._s(e.userSubAdditional))])],1):e._e()])],1),t("br"),t("a-row",[t("a-col",{attrs:{span:"24"}},e._l(e.anime.seasons,(function(i){return t("div",{key:i.id},[t("h2",[e._v(" "+e._s(e._f("seasonTypeFilter")(i.type)))]),t("span",[t("strong",[e._v("原始标题")]),e._v(": "+e._s(i.title))]),t("br"),t("span",[t("strong",[e._v("中文标题")]),e._v(": "+e._s(i.titleCn))]),t("br"),t("span",[t("strong",[e._v("当前集数")]),e._v(": "+e._s(i.episodes.length))]),t("br"),t("span",[t("strong",[e._v("季度简介")]),e._v(": "+e._s(i.overview))]),t("br"),t("a-table",{attrs:{bordered:"",columns:e.episodeTableColumns,pagination:!1,"data-source":i.episodes,rowKey:function(e){return e.seq}},scopedSlots:e._u([{key:"airTimeSlot",fn:function(i){return t("span",{},[e._v(" "+e._s(e._f("moment")(i))+" ")])}},{key:"resourceSlot",fn:function(i){return t("span",{},[t("span",i?[t("a-icon",{attrs:{type:"check-circle",theme:"twoTone","two-tone-color":"#52c41a"}}),t("a",{on:{click:function(t){return e.openFileDetailModal(i)}}},[e._v(e._s(i.name))])]:[t("a-icon",{attrs:{type:"close-circle",theme:"twoTone","two-tone-color":"red"}})],1)])}},{key:"operationSlot",fn:function(i,s){return t("span",{},[t("a-button",{attrs:{type:"dashed"},on:{click:function(t){return e.handleSingleMatchingButtonClick(s)}}},[e._v(" 单个匹配 ")])],1)}}],null,!0)},[t("span",{attrs:{slot:"customOperateTitleSlot"},slot:"customOperateTitleSlot"},[t("a-button",{attrs:{type:"dashed"},on:{click:function(t){return e.handleBatchMatchingButtonClick(i.id)}}},[e._v(" 批量匹配 ")])],1)])],1)})),0)],1),t("FileDetailModal",{attrs:{addToPhoto:!0,file:e.file,visible:e.fileDetailVisible},on:{"update:visible":function(t){e.fileDetailVisible=t}}}),t("FileMatchingModal",{key:e.fileMatchingModalKey,attrs:{"receive-episode-id":e.currentEpisodeIdStr,"receive-season-id":e.currentSeasonIdStr,visible:e.fileMatchingModalVisible},on:{"update:visible":function(t){e.fileMatchingModalVisible=t},dataHasUpdated:function(t){return e.reRenderTable(e.anime.id)}}}),t("AnimeSubscribeModal",{attrs:{visible:e.animeSubscribeModalVisible,animeId:e.anime.id,additional:e.userSubAdditional},on:{"update:visible":function(t){e.animeSubscribeModalVisible=t},"update:animeId":function(t){return e.$set(e.anime,"id",t)},"update:anime-id":function(t){return e.$set(e.anime,"id",t)},userSubProgressUpdated:e.handleUserSubProgressUpdated}})],1)},n=[],a=(i(60086),i(41539),i(54747),i(39714),i(30381)),r=i.n(a),o=i(37498),l=i(10910),u=i(72030),d=i(32900),c=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{width:"70%",afterClose:e.onModalClose,title:"动漫订阅"},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}},[t("div",[t("a-radio-group",{model:{value:e.subscribe.progress,callback:function(t){e.$set(e.subscribe,"progress",t)},expression:"subscribe.progress"}},[t("a-radio-button",{attrs:{value:"WISH"}},[e._v(" 想看 ")]),t("a-radio-button",{attrs:{value:"DOING"}},[e._v(" 在看 ")]),t("a-radio-button",{attrs:{value:"DONE"}},[e._v(" 看过 ")]),t("a-radio-button",{attrs:{value:"SHELVE"}},[e._v(" 搁置 ")]),t("a-radio-button",{attrs:{value:"DISCARD"}},[e._v(" 抛弃 ")])],1),e._v("   "),t("a-input-search",{staticStyle:{width:"200px"},attrs:{placeholder:"输入番剧关键词"},on:{search:e.onSearch,pressEnter:e.onSearch},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword=t},expression:"searchKeyword"}})],1),t("div",[t("p",[e._v("请选择下方列表的一集资源作为筛选其它剧集资源的的特征资源")]),t("a-table",{attrs:{size:"middle",loading:e.resourceTableLoading,"row-selection":{selectedRowKeys:e.selectedRowKeys,type:"radio",onChange:e.onSelectChange},customRow:e.customRowClick,columns:e.columns,"data-source":e.list}})],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v(" 返回 ")]),t("a-button",{key:"submit",attrs:{type:"primary",loading:e.submitButtonLoading},on:{click:e.handleOk}},[e._v(" 提交订阅 ")])],1)],2)},h=[],m=(i(9653),i(69826),i(12921)),b={name:"AnimeSubscribeModal",components:{},props:{visible:{type:Boolean,default:!1},animeId:{type:Number,default:-1},additional:{type:String,default:""}},watch:{visible:function(e,t){e&&!this.additional&&this.findList(this.animeId)}},data:function(){return{subscribe:{animeId:this.animeId,progress:"WISH",additional:this.additional},columns:[{title:"名称",dataIndex:"title"}],list:[],selectedRowKeys:[],submitButtonLoading:!1,resourceTableLoading:!1,searchKeyword:""}},computed:{modalVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{findList:function(e){var t=this;this.resourceTableLoading=!0,(0,m.vs)(e,"1").then((function(e){var i=e.result;i.forEach((function(e){e.key=e.pubDate})),t.list=i,0===i.length&&t.$message.warn("未查询到资源")})).catch((function(e){t.$log.error("find dmhy rss items fail",e)})).finally((function(){t.resourceTableLoading=!1}))},onModalClose:function(){this.$emit("animeSubscribeModalClose")},onSelectChange:function(e){this.selectedRowKeys=e,this.subscribe.additional=this.getAdditionalByKey(e)},customRowClick:function(e){var t=this;return{on:{click:function(){t.$log.debug("record",e),t.subscribe.additional=e.name,t.selectedRowKeys=[],t.selectedRowKeys.push(e.key)}}}},getAdditionalByKey:function(e){var t=this.list.find((function(t){return t.key===e}));return t.title},handleOk:function(e){var t=this;if(this.selectedRowKeys&&0!==this.selectedRowKeys.length){var i=this.getAdditionalByKey(this.selectedRowKeys[0]),s=this.animeId;this.submitButtonLoading=!0,this.subscribe.additional=i,(0,d.sL)(s,this.subscribe.progress,this.subscribe.additional).then((function(e){e.result&&(t.$message.success("订阅成功"),t.modalVisible=!1,t.$emit("userSubProgressUpdated",t.subscribe))})).catch((function(e){t.$log.error("sub anime fail, animeId="+s+", error msg: ",e),t.$message.error("sub anime fail, animeId="+s+", error msg: ",e)})).finally((function(){t.submitButtonLoading=!1}))}else this.$message.warn("请选择一个特征资源")},handleCancel:function(e){this.modalVisible=!1},onSearch:function(e){var t=this;this.$log.debug("searchKeyword",this.searchKeyword),this.searchKeyword&&(this.resourceTableLoading=!0,(0,m.hP)(this.searchKeyword).then((function(e){t.$log.debug("rsp",e);var i=e.result;i.length>0&&(t.list=i),t.$message.success("查询成功,关键词:",t.searchKeyword)})).catch((function(e){t.$error(e),t.$message.error("查询失败,异常:",e)})).finally((function(){t.resourceTableLoading=!1})))}}},f=b,p=i(1001),g=(0,p.Z)(f,c,h,!1,null,null,null),v=g.exports,y={name:"AnimeDetail",components:{AnimeSubscribeModal:v,FileDetailModal:l.Z,FileMatchingModal:u.Z},data:function(){return{anime:{},episodes:[],currentEpisodeIdStr:"",currentSeasonIdStr:"",episodeTableColumns:[{title:"序号",dataIndex:"seq",key:"seq"},{title:"标题",dataIndex:"title",key:"title"},{title:"中文标题",dataIndex:"titleCn",key:"titleCn"},{title:"放送时间",dataIndex:"airTime",key:"airTime",scopedSlots:{customRender:"airTimeSlot"}},{title:"资源",dataIndex:"file",key:"file",scopedSlots:{customRender:"resourceSlot"}},{dataIndex:"operate",key:"operate",slots:{title:"customOperateTitleSlot"},scopedSlots:{customRender:"operationSlot"}}],fileDetailVisible:!1,fileMatchingModalVisible:!1,fileMatchingModalKey:0,file:{},userSubButton:{isSub:!1,type:"dashed",icon:"close",loading:!1,value:"订阅"},userSubStatus:"未订阅",userSubProgress:"",animeSubscribeModalVisible:!1,userSubAdditional:""}},beforeMount:function(){if(this.$router.currentRoute.params.id){var e=this.$router.currentRoute.params.id;this.getAnimeDtoById(e)}else this.$set(this,"anime",{})},methods:{getAnimeDtoById:function(e){var t=this;(0,o.NC)(e).then((function(e){var i=e.result;i.airTime=r()(i.airTime),t.updateUserSubButton(i.sub),i.subscribe&&(t.$set(t,"userSubProgress",i.subscribe.progress),t.$set(t,"userSubAdditional",i.subscribe.additional)),t.$set(t,"anime",i)})).catch((function(i){t.$log.error("find animeDTO fail, err: ",i),t.$message.error("查询番剧详情失败, ID="+e)}))},dataTableAdapter:function(e){e.forEach((function(e){e.key=e.id}))},openFileDetailModal:function(e){this.file=e,this.fileDetailVisible=!0},handleSingleMatchingButtonClick:function(e){this.currentEpisodeIdStr=e.id.toString(),this.currentSeasonIdStr="",this.fileMatchingModalVisible=!0,this.fileMatchingModalKey+=1},handleBatchMatchingButtonClick:function(e){this.currentEpisodeIdStr="",this.currentSeasonIdStr=e.toString(),this.fileMatchingModalVisible=!0,this.fileMatchingModalKey+=1},reRenderTable:function(e){this.getAnimeDtoById(e)},reloadUserSubButton:function(){this.userSubButton.isSub?(this.userSubButton.type="default",this.userSubButton.icon="check",this.userSubButton.value="取消订阅",this.userSubStatus="已订阅"):(this.userSubButton.type="dashed",this.userSubButton.icon="close",this.userSubButton.value="订阅",this.userSubStatus="未订阅",this.userSubProgress="")},updateUserSubButton:function(e){this.userSubButton.isSub=e,this.reloadUserSubButton()},handleUserSubButtonClick:function(){this.userSubButton.isSub?this.cancelUserSub():this.addUserSub()},addUserSub:function(){this.animeSubscribeModalVisible=!0},cancelUserSub:function(){var e=this,t=this.anime.id;this.userSubButton.loading=!0,(0,d.Xf)(t).then((function(t){t.result&&(e.$message.success("取消订阅成功"),e.updateUserSubButton(!1),e.userSubProgress="",e.userSubAdditional="")})).catch((function(i){e.$log.error("sub anime fail, animeId="+t+", error msg: ",i),e.$message.error("sub anime fail, animeId="+t+", error msg: ",i)})).finally((function(){e.userSubButton.loading=!1}))},handleUserSubProgressUpdated:function(e){this.userSubProgress=e.progress,this.userSubAdditional=e.additional,this.updateUserSubButton(!0)},onUserSubProgressChange:function(){var e=this;(0,d.sL)(this.anime.id,this.userSubProgress,this.userSubAdditional).then((function(t){t.result?(e.$message.success("更新订阅进度成功"),e.$log.debug("update sub progress success")):(e.$message.warn("更新订阅进度失败"),e.$log.warn("update sub progress fail"))})).catch((function(t){e.$message.error("更新订阅进度失败, 异常信息:",t),e.$log.error("update sub progress fail, err: ",t)}))}}},S=y,_=(0,p.Z)(S,s,n,!1,null,"7669e579",null),k=_.exports},12921:function(e,t,i){i.d(t,{Zv:function(){return r},hP:function(){return l},nG:function(){return a},vs:function(){return o}});var s=i(46945),n={testQbittorrentConnect:"/tripartite/qbittorrent/connect/test",getBgmTvMe:"/tripartite/bgmtv/token/user/me",findDmhyRssItemsByAnimeId:"/tripartite/dmhy/rss/items/anime",findDmhyRssItems:"/tripartite/dmhy/rss/items"};function a(){return(0,s.ZP)({url:n.testQbittorrentConnect,mentions:"get"})}function r(){return(0,s.ZP)({url:n.getBgmTvMe,method:"get"})}function o(e,t){return(0,s.ZP)({url:n.findDmhyRssItemsByAnimeId+"/"+e,method:"get",params:{seq:t}})}function l(e){return(0,s.ZP)({url:n.findDmhyRssItems,method:"get",params:{keyword:e}})}}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/605.2cad1b66.js b/src/main/resources/admin/js/605.6873db2f.js similarity index 85% rename from src/main/resources/admin/js/605.2cad1b66.js rename to src/main/resources/admin/js/605.6873db2f.js index ddf244d9f..933277289 100644 --- a/src/main/resources/admin/js/605.2cad1b66.js +++ b/src/main/resources/admin/js/605.6873db2f.js @@ -1,3 +1,3 @@ -"use strict";(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[605],{56605:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var r=function(){var t=this,e=t._self._c;return e("page-header-wrapper",{attrs:{title:!1}},[e("div",{staticClass:"container"},[e("a-tabs",{attrs:{type:"line"},on:{change:t.selectTabChange}},[e("a-tab-pane",{key:"COMMON",staticClass:"tab-content-pane",attrs:{tab:"常规设置"}},[e("a-form-model",{attrs:{model:t.common}},[e("a-form-model-item",{attrs:{label:"标题"}},[e("a-input",{model:{value:t.common.TITLE,callback:function(e){t.$set(t.common,"TITLE",e)},expression:"common.TITLE"}})],1),e("a-form-model-item",{attrs:{label:"地址"}},[e("a-input",{model:{value:t.common.ADDRESS,callback:function(e){t.$set(t.common,"ADDRESS",e)},expression:"common.ADDRESS"}})],1),e("a-form-model-item",{attrs:{label:"Logo"}},[e("a-input",{model:{value:t.common.LOGO,callback:function(e){t.$set(t.common,"LOGO",e)},expression:"common.LOGO"}})],1),e("a-form-model-item",{attrs:{label:"Favicon"}},[e("a-input",{model:{value:t.common.FAVICON,callback:function(e){t.$set(t.common,"FAVICON",e)},expression:"common.FAVICON"}})],1),e("a-form-model-item",{attrs:{label:"描述"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.DESCRIPTION,callback:function(e){t.$set(t.common,"DESCRIPTION",e)},expression:"common.DESCRIPTION"}})],1),e("a-form-model-item",{attrs:{label:"全局Header"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.HEADER,callback:function(e){t.$set(t.common,"HEADER",e)},expression:"common.HEADER"}})],1),e("a-form-model-item",{attrs:{label:"全局Footer"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.FOOTER,callback:function(e){t.$set(t.common,"FOOTER",e)},expression:"common.FOOTER"}})],1),e("a-form-model-item",{attrs:{label:"统计代码"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.STATISTICS_CODE,callback:function(e){t.$set(t.common,"STATISTICS_CODE",e)},expression:"common.STATISTICS_CODE"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("COMMON")}}},[t._v(" 保存常规设置 ")])],1)],1)],1),e("a-tab-pane",{key:"SEO",staticClass:"tab-content-pane",attrs:{tab:"SEO设置"}},[e("a-form-model",{attrs:{model:t.seo}},[e("a-form-model-item",{attrs:{label:"屏蔽搜索引擎"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.seo.HIDE_FOR_SEARCH_ENGINE)},on:{change:t.changeHideForSearchEngineSwitch}})],1),e("a-form-model-item",{attrs:{label:"关键词"}},[e("a-input",{model:{value:t.seo.KEYWORDS,callback:function(e){t.$set(t.seo,"KEYWORDS",e)},expression:"seo.KEYWORDS"}})],1),e("a-form-model-item",{attrs:{label:"站点描述"}},[e("a-input",{attrs:{type:"textarea"},model:{value:t.seo.SITE_DESCRIPTION,callback:function(e){t.$set(t.seo,"SITE_DESCRIPTION",e)},expression:"seo.SITE_DESCRIPTION"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("SEO")}}},[t._v(" 保存SEO设置 ")])],1)],1)],1),e("a-tab-pane",{key:"FILE",staticClass:"tab-content-pane",attrs:{tab:"文件设置"}},[e("a-form-model",{attrs:{model:t.file}},[e("a-form-model-item",{attrs:{label:"存储位置"}},[e("a-select",{attrs:{loading:t.places.loading},model:{value:t.file.PLACE_SELECT,callback:function(e){t.$set(t.file,"PLACE_SELECT",e)},expression:"file.PLACE_SELECT"}},t._l(t.places.data,(function(n){return e("a-select-option",{key:n,attrs:{value:n}},[t._v(" "+t._s(t._f("fileTypePlace")(n))+" ")])})),1)],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("FILE")}}},[t._v(" 保存文件设置 ")])],1)],1)],1),e("a-tab-pane",{key:"NETWORK",staticClass:"tab-content-pane",attrs:{tab:"网络设置"}},[e("a-form-model",{attrs:{model:t.network}},[e("a-form-model-item",{attrs:{label:"HTTP Host"}},[e("a-input",{attrs:{placeholder:"192.168.2.229"},model:{value:t.network.PROXY_HTTP_HOST,callback:function(e){t.$set(t.network,"PROXY_HTTP_HOST",e)},expression:"network.PROXY_HTTP_HOST"}})],1),e("a-form-model-item",{attrs:{label:"HTTP Port"}},[e("a-input",{attrs:{placeholder:"7890"},model:{value:t.network.PROXY_HTTP_PORT,callback:function(e){t.$set(t.network,"PROXY_HTTP_PORT",e)},expression:"network.PROXY_HTTP_PORT"}})],1),e("a-form-model-item",{attrs:{label:"读取超时时间(毫秒)"}},[e("a-input",{attrs:{placeholder:"5000"},model:{value:t.network.READ_TIMEOUT,callback:function(e){t.$set(t.network,"READ_TIMEOUT",e)},expression:"network.READ_TIMEOUT"}})],1),e("a-form-model-item",{attrs:{label:"连接超时时间(毫秒)"}},[e("a-input",{attrs:{placeholder:"5000"},model:{value:t.network.CONNECT_TIMEOUT,callback:function(e){t.$set(t.network,"CONNECT_TIMEOUT",e)},expression:"network.CONNECT_TIMEOUT"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("NETWORK")}}},[t._v(" 保存网络设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testConnectProxyButtonLoading},on:{click:t.testProxyConfig}},[t._v(" 测试连接 ")])],1)],1)],1),e("a-tab-pane",{key:"QBITTORRENT",staticClass:"tab-content-pane",attrs:{tab:"Qbittorrent"}},[e("a-form-model",{attrs:{model:t.qbittorrent}},[e("a-form-model-item",{attrs:{label:"url"}},[e("a-input",{attrs:{placeholder:"http://192.168.2.1:9091"},model:{value:t.qbittorrent.URL,callback:function(e){t.$set(t.qbittorrent,"URL",e)},expression:"qbittorrent.URL"}})],1),e("a-form-model-item",{attrs:{label:"是否开启验证"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.qbittorrent.ENABLE_AUTH)},on:{change:t.changeEnableAuthSwitch}})],1),"true"===t.qbittorrent.ENABLE_AUTH?e("a-form-model-item",{attrs:{label:"用户名"}},[e("a-input",{attrs:{placeholder:"admin"},model:{value:t.qbittorrent.USERNAME,callback:function(e){t.$set(t.qbittorrent,"USERNAME",e)},expression:"qbittorrent.USERNAME"}})],1):t._e(),"true"===t.qbittorrent.ENABLE_AUTH?e("a-form-model-item",{attrs:{label:"密码"}},[e("a-input-password",{attrs:{placeholder:"adminadmin"},model:{value:t.qbittorrent.PASSWORD,callback:function(e){t.$set(t.qbittorrent,"PASSWORD",e)},expression:"qbittorrent.PASSWORD"}})],1):t._e(),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("QBITTORRENT")}}},[t._v(" 保存Qb设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testConnectQbittorrentButtonLoading},on:{click:t.testQbittorrentConfig}},[t._v(" 测试连接 ")])],1)],1)],1),e("a-tab-pane",{key:"BGMTV",staticClass:"tab-content-pane",attrs:{tab:"番组计划"}},[e("a-form-model",{attrs:{model:t.bgmtv}},[e("a-form-model-item",{attrs:{label:"开启HTTP代理"}},[e("a-alert",{attrs:{message:"需要在 网络设置 里配置好HTTP代理",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.bgmtv.ENABLE_PROXY)},on:{change:t.changeBgmTvEnableProxySwitch}})],1),e("a-form-model-item",{attrs:{label:"Token"}},[e("a-alert",{attrs:{message:"需要在番组计划官网申请令牌,链接:https://bgm.tv/group/topic/370315",banner:"",closable:""}}),e("a-input-password",{attrs:{allowClear:"",placeholder:"token"},model:{value:t.bgmtv.ACCESS_TOKEN,callback:function(e){t.$set(t.bgmtv,"ACCESS_TOKEN",e)},expression:"bgmtv.ACCESS_TOKEN"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("BGMTV")}}},[t._v(" 保存番组计划设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testBgmTvTokenButtonLoading},on:{click:t.testBgmTvToken}},[t._v(" 测试令牌 ")])],1)],1)],1),e("a-tab-pane",{key:"MIKAN",staticClass:"tab-content-pane",attrs:{tab:"密柑计划"}},[e("a-form-model",{attrs:{model:t.mikan}},[e("a-form-model-item",{attrs:{label:"开启HTTP代理"}},[e("a-alert",{attrs:{message:"需要在 网络设置 里配置好HTTP代理",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.mikan.ENABLE_PROXY)},on:{change:t.changeMikanEnableProxySwitch}})],1),e("a-form-model-item",{attrs:{label:"我的订阅"}},[e("a-input-password",{attrs:{allowClear:"",placeholder:"https://mikanani.me/RSS/MyBangumi?token={token}"},model:{value:t.mikan.MY_SUBSCRIBE_RSS,callback:function(e){t.$set(t.mikan,"MY_SUBSCRIBE_RSS",e)},expression:"mikan.MY_SUBSCRIBE_RSS"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("MIKAN")}}},[t._v(" 保存密柑计划设置 ")])],1)],1)],1),e("a-tab-pane",{key:"APP",staticClass:"tab-content-pane",attrs:{tab:"应用设置"}},[e("a-form-model",{attrs:{model:t.app}},[e("a-form-model-item",{attrs:{label:"开启自动追番"}},[e("a-alert",{attrs:{message:"需要配置好 蜜柑的订阅 和 Qbittorrent 连接, 否则无法正常工作",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.app.ENABLE_AUTO_ANIME_SUB_TASK)},on:{change:t.changeAppEnableAutoAnimeSubSwitch}})],1),e("a-form-model-item",{attrs:{label:"开启媒体目录生成"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.app.ENABLE_GENERATE_MEDIA_DIR_TASK)},on:{change:t.changeAppEnableGenerateMediaDirSwitch}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("APP")}}},[t._v(" 保存应用设置 ")])],1)],1)],1)],1)],1)])},o=[],a=n(6835),i=n(48534),c=(n(41539),n(54747),n(30627)),s=n(29131),l=n(12921),u=n(26745),m={data:function(){return{options:[],app:{},common:{},seo:{},file:{},network:{},qbittorrent:{},bgmtv:{},mikan:{},jellyfin:{},other:{},places:{data:[],loading:!1},testConnectQbittorrentButtonLoading:!1,testConnectProxyButtonLoading:!1,testBgmTvTokenButtonLoading:!1}},created:function(){this.findOptionList(),this.handleListPlaces()},methods:{selectTabChange:function(t){},handleListPlaces:function(){var t=this;return(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.places.loading=!0,e.next=4,(0,c.U4)();case 4:n=e.sent,t.places.data=n.result,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.places.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},findOptionList:function(){var t=this;return(0,i.Z)((0,a.Z)().mark((function e(){var n,r;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.Uv)();case 2:n=e.sent,r=n.result,t.options=r,t.options.forEach((function(e){var n=e.category;"APP"===n&&(t.app=e.kvMap),"COMMON"===n&&(t.common=e.kvMap),"SEO"===n&&(t.seo=e.kvMap),"FILE"===n&&(t.file=e.kvMap),"NETWORK"===n&&(t.network=e.kvMap),"QBITTORRENT"===n&&(t.qbittorrent=e.kvMap),"BGMTV"===n&&(t.bgmtv=e.kvMap),"MIKAN"===n&&(t.mikan=e.kvMap),"JELLYFIN"===n&&(t.jellyfin=e.kvMap),"OTHER"===n&&(t.other=e.kvMap)}));case 6:case"end":return e.stop()}}),e)})))()},saveOption:function(t){var e=this;this.$log.debug("category",t);var n={};n.category=t,"APP"===t&&(n.kvMap=this.app),"COMMON"===t&&(n.kvMap=this.common),"SEO"===t&&(n.kvMap=this.seo),"FILE"===t&&(n.kvMap=this.file),"NETWORK"===t&&(n.kvMap=this.network),"QBITTORRENT"===t&&(n.kvMap=this.qbittorrent),"BGMTV"===t&&(n.kvMap=this.bgmtv),"MIKAN"===t&&(n.kvMap=this.mikan),"JELLYFIN"===t&&(n.kvMap=this.jellyfin),"OTHER"===t&&(n.kvMap=this.other),(0,s.O9)(n).then((function(t){e.$message.info("更新成功")})).catch((function(n){e.$log.error("save option fail, ",n),e.$message.error(n),"APP"===t&&(e.app.ENABLE_AUTO_ANIME_SUB_TASK="false"),"BGMTV"===t&&(e.bgmtv.ENABLE_PROXY="false"),"MIKAN"===t&&(e.mikan.ENABLE_PROXY="false")}))},changeHideForSearchEngineSwitch:function(t){this.seo.HIDE_FOR_SEARCH_ENGINE=t?"true":"false"},changeMikanEnableProxySwitch:function(t){this.mikan.ENABLE_PROXY=t?"true":"false"},changeEnableAuthSwitch:function(t){this.qbittorrent.ENABLE_AUTH=t?"true":"false"},changeBgmTvEnableProxySwitch:function(t){this.bgmtv.ENABLE_PROXY=t?"true":"false"},changeAppEnableAutoAnimeSubSwitch:function(t){this.app.ENABLE_AUTO_ANIME_SUB_TASK=t?"true":"false"},changeAppEnableGenerateMediaDirSwitch:function(t){this.app.ENABLE_GENERATE_MEDIA_DIR_TASK=t?"true":"false"},testQbittorrentConfig:function(){var t=this;this.testConnectQbittorrentButtonLoading=this,(0,l.nG)().then((function(e){var n=e.result;n?t.$message.success("测试Qbittorrent连接成功"):t.$message.error("测试Qbittorrent连接失败")})).catch((function(e){t.$log.error("test connect qbittorrent fail",e),t.$message.error("测试Qbittorrent连接失败")})).finally((function(){t.testConnectQbittorrentButtonLoading=!1}))},testProxyConfig:function(){var t=this;this.testConnectProxyButtonLoading=!0,(0,u.U)().then((function(e){var n=e.result;n?t.$message.success("测试HTTP代理连接成功"):t.$message.error("测试HTTP代理连接失败")})).catch((function(e){t.$log.error("test http proxy connect fail",e),t.$message.error("测试HTTP代理连接失败")})).finally((function(){t.testConnectProxyButtonLoading=!1}))},testBgmTvToken:function(){var t=this;this.testBgmTvTokenButtonLoading=!0,(0,l.Zv)().then((function(e){var n=e.result;n?t.$message.success("你好, "+n.nickname+"!"):t.$message.error("测试番组计划令牌失败")})).catch((function(e){t.$log.error("test bgmtv token fail",e),t.$message.error("测试番组计划令牌失败")})).finally((function(){t.testBgmTvTokenButtonLoading=!1}))}}},f=m,p=n(1001),h=(0,p.Z)(f,r,o,!1,null,"49f3cd0c",null),d=h.exports},30627:function(t,e,n){n.d(e,{F8:function(){return u},Jp:function(){return l},U4:function(){return s},Wd:function(){return m},Z9:function(){return c},bc:function(){return i},ws:function(){return a}});var r=n(46945),o={basic:"/file",upload:"/file/data",list:"/file/list",types:"/file/types",places:"/file/places",updateName:"/file/name"};function a(t,e){var n=new FormData;return n.append("file",t),(0,r.ZP)({url:o.upload,method:"put",onUploadProgress:e,data:n,headers:{"Content-Type":"multipart/form-data"}})}function i(t){return(0,r.ZP)({url:o.list,method:"get",params:t})}function c(){return(0,r.ZP)({url:o.types,method:"get"})}function s(){return(0,r.ZP)({url:o.places,method:"get"})}function l(t){return(0,r.ZP)({url:o.basic,method:"delete",params:t})}function u(t){return(0,r.ZP)({url:o.basic,method:"delete",params:t})}function m(t,e){return(0,r.ZP)({url:o.updateName,method:"put",params:{id:t,name:e}})}},26745:function(t,e,n){n.d(e,{U:function(){return i},Z:function(){return a}});var r=n(46945),o={basic:"/network",reqBgmtvBangumiMetadata:"/network/metadata/bgmTv/subject",testProxyConnect:"/network/proxy/connect/test"};function a(t){return(0,r.ZP)({url:o.reqBgmtvBangumiMetadata,method:"put",params:{id:t}})}function i(){return(0,r.ZP)({url:o.testProxyConnect,method:"get"})}},12921:function(t,e,n){n.d(e,{Zv:function(){return i},hP:function(){return c},nG:function(){return a}});var r=n(46945),o={testQbittorrentConnect:"/tripartite/qbittorrent/connect/test",getBgmTvMe:"/tripartite/bgmtv/token/user/me",findDmhyRssItems:"/tripartite/dmhy/rss/items/anime"};function a(){return(0,r.ZP)({url:o.testQbittorrentConnect,mentions:"get"})}function i(){return(0,r.ZP)({url:o.getBgmTvMe,method:"get"})}function c(t,e){return(0,r.ZP)({url:o.findDmhyRssItems+"/"+t,method:"get",params:{seq:e}})}},48534:function(t,e,n){n.d(e,{Z:function(){return o}});n(41539);function r(t,e,n,r,o,a,i){try{var c=t[a](i),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,s,"next",t)}function s(t){r(i,o,a,c,s,"throw",t)}c(void 0)}))}}},6835:function(t,e,n){n.d(e,{Z:function(){return o}});n(82526),n(41817),n(41539),n(32165),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(30489),n(54747),n(68309),n(68304),n(47042);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){ +"use strict";(self["webpackChunkvue_antd_pro"]=self["webpackChunkvue_antd_pro"]||[]).push([[605],{56605:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var r=function(){var t=this,e=t._self._c;return e("page-header-wrapper",{attrs:{title:!1}},[e("div",{staticClass:"container"},[e("a-tabs",{attrs:{type:"line"},on:{change:t.selectTabChange}},[e("a-tab-pane",{key:"COMMON",staticClass:"tab-content-pane",attrs:{tab:"常规设置"}},[e("a-form-model",{attrs:{model:t.common}},[e("a-form-model-item",{attrs:{label:"标题"}},[e("a-input",{model:{value:t.common.TITLE,callback:function(e){t.$set(t.common,"TITLE",e)},expression:"common.TITLE"}})],1),e("a-form-model-item",{attrs:{label:"地址"}},[e("a-input",{model:{value:t.common.ADDRESS,callback:function(e){t.$set(t.common,"ADDRESS",e)},expression:"common.ADDRESS"}})],1),e("a-form-model-item",{attrs:{label:"Logo"}},[e("a-input",{model:{value:t.common.LOGO,callback:function(e){t.$set(t.common,"LOGO",e)},expression:"common.LOGO"}})],1),e("a-form-model-item",{attrs:{label:"Favicon"}},[e("a-input",{model:{value:t.common.FAVICON,callback:function(e){t.$set(t.common,"FAVICON",e)},expression:"common.FAVICON"}})],1),e("a-form-model-item",{attrs:{label:"描述"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.DESCRIPTION,callback:function(e){t.$set(t.common,"DESCRIPTION",e)},expression:"common.DESCRIPTION"}})],1),e("a-form-model-item",{attrs:{label:"全局Header"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.HEADER,callback:function(e){t.$set(t.common,"HEADER",e)},expression:"common.HEADER"}})],1),e("a-form-model-item",{attrs:{label:"全局Footer"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.FOOTER,callback:function(e){t.$set(t.common,"FOOTER",e)},expression:"common.FOOTER"}})],1),e("a-form-model-item",{attrs:{label:"统计代码"}},[e("a-input",{attrs:{type:"textarea",autoSize:""},model:{value:t.common.STATISTICS_CODE,callback:function(e){t.$set(t.common,"STATISTICS_CODE",e)},expression:"common.STATISTICS_CODE"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("COMMON")}}},[t._v(" 保存常规设置 ")])],1)],1)],1),e("a-tab-pane",{key:"SEO",staticClass:"tab-content-pane",attrs:{tab:"SEO设置"}},[e("a-form-model",{attrs:{model:t.seo}},[e("a-form-model-item",{attrs:{label:"屏蔽搜索引擎"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.seo.HIDE_FOR_SEARCH_ENGINE)},on:{change:t.changeHideForSearchEngineSwitch}})],1),e("a-form-model-item",{attrs:{label:"关键词"}},[e("a-input",{model:{value:t.seo.KEYWORDS,callback:function(e){t.$set(t.seo,"KEYWORDS",e)},expression:"seo.KEYWORDS"}})],1),e("a-form-model-item",{attrs:{label:"站点描述"}},[e("a-input",{attrs:{type:"textarea"},model:{value:t.seo.SITE_DESCRIPTION,callback:function(e){t.$set(t.seo,"SITE_DESCRIPTION",e)},expression:"seo.SITE_DESCRIPTION"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("SEO")}}},[t._v(" 保存SEO设置 ")])],1)],1)],1),e("a-tab-pane",{key:"FILE",staticClass:"tab-content-pane",attrs:{tab:"文件设置"}},[e("a-form-model",{attrs:{model:t.file}},[e("a-form-model-item",{attrs:{label:"存储位置"}},[e("a-select",{attrs:{loading:t.places.loading},model:{value:t.file.PLACE_SELECT,callback:function(e){t.$set(t.file,"PLACE_SELECT",e)},expression:"file.PLACE_SELECT"}},t._l(t.places.data,(function(n){return e("a-select-option",{key:n,attrs:{value:n}},[t._v(" "+t._s(t._f("fileTypePlace")(n))+" ")])})),1)],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("FILE")}}},[t._v(" 保存文件设置 ")])],1)],1)],1),e("a-tab-pane",{key:"NETWORK",staticClass:"tab-content-pane",attrs:{tab:"网络设置"}},[e("a-form-model",{attrs:{model:t.network}},[e("a-form-model-item",{attrs:{label:"HTTP Host"}},[e("a-input",{attrs:{placeholder:"192.168.2.229"},model:{value:t.network.PROXY_HTTP_HOST,callback:function(e){t.$set(t.network,"PROXY_HTTP_HOST",e)},expression:"network.PROXY_HTTP_HOST"}})],1),e("a-form-model-item",{attrs:{label:"HTTP Port"}},[e("a-input",{attrs:{placeholder:"7890"},model:{value:t.network.PROXY_HTTP_PORT,callback:function(e){t.$set(t.network,"PROXY_HTTP_PORT",e)},expression:"network.PROXY_HTTP_PORT"}})],1),e("a-form-model-item",{attrs:{label:"读取超时时间(毫秒)"}},[e("a-input",{attrs:{placeholder:"5000"},model:{value:t.network.READ_TIMEOUT,callback:function(e){t.$set(t.network,"READ_TIMEOUT",e)},expression:"network.READ_TIMEOUT"}})],1),e("a-form-model-item",{attrs:{label:"连接超时时间(毫秒)"}},[e("a-input",{attrs:{placeholder:"5000"},model:{value:t.network.CONNECT_TIMEOUT,callback:function(e){t.$set(t.network,"CONNECT_TIMEOUT",e)},expression:"network.CONNECT_TIMEOUT"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("NETWORK")}}},[t._v(" 保存网络设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testConnectProxyButtonLoading},on:{click:t.testProxyConfig}},[t._v(" 测试连接 ")])],1)],1)],1),e("a-tab-pane",{key:"QBITTORRENT",staticClass:"tab-content-pane",attrs:{tab:"Qbittorrent"}},[e("a-form-model",{attrs:{model:t.qbittorrent}},[e("a-form-model-item",{attrs:{label:"url"}},[e("a-input",{attrs:{placeholder:"http://192.168.2.1:9091"},model:{value:t.qbittorrent.URL,callback:function(e){t.$set(t.qbittorrent,"URL",e)},expression:"qbittorrent.URL"}})],1),e("a-form-model-item",{attrs:{label:"是否开启验证"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.qbittorrent.ENABLE_AUTH)},on:{change:t.changeEnableAuthSwitch}})],1),"true"===t.qbittorrent.ENABLE_AUTH?e("a-form-model-item",{attrs:{label:"用户名"}},[e("a-input",{attrs:{placeholder:"admin"},model:{value:t.qbittorrent.USERNAME,callback:function(e){t.$set(t.qbittorrent,"USERNAME",e)},expression:"qbittorrent.USERNAME"}})],1):t._e(),"true"===t.qbittorrent.ENABLE_AUTH?e("a-form-model-item",{attrs:{label:"密码"}},[e("a-input-password",{attrs:{placeholder:"adminadmin"},model:{value:t.qbittorrent.PASSWORD,callback:function(e){t.$set(t.qbittorrent,"PASSWORD",e)},expression:"qbittorrent.PASSWORD"}})],1):t._e(),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("QBITTORRENT")}}},[t._v(" 保存Qb设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testConnectQbittorrentButtonLoading},on:{click:t.testQbittorrentConfig}},[t._v(" 测试连接 ")])],1)],1)],1),e("a-tab-pane",{key:"BGMTV",staticClass:"tab-content-pane",attrs:{tab:"番组计划"}},[e("a-form-model",{attrs:{model:t.bgmtv}},[e("a-form-model-item",{attrs:{label:"开启HTTP代理"}},[e("a-alert",{attrs:{message:"需要在 网络设置 里配置好HTTP代理",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.bgmtv.ENABLE_PROXY)},on:{change:t.changeBgmTvEnableProxySwitch}})],1),e("a-form-model-item",{attrs:{label:"Token"}},[e("a-alert",{attrs:{message:"需要在番组计划官网申请令牌,链接:https://bgm.tv/group/topic/370315",banner:"",closable:""}}),e("a-input-password",{attrs:{allowClear:"",placeholder:"token"},model:{value:t.bgmtv.ACCESS_TOKEN,callback:function(e){t.$set(t.bgmtv,"ACCESS_TOKEN",e)},expression:"bgmtv.ACCESS_TOKEN"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("BGMTV")}}},[t._v(" 保存番组计划设置 ")]),e("a-button",{staticStyle:{margin:"0px 5px"},attrs:{type:"primary",loading:t.testBgmTvTokenButtonLoading},on:{click:t.testBgmTvToken}},[t._v(" 测试令牌 ")])],1)],1)],1),e("a-tab-pane",{key:"MIKAN",staticClass:"tab-content-pane",attrs:{tab:"密柑计划"}},[e("a-form-model",{attrs:{model:t.mikan}},[e("a-form-model-item",{attrs:{label:"开启HTTP代理"}},[e("a-alert",{attrs:{message:"需要在 网络设置 里配置好HTTP代理",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.mikan.ENABLE_PROXY)},on:{change:t.changeMikanEnableProxySwitch}})],1),e("a-form-model-item",{attrs:{label:"我的订阅"}},[e("a-input-password",{attrs:{allowClear:"",placeholder:"https://mikanani.me/RSS/MyBangumi?token={token}"},model:{value:t.mikan.MY_SUBSCRIBE_RSS,callback:function(e){t.$set(t.mikan,"MY_SUBSCRIBE_RSS",e)},expression:"mikan.MY_SUBSCRIBE_RSS"}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("MIKAN")}}},[t._v(" 保存密柑计划设置 ")])],1)],1)],1),e("a-tab-pane",{key:"APP",staticClass:"tab-content-pane",attrs:{tab:"应用设置"}},[e("a-form-model",{attrs:{model:t.app}},[e("a-form-model-item",{attrs:{label:"开启自动追番"}},[e("a-alert",{attrs:{message:"需要配置好 蜜柑的订阅 和 Qbittorrent 连接, 否则无法正常工作",banner:"",closable:""}}),e("a-switch",{attrs:{checked:t._f("str2boolean")(t.app.ENABLE_AUTO_ANIME_SUB_TASK)},on:{change:t.changeAppEnableAutoAnimeSubSwitch}})],1),e("a-form-model-item",{attrs:{label:"开启媒体目录生成"}},[e("a-switch",{attrs:{checked:t._f("str2boolean")(t.app.ENABLE_GENERATE_MEDIA_DIR_TASK)},on:{change:t.changeAppEnableGenerateMediaDirSwitch}})],1),e("a-form-model-item",[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.saveOption("APP")}}},[t._v(" 保存应用设置 ")])],1)],1)],1)],1)],1)])},o=[],a=n(6835),i=n(48534),s=(n(41539),n(54747),n(30627)),c=n(29131),l=n(12921),u=n(26745),m={data:function(){return{options:[],app:{},common:{},seo:{},file:{},network:{},qbittorrent:{},bgmtv:{},mikan:{},jellyfin:{},other:{},places:{data:[],loading:!1},testConnectQbittorrentButtonLoading:!1,testConnectProxyButtonLoading:!1,testBgmTvTokenButtonLoading:!1}},created:function(){this.findOptionList(),this.handleListPlaces()},methods:{selectTabChange:function(t){},handleListPlaces:function(){var t=this;return(0,i.Z)((0,a.Z)().mark((function e(){var n;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.places.loading=!0,e.next=4,(0,s.U4)();case 4:n=e.sent,t.places.data=n.result,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.$log.error(e.t0);case 11:return e.prev=11,t.places.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})))()},findOptionList:function(){var t=this;return(0,i.Z)((0,a.Z)().mark((function e(){var n,r;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Uv)();case 2:n=e.sent,r=n.result,t.options=r,t.options.forEach((function(e){var n=e.category;"APP"===n&&(t.app=e.kvMap),"COMMON"===n&&(t.common=e.kvMap),"SEO"===n&&(t.seo=e.kvMap),"FILE"===n&&(t.file=e.kvMap),"NETWORK"===n&&(t.network=e.kvMap),"QBITTORRENT"===n&&(t.qbittorrent=e.kvMap),"BGMTV"===n&&(t.bgmtv=e.kvMap),"MIKAN"===n&&(t.mikan=e.kvMap),"JELLYFIN"===n&&(t.jellyfin=e.kvMap),"OTHER"===n&&(t.other=e.kvMap)}));case 6:case"end":return e.stop()}}),e)})))()},saveOption:function(t){var e=this;this.$log.debug("category",t);var n={};n.category=t,"APP"===t&&(n.kvMap=this.app),"COMMON"===t&&(n.kvMap=this.common),"SEO"===t&&(n.kvMap=this.seo),"FILE"===t&&(n.kvMap=this.file),"NETWORK"===t&&(n.kvMap=this.network),"QBITTORRENT"===t&&(n.kvMap=this.qbittorrent),"BGMTV"===t&&(n.kvMap=this.bgmtv),"MIKAN"===t&&(n.kvMap=this.mikan),"JELLYFIN"===t&&(n.kvMap=this.jellyfin),"OTHER"===t&&(n.kvMap=this.other),(0,c.O9)(n).then((function(t){e.$message.info("更新成功")})).catch((function(n){e.$log.error("save option fail, ",n),e.$message.error(n),"APP"===t&&(e.app.ENABLE_AUTO_ANIME_SUB_TASK="false"),"BGMTV"===t&&(e.bgmtv.ENABLE_PROXY="false"),"MIKAN"===t&&(e.mikan.ENABLE_PROXY="false")}))},changeHideForSearchEngineSwitch:function(t){this.seo.HIDE_FOR_SEARCH_ENGINE=t?"true":"false"},changeMikanEnableProxySwitch:function(t){this.mikan.ENABLE_PROXY=t?"true":"false"},changeEnableAuthSwitch:function(t){this.qbittorrent.ENABLE_AUTH=t?"true":"false"},changeBgmTvEnableProxySwitch:function(t){this.bgmtv.ENABLE_PROXY=t?"true":"false"},changeAppEnableAutoAnimeSubSwitch:function(t){this.app.ENABLE_AUTO_ANIME_SUB_TASK=t?"true":"false"},changeAppEnableGenerateMediaDirSwitch:function(t){this.app.ENABLE_GENERATE_MEDIA_DIR_TASK=t?"true":"false"},testQbittorrentConfig:function(){var t=this;this.testConnectQbittorrentButtonLoading=this,(0,l.nG)().then((function(e){var n=e.result;n?t.$message.success("测试Qbittorrent连接成功"):t.$message.error("测试Qbittorrent连接失败")})).catch((function(e){t.$log.error("test connect qbittorrent fail",e),t.$message.error("测试Qbittorrent连接失败")})).finally((function(){t.testConnectQbittorrentButtonLoading=!1}))},testProxyConfig:function(){var t=this;this.testConnectProxyButtonLoading=!0,(0,u.U)().then((function(e){var n=e.result;n?t.$message.success("测试HTTP代理连接成功"):t.$message.error("测试HTTP代理连接失败")})).catch((function(e){t.$log.error("test http proxy connect fail",e),t.$message.error("测试HTTP代理连接失败")})).finally((function(){t.testConnectProxyButtonLoading=!1}))},testBgmTvToken:function(){var t=this;this.testBgmTvTokenButtonLoading=!0,(0,l.Zv)().then((function(e){var n=e.result;n?t.$message.success("你好, "+n.nickname+"!"):t.$message.error("测试番组计划令牌失败")})).catch((function(e){t.$log.error("test bgmtv token fail",e),t.$message.error("测试番组计划令牌失败")})).finally((function(){t.testBgmTvTokenButtonLoading=!1}))}}},f=m,p=n(1001),h=(0,p.Z)(f,r,o,!1,null,"49f3cd0c",null),d=h.exports},30627:function(t,e,n){n.d(e,{F8:function(){return u},Jp:function(){return l},U4:function(){return c},Wd:function(){return m},Z9:function(){return s},bc:function(){return i},ws:function(){return a}});var r=n(46945),o={basic:"/file",upload:"/file/data",list:"/file/list",types:"/file/types",places:"/file/places",updateName:"/file/name"};function a(t,e){var n=new FormData;return n.append("file",t),(0,r.ZP)({url:o.upload,method:"put",onUploadProgress:e,data:n,headers:{"Content-Type":"multipart/form-data"}})}function i(t){return(0,r.ZP)({url:o.list,method:"get",params:t})}function s(){return(0,r.ZP)({url:o.types,method:"get"})}function c(){return(0,r.ZP)({url:o.places,method:"get"})}function l(t){return(0,r.ZP)({url:o.basic,method:"delete",params:t})}function u(t){return(0,r.ZP)({url:o.basic,method:"delete",params:t})}function m(t,e){return(0,r.ZP)({url:o.updateName,method:"put",params:{id:t,name:e}})}},26745:function(t,e,n){n.d(e,{U:function(){return i},Z:function(){return a}});var r=n(46945),o={basic:"/network",reqBgmtvBangumiMetadata:"/network/metadata/bgmTv/subject",testProxyConnect:"/network/proxy/connect/test"};function a(t){return(0,r.ZP)({url:o.reqBgmtvBangumiMetadata,method:"put",params:{id:t}})}function i(){return(0,r.ZP)({url:o.testProxyConnect,method:"get"})}},12921:function(t,e,n){n.d(e,{Zv:function(){return i},hP:function(){return c},nG:function(){return a},vs:function(){return s}});var r=n(46945),o={testQbittorrentConnect:"/tripartite/qbittorrent/connect/test",getBgmTvMe:"/tripartite/bgmtv/token/user/me",findDmhyRssItemsByAnimeId:"/tripartite/dmhy/rss/items/anime",findDmhyRssItems:"/tripartite/dmhy/rss/items"};function a(){return(0,r.ZP)({url:o.testQbittorrentConnect,mentions:"get"})}function i(){return(0,r.ZP)({url:o.getBgmTvMe,method:"get"})}function s(t,e){return(0,r.ZP)({url:o.findDmhyRssItemsByAnimeId+"/"+t,method:"get",params:{seq:e}})}function c(t){return(0,r.ZP)({url:o.findDmhyRssItems,method:"get",params:{keyword:t}})}},48534:function(t,e,n){n.d(e,{Z:function(){return o}});n(41539);function r(t,e,n,r,o,a,i){try{var s=t[a](i),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function s(t){r(i,o,a,s,c,"next",t)}function c(t){r(i,o,a,s,c,"throw",t)}s(void 0)}))}}},6835:function(t,e,n){n.d(e,{Z:function(){return o}});n(82526),n(41817),n(41539),n(32165),n(78783),n(33948),n(72443),n(39341),n(73706),n(10408),n(30489),n(54747),n(68309),n(68304),n(47042);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(A){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=k(i,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=m(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,i),a}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(w([])));g&&g!==e&&n.call(g,i)&&(v=g);var E=d.prototype=p.prototype=Object.create(v);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function o(a,i,c,s){var l=m(t[a],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==r(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(f).then((function(t){u.value=t,c(u)}),(function(t){return o("throw",t,c,s)}))}s(l.arg)}var a;this._invoke=function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=m(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function w(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}}}]); \ No newline at end of file +o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(A){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return P()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=k(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=m(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,i),a}function m(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};l(v,i,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(w([])));g&&g!==e&&n.call(g,i)&&(v=g);var y=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function o(a,i,s,c){var l=m(t[a],t,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==r(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return o("throw",t,s,c)}))}c(l.arg)}var a;this._invoke=function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return a=a?a.then(r,r):r()}}function k(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=m(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function w(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/app.c0b37552.js b/src/main/resources/admin/js/app.12b068ff.js similarity index 98% rename from src/main/resources/admin/js/app.c0b37552.js rename to src/main/resources/admin/js/app.12b068ff.js index c94617dc2..f5812bc8f 100644 --- a/src/main/resources/admin/js/app.c0b37552.js +++ b/src/main/resources/admin/js/app.12b068ff.js @@ -1 +1 @@ -(function(){var e={46700:function(e,t,n){var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=46700},29131:function(e,t,n){"use strict";n.d(t,{O9:function(){return u},U_:function(){return s},Uv:function(){return a},zZ:function(){return i}});var r=n(46945),o={getOptionAppIsInit:"/option/app/is-init",postOptionAppInit:"/option/app/init",getOptionList:"/option/list",saveOptionWithRequest:"/option"};function i(){return(0,r.ZP)({url:o.getOptionAppIsInit,method:"get"})}function s(e){return(0,r.ZP)({url:o.postOptionAppInit,method:"post",data:e})}function a(){return(0,r.ZP)({url:o.getOptionList,method:"get"})}function u(e){return(0,r.ZP)({url:o.saveOptionWithRequest,method:"post",data:e})}},32900:function(e,t,n){"use strict";n.d(t,{C5:function(){return l},Xf:function(){return f},sL:function(){return d},x4:function(){return c}});var r=n(46945),o=n(55743),i=n.n(o),s=n(98269),a=n.n(s),u={Login:"/user/login",ForgePassword:"/user/forge-password",Register:"/user/register",UserInfo:"/user/info",userSubscribeByAnimeId:"/user/subscribe/anime"};function c(e){return(0,r.ZP)({url:u.Login,method:"post",data:e})}function l(){return(0,r.ZP)({url:u.UserInfo,method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function d(e,t,n){var o=i().parse(n);return n=a().stringify(o),(0,r.ZP)({url:u.userSubscribeByAnimeId+"/"+e,method:"put",params:{progress:t,additional:n}})}function f(e){return(0,r.ZP)({url:u.userSubscribeByAnimeId+"/"+e,method:"delete"})}},15899:function(e,t){"use strict";t["Z"]={navTheme:"dark",primaryColor:"#1890ff",layout:"sidemenu",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,colorWeak:!1,menu:{locale:!0},title:"Ikaros Admin",pwa:!1,iconfontUrl:"",production:!0}},45695:function(e,t,n){"use strict";n.d(t,{j:function(){return i},k:function(){return s}});n(41539),n(78783),n(33948);var r=n(46456),o={name:"RouteView",render:function(e){return e("router-view")}},i=[{path:"/",name:"index",component:r.iO,meta:{title:"menu.home"},redirect:"/dashboard",children:[{path:"/dashboard",name:"dashboard",component:function(){return n.e(719).then(n.bind(n,48039))},meta:{title:"menu.dashboard",keepAlive:!0,icon:"dashboard",permission:["dashboard"]}},{path:"/file",name:"File",component:function(){return Promise.all([n.e(617),n.e(909)]).then(n.bind(n,20909))},meta:{title:"menu.file",icon:"picture"}},{path:"/anime",component:o,redirect:"/anime/list",name:"anime",meta:{title:"番剧",keepAlive:!0,icon:"appstore"},children:[{path:"/anime/detail/:id",name:"AnimeDetail",hidden:!0,component:function(){return Promise.all([n.e(617),n.e(343),n.e(816)]).then(n.bind(n,31067))},meta:{title:"动漫详情",keepAlive:!0}},{path:"/anime/save",name:"AnimeSave",component:function(){return Promise.all([n.e(617),n.e(343),n.e(546)]).then(n.bind(n,7193))},meta:{title:"保存番剧",hideHeader:!0},hideChildrenInMenu:!0},{path:"/anime/list",name:"AnimeList",component:function(){return n.e(955).then(n.bind(n,47955))},meta:{title:"番剧列表",hideHeader:!0},hideChildrenInMenu:!0}]},{path:"/account",component:o,redirect:"/account/center",name:"account",meta:{title:"menu.account",icon:"user",keepAlive:!0,permission:["user"]},children:[{path:"/account/center",name:"center",component:function(){return n.e(348).then(n.bind(n,75348))},meta:{title:"menu.account.center",keepAlive:!0,permission:["user"]}},{path:"/account/settings",name:"settings",component:function(){return n.e(54).then(n.bind(n,30054))},meta:{title:"menu.account.settings",hideHeader:!0,permission:["user"]},hideChildrenInMenu:!0}]},{path:"/system",name:"System",component:r.it,redirect:"/system/options",meta:{title:"menu.system",icon:"setting"},children:[{path:"/system/options",name:"SystemOptions",component:function(){return n.e(605).then(n.bind(n,56605))},meta:{title:"menu.system.options",hiddenHeaderContent:!1}}]}]},{path:"*",redirect:"/404",hidden:!0}],s=[{path:"/user",component:r.rf,redirect:"/user/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return n.e(378).then(n.bind(n,73644))}},{path:"/password/reset",name:"ResetPassword",meta:{title:"重置密码"},component:function(){return n.e(795).then(n.bind(n,51795))}}]},{path:"/option/app/init",name:"OptionAppInit",component:function(){return n.e(36).then(n.bind(n,34036))},hidden:!0},{path:"/404",component:function(){return n.e(593).then(n.bind(n,54260))}}]},46456:function(e,t,n){"use strict";n.d(t,{iO:function(){return ae},it:function(){return I},B4:function(){return ye},Ws:function(){return de},rf:function(){return E}});var r,o,i=function(){var e=this,t=e._self._c;return t("div",{class:["user-layout-wrapper",e.isMobile&&"mobile"],attrs:{id:"userLayout"}},[t("div",{staticClass:"container"},[t("div",{staticClass:"user-layout-lang"},[t("select-lang",{staticClass:"select-lang-trigger"})],1),t("div",{staticClass:"user-layout-content"},[t("div",{staticClass:"top"},[t("div",{staticClass:"header"},[t("a",{attrs:{href:"/"}},[t("span",{staticClass:"title"},[e._v(e._s(e.title))])])]),t("div",{staticClass:"desc"},[e._v(" "+e._s(e.$t("layouts.userLayout.title"))+" ")])]),t("router-view"),t("div",{staticClass:"footer"},[t("global-footer")],1)],1)])])},s=[],a=n(95082),u=n(20629),c={computed:(0,a.Z)({},(0,u.rn)({isMobile:function(e){return e.app.isMobile}}))},l=(n(67485),n(6723)),d=(n(46724),n(62746)),f=(n(65057),n(17001)),m=(n(21249),n(80685)),p={computed:(0,a.Z)({},(0,u.rn)({currentLang:function(e){return e.app.lang}})),methods:{setLang:function(e){this.$store.dispatch("setLang",e)}}},g=p,h=["zh-CN","en-US"],y={"zh-CN":"简体中文","en-US":"English"},b={"zh-CN":"🇨🇳","en-US":"🇺🇸"},v={props:{prefixCls:{type:String,default:"ant-pro-drop-down"}},name:"SelectLang",mixins:[g],render:function(){var e=this,t=arguments[0],n=this.prefixCls,r=function(t){var n=t.key;e.setLang(n)},o=t(f.ZP,{class:["menu","ant-pro-header-menu"],attrs:{selectedKeys:[this.currentLang]},on:{click:r}},[h.map((function(e){return t(f.ZP.Item,{key:e},[t("span",{attrs:{role:"img","aria-label":y[e]}},[b[e]])," ",y[e]])}))]);return t(l.ZP,{attrs:{overlay:o,placement:"bottomRight"}},[t("span",{class:n},[t(d.Z,{attrs:{type:"global",title:(0,m.po)("navBar.lang")}})])])}},j=v,Z=function(){var e=this,t=e._self._c;return t("global-footer",{staticClass:"footer custom-render",scopedSlots:e._u([{key:"links",fn:function(){},proxy:!0},{key:"copyright",fn:function(){return[e._v(" Proudly power by "),t("a",{attrs:{href:"https://github.com/ikaros-dev/ikaros",target:"_blank"}},[e._v("Ikaros")])]},proxy:!0}])})},w=[],k=n(40321),C={name:"ProGlobalFooter",components:{GlobalFooter:k.Tj}},S=C,P=n(1001),x=(0,P.Z)(S,Z,w,!1,null,null,null),N=x.exports,A=n(15899),T={name:"UserLayout",components:{SelectLang:j,GlobalFooter:N},data:function(){return{title:A.Z.title}},mixins:[c],mounted:function(){document.body.classList.add("userLayout")},beforeDestroy:function(){document.body.classList.remove("userLayout")}},_=T,z=(0,P.Z)(_,i,s,!1,null,"1dfc3821",null),E=z.exports,L=function(){var e=this,t=e._self._c;return t("div",[t("router-view")],1)},M=[],O={name:"BlankLayout"},F=O,U=(0,P.Z)(F,L,M,!1,null,"7f25f9eb",null),I=U.exports,D=function(){var e=this,t=e._self._c;return t("pro-layout",e._b({attrs:{menus:e.menus,collapsed:e.collapsed,mediaQuery:e.query,isMobile:e.isMobile,handleMediaQuery:e.handleMediaQuery,handleCollapse:e.handleCollapse,i18nRender:e.i18nRender},scopedSlots:e._u([{key:"menuHeaderRender",fn:function(){return[t("div",[t("h1",[e._v(e._s(e.title))])])]},proxy:!0},{key:"headerContentRender",fn:function(){return[t("div",[t("a-tooltip",{attrs:{title:"刷新页面"}},[t("a-icon",{staticStyle:{"font-size":"18px",cursor:"pointer"},attrs:{type:"reload"},on:{click:e.reloadPage}})],1)],1)]},proxy:!0},{key:"rightContentRender",fn:function(){return[t("right-content",{attrs:{"top-menu":"topmenu"===e.settings.layout,"is-mobile":e.isMobile,theme:e.settings.theme}})]},proxy:!0},{key:"footerRender",fn:function(){return[t("global-footer")]},proxy:!0}])},"pro-layout",e.settings,!1),[e.isDev?t("setting-drawer",{attrs:{settings:e.settings},on:{change:e.handleSettingChange}},[t("div",{staticStyle:{margin:"12px 0"}},[e._v(" This is SettingDrawer custom footer content. ")])]):e._e(),t("router-view")],1)},R=[],B=(n(69826),n(41539),n(28762)),$=function(){var e=this,t=e._self._c;return t("div",{class:e.wrpCls},[t("avatar-dropdown",{class:e.prefixCls,attrs:{menu:e.showMenu,"current-user":e.currentUser}}),t("select-lang",{class:e.prefixCls})],1)},q=[],V=n(82482),H=function(){var e=this,t=e._self._c;return e.currentUser&&e.currentUser.username?t("a-dropdown",{attrs:{placement:"bottomRight"},scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",{staticClass:"ant-pro-drop-down menu",attrs:{"selected-keys":[]}},[e.menu?t("a-menu-item",{key:"center",on:{click:e.handleToCenter}},[t("a-icon",{attrs:{type:"user"}}),e._v(" "+e._s(e.$t("menu.account.center"))+" ")],1):e._e(),e.menu?t("a-menu-item",{key:"settings",on:{click:e.handleToSettings}},[t("a-icon",{attrs:{type:"setting"}}),e._v(" "+e._s(e.$t("menu.account.settings"))+" ")],1):e._e(),e.menu?t("a-menu-divider"):e._e(),t("a-menu-item",{key:"logout",on:{click:e.handleLogout}},[t("a-icon",{attrs:{type:"logout"}}),e._v(" "+e._s(e.$t("menu.account.logout"))+" ")],1)],1)]},proxy:!0}],null,!1,493164005)},[t("span",{staticClass:"ant-pro-account-avatar"},[t("a-avatar",{staticClass:"antd-pro-global-header-index-avatar",attrs:{size:"small",src:e.currentUser.avatar}}),t("span",[e._v(e._s(e.currentUser.username))])],1)]):t("span",[t("a-spin",{style:{marginLeft:8,marginRight:8},attrs:{size:"small"}})],1)},W=[],G=(n(57986),n(45361)),Y={name:"AvatarDropdown",props:{currentUser:{type:Object,default:function(){return null}},menu:{type:Boolean,default:!0}},methods:{handleToCenter:function(){this.$router.push({path:"/account/center"})},handleToSettings:function(){this.$router.push({path:"/account/settings"})},handleLogout:function(e){var t=this;G.Z.confirm({title:this.$t("layouts.usermenu.dialog.title"),content:this.$t("layouts.usermenu.dialog.content"),onOk:function(){return t.$store.dispatch("Logout").then((function(){t.$router.push({name:"login"})}))},onCancel:function(){}})}}},K=Y,J=(0,P.Z)(K,H,W,!1,null,"9783358c",null),Q=J.exports,X=n(6016),ee={name:"RightContent",components:{AvatarDropdown:Q,SelectLang:j},props:{prefixCls:{type:String,default:"ant-pro-global-header-index-action"},isMobile:{type:Boolean,default:function(){return!1}},topMenu:{type:Boolean,required:!0},theme:{type:String,required:!0}},data:function(){return{showMenu:!0,currentUser:{}}},computed:{wrpCls:function(){return(0,V.Z)({"ant-pro-global-header-index-right":!0},"ant-pro-global-header-index-".concat(this.isMobile||!this.topMenu?"light":this.theme),!0)}},mounted:function(){var e=this;setTimeout((function(){e.currentUser=X.Z.getters.userInfo}),1500)}},te=ee,ne=(0,P.Z)(te,$,q,!1,null,null,null),re=ne.exports,oe={name:"BasicLayout",components:{SettingDrawer:k.WB,RightContent:re,GlobalFooter:N},data:function(){return{isProPreviewSite:!1,isDev:!1,menus:[],collapsed:!1,title:A.Z.title,settings:{layout:A.Z.layout,contentWidth:"sidemenu"===A.Z.layout?B.eX.Fluid:A.Z.contentWidth,theme:A.Z.navTheme,primaryColor:A.Z.primaryColor,fixedHeader:A.Z.fixedHeader,fixSiderbar:A.Z.fixSiderbar,colorWeak:A.Z.colorWeak,hideHintAlert:!1,hideCopyButton:!1},query:{},isMobile:!1}},computed:(0,a.Z)({},(0,u.rn)({mainMenu:function(e){return e.permission.addRouters}})),created:function(){var e=this,t=this.mainMenu.find((function(e){return"/"===e.path}));this.menus=t&&t.children||[],this.$watch("collapsed",(function(){e.$store.commit(B.mQ,e.collapsed)})),this.$watch("isMobile",(function(){e.$store.commit(B.gF,e.isMobile)}))},mounted:function(){var e=this,t=navigator.userAgent;t.indexOf("Edge")>-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:{i18nRender:m.po,handleMediaQuery:function(e){this.query=e,!this.isMobile||e["screen-xs"]?!this.isMobile&&e["screen-xs"]&&(this.isMobile=!0,this.collapsed=!1,this.settings.contentWidth=B.eX.Fluid):this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,n=e.value;switch(t&&(this.settings[t]=n),t){case"contentWidth":this.settings[t]=n;break;case"layout":"sidemenu"===n?this.settings.contentWidth=B.eX.Fluid:(this.settings.fixSiderbar=!1,this.settings.contentWidth=B.eX.Fixed);break}},reloadPage:function(){this.$router.go(this.$router.currentRoute)}}},ie=oe,se=(0,P.Z)(ie,D,R,!1,null,null,null),ae=se.exports,ue={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=this.$store.getters,r=e("keep-alive",[e("router-view")]),o=e("router-view");return(n.multiTab||t.keepAlive)&&(this.keepAlive||n.multiTab||t.keepAlive)?r:o}},ce=ue,le=(0,P.Z)(ce,r,o,!1,null,null,null),de=le.exports,fe=function(){var e=this,t=e._self._c;return t("page-header-wrapper",[t("router-view")],1)},me=[],pe={name:"PageView"},ge=pe,he=(0,P.Z)(ge,fe,me,!1,null,null,null),ye=he.exports},80685:function(e,t,n){"use strict";n.d(t,{Wf:function(){return h},po:function(){return y}});var r=n(95082),o=(n(41539),n(26699),n(78783),n(33948),n(20144)),i=n(17152),s=n(58971),a=n.n(s),u=n(30381),c=n.n(u),l=n(48815);o["default"].use(i.Z);var d="en-US",f={"en-US":(0,r.Z)({},l["default"])},m=new i.Z({silentTranslationWarn:!0,locale:d,fallbackLocale:d,messages:f}),p=[d];function g(e){return m.locale=e,document.querySelector("html").setAttribute("lang",e),e}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return new Promise((function(t){return a().set("lang",e),m.locale!==e?p.includes(e)?t(g(e)):n(54790)("./".concat(e)).then((function(t){var n=t.default;return m.setLocaleMessage(e,n),p.push(e),c().updateLocale(n.momentName,n.momentLocale),g(e)})):t(e)}))}function y(e){return m.t("".concat(e))}t["ZP"]=m},48815:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(26226),i=n(77763),s=n.n(i),a=n(46812),u=n(56189),c=n(14007),l=n(14184),d=n(94525),f=n(5045),m=n(47055),p=n(23717),g=n(63957),h=n(40814),y=n(91972),b={antLocale:o.Z,momentName:"eu",momentLocale:s()};t["default"]=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({message:"-","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Are you sure you would like to logout?","layouts.userLayout.title":"ikaros is an open source acgmn cms application"},b),a["default"]),u["default"]),c["default"]),l["default"]),d["default"]),f["default"]),m["default"]),p["default"]),g["default"]),h["default"]),y["default"])},47055:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(48703);t["default"]=(0,r.Z)({},o["default"])},48703:function(e,t,n){"use strict";n.r(t),t["default"]={"account.settings.menuMap.basic":"Basic Settings","account.settings.menuMap.security":"Security Settings","account.settings.menuMap.custom":"Custom Settings","account.settings.menuMap.binding":"Account Binding","account.settings.menuMap.notification":"New Message Notification","account.settings.basic.avatar":"Avatar","account.settings.basic.change-avatar":"Change avatar","account.settings.basic.email":"Email","account.settings.basic.email-message":"Please input your email!","account.settings.basic.nickname":"Nickname","account.settings.basic.nickname-message":"Please input your Nickname!","account.settings.basic.profile":"Personal profile","account.settings.basic.profile-message":"Please input your personal profile!","account.settings.basic.profile-placeholder":"Brief introduction to yourself","account.settings.basic.country":"Country/Region","account.settings.basic.country-message":"Please input your country!","account.settings.basic.geographic":"Province or city","account.settings.basic.geographic-message":"Please input your geographic info!","account.settings.basic.address":"Street Address","account.settings.basic.address-message":"Please input your address!","account.settings.basic.phone":"Phone Number","account.settings.basic.phone-message":"Please input your phone!","account.settings.basic.update":"Update Information","account.settings.basic.update.success":"Update basic information successfully","account.settings.security.strong":"Strong","account.settings.security.medium":"Medium","account.settings.security.weak":"Weak","account.settings.security.password":"Account Password","account.settings.security.password-description":"Current password strength:","account.settings.security.phone":"Security Phone","account.settings.security.phone-description":"Bound phone:","account.settings.security.question":"Security Question","account.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","account.settings.security.email":"Backup Email","account.settings.security.email-description":"Bound Email:","account.settings.security.mfa":"MFA Device","account.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","account.settings.security.modify":"Modify","account.settings.security.set":"Set","account.settings.security.bind":"Bind","account.settings.binding.taobao":"Binding Taobao","account.settings.binding.taobao-description":"Currently unbound Taobao account","account.settings.binding.alipay":"Binding Alipay","account.settings.binding.alipay-description":"Currently unbound Alipay account","account.settings.binding.dingding":"Binding DingTalk","account.settings.binding.dingding-description":"Currently unbound DingTalk account","account.settings.binding.bind":"Bind","account.settings.notification.password":"Account Password","account.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","account.settings.notification.messages":"System Messages","account.settings.notification.messages-description":"System messages will be notified in the form of a station letter","account.settings.notification.todo":"To-do Notification","account.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","account.settings.settings.open":"Open","account.settings.settings.close":"Close"}},94525:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(24134);t["default"]=(0,r.Z)((0,r.Z)({},o["default"]),{},{"dashboard.index.breadcrumb.description":"dashboard panel"})},24134:function(e,t,n){"use strict";n.r(t),t["default"]={}},63957:function(e,t,n){"use strict";n.r(t),t["default"]={"result.exception.backhome":"Back Home","result.exception.404.title":"404","result.exception.404.subtitle":"Sorry, the page you visited does not exist.","result.exception.403.title":"403","result.exception.403.subtitle":"Sorry, you don't have access to this page.","result.exception.500.title":"500","result.exception.500.subtitle":"Sorry, the server is reporting an error."}},5045:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(51542);t["default"]=(0,r.Z)({},o["default"])},51542:function(e,t,n){"use strict";n.r(t),t["default"]={"form.basic-form.email.required":"Please enter your email!","form.basic-form.email.wrong-format":"The email address is in the wrong format!","form.basic-form.userName.required":"Please enter your userName!","form.basic-form.password.required":"Please enter your password!","form.basic-form.password.twice":"The passwords entered twice do not match!","form.basic-form.strength.msg":"Please enter at least 6 characters and don't use passwords that are easy to guess.","form.basic-form.strength.strong":"Strength: strong","form.basic-form.strength.medium":"Strength: medium","form.basic-form.strength.short":"Strength: too short","form.basic-form.confirm-password.required":"Please confirm your password!","form.basic-form.phone-number.required":"Please enter your phone number!","form.basic-form.phone-number.wrong-format":"Malformed phone number!","form.basic-form.verification-code.required":"Please enter the verification code!","form.basic-form.form.get-captcha":"Get Captcha","form.basic-form.captcha.second":"sec","form.basic-form.form.optional":" (optional) ","form.basic-form.form.submit":"Submit","form.basic-form.form.save":"Save","form.basic-form.email.placeholder":"Email","form.basic-form.password.placeholder":"Password","form.basic-form.confirm-password.placeholder":"Confirm password","form.basic-form.phone-number.placeholder":"Phone number","form.basic-form.verification-code.placeholder":"Verification code"}},46812:function(e,t,n){"use strict";n.r(t),t["default"]={submit:"Submit",save:"Save","submit.ok":"Submit successfully","save.ok":"Saved successfully"}},56189:function(e,t,n){"use strict";n.r(t),t["default"]={"menu.welcome":"Welcome","menu.home":"Home","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","menu.form":"Form","menu.form.basic-form":"Basic Form","menu.form.step-form":"Step Form","menu.form.step-form.info":"Step Form(write transfer information)","menu.form.step-form.confirm":"Step Form(confirm transfer information)","menu.form.step-form.result":"Step Form(finished)","menu.form.advanced-form":"Advanced Form","menu.list":"List","menu.list.table-list":"Search Table","menu.list.basic-list":"Basic List","menu.list.card-list":"Card List","menu.list.search-list":"Search List","menu.list.search-list.articles":"Search List(articles)","menu.list.search-list.projects":"Search List(projects)","menu.list.search-list.applications":"Search List(applications)","menu.profile":"Profile","menu.profile.basic":"Basic Profile","menu.profile.advanced":"Advanced Profile","menu.result":"Result","menu.result.success":"Success","menu.result.fail":"Fail","menu.exception":"Exception","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"Trigger","menu.file":"File","menu.file.add":"add","menu.file.list":"list","menu.file.edit":"edit","menu.account":"Account","menu.account.center":"Account Center","menu.account.settings":"Account Settings","menu.account.trigger":"Trigger Error","menu.account.logout":"Logout","menu.system":"System","menu.system.options":"System Options","menu.system.actionlogs":"Action Logs","menu.system.about":"About"}},91972:function(e,t,n){"use strict";n.r(t),t["default"]={"request.data.code.fail.msg.prefix":"request fail, message is: "}},14007:function(e,t,n){"use strict";n.r(t),t["default"]={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/config/defaultSettings.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple"}},40814:function(e,t,n){"use strict";n.r(t),t["default"]={"menu.test":"Test"}},14184:function(e,t,n){"use strict";n.r(t),t["default"]={"user.login.userName":"userName","user.login.password":"password","user.login.username.placeholder":"please enter username or email","user.login.password.placeholder":"please enter password","user.login.message-invalid-credentials":"Invalid username or password","user.login.message-invalid-verification-code":"Invalid verification code","user.login.tab-login-credentials":"Credentials","user.login.tab-login-mobile":"Mobile number","user.login.mobile.placeholder":"Mobile number","user.login.mobile.verification-code.placeholder":"Verification code","user.login.remember-me":"Remember me","user.login.forgot-password":"Forgot your password?","user.login.sign-in-with":"Sign in with","user.login.signup":"Sign up","user.login.login":"Login","user.login.success.message":"welcome","user.login.success.description":", welcome back","user.login.reqfail.message":"login fail","user.register.register":"Register","user.register.email.placeholder":"Email","user.register.password.placeholder":"Password ","user.register.password.popover-message":"Please enter at least 6 characters. Please do not use passwords that are easy to guess. ","user.register.confirm-password.placeholder":"Confirm password","user.register.get-verification-code":"Get code","user.register.sign-in":"Already have an account?","user.register-result.msg":"Account:registered at {email}","user.register-result.activation-email":"The activation email has been sent to your email address and is valid for 24 hours. Please log in to the email in time and click on the link in the email to activate the account.","user.register-result.back-home":"Back to home","user.register-result.view-mailbox":"View mailbox","user.email.required":"Please enter your email!","user.email.wrong-format":"The email address is in the wrong format!","user.userName.required":"Please enter username or email address","user.password.required":"Please enter your password!","user.password.twice.msg":"The passwords entered twice do not match!","user.password.strength.msg":"The password is not strong enough","user.password.strength.strong":"Strength: strong","user.password.strength.medium":"Strength: medium","user.password.strength.low":"Strength: low","user.password.strength.short":"Strength: too short","user.confirm-password.required":"Please confirm your password!","user.phone-number.required":"Please enter your phone number!","user.phone-number.wrong-format":"Please enter a valid phone number","user.verification-code.required":"Please enter the verification code! mssage","user.auth.unauthorized.title":"Unauthorized","user.auth.unauthorized.desc":"Authorization verification failed!","user.auth.forbidden.title":"Forbidden","user.auth.forbidden.desc":"Access is forbidden!"}},23717:function(e,t,n){"use strict";n.r(t),t["default"]={"util.timefix.greetings.morning":"good morning","util.timefix.greetings.forenoon":"good forenoon","util.timefix.greetings.midday":"good midday","util.timefix.greetings.afternoon":"good afternoon","util.timefix.greetings.evening":"good evening"}},79143:function(e,t,n){"use strict";n(66992),n(88674),n(19601),n(17727),n(82526),n(41817),n(72443),n(92401),n(8722),n(32165),n(69007),n(83510),n(41840),n(6982),n(32159),n(96649),n(39341),n(60543),n(92222),n(50545),n(43290),n(57327),n(69826),n(34553),n(84944),n(86535),n(91038),n(26699),n(69600),n(21249),n(26572),n(47042),n(2707),n(38706),n(40561),n(33792),n(99244),n(18264),n(76938),n(39575),n(96078),n(4855),n(68309),n(73706),n(51532),n(99752),n(82376),n(73181),n(23484),n(2388),n(88621),n(60403),n(84755),n(25438),n(90332),n(40658),n(40197),n(44914),n(52420),n(60160),n(60970),n(10408),n(73689),n(9653),n(93299),n(35192),n(33161),n(44048),n(78285),n(44363),n(55994),n(61874),n(9494),n(56977),n(59595),n(35500),n(69720),n(43371),n(38559),n(38880),n(49337),n(36210),n(30489),n(43304),n(41825),n(98410),n(72200),n(47941),n(94869),n(33952),n(57227),n(60514),n(68304),n(41539),n(26833),n(36535),n(12419),n(69596),n(52586),n(74819),n(95683),n(39361),n(51037),n(5898),n(67556),n(14361),n(83593),n(39532),n(24603),n(74916),n(92087),n(39714),n(70189),n(79841),n(27852),n(94953),n(32023),n(78783),n(4723),n(66528),n(83112),n(38992),n(82481),n(15306),n(64765),n(23123),n(23157),n(73210),n(48702),n(55674),n(15218),n(74475),n(57929),n(50915),n(29253),n(42125),n(78830),n(58734),n(29254),n(37268),n(7397),n(60086),n(80623),n(44197),n(76495),n(87145),n(35109),n(65125),n(82472),n(49743),n(8255),n(29135),n(92990),n(18927),n(33105),n(35035),n(74345),n(7174),n(32846),n(98145),n(44731),n(77209),n(96319),n(58867),n(37789),n(33739),n(95206),n(29368),n(14483),n(12056),n(3462),n(30678),n(27462),n(33824),n(55021),n(12974),n(15016),n(4129),n(38478),n(54747),n(33948),n(84633),n(85844),n(60285),n(83753),n(41637),n(35666);var r=n(20144),o=function(){var e=this,t=e._self._c;return t("a-config-provider",{attrs:{locale:e.locale}},[t("div",{attrs:{id:"app"}},[t("router-view")],1)])},i=[],s=n(15899),a=function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var r=document.createElement("iframe");r.src="/favicon.ico",r.style.display="none",r.onload=function(){setTimeout((function(){r.remove()}),9)},document.body.appendChild(r)}},u=s.Z.title,c=n(80685),l={data:function(){return{}},computed:{locale:function(){var e=this.$route.meta.title;return e&&a("".concat((0,c.po)(e)," - ").concat(u)),this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale}}},d=l,f=n(1001),m=(0,f.Z)(d,o,i,!1,null,null,null),p=m.exports,g=n(78345),h=n(45695),y=g.ZP.prototype.push;g.ZP.prototype.push=function(e,t,n){return t||n?y.call(this,e,t,n):y.call(this,e).catch((function(e){return e}))},r["default"].use(g.ZP);var b=function(){return new g.ZP({routes:h.k})},v=b();function j(){var e=b();v.matcher=e.matcher}var Z=v,w=n(6016),k=n(46945),C=n(40321),S={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},P=n(83299),x=n(72268),N=n.n(x),A=n(5953),T=n.n(A),_={props:{options:{type:Object}},data:function(){return{dp:null}},mounted:function(){var e=this;this.options.container=this.$el;var t=this.dp=new(T())(this.options),n=t.events;Object.keys(n).forEach((function(r){if("events"===r)return!1;n[r].forEach((function(n){t.on(n,(function(){return e.$emit(n)}))}))}))},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=void 0===n?"d-player":n;e.component(r,this)},render:function(e){return e("div",{class:"dplayer"},[])}};"undefined"!==typeof window&&window.Vue&&(window.VideoDPlayer=_);var z=_,E=n(58971),L=n.n(E),M=n(28762),O=function(){" \n \n ### \n # # # ## ##### #### #### \n # # # # # # # # # # \n # #### # # # # # # #### \n # # # ###### ##### # # # \n # # # # # # # # # # # \n ### # # # # # # #### #### \n \n\n\t\t\t\t\tPublished ".concat("0.0.1","-").concat("fc154b2"," @https://github.com/li-guohao/ikaros-admin\n\t\t\t\t\tBuild date: ").concat("2022/12/7 22:15:36")};function F(){O(),w.Z.commit(M.bB,L().get(M.bB,s.Z.layout)),w.Z.commit(M.rk,L().get(M.rk,s.Z.fixedHeader)),w.Z.commit(M.JZ,L().get(M.JZ,s.Z.fixSiderbar)),w.Z.commit(M.yK,L().get(M.yK,s.Z.contentWidth)),w.Z.commit(M.aG,L().get(M.aG,s.Z.autoHideHeader)),w.Z.commit(M.$Y,L().get(M.$Y,s.Z.navTheme)),w.Z.commit(M.TV,L().get(M.TV,s.Z.colorWeak)),w.Z.commit(M.pI,L().get(M.pI,s.Z.primaryColor)),w.Z.commit(M.zP,L().get(M.zP,s.Z.multiTab)),w.Z.commit("SET_TOKEN",L().get(M.LA)),w.Z.dispatch("setLang",L().get(M.gJ,"en-US"))}n(11611);var U=n(70473),I=(n(94310),n(61446)),D=(n(84575),n(24741)),R=(n(16388),n(84246)),B=(n(42414),n(40726)),$=(n(74457),n(87657)),q=(n(6788),n(97139)),V=(n(12431),n(64053)),H=(n(17219),n(22834)),W=(n(93589),n(97119)),G=(n(58258),n(50091)),Y=(n(26165),n(87204)),K=(n(17198),n(41544)),J=(n(63197),n(60469)),Q=(n(92591),n(52653)),X=(n(31529),n(54436)),ee=(n(83616),n(23887)),te=(n(20446),n(16987)),ne=(n(93300),n(45862)),re=(n(58293),n(45542)),oe=(n(7283),n(60333)),ie=(n(5378),n(96650)),se=(n(65057),n(17001)),ae=(n(49282),n(97152)),ue=(n(85597),n(50724)),ce=(n(38770),n(47346)),le=(n(44830),n(54464)),de=(n(12777),n(70108)),fe=(n(67485),n(6723)),me=(n(89397),n(98704)),pe=(n(91019),n(12094)),ge=(n(46724),n(62746)),he=(n(80106),n(75145)),ye=(n(46791),n(3822)),be=(n(57986),n(45361)),ve=(n(88124),n(65494)),je=(n(51998),n(24871)),Ze=(n(50460),n(57288)),we=(n(84324),n(95878)),ke=(n(58569),n(9330)),Ce=(n(79861),n(36993)),Se=(n(28633),n(40058)),Pe=(n(82577),n(39744)),xe=(n(80149),n(63060)),Ne=(n(11838),n(5559)),Ae=(n(38049),n(71140)),Te=(n(76266),n(36511)),_e=(n(18702),n(87831)),ze=n(60384),Ee=n(94862),Le=n.n(Ee),Me=n(95082),Oe={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},n={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(ae.Z,{attrs:{size:this.size,tip:this.tip},style:n})])}},Fe="0.0.1",Ue={newInstance:function(e,t){var n=document.querySelector("body>div[type=loading]");n||(n=document.createElement("div"),n.setAttribute("type","loading"),n.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(n));var r=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),o=new e({data:function(){return(0,Me.Z)({},r)},render:function(){var e=arguments[0],t=this.tip,n={};return this.tip&&(n.tip=t),this.visible?e(Oe,{props:(0,Me.Z)({},n)}):null}}).$mount(n);function i(e){var t=(0,Me.Z)((0,Me.Z)({},r),e),n=t.visible,i=t.size,s=t.tip;o.$set(o,"visible",n),s&&o.$set(o,"tip",s),i&&o.$set(o,"size",i)}return{instance:o,update:i}}},Ie={show:function(e){this.instance.update((0,Me.Z)((0,Me.Z)({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},De=function(e,t){e.prototype.$loading||(Ie.instance=Ue.newInstance(e,t),e.prototype.$loading=Ie)},Re={version:Fe,install:De};r["default"].use(_e.Z),r["default"].use(Te.Z),r["default"].use(Ae.Z),r["default"].use(Ne.Z),r["default"].use(xe.Z),r["default"].use(Pe.Z),r["default"].use(Se.ZP),r["default"].use(Ce.Z),r["default"].use(ke.ZP),r["default"].use(we.Z),r["default"].use(Ze.ZP),r["default"].use(je.Z),r["default"].use(ve.Z),r["default"].use(be.Z),r["default"].use(ye.Z),r["default"].use(he.ZP),r["default"].use(ge.Z),r["default"].use(pe.Z),r["default"].use(me.Z),r["default"].use(fe.ZP),r["default"].use(de.ZP),r["default"].use(le.Z),r["default"].use(ce.Z),r["default"].use(ue.Z),r["default"].use(ae.Z),r["default"].use(se.ZP),r["default"].use(ie.Z),r["default"].use(oe.Z),r["default"].use(re.Z),r["default"].use(ne.Z),r["default"].use(te.Z),r["default"].use(ee.Z),r["default"].use(X.ZP),r["default"].use(Q.ZP),r["default"].use(J.Z),r["default"].use(K.Z),r["default"].use(Y.Z),r["default"].use(G.Z),r["default"].use(W.ZP),r["default"].use(H.Z),r["default"].use(V.ZP),r["default"].use(q.ZP),r["default"].use($.ZP),r["default"].use(B.ZP),r["default"].use(R.ZP),r["default"].use(D.Z),r["default"].prototype.$confirm=be.Z.confirm,r["default"].prototype.$message=I.Z,r["default"].prototype.$notification=U.Z,r["default"].prototype.$info=be.Z.info,r["default"].prototype.$success=be.Z.success,r["default"].prototype.$error=be.Z.error,r["default"].prototype.$warning=be.Z.warning,r["default"].use(ze.ZP),r["default"].use(Re),r["default"].use(Le());var Be=n(74865),$e=n.n(Be),qe=n(29131);$e().configure({showSpinner:!1});var Ve=["login","ResetPassword","OptionAppInit"],He="/user/login",We="/dashboard/workplace",Ge="/option/app/init";Z.beforeEach((function(e,t,n){$e().start(),e.meta&&"undefined"!==typeof e.meta.title&&a("".concat((0,c.po)(e.meta.title)," - ").concat(u)),(0,qe.zZ)().then((function(e){var t=e.result;t||(n({path:Ge}),$e().done())}));var r=L().get(M.LA);r?e.path===He?(n({path:We}),$e().done()):0===w.Z.getters.roles.length?w.Z.dispatch("GetInfo").then((function(o){w.Z.dispatch("GenerateRoutes",(0,Me.Z)({token:r},o)).then((function(){j(),w.Z.getters.addRouters.forEach((function(e){Z.addRoute(e)}));var r=decodeURIComponent(t.query.redirect||e.path);e.path===r?n((0,Me.Z)((0,Me.Z)({},e),{},{replace:!0})):n({path:r})}))})).catch((function(t){U.Z.error({message:"error",description:"request user info fail, error msg:"+t.message}),w.Z.dispatch("Logout").then((function(){n({path:He,query:{redirect:e.fullPath}})}))})):n():Ve.includes(e.name)?n():(n({path:He,query:{redirect:e.fullPath}}),$e().done())})),Z.afterEach((function(){$e().done()}));var Ye=n(27484),Ke=n.n(Ye),Je=(n(33852),{IMAGE:{type:"IMAGE",text:"图片"},VIDEO:{type:"VIDEO",text:"视频"},VOICE:{type:"VOICE",text:"音频"},DOCUMENT:{type:"DOCUMENT",text:"文档"},UNKNOWN:{type:"UNKNOWN",text:"未知"}}),Qe={LOCAL:{type:"LOCAL",text:"本地"}};Ke().locale("zh-cn"),r["default"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return Ke()(e).format(t)})),r["default"].filter("moment_post_date",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/";return Ke()(e).format(t)})),r["default"].filter("moment_post_year",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/";return Ke()(e).format(t)})),r["default"].filter("moment_post_day",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/DD/";return Ke()(e).format(t)})),r["default"].filter("fileSizeFormat",(function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=parseFloat(e),r=Math.floor(Math.log(n)/Math.log(1024)),o=n/Math.pow(1024,r);return o=o.toFixed(2),o+" "+t[r]})),r["default"].filter("dayTime",(function(e){var t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%86400%3600/60),o=Math.floor(e%86400%3600%60);return t+"d "+n+"h "+r+"m "+o+"s"})),r["default"].filter("fileTypeText",(function(e){return e?Je[e].text:""})),r["default"].filter("fileTypePlace",(function(e){return e?Qe[e].text:""})),r["default"].filter("str2boolean",(function(e){return"true"===e})),r["default"].filter("seasonTypeFilter",(function(e){return M.er.get(e)?M.er.get(e):e})),r["default"].filter("userSubProgressFilter",(function(e){return M.Th.get(e)?M.Th.get(e):e}));var Xe=n(10101),et=n.n(Xe),tt=!0,nt={isEnabled:!0,logLevel:tt?"error":"debug",stringifyArguments:!1,showLogLevel:!0,showMethodName:!0,separator:"|",showConsoleColors:!0};r["default"].use(et(),nt),r["default"].config.productionTip=!1,r["default"].use(k.bx),r["default"].use(P.Z),r["default"].use(N()),r["default"].use(z),r["default"].component("pro-layout",C.ZP),r["default"].component("page-container",C.Oc),r["default"].component("page-header-wrapper",C.Oc),window.umi_plugin_ant_themeVar=S.theme,new r["default"]({router:Z,store:w.Z,i18n:c.ZP,created:F,render:function(e){return e(p)}}).$mount("#app")},6016:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r,o=n(20144),i=n(20629),s=n(82482),a=(n(41539),n(58971)),u=n.n(a),c=n(28762),l=n(80685),d={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(r={},(0,s.Z)(r,c.mQ,(function(e,t){e.sideCollapsed=t,u().set(c.mQ,t)})),(0,s.Z)(r,c.gF,(function(e,t){e.isMobile=t})),(0,s.Z)(r,c.$Y,(function(e,t){e.theme=t,u().set(c.$Y,t)})),(0,s.Z)(r,c.bB,(function(e,t){e.layout=t,u().set(c.bB,t)})),(0,s.Z)(r,c.rk,(function(e,t){e.fixedHeader=t,u().set(c.rk,t)})),(0,s.Z)(r,c.JZ,(function(e,t){e.fixedSidebar=t,u().set(c.JZ,t)})),(0,s.Z)(r,c.yK,(function(e,t){e.contentWidth=t,u().set(c.yK,t)})),(0,s.Z)(r,c.aG,(function(e,t){e.autoHideHeader=t,u().set(c.aG,t)})),(0,s.Z)(r,c.pI,(function(e,t){e.color=t,u().set(c.pI,t)})),(0,s.Z)(r,c.TV,(function(e,t){e.weak=t,u().set(c.TV,t)})),(0,s.Z)(r,c.gJ,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=n,u().set(c.gJ,t)})),(0,s.Z)(r,c.zP,(function(e,t){u().set(c.zP,t),e.multiTab=t})),r),actions:{setLang:function(e,t){var n=e.commit;return new Promise((function(e,r){n(c.gJ,t),(0,l.Wf)(t).then((function(){e()})).catch((function(e){r(e)}))}))}}},f=d,m=n(95082),p=(n(68309),n(3812)),g=n.n(p),h=n(32900),y=n(84722);u().addPlugin(g());var b={state:{token:"",name:"",welcome:"",avatar:"",roles:[],info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var n=t.name,r=t.welcome;e.name=n,e.welcome=r},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var n=e.commit;return new Promise((function(e,r){(0,h.x4)(t).then((function(t){var r=t.result,o=c.gR+r.token;u().set(c.LA,o,(new Date).getTime()+6048e5),n("SET_TOKEN",o),e()})).catch((function(e){r(e)}))}))},GetInfo:function(e){var t=e.commit;return new Promise((function(e,n){(0,h.C5)().then((function(r){var o=r.result;if(o.roles){var i=(0,m.Z)({},o.roles);o.roles=i,t("SET_ROLES",i),t("SET_INFO",o),t("SET_NAME",{name:o.usename,welcome:(0,y.d$)()}),t("SET_AVATAR",o.avatar),e(o)}else n(new Error("getInfo: roles must be a non-null array !"))})).catch((function(e){n(e)}))}))},Logout:function(e){var t=e.commit;e.state;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),u().remove(c.LA),e()}))}}},v=b,j=(n(26699),n(32023),n(57327),n(92222),n(45695)),Z=n(83465),w=n.n(Z);var k={state:{routers:j.k,addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=j.k.concat(t)}},actions:{GenerateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var t=w()(j.j);n("SET_ROUTERS",t),e()}))}}},C=k,S={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab}},P=S;o["default"].use(i.ZP);var x=new i.ZP.Store({modules:{app:f,user:v,permission:C},state:{},mutations:{},actions:{},getters:P})},28762:function(e,t,n){"use strict";n.d(t,{$Y:function(){return a},JZ:function(){return l},LA:function(){return r},TV:function(){return p},Th:function(){return v},aG:function(){return f},bB:function(){return u},eX:function(){return y},er:function(){return b},gF:function(){return s},gJ:function(){return h},gR:function(){return o},mQ:function(){return i},pI:function(){return m},rk:function(){return c},yK:function(){return d},zP:function(){return g}});n(51532),n(41539),n(78783),n(33948);var r="Authorization",o="Bearer ",i="sidebar_type",s="is_mobile",a="nav_theme",u="layout",c="fixed_header",l="fixed_sidebar",d="content_width",f="auto_hide_header",m="color",p="weak",g="multi_tab",h="app_language",y={Fluid:"Fluid",Fixed:"Fixed"},b=new Map([["FIRST","正篇第一季"],["SECOND","正篇第二季"],["THIRD","正篇第三季"],["FOUR","正篇第四季"],["FIFTH","正篇第五季"],["SIXTH","正篇第六季"],["SPECIAL_FIRST","特别篇 其一"],["SPECIAL_SECOND","特别篇 其二"],["SPECIAL_THIRD","特别篇 其三"],["PROMOTION_VIDEO","宣传短片 (PV)"],["OPENING_SONG","片头曲 (OP)"],["ENDING_SONG","片尾曲 (ED)"],["SPECIAL_PROMOTION","SP"],["SMALL_THEATER","小剧场"],["LIVE","LIVE"],["CM","CM"],["OTHER","其它"]]),v=new Map([["","未订阅"],["WISH","想看"],["DONE","看过"],["DOING","在看"],["SHELVE","搁置"],["DISCARD","抛弃"]])},46945:function(e,t,n){"use strict";n.d(t,{bx:function(){return p},ZP:function(){return g}});n(41539);var r=n(9669),o=n.n(r),i=n(6016),s=n(58971),a=n.n(s),u=n(70473),c={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},l=n(28762),d=n(80685),f=o().create({baseURL:"/api",timeout:6e4}),m=function(e){if(e.response){var t=e.response.data;if(403===e.response.status&&u.Z.error({message:d.ZP.tc("user.auth.forbidden.title"),description:d.ZP.tc("user.auth.forbidden.title")+" : "+t.message}),401===e.response.status&&(!t.result||!t.result.isLogin)){u.Z.error({message:d.ZP.tc("user.auth.unauthorized.title"),description:d.ZP.tc("user.auth.unauthorized.desc")});var n=a().get(l.LA);n&&i.Z.dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),1500)}))}404===e.response.status&&u.Z.error({message:"404 not found",description:"404 not found : "+t.message})}return Promise.reject(e)};f.interceptors.request.use((function(e){var t=a().get(l.LA);return t&&(e.headers[l.LA]=t),e}),m),f.interceptors.response.use((function(e){var t=e.data;if(t&&"200"!==t.code){var n=d.ZP.tc("request.data.code.fail.msg.prefix")+t.message;return Promise.reject(n)}return e.data}),m);var p={vm:{},install:function(e){e.use(c,f)}},g=f},84722:function(e,t,n){"use strict";n.d(t,{D$:function(){return o},d$:function(){return i}});n(74916);var r=n(80685);function o(){var e=new Date,t=e.getHours();return t<9?r.ZP.tc("util.timefix.greetings.morning"):t<=11?r.ZP.tc("util.timefix.greetings.forenoon"):t<=13?r.ZP.tc("util.timefix.greetings.midday"):t<20?r.ZP.tc("util.timefix.greetings.afternoon"):r.ZP.tc("util.timefix.greetings.evening")}function i(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}},54790:function(e,t,n){var r={"./en-US":[48815],"./en-US.js":[48815],"./en-US/account":[47055],"./en-US/account.js":[47055],"./en-US/account/settings":[48703],"./en-US/account/settings.js":[48703],"./en-US/dashboard":[94525],"./en-US/dashboard.js":[94525],"./en-US/dashboard/analysis":[24134],"./en-US/dashboard/analysis.js":[24134],"./en-US/exception":[63957],"./en-US/exception.js":[63957],"./en-US/form":[5045],"./en-US/form.js":[5045],"./en-US/form/basicForm":[51542],"./en-US/form/basicForm.js":[51542],"./en-US/global":[46812],"./en-US/global.js":[46812],"./en-US/menu":[56189],"./en-US/menu.js":[56189],"./en-US/request":[91972],"./en-US/request.js":[91972],"./en-US/setting":[14007],"./en-US/setting.js":[14007],"./en-US/test":[40814],"./en-US/test.js":[40814],"./en-US/user":[14184],"./en-US/user.js":[14184],"./en-US/util":[23717],"./en-US/util.js":[23717],"./zh-CN":[80813,113],"./zh-CN.js":[80813,113],"./zh-CN/account":[14204,449],"./zh-CN/account.js":[14204,449],"./zh-CN/account/settings":[97117,244],"./zh-CN/account/settings.js":[97117,244],"./zh-CN/dashboard":[45828,293],"./zh-CN/dashboard.js":[45828,293],"./zh-CN/dashboard/analysis":[19861,936],"./zh-CN/dashboard/analysis.js":[19861,936],"./zh-CN/exception":[29533,861],"./zh-CN/exception.js":[29533,861],"./zh-CN/form":[43094,817],"./zh-CN/form.js":[43094,817],"./zh-CN/form/basicForm":[11218,788],"./zh-CN/form/basicForm.js":[11218,788],"./zh-CN/global":[59921,616],"./zh-CN/global.js":[59921,616],"./zh-CN/menu":[27942,884],"./zh-CN/menu.js":[27942,884],"./zh-CN/request":[83903,543],"./zh-CN/request.js":[83903,543],"./zh-CN/setting":[49778,16],"./zh-CN/setting.js":[49778,16],"./zh-CN/test":[4714,107],"./zh-CN/test.js":[4714,107],"./zh-CN/user":[67001,209],"./zh-CN/user.js":[67001,209],"./zh-CN/util":[42734,917],"./zh-CN/util.js":[42734,917]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id=54790,e.exports=o},42480:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[u])}))?r.splice(u--,1):(a=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({16:"lang-zh-CN-setting",107:"lang-zh-CN-test",113:"lang-zh-CN",209:"lang-zh-CN-user",244:"lang-zh-CN-account-settings",293:"lang-zh-CN-dashboard",378:"user",449:"lang-zh-CN-account",543:"lang-zh-CN-request",593:"fail",616:"lang-zh-CN-global",788:"lang-zh-CN-form-basicForm",817:"lang-zh-CN-form",861:"lang-zh-CN-exception",884:"lang-zh-CN-menu",917:"lang-zh-CN-util",936:"lang-zh-CN-dashboard-analysis"}[e]||e)+"."+{16:"12018cb5",36:"03440a4d",54:"1567f873",107:"e0572b36",113:"081b3692",209:"fdfd8a26",244:"c33dd058",293:"f3bd9366",343:"fd712d79",348:"762e570c",378:"bbe598c6",449:"411a411f",543:"ba62f411",546:"d689a345",593:"192aa635",605:"2cad1b66",616:"5af2a38c",617:"c93e90b3",719:"16add809",788:"18d4a6fc",795:"de9b9714",816:"5063ecd9",817:"02cea781",861:"fd3f9c75",884:"f816c49d",909:"e448a516",917:"96c67153",936:"d1fee995",955:"a204ee81"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+(378===e?"user":e)+"."+{36:"78fae235",348:"2de2eb11",378:"c3912a7a",546:"05e1118f",605:"c836fce2",617:"b566e18b",816:"8903803c",909:"39fa4cdd",955:"9f79efd8"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="vue-antd-pro:";n.l=function(r,o,i,s){if(e[r])e[r].push(o);else{var a,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:{i18nRender:m.po,handleMediaQuery:function(e){this.query=e,!this.isMobile||e["screen-xs"]?!this.isMobile&&e["screen-xs"]&&(this.isMobile=!0,this.collapsed=!1,this.settings.contentWidth=B.eX.Fluid):this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,n=e.value;switch(t&&(this.settings[t]=n),t){case"contentWidth":this.settings[t]=n;break;case"layout":"sidemenu"===n?this.settings.contentWidth=B.eX.Fluid:(this.settings.fixSiderbar=!1,this.settings.contentWidth=B.eX.Fixed);break}},reloadPage:function(){this.$router.go(this.$router.currentRoute)}}},ie=oe,se=(0,P.Z)(ie,D,R,!1,null,null,null),ae=se.exports,ue={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=this.$store.getters,r=e("keep-alive",[e("router-view")]),o=e("router-view");return(n.multiTab||t.keepAlive)&&(this.keepAlive||n.multiTab||t.keepAlive)?r:o}},ce=ue,le=(0,P.Z)(ce,r,o,!1,null,null,null),de=le.exports,fe=function(){var e=this,t=e._self._c;return t("page-header-wrapper",[t("router-view")],1)},me=[],pe={name:"PageView"},ge=pe,he=(0,P.Z)(ge,fe,me,!1,null,null,null),ye=he.exports},80685:function(e,t,n){"use strict";n.d(t,{Wf:function(){return h},po:function(){return y}});var r=n(95082),o=(n(41539),n(26699),n(78783),n(33948),n(20144)),i=n(17152),s=n(58971),a=n.n(s),u=n(30381),c=n.n(u),l=n(48815);o["default"].use(i.Z);var d="en-US",f={"en-US":(0,r.Z)({},l["default"])},m=new i.Z({silentTranslationWarn:!0,locale:d,fallbackLocale:d,messages:f}),p=[d];function g(e){return m.locale=e,document.querySelector("html").setAttribute("lang",e),e}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return new Promise((function(t){return a().set("lang",e),m.locale!==e?p.includes(e)?t(g(e)):n(54790)("./".concat(e)).then((function(t){var n=t.default;return m.setLocaleMessage(e,n),p.push(e),c().updateLocale(n.momentName,n.momentLocale),g(e)})):t(e)}))}function y(e){return m.t("".concat(e))}t["ZP"]=m},48815:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(26226),i=n(77763),s=n.n(i),a=n(46812),u=n(56189),c=n(14007),l=n(14184),d=n(94525),f=n(5045),m=n(47055),p=n(23717),g=n(63957),h=n(40814),y=n(91972),b={antLocale:o.Z,momentName:"eu",momentLocale:s()};t["default"]=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({message:"-","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Are you sure you would like to logout?","layouts.userLayout.title":"ikaros is an open source acgmn cms application"},b),a["default"]),u["default"]),c["default"]),l["default"]),d["default"]),f["default"]),m["default"]),p["default"]),g["default"]),h["default"]),y["default"])},47055:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(48703);t["default"]=(0,r.Z)({},o["default"])},48703:function(e,t,n){"use strict";n.r(t),t["default"]={"account.settings.menuMap.basic":"Basic Settings","account.settings.menuMap.security":"Security Settings","account.settings.menuMap.custom":"Custom Settings","account.settings.menuMap.binding":"Account Binding","account.settings.menuMap.notification":"New Message Notification","account.settings.basic.avatar":"Avatar","account.settings.basic.change-avatar":"Change avatar","account.settings.basic.email":"Email","account.settings.basic.email-message":"Please input your email!","account.settings.basic.nickname":"Nickname","account.settings.basic.nickname-message":"Please input your Nickname!","account.settings.basic.profile":"Personal profile","account.settings.basic.profile-message":"Please input your personal profile!","account.settings.basic.profile-placeholder":"Brief introduction to yourself","account.settings.basic.country":"Country/Region","account.settings.basic.country-message":"Please input your country!","account.settings.basic.geographic":"Province or city","account.settings.basic.geographic-message":"Please input your geographic info!","account.settings.basic.address":"Street Address","account.settings.basic.address-message":"Please input your address!","account.settings.basic.phone":"Phone Number","account.settings.basic.phone-message":"Please input your phone!","account.settings.basic.update":"Update Information","account.settings.basic.update.success":"Update basic information successfully","account.settings.security.strong":"Strong","account.settings.security.medium":"Medium","account.settings.security.weak":"Weak","account.settings.security.password":"Account Password","account.settings.security.password-description":"Current password strength:","account.settings.security.phone":"Security Phone","account.settings.security.phone-description":"Bound phone:","account.settings.security.question":"Security Question","account.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","account.settings.security.email":"Backup Email","account.settings.security.email-description":"Bound Email:","account.settings.security.mfa":"MFA Device","account.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","account.settings.security.modify":"Modify","account.settings.security.set":"Set","account.settings.security.bind":"Bind","account.settings.binding.taobao":"Binding Taobao","account.settings.binding.taobao-description":"Currently unbound Taobao account","account.settings.binding.alipay":"Binding Alipay","account.settings.binding.alipay-description":"Currently unbound Alipay account","account.settings.binding.dingding":"Binding DingTalk","account.settings.binding.dingding-description":"Currently unbound DingTalk account","account.settings.binding.bind":"Bind","account.settings.notification.password":"Account Password","account.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","account.settings.notification.messages":"System Messages","account.settings.notification.messages-description":"System messages will be notified in the form of a station letter","account.settings.notification.todo":"To-do Notification","account.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","account.settings.settings.open":"Open","account.settings.settings.close":"Close"}},94525:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(24134);t["default"]=(0,r.Z)((0,r.Z)({},o["default"]),{},{"dashboard.index.breadcrumb.description":"dashboard panel"})},24134:function(e,t,n){"use strict";n.r(t),t["default"]={}},63957:function(e,t,n){"use strict";n.r(t),t["default"]={"result.exception.backhome":"Back Home","result.exception.404.title":"404","result.exception.404.subtitle":"Sorry, the page you visited does not exist.","result.exception.403.title":"403","result.exception.403.subtitle":"Sorry, you don't have access to this page.","result.exception.500.title":"500","result.exception.500.subtitle":"Sorry, the server is reporting an error."}},5045:function(e,t,n){"use strict";n.r(t);var r=n(95082),o=n(51542);t["default"]=(0,r.Z)({},o["default"])},51542:function(e,t,n){"use strict";n.r(t),t["default"]={"form.basic-form.email.required":"Please enter your email!","form.basic-form.email.wrong-format":"The email address is in the wrong format!","form.basic-form.userName.required":"Please enter your userName!","form.basic-form.password.required":"Please enter your password!","form.basic-form.password.twice":"The passwords entered twice do not match!","form.basic-form.strength.msg":"Please enter at least 6 characters and don't use passwords that are easy to guess.","form.basic-form.strength.strong":"Strength: strong","form.basic-form.strength.medium":"Strength: medium","form.basic-form.strength.short":"Strength: too short","form.basic-form.confirm-password.required":"Please confirm your password!","form.basic-form.phone-number.required":"Please enter your phone number!","form.basic-form.phone-number.wrong-format":"Malformed phone number!","form.basic-form.verification-code.required":"Please enter the verification code!","form.basic-form.form.get-captcha":"Get Captcha","form.basic-form.captcha.second":"sec","form.basic-form.form.optional":" (optional) ","form.basic-form.form.submit":"Submit","form.basic-form.form.save":"Save","form.basic-form.email.placeholder":"Email","form.basic-form.password.placeholder":"Password","form.basic-form.confirm-password.placeholder":"Confirm password","form.basic-form.phone-number.placeholder":"Phone number","form.basic-form.verification-code.placeholder":"Verification code"}},46812:function(e,t,n){"use strict";n.r(t),t["default"]={submit:"Submit",save:"Save","submit.ok":"Submit successfully","save.ok":"Saved successfully"}},56189:function(e,t,n){"use strict";n.r(t),t["default"]={"menu.welcome":"Welcome","menu.home":"Home","menu.dashboard":"Dashboard","menu.dashboard.analysis":"Analysis","menu.dashboard.monitor":"Monitor","menu.dashboard.workplace":"Workplace","menu.form":"Form","menu.form.basic-form":"Basic Form","menu.form.step-form":"Step Form","menu.form.step-form.info":"Step Form(write transfer information)","menu.form.step-form.confirm":"Step Form(confirm transfer information)","menu.form.step-form.result":"Step Form(finished)","menu.form.advanced-form":"Advanced Form","menu.list":"List","menu.list.table-list":"Search Table","menu.list.basic-list":"Basic List","menu.list.card-list":"Card List","menu.list.search-list":"Search List","menu.list.search-list.articles":"Search List(articles)","menu.list.search-list.projects":"Search List(projects)","menu.list.search-list.applications":"Search List(applications)","menu.profile":"Profile","menu.profile.basic":"Basic Profile","menu.profile.advanced":"Advanced Profile","menu.result":"Result","menu.result.success":"Success","menu.result.fail":"Fail","menu.exception":"Exception","menu.exception.not-permission":"403","menu.exception.not-find":"404","menu.exception.server-error":"500","menu.exception.trigger":"Trigger","menu.file":"File","menu.file.add":"add","menu.file.list":"list","menu.file.edit":"edit","menu.account":"Account","menu.account.center":"Account Center","menu.account.settings":"Account Settings","menu.account.trigger":"Trigger Error","menu.account.logout":"Logout","menu.system":"System","menu.system.options":"System Options","menu.system.actionlogs":"Action Logs","menu.system.about":"About"}},91972:function(e,t,n){"use strict";n.r(t),t["default"]={"request.data.code.fail.msg.prefix":"request fail, message is: "}},14007:function(e,t,n){"use strict";n.r(t),t["default"]={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/config/defaultSettings.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple"}},40814:function(e,t,n){"use strict";n.r(t),t["default"]={"menu.test":"Test"}},14184:function(e,t,n){"use strict";n.r(t),t["default"]={"user.login.userName":"userName","user.login.password":"password","user.login.username.placeholder":"please enter username or email","user.login.password.placeholder":"please enter password","user.login.message-invalid-credentials":"Invalid username or password","user.login.message-invalid-verification-code":"Invalid verification code","user.login.tab-login-credentials":"Credentials","user.login.tab-login-mobile":"Mobile number","user.login.mobile.placeholder":"Mobile number","user.login.mobile.verification-code.placeholder":"Verification code","user.login.remember-me":"Remember me","user.login.forgot-password":"Forgot your password?","user.login.sign-in-with":"Sign in with","user.login.signup":"Sign up","user.login.login":"Login","user.login.success.message":"welcome","user.login.success.description":", welcome back","user.login.reqfail.message":"login fail","user.register.register":"Register","user.register.email.placeholder":"Email","user.register.password.placeholder":"Password ","user.register.password.popover-message":"Please enter at least 6 characters. Please do not use passwords that are easy to guess. ","user.register.confirm-password.placeholder":"Confirm password","user.register.get-verification-code":"Get code","user.register.sign-in":"Already have an account?","user.register-result.msg":"Account:registered at {email}","user.register-result.activation-email":"The activation email has been sent to your email address and is valid for 24 hours. Please log in to the email in time and click on the link in the email to activate the account.","user.register-result.back-home":"Back to home","user.register-result.view-mailbox":"View mailbox","user.email.required":"Please enter your email!","user.email.wrong-format":"The email address is in the wrong format!","user.userName.required":"Please enter username or email address","user.password.required":"Please enter your password!","user.password.twice.msg":"The passwords entered twice do not match!","user.password.strength.msg":"The password is not strong enough","user.password.strength.strong":"Strength: strong","user.password.strength.medium":"Strength: medium","user.password.strength.low":"Strength: low","user.password.strength.short":"Strength: too short","user.confirm-password.required":"Please confirm your password!","user.phone-number.required":"Please enter your phone number!","user.phone-number.wrong-format":"Please enter a valid phone number","user.verification-code.required":"Please enter the verification code! mssage","user.auth.unauthorized.title":"Unauthorized","user.auth.unauthorized.desc":"Authorization verification failed!","user.auth.forbidden.title":"Forbidden","user.auth.forbidden.desc":"Access is forbidden!"}},23717:function(e,t,n){"use strict";n.r(t),t["default"]={"util.timefix.greetings.morning":"good morning","util.timefix.greetings.forenoon":"good forenoon","util.timefix.greetings.midday":"good midday","util.timefix.greetings.afternoon":"good afternoon","util.timefix.greetings.evening":"good evening"}},79143:function(e,t,n){"use strict";n(66992),n(88674),n(19601),n(17727),n(82526),n(41817),n(72443),n(92401),n(8722),n(32165),n(69007),n(83510),n(41840),n(6982),n(32159),n(96649),n(39341),n(60543),n(92222),n(50545),n(43290),n(57327),n(69826),n(34553),n(84944),n(86535),n(91038),n(26699),n(69600),n(21249),n(26572),n(47042),n(2707),n(38706),n(40561),n(33792),n(99244),n(18264),n(76938),n(39575),n(96078),n(4855),n(68309),n(73706),n(51532),n(99752),n(82376),n(73181),n(23484),n(2388),n(88621),n(60403),n(84755),n(25438),n(90332),n(40658),n(40197),n(44914),n(52420),n(60160),n(60970),n(10408),n(73689),n(9653),n(93299),n(35192),n(33161),n(44048),n(78285),n(44363),n(55994),n(61874),n(9494),n(56977),n(59595),n(35500),n(69720),n(43371),n(38559),n(38880),n(49337),n(36210),n(30489),n(43304),n(41825),n(98410),n(72200),n(47941),n(94869),n(33952),n(57227),n(60514),n(68304),n(41539),n(26833),n(36535),n(12419),n(69596),n(52586),n(74819),n(95683),n(39361),n(51037),n(5898),n(67556),n(14361),n(83593),n(39532),n(24603),n(74916),n(92087),n(39714),n(70189),n(79841),n(27852),n(94953),n(32023),n(78783),n(4723),n(66528),n(83112),n(38992),n(82481),n(15306),n(64765),n(23123),n(23157),n(73210),n(48702),n(55674),n(15218),n(74475),n(57929),n(50915),n(29253),n(42125),n(78830),n(58734),n(29254),n(37268),n(7397),n(60086),n(80623),n(44197),n(76495),n(87145),n(35109),n(65125),n(82472),n(49743),n(8255),n(29135),n(92990),n(18927),n(33105),n(35035),n(74345),n(7174),n(32846),n(98145),n(44731),n(77209),n(96319),n(58867),n(37789),n(33739),n(95206),n(29368),n(14483),n(12056),n(3462),n(30678),n(27462),n(33824),n(55021),n(12974),n(15016),n(4129),n(38478),n(54747),n(33948),n(84633),n(85844),n(60285),n(83753),n(41637),n(35666);var r=n(20144),o=function(){var e=this,t=e._self._c;return t("a-config-provider",{attrs:{locale:e.locale}},[t("div",{attrs:{id:"app"}},[t("router-view")],1)])},i=[],s=n(15899),a=function(e){document.title=e;var t=navigator.userAgent,n=/\bMicroMessenger\/([\d\.]+)/;if(n.test(t)&&/ip(hone|od|ad)/i.test(t)){var r=document.createElement("iframe");r.src="/favicon.ico",r.style.display="none",r.onload=function(){setTimeout((function(){r.remove()}),9)},document.body.appendChild(r)}},u=s.Z.title,c=n(80685),l={data:function(){return{}},computed:{locale:function(){var e=this.$route.meta.title;return e&&a("".concat((0,c.po)(e)," - ").concat(u)),this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale}}},d=l,f=n(1001),m=(0,f.Z)(d,o,i,!1,null,null,null),p=m.exports,g=n(78345),h=n(45695),y=g.ZP.prototype.push;g.ZP.prototype.push=function(e,t,n){return t||n?y.call(this,e,t,n):y.call(this,e).catch((function(e){return e}))},r["default"].use(g.ZP);var b=function(){return new g.ZP({routes:h.k})},v=b();function j(){var e=b();v.matcher=e.matcher}var Z=v,w=n(6016),k=n(46945),C=n(40321),S={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},P=n(83299),x=n(72268),N=n.n(x),A=n(5953),T=n.n(A),_={props:{options:{type:Object}},data:function(){return{dp:null}},mounted:function(){var e=this;this.options.container=this.$el;var t=this.dp=new(T())(this.options),n=t.events;Object.keys(n).forEach((function(r){if("events"===r)return!1;n[r].forEach((function(n){t.on(n,(function(){return e.$emit(n)}))}))}))},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=void 0===n?"d-player":n;e.component(r,this)},render:function(e){return e("div",{class:"dplayer"},[])}};"undefined"!==typeof window&&window.Vue&&(window.VideoDPlayer=_);var z=_,E=n(58971),L=n.n(E),M=n(28762),O=function(){" \n \n ### \n # # # ## ##### #### #### \n # # # # # # # # # # \n # #### # # # # # # #### \n # # # ###### ##### # # # \n # # # # # # # # # # # \n ### # # # # # # #### #### \n \n\n\t\t\t\t\tPublished ".concat("0.0.1","-").concat("c215bab"," @https://github.com/li-guohao/ikaros-admin\n\t\t\t\t\tBuild date: ").concat("2022/12/8 00:11:48")};function F(){O(),w.Z.commit(M.bB,L().get(M.bB,s.Z.layout)),w.Z.commit(M.rk,L().get(M.rk,s.Z.fixedHeader)),w.Z.commit(M.JZ,L().get(M.JZ,s.Z.fixSiderbar)),w.Z.commit(M.yK,L().get(M.yK,s.Z.contentWidth)),w.Z.commit(M.aG,L().get(M.aG,s.Z.autoHideHeader)),w.Z.commit(M.$Y,L().get(M.$Y,s.Z.navTheme)),w.Z.commit(M.TV,L().get(M.TV,s.Z.colorWeak)),w.Z.commit(M.pI,L().get(M.pI,s.Z.primaryColor)),w.Z.commit(M.zP,L().get(M.zP,s.Z.multiTab)),w.Z.commit("SET_TOKEN",L().get(M.LA)),w.Z.dispatch("setLang",L().get(M.gJ,"en-US"))}n(11611);var U=n(70473),I=(n(94310),n(61446)),D=(n(84575),n(24741)),R=(n(16388),n(84246)),B=(n(42414),n(40726)),$=(n(74457),n(87657)),q=(n(6788),n(97139)),V=(n(12431),n(64053)),H=(n(17219),n(22834)),W=(n(93589),n(97119)),G=(n(58258),n(50091)),Y=(n(26165),n(87204)),K=(n(17198),n(41544)),J=(n(63197),n(60469)),Q=(n(92591),n(52653)),X=(n(31529),n(54436)),ee=(n(83616),n(23887)),te=(n(20446),n(16987)),ne=(n(93300),n(45862)),re=(n(58293),n(45542)),oe=(n(7283),n(60333)),ie=(n(5378),n(96650)),se=(n(65057),n(17001)),ae=(n(49282),n(97152)),ue=(n(85597),n(50724)),ce=(n(38770),n(47346)),le=(n(44830),n(54464)),de=(n(12777),n(70108)),fe=(n(67485),n(6723)),me=(n(89397),n(98704)),pe=(n(91019),n(12094)),ge=(n(46724),n(62746)),he=(n(80106),n(75145)),ye=(n(46791),n(3822)),be=(n(57986),n(45361)),ve=(n(88124),n(65494)),je=(n(51998),n(24871)),Ze=(n(50460),n(57288)),we=(n(84324),n(95878)),ke=(n(58569),n(9330)),Ce=(n(79861),n(36993)),Se=(n(28633),n(40058)),Pe=(n(82577),n(39744)),xe=(n(80149),n(63060)),Ne=(n(11838),n(5559)),Ae=(n(38049),n(71140)),Te=(n(76266),n(36511)),_e=(n(18702),n(87831)),ze=n(60384),Ee=n(94862),Le=n.n(Ee),Me=n(95082),Oe={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},n={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(ae.Z,{attrs:{size:this.size,tip:this.tip},style:n})])}},Fe="0.0.1",Ue={newInstance:function(e,t){var n=document.querySelector("body>div[type=loading]");n||(n=document.createElement("div"),n.setAttribute("type","loading"),n.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(n));var r=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),o=new e({data:function(){return(0,Me.Z)({},r)},render:function(){var e=arguments[0],t=this.tip,n={};return this.tip&&(n.tip=t),this.visible?e(Oe,{props:(0,Me.Z)({},n)}):null}}).$mount(n);function i(e){var t=(0,Me.Z)((0,Me.Z)({},r),e),n=t.visible,i=t.size,s=t.tip;o.$set(o,"visible",n),s&&o.$set(o,"tip",s),i&&o.$set(o,"size",i)}return{instance:o,update:i}}},Ie={show:function(e){this.instance.update((0,Me.Z)((0,Me.Z)({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},De=function(e,t){e.prototype.$loading||(Ie.instance=Ue.newInstance(e,t),e.prototype.$loading=Ie)},Re={version:Fe,install:De};r["default"].use(_e.Z),r["default"].use(Te.Z),r["default"].use(Ae.Z),r["default"].use(Ne.Z),r["default"].use(xe.Z),r["default"].use(Pe.Z),r["default"].use(Se.ZP),r["default"].use(Ce.Z),r["default"].use(ke.ZP),r["default"].use(we.Z),r["default"].use(Ze.ZP),r["default"].use(je.Z),r["default"].use(ve.Z),r["default"].use(be.Z),r["default"].use(ye.Z),r["default"].use(he.ZP),r["default"].use(ge.Z),r["default"].use(pe.Z),r["default"].use(me.Z),r["default"].use(fe.ZP),r["default"].use(de.ZP),r["default"].use(le.Z),r["default"].use(ce.Z),r["default"].use(ue.Z),r["default"].use(ae.Z),r["default"].use(se.ZP),r["default"].use(ie.Z),r["default"].use(oe.Z),r["default"].use(re.Z),r["default"].use(ne.Z),r["default"].use(te.Z),r["default"].use(ee.Z),r["default"].use(X.ZP),r["default"].use(Q.ZP),r["default"].use(J.Z),r["default"].use(K.Z),r["default"].use(Y.Z),r["default"].use(G.Z),r["default"].use(W.ZP),r["default"].use(H.Z),r["default"].use(V.ZP),r["default"].use(q.ZP),r["default"].use($.ZP),r["default"].use(B.ZP),r["default"].use(R.ZP),r["default"].use(D.Z),r["default"].prototype.$confirm=be.Z.confirm,r["default"].prototype.$message=I.Z,r["default"].prototype.$notification=U.Z,r["default"].prototype.$info=be.Z.info,r["default"].prototype.$success=be.Z.success,r["default"].prototype.$error=be.Z.error,r["default"].prototype.$warning=be.Z.warning,r["default"].use(ze.ZP),r["default"].use(Re),r["default"].use(Le());var Be=n(74865),$e=n.n(Be),qe=n(29131);$e().configure({showSpinner:!1});var Ve=["login","ResetPassword","OptionAppInit"],He="/user/login",We="/dashboard/workplace",Ge="/option/app/init";Z.beforeEach((function(e,t,n){$e().start(),e.meta&&"undefined"!==typeof e.meta.title&&a("".concat((0,c.po)(e.meta.title)," - ").concat(u)),(0,qe.zZ)().then((function(e){var t=e.result;t||(n({path:Ge}),$e().done())}));var r=L().get(M.LA);r?e.path===He?(n({path:We}),$e().done()):0===w.Z.getters.roles.length?w.Z.dispatch("GetInfo").then((function(o){w.Z.dispatch("GenerateRoutes",(0,Me.Z)({token:r},o)).then((function(){j(),w.Z.getters.addRouters.forEach((function(e){Z.addRoute(e)}));var r=decodeURIComponent(t.query.redirect||e.path);e.path===r?n((0,Me.Z)((0,Me.Z)({},e),{},{replace:!0})):n({path:r})}))})).catch((function(t){U.Z.error({message:"error",description:"request user info fail, error msg:"+t.message}),w.Z.dispatch("Logout").then((function(){n({path:He,query:{redirect:e.fullPath}})}))})):n():Ve.includes(e.name)?n():(n({path:He,query:{redirect:e.fullPath}}),$e().done())})),Z.afterEach((function(){$e().done()}));var Ye=n(27484),Ke=n.n(Ye),Je=(n(33852),{IMAGE:{type:"IMAGE",text:"图片"},VIDEO:{type:"VIDEO",text:"视频"},VOICE:{type:"VOICE",text:"音频"},DOCUMENT:{type:"DOCUMENT",text:"文档"},UNKNOWN:{type:"UNKNOWN",text:"未知"}}),Qe={LOCAL:{type:"LOCAL",text:"本地"}};Ke().locale("zh-cn"),r["default"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return Ke()(e).format(t)})),r["default"].filter("moment_post_date",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/";return Ke()(e).format(t)})),r["default"].filter("moment_post_year",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/";return Ke()(e).format(t)})),r["default"].filter("moment_post_day",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/YYYY/MM/DD/";return Ke()(e).format(t)})),r["default"].filter("fileSizeFormat",(function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=parseFloat(e),r=Math.floor(Math.log(n)/Math.log(1024)),o=n/Math.pow(1024,r);return o=o.toFixed(2),o+" "+t[r]})),r["default"].filter("dayTime",(function(e){var t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%86400%3600/60),o=Math.floor(e%86400%3600%60);return t+"d "+n+"h "+r+"m "+o+"s"})),r["default"].filter("fileTypeText",(function(e){return e?Je[e].text:""})),r["default"].filter("fileTypePlace",(function(e){return e?Qe[e].text:""})),r["default"].filter("str2boolean",(function(e){return"true"===e})),r["default"].filter("seasonTypeFilter",(function(e){return M.er.get(e)?M.er.get(e):e})),r["default"].filter("userSubProgressFilter",(function(e){return M.Th.get(e)?M.Th.get(e):e}));var Xe=n(10101),et=n.n(Xe),tt=!0,nt={isEnabled:!0,logLevel:tt?"error":"debug",stringifyArguments:!1,showLogLevel:!0,showMethodName:!0,separator:"|",showConsoleColors:!0};r["default"].use(et(),nt),r["default"].config.productionTip=!1,r["default"].use(k.bx),r["default"].use(P.Z),r["default"].use(N()),r["default"].use(z),r["default"].component("pro-layout",C.ZP),r["default"].component("page-container",C.Oc),r["default"].component("page-header-wrapper",C.Oc),window.umi_plugin_ant_themeVar=S.theme,new r["default"]({router:Z,store:w.Z,i18n:c.ZP,created:F,render:function(e){return e(p)}}).$mount("#app")},6016:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r,o=n(20144),i=n(20629),s=n(82482),a=(n(41539),n(58971)),u=n.n(a),c=n(28762),l=n(80685),d={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(r={},(0,s.Z)(r,c.mQ,(function(e,t){e.sideCollapsed=t,u().set(c.mQ,t)})),(0,s.Z)(r,c.gF,(function(e,t){e.isMobile=t})),(0,s.Z)(r,c.$Y,(function(e,t){e.theme=t,u().set(c.$Y,t)})),(0,s.Z)(r,c.bB,(function(e,t){e.layout=t,u().set(c.bB,t)})),(0,s.Z)(r,c.rk,(function(e,t){e.fixedHeader=t,u().set(c.rk,t)})),(0,s.Z)(r,c.JZ,(function(e,t){e.fixedSidebar=t,u().set(c.JZ,t)})),(0,s.Z)(r,c.yK,(function(e,t){e.contentWidth=t,u().set(c.yK,t)})),(0,s.Z)(r,c.aG,(function(e,t){e.autoHideHeader=t,u().set(c.aG,t)})),(0,s.Z)(r,c.pI,(function(e,t){e.color=t,u().set(c.pI,t)})),(0,s.Z)(r,c.TV,(function(e,t){e.weak=t,u().set(c.TV,t)})),(0,s.Z)(r,c.gJ,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=n,u().set(c.gJ,t)})),(0,s.Z)(r,c.zP,(function(e,t){u().set(c.zP,t),e.multiTab=t})),r),actions:{setLang:function(e,t){var n=e.commit;return new Promise((function(e,r){n(c.gJ,t),(0,l.Wf)(t).then((function(){e()})).catch((function(e){r(e)}))}))}}},f=d,m=n(95082),p=(n(68309),n(3812)),g=n.n(p),h=n(32900),y=n(84722);u().addPlugin(g());var b={state:{token:"",name:"",welcome:"",avatar:"",roles:[],info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var n=t.name,r=t.welcome;e.name=n,e.welcome=r},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var n=e.commit;return new Promise((function(e,r){(0,h.x4)(t).then((function(t){var r=t.result,o=c.gR+r.token;u().set(c.LA,o,(new Date).getTime()+6048e5),n("SET_TOKEN",o),e()})).catch((function(e){r(e)}))}))},GetInfo:function(e){var t=e.commit;return new Promise((function(e,n){(0,h.C5)().then((function(r){var o=r.result;if(o.roles){var i=(0,m.Z)({},o.roles);o.roles=i,t("SET_ROLES",i),t("SET_INFO",o),t("SET_NAME",{name:o.usename,welcome:(0,y.d$)()}),t("SET_AVATAR",o.avatar),e(o)}else n(new Error("getInfo: roles must be a non-null array !"))})).catch((function(e){n(e)}))}))},Logout:function(e){var t=e.commit;e.state;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),u().remove(c.LA),e()}))}}},v=b,j=(n(26699),n(32023),n(57327),n(92222),n(45695)),Z=n(83465),w=n.n(Z);var k={state:{routers:j.k,addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=j.k.concat(t)}},actions:{GenerateRoutes:function(e,t){var n=e.commit;return new Promise((function(e){var t=w()(j.j);n("SET_ROUTERS",t),e()}))}}},C=k,S={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab}},P=S;o["default"].use(i.ZP);var x=new i.ZP.Store({modules:{app:f,user:v,permission:C},state:{},mutations:{},actions:{},getters:P})},28762:function(e,t,n){"use strict";n.d(t,{$Y:function(){return a},JZ:function(){return l},LA:function(){return r},TV:function(){return p},Th:function(){return v},aG:function(){return f},bB:function(){return u},eX:function(){return y},er:function(){return b},gF:function(){return s},gJ:function(){return h},gR:function(){return o},mQ:function(){return i},pI:function(){return m},rk:function(){return c},yK:function(){return d},zP:function(){return g}});n(51532),n(41539),n(78783),n(33948);var r="Authorization",o="Bearer ",i="sidebar_type",s="is_mobile",a="nav_theme",u="layout",c="fixed_header",l="fixed_sidebar",d="content_width",f="auto_hide_header",m="color",p="weak",g="multi_tab",h="app_language",y={Fluid:"Fluid",Fixed:"Fixed"},b=new Map([["FIRST","正篇第一季"],["SECOND","正篇第二季"],["THIRD","正篇第三季"],["FOUR","正篇第四季"],["FIFTH","正篇第五季"],["SIXTH","正篇第六季"],["SPECIAL_FIRST","特别篇 其一"],["SPECIAL_SECOND","特别篇 其二"],["SPECIAL_THIRD","特别篇 其三"],["PROMOTION_VIDEO","宣传短片 (PV)"],["OPENING_SONG","片头曲 (OP)"],["ENDING_SONG","片尾曲 (ED)"],["SPECIAL_PROMOTION","SP"],["SMALL_THEATER","小剧场"],["LIVE","LIVE"],["CM","CM"],["OTHER","其它"]]),v=new Map([["","未订阅"],["WISH","想看"],["DONE","看过"],["DOING","在看"],["SHELVE","搁置"],["DISCARD","抛弃"]])},46945:function(e,t,n){"use strict";n.d(t,{bx:function(){return p},ZP:function(){return g}});n(41539);var r=n(9669),o=n.n(r),i=n(6016),s=n(58971),a=n.n(s),u=n(70473),c={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},l=n(28762),d=n(80685),f=o().create({baseURL:"/api",timeout:6e4}),m=function(e){if(e.response){var t=e.response.data;if(403===e.response.status&&u.Z.error({message:d.ZP.tc("user.auth.forbidden.title"),description:d.ZP.tc("user.auth.forbidden.title")+" : "+t.message}),401===e.response.status&&(!t.result||!t.result.isLogin)){u.Z.error({message:d.ZP.tc("user.auth.unauthorized.title"),description:d.ZP.tc("user.auth.unauthorized.desc")});var n=a().get(l.LA);n&&i.Z.dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),1500)}))}404===e.response.status&&u.Z.error({message:"404 not found",description:"404 not found : "+t.message})}return Promise.reject(e)};f.interceptors.request.use((function(e){var t=a().get(l.LA);return t&&(e.headers[l.LA]=t),e}),m),f.interceptors.response.use((function(e){var t=e.data;if(t&&"200"!==t.code){var n=d.ZP.tc("request.data.code.fail.msg.prefix")+t.message;return Promise.reject(n)}return e.data}),m);var p={vm:{},install:function(e){e.use(c,f)}},g=f},84722:function(e,t,n){"use strict";n.d(t,{D$:function(){return o},d$:function(){return i}});n(74916);var r=n(80685);function o(){var e=new Date,t=e.getHours();return t<9?r.ZP.tc("util.timefix.greetings.morning"):t<=11?r.ZP.tc("util.timefix.greetings.forenoon"):t<=13?r.ZP.tc("util.timefix.greetings.midday"):t<20?r.ZP.tc("util.timefix.greetings.afternoon"):r.ZP.tc("util.timefix.greetings.evening")}function i(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}},54790:function(e,t,n){var r={"./en-US":[48815],"./en-US.js":[48815],"./en-US/account":[47055],"./en-US/account.js":[47055],"./en-US/account/settings":[48703],"./en-US/account/settings.js":[48703],"./en-US/dashboard":[94525],"./en-US/dashboard.js":[94525],"./en-US/dashboard/analysis":[24134],"./en-US/dashboard/analysis.js":[24134],"./en-US/exception":[63957],"./en-US/exception.js":[63957],"./en-US/form":[5045],"./en-US/form.js":[5045],"./en-US/form/basicForm":[51542],"./en-US/form/basicForm.js":[51542],"./en-US/global":[46812],"./en-US/global.js":[46812],"./en-US/menu":[56189],"./en-US/menu.js":[56189],"./en-US/request":[91972],"./en-US/request.js":[91972],"./en-US/setting":[14007],"./en-US/setting.js":[14007],"./en-US/test":[40814],"./en-US/test.js":[40814],"./en-US/user":[14184],"./en-US/user.js":[14184],"./en-US/util":[23717],"./en-US/util.js":[23717],"./zh-CN":[80813,113],"./zh-CN.js":[80813,113],"./zh-CN/account":[14204,449],"./zh-CN/account.js":[14204,449],"./zh-CN/account/settings":[97117,244],"./zh-CN/account/settings.js":[97117,244],"./zh-CN/dashboard":[45828,293],"./zh-CN/dashboard.js":[45828,293],"./zh-CN/dashboard/analysis":[19861,936],"./zh-CN/dashboard/analysis.js":[19861,936],"./zh-CN/exception":[29533,861],"./zh-CN/exception.js":[29533,861],"./zh-CN/form":[43094,817],"./zh-CN/form.js":[43094,817],"./zh-CN/form/basicForm":[11218,788],"./zh-CN/form/basicForm.js":[11218,788],"./zh-CN/global":[59921,616],"./zh-CN/global.js":[59921,616],"./zh-CN/menu":[27942,884],"./zh-CN/menu.js":[27942,884],"./zh-CN/request":[83903,543],"./zh-CN/request.js":[83903,543],"./zh-CN/setting":[49778,16],"./zh-CN/setting.js":[49778,16],"./zh-CN/test":[4714,107],"./zh-CN/test.js":[4714,107],"./zh-CN/user":[67001,209],"./zh-CN/user.js":[67001,209],"./zh-CN/util":[42734,917],"./zh-CN/util.js":[42734,917]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id=54790,e.exports=o},42480:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[u])}))?r.splice(u--,1):(a=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+({16:"lang-zh-CN-setting",107:"lang-zh-CN-test",113:"lang-zh-CN",209:"lang-zh-CN-user",244:"lang-zh-CN-account-settings",293:"lang-zh-CN-dashboard",378:"user",449:"lang-zh-CN-account",543:"lang-zh-CN-request",593:"fail",616:"lang-zh-CN-global",788:"lang-zh-CN-form-basicForm",817:"lang-zh-CN-form",861:"lang-zh-CN-exception",884:"lang-zh-CN-menu",917:"lang-zh-CN-util",936:"lang-zh-CN-dashboard-analysis"}[e]||e)+"."+{16:"12018cb5",36:"03440a4d",54:"1567f873",107:"e0572b36",113:"081b3692",209:"fdfd8a26",244:"c33dd058",293:"f3bd9366",304:"70d2994c",343:"fd712d79",348:"762e570c",378:"bbe598c6",449:"411a411f",543:"ba62f411",546:"d689a345",593:"192aa635",605:"6873db2f",616:"5af2a38c",617:"c93e90b3",719:"16add809",788:"18d4a6fc",795:"de9b9714",817:"02cea781",861:"fd3f9c75",884:"f816c49d",909:"e448a516",917:"96c67153",936:"d1fee995",955:"a204ee81"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+(378===e?"user":e)+"."+{36:"78fae235",304:"8903803c",348:"2de2eb11",378:"c3912a7a",546:"05e1118f",605:"c836fce2",617:"b566e18b",909:"39fa4cdd",955:"9f79efd8"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="vue-antd-pro:";n.l=function(r,o,i,s){if(e[r])e[r].push(o);else{var a,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l