mirror of https://github.com/halo-dev/halo
parent
83789d52df
commit
1a091fb6b8
|
@ -9,7 +9,7 @@ apply plugin: 'io.spring.dependency-management'
|
|||
|
||||
group = 'run.halo.app'
|
||||
archivesBaseName = 'halo'
|
||||
version = '1.1.0-beta.2'
|
||||
version = '1.1.0-beta.3'
|
||||
sourceCompatibility = '1.8'
|
||||
description = 'Halo, personal blog system developed in Java.'
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
.page-header-wrapper-grid-content-main[data-v-775a5202]{width:100%;height:100%;min-height:100%;-webkit-transition:.3s;transition:.3s}.page-header-wrapper-grid-content-main .profile-center-avatarHolder[data-v-775a5202]{text-align:center;margin-bottom:24px}.page-header-wrapper-grid-content-main .profile-center-avatarHolder>.avatar[data-v-775a5202]{margin:0 auto;width:104px;height:104px;margin-bottom:20px;border-radius:50%;overflow:hidden;cursor:pointer}.page-header-wrapper-grid-content-main .profile-center-avatarHolder>.avatar img[data-v-775a5202]{height:100%;width:100%}.page-header-wrapper-grid-content-main .profile-center-avatarHolder .username[data-v-775a5202]{color:rgba(0,0,0,.85);font-size:20px;line-height:28px;font-weight:500;margin-bottom:4px}.page-header-wrapper-grid-content-main .profile-center-detail p[data-v-775a5202]{margin-bottom:8px;padding-left:26px;position:relative}.page-header-wrapper-grid-content-main .profile-center-detail i[data-v-775a5202]{position:absolute;height:14px;width:14px;left:0;top:4px}
|
|
@ -0,0 +1 @@
|
|||
body{height:100%;background-color:#f5f5f5}.container-wrapper{background:#fff;position:absolute;border-radius:5px;top:45%;left:50%;margin:-160px 0 0 -160px;width:320px;padding:18px 28px 28px 28px;-webkit-box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1);box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1)}.container-wrapper .halo-logo{margin-bottom:20px;text-align:center}.container-wrapper .halo-logo span{vertical-align:text-bottom;font-size:38px;display:inline-block;font-weight:600;color:#1790fe;background-image:linear-gradient(-20deg,#6e45e2,#88d3ce);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.container-wrapper .halo-logo span small{margin-left:5px;font-size:35%}.container-wrapper .tip{cursor:pointer;margin-left:.5rem;float:right}
|
|
@ -1 +0,0 @@
|
|||
body{height:100%;background-color:#f5f5f5}.container{background:#f7f7f7;position:absolute;top:45%;left:50%;margin:-160px 0 0 -160px;width:320px;padding:16px 32px 32px 32px;-webkit-box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1);box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1)}.container .tip{cursor:pointer;margin-top:.5rem;float:right}.loginLogo{margin-bottom:20px;text-align:center}.loginLogo span{vertical-align:text-bottom;font-size:36px;display:inline-block;font-weight:600;color:#1790fe;background-image:-webkit-gradient(linear,37.219838% 34.532506%,36.425669% 93.178216%,from(#36c8f5),to(#1790fe),color-stop(.37,#1790fe));-webkit-text-fill-color:transparent;-webkit-background-clip:text}
|
|
@ -0,0 +1 @@
|
|||
.page-header-wrapper-grid-content-main[data-v-6aeec9cb]{width:100%;height:100%;min-height:100%;-webkit-transition:.3s;transition:.3s}.page-header-wrapper-grid-content-main .profile-center-avatarHolder[data-v-6aeec9cb]{text-align:center;margin-bottom:24px}.page-header-wrapper-grid-content-main .profile-center-avatarHolder>.avatar[data-v-6aeec9cb]{margin:0 auto;width:104px;height:104px;margin-bottom:20px;border-radius:50%;overflow:hidden;cursor:pointer}.page-header-wrapper-grid-content-main .profile-center-avatarHolder>.avatar img[data-v-6aeec9cb]{height:100%;width:100%}.page-header-wrapper-grid-content-main .profile-center-avatarHolder .username[data-v-6aeec9cb]{color:rgba(0,0,0,.85);font-size:20px;line-height:28px;font-weight:500;margin-bottom:4px}.page-header-wrapper-grid-content-main .profile-center-detail p[data-v-6aeec9cb]{margin-bottom:8px;padding-left:26px;position:relative}.page-header-wrapper-grid-content-main .profile-center-detail i[data-v-6aeec9cb]{position:absolute;height:14px;width:14px;left:0;top:4px}
|
|
@ -0,0 +1 @@
|
|||
body{height:100%;background-color:#f5f5f5}.container-wrapper{background:#fff;position:absolute;border-radius:5px;top:45%;left:50%;margin:-160px 0 0 -160px;width:320px;padding:18px 28px 28px 28px;-webkit-box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1);box-shadow:-4px 7px 46px 2px rgba(0,0,0,.1)}.container-wrapper .halo-logo{margin-bottom:20px;text-align:center}.container-wrapper .halo-logo span{vertical-align:text-bottom;font-size:38px;display:inline-block;font-weight:600;color:#1790fe;background-image:linear-gradient(-20deg,#6e45e2,#88d3ce);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.container-wrapper .halo-logo span small{margin-left:5px;font-size:35%}.container-wrapper .tip{cursor:pointer;margin-left:.5rem;float:right}
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
.ant-divider-horizontal[data-v-50088c1a]{margin:24px 0 12px 0}.search-box[data-v-50088c1a]{padding-bottom:12px}.attach-thumb[data-v-50088c1a]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.attach-thumb img[data-v-50088c1a],.attach-thumb span[data-v-50088c1a]{width:100%;height:100%;position:absolute;top:0;left:0}.attach-thumb span[data-v-50088c1a]{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:#9b9ea0}.ant-card-meta[data-v-50088c1a]{padding:.8rem}.attach-detail-img img[data-v-50088c1a]{width:100%}.table-operator[data-v-50088c1a]{margin-bottom:0}
|
|
@ -0,0 +1 @@
|
|||
.ant-divider-horizontal[data-v-5d506604]{margin:24px 0 12px 0}.search-box[data-v-5d506604]{padding-bottom:12px}.photo-thumb[data-v-5d506604]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.photo-thumb img[data-v-5d506604]{width:100%;height:100%;position:absolute;top:0;left:0}.ant-card-meta[data-v-5d506604]{padding:.8rem}.photo-detail-img img[data-v-5d506604]{width:100%}.table-operator[data-v-5d506604]{margin-bottom:0}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
.ant-upload-select-picture-card i{font-size:32px;color:#999}.ant-upload-select-picture-card .ant-upload-text{margin-top:8px;color:#666}.ant-upload-list-picture-card{float:none}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
.ant-divider-horizontal[data-v-5a377391]{margin:24px 0 12px 0}.search-box[data-v-5a377391]{padding-bottom:12px}.attach-thumb[data-v-5a377391]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.attach-thumb img[data-v-5a377391],.attach-thumb span[data-v-5a377391]{width:100%;height:100%;position:absolute;top:0;left:0}.attach-thumb span[data-v-5a377391]{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:#9b9ea0}.ant-card-meta[data-v-5a377391]{padding:.8rem}.attach-detail-img img[data-v-5a377391]{width:100%}.table-operator[data-v-5a377391]{margin-bottom:0}
|
|
@ -1 +0,0 @@
|
|||
.ant-divider-horizontal[data-v-4421fb0d]{margin:24px 0 12px 0}.search-box[data-v-4421fb0d]{padding-bottom:12px}.photo-thumb[data-v-4421fb0d]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.photo-thumb img[data-v-4421fb0d]{width:100%;height:100%;position:absolute;top:0;left:0}.ant-card-meta[data-v-4421fb0d]{padding:.8rem}.photo-detail-img img[data-v-4421fb0d]{width:100%}.table-operator[data-v-4421fb0d]{margin-bottom:0}
|
|
@ -1 +0,0 @@
|
|||
.analysis-card-container[data-v-698a5e37]{position:relative;overflow:hidden;width:100%}.analysis-card-container .meta[data-v-698a5e37]{position:relative;overflow:hidden;width:100%;color:rgba(0,0,0,.45);font-size:14px;line-height:22px}.analysis-card-container .meta .analysis-card-action[data-v-698a5e37]{cursor:pointer;position:absolute;top:0;right:0}.number[data-v-698a5e37]{overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;color:#000;margin-top:4px;margin-bottom:0;font-size:32px;line-height:38px;height:38px}.ant-upload-select-picture-card i{font-size:32px;color:#999}.ant-upload-select-picture-card .ant-upload-text{margin-top:8px;color:#666}.ant-upload-list-picture-card{float:none}
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html lang=zh-cmn-Hans><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name=robots content=noindex,nofllow><meta name=generator content=Halo><link rel=icon href=/logo.png><title>Halo Dashboard</title><link href=/css/chunk-00cd70e3.871c504e.css rel=prefetch><link href=/css/chunk-00feb227.84211a72.css rel=prefetch><link href=/css/chunk-09a78eda.3df10fb3.css rel=prefetch><link href=/css/chunk-1eae5c5a.3d374427.css rel=prefetch><link href=/css/chunk-4fd14ef6.410e1655.css rel=prefetch><link href=/css/chunk-66751b1c.5ac5144c.css rel=prefetch><link href=/css/chunk-f1c576e6.b38ba436.css rel=prefetch><link href=/css/chunk-f2679cc4.bdf79d13.css rel=prefetch><link href=/css/chunk-fbb91764.d9669fdc.css rel=prefetch><link href=/css/chunk-fc2efda0.17186d8c.css rel=prefetch><link href=/css/fail.809a6bc5.css rel=prefetch><link href=/js/chunk-00cd70e3.c239ce9d.js rel=prefetch><link href=/js/chunk-00feb227.fb45ccd5.js rel=prefetch><link href=/js/chunk-09a78eda.1d9fb1c9.js rel=prefetch><link href=/js/chunk-0ba750a2.6d1e6ebd.js rel=prefetch><link href=/js/chunk-13882457.6aa200f5.js rel=prefetch><link href=/js/chunk-1eae5c5a.cefc1136.js rel=prefetch><link href=/js/chunk-2d0b383e.8f418b89.js rel=prefetch><link href=/js/chunk-2d0b64bf.3cf0f699.js rel=prefetch><link href=/js/chunk-2d0b8b03.ad521d64.js rel=prefetch><link href=/js/chunk-2d21a35c.986db9f1.js rel=prefetch><link href=/js/chunk-2d228c74.058f16ea.js rel=prefetch><link href=/js/chunk-2d228d13.77c456a3.js rel=prefetch><link href=/js/chunk-37a26d88.7673d449.js rel=prefetch><link href=/js/chunk-4fd14ef6.33d774b3.js rel=prefetch><link href=/js/chunk-664d53d7.571e0411.js rel=prefetch><link href=/js/chunk-66751b1c.0cc977fe.js rel=prefetch><link href=/js/chunk-6709ac89.2b310f4d.js rel=prefetch><link href=/js/chunk-78dfb9ad.32e87349.js rel=prefetch><link href=/js/chunk-7f061eff.2b950d18.js rel=prefetch><link href=/js/chunk-b0eebb32.b5b86f1c.js rel=prefetch><link href=/js/chunk-f1c576e6.749b5365.js rel=prefetch><link href=/js/chunk-f2679cc4.40c9ffaf.js rel=prefetch><link href=/js/chunk-fbb91764.a3cb33d6.js rel=prefetch><link href=/js/chunk-fc2efda0.ac2e1484.js rel=prefetch><link href=/js/fail.26cec32c.js rel=prefetch><link href=/css/app.fe96a780.css rel=preload as=style><link href=/css/chunk-vendors.232285c0.css rel=preload as=style><link href=/js/app.5e648ee2.js rel=preload as=script><link href=/js/chunk-vendors.7c867c87.js rel=preload as=script><link href=/css/chunk-vendors.232285c0.css rel=stylesheet><link href=/css/app.fe96a780.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-antd-pro doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.7c867c87.js></script><script src=/js/app.5e648ee2.js></script></body></html>
|
||||
<!DOCTYPE html><html lang=zh-cmn-Hans><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name=robots content=noindex,nofllow><meta name=generator content=Halo><link rel=icon href=/logo.png><title>Halo Dashboard</title><style>#loader{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;border:solid 3px #e5e5e5;border-top-color:#333;border-radius:50%;width:30px;height:30px;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}</style><link href=/css/chunk-00feb227.84211a72.css rel=prefetch><link href=/css/chunk-079b3a59.46a67c57.css rel=prefetch><link href=/css/chunk-09a78eda.0e33e21a.css rel=prefetch><link href=/css/chunk-0a101362.59c10c21.css rel=prefetch><link href=/css/chunk-2cf7efe4.0e33e21a.css rel=prefetch><link href=/css/chunk-36ac1a23.0becaf8c.css rel=prefetch><link href=/css/chunk-59456d4e.afea7f86.css rel=prefetch><link href=/css/chunk-7a9e6746.f4349937.css rel=prefetch><link href=/css/chunk-afda5a22.041fa426.css rel=prefetch><link href=/css/chunk-de4f9a28.8a99b637.css rel=prefetch><link href=/css/chunk-f1c576e6.b38ba436.css rel=prefetch><link href=/css/fail.809a6bc5.css rel=prefetch><link href=/js/chunk-00feb227.c2778ad5.js rel=prefetch><link href=/js/chunk-079b3a59.24ed11ff.js rel=prefetch><link href=/js/chunk-09a78eda.d15a5619.js rel=prefetch><link href=/js/chunk-0a101362.b6e693d6.js rel=prefetch><link href=/js/chunk-0ba750a2.8fa49cf0.js rel=prefetch><link href=/js/chunk-13882457.f3302ce2.js rel=prefetch><link href=/js/chunk-2cf7efe4.6939f2ba.js rel=prefetch><link href=/js/chunk-2d0b383e.3cdf7c8a.js rel=prefetch><link href=/js/chunk-2d0b64bf.b626e5c7.js rel=prefetch><link href=/js/chunk-2d0b8b03.6f05a0c3.js rel=prefetch><link href=/js/chunk-2d21a35c.488ad408.js rel=prefetch><link href=/js/chunk-2d228c74.ba137228.js rel=prefetch><link href=/js/chunk-2d228d13.e2177046.js rel=prefetch><link href=/js/chunk-36ac1a23.74b6d857.js rel=prefetch><link href=/js/chunk-37a26d88.4252bb90.js rel=prefetch><link href=/js/chunk-59456d4e.6533236e.js rel=prefetch><link href=/js/chunk-664d53d7.5b383efc.js rel=prefetch><link href=/js/chunk-6709ac89.c3b35f4f.js rel=prefetch><link href=/js/chunk-78dfb9ad.81ee9904.js rel=prefetch><link href=/js/chunk-7a9e6746.4612c7ab.js rel=prefetch><link href=/js/chunk-7f061eff.e1358af9.js rel=prefetch><link href=/js/chunk-afda5a22.43f859b1.js rel=prefetch><link href=/js/chunk-b0eebb32.42bcb395.js rel=prefetch><link href=/js/chunk-de4f9a28.41e7d8d4.js rel=prefetch><link href=/js/chunk-f1c576e6.d43e8896.js rel=prefetch><link href=/js/fail.9ecc0cbc.js rel=prefetch><link href=/css/app.336e36cf.css rel=preload as=style><link href=/css/chunk-vendors.232285c0.css rel=preload as=style><link href=/js/app.78aaf672.js rel=preload as=script><link href=/js/chunk-vendors.aaf5b958.js rel=preload as=script><link href=/css/chunk-vendors.232285c0.css rel=stylesheet><link href=/css/app.336e36cf.css rel=stylesheet></head><body><noscript><strong>We're sorry but vue-antd-pro doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app><div id=loader></div></div><script src=/js/chunk-vendors.aaf5b958.js></script><script src=/js/app.78aaf672.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09a78eda"],{"0972":function(a,e,i){},1439:function(a,e,i){"use strict";var t=i("0972"),n=i.n(t);n.a},ac2a:function(a,e,i){"use strict";i.r(e);var t=function(){var a=this,e=a.$createElement,i=a._self._c||e;return i("div",{staticClass:"container"},[a._m(0),i("div",{staticClass:"loginBody animated"},[i("a-form",{attrs:{layout:"vertical"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&a._k(e.keyCode,"enter",13,e.key,"Enter")?null:a.handleLogin(e)}}},[i("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[i("a-input",{attrs:{placeholder:"用户名/邮箱"},model:{value:a.username,callback:function(e){a.username=e},expression:"username"}},[i("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),i("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[i("a-input",{attrs:{type:"password",placeholder:"密码"},model:{value:a.password,callback:function(e){a.password=e},expression:"password"}},[i("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),i("a-row",[i("a-button",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"},attrs:{type:"primary",block:!0},on:{click:a.handleLogin}},[a._v("登录")])],1),i("a-row",[i("a",{staticClass:"tip animated fadeInUp",style:{"animation-delay":"0.4s"},on:{click:a.handleApiModifyModalOpen}},[a._v("\n API 设置\n ")])]),i("a-modal",{attrs:{title:"API 设置",visible:a.apiModifyVisible},on:{ok:a.handleApiModifyOk,cancel:a.handleApiModifyCancel}},[i("a-form",[i("a-form-item",{attrs:{extra:"如果 halo admin 不是独立部署,请不要更改此 API"}},[i("a-input",{model:{value:a.apiUrl,callback:function(e){a.apiUrl=e},expression:"apiUrl"}})],1),i("a-form-item",[i("a-button",{on:{click:a.handleApiUrlRestore}},[a._v("\n 恢复默认\n ")])],1)],1)],1)],1)],1)])},n=[function(){var a=this,e=a.$createElement,i=a._self._c||e;return i("div",{staticClass:"loginLogo animated fadeInUp"},[i("span",[a._v("Halo")])])}],s=(i("a481"),i("cebc")),o=i("2f62"),l={data:function(){return{username:null,password:null,apiModifyVisible:!1,defaultApiBefore:window.location.protocol+"//",apiUrl:window.location.host}},computed:Object(s["a"])({},Object(o["c"])({defaultApiUrl:"apiUrl"})),methods:Object(s["a"])({},Object(o["b"])(["login","loadUser"]),Object(o["d"])({setApiUrl:"SET_API_URL",restoreApiUrl:"RESTORE_API_URL"}),{handleLogin:function(){var a=this;this.username?this.password?this.login({username:this.username,password:this.password}).then(function(e){a.loginSuccess()}):this.$message.warn("密码不能为空!"):this.$message.warn("用户名不能为空!")},loginSuccess:function(){this.loadUser(),this.$route.query.redirect?this.$router.replace(this.$route.query.redirect):this.$router.replace({name:"Dashboard"})},handleApiModifyModalOpen:function(){this.apiUrl=this.defaultApiUrl,this.apiModifyVisible=!0},handleApiModifyOk:function(){this.setApiUrl(this.apiUrl),this.apiModifyVisible=!1},handleApiModifyCancel:function(){this.apiModifyVisible=!1},handleApiUrlRestore:function(){this.restoreApiUrl(),this.apiUrl=this.defaultApiUrl}})},r=l,c=(i("1439"),i("2877")),d=Object(c["a"])(r,t,n,!1,null,null,null);e["default"]=d.exports}}]);
|
|
@ -0,0 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09a78eda"],{"0972":function(t,e,a){},1439:function(t,e,a){"use strict";var i=a("0972"),s=a.n(i);s.a},ac2a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container-wrapper"},[t._m(0),a("div",{staticClass:"animated"},[a("a-form",{attrs:{layout:"vertical"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}}},[a("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[a("a-input",{attrs:{placeholder:"用户名/邮箱"},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}},[a("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),a("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[a("a-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}},[a("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),a("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"}},[a("a-button",{attrs:{type:"primary",block:!0},on:{click:t.handleLogin}},[t._v("登录")])],1),a("a-row",[a("router-link",{attrs:{to:{name:"ResetPassword"}}},[t.resetPasswordButton?a("a",{staticClass:"tip animated fadeInRight",attrs:{href:"javascript:void(0);"}},[t._v("\n 找回密码\n ")]):t._e()]),a("a",{staticClass:"tip animated fadeInUp",style:{"animation-delay":"0.4s"},on:{click:t.handleApiModifyModalOpen}},[t._v("\n API 设置\n ")])],1),a("a-modal",{attrs:{title:"API 设置",visible:t.apiModifyVisible},on:{ok:t.handleApiModifyOk,cancel:t.handleApiModifyCancel}},[a("a-form",[a("a-form-item",{attrs:{extra:"如果 halo admin 不是独立部署,请不要更改此 API"}},[a("a-input",{model:{value:t.apiUrl,callback:function(e){t.apiUrl=e},expression:"apiUrl"}})],1),a("a-form-item",[a("a-button",{on:{click:t.handleApiUrlRestore}},[t._v("\n 恢复默认\n ")])],1)],1)],1)],1)],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"halo-logo animated fadeInUp"},[a("span",[t._v("Halo")])])}],n=(a("a481"),a("cebc")),o=a("2f62"),r={data:function(){return{username:null,password:null,apiModifyVisible:!1,defaultApiBefore:window.location.protocol+"//",apiUrl:window.location.host,resetPasswordButton:!1}},computed:Object(n["a"])({},Object(o["c"])({defaultApiUrl:"apiUrl"})),created:function(){var t=this;document.addEventListener("keydown",function(e){72===e.keyCode&&e.altKey&&e.shiftKey&&t.toggleHidden()})},methods:Object(n["a"])({},Object(o["b"])(["login","loadUser","loadOptions"]),Object(o["d"])({setApiUrl:"SET_API_URL",restoreApiUrl:"RESTORE_API_URL"}),{handleLogin:function(){var t=this;this.username?this.password?this.login({username:this.username,password:this.password}).then(function(e){t.loginSuccess()}):this.$message.warn("密码不能为空!"):this.$message.warn("用户名不能为空!")},loginSuccess:function(){this.loadUser(),this.loadOptions(),this.$route.query.redirect?this.$router.replace(this.$route.query.redirect):this.$router.replace({name:"Dashboard"})},handleApiModifyModalOpen:function(){this.apiUrl=this.defaultApiUrl,this.apiModifyVisible=!0},handleApiModifyOk:function(){this.setApiUrl(this.apiUrl),this.apiModifyVisible=!1},handleApiModifyCancel:function(){this.apiModifyVisible=!1},handleApiUrlRestore:function(){this.restoreApiUrl(),this.apiUrl=this.defaultApiUrl},toggleHidden:function(){this.resetPasswordButton=!this.resetPasswordButton}})},l=r,d=(a("1439"),a("2877")),c=Object(d["a"])(l,i,s,!1,null,null,null);e["default"]=c.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2cf7efe4"],{"3e87":function(a,e,t){},c1bd:function(a,e,t){"use strict";t.r(e);var s=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"container-wrapper"},[a._m(0),t("div",{staticClass:"animated"},[t("a-form",{attrs:{layout:"vertical"}},[t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[t("a-input",{attrs:{placeholder:"用户名"},model:{value:a.resetParam.username,callback:function(e){a.$set(a.resetParam,"username",e)},expression:"resetParam.username"}},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"user"},slot:"prefix"})],1)],1),t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.2s"}},[t("a-input",{attrs:{placeholder:"邮箱"},model:{value:a.resetParam.email,callback:function(e){a.$set(a.resetParam,"email",e)},expression:"resetParam.email"}},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"mail"},slot:"prefix"})],1)],1),t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"}},[t("a-input",{attrs:{type:"password",placeholder:"验证码"},model:{value:a.resetParam.code,callback:function(e){a.$set(a.resetParam,"code",e)},expression:"resetParam.code"}},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"safety-certificate"},slot:"prefix"}),t("a",{attrs:{slot:"addonAfter",href:"javascript:void(0);"},on:{click:a.handleSendCode},slot:"addonAfter"},[a._v("\n 获取\n ")])],1)],1),t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.4s"}},[t("a-input",{attrs:{type:"password",placeholder:"新密码"},model:{value:a.resetParam.password,callback:function(e){a.$set(a.resetParam,"password",e)},expression:"resetParam.password"}},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.5s"}},[t("a-input",{attrs:{type:"password",placeholder:"确认密码"},model:{value:a.resetParam.confirmPassword,callback:function(e){a.$set(a.resetParam,"confirmPassword",e)},expression:"resetParam.confirmPassword"}},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),t("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.6s"}},[t("a-button",{attrs:{type:"primary",block:!0},on:{click:a.handleResetPassword}},[a._v("重置密码")])],1),t("a-row",[t("router-link",{attrs:{to:{name:"Login"}}},[t("a",{staticClass:"tip animated fadeInUp",style:{"animation-delay":"0.7s"}},[a._v("\n 返回登陆\n ")])])],1)],1)],1)])},r=[function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"halo-logo animated fadeInUp"},[t("span",[a._v("Halo"),t("small",[a._v("重置密码")])])])}],i=t("50fc"),o={data:function(){return{resetParam:{username:"",email:"",code:"",password:"",confirmPassword:""}}},methods:{handleSendCode:function(){var a=this;this.resetParam.username?this.resetParam.email?i["a"].sendResetCode(this.resetParam).then(function(e){a.$message.info("邮件发送成功,五分钟内有效")}):this.$notification["error"]({message:"提示",description:"邮箱不能为空!"}):this.$notification["error"]({message:"提示",description:"用户名不能为空!"})},handleResetPassword:function(){var a=this;this.resetParam.username?this.resetParam.email?this.resetParam.code?this.resetParam.password?this.resetParam.confirmPassword?this.resetParam.confirmPassword===this.resetParam.password?i["a"].resetPassword(this.resetParam).then(function(e){a.$message.info("密码重置成功!"),a.$router.push({name:"Login"})}):this.$notification["error"]({message:"提示",description:"确认密码和新密码不匹配!"}):this.$notification["error"]({message:"提示",description:"确认密码不能为空!"}):this.$notification["error"]({message:"提示",description:"新密码不能为空!"}):this.$notification["error"]({message:"提示",description:"验证码不能为空!"}):this.$notification["error"]({message:"提示",description:"邮箱不能为空!"}):this.$notification["error"]({message:"提示",description:"用户名不能为空!"})}}},n=o,l=(t("c2b9"),t("2877")),c=Object(l["a"])(n,s,r,!1,null,null,null);e["default"]=c.exports},c2b9:function(a,e,t){"use strict";var s=t("3e87"),r=t.n(s);r.a}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a35c"],{bb17:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-header-index-wide"},[n("a-row",{attrs:{gutter:12}},[n("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[n("a-card",{attrs:{title:t.title,bodyStyle:{padding:"16px"}}},[n("a-form",{attrs:{layout:"horizontal"}},[n("a-form-item",{attrs:{label:"网站名称:"}},[n("a-input",{model:{value:t.link.name,callback:function(e){t.$set(t.link,"name",e)},expression:"link.name"}})],1),n("a-form-item",{attrs:{label:"网站地址:",help:"* 需要加上 http://"}},[n("a-input",{model:{value:t.link.url,callback:function(e){t.$set(t.link,"url",e)},expression:"link.url"}})],1),n("a-form-item",{attrs:{label:"Logo:"}},[n("a-input",{model:{value:t.link.logo,callback:function(e){t.$set(t.link,"logo",e)},expression:"link.logo"}})],1),n("a-form-item",{attrs:{label:"分组:",help:"* 非必填"}},[n("a-input",{model:{value:t.link.team,callback:function(e){t.$set(t.link,"team",e)},expression:"link.team"}})],1),n("a-form-item",{attrs:{label:"描述:"}},[n("a-input",{attrs:{type:"textarea",autosize:{minRows:5}},model:{value:t.link.description,callback:function(e){t.$set(t.link,"description",e)},expression:"link.description"}})],1),n("a-form-item",["create"===t.formType?n("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("保存")]):n("a-button-group",[n("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("更新")]),"update"===t.formType?n("a-button",{attrs:{type:"dashed"},on:{click:t.handleAddLink}},[t._v("返回添加")]):t._e()],1)],1)],1)],1)],1),n("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[n("a-card",{attrs:{title:"所有友情链接",bodyStyle:{padding:"16px"}}},[n("a-table",{attrs:{columns:t.columns,dataSource:t.links,loading:t.loading,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"url",fn:function(e){return[n("a",{attrs:{target:"_blank",href:e}},[t._v(t._s(e))])]}},{key:"name",fn:function(e){return n("ellipsis",{attrs:{length:15,tooltip:""}},[t._v(t._s(e))])}},{key:"action",fn:function(e,a){return n("span",{},[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.handleEditLink(a.id)}}},[t._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"你确定要删除【"+a.name+"】链接?",okText:"确定",cancelText:"取消"},on:{confirm:function(e){return t.handleDeleteLink(a.id)}}},[n("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)}}])})],1)],1)],1)],1)},i=[],l=(n("b54a"),n("9efd")),o="/api/admin/links",r={listAll:function(){return Object(l["a"])({url:"".concat(o),method:"get"})},create:function(t){return Object(l["a"])({url:o,data:t,method:"post"})},get:function(t){return Object(l["a"])({url:"".concat(o,"/").concat(t),method:"get"})},update:function(t,e){return Object(l["a"])({url:"".concat(o,"/").concat(t),data:e,method:"put"})},delete:function(t){return Object(l["a"])({url:"".concat(o,"/").concat(t),method:"delete"})}},c=r,s=[{title:"名称",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"网址",dataIndex:"url",scopedSlots:{customRender:"url"}},{title:"分组",dataIndex:"team"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],d={data:function(){return{formType:"create",data:[],loading:!1,columns:s,links:[],link:{}}},computed:{title:function(){return this.link.id?"修改友情链接":"添加友情链接"}},created:function(){this.loadLinks()},methods:{loadLinks:function(){var t=this;this.loading=!0,c.listAll().then(function(e){t.links=e.data.data,t.loading=!1})},handleSaveClick:function(){this.createOrUpdateLink()},handleAddLink:function(){this.formType="create",this.link={}},handleEditLink:function(t){var e=this;c.get(t).then(function(t){e.link=t.data.data,e.formType="update"})},handleDeleteLink:function(t){var e=this;c.delete(t).then(function(t){e.$message.success("删除成功!"),e.loadLinks()})},createOrUpdateLink:function(){var t=this;this.link.id?c.update(this.link.id,this.link).then(function(e){t.$message.success("更新成功!"),t.loadLinks()}):c.create(this.link).then(function(e){t.$message.success("保存成功!"),t.loadLinks()}),this.handleAddLink()}}},u=d,p=n("2877"),m=Object(p["a"])(u,a,i,!1,null,"5cfa7a9e",null);e["default"]=m.exports}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21a35c"],{bb17:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"page-header-index-wide"},[n("a-row",{attrs:{gutter:12}},[n("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:10,lg:10,md:10,sm:24,xs:24}},[n("a-card",{attrs:{title:t.title,bodyStyle:{padding:"16px"}}},[n("a-form",{attrs:{layout:"horizontal"}},[n("a-form-item",{attrs:{label:"网站名称:"}},[n("a-input",{model:{value:t.link.name,callback:function(e){t.$set(t.link,"name",e)},expression:"link.name"}})],1),n("a-form-item",{attrs:{label:"网站地址:",help:"* 需要加上 http://"}},[n("a-input",{model:{value:t.link.url,callback:function(e){t.$set(t.link,"url",e)},expression:"link.url"}})],1),n("a-form-item",{attrs:{label:"Logo:"}},[n("a-input",{model:{value:t.link.logo,callback:function(e){t.$set(t.link,"logo",e)},expression:"link.logo"}})],1),n("a-form-item",{attrs:{label:"分组:",help:"* 非必填"}},[n("a-input",{model:{value:t.link.team,callback:function(e){t.$set(t.link,"team",e)},expression:"link.team"}})],1),n("a-form-item",{attrs:{label:"描述:"}},[n("a-input",{attrs:{type:"textarea",autosize:{minRows:5}},model:{value:t.link.description,callback:function(e){t.$set(t.link,"description",e)},expression:"link.description"}})],1),n("a-form-item",["create"===t.formType?n("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("保存")]):n("a-button-group",[n("a-button",{attrs:{type:"primary"},on:{click:t.handleSaveClick}},[t._v("更新")]),"update"===t.formType?n("a-button",{attrs:{type:"dashed"},on:{click:t.handleAddLink}},[t._v("返回添加")]):t._e()],1)],1)],1)],1)],1),n("a-col",{style:{"padding-bottom":"12px"},attrs:{xl:14,lg:14,md:14,sm:24,xs:24}},[n("a-card",{attrs:{title:"所有友情链接",bodyStyle:{padding:"16px"}}},[n("a-table",{attrs:{columns:t.columns,dataSource:t.links,loading:t.loading,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"url",fn:function(e){return[n("a",{attrs:{target:"_blank",href:e}},[t._v(t._s(e))])]}},{key:"name",fn:function(e){return n("ellipsis",{attrs:{length:15,tooltip:""}},[t._v(t._s(e))])}},{key:"action",fn:function(e,a){return n("span",{},[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return t.handleEditLink(a.id)}}},[t._v("编辑")]),n("a-divider",{attrs:{type:"vertical"}}),n("a-popconfirm",{attrs:{title:"你确定要删除【"+a.name+"】链接?",okText:"确定",cancelText:"取消"},on:{confirm:function(e){return t.handleDeleteLink(a.id)}}},[n("a",{attrs:{href:"javascript:;"}},[t._v("删除")])])],1)}}])})],1)],1)],1)],1)},i=[],l=(n("b54a"),n("9efd")),o="/api/admin/links",r={listAll:function(){return Object(l["a"])({url:"".concat(o),method:"get"})},create:function(t){return Object(l["a"])({url:o,data:t,method:"post"})},get:function(t){return Object(l["a"])({url:"".concat(o,"/").concat(t),method:"get"})},update:function(t,e){return Object(l["a"])({url:"".concat(o,"/").concat(t),data:e,method:"put"})},delete:function(t){return Object(l["a"])({url:"".concat(o,"/").concat(t),method:"delete"})}},c=r,s=[{title:"名称",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"网址",dataIndex:"url",scopedSlots:{customRender:"url"}},{title:"分组",dataIndex:"team"},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],d={data:function(){return{formType:"create",data:[],loading:!1,columns:s,links:[],link:{}}},computed:{title:function(){return this.link.id?"修改友情链接":"添加友情链接"}},created:function(){this.loadLinks()},methods:{loadLinks:function(){var t=this;this.loading=!0,c.listAll().then(function(e){t.links=e.data.data,t.loading=!1})},handleSaveClick:function(){this.createOrUpdateLink()},handleAddLink:function(){this.formType="create",this.link={}},handleEditLink:function(t){var e=this;c.get(t).then(function(t){e.link=t.data.data,e.formType="update"})},handleDeleteLink:function(t){var e=this;c.delete(t).then(function(t){e.$message.success("删除成功!"),e.loadLinks()})},createOrUpdateLink:function(){var t=this;this.link.id?c.update(this.link.id,this.link).then(function(e){t.$message.success("更新成功!"),t.loadLinks()}):c.create(this.link).then(function(e){t.$message.success("保存成功!"),t.loadLinks()}),this.handleAddLink()}}},u=d,p=n("2877"),m=Object(p["a"])(u,a,i,!1,null,null,null);e["default"]=m.exports}}]);
|
|
@ -1 +0,0 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228c74"],{db44:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=this,a=e.$createElement,o=e._self._c||a;return o("div",{staticClass:"page-header-index-wide"},[o("a-row",{attrs:{gutter:12}},[o("a-col",{attrs:{span:24}},[o("div",{staticStyle:{"margin-bottom":"16px"}},[o("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["title",{rules:[{required:!0,message:"请输入文章标题"}]}],expression:"['title', { rules: [{ required: true, message: '请输入文章标题' }] }]"}],attrs:{size:"large",placeholder:"请输入文章标题"},model:{value:e.postToStage.title,callback:function(t){e.$set(e.postToStage,"title",t)},expression:"postToStage.title"}})],1),o("div",{attrs:{id:"editor"}},[o("halo-editor",{ref:"md",attrs:{boxShadow:!1,toolbars:e.toolbars,ishljs:!0,autofocus:!1},on:{imgAdd:e.handleAttachmentUpload},nativeOn:{keydown:[function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.ctrlKey?e.handleSaveDraft(t):null},function(t){return(t.type.indexOf("key")||83===t.keyCode)&&t.metaKey?e.handleSaveDraft(t):null}]},model:{value:e.postToStage.originalContent,callback:function(t){e.$set(e.postToStage,"originalContent",t)},expression:"postToStage.originalContent"}})],1)])],1),o("PostSetting",{attrs:{post:e.postToStage,tagIds:e.selectedTagIds,categoryIds:e.selectedCategoryIds,visible:e.postSettingVisible},on:{close:e.onPostSettingsClose,onRefreshPost:e.onRefreshPostFromSetting,onRefreshTagIds:e.onRefreshTagIdsFromSetting,onRefreshCategoryIds:e.onRefreshCategoryIdsFromSetting}}),o("AttachmentDrawer",{model:{value:e.attachmentDrawerVisible,callback:function(t){e.attachmentDrawerVisible=t},expression:"attachmentDrawerVisible"}}),o("footer-tool-bar",{style:{width:e.isSideMenu()&&e.isDesktop()?"calc(100% - "+(e.sidebarOpened?256:80)+"px)":"100%"}},[o("a-button",{attrs:{type:"danger"},on:{click:e.handleSaveDraft}},[e._v("保存草稿")]),o("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary"},on:{click:e.handleShowPostSetting}},[e._v("发布")]),o("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"dashed"},on:{click:function(){return t.attachmentDrawerVisible=!0}}},[e._v("附件库")])],1)],1)},s=[],n=a("ac0d"),i=a("c1df"),r=a.n(i),d=a("7fdf"),l=a("ed4e"),c=a("5a70"),g=a("2749"),p=a("6ea2"),u=(a("6648"),a("caf6")),h=a("a796"),f={mixins:[n["a"],n["b"]],components:{PostSetting:d["a"],haloEditor:p["haloEditor"],FooterToolBar:c["a"],AttachmentDrawer:l["a"]},data:function(){return{toolbars:g["a"],wrapperCol:{xl:{span:24},sm:{span:24},xs:{span:24}},attachmentDrawerVisible:!1,postSettingVisible:!1,postToStage:{},selectedTagIds:[],selectedCategoryIds:[]}},beforeRouteEnter:function(t,e,a){var o=t.query.postId;a(function(t){o&&u["a"].get(o).then(function(e){var a=e.data.data;t.postToStage=a,t.selectedTagIds=a.tagIds,t.selectedCategoryIds=a.categoryIds})})},methods:{handleSaveDraft:function(){var t=this;this.postToStage.status="DRAFT",this.postToStage.title||(this.postToStage.title=r()(new Date).format("YYYY-MM-DD-HH-mm-ss")),this.postToStage.originalContent||(this.postToStage.originalContent="开始编辑..."),this.createOrUpdatePost(function(){return t.$message.success("保存草稿成功!")},function(){return t.$message.success("保存草稿成功!")},!1)},createOrUpdatePost:function(t,e,a){var o=this;this.postToStage.id?u["a"].update(this.postToStage.id,this.postToStage,a).then(function(t){o.$log.debug("Updated post",t.data.data),e&&e()}):u["a"].create(this.postToStage,a).then(function(e){o.$log.debug("Created post",e.data.data),t&&t(),o.postToStage=e.data.data})},handleAttachmentUpload:function(t,e){var a=this,o=new FormData;o.append("file",e),h["a"].upload(o).then(function(e){var o=e.data;if(200===o.status){var s=a.$refs.md;s.$img2Url(t,encodeURI(o.data.path)),a.$message.success("图片上传成功")}else a.$message.error("图片上传失败:"+o.message)})},handleShowPostSetting:function(){this.postSettingVisible=!0},onPostSettingsClose:function(){this.postSettingVisible=!1},onRefreshPostFromSetting:function(t){this.postToStage=t},onRefreshTagIdsFromSetting:function(t){this.selectedTagIds=t},onRefreshCategoryIdsFromSetting:function(t){this.selectedCategoryIds=t}}},S=f,m=a("2877"),b=Object(m["a"])(S,o,s,!1,null,null,null);e["default"]=b.exports}}]);
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228d13"],{db98:function(a,t,o){"use strict";o.r(t);var e=function(){var a=this,t=a.$createElement,o=a._self._c||t;return o("div",{staticClass:"page-header-index-wide"},[o("div",{staticClass:"card-content"},[o("a-row",{attrs:{gutter:12}},[o("a-col",{attrs:{xl:6,lg:6,md:12,sm:24,xs:24}},[o("a-card",{attrs:{title:"Markdown 文章导入",bordered:!1,bodyStyle:{padding:"16px"}}},[o("p",[a._v("支持 Hexo/Jekyll 文章导入并解析元数据")]),o("a-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:a.handleImportMarkdown}},[a._v("导入")])],1)],1)],1),o("a-modal",{attrs:{title:"Markdown 文章导入",footer:null},model:{value:a.markdownUpload,callback:function(t){a.markdownUpload=t},expression:"markdownUpload"}},[o("upload",{attrs:{name:"files",multiple:"",accept:"text/markdown",uploadHandler:a.uploadHandler},on:{change:a.handleChange}},[o("p",{staticClass:"ant-upload-drag-icon"},[o("a-icon",{attrs:{type:"inbox"}})],1),o("p",{staticClass:"ant-upload-text"},[a._v("拖拽或点击选择 Markdown 文件到此处")]),o("p",{staticClass:"ant-upload-hint"},[a._v("支持多个文件同时上传")])])],1)],1)])},n=[],d=(o("7f7f"),o("9efd")),r="/api/admin/backups",l={importMarkdown:function(a,t,o){return Object(d["a"])({url:"".concat(r,"/import/markdowns"),timeout:864e4,data:a,onUploadProgress:t,cancelToken:o,method:"post"})}},s=l,i={data:function(){return{markdownUpload:!1,uploadHandler:s.importMarkdown}},methods:{handleImportMarkdown:function(){this.markdownUpload=!0},handleChange:function(a){var t=a.file.status;"uploading"!==t&&console.log(a.file,a.fileList),"done"===t?this.$message.success("".concat(a.file.name," 导入成功!")):"error"===t&&this.$message.error("".concat(a.file.name," 导入失败!"))}}},c=i,p=o("2877"),u=Object(p["a"])(c,e,n,!1,null,"8dab78e6",null);t["default"]=u.exports}}]);
|
|
@ -0,0 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228d13"],{db98:function(a,t,n){"use strict";n.r(t);var o=function(){var a=this,t=a.$createElement,n=a._self._c||t;return n("div",{staticClass:"page-header-index-wide"},[n("div",{staticClass:"card-content"},[n("a-row",{attrs:{gutter:12}},[n("a-col",{attrs:{xl:6,lg:6,md:12,sm:24,xs:24}},[n("a-card",{attrs:{title:"Markdown 文章导入",bordered:!1,bodyStyle:{padding:"16px"}}},[n("p",[a._v("支持 Hexo/Jekyll 文章导入并解析元数据")]),n("a-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:a.handleImportMarkdown}},[a._v("导入")])],1)],1)],1),n("a-modal",{attrs:{title:"Markdown 文章导入",footer:null},model:{value:a.markdownUpload,callback:function(t){a.markdownUpload=t},expression:"markdownUpload"}},[n("upload",{attrs:{name:"files",multiple:"",accept:"text/markdown",uploadHandler:a.uploadHandler},on:{change:a.handleChange}},[n("p",{staticClass:"ant-upload-drag-icon"},[n("a-icon",{attrs:{type:"inbox"}})],1),n("p",{staticClass:"ant-upload-text"},[a._v("拖拽或点击选择 Markdown 文件到此处")]),n("p",{staticClass:"ant-upload-hint"},[a._v("支持多个文件同时上传")])])],1)],1)])},e=[],l=(n("7f7f"),n("9efd")),d="/api/admin/backups",r={importMarkdown:function(a,t,n){return Object(l["a"])({url:"".concat(d,"/import/markdowns"),timeout:864e4,data:a,onUploadProgress:t,cancelToken:n,method:"post"})}},s=r,i={data:function(){return{markdownUpload:!1,uploadHandler:s.importMarkdown}},methods:{handleImportMarkdown:function(){this.markdownUpload=!0},handleChange:function(a){var t=a.file.status;"uploading"!==t&&console.log(a.file,a.fileList),"done"===t?this.$message.success("".concat(a.file.name," 导入成功!")):"error"===t&&this.$message.error("".concat(a.file.name," 导入失败!"))}}},c=i,p=n("2877"),u=Object(p["a"])(c,o,e,!1,null,null,null);t["default"]=u.exports}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["fail"],{2254:function(t,e,s){"use strict";var c=s("c10b"),n=s.n(c);n.a},c10b:function(t,e,s){},cc89:function(t,e,s){"use strict";s.r(e);var c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("exception-page",{attrs:{type:"404"}})},n=[],i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"exception"},[s("div",{staticClass:"img"},[s("img",{attrs:{src:t.config[t.type].img}})]),s("div",{staticClass:"content"},[s("h1",[t._v(t._s(t.config[t.type].title))]),s("div",{staticClass:"desc"},[t._v(t._s(t.config[t.type].desc))]),s("div",{staticClass:"action"},[s("a-button",{attrs:{type:"primary"},on:{click:t.handleToHome}},[t._v("返回首页")])],1)])])},a=[],o={404:{img:"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg",title:"404",desc:"抱歉,你访问的页面不存在"},500:{img:"https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg",title:"500",desc:"抱歉,服务器出错了"}},p=o,r={name:"Exception",props:{type:{type:String,default:"404"}},data:function(){return{config:p}},methods:{handleToHome:function(){this.$router.push({name:"Dashboard"})}}},l=r,u=(s("2254"),s("2877")),d=Object(u["a"])(l,i,a,!1,null,"230942b4",null),m=d.exports,g={components:{ExceptionPage:m}},f=g,v=Object(u["a"])(f,c,n,!1,null,"e319b3a6",null);e["default"]=v.exports}}]);
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["fail"],{2254:function(t,e,s){"use strict";var n=s("c10b"),c=s.n(n);c.a},c10b:function(t,e,s){},cc89:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("exception-page",{attrs:{type:"404"}})},c=[],i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"exception"},[s("div",{staticClass:"img"},[s("img",{attrs:{src:t.config[t.type].img}})]),s("div",{staticClass:"content"},[s("h1",[t._v(t._s(t.config[t.type].title))]),s("div",{staticClass:"desc"},[t._v(t._s(t.config[t.type].desc))]),s("div",{staticClass:"action"},[s("a-button",{attrs:{type:"primary"},on:{click:t.handleToHome}},[t._v("返回首页")])],1)])])},a=[],o={404:{img:"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg",title:"404",desc:"抱歉,你访问的页面不存在"},500:{img:"https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg",title:"500",desc:"抱歉,服务器出错了"}},l=o,p={name:"Exception",props:{type:{type:String,default:"404"}},data:function(){return{config:l}},methods:{handleToHome:function(){this.$router.push({name:"Dashboard"})}}},r=p,u=(s("2254"),s("2877")),d=Object(u["a"])(r,i,a,!1,null,"230942b4",null),m=d.exports,g={components:{ExceptionPage:m}},f=g,v=Object(u["a"])(f,n,c,!1,null,null,null);e["default"]=v.exports}}]);
|
Loading…
Reference in New Issue