From 7c8fb071603b31166dde3bb1565dc17188775035 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 1 Jun 2019 17:34:27 +0800 Subject: [PATCH] 1.0.0 --- build.gradle | 2 +- src/main/resources/admin/css/chunk-0337f7a6.4c6b622f.css | 1 + src/main/resources/admin/css/chunk-14e0b302.32f796a8.css | 1 + src/main/resources/admin/css/chunk-2827d63c.77ad8070.css | 1 - src/main/resources/admin/css/chunk-3a043b93.9341f110.css | 1 - src/main/resources/admin/index.html | 2 +- .../resources/admin/js/{app.54948d70.js => app.e0ba5034.js} | 2 +- .../{chunk-3a043b93.eb808250.js => chunk-0337f7a6.53ede862.js} | 2 +- src/main/resources/admin/js/chunk-14e0b302.8cbbed1c.js | 1 + src/main/resources/admin/js/chunk-2827d63c.0da79671.js | 1 - src/main/resources/admin/js/chunk-4b5e9e93.565d1851.js | 1 - src/main/resources/admin/js/chunk-4b5e9e93.8033dcf8.js | 1 + 12 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 src/main/resources/admin/css/chunk-0337f7a6.4c6b622f.css create mode 100644 src/main/resources/admin/css/chunk-14e0b302.32f796a8.css delete mode 100644 src/main/resources/admin/css/chunk-2827d63c.77ad8070.css delete mode 100644 src/main/resources/admin/css/chunk-3a043b93.9341f110.css rename src/main/resources/admin/js/{app.54948d70.js => app.e0ba5034.js} (98%) rename src/main/resources/admin/js/{chunk-3a043b93.eb808250.js => chunk-0337f7a6.53ede862.js} (57%) create mode 100644 src/main/resources/admin/js/chunk-14e0b302.8cbbed1c.js delete mode 100644 src/main/resources/admin/js/chunk-2827d63c.0da79671.js delete mode 100644 src/main/resources/admin/js/chunk-4b5e9e93.565d1851.js create mode 100644 src/main/resources/admin/js/chunk-4b5e9e93.8033dcf8.js diff --git a/build.gradle b/build.gradle index 8e60dba59c..82140b544e 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ apply plugin: 'io.spring.dependency-management' group = 'run.halo.app' archivesBaseName = 'halo' -version = '1.0.0-beta.9' +version = '1.0.0' sourceCompatibility = '1.8' description = 'Halo, personal blog system developed in Java.' diff --git a/src/main/resources/admin/css/chunk-0337f7a6.4c6b622f.css b/src/main/resources/admin/css/chunk-0337f7a6.4c6b622f.css new file mode 100644 index 0000000000..b6b66e8263 --- /dev/null +++ b/src/main/resources/admin/css/chunk-0337f7a6.4c6b622f.css @@ -0,0 +1 @@ +.category-tree[data-v-0f333a36]{margin-top:1rem} \ No newline at end of file diff --git a/src/main/resources/admin/css/chunk-14e0b302.32f796a8.css b/src/main/resources/admin/css/chunk-14e0b302.32f796a8.css new file mode 100644 index 0000000000..41c7a24b4a --- /dev/null +++ b/src/main/resources/admin/css/chunk-14e0b302.32f796a8.css @@ -0,0 +1 @@ +.height-100[data-v-1ac0b863]{height:100vh}.install-action[data-v-1ac0b863]{margin-top:1rem}.previus-button[data-v-1ac0b863]{margin-right:1rem}.install-card[data-v-1ac0b863]{-webkit-box-shadow:0 10px 20px 0 hsla(0,0%,92.5%,.86);box-shadow:0 10px 20px 0 hsla(0,0%,92.5%,.86)} \ No newline at end of file diff --git a/src/main/resources/admin/css/chunk-2827d63c.77ad8070.css b/src/main/resources/admin/css/chunk-2827d63c.77ad8070.css deleted file mode 100644 index 41b2d456ac..0000000000 --- a/src/main/resources/admin/css/chunk-2827d63c.77ad8070.css +++ /dev/null @@ -1 +0,0 @@ -.height-100[data-v-5bb443aa]{height:100vh}.install-action[data-v-5bb443aa]{margin-top:1rem}.previus-button[data-v-5bb443aa]{margin-right:1rem}.install-card[data-v-5bb443aa]{-webkit-box-shadow:0 10px 20px 0 hsla(0,0%,92.5%,.86);box-shadow:0 10px 20px 0 hsla(0,0%,92.5%,.86)} \ No newline at end of file diff --git a/src/main/resources/admin/css/chunk-3a043b93.9341f110.css b/src/main/resources/admin/css/chunk-3a043b93.9341f110.css deleted file mode 100644 index f28ad54736..0000000000 --- a/src/main/resources/admin/css/chunk-3a043b93.9341f110.css +++ /dev/null @@ -1 +0,0 @@ -.category-tree[data-v-9228b20c]{margin-top:1rem} \ No newline at end of file diff --git a/src/main/resources/admin/index.html b/src/main/resources/admin/index.html index 4f2da52d7e..283ac4623a 100644 --- a/src/main/resources/admin/index.html +++ b/src/main/resources/admin/index.html @@ -1 +1 @@ -Halo Dashboard
\ No newline at end of file +Halo Dashboard
\ No newline at end of file diff --git a/src/main/resources/admin/js/app.54948d70.js b/src/main/resources/admin/js/app.e0ba5034.js similarity index 98% rename from src/main/resources/admin/js/app.54948d70.js rename to src/main/resources/admin/js/app.e0ba5034.js index ee69406086..1b49e07cf0 100644 --- a/src/main/resources/admin/js/app.54948d70.js +++ b/src/main/resources/admin/js/app.e0ba5034.js @@ -1 +1 @@ -(function(e){function t(t){for(var a,o,s=t[0],c=t[1],u=t[2],l=0,d=[];l1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return je()(e).format(t)}),a["a"].filter("moment",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return je()(e).format(t)}),a["a"].filter("timeAgo",He["b"]),a["a"].filter("fileSizeFormat",function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0,a=parseFloat(e);n=Math.floor(Math.log(a)/Math.log(1024));var o=a/Math.pow(1024,n);return o=o.toFixed(2),o+" "+t[n]});var De,Me,$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce(function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2},0)},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce(function(e,a){var o=a.charCodeAt(0);return n+=o>=0&&o<=128?1:2,n<=t?e+a:e},"")},Ie={name:"Ellipsis",components:{Tooltip:ce["a"]},props:{prefixCls:{type:String,default:"ant-pro-ellipsis"},tooltip:{type:Boolean},length:{type:Number,required:!0},lines:{type:Number,default:1},fullWidthRecognition:{type:Boolean,default:!1}},methods:{getStrDom:function(e,t){var n=this.$createElement;return n("span",[Ae(e,this.length)+(t>this.length?"...":"")])},getTooltip:function(e,t){var n=this.$createElement;return n(ce["a"],[n("template",{slot:"title"},[e]),this.getStrDom(e,t)])}},render:function(){var e=this.$props,t=e.tooltip,n=e.length,a=this.$slots.default.map(function(e){return e.text}).join(""),o=$e(a),r=t&&o>n?this.getTooltip(a,o):this.getStrDom(a,o);return r}},Ge=Ie,Re=Object(d["a"])(Ge,De,Me,!1,null,null,null),Pe=Re.exports,Fe=Pe,Be=n("5a70"),Ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.draggable?n("a-upload-dragger",{attrs:{name:e.name,multiple:e.multiple,accept:e.accept,customRequest:e.handleUpload,remove:e.handleRemove},on:{change:e.handleChange}},[e._t("default",null,{role:"button"})],2):n("a-upload",{attrs:{name:e.name,multiple:e.multiple,accept:e.accept,customRequest:e.handleUpload,remove:e.handleRemove},on:{change:e.handleChange}},[e._t("default")],2)],1)},Ue=[],Ke=n("7f43"),qe=n.n(Ke),Ye={name:"Upload",props:{name:{type:String,required:!1,default:"file"},multiple:{type:Boolean,required:!1,default:!1},draggable:{type:Boolean,required:!1,default:!0},accept:{type:String,required:!1,default:""},uploadHandler:{type:Function,required:!0}},methods:{handleChange:function(e){this.$emit("change",e)},handleRemove:function(e){this.$log.debug("Removed file",e),this.$emit("remove",e)},handleUpload:function(e){var t=this;this.$log.debug("Uploading option",e);var n=qe.a.CancelToken,a=n.source(),o=new FormData;return o.append(this.name,e.file),this.uploadHandler(o,function(n){n.total>0&&(n.percent=n.loaded/n.total*100),t.$log.debug("Uploading percent: ",n.percent),e.onProgress(n)},a.token,e.file).then(function(n){t.$log.debug("Uploaded successfully",n),e.onSuccess(n,e.file),t.$emit("success",n,e.file)}).catch(function(n){t.$log.debug("Failed to upload file",n),e.onError(n,n.response),t.$emit("failure",n,e.file)}),{abort:function(){t.$log.debug("Upload operation aborted by the user"),a.cancel("Upload operation canceled by the user.")}}}}},ze=Ye,We=Object(d["a"])(ze,Ne,Ue,!1,null,null,null),Xe=We.exports,Ve={Ellipsis:Fe,FooterToolbar:Be["a"],Upload:Xe},Je={};Object.keys(Ve).forEach(function(e){Je[e]=a["a"].component(e,Ve[e])});var Ze=n("ac2a"),Qe=n.n(Ze);a["a"].config.productionTip=!1,a["a"].use(h["a"]),a["a"].use(Qe.a),new a["a"]({router:h["a"],store:p["a"],render:function(e){return e(m)}}).$mount("#app")},"5a70":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixCls},[n("div",{staticStyle:{float:"left"}},[e._t("extra",[e._v(e._s(e.extra))])],2),n("div",{staticStyle:{float:"right"}},[e._t("default")],2)])},o=[],r={name:"FooterToolBar",props:{prefixCls:{type:String,default:"ant-pro-footer-toolbar"},extra:{type:[String,Object],default:""}}},i=r,s=n("17cc"),c=Object(s["a"])(i,a,o,!1,null,"4ea7eeef",null),u=c.exports;n("2432"),t["a"]=u},6692:function(e,t,n){"use strict";var a=n("2682"),o=n.n(a);o.a},"680a":function(e,t,n){"use strict";var a,o,r,i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("router-view")],1)},s=[],c={name:"BlankLayout"},u=c,l=n("17cc"),d=Object(l["a"])(u,i,s,!1,null,"7f25f9eb",null),f=(d.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout",{class:["layout",e.device]},[e.isMobile()?n("a-drawer",{attrs:{placement:"left",wrapClassName:"drawer-sider "+e.navTheme,closable:!1,visible:e.collapsed},on:{close:e.drawerClose}},[n("side-menu",{attrs:{mode:"inline",menus:e.menus,theme:e.navTheme,collapsed:!1,collapsible:!0},on:{menuSelect:e.menuSelect}})],1):e.isSideMenu()?n("side-menu",{attrs:{mode:"inline",menus:e.menus,theme:e.navTheme,collapsed:e.collapsed,collapsible:!0}}):e._e(),n("a-layout",{class:[e.layoutMode,"content-width-"+e.contentWidth],style:{paddingLeft:e.contentPaddingLeft,minHeight:"100vh"}},[n("global-header",{attrs:{mode:e.layoutMode,menus:e.menus,theme:e.navTheme,collapsed:e.collapsed,device:e.device},on:{toggle:e.toggle}}),n("a-layout-content",{style:{height:"100%",margin:"24px 24px 0",paddingTop:e.fixedHeader?"64px":"0"}},[n("transition",{attrs:{name:"page-transition"}},[n("route-view")],1)],1),n("a-layout-footer",[n("global-footer")],1)],1)],1)}),m=[],h=(n("7415"),n("3556")),p=n("ca00"),b=n("591a"),g=n("ac0d"),v=n("e819"),y=n("d73b"),E={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=e("keep-alive",[e("router-view")]),a=e("router-view");return!1===t.keepAlive?a:this.keepAlive||t.keepAlive?n:a}},k=E,_=Object(l["a"])(k,a,o,!1,null,null,null),C=_.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-sider",{class:["sider",e.isDesktop()?null:"shadow",e.theme,e.fixSiderbar?"ant-fixed-sidemenu":null],attrs:{width:"256px",collapsible:e.collapsible,trigger:null},model:{value:e.collapsed,callback:function(t){e.collapsed=t},expression:"collapsed"}},[n("logo"),n("s-menu",{staticStyle:{padding:"16px 0px"},attrs:{collapsed:e.collapsed,menu:e.menus,theme:e.theme,mode:e.mode},on:{select:e.onSelect}})],1)},O=[],S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"logo"},[n("router-link",{attrs:{to:{name:"Dashboard"}}},[n("h1",{staticClass:"logo-title"},[e._v("Halo")]),n("h1",{staticClass:"logo-sub-title"},[e._v("Dashboard")])])],1)},x=[],w={name:"Logo"},L=w,j=(n("1953"),Object(l["a"])(L,S,x,!1,null,null,null)),H=j.exports,D=n("34c6"),M=n("23c4"),$=n.n(M),A=(n("3a23"),n("e0c1"),n("93fe"),n("612f"),n("709d")),I=n("9bed"),G=A["a"].Item,R=A["a"].SubMenu,P={name:"SMenu",props:{menu:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},mode:{type:String,required:!1,default:"inline"},collapsed:{type:Boolean,required:!1,default:!1}},data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menu.forEach(function(e){return t.push(e.path)}),t}},created:function(){this.updateMenu()},watch:{collapsed:function(e){e?(this.cachedOpenKeys=this.openKeys.concat(),this.openKeys=[]):this.openKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()}},methods:{onOpenChange:function(e){var t=this;if("horizontal"!==this.mode){var n=e.find(function(e){return!t.openKeys.includes(e)});this.rootSubmenuKeys.includes(n)?this.openKeys=n?[n]:[]:this.openKeys=e}else this.openKeys=e},updateMenu:function(){var e=this.$route.matched.concat();e.length>=4&&this.$route.meta.hidden?(e.pop(),this.selectedKeys=[e[2].path]):this.selectedKeys=[e.pop().path];var t=[];"inline"===this.mode&&e.forEach(function(e){t.push(e.path)}),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t},renderItem:function(e){return e.hidden?null:e.children&&!e.hideChildrenInMenu?this.renderSubMenu(e):this.renderMenuItem(e)},renderMenuItem:function(e){var t=this.$createElement,n=e.meta.target||null,a=n?"a":"router-link",o={to:{name:e.name}},r={href:e.path,target:e.meta.target};return t(G,$()([{},{key:e.path}]),[t(a,{props:Object(h["a"])({},o),attrs:Object(h["a"])({},r)},[this.renderIcon(e.meta.icon),t("span",[e.meta.title])])])},renderSubMenu:function(e){var t=this,n=this.$createElement,a=[];return e.hideChildrenInMenu||e.children.forEach(function(e){return a.push(t.renderItem(e))}),n(R,$()([{},{key:e.path}]),[n("span",{slot:"title"},[this.renderIcon(e.meta.icon),n("span",[e.meta.title])]),a])},renderIcon:function(e){var t=this.$createElement;if("none"===e||void 0===e)return null;var n={};return"object"===Object(D["a"])(e)?n.component=e:n.type=e,t(I["a"],{props:Object(h["a"])({},n)})}},render:function(){var e=this,t=arguments[0],n=this.mode,a=this.theme,o=this.menu,r={mode:n,theme:a,openKeys:this.openKeys},i={select:function(t){e.selectedKeys=t.selectedKeys,e.$emit("select",t)},openChange:this.onOpenChange},s=o.map(function(t){return t.hidden?null:e.renderItem(t)});return t(A["a"],{props:Object(h["a"])({},r),on:Object(h["a"])({},i),model:{value:e.selectedKeys,callback:function(t){e.selectedKeys=t}}},[s])}},F=P,B={name:"SideMenu",components:{Logo:H,SMenu:F},mixins:[g["a"],g["b"]],props:{mode:{type:String,required:!1,default:"inline"},theme:{type:String,required:!1,default:"dark"},collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menus:{type:Array,required:!0}},methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},N=B,U=Object(l["a"])(N,T,O,!1,null,null,null),K=U.exports,q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"showHeader"}},[e.visible?n("div",{staticClass:"header-animat"},[e.visible?n("a-layout-header",{class:[e.fixedHeader&&"ant-header-fixedHeader",e.sidebarOpened?"ant-header-side-opened":"ant-header-side-closed"],style:{padding:"0"}},["sidemenu"===e.mode?n("div",{staticClass:"header"},["mobile"===e.device?n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggle}}),n("user-menu")],1):n("div",{class:["top-nav-header-index",e.theme]},[n("div",{staticClass:"header-index-wide"},[n("div",{staticClass:"header-index-left"},["mobile"!==e.device?n("logo",{staticClass:"top-nav-header"}):e._e(),"mobile"!==e.device?n("s-menu",{attrs:{mode:"horizontal",menu:e.menus,theme:e.theme}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}})],1),n("user-menu",{staticClass:"header-index-right"})],1)])]):e._e()],1):e._e()])},Y=[],z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-wrapper"},[n("a",{attrs:{href:e.options.blog_url,target:"_blank"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"link"}})],1)]),n("a",{attrs:{href:"javascript:void(0)"},on:{click:e.showOptionModal}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"setting"}})],1)]),n("header-comment",{staticClass:"action"}),n("a-dropdown",[e.user?n("span",{staticClass:"action ant-dropdown-link user-dropdown-menu"},[n("a-avatar",{staticClass:"avatar",attrs:{size:"small",src:e.user.avatar||"https://gravatar.loli.net/avatar/?s=256&d=mm"}})],1):e._e(),n("a-menu",{staticClass:"user-dropdown-menu-wrapper",attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"0"},[n("router-link",{attrs:{to:{name:"Profile"}}},[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v("个人资料")])],1)],1),n("a-menu-divider"),n("a-menu-item",{key:"1"},[n("a",{attrs:{href:"javascript:;"},on:{click:e.handleLogout}},[n("a-icon",{attrs:{type:"logout"}}),n("span",[e._v("退出登录")])],1)])],1)],1),n("setting-drawer",{ref:"drawer"})],1)},W=[],X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-popover",{attrs:{trigger:"click",placement:"bottomRight",autoAdjustOverflow:!0,arrowPointAtCenter:!0,overlayStyle:{width:"300px",top:"50px"},title:"待审核评论"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("template",{slot:"content"},[n("a-spin",{attrs:{spinning:e.loadding}},[n("div",{staticClass:"custom-tab-wrapper"},[n("a-tabs",[n("a-tab-pane",{key:"1",attrs:{tab:"文章"}},[n("a-list",{attrs:{dataSource:e.converttedPostComments},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{},[n("a-list-item-meta",[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gravatar.loli.net/avatar/"+t.gavatarMd5+"&d=mm",size:"large"},slot:"avatar"}),n("template",{slot:"title"},[n("a",{attrs:{href:t.authorUrl,target:"_blank"}},[e._v(e._s(t.author))]),e._v(":"),n("span",{domProps:{innerHTML:e._s(t.content)}})]),n("template",{slot:"description"},[e._v("\n "+e._s(e._f("timeAgo")(t.createTime))+"\n ")])],2)],1)}}])})],1),n("a-tab-pane",{key:"2",attrs:{tab:"页面"}},[n("a-list",{attrs:{dataSource:e.converttedSheetComments},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{},[n("a-list-item-meta",[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gravatar.loli.net/avatar/"+t.gavatarMd5+"&d=mm",size:"large"},slot:"avatar"}),n("template",{slot:"title"},[n("a",{attrs:{href:t.authorUrl,target:"_blank"}},[e._v(e._s(t.author))]),e._v(":"),n("span",{domProps:{innerHTML:e._s(t.content)}})]),n("template",{slot:"description"},[e._v("\n "+e._s(e._f("timeAgo")(t.createTime))+"\n ")])],2)],1)}}])})],1)],1)],1)])],1),n("span",{staticClass:"header-comment",on:{click:e.fetchComment}},[e.postComments.length>0||e.sheetComments.length>0?n("a-badge",{attrs:{dot:""}},[n("a-icon",{attrs:{type:"bell"}})],1):n("a-badge",[n("a-icon",{attrs:{type:"bell"}})],1)],1)],2)},V=[],J=n("063c"),Z=n("ae4d"),Q=n.n(Z),ee={name:"HeaderComment",data:function(){return{loadding:!1,visible:!1,postComments:[],sheetComments:[]}},created:function(){this.getComment()},computed:{converttedPostComments:function(){return this.postComments.map(function(e){return e.content=Q()(e.content,{sanitize:!0}),e})},converttedSheetComments:function(){return this.sheetComments.map(function(e){return e.content=Q()(e.content,{sanitize:!0}),e})}},methods:{fetchComment:function(){this.visible?this.loadding=!1:(this.loadding=!0,this.getComment()),this.visible=!this.visible},getComment:function(){var e=this;J["a"].latestComment("posts",5,"AUDITING").then(function(t){e.postComments=t.data.data,e.loadding=!1}),J["a"].latestComment("sheets",5,"AUDITING").then(function(t){e.sheetComments=t.data.data,e.loadding=!1})}}},te=ee,ne=(n("bed6"),Object(l["a"])(te,X,V,!1,null,"08a1658b",null)),ae=ne.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"settingDrawer",staticClass:"setting-drawer"},[n("a-drawer",{attrs:{width:"300",closable:"",visible:e.visible,zIndex:9999},on:{close:e.onClose}},[n("div",{staticClass:"setting-drawer-index-content"},[n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("整体风格设置")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("a-tooltip",[n("template",{slot:"title"},[e._v("暗色菜单风格")]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleMenuTheme("dark")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg",alt:"dark"}}),"dark"===e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])],2),n("a-tooltip",[n("template",{slot:"title"},[e._v("亮色菜单风格")]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleMenuTheme("light")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg",alt:"light"}}),"dark"!==e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])],2)],1)]),n("a-divider"),n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("主题色")]),n("div",{staticStyle:{height:"20px"}},e._l(e.colorList,function(t,a){return n("a-tooltip",{key:a,staticClass:"setting-drawer-theme-color-colorBlock"},[n("template",{slot:"title"},[e._v(e._s(t.key))]),n("a-tag",{attrs:{color:t.color},on:{click:function(n){return e.changeColor(t.color)}}},[t.color===e.primaryColor?n("a-icon",{attrs:{type:"check"}}):e._e()],1)],2)}),1)]),n("a-divider"),n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("导航模式")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleLayout("sidemenu")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg",alt:"sidemenu"}}),"sidemenu"===e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleLayout("topmenu")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg",alt:"topmenu"}}),"sidemenu"!==e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])]),n("a-divider")],1)])],1)},re=[],ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"setting-drawer-index-item"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v(e._s(e.title))]),e._t("default"),e.divider?n("a-divider"):e._e()],2)},se=[],ce={name:"SettingItem",props:{title:{type:String,default:""},divider:{type:Boolean,default:!1}}},ue=ce,le=(n("d25d"),Object(l["a"])(ue,ie,se,!1,null,"e773bc98",null)),de=le.exports,fe=n("1daf"),me=[{key:"红色",color:"#F5222D"},{key:"浅红色",color:"#FA541C"},{key:"日暮",color:"#FAAD14"},{key:"青色",color:"#13C2C2"},{key:"绿色",color:"#52C41A"},{key:"默认",color:"#1890FF"},{key:"蓝色",color:"#2F54EB"},{key:"紫色",color:"#722ED1"}],he=function(e){if(e){var t=fe["a"].loading("正在编译主题!",0);if(r)i();else{var n=document.createElement("link"),a=document.createElement("script"),o=document.createElement("script");n.setAttribute("rel","stylesheet/less"),n.setAttribute("href","/color.less"),a.innerHTML="\n window.less = {\n async: true,\n env: 'production',\n javascriptEnabled: true\n };\n ",o.src="https://cdnjs.loli.net/ajax/libs/less.js/3.8.1/less.min.js",o.async=!0,o.onload=function(){i(),o.onload=null},document.body.appendChild(n),document.body.appendChild(a),document.body.appendChild(o),r=!0}}function i(){window.less&&setTimeout(function(){window.less.modifyVars({"@primary-color":e}).then(function(){t()}).catch(function(){fe["a"].error("Failed to update theme"),t()})},200)}},pe={components:{SettingItem:de},mixins:[g["a"],g["b"]],data:function(){return{visible:!1,colorList:me,baseConfig:Object.assign({},v["a"])}},watch:{},mounted:function(){this.primaryColor!==v["a"].primaryColor&&he(this.primaryColor)},methods:{showDrawer:function(){this.visible=!0},onClose:function(){this.visible=!1},toggle:function(){this.visible=!this.visible},handleMenuTheme:function(e){this.baseConfig.navTheme=e,this.$store.dispatch("ToggleTheme",e)},handleLayout:function(e){this.baseConfig.layout=e,this.$store.dispatch("ToggleLayoutMode",e),this.handleFixSiderbar(!1)},handleContentWidthChange:function(e){this.baseConfig.contentWidth=e,this.$store.dispatch("ToggleContentWidth",e)},changeColor:function(e){this.baseConfig.primaryColor=e,this.primaryColor!==e&&(this.$store.dispatch("ToggleColor",e),he(e))},handleFixedHeader:function(e){this.baseConfig.fixedHeader=e,this.$store.dispatch("ToggleFixedHeader",e)},handleFixedHeaderHidden:function(e){this.baseConfig.autoHideHeader=e,this.$store.dispatch("ToggleFixedHeaderHidden",e)},handleFixSiderbar:function(e){if("topmenu"===this.layoutMode)return this.baseConfig.fixSiderbar=!1,void this.$store.dispatch("ToggleFixSiderbar",!1);this.baseConfig.fixSiderbar=e,this.$store.dispatch("ToggleFixSiderbar",e)}}},be=pe,ge=(n("ad48"),Object(l["a"])(be,oe,re,!1,null,"ef4d2b56",null)),ve=ge.exports,ye=n("482b"),Ee={name:"UserMenu",components:{HeaderComment:ae,SettingDrawer:ve},data:function(){return{optionVisible:!0,options:[],keys:["blog_url"]}},mounted:function(){this.optionVisible=this.$refs.drawer.visible},created:function(){this.loadOptions()},computed:Object(h["a"])({},Object(b["c"])(["user"])),methods:Object(h["a"])({},Object(b["b"])(["logout"]),{handleLogout:function(){var e=this;this.$confirm({title:"提示",content:"确定要注销登录吗 ?",onOk:function(){return e.logout({}).then(function(){window.location.reload()}).catch(function(t){e.$message.error({title:"错误",description:t.message})})},onCancel:function(){}})},showOptionModal:function(){this.optionVisible=this.$refs.drawer.visible,this.$refs.drawer.toggle()},loadOptions:function(){var e=this;ye["a"].listAll(this.keys).then(function(t){e.options=t.data.data})}})},ke=Ee,_e=(n("3517"),Object(l["a"])(ke,z,W,!1,null,"4f6a1ce4",null)),Ce=_e.exports,Te={name:"GlobalHeader",components:{UserMenu:Ce,SMenu:F,Logo:H},mixins:[g["a"]],props:{mode:{type:String,default:"sidemenu"},menus:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},collapsed:{type:Boolean,required:!1,default:!1},device:{type:String,required:!1,default:"desktop"}},data:function(){return{visible:!0,oldScrollTop:0}},mounted:function(){document.body.addEventListener("scroll",this.handleScroll,{passive:!0})},methods:{handleScroll:function(){var e=this;if(this.autoHideHeader){var t=document.body.scrollTop+document.documentElement.scrollTop;this.ticking||(this.ticking=!0,requestAnimationFrame(function(){e.oldScrollTop>t?e.visible=!0:t>300&&e.visible?e.visible=!1:t<300&&!e.visible&&(e.visible=!0),e.oldScrollTop=t,e.ticking=!1}))}},toggle:function(){this.$emit("toggle")}},beforeDestroy:function(){document.body.removeEventListener("scroll",this.handleScroll,!0)}},Oe=Te,Se=(n("05fe"),Object(l["a"])(Oe,q,Y,!1,null,null,null)),xe=Se.exports,we=xe,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("div",{staticClass:"copyright"},[e._v("\n Proudly power by\n "),n("router-link",{attrs:{to:{name:"About"}}},[n("a",{attrs:{href:"javascript:void(0);"}},[e._v("Halo")])])],1)])},je=[],He={name:"GlobalFooter",data:function(){return{}}},De=He,Me=(n("0645"),Object(l["a"])(De,Le,je,!1,null,"cd222e82",null)),$e=Me.exports,Ae=$e,Ie={name:"BasicLayout",mixins:[g["a"],g["b"]],components:{RouteView:C,SideMenu:K,GlobalHeader:we,GlobalFooter:Ae},data:function(){return{production:v["a"].production,collapsed:!1,menus:[]}},computed:Object(h["a"])({},Object(b["e"])({mainMenu:function(e){return e.permission.addRouters}}),{contentPaddingLeft:function(){return!this.fixSidebar||this.isMobile()?"0":this.sidebarOpened?"256px":"80px"}}),watch:{sidebarOpened:function(e){this.collapsed=!e}},created:function(){this.menus=y["a"].find(function(e){return"/"===e.path}).children,this.collapsed=!this.sidebarOpened},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:Object(h["a"])({},Object(b["b"])(["setSidebar"]),{toggle:function(){this.collapsed=!this.collapsed,this.setSidebar(!this.collapsed),Object(p["c"])()},paddingCalc:function(){var e="";return e=this.sidebarOpened?this.isDesktop()?"256px":"80px":(this.isMobile()?"0":this.fixSidebar&&"80px")||"0",e},menuSelect:function(){this.isDesktop()||(this.collapsed=!1)},drawerClose:function(){this.collapsed=!1}})},Ge=Ie,Re=(n("6692"),Object(l["a"])(Ge,f,m,!1,null,null,null)),Pe=Re.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.$route.meta.hiddenHeaderContent?null:"margin: -24px -24px 0px;"},[e.$route.meta.hiddenHeaderContent?e._e():n("page-header",{attrs:{title:e.pageTitle,logo:e.logo,avatar:e.avatar}},[e._t("action",null,{slot:"action"}),e._t("headerContent",null,{slot:"content"}),!this.$slots.headerContent&&e.description?n("div",{attrs:{slot:"content"},slot:"content"},[n("p",{staticStyle:{"font-size":"14px",color:"rgba(0,0,0,.65)"}},[e._v(e._s(e.description))]),n("div",{staticClass:"link"},[e._l(e.linkList,function(t,a){return[n("a",{key:a,attrs:{href:t.href}},[n("a-icon",{attrs:{type:t.icon}}),n("span",[e._v(e._s(t.title))])],1)]})],2)]):e._e()],2),n("div",{staticClass:"content"},[n("div",{staticClass:"page-header-index-wide"},[e._t("default",[n("router-view",{ref:"content"})])],2)])],1)},Be=[],Ne=(n("aaa4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("s-breadcrumb"),n("div",{staticClass:"detail"},[e.$route.meta.hiddenHeaderContent?e._e():n("div",{staticClass:"main"},[n("div",{staticClass:"row"},[e.logo?n("img",{staticClass:"logo",attrs:{src:e.logo}}):e._e(),n("div",{staticClass:"action"},[e._t("action")],2)]),n("div",{staticClass:"row"},[e.avatar?n("div",{staticClass:"avatar"},[n("a-avatar",{attrs:{src:e.avatar}})],1):e._e(),this.$slots.content?n("div",{staticClass:"headerContent"},[e._t("content")],2):e._e(),this.$slots.extra?n("div",{staticClass:"extra"},[e._t("extra")],2):e._e()]),n("div",[e._t("pageMenu")],2)])])],1)])}),Ue=[],Ke=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!=e.name&&1!=a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.title))]):n("span",[e._v(e._s(t.meta.title))])],1)}),1)},qe=[],Ye={data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,this.$route.matched.forEach(function(t){e.breadList.push(t)})}},watch:{$route:function(){this.getBreadcrumb()}}},ze=Ye,We=Object(l["a"])(ze,Ke,qe,!1,null,"86fe166e",null),Xe=We.exports,Ve={name:"PageHeader",components:{"s-breadcrumb":Xe},props:{title:{type:[String,Boolean],default:!0,required:!1},logo:{type:String,default:"",required:!1},avatar:{type:String,default:"",required:!1}},data:function(){return{}}},Je=Ve,Ze=(n("1d26"),Object(l["a"])(Je,Ne,Ue,!1,null,"4ebcc784",null)),Qe=Ze.exports,et=Qe,tt={name:"PageView",components:{PageHeader:et},props:{avatar:{type:String,default:null},title:{type:[String,Boolean],default:!0},logo:{type:String,default:null}},data:function(){return{pageTitle:null,description:null,linkList:[],extraImage:"",search:!1,tabs:{}}},mounted:function(){this.getPageMeta()},updated:function(){this.getPageMeta()},methods:{getPageMeta:function(){this.pageTitle="string"!==typeof this.title&&this.title?this.$route.meta.title:this.title;var e=this.$refs.content;e&&(e.pageMeta?Object.assign(this,e.pageMeta):(this.description=e.description,this.linkList=e.linkList,this.extraImage=e.extraImage,this.search=!0===e.search,this.tabs=e.tabs))}}},nt=tt,at=(n("2987"),Object(l["a"])(nt,Fe,Be,!1,null,"43152b59",null)),ot=at.exports;n.d(t,"a",function(){return Pe}),n.d(t,"b",function(){return ot})},"6e79":function(e,t,n){},"9e74":function(e,t,n){},"9e76":function(e,t,n){},"9efd":function(e,t,n){"use strict";n("4453"),n("612f"),n("4013");var a=n("a7ca"),o=n("7f43"),r=n.n(o),i=n("38bc"),s=n.n(i),c=(n("70e7"),n("6e6d")),u=n("38be"),l=n("1daf"),d=n("4360"),f=n("a18c"),m=n("ca00"),h=r.a.create({baseURL:"",timeout:5e3,withCredentials:!0});function p(e){var t=d["a"].getters.token;c["a"].$log.debug("Got token from store",t),t&&t.access_token&&(e.headers["Admin-Authorization"]=t.access_token)}function b(e){return g.apply(this,arguments)}function g(){return g=Object(a["a"])(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.response.config,p(n),e.next=4,r.a.request(n);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}},e)})),g.apply(this,arguments)}var v=null;function y(e){return E.apply(this,arguments)}function E(){return E=Object(a["a"])(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=d["a"].getters.token.refresh_token,e.prev=1,null===v&&(v=d["a"].dispatch("refreshToken",n)),e.next=5,v;case 5:e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](1),e.t0.response&&e.t0.response.data&&e.t0.response.data.data===n&&f["a"].push({name:"Login"}),c["a"].$log.error("Failed to refresh token",e.t0);case 11:return e.prev=11,v=null,e.finish(11);case 14:return e.abrupt("return",b(t));case 15:case"end":return e.stop()}},e,null,[[1,7,11,14]])})),E.apply(this,arguments)}function k(e){if(!Object(m["a"])(e)||!Object(m["a"])(e.data))return null;var t=e.data;return Object.keys(t).map(function(e){return t[e]})}h.interceptors.request.use(function(e){return s.a.start(),p(e),e},function(e){return s.a.remove(),Promise.reject(e)}),h.interceptors.response.use(function(e){return s.a.done(),e},function(e){if(s.a.done(),r.a.isCancel(e))return c["a"].$log.debug("Cancelled uploading by user."),Promise.reject(e);c["a"].$log.error("Response failed",e);var t=e.response,n=t?t.status:-1;c["a"].$log.error("Server response status",n);var a=t?t.data:null;if(a){var o=!1;if(c["a"].$log.error("Business response status",a.status),400===a.status){var i=k(a);i&&(o=!0,u["a"].error({message:a.message,description:function(e){var t=i.map(function(t){return e("a-alert",{props:{message:t,banner:!0,showIcon:!1,type:"error"}})});return e("div",t)},duration:10}))}else if(401===a.status)if(d["a"].getters.token&&d["a"].getters.token.access_token===a.data){var m=y(e);if(m!==e)return m}else f["a"].push({name:"Login"});else 403===a.status||404===a.status||a.status;o||l["a"].error(a.message)}else l["a"].error("服务异常");return Promise.reject(e)}),t["a"]=h},"9fb0":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"i",function(){return o}),n.d(t,"h",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"j",function(){return f});var a="Access-Token",o="SIDEBAR_TYPE",r="DEFAULT_THEME",i="DEFAULT_LAYOUT_MODE",s="DEFAULT_COLOR",c="DEFAULT_FIXED_HEADER",u="DEFAULT_FIXED_SIDEMENU",l="DEFAULT_FIXED_HEADER_HIDDEN",d="DEFAULT_CONTENT_WIDTH_TYPE",f="USER"},a18c:function(e,t,n){"use strict";var a=n("6e6d"),o=n("1e6f"),r=n("d73b");a["a"].use(o["a"]),t["a"]=new o["a"]({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:r["b"].concat(r["a"])})},ac0d:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var a=n("3556"),o=n("51e6"),r=n("591a"),i={computed:Object(a["a"])({},Object(r["e"])({layoutMode:function(e){return e.app.layout},navTheme:function(e){return e.app.theme},primaryColor:function(e){return e.app.color},fixedHeader:function(e){return e.app.fixedHeader},fixSiderbar:function(e){return e.app.fixSiderbar},fixSidebar:function(e){return e.app.fixSiderbar},contentWidth:function(e){return e.app.contentWidth},autoHideHeader:function(e){return e.app.autoHideHeader},sidebarOpened:function(e){return e.app.sidebar}})),methods:{isTopMenu:function(){return"topmenu"===this.layoutMode},isSideMenu:function(){return!this.isTopMenu()}}},s={computed:Object(a["a"])({},Object(r["e"])({device:function(e){return e.app.device}})),methods:{isMobile:function(){return this.device===o["a"].MOBILE},isDesktop:function(){return this.device===o["a"].DESKTOP},isTablet:function(){return this.device===o["a"].TABLET}}}},ad48:function(e,t,n){"use strict";var a=n("3bc0"),o=n.n(a);o.a},bc6c:function(e,t,n){},bed6:function(e,t,n){"use strict";var a=n("dd96"),o=n.n(a);o.a},c24f:function(e,t,n){"use strict";var a=n("9efd"),o="/api/admin/users",r={getProfile:function(){return Object(a["a"])({url:"".concat(o,"/profiles"),method:"get"})},updateProfile:function(e){return Object(a["a"])({url:"".concat(o,"/profiles"),method:"put",data:e})},updatePassword:function(e,t){return Object(a["a"])({url:"".concat(o,"/profiles/password"),method:"put",data:{oldPassword:e,newPassword:t}})}};t["a"]=r},c8df:function(e,t,n){},ca00:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var a=n("34c6"),o=n("6bf2"),r=n.n(o);n("35d0");function i(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}function s(e){var t=(new Date).getTime(),n=t-e,a=Math.floor(n/864e5);if(0===a){var o=n%864e5,i=Math.floor(o/36e5);if(0===i){var s=o%36e5,c=Math.floor(s/6e4);if(0===c){var u=s%6e4,l=Math.round(u/1e3);return l+" 秒前"}return c+" 分钟前"}return i+" 小时前"}return a<0?"刚刚":a<5?a+" 天前":r()(e).format("YYYY-MM-DD HH:mm")}function c(e){return e&&"object"===Object(a["a"])(e)&&e.constructor===Object}},d25d:function(e,t,n){"use strict";var a=n("f942"),o=n.n(a);o.a},d630:function(e,t,n){},d73b:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var a=n("680a"),o=[{path:"/",name:"index",component:a["a"],meta:{title:"首页"},redirect:"/dashboard",children:[{path:"/dashboard",name:"Dashboard",component:function(){return n.e("chunk-f1eac230").then(n.bind(null,"5c3a"))},meta:{title:"仪表盘",icon:"dashboard",hiddenHeaderContent:!1}},{path:"/posts",name:"Posts",redirect:"/posts/list",component:a["b"],meta:{title:"文章",icon:"form"},children:[{path:"/posts/list",name:"PostList",component:function(){return n.e("chunk-87e2df70").then(n.bind(null,"dae2"))},meta:{title:"所有文章",hiddenHeaderContent:!1}},{path:"/posts/write",name:"PostEdit",component:function(){return Promise.all([n.e("chunk-4851a43a"),n.e("chunk-35e63e70")]).then(n.bind(null,"db44"))},meta:{title:"写文章",hiddenHeaderContent:!1}},{path:"/categories",name:"CategoryList",component:function(){return n.e("chunk-3a043b93").then(n.bind(null,"7e89"))},meta:{title:"分类目录",hiddenHeaderContent:!1}},{path:"/tags",name:"TagList",component:function(){return n.e("chunk-4b5e9e93").then(n.bind(null,"aa1e"))},meta:{title:"标签",hiddenHeaderContent:!1}}]},{path:"/sheets",name:"Sheets",component:a["b"],redirect:"/sheets/list",meta:{title:"页面",icon:"read"},children:[{path:"/sheets/list",name:"SheetList",component:function(){return n.e("chunk-142c8832").then(n.bind(null,"a8ed"))},meta:{title:"所有页面",hiddenHeaderContent:!1}},{path:"/sheets/write",name:"SheetEdit",component:function(){return Promise.all([n.e("chunk-4851a43a"),n.e("chunk-31c8ea42")]).then(n.bind(null,"f585"))},meta:{title:"新建页面",hiddenHeaderContent:!1}},{path:"/sheets/links",name:"LinkList",hidden:!0,component:function(){return n.e("chunk-2d21a35c").then(n.bind(null,"bb17"))},meta:{title:"友情链接",hiddenHeaderContent:!1}},{path:"/sheets/photos",name:"PhotoList",hidden:!0,component:function(){return n.e("chunk-6d8b31f6").then(n.bind(null,"6d0d"))},meta:{title:"图库",hiddenHeaderContent:!1}},{path:"/sheets/journals",name:"JournalList",hidden:!0,component:function(){return n.e("chunk-5bf599cc").then(n.bind(null,"81a6"))},meta:{title:"日志",hiddenHeaderContent:!1}}]},{path:"/attachments",name:"Attachments",component:function(){return n.e("chunk-2a007c18").then(n.bind(null,"61d0"))},meta:{title:"附件",icon:"picture",hiddenHeaderContent:!1}},{path:"/comments",name:"Comments",component:function(){return n.e("chunk-2d0b64bf").then(n.bind(null,"1d0f"))},meta:{title:"评论",icon:"message",hiddenHeaderContent:!1}},{path:"/interface",name:"Interface",component:a["b"],redirect:"/interface/themes",meta:{title:"外观",icon:"skin"},children:[{path:"/interface/themes",name:"ThemeList",component:function(){return n.e("chunk-55d28d8a").then(n.bind(null,"79e7"))},meta:{title:"主题",hiddenHeaderContent:!1}},{path:"/interface/menus",name:"MenuList",component:function(){return n.e("chunk-2d0d65a2").then(n.bind(null,"71d6"))},meta:{title:"菜单",hiddenHeaderContent:!1}},{path:"/interface/themes/edit",name:"ThemeEdit",component:function(){return n.e("chunk-5b9151a2").then(n.bind(null,"33c9"))},meta:{title:"主题编辑",hiddenHeaderContent:!1}}]},{path:"/user",name:"User",component:a["b"],redirect:"/user/profile",meta:{title:"用户",icon:"user"},children:[{path:"/user/profile",name:"Profile",component:function(){return n.e("chunk-4e835ab8").then(n.bind(null,"7c54"))},meta:{title:"个人资料",hiddenHeaderContent:!1}}]},{path:"/system",name:"System",component:a["b"],redirect:"/system/options",meta:{title:"系统",icon:"setting"},children:[{path:"/system/options",name:"OptionForm",component:function(){return n.e("chunk-bb4f0d4a").then(n.bind(null,"26ea"))},meta:{title:"博客设置",hiddenHeaderContent:!1}},{path:"/system/tools",name:"ToolList",component:function(){return n.e("chunk-2d228d13").then(n.bind(null,"db98"))},meta:{title:"小工具",hiddenHeaderContent:!1}},{path:"/system/about",name:"About",component:function(){return n.e("chunk-1be69b35").then(n.bind(null,"2967"))},hidden:!0,meta:{title:"关于 Halo",hiddenHeaderContent:!1}}]}]},{path:"*",redirect:"/404",hidden:!0}],r=[{path:"/login",name:"Login",meta:{title:"登录"},component:function(){return n.e("chunk-9449c032").then(n.bind(null,"ac2a5"))}},{path:"/install",name:"Install",meta:{title:"安装向导"},component:function(){return n.e("chunk-2827d63c").then(n.bind(null,"306f"))}},{path:"/404",name:"NotFound",component:function(){return n.e("fail").then(n.bind(null,"cc89"))}}]},dd96:function(e,t,n){},e819:function(e,t,n){"use strict";t["a"]={primaryColor:"#1890FF",navTheme:"dark",layout:"topmenu",contentWidth:"Fixed",fixedHeader:!1,fixSiderbar:!1,autoHideHeader:!1,storageOptions:{namespace:"halo__",name:"ls",storage:"local"}}},f607:function(e,t,n){},f942:function(e,t,n){}}); \ No newline at end of file +(function(e){function t(t){for(var a,o,s=t[0],c=t[1],u=t[2],l=0,d=[];l1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return je()(e).format(t)}),a["a"].filter("moment",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return je()(e).format(t)}),a["a"].filter("timeAgo",He["b"]),a["a"].filter("fileSizeFormat",function(e){if(!e)return"0 Bytes";var t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0,a=parseFloat(e);n=Math.floor(Math.log(a)/Math.log(1024));var o=a/Math.pow(1024,n);return o=o.toFixed(2),o+" "+t[n]});var De,Me,$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").reduce(function(e,t){var n=t.charCodeAt(0);return n>=0&&n<=128?e+1:e+2},0)},Ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=0;return e.split("").reduce(function(e,a){var o=a.charCodeAt(0);return n+=o>=0&&o<=128?1:2,n<=t?e+a:e},"")},Ie={name:"Ellipsis",components:{Tooltip:ce["a"]},props:{prefixCls:{type:String,default:"ant-pro-ellipsis"},tooltip:{type:Boolean},length:{type:Number,required:!0},lines:{type:Number,default:1},fullWidthRecognition:{type:Boolean,default:!1}},methods:{getStrDom:function(e,t){var n=this.$createElement;return n("span",[Ae(e,this.length)+(t>this.length?"...":"")])},getTooltip:function(e,t){var n=this.$createElement;return n(ce["a"],[n("template",{slot:"title"},[e]),this.getStrDom(e,t)])}},render:function(){var e=this.$props,t=e.tooltip,n=e.length,a=this.$slots.default.map(function(e){return e.text}).join(""),o=$e(a),r=t&&o>n?this.getTooltip(a,o):this.getStrDom(a,o);return r}},Ge=Ie,Re=Object(d["a"])(Ge,De,Me,!1,null,null,null),Pe=Re.exports,Fe=Pe,Be=n("5a70"),Ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.draggable?n("a-upload-dragger",{attrs:{name:e.name,multiple:e.multiple,accept:e.accept,customRequest:e.handleUpload,remove:e.handleRemove},on:{change:e.handleChange}},[e._t("default",null,{role:"button"})],2):n("a-upload",{attrs:{name:e.name,multiple:e.multiple,accept:e.accept,customRequest:e.handleUpload,remove:e.handleRemove},on:{change:e.handleChange}},[e._t("default")],2)],1)},Ue=[],Ke=n("7f43"),qe=n.n(Ke),Ye={name:"Upload",props:{name:{type:String,required:!1,default:"file"},multiple:{type:Boolean,required:!1,default:!1},draggable:{type:Boolean,required:!1,default:!0},accept:{type:String,required:!1,default:""},uploadHandler:{type:Function,required:!0}},methods:{handleChange:function(e){this.$emit("change",e)},handleRemove:function(e){this.$log.debug("Removed file",e),this.$emit("remove",e)},handleUpload:function(e){var t=this;this.$log.debug("Uploading option",e);var n=qe.a.CancelToken,a=n.source(),o=new FormData;return o.append(this.name,e.file),this.uploadHandler(o,function(n){n.total>0&&(n.percent=n.loaded/n.total*100),t.$log.debug("Uploading percent: ",n.percent),e.onProgress(n)},a.token,e.file).then(function(n){t.$log.debug("Uploaded successfully",n),e.onSuccess(n,e.file),t.$emit("success",n,e.file)}).catch(function(n){t.$log.debug("Failed to upload file",n),e.onError(n,n.response),t.$emit("failure",n,e.file)}),{abort:function(){t.$log.debug("Upload operation aborted by the user"),a.cancel("Upload operation canceled by the user.")}}}}},ze=Ye,We=Object(d["a"])(ze,Ne,Ue,!1,null,null,null),Xe=We.exports,Ve={Ellipsis:Fe,FooterToolbar:Be["a"],Upload:Xe},Je={};Object.keys(Ve).forEach(function(e){Je[e]=a["a"].component(e,Ve[e])});var Ze=n("ac2a"),Qe=n.n(Ze);a["a"].config.productionTip=!1,a["a"].use(h["a"]),a["a"].use(Qe.a),new a["a"]({router:h["a"],store:p["a"],render:function(e){return e(m)}}).$mount("#app")},"5a70":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixCls},[n("div",{staticStyle:{float:"left"}},[e._t("extra",[e._v(e._s(e.extra))])],2),n("div",{staticStyle:{float:"right"}},[e._t("default")],2)])},o=[],r={name:"FooterToolBar",props:{prefixCls:{type:String,default:"ant-pro-footer-toolbar"},extra:{type:[String,Object],default:""}}},i=r,s=n("17cc"),c=Object(s["a"])(i,a,o,!1,null,"4ea7eeef",null),u=c.exports;n("2432"),t["a"]=u},6692:function(e,t,n){"use strict";var a=n("2682"),o=n.n(a);o.a},"680a":function(e,t,n){"use strict";var a,o,r,i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("router-view")],1)},s=[],c={name:"BlankLayout"},u=c,l=n("17cc"),d=Object(l["a"])(u,i,s,!1,null,"7f25f9eb",null),f=(d.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout",{class:["layout",e.device]},[e.isMobile()?n("a-drawer",{attrs:{placement:"left",wrapClassName:"drawer-sider "+e.navTheme,closable:!1,visible:e.collapsed},on:{close:e.drawerClose}},[n("side-menu",{attrs:{mode:"inline",menus:e.menus,theme:e.navTheme,collapsed:!1,collapsible:!0},on:{menuSelect:e.menuSelect}})],1):e.isSideMenu()?n("side-menu",{attrs:{mode:"inline",menus:e.menus,theme:e.navTheme,collapsed:e.collapsed,collapsible:!0}}):e._e(),n("a-layout",{class:[e.layoutMode,"content-width-"+e.contentWidth],style:{paddingLeft:e.contentPaddingLeft,minHeight:"100vh"}},[n("global-header",{attrs:{mode:e.layoutMode,menus:e.menus,theme:e.navTheme,collapsed:e.collapsed,device:e.device},on:{toggle:e.toggle}}),n("a-layout-content",{style:{height:"100%",margin:"24px 24px 0",paddingTop:e.fixedHeader?"64px":"0"}},[n("transition",{attrs:{name:"page-transition"}},[n("route-view")],1)],1),n("a-layout-footer",[n("global-footer")],1)],1)],1)}),m=[],h=(n("7415"),n("3556")),p=n("ca00"),b=n("591a"),g=n("ac0d"),v=n("e819"),y=n("d73b"),E={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=e("keep-alive",[e("router-view")]),a=e("router-view");return!1===t.keepAlive?a:this.keepAlive||t.keepAlive?n:a}},k=E,_=Object(l["a"])(k,a,o,!1,null,null,null),C=_.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-sider",{class:["sider",e.isDesktop()?null:"shadow",e.theme,e.fixSiderbar?"ant-fixed-sidemenu":null],attrs:{width:"256px",collapsible:e.collapsible,trigger:null},model:{value:e.collapsed,callback:function(t){e.collapsed=t},expression:"collapsed"}},[n("logo"),n("s-menu",{staticStyle:{padding:"16px 0px"},attrs:{collapsed:e.collapsed,menu:e.menus,theme:e.theme,mode:e.mode},on:{select:e.onSelect}})],1)},O=[],S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"logo"},[n("router-link",{attrs:{to:{name:"Dashboard"}}},[n("h1",{staticClass:"logo-title"},[e._v("Halo")]),n("h1",{staticClass:"logo-sub-title"},[e._v("Dashboard")])])],1)},x=[],w={name:"Logo"},L=w,j=(n("1953"),Object(l["a"])(L,S,x,!1,null,null,null)),H=j.exports,D=n("34c6"),M=n("23c4"),$=n.n(M),A=(n("3a23"),n("e0c1"),n("93fe"),n("612f"),n("709d")),I=n("9bed"),G=A["a"].Item,R=A["a"].SubMenu,P={name:"SMenu",props:{menu:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},mode:{type:String,required:!1,default:"inline"},collapsed:{type:Boolean,required:!1,default:!1}},data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menu.forEach(function(e){return t.push(e.path)}),t}},created:function(){this.updateMenu()},watch:{collapsed:function(e){e?(this.cachedOpenKeys=this.openKeys.concat(),this.openKeys=[]):this.openKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()}},methods:{onOpenChange:function(e){var t=this;if("horizontal"!==this.mode){var n=e.find(function(e){return!t.openKeys.includes(e)});this.rootSubmenuKeys.includes(n)?this.openKeys=n?[n]:[]:this.openKeys=e}else this.openKeys=e},updateMenu:function(){var e=this.$route.matched.concat();e.length>=4&&this.$route.meta.hidden?(e.pop(),this.selectedKeys=[e[2].path]):this.selectedKeys=[e.pop().path];var t=[];"inline"===this.mode&&e.forEach(function(e){t.push(e.path)}),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t},renderItem:function(e){return e.hidden?null:e.children&&!e.hideChildrenInMenu?this.renderSubMenu(e):this.renderMenuItem(e)},renderMenuItem:function(e){var t=this.$createElement,n=e.meta.target||null,a=n?"a":"router-link",o={to:{name:e.name}},r={href:e.path,target:e.meta.target};return t(G,$()([{},{key:e.path}]),[t(a,{props:Object(h["a"])({},o),attrs:Object(h["a"])({},r)},[this.renderIcon(e.meta.icon),t("span",[e.meta.title])])])},renderSubMenu:function(e){var t=this,n=this.$createElement,a=[];return e.hideChildrenInMenu||e.children.forEach(function(e){return a.push(t.renderItem(e))}),n(R,$()([{},{key:e.path}]),[n("span",{slot:"title"},[this.renderIcon(e.meta.icon),n("span",[e.meta.title])]),a])},renderIcon:function(e){var t=this.$createElement;if("none"===e||void 0===e)return null;var n={};return"object"===Object(D["a"])(e)?n.component=e:n.type=e,t(I["a"],{props:Object(h["a"])({},n)})}},render:function(){var e=this,t=arguments[0],n=this.mode,a=this.theme,o=this.menu,r={mode:n,theme:a,openKeys:this.openKeys},i={select:function(t){e.selectedKeys=t.selectedKeys,e.$emit("select",t)},openChange:this.onOpenChange},s=o.map(function(t){return t.hidden?null:e.renderItem(t)});return t(A["a"],{props:Object(h["a"])({},r),on:Object(h["a"])({},i),model:{value:e.selectedKeys,callback:function(t){e.selectedKeys=t}}},[s])}},F=P,B={name:"SideMenu",components:{Logo:H,SMenu:F},mixins:[g["a"],g["b"]],props:{mode:{type:String,required:!1,default:"inline"},theme:{type:String,required:!1,default:"dark"},collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menus:{type:Array,required:!0}},methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},N=B,U=Object(l["a"])(N,T,O,!1,null,null,null),K=U.exports,q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"showHeader"}},[e.visible?n("div",{staticClass:"header-animat"},[e.visible?n("a-layout-header",{class:[e.fixedHeader&&"ant-header-fixedHeader",e.sidebarOpened?"ant-header-side-opened":"ant-header-side-closed"],style:{padding:"0"}},["sidemenu"===e.mode?n("div",{staticClass:"header"},["mobile"===e.device?n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggle}}),n("user-menu")],1):n("div",{class:["top-nav-header-index",e.theme]},[n("div",{staticClass:"header-index-wide"},[n("div",{staticClass:"header-index-left"},["mobile"!==e.device?n("logo",{staticClass:"top-nav-header"}):e._e(),"mobile"!==e.device?n("s-menu",{attrs:{mode:"horizontal",menu:e.menus,theme:e.theme}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}})],1),n("user-menu",{staticClass:"header-index-right"})],1)])]):e._e()],1):e._e()])},Y=[],z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-wrapper"},[n("a",{attrs:{href:e.options.blog_url,target:"_blank"}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"link"}})],1)]),n("a",{attrs:{href:"javascript:void(0)"},on:{click:e.showOptionModal}},[n("span",{staticClass:"action"},[n("a-icon",{attrs:{type:"setting"}})],1)]),n("header-comment",{staticClass:"action"}),n("a-dropdown",[e.user?n("span",{staticClass:"action ant-dropdown-link user-dropdown-menu"},[n("a-avatar",{staticClass:"avatar",attrs:{size:"small",src:e.user.avatar||"https://gravatar.loli.net/avatar/?s=256&d=mm"}})],1):e._e(),n("a-menu",{staticClass:"user-dropdown-menu-wrapper",attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"0"},[n("router-link",{attrs:{to:{name:"Profile"}}},[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v("个人资料")])],1)],1),n("a-menu-divider"),n("a-menu-item",{key:"1"},[n("a",{attrs:{href:"javascript:;"},on:{click:e.handleLogout}},[n("a-icon",{attrs:{type:"logout"}}),n("span",[e._v("退出登录")])],1)])],1)],1),n("setting-drawer",{ref:"drawer"})],1)},W=[],X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-popover",{attrs:{trigger:"click",placement:"bottomRight",autoAdjustOverflow:!0,arrowPointAtCenter:!0,overlayStyle:{width:"300px",top:"50px"},title:"待审核评论"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("template",{slot:"content"},[n("a-spin",{attrs:{spinning:e.loadding}},[n("div",{staticClass:"custom-tab-wrapper"},[n("a-tabs",[n("a-tab-pane",{key:"1",attrs:{tab:"文章"}},[n("a-list",{attrs:{dataSource:e.converttedPostComments},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{},[n("a-list-item-meta",[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gravatar.loli.net/avatar/"+t.gavatarMd5+"&d=mm",size:"large"},slot:"avatar"}),n("template",{slot:"title"},[n("a",{attrs:{href:t.authorUrl,target:"_blank"}},[e._v(e._s(t.author))]),e._v(":"),n("span",{domProps:{innerHTML:e._s(t.content)}})]),n("template",{slot:"description"},[e._v("\n "+e._s(e._f("timeAgo")(t.createTime))+"\n ")])],2)],1)}}])})],1),n("a-tab-pane",{key:"2",attrs:{tab:"页面"}},[n("a-list",{attrs:{dataSource:e.converttedSheetComments},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{},[n("a-list-item-meta",[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gravatar.loli.net/avatar/"+t.gavatarMd5+"&d=mm",size:"large"},slot:"avatar"}),n("template",{slot:"title"},[n("a",{attrs:{href:t.authorUrl,target:"_blank"}},[e._v(e._s(t.author))]),e._v(":"),n("span",{domProps:{innerHTML:e._s(t.content)}})]),n("template",{slot:"description"},[e._v("\n "+e._s(e._f("timeAgo")(t.createTime))+"\n ")])],2)],1)}}])})],1)],1)],1)])],1),n("span",{staticClass:"header-comment",on:{click:e.fetchComment}},[e.postComments.length>0||e.sheetComments.length>0?n("a-badge",{attrs:{dot:""}},[n("a-icon",{attrs:{type:"bell"}})],1):n("a-badge",[n("a-icon",{attrs:{type:"bell"}})],1)],1)],2)},V=[],J=n("063c"),Z=n("ae4d"),Q=n.n(Z),ee={name:"HeaderComment",data:function(){return{loadding:!1,visible:!1,postComments:[],sheetComments:[]}},created:function(){this.getComment()},computed:{converttedPostComments:function(){return this.postComments.map(function(e){return e.content=Q()(e.content,{sanitize:!0}),e})},converttedSheetComments:function(){return this.sheetComments.map(function(e){return e.content=Q()(e.content,{sanitize:!0}),e})}},methods:{fetchComment:function(){this.visible?this.loadding=!1:(this.loadding=!0,this.getComment()),this.visible=!this.visible},getComment:function(){var e=this;J["a"].latestComment("posts",5,"AUDITING").then(function(t){e.postComments=t.data.data,e.loadding=!1}),J["a"].latestComment("sheets",5,"AUDITING").then(function(t){e.sheetComments=t.data.data,e.loadding=!1})}}},te=ee,ne=(n("bed6"),Object(l["a"])(te,X,V,!1,null,"08a1658b",null)),ae=ne.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"settingDrawer",staticClass:"setting-drawer"},[n("a-drawer",{attrs:{width:"300",closable:"",visible:e.visible,zIndex:9999},on:{close:e.onClose}},[n("div",{staticClass:"setting-drawer-index-content"},[n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("整体风格设置")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("a-tooltip",[n("template",{slot:"title"},[e._v("暗色菜单风格")]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleMenuTheme("dark")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg",alt:"dark"}}),"dark"===e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])],2),n("a-tooltip",[n("template",{slot:"title"},[e._v("亮色菜单风格")]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleMenuTheme("light")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg",alt:"light"}}),"dark"!==e.navTheme?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])],2)],1)]),n("a-divider"),n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("主题色")]),n("div",{staticStyle:{height:"20px"}},e._l(e.colorList,function(t,a){return n("a-tooltip",{key:a,staticClass:"setting-drawer-theme-color-colorBlock"},[n("template",{slot:"title"},[e._v(e._s(t.key))]),n("a-tag",{attrs:{color:t.color},on:{click:function(n){return e.changeColor(t.color)}}},[t.color===e.primaryColor?n("a-icon",{attrs:{type:"check"}}):e._e()],1)],2)}),1)]),n("a-divider"),n("div",{style:{marginBottom:"24px"}},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v("导航模式")]),n("div",{staticClass:"setting-drawer-index-blockChecbox"},[n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleLayout("sidemenu")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg",alt:"sidemenu"}}),"sidemenu"===e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()]),n("div",{staticClass:"setting-drawer-index-item",on:{click:function(t){return e.handleLayout("topmenu")}}},[n("img",{attrs:{src:"https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg",alt:"topmenu"}}),"sidemenu"!==e.layoutMode?n("div",{staticClass:"setting-drawer-index-selectIcon"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])]),n("a-divider")],1)])],1)},re=[],ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"setting-drawer-index-item"},[n("h3",{staticClass:"setting-drawer-index-title"},[e._v(e._s(e.title))]),e._t("default"),e.divider?n("a-divider"):e._e()],2)},se=[],ce={name:"SettingItem",props:{title:{type:String,default:""},divider:{type:Boolean,default:!1}}},ue=ce,le=(n("d25d"),Object(l["a"])(ue,ie,se,!1,null,"e773bc98",null)),de=le.exports,fe=n("1daf"),me=[{key:"红色",color:"#F5222D"},{key:"浅红色",color:"#FA541C"},{key:"日暮",color:"#FAAD14"},{key:"青色",color:"#13C2C2"},{key:"绿色",color:"#52C41A"},{key:"默认",color:"#1890FF"},{key:"蓝色",color:"#2F54EB"},{key:"紫色",color:"#722ED1"}],he=function(e){if(e){var t=fe["a"].loading("正在编译主题!",0);if(r)i();else{var n=document.createElement("link"),a=document.createElement("script"),o=document.createElement("script");n.setAttribute("rel","stylesheet/less"),n.setAttribute("href","/color.less"),a.innerHTML="\n window.less = {\n async: true,\n env: 'production',\n javascriptEnabled: true\n };\n ",o.src="https://cdnjs.loli.net/ajax/libs/less.js/3.8.1/less.min.js",o.async=!0,o.onload=function(){i(),o.onload=null},document.body.appendChild(n),document.body.appendChild(a),document.body.appendChild(o),r=!0}}function i(){window.less&&setTimeout(function(){window.less.modifyVars({"@primary-color":e}).then(function(){t()}).catch(function(){fe["a"].error("Failed to update theme"),t()})},200)}},pe={components:{SettingItem:de},mixins:[g["a"],g["b"]],data:function(){return{visible:!1,colorList:me,baseConfig:Object.assign({},v["a"])}},watch:{},mounted:function(){this.primaryColor!==v["a"].primaryColor&&he(this.primaryColor)},methods:{showDrawer:function(){this.visible=!0},onClose:function(){this.visible=!1},toggle:function(){this.visible=!this.visible},handleMenuTheme:function(e){this.baseConfig.navTheme=e,this.$store.dispatch("ToggleTheme",e)},handleLayout:function(e){this.baseConfig.layout=e,this.$store.dispatch("ToggleLayoutMode",e),this.handleFixSiderbar(!1)},handleContentWidthChange:function(e){this.baseConfig.contentWidth=e,this.$store.dispatch("ToggleContentWidth",e)},changeColor:function(e){this.baseConfig.primaryColor=e,this.primaryColor!==e&&(this.$store.dispatch("ToggleColor",e),he(e))},handleFixedHeader:function(e){this.baseConfig.fixedHeader=e,this.$store.dispatch("ToggleFixedHeader",e)},handleFixedHeaderHidden:function(e){this.baseConfig.autoHideHeader=e,this.$store.dispatch("ToggleFixedHeaderHidden",e)},handleFixSiderbar:function(e){if("topmenu"===this.layoutMode)return this.baseConfig.fixSiderbar=!1,void this.$store.dispatch("ToggleFixSiderbar",!1);this.baseConfig.fixSiderbar=e,this.$store.dispatch("ToggleFixSiderbar",e)}}},be=pe,ge=(n("ad48"),Object(l["a"])(be,oe,re,!1,null,"ef4d2b56",null)),ve=ge.exports,ye=n("482b"),Ee={name:"UserMenu",components:{HeaderComment:ae,SettingDrawer:ve},data:function(){return{optionVisible:!0,options:[],keys:["blog_url"]}},mounted:function(){this.optionVisible=this.$refs.drawer.visible},created:function(){this.loadOptions()},computed:Object(h["a"])({},Object(b["c"])(["user"])),methods:Object(h["a"])({},Object(b["b"])(["logout"]),{handleLogout:function(){var e=this;this.$confirm({title:"提示",content:"确定要注销登录吗 ?",onOk:function(){return e.logout({}).then(function(){window.location.reload()}).catch(function(t){e.$message.error({title:"错误",description:t.message})})},onCancel:function(){}})},showOptionModal:function(){this.optionVisible=this.$refs.drawer.visible,this.$refs.drawer.toggle()},loadOptions:function(){var e=this;ye["a"].listAll(this.keys).then(function(t){e.options=t.data.data})}})},ke=Ee,_e=(n("3517"),Object(l["a"])(ke,z,W,!1,null,"4f6a1ce4",null)),Ce=_e.exports,Te={name:"GlobalHeader",components:{UserMenu:Ce,SMenu:F,Logo:H},mixins:[g["a"]],props:{mode:{type:String,default:"sidemenu"},menus:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},collapsed:{type:Boolean,required:!1,default:!1},device:{type:String,required:!1,default:"desktop"}},data:function(){return{visible:!0,oldScrollTop:0}},mounted:function(){document.body.addEventListener("scroll",this.handleScroll,{passive:!0})},methods:{handleScroll:function(){var e=this;if(this.autoHideHeader){var t=document.body.scrollTop+document.documentElement.scrollTop;this.ticking||(this.ticking=!0,requestAnimationFrame(function(){e.oldScrollTop>t?e.visible=!0:t>300&&e.visible?e.visible=!1:t<300&&!e.visible&&(e.visible=!0),e.oldScrollTop=t,e.ticking=!1}))}},toggle:function(){this.$emit("toggle")}},beforeDestroy:function(){document.body.removeEventListener("scroll",this.handleScroll,!0)}},Oe=Te,Se=(n("05fe"),Object(l["a"])(Oe,q,Y,!1,null,null,null)),xe=Se.exports,we=xe,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("div",{staticClass:"copyright"},[e._v("\n Proudly power by\n "),n("router-link",{attrs:{to:{name:"About"}}},[n("a",{attrs:{href:"javascript:void(0);"}},[e._v("Halo")])])],1)])},je=[],He={name:"GlobalFooter",data:function(){return{}}},De=He,Me=(n("0645"),Object(l["a"])(De,Le,je,!1,null,"cd222e82",null)),$e=Me.exports,Ae=$e,Ie={name:"BasicLayout",mixins:[g["a"],g["b"]],components:{RouteView:C,SideMenu:K,GlobalHeader:we,GlobalFooter:Ae},data:function(){return{production:v["a"].production,collapsed:!1,menus:[]}},computed:Object(h["a"])({},Object(b["e"])({mainMenu:function(e){return e.permission.addRouters}}),{contentPaddingLeft:function(){return!this.fixSidebar||this.isMobile()?"0":this.sidebarOpened?"256px":"80px"}}),watch:{sidebarOpened:function(e){this.collapsed=!e}},created:function(){this.menus=y["a"].find(function(e){return"/"===e.path}).children,this.collapsed=!this.sidebarOpened},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:Object(h["a"])({},Object(b["b"])(["setSidebar"]),{toggle:function(){this.collapsed=!this.collapsed,this.setSidebar(!this.collapsed),Object(p["c"])()},paddingCalc:function(){var e="";return e=this.sidebarOpened?this.isDesktop()?"256px":"80px":(this.isMobile()?"0":this.fixSidebar&&"80px")||"0",e},menuSelect:function(){this.isDesktop()||(this.collapsed=!1)},drawerClose:function(){this.collapsed=!1}})},Ge=Ie,Re=(n("6692"),Object(l["a"])(Ge,f,m,!1,null,null,null)),Pe=Re.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.$route.meta.hiddenHeaderContent?null:"margin: -24px -24px 0px;"},[e.$route.meta.hiddenHeaderContent?e._e():n("page-header",{attrs:{title:e.pageTitle,logo:e.logo,avatar:e.avatar}},[e._t("action",null,{slot:"action"}),e._t("headerContent",null,{slot:"content"}),!this.$slots.headerContent&&e.description?n("div",{attrs:{slot:"content"},slot:"content"},[n("p",{staticStyle:{"font-size":"14px",color:"rgba(0,0,0,.65)"}},[e._v(e._s(e.description))]),n("div",{staticClass:"link"},[e._l(e.linkList,function(t,a){return[n("a",{key:a,attrs:{href:t.href}},[n("a-icon",{attrs:{type:t.icon}}),n("span",[e._v(e._s(t.title))])],1)]})],2)]):e._e()],2),n("div",{staticClass:"content"},[n("div",{staticClass:"page-header-index-wide"},[e._t("default",[n("router-view",{ref:"content"})])],2)])],1)},Be=[],Ne=(n("aaa4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("s-breadcrumb"),n("div",{staticClass:"detail"},[e.$route.meta.hiddenHeaderContent?e._e():n("div",{staticClass:"main"},[n("div",{staticClass:"row"},[e.logo?n("img",{staticClass:"logo",attrs:{src:e.logo}}):e._e(),n("div",{staticClass:"action"},[e._t("action")],2)]),n("div",{staticClass:"row"},[e.avatar?n("div",{staticClass:"avatar"},[n("a-avatar",{attrs:{src:e.avatar}})],1):e._e(),this.$slots.content?n("div",{staticClass:"headerContent"},[e._t("content")],2):e._e(),this.$slots.extra?n("div",{staticClass:"extra"},[e._t("extra")],2):e._e()]),n("div",[e._t("pageMenu")],2)])])],1)])}),Ue=[],Ke=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!=e.name&&1!=a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.title))]):n("span",[e._v(e._s(t.meta.title))])],1)}),1)},qe=[],Ye={data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,this.$route.matched.forEach(function(t){e.breadList.push(t)})}},watch:{$route:function(){this.getBreadcrumb()}}},ze=Ye,We=Object(l["a"])(ze,Ke,qe,!1,null,"86fe166e",null),Xe=We.exports,Ve={name:"PageHeader",components:{"s-breadcrumb":Xe},props:{title:{type:[String,Boolean],default:!0,required:!1},logo:{type:String,default:"",required:!1},avatar:{type:String,default:"",required:!1}},data:function(){return{}}},Je=Ve,Ze=(n("1d26"),Object(l["a"])(Je,Ne,Ue,!1,null,"4ebcc784",null)),Qe=Ze.exports,et=Qe,tt={name:"PageView",components:{PageHeader:et},props:{avatar:{type:String,default:null},title:{type:[String,Boolean],default:!0},logo:{type:String,default:null}},data:function(){return{pageTitle:null,description:null,linkList:[],extraImage:"",search:!1,tabs:{}}},mounted:function(){this.getPageMeta()},updated:function(){this.getPageMeta()},methods:{getPageMeta:function(){this.pageTitle="string"!==typeof this.title&&this.title?this.$route.meta.title:this.title;var e=this.$refs.content;e&&(e.pageMeta?Object.assign(this,e.pageMeta):(this.description=e.description,this.linkList=e.linkList,this.extraImage=e.extraImage,this.search=!0===e.search,this.tabs=e.tabs))}}},nt=tt,at=(n("2987"),Object(l["a"])(nt,Fe,Be,!1,null,"43152b59",null)),ot=at.exports;n.d(t,"a",function(){return Pe}),n.d(t,"b",function(){return ot})},"6e79":function(e,t,n){},"9e74":function(e,t,n){},"9e76":function(e,t,n){},"9efd":function(e,t,n){"use strict";n("4453"),n("612f"),n("4013");var a=n("a7ca"),o=n("7f43"),r=n.n(o),i=n("38bc"),s=n.n(i),c=(n("70e7"),n("6e6d")),u=n("38be"),l=n("1daf"),d=n("4360"),f=n("a18c"),m=n("ca00"),h=r.a.create({baseURL:"",timeout:5e3,withCredentials:!0});function p(e){var t=d["a"].getters.token;c["a"].$log.debug("Got token from store",t),t&&t.access_token&&(e.headers["Admin-Authorization"]=t.access_token)}function b(e){return g.apply(this,arguments)}function g(){return g=Object(a["a"])(regeneratorRuntime.mark(function e(t){var n,a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.response.config,p(n),e.next=4,r.a.request(n);case 4:return a=e.sent,e.abrupt("return",a);case 6:case"end":return e.stop()}},e)})),g.apply(this,arguments)}var v=null;function y(e){return E.apply(this,arguments)}function E(){return E=Object(a["a"])(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=d["a"].getters.token.refresh_token,e.prev=1,null===v&&(v=d["a"].dispatch("refreshToken",n)),e.next=5,v;case 5:e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](1),e.t0.response&&e.t0.response.data&&e.t0.response.data.data===n&&f["a"].push({name:"Login"}),c["a"].$log.error("Failed to refresh token",e.t0);case 11:return e.prev=11,v=null,e.finish(11);case 14:return e.abrupt("return",b(t));case 15:case"end":return e.stop()}},e,null,[[1,7,11,14]])})),E.apply(this,arguments)}function k(e){if(!Object(m["a"])(e)||!Object(m["a"])(e.data))return null;var t=e.data;return Object.keys(t).map(function(e){return t[e]})}h.interceptors.request.use(function(e){return s.a.start(),p(e),e},function(e){return s.a.remove(),Promise.reject(e)}),h.interceptors.response.use(function(e){return s.a.done(),e},function(e){if(s.a.done(),r.a.isCancel(e))return c["a"].$log.debug("Cancelled uploading by user."),Promise.reject(e);c["a"].$log.error("Response failed",e);var t=e.response,n=t?t.status:-1;c["a"].$log.error("Server response status",n);var a=t?t.data:null;if(a){var o=!1;if(c["a"].$log.error("Business response status",a.status),400===a.status){var i=k(a);i&&(o=!0,u["a"].error({message:a.message,description:function(e){var t=i.map(function(t){return e("a-alert",{props:{message:t,banner:!0,showIcon:!1,type:"error"}})});return e("div",t)},duration:10}))}else if(401===a.status)if(d["a"].getters.token&&d["a"].getters.token.access_token===a.data){var m=y(e);if(m!==e)return m}else f["a"].push({name:"Login"});else 403===a.status||404===a.status||a.status;o||l["a"].error(a.message)}else l["a"].error("服务异常");return Promise.reject(e)}),t["a"]=h},"9fb0":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"i",function(){return o}),n.d(t,"h",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"j",function(){return f});var a="Access-Token",o="SIDEBAR_TYPE",r="DEFAULT_THEME",i="DEFAULT_LAYOUT_MODE",s="DEFAULT_COLOR",c="DEFAULT_FIXED_HEADER",u="DEFAULT_FIXED_SIDEMENU",l="DEFAULT_FIXED_HEADER_HIDDEN",d="DEFAULT_CONTENT_WIDTH_TYPE",f="USER"},a18c:function(e,t,n){"use strict";var a=n("6e6d"),o=n("1e6f"),r=n("d73b");a["a"].use(o["a"]),t["a"]=new o["a"]({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:r["b"].concat(r["a"])})},ac0d:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var a=n("3556"),o=n("51e6"),r=n("591a"),i={computed:Object(a["a"])({},Object(r["e"])({layoutMode:function(e){return e.app.layout},navTheme:function(e){return e.app.theme},primaryColor:function(e){return e.app.color},fixedHeader:function(e){return e.app.fixedHeader},fixSiderbar:function(e){return e.app.fixSiderbar},fixSidebar:function(e){return e.app.fixSiderbar},contentWidth:function(e){return e.app.contentWidth},autoHideHeader:function(e){return e.app.autoHideHeader},sidebarOpened:function(e){return e.app.sidebar}})),methods:{isTopMenu:function(){return"topmenu"===this.layoutMode},isSideMenu:function(){return!this.isTopMenu()}}},s={computed:Object(a["a"])({},Object(r["e"])({device:function(e){return e.app.device}})),methods:{isMobile:function(){return this.device===o["a"].MOBILE},isDesktop:function(){return this.device===o["a"].DESKTOP},isTablet:function(){return this.device===o["a"].TABLET}}}},ad48:function(e,t,n){"use strict";var a=n("3bc0"),o=n.n(a);o.a},bc6c:function(e,t,n){},bed6:function(e,t,n){"use strict";var a=n("dd96"),o=n.n(a);o.a},c24f:function(e,t,n){"use strict";var a=n("9efd"),o="/api/admin/users",r={getProfile:function(){return Object(a["a"])({url:"".concat(o,"/profiles"),method:"get"})},updateProfile:function(e){return Object(a["a"])({url:"".concat(o,"/profiles"),method:"put",data:e})},updatePassword:function(e,t){return Object(a["a"])({url:"".concat(o,"/profiles/password"),method:"put",data:{oldPassword:e,newPassword:t}})}};t["a"]=r},c8df:function(e,t,n){},ca00:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var a=n("34c6"),o=n("6bf2"),r=n.n(o);n("35d0");function i(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}function s(e){var t=(new Date).getTime(),n=t-e,a=Math.floor(n/864e5);if(0===a){var o=n%864e5,i=Math.floor(o/36e5);if(0===i){var s=o%36e5,c=Math.floor(s/6e4);if(0===c){var u=s%6e4,l=Math.round(u/1e3);return l+" 秒前"}return c+" 分钟前"}return i+" 小时前"}return a<0?"刚刚":a<5?a+" 天前":r()(e).format("YYYY-MM-DD HH:mm")}function c(e){return e&&"object"===Object(a["a"])(e)&&e.constructor===Object}},d25d:function(e,t,n){"use strict";var a=n("f942"),o=n.n(a);o.a},d630:function(e,t,n){},d73b:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var a=n("680a"),o=[{path:"/",name:"index",component:a["a"],meta:{title:"首页"},redirect:"/dashboard",children:[{path:"/dashboard",name:"Dashboard",component:function(){return n.e("chunk-f1eac230").then(n.bind(null,"5c3a"))},meta:{title:"仪表盘",icon:"dashboard",hiddenHeaderContent:!1}},{path:"/posts",name:"Posts",redirect:"/posts/list",component:a["b"],meta:{title:"文章",icon:"form"},children:[{path:"/posts/list",name:"PostList",component:function(){return n.e("chunk-87e2df70").then(n.bind(null,"dae2"))},meta:{title:"所有文章",hiddenHeaderContent:!1}},{path:"/posts/write",name:"PostEdit",component:function(){return Promise.all([n.e("chunk-4851a43a"),n.e("chunk-35e63e70")]).then(n.bind(null,"db44"))},meta:{title:"写文章",hiddenHeaderContent:!1}},{path:"/categories",name:"CategoryList",component:function(){return n.e("chunk-0337f7a6").then(n.bind(null,"7e89"))},meta:{title:"分类目录",hiddenHeaderContent:!1}},{path:"/tags",name:"TagList",component:function(){return n.e("chunk-4b5e9e93").then(n.bind(null,"aa1e"))},meta:{title:"标签",hiddenHeaderContent:!1}}]},{path:"/sheets",name:"Sheets",component:a["b"],redirect:"/sheets/list",meta:{title:"页面",icon:"read"},children:[{path:"/sheets/list",name:"SheetList",component:function(){return n.e("chunk-142c8832").then(n.bind(null,"a8ed"))},meta:{title:"所有页面",hiddenHeaderContent:!1}},{path:"/sheets/write",name:"SheetEdit",component:function(){return Promise.all([n.e("chunk-4851a43a"),n.e("chunk-31c8ea42")]).then(n.bind(null,"f585"))},meta:{title:"新建页面",hiddenHeaderContent:!1}},{path:"/sheets/links",name:"LinkList",hidden:!0,component:function(){return n.e("chunk-2d21a35c").then(n.bind(null,"bb17"))},meta:{title:"友情链接",hiddenHeaderContent:!1}},{path:"/sheets/photos",name:"PhotoList",hidden:!0,component:function(){return n.e("chunk-6d8b31f6").then(n.bind(null,"6d0d"))},meta:{title:"图库",hiddenHeaderContent:!1}},{path:"/sheets/journals",name:"JournalList",hidden:!0,component:function(){return n.e("chunk-5bf599cc").then(n.bind(null,"81a6"))},meta:{title:"日志",hiddenHeaderContent:!1}}]},{path:"/attachments",name:"Attachments",component:function(){return n.e("chunk-2a007c18").then(n.bind(null,"61d0"))},meta:{title:"附件",icon:"picture",hiddenHeaderContent:!1}},{path:"/comments",name:"Comments",component:function(){return n.e("chunk-2d0b64bf").then(n.bind(null,"1d0f"))},meta:{title:"评论",icon:"message",hiddenHeaderContent:!1}},{path:"/interface",name:"Interface",component:a["b"],redirect:"/interface/themes",meta:{title:"外观",icon:"skin"},children:[{path:"/interface/themes",name:"ThemeList",component:function(){return n.e("chunk-55d28d8a").then(n.bind(null,"79e7"))},meta:{title:"主题",hiddenHeaderContent:!1}},{path:"/interface/menus",name:"MenuList",component:function(){return n.e("chunk-2d0d65a2").then(n.bind(null,"71d6"))},meta:{title:"菜单",hiddenHeaderContent:!1}},{path:"/interface/themes/edit",name:"ThemeEdit",component:function(){return n.e("chunk-5b9151a2").then(n.bind(null,"33c9"))},meta:{title:"主题编辑",hiddenHeaderContent:!1}}]},{path:"/user",name:"User",component:a["b"],redirect:"/user/profile",meta:{title:"用户",icon:"user"},children:[{path:"/user/profile",name:"Profile",component:function(){return n.e("chunk-4e835ab8").then(n.bind(null,"7c54"))},meta:{title:"个人资料",hiddenHeaderContent:!1}}]},{path:"/system",name:"System",component:a["b"],redirect:"/system/options",meta:{title:"系统",icon:"setting"},children:[{path:"/system/options",name:"OptionForm",component:function(){return n.e("chunk-bb4f0d4a").then(n.bind(null,"26ea"))},meta:{title:"博客设置",hiddenHeaderContent:!1}},{path:"/system/tools",name:"ToolList",component:function(){return n.e("chunk-2d228d13").then(n.bind(null,"db98"))},meta:{title:"小工具",hiddenHeaderContent:!1}},{path:"/system/about",name:"About",component:function(){return n.e("chunk-1be69b35").then(n.bind(null,"2967"))},hidden:!0,meta:{title:"关于 Halo",hiddenHeaderContent:!1}}]}]},{path:"*",redirect:"/404",hidden:!0}],r=[{path:"/login",name:"Login",meta:{title:"登录"},component:function(){return n.e("chunk-9449c032").then(n.bind(null,"ac2a5"))}},{path:"/install",name:"Install",meta:{title:"安装向导"},component:function(){return n.e("chunk-14e0b302").then(n.bind(null,"306f"))}},{path:"/404",name:"NotFound",component:function(){return n.e("fail").then(n.bind(null,"cc89"))}}]},dd96:function(e,t,n){},e819:function(e,t,n){"use strict";t["a"]={primaryColor:"#1890FF",navTheme:"dark",layout:"topmenu",contentWidth:"Fixed",fixedHeader:!1,fixSiderbar:!1,autoHideHeader:!1,storageOptions:{namespace:"halo__",name:"ls",storage:"local"}}},f607:function(e,t,n){},f942:function(e,t,n){}}); \ No newline at end of file diff --git a/src/main/resources/admin/js/chunk-3a043b93.eb808250.js b/src/main/resources/admin/js/chunk-0337f7a6.53ede862.js similarity index 57% rename from src/main/resources/admin/js/chunk-3a043b93.eb808250.js rename to src/main/resources/admin/js/chunk-0337f7a6.53ede862.js index db20177573..2f8c964d13 100644 --- a/src/main/resources/admin/js/chunk-3a043b93.eb808250.js +++ b/src/main/resources/admin/js/chunk-0337f7a6.53ede862.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a043b93"],{"63c1":function(e,t,a){},"7e89":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-header-index-wide"},[a("a-row",{attrs:{gutter:12}},[a("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[a("a-card",{attrs:{title:e.title}},[a("a-form",{attrs:{layout:"horizontal"}},[a("a-form-item",{attrs:{label:"名称:",help:"* 页面上所显示的名称"}},[a("a-input",{model:{value:e.categoryToCreate.name,callback:function(t){e.$set(e.categoryToCreate,"name",t)},expression:"categoryToCreate.name"}})],1),a("a-form-item",{attrs:{label:"别名:",help:"* 一般为单个分类页面的标识,最好为英文"}},[a("a-input",{model:{value:e.categoryToCreate.slugName,callback:function(t){e.$set(e.categoryToCreate,"slugName",t)},expression:"categoryToCreate.slugName"}})],1),a("a-form-item",{attrs:{label:"上级目录:"}},[a("category-select-tree",{attrs:{categories:e.categories},model:{value:e.categoryToCreate.parentId,callback:function(t){e.$set(e.categoryToCreate,"parentId",t)},expression:"categoryToCreate.parentId"}})],1),a("a-form-item",{attrs:{label:"描述:",help:"* 分类描述,部分主题可显示"}},[a("a-input",{attrs:{type:"textarea",autosize:{minRows:3}},model:{value:e.categoryToCreate.description,callback:function(t){e.$set(e.categoryToCreate,"description",t)},expression:"categoryToCreate.description"}})],1),a("a-form-item",["create"===e.formType?a("a-button",{attrs:{type:"primary"},on:{click:e.handleSaveClick}},[e._v("保存")]):a("a-button-group",[a("a-button",{attrs:{type:"primary"},on:{click:e.handleSaveClick}},[e._v("更新")]),"update"===e.formType?a("a-button",{attrs:{type:"dashed"},on:{click:e.handleAddCategory}},[e._v("返回添加")]):e._e()],1)],1)],1)],1)],1),a("a-col",{style:{"padding-bottom":"1rem"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[a("a-card",{attrs:{title:"分类列表"}},[a("a-table",{attrs:{columns:e.columns,dataSource:e.categories,rowKey:function(e){return e.id},loading:e.loading},scopedSlots:e._u([{key:"name",fn:function(t){return a("ellipsis",{attrs:{length:30,tooltip:""}},[e._v("\n "+e._s(t)+"\n ")])}},{key:"action",fn:function(t,r){return a("span",{},[a("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleEditCategory(r)}}},[e._v("编辑")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"你确定要删除【"+r.name+"】分类?",okText:"确定",cancelText:"取消"},on:{confirm:function(t){return e.handleDeleteCategory(r.id)}}},[a("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])],1)}}])})],1)],1)],1)],1)},o=[],n=a("fa25"),c=a("c405"),i=[{title:"名称",dataIndex:"name"},{title:"别名",dataIndex:"slugName"},{title:"描述",dataIndex:"description"},{title:"文章数",dataIndex:"postCount"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],l={components:{CategorySelectTree:n["a"]},data:function(){return{formType:"create",categories:[],categoryToCreate:{},loading:!1,columns:i}},computed:{title:function(){return this.categoryToCreate.id?"修改分类":"添加分类"}},created:function(){this.loadCategories()},methods:{loadCategories:function(){var e=this;this.loading=!0,c["a"].listAll(!0).then(function(t){e.categories=t.data.data,e.loading=!1})},handleSaveClick:function(){this.createOrUpdateCategory()},handleAddCategory:function(){this.formType="create",this.categoryToCreate={}},handleEditCategory:function(e){this.categoryToCreate=e,this.formType="update"},handleDeleteCategory:function(e){var t=this;c["a"].delete(e).then(function(e){t.$message.success("删除成功!"),t.loadCategories()})},createOrUpdateCategory:function(){var e=this;this.categoryToCreate.id?c["a"].update(this.categoryToCreate.id,this.categoryToCreate).then(function(t){e.$message.success("更新成功!"),e.loadCategories(),e.categoryToCreate={}}):c["a"].create(this.categoryToCreate).then(function(t){e.$message.success("保存成功!"),e.loadCategories(),e.categoryToCreate={}}),this.handleAddCategory()}}},s=l,d=(a("9685"),a("17cc")),u=Object(d["a"])(s,r,o,!1,null,"9228b20c",null);t["default"]=u.exports},9685:function(e,t,a){"use strict";var r=a("63c1"),o=a.n(r);o.a},c405:function(e,t,a){"use strict";a("3a23"),a("612f");var r=a("9efd"),o="/api/admin/categories",n={};function c(e,t){t.forEach(function(t){e.key===t.parentId&&(e.children||(e.children=[]),e.children.push({key:t.id,title:t.name,isLeaf:!1}))}),e.children?e.children.forEach(function(e){return c(e,t)}):e.isLeaf=!0}n.listAll=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(r["a"])({url:"".concat(o),params:{more:e},method:"get"})},n.listTree=function(){return Object(r["a"])({url:"".concat(o,"/tree_view"),method:"get"})},n.create=function(e){return Object(r["a"])({url:o,data:e,method:"post"})},n.delete=function(e){return Object(r["a"])({url:"".concat(o,"/").concat(e),method:"delete"})},n.get=function(e){return Object(r["a"])({url:"".concat(o,"/").concat(e),method:"get"})},n.update=function(e,t){return Object(r["a"])({url:"".concat(o,"/").concat(e),data:t,method:"put"})},n.concreteTree=function(e){var t={key:0,title:"top",children:[]};return c(t,e),t.children},t["a"]=n},fa25:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-tree-select",{attrs:{treeData:e.categoryTreeData,placeholder:"请选择上级目录,默认为顶级目录",treeDefaultExpandAll:"",treeDataSimpleMode:!0,allowClear:!0,value:e.categoryIdString},on:{change:e.handleSelectionChange}})},o=[],n=(a("48fb"),a("3a23"),a("b06f"),{name:"CategorySelectTree",model:{prop:"categoryId",event:"change"},props:{categoryId:{type:Number,required:!0,default:0},categories:{type:Array,required:!1,default:function(){return[]}}},computed:{categoryTreeData:function(){return this.categories.map(function(e){return{id:e.id,title:e.name,value:e.id.toString(),pId:e.parentId}})},categoryIdString:function(){return this.categoryId.toString()}},methods:{handleSelectionChange:function(e,t,a){this.$log.debug("value: ",e),this.$log.debug("label: ",t),this.$log.debug("extra: ",a),this.$emit("change",e?parseInt(e):0)}}}),c=n,i=a("17cc"),l=Object(i["a"])(c,r,o,!1,null,null,null);t["a"]=l.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0337f7a6"],{"61dd":function(e,t,a){},"7e89":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-header-index-wide"},[a("a-row",{attrs:{gutter:12}},[a("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[a("a-card",{attrs:{title:e.title}},[a("a-form",{attrs:{layout:"horizontal"}},[a("a-form-item",{attrs:{label:"名称:",help:"* 页面上所显示的名称"}},[a("a-input",{model:{value:e.categoryToCreate.name,callback:function(t){e.$set(e.categoryToCreate,"name",t)},expression:"categoryToCreate.name"}})],1),a("a-form-item",{attrs:{label:"别名:",help:"* 一般为单个分类页面的标识,最好为英文"}},[a("a-input",{model:{value:e.categoryToCreate.slugName,callback:function(t){e.$set(e.categoryToCreate,"slugName",t)},expression:"categoryToCreate.slugName"}})],1),a("a-form-item",{attrs:{label:"上级目录:"}},[a("category-select-tree",{attrs:{categories:e.categories},model:{value:e.categoryToCreate.parentId,callback:function(t){e.$set(e.categoryToCreate,"parentId",t)},expression:"categoryToCreate.parentId"}})],1),a("a-form-item",{attrs:{label:"描述:",help:"* 分类描述,部分主题可显示"}},[a("a-input",{attrs:{type:"textarea",autosize:{minRows:3}},model:{value:e.categoryToCreate.description,callback:function(t){e.$set(e.categoryToCreate,"description",t)},expression:"categoryToCreate.description"}})],1),a("a-form-item",["create"===e.formType?a("a-button",{attrs:{type:"primary"},on:{click:e.handleSaveClick}},[e._v("保存")]):a("a-button-group",[a("a-button",{attrs:{type:"primary"},on:{click:e.handleSaveClick}},[e._v("更新")]),"update"===e.formType?a("a-button",{attrs:{type:"dashed"},on:{click:e.handleAddCategory}},[e._v("返回添加")]):e._e()],1)],1)],1)],1)],1),a("a-col",{style:{"padding-bottom":"1rem"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[a("a-card",{attrs:{title:"分类列表"}},[a("a-table",{attrs:{columns:e.columns,dataSource:e.categories,rowKey:function(e){return e.id},loading:e.loading},scopedSlots:e._u([{key:"name",fn:function(t){return a("ellipsis",{attrs:{length:30,tooltip:""}},[e._v("\n "+e._s(t)+"\n ")])}},{key:"action",fn:function(t,r){return a("span",{},[a("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.handleEditCategory(r)}}},[e._v("编辑")]),a("a-divider",{attrs:{type:"vertical"}}),a("a-popconfirm",{attrs:{title:"你确定要删除【"+r.name+"】分类?",okText:"确定",cancelText:"取消"},on:{confirm:function(t){return e.handleDeleteCategory(r.id)}}},[a("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])],1)}}])})],1)],1)],1)],1)},o=[],n=a("fa25"),c=a("c405"),i=[{title:"名称",dataIndex:"name"},{title:"别名",dataIndex:"slugName"},{title:"描述",dataIndex:"description"},{title:"文章数",dataIndex:"postCount"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],l={components:{CategorySelectTree:n["a"]},data:function(){return{formType:"create",categories:[],categoryToCreate:{},loading:!1,columns:i}},computed:{title:function(){return this.categoryToCreate.id?"修改分类":"添加分类"}},created:function(){this.loadCategories()},methods:{loadCategories:function(){var e=this;this.loading=!0,c["a"].listAll(!0).then(function(t){e.categories=t.data.data,e.loading=!1})},handleSaveClick:function(){this.createOrUpdateCategory()},handleAddCategory:function(){this.formType="create",this.categoryToCreate={}},handleEditCategory:function(e){this.categoryToCreate=e,this.formType="update"},handleDeleteCategory:function(e){var t=this;c["a"].delete(e).then(function(e){t.$message.success("删除成功!"),t.loadCategories(),t.handleAddCategory()})},createOrUpdateCategory:function(){var e=this;this.categoryToCreate.id?c["a"].update(this.categoryToCreate.id,this.categoryToCreate).then(function(t){e.$message.success("更新成功!"),e.loadCategories(),e.categoryToCreate={}}):c["a"].create(this.categoryToCreate).then(function(t){e.$message.success("保存成功!"),e.loadCategories(),e.categoryToCreate={}}),this.handleAddCategory()}}},s=l,d=(a("9110"),a("17cc")),u=Object(d["a"])(s,r,o,!1,null,"0f333a36",null);t["default"]=u.exports},9110:function(e,t,a){"use strict";var r=a("61dd"),o=a.n(r);o.a},c405:function(e,t,a){"use strict";a("3a23"),a("612f");var r=a("9efd"),o="/api/admin/categories",n={};function c(e,t){t.forEach(function(t){e.key===t.parentId&&(e.children||(e.children=[]),e.children.push({key:t.id,title:t.name,isLeaf:!1}))}),e.children?e.children.forEach(function(e){return c(e,t)}):e.isLeaf=!0}n.listAll=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(r["a"])({url:"".concat(o),params:{more:e},method:"get"})},n.listTree=function(){return Object(r["a"])({url:"".concat(o,"/tree_view"),method:"get"})},n.create=function(e){return Object(r["a"])({url:o,data:e,method:"post"})},n.delete=function(e){return Object(r["a"])({url:"".concat(o,"/").concat(e),method:"delete"})},n.get=function(e){return Object(r["a"])({url:"".concat(o,"/").concat(e),method:"get"})},n.update=function(e,t){return Object(r["a"])({url:"".concat(o,"/").concat(e),data:t,method:"put"})},n.concreteTree=function(e){var t={key:0,title:"top",children:[]};return c(t,e),t.children},t["a"]=n},fa25:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-tree-select",{attrs:{treeData:e.categoryTreeData,placeholder:"请选择上级目录,默认为顶级目录",treeDefaultExpandAll:"",treeDataSimpleMode:!0,allowClear:!0,value:e.categoryIdString},on:{change:e.handleSelectionChange}})},o=[],n=(a("48fb"),a("3a23"),a("b06f"),{name:"CategorySelectTree",model:{prop:"categoryId",event:"change"},props:{categoryId:{type:Number,required:!0,default:0},categories:{type:Array,required:!1,default:function(){return[]}}},computed:{categoryTreeData:function(){return this.categories.map(function(e){return{id:e.id,title:e.name,value:e.id.toString(),pId:e.parentId}})},categoryIdString:function(){return this.categoryId.toString()}},methods:{handleSelectionChange:function(e,t,a){this.$log.debug("value: ",e),this.$log.debug("label: ",t),this.$log.debug("extra: ",a),this.$emit("change",e?parseInt(e):0)}}}),c=n,i=a("17cc"),l=Object(i["a"])(c,r,o,!1,null,null,null);t["a"]=l.exports}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/chunk-14e0b302.8cbbed1c.js b/src/main/resources/admin/js/chunk-14e0b302.8cbbed1c.js new file mode 100644 index 0000000000..71f66bbc55 --- /dev/null +++ b/src/main/resources/admin/js/chunk-14e0b302.8cbbed1c.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14e0b302"],{"306f":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("a-row",{staticClass:"height-100",attrs:{type:"flex",justify:"center",align:"middle"}},[e("a-col",{attrs:{xl:8,md:12,sm:20,xs:24}},[e("div",{staticClass:"card-container"},[e("a-card",{staticClass:"install-card",attrs:{bordered:!1,title:"Halo 安装向导"}},[e("a-steps",{attrs:{current:t.stepCurrent}},[e("a-step",{attrs:{title:"博主信息"}}),e("a-step",{attrs:{title:"博客信息"}}),e("a-step",{attrs:{title:"数据迁移"}})],1),e("a-divider",{attrs:{dashed:""}}),e("a-form",{directives:[{name:"show",rawName:"v-show",value:0==t.stepCurrent,expression:"stepCurrent == 0"}],attrs:{layout:"horizontal",form:t.bloggerForm}},[e("a-form-item",{staticClass:"animated fadeInUp"},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["username",{rules:[{required:!0,message:"请输入用户名"}]}],expression:"[\n 'username',\n {rules: [{ required: true, message: '请输入用户名' }]}\n ]"}],attrs:{placeholder:"用户名"},model:{value:t.installation.username,callback:function(a){t.$set(t.installation,"username",a)},expression:"installation.username"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),e("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[e("a-input",{attrs:{placeholder:"用户昵称"},model:{value:t.installation.nickname,callback:function(a){t.$set(t.installation,"nickname",a)},expression:"installation.nickname"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"smile"},slot:"prefix"})],1)],1),e("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{rules:[{required:!0,message:"请输入邮箱"}]}],expression:"[\n 'email',\n {rules: [{ required: true, message: '请输入邮箱' }]}\n ]"}],attrs:{placeholder:"用户邮箱"},model:{value:t.installation.email,callback:function(a){t.$set(t.installation,"email",a)},expression:"installation.email"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),e("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["password",{rules:[{required:!0,message:"请输入密码(8-100位)"}]}],expression:"[\n 'password',\n {rules: [{ required: true, message: '请输入密码(8-100位)' }]}\n ]"}],attrs:{type:"password",placeholder:"用户密码"},model:{value:t.installation.password,callback:function(a){t.$set(t.installation,"password",a)},expression:"installation.password"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),e("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.4s"}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["confirmPassword",{rules:[{required:!0,message:"请确定密码"}]}],expression:"[\n 'confirmPassword',\n {rules: [{ required: true, message: '请确定密码' }]}\n ]"}],attrs:{type:"password",placeholder:"确定密码"},model:{value:t.installation.confirmPassword,callback:function(a){t.$set(t.installation,"confirmPassword",a)},expression:"installation.confirmPassword"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1)],1),e("a-form",{directives:[{name:"show",rawName:"v-show",value:1==t.stepCurrent,expression:"stepCurrent == 1"}],attrs:{layout:"horizontal"}},[e("a-form-item",{staticClass:"animated fadeInUp"},[e("a-input",{attrs:{placeholder:"博客地址"},model:{value:t.installation.url,callback:function(a){t.$set(t.installation,"url",a)},expression:"installation.url"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"link"},slot:"prefix"})],1)],1),e("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[e("a-input",{attrs:{placeholder:"博客标题"},model:{value:t.installation.title,callback:function(a){t.$set(t.installation,"title",a)},expression:"installation.title"}},[e("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"book"},slot:"prefix"})],1)],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:2==t.stepCurrent,expression:"stepCurrent == 2"}]},[e("a-alert",{staticClass:"animated fadeInUp",staticStyle:{"margin-bottom":"1rem"},attrs:{message:"如果有迁移需求,请点击并选择'迁移文件'",type:"info"}}),e("Upload",{staticClass:"animated fadeIn",style:{"animation-delay":"0.2s"},attrs:{name:t.migrationUploadName,accept:"application/json",uploadHandler:t.handleMigrationUpload},on:{remove:t.handleMigrationFileRemove}},[e("p",{staticClass:"ant-upload-drag-icon"},[e("a-icon",{attrs:{type:"inbox"}})],1),e("p",{staticClass:"ant-upload-text"},[t._v("点击选择文件或将文件拖拽到此处")]),e("p",{staticClass:"ant-upload-hint"},[t._v("仅支持单个文件上传")])])],1),e("a-row",{staticClass:"install-action",attrs:{type:"flex",justify:"space-between"}},[e("div",[0!=t.stepCurrent?e("a-button",{staticClass:"previus-button",on:{click:function(a){t.stepCurrent--}}},[t._v("上一步")]):t._e(),2!=t.stepCurrent?e("a-button",{attrs:{type:"primary"},on:{click:t.handleNextStep}},[t._v("下一步")]):t._e()],1),2==t.stepCurrent?e("a-button",{attrs:{type:"danger",icon:"upload"},on:{click:t.handleInstall}},[t._v("安装")]):t._e()],1)],1)],1)])],1)],1)},i=[],n=(e("612f"),e("50fc")),l=e("482b"),r=e("9efd"),o="/api/admin/recoveries",c={migrate:function(t){return Object(r["a"])({url:"".concat(o,"/migrations/v0_4_3"),data:t,method:"post"})}},d=c,u={data:function(){return{formItemLayout:{labelCol:{xs:{span:24},sm:{span:5},lg:{span:4},xl:{span:4},xxl:{span:3}},wrapperCol:{xs:{span:24},sm:{span:19},lg:{span:20},xl:{span:20},xxl:{span:21}}},installation:{},migrationUploadName:"file",migrationData:null,stepCurrent:0,bloggerForm:this.$form.createForm(this),keys:["is_installed"]}},created:function(){this.verifyIsInstall(),this.installation.url=window.location.protocol+"//"+window.location.host},methods:{verifyIsInstall:function(){var t=this;l["a"].listAll(this.keys).then(function(a){a.data.data.is_installed&&t.$router.push({name:"Login"})})},handleNextStep:function(t){var a=this;t.preventDefault(),this.bloggerForm.validateFields(function(t,e){console.log("error",t),console.log("Received values of form: ",e),null!=t||a.stepCurrent++})},handleMigrationUpload:function(t){var a=this;return this.$log.debug("Selected data",t),this.migrationData=t,new Promise(function(t,e){a.$log.debug("Handle uploading"),t()})},handleMigrationFileRemove:function(t){this.$log.debug("Removed file",t),this.$log.debug("Migration file from data",this.migrationData.get(this.migrationUploadName)),this.migrationData.get(this.migrationUploadName).uid===t.uid&&(this.migrationData=null,this.migrationFile=null)},install:function(){var t=this;n["a"].install(this.installation).then(function(a){t.$log.debug("Installation response",a),t.$message.success("安装成功!"),setTimeout(function(){t.$router.push({name:"Dashboard"})},300)})},handleInstall:function(){var t=this,a=this.installation.password,e=this.installation.confirmPassword;this.$log.debug("Password",a),this.$log.debug("Confirm password",e),a===e?this.migrationData?d.migrate(this.migrationData).then(function(a){t.$log.debug("Migrated successfullly"),t.$message.success("数据迁移成功!"),t.install()}):this.install():this.$message.error("确认密码和密码不匹配")}}},p=u,m=(e("5076"),e("17cc")),f=Object(m["a"])(p,s,i,!1,null,"1ac0b863",null);a["default"]=f.exports},5076:function(t,a,e){"use strict";var s=e("8852"),i=e.n(s);i.a},8852:function(t,a,e){}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/chunk-2827d63c.0da79671.js b/src/main/resources/admin/js/chunk-2827d63c.0da79671.js deleted file mode 100644 index fb6812a8a5..0000000000 --- a/src/main/resources/admin/js/chunk-2827d63c.0da79671.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2827d63c"],{"306f":function(t,a,s){"use strict";s.r(a);var i=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",[s("a-row",{staticClass:"height-100",attrs:{type:"flex",justify:"center",align:"middle"}},[s("a-col",{attrs:{xl:8,md:12,sm:20,xs:24}},[s("div",{staticClass:"card-container"},[s("a-card",{staticClass:"install-card",attrs:{bordered:!1,title:"Halo 安装向导"}},[s("a-steps",{attrs:{current:t.stepCurrent}},[s("a-step",{attrs:{title:"博主信息"}}),s("a-step",{attrs:{title:"博客信息"}}),s("a-step",{attrs:{title:"数据迁移"}})],1),s("a-divider",{attrs:{dashed:""}}),s("a-form",{directives:[{name:"show",rawName:"v-show",value:0==t.stepCurrent,expression:"stepCurrent == 0"}],attrs:{layout:"horizontal"}},[s("a-form-item",{staticClass:"animated fadeInUp"},[s("a-input",{attrs:{placeholder:"用户名"},model:{value:t.installation.username,callback:function(a){t.$set(t.installation,"username",a)},expression:"installation.username"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),s("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[s("a-input",{attrs:{placeholder:"用户昵称"},model:{value:t.installation.nickname,callback:function(a){t.$set(t.installation,"nickname",a)},expression:"installation.nickname"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"smile"},slot:"prefix"})],1)],1),s("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[s("a-input",{attrs:{placeholder:"用户邮箱"},model:{value:t.installation.email,callback:function(a){t.$set(t.installation,"email",a)},expression:"installation.email"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),s("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"}},[s("a-input",{attrs:{type:"password",placeholder:"用户密码"},model:{value:t.installation.password,callback:function(a){t.$set(t.installation,"password",a)},expression:"installation.password"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),s("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.4s"}},[s("a-input",{attrs:{type:"password",placeholder:"确定密码"},model:{value:t.installation.confirmPassword,callback:function(a){t.$set(t.installation,"confirmPassword",a)},expression:"installation.confirmPassword"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1)],1),s("a-form",{directives:[{name:"show",rawName:"v-show",value:1==t.stepCurrent,expression:"stepCurrent == 1"}],attrs:{layout:"horizontal"}},[s("a-form-item",{staticClass:"animated fadeInUp"},[s("a-input",{attrs:{placeholder:"博客地址"},model:{value:t.installation.url,callback:function(a){t.$set(t.installation,"url",a)},expression:"installation.url"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"link"},slot:"prefix"})],1)],1),s("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[s("a-input",{attrs:{placeholder:"博客标题"},model:{value:t.installation.title,callback:function(a){t.$set(t.installation,"title",a)},expression:"installation.title"}},[s("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"book"},slot:"prefix"})],1)],1)],1),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.stepCurrent,expression:"stepCurrent == 2"}]},[s("a-alert",{staticClass:"animated fadeInUp",staticStyle:{"margin-bottom":"1rem"},attrs:{message:"如果有迁移需求,请点击并选择'迁移文件'",type:"info"}}),s("Upload",{staticClass:"animated fadeIn",style:{"animation-delay":"0.2s"},attrs:{name:t.migrationUploadName,accept:"application/json",uploadHandler:t.handleMigrationUpload},on:{remove:t.handleMigrationFileRemove}},[s("p",{staticClass:"ant-upload-drag-icon"},[s("a-icon",{attrs:{type:"inbox"}})],1),s("p",{staticClass:"ant-upload-text"},[t._v("点击选择文件或将文件拖拽到此处")]),s("p",{staticClass:"ant-upload-hint"},[t._v("仅支持单个文件上传")])])],1),s("a-row",{staticClass:"install-action",attrs:{type:"flex",justify:"space-between"}},[s("div",[0!=t.stepCurrent?s("a-button",{staticClass:"previus-button",on:{click:function(a){t.stepCurrent--}}},[t._v("上一步")]):t._e(),2!=t.stepCurrent?s("a-button",{attrs:{type:"primary"},on:{click:function(a){t.stepCurrent++}}},[t._v("下一步")]):t._e()],1),2==t.stepCurrent?s("a-button",{attrs:{type:"danger",icon:"upload"},on:{click:t.handleInstall}},[t._v("安装")]):t._e()],1)],1)],1)])],1)],1)},e=[],n=s("50fc"),l=s("9efd"),o="/api/admin/recoveries",r={migrate:function(t){return Object(l["a"])({url:"".concat(o,"/migrations/v0_4_3"),data:t,method:"post"})}},c=r,p={data:function(){return{formItemLayout:{labelCol:{xs:{span:24},sm:{span:5},lg:{span:4},xl:{span:4},xxl:{span:3}},wrapperCol:{xs:{span:24},sm:{span:19},lg:{span:20},xl:{span:20},xxl:{span:21}}},installation:{},migrationUploadName:"file",migrationData:null,stepCurrent:0}},created:function(){this.installation.url=window.location.protocol+"//"+window.location.host},methods:{handleMigrationUpload:function(t){var a=this;return this.$log.debug("Selected data",t),this.migrationData=t,new Promise(function(t,s){a.$log.debug("Handle uploading"),t()})},handleMigrationFileRemove:function(t){this.$log.debug("Removed file",t),this.$log.debug("Migration file from data",this.migrationData.get(this.migrationUploadName)),this.migrationData.get(this.migrationUploadName).uid===t.uid&&(this.migrationData=null,this.migrationFile=null)},install:function(){var t=this;n["a"].install(this.installation).then(function(a){t.$log.debug("Installation response",a),t.$message.success("安装成功!"),setTimeout(function(){t.$router.push({name:"Dashboard"})},300)})},handleInstall:function(){var t=this,a=this.installation.password,s=this.installation.confirmPassword;this.$log.debug("Password",a),this.$log.debug("Confirm password",s),a===s?this.migrationData?c.migrate(this.migrationData).then(function(a){t.$log.debug("Migrated successfullly"),t.$message.success("数据迁移成功!"),t.install()}):this.install():this.$message.error("确认密码和密码不匹配")}}},d=p,u=(s("8a46"),s("17cc")),m=Object(u["a"])(d,i,e,!1,null,"5bb443aa",null);a["default"]=m.exports},"8a46":function(t,a,s){"use strict";var i=s("d890"),e=s.n(i);e.a},d890:function(t,a,s){}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/chunk-4b5e9e93.565d1851.js b/src/main/resources/admin/js/chunk-4b5e9e93.565d1851.js deleted file mode 100644 index 1b94faf3dd..0000000000 --- a/src/main/resources/admin/js/chunk-4b5e9e93.565d1851.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b5e9e93"],{aa1e:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-header-index-wide"},[e("a-row",{attrs:{gutter:12}},[e("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[e("a-card",{attrs:{title:"添加标签"}},[e("a-form",{attrs:{layout:"horizontal"}},[e("a-form-item",{attrs:{label:"名称:",help:"* 页面上所显示的名称"}},[e("a-input",{model:{value:t.tagToCreate.name,callback:function(a){t.$set(t.tagToCreate,"name",a)},expression:"tagToCreate.name"}})],1),e("a-form-item",{attrs:{label:"别名",help:"* 一般为单个标签页面的标识,最好为英文"}},[e("a-input",{model:{value:t.tagToCreate.slugName,callback:function(a){t.$set(t.tagToCreate,"slugName",a)},expression:"tagToCreate.slugName"}})],1),e("a-form-item",[e("a-button",{attrs:{type:"primary"},on:{click:t.handleCreateTag}},[t._v("保存")])],1)],1)],1)],1),e("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[e("a-card",{attrs:{title:"所有标签"}},t._l(t.tags,function(a){return e("a-tooltip",{key:a.id,attrs:{placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.postCount)+" 篇文章")])]),e("a-tag",{attrs:{closable:"",color:"blue"},on:{close:function(e){return t.handleDeleteTag(a.id)}}},[t._v(t._s(a.name))])],2)}),1)],1)],1)],1)},o=[],l=e("d28db"),r={data:function(){return{tags:[],tagToCreate:{},tagToUpdate:{}}},created:function(){this.loadTags()},methods:{loadTags:function(){var t=this;l["a"].listAll(!0).then(function(a){t.tags=a.data.data})},handleCreateTag:function(){var t=this;l["a"].create(this.tagToCreate).then(function(a){t.loadTags()})},handleUpdateTag:function(t){var a=this;l["a"].update(t,this.tagToUpdate).then(function(t){a.loadTags()})},handleDeleteTag:function(t){var a=this;l["a"].delete(t).then(function(t){a.$message.success("删除成功!"),a.loadTags()})}}},s=r,c=e("17cc"),i=Object(c["a"])(s,n,o,!1,null,null,null);a["default"]=i.exports},d28db:function(t,a,e){"use strict";var n=e("9efd"),o="/api/admin/tags",l={listAll:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(n["a"])({url:o,params:{more:t},method:"get"})},createWithName:function(t){return Object(n["a"])({url:o,data:{name:t},method:"post"})},create:function(t){return Object(n["a"])({url:o,data:t,method:"post"})},update:function(t,a){return Object(n["a"])({url:"".concat(o,"/").concat(t),data:a,method:"put"})},delete:function(t){return Object(n["a"])({url:"".concat(o,"/").concat(t),method:"delete"})}};a["a"]=l}}]); \ No newline at end of file diff --git a/src/main/resources/admin/js/chunk-4b5e9e93.8033dcf8.js b/src/main/resources/admin/js/chunk-4b5e9e93.8033dcf8.js new file mode 100644 index 0000000000..c480202330 --- /dev/null +++ b/src/main/resources/admin/js/chunk-4b5e9e93.8033dcf8.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b5e9e93"],{aa1e:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-header-index-wide"},[e("a-row",{attrs:{gutter:12}},[e("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[e("a-card",{attrs:{title:t.title}},[e("a-form",{attrs:{layout:"horizontal"}},[e("a-form-item",{attrs:{label:"名称:",help:"* 页面上所显示的名称"}},[e("a-input",{model:{value:t.tagToCreate.name,callback:function(a){t.$set(t.tagToCreate,"name",a)},expression:"tagToCreate.name"}})],1),e("a-form-item",{attrs:{label:"别名",help:"* 一般为单个标签页面的标识,最好为英文"}},[e("a-input",{model:{value:t.tagToCreate.slugName,callback:function(a){t.$set(t.tagToCreate,"slugName",a)},expression:"tagToCreate.slugName"}})],1),e("a-form-item",["create"===t.formType?e("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("保存")]):e("a-button-group",[e("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("更新")]),"update"===t.formType?e("a-button",{attrs:{type:"dashed"},on:{click:t.handleAddTag}},[t._v("返回添加")]):t._e()],1),"update"===t.formType?e("a-popconfirm",{attrs:{title:"你确定要删除【"+t.tagToCreate.name+"】标签?",okText:"确定",cancelText:"取消"},on:{confirm:function(a){return t.handleDeleteTag(t.tagToCreate.id)}}},[e("a-button",{staticStyle:{float:"right"},attrs:{type:"danger"}},[t._v("删除")])],1):t._e()],1)],1)],1)],1),e("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[e("a-card",{attrs:{title:"所有标签"}},t._l(t.tags,function(a){return e("a-tooltip",{key:a.id,attrs:{placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(a.postCount)+" 篇文章")])]),e("a-tag",{staticStyle:{"margin-bottom":"8px"},attrs:{color:"blue"},on:{click:function(e){return t.handleEditTag(a)}}},[t._v(t._s(a.name))])],2)}),1)],1)],1)],1)},o=[],r=e("d28db"),s={data:function(){return{formType:"create",tags:[],tagToCreate:{}}},computed:{title:function(){return this.tagToCreate.id?"修改标签":"添加标签"}},created:function(){this.loadTags()},methods:{loadTags:function(){var t=this;r["a"].listAll(!0).then(function(a){t.tags=a.data.data})},handleSaveClick:function(){this.createOrUpdateTag()},handleAddTag:function(){this.formType="create",this.tagToCreate={}},handleEditTag:function(t){this.tagToCreate=t,this.formType="update"},handleDeleteTag:function(t){var a=this;r["a"].delete(t).then(function(t){a.$message.success("删除成功!"),a.loadTags(),a.handleAddTag()})},createOrUpdateTag:function(){var t=this;this.tagToCreate.id?r["a"].update(this.tagToCreate.id,this.tagToCreate).then(function(a){t.$message.success("更新成功!"),t.loadTags(),t.tagToCreate={}}):r["a"].create(this.tagToCreate).then(function(a){t.$message.success("保存成功!"),t.loadTags(),t.tagToCreate={}}),this.handleAddTag()}}},i=s,l=e("17cc"),c=Object(l["a"])(i,n,o,!1,null,null,null);a["default"]=c.exports},d28db:function(t,a,e){"use strict";var n=e("9efd"),o="/api/admin/tags",r={listAll:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(n["a"])({url:o,params:{more:t},method:"get"})},createWithName:function(t){return Object(n["a"])({url:o,data:{name:t},method:"post"})},create:function(t){return Object(n["a"])({url:o,data:t,method:"post"})},update:function(t,a){return Object(n["a"])({url:"".concat(o,"/").concat(t),data:a,method:"put"})},delete:function(t){return Object(n["a"])({url:"".concat(o,"/").concat(t),method:"delete"})}};a["a"]=r}}]); \ No newline at end of file