Release 1.1.0-beta.2

pull/296/head v1.1.0-beta.2
ruibaby 2019-09-01 21:37:53 +08:00
parent 6c1a11dac9
commit 9139285a37
77 changed files with 117 additions and 129 deletions

View File

@ -9,7 +9,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'run.halo.app'
archivesBaseName = 'halo'
version = '1.1.0-beta.1'
version = '1.1.0-beta.2'
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

View File

@ -0,0 +1 @@
.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}

View File

@ -0,0 +1 @@
@font-face{font-family:fontello;src:url(../fonts/fontello.e73a0647.eot);src:url(../fonts/fontello.e73a0647.eot#iefix) format("embedded-opentype"),url(../fonts/fontello.8d4a4e6f.woff2) format("woff2"),url(../fonts/fontello.a782baa8.woff) format("woff"),url(../fonts/fontello.068ca2b3.ttf) format("truetype"),url(../assets/fontello.9354499c.svg#fontello) format("svg");font-weight:400;font-style:normal}[class*=" fa-halo-"]:before,[class^=fa-halo-]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-halo-bold:before{content:"\E800"}.fa-halo-italic:before{content:"\E801"}.fa-halo-thumb-tack:before{content:"\E802"}.fa-halo-link:before{content:"\E803"}.fa-halo-picture-o:before{content:"\E804"}.fa-halo-repeat:before{content:"\E805"}.fa-halo-undo:before{content:"\E806"}.fa-halo-trash-o:before{content:"\E807"}.fa-halo-floppy-o:before{content:"\E808"}.fa-halo-compress:before{content:"\E809"}.fa-halo-eye:before{content:"\E80A"}.fa-halo-eye-slash:before{content:"\E80B"}.fa-halo-question-circle:before{content:"\E80C"}.fa-halo-times:before{content:"\E80D"}.fa-halo-align-left:before{content:"\E80F"}.fa-halo-align-center:before{content:"\E810"}.fa-halo-align-right:before{content:"\E811"}.fa-halo-arrows-alt:before{content:"\F0B2"}.fa-halo-bars:before{content:"\F0C9"}.fa-halo-list-ul:before{content:"\F0CA"}.fa-halo-list-ol:before{content:"\F0CB"}.fa-halo-strikethrough:before{content:"\F0CC"}.fa-halo-underline:before{content:"\F0CD"}.fa-halo-table:before{content:"\F0CE"}.fa-halo-columns:before{content:"\F0DB"}.fa-halo-quote-left:before{content:"\F10D"}.fa-halo-code:before{content:"\F121"}.fa-halo-superscript:before{content:"\F12B"}.fa-halo-subscript:before{content:"\F12C"}.fa-halo-header:before{content:"\F1DC"}.fa-halo-window-maximize:before{content:"\F2D0"}.markdown-body strong{font-weight:bolder}.markdown-body .hljs-center{text-align:center}.markdown-body .hljs-right{text-align:right}.markdown-body .hljs-left{text-align:left}

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.ant-divider-horizontal[data-v-d25c1476]{margin:24px 0 12px 0}.search-box[data-v-d25c1476]{padding-bottom:12px}.attach-thumb[data-v-d25c1476]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.attach-thumb img[data-v-d25c1476],.attach-thumb span[data-v-d25c1476]{width:100%;height:100%;position:absolute;top:0;left:0}.attach-thumb span[data-v-d25c1476]{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-d25c1476]{padding:.8rem}.attach-detail-img img[data-v-d25c1476]{width:100%}.table-operator[data-v-d25c1476]{margin-bottom:0}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.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}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}.ant-divider-horizontal[data-v-6bce3e01]{margin:24px 0 12px 0}.search-box[data-v-6bce3e01]{padding-bottom:12px}.photo-thumb[data-v-6bce3e01]{width:100%;margin:0 auto;position:relative;padding-bottom:56%;overflow:hidden}.photo-thumb img[data-v-6bce3e01]{width:100%;height:100%;position:absolute;top:0;left:0}.ant-card-meta[data-v-6bce3e01]{padding:.8rem}.photo-detail-img img[data-v-6bce3e01]{width:100%}.table-operator[data-v-6bce3e01]{margin-bottom:0}

View File

@ -1 +0,0 @@
.category-tree[data-v-23c0baf8]{margin-top:1rem}

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}.page-header-wrapper-grid-content-main[data-v-29eb4b40]{width:100%;height:100%;min-height:100%;-webkit-transition:.3s;transition:.3s}.page-header-wrapper-grid-content-main .profile-center-avatarHolder[data-v-29eb4b40]{text-align:center;margin-bottom:24px}.page-header-wrapper-grid-content-main .profile-center-avatarHolder>.avatar[data-v-29eb4b40]{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-29eb4b40]{height:100%;width:100%}.page-header-wrapper-grid-content-main .profile-center-avatarHolder .username[data-v-29eb4b40]{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-29eb4b40]{margin-bottom:8px;padding-left:26px;position:relative}.page-header-wrapper-grid-content-main .profile-center-detail i[data-v-29eb4b40]{position:absolute;height:14px;width:14px;left:0;top:4px}

View File

@ -1 +0,0 @@
.attach-item{width:50%;margin:0 auto;position:relative;padding-bottom:28%;overflow:hidden;float:left;cursor:pointer}.attach-item img{width:100%;height:100%;position:absolute;top:0;left:0}@font-face{font-family:fontello;src:url(../fonts/fontello.e73a0647.eot);src:url(../fonts/fontello.e73a0647.eot#iefix) format("embedded-opentype"),url(../fonts/fontello.8d4a4e6f.woff2) format("woff2"),url(../fonts/fontello.a782baa8.woff) format("woff"),url(../fonts/fontello.068ca2b3.ttf) format("truetype"),url(../assets/fontello.9354499c.svg#fontello) format("svg");font-weight:400;font-style:normal}[class*=" fa-halo-"]:before,[class^=fa-halo-]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-halo-bold:before{content:"\E800"}.fa-halo-italic:before{content:"\E801"}.fa-halo-thumb-tack:before{content:"\E802"}.fa-halo-link:before{content:"\E803"}.fa-halo-picture-o:before{content:"\E804"}.fa-halo-repeat:before{content:"\E805"}.fa-halo-undo:before{content:"\E806"}.fa-halo-trash-o:before{content:"\E807"}.fa-halo-floppy-o:before{content:"\E808"}.fa-halo-compress:before{content:"\E809"}.fa-halo-eye:before{content:"\E80A"}.fa-halo-eye-slash:before{content:"\E80B"}.fa-halo-question-circle:before{content:"\E80C"}.fa-halo-times:before{content:"\E80D"}.fa-halo-align-left:before{content:"\E80F"}.fa-halo-align-center:before{content:"\E810"}.fa-halo-align-right:before{content:"\E811"}.fa-halo-arrows-alt:before{content:"\F0B2"}.fa-halo-bars:before{content:"\F0C9"}.fa-halo-list-ul:before{content:"\F0CA"}.fa-halo-list-ol:before{content:"\F0CB"}.fa-halo-strikethrough:before{content:"\F0CC"}.fa-halo-underline:before{content:"\F0CD"}.fa-halo-table:before{content:"\F0CE"}.fa-halo-columns:before{content:"\F0DB"}.fa-halo-quote-left:before{content:"\F10D"}.fa-halo-code:before{content:"\F121"}.fa-halo-superscript:before{content:"\F12B"}.fa-halo-subscript:before{content:"\F12C"}.fa-halo-header:before{content:"\F1DC"}.fa-halo-window-maximize:before{content:"\F2D0"}.markdown-body strong{font-weight:bolder}.markdown-body .hljs-center{text-align:center}.markdown-body .hljs-right{text-align:right}.markdown-body .hljs-left{text-align:left}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.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}

View File

@ -1 +1 @@
.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}.more-options-btn[data-v-c7521836]{margin-left:15px;text-decoration:none}a[data-v-c7521836]{text-decoration:none}
.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}

Binary file not shown.

View File

@ -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-109addc0.c1990d7c.css rel=prefetch><link href=/css/chunk-11211f2b.cd13d568.css rel=prefetch><link href=/css/chunk-14249168.c1990d7c.css rel=prefetch><link href=/css/chunk-169055f6.c1990d7c.css rel=prefetch><link href=/css/chunk-2b4d2510.a0a01957.css rel=prefetch><link href=/css/chunk-4267660e.efca3f27.css rel=prefetch><link href=/css/chunk-4cdacada.d47cb5a3.css rel=prefetch><link href=/css/chunk-60539143.8d7243d6.css rel=prefetch><link href=/css/chunk-64602fe8.3df10fb3.css rel=prefetch><link href=/css/chunk-6ce1d2bc.7baab224.css rel=prefetch><link href=/css/chunk-7cdb2d7e.2b1ee151.css rel=prefetch><link href=/css/chunk-84d3ed32.2ec98305.css rel=prefetch><link href=/css/chunk-98c49ca4.80ec0ee3.css rel=prefetch><link href=/css/chunk-9e778c14.a3d9d844.css rel=prefetch><link href=/css/fail.809a6bc5.css rel=prefetch><link href=/js/chunk-0ba750a2.77496fab.js rel=prefetch><link href=/js/chunk-109addc0.1cc6dab1.js rel=prefetch><link href=/js/chunk-11211f2b.cb89b34e.js rel=prefetch><link href=/js/chunk-14249168.350fa700.js rel=prefetch><link href=/js/chunk-169055f6.299b0a67.js rel=prefetch><link href=/js/chunk-2b4d2510.0a44be33.js rel=prefetch><link href=/js/chunk-2d0b383e.f280a0b6.js rel=prefetch><link href=/js/chunk-2d0b64bf.8233340f.js rel=prefetch><link href=/js/chunk-2d0b8b03.6cb686ae.js rel=prefetch><link href=/js/chunk-2d21a35c.ec21448d.js rel=prefetch><link href=/js/chunk-2d228c74.de51aa43.js rel=prefetch><link href=/js/chunk-2d228d13.fd01b8af.js rel=prefetch><link href=/js/chunk-4267660e.f9d9d3b0.js rel=prefetch><link href=/js/chunk-4cdacada.03237d8d.js rel=prefetch><link href=/js/chunk-60539143.b68907f6.js rel=prefetch><link href=/js/chunk-64602fe8.c9479702.js rel=prefetch><link href=/js/chunk-664d53d7.31af7224.js rel=prefetch><link href=/js/chunk-6ce1d2bc.7290aca0.js rel=prefetch><link href=/js/chunk-78dfb9ad.ae6084e9.js rel=prefetch><link href=/js/chunk-7cdb2d7e.03214fc9.js rel=prefetch><link href=/js/chunk-84d3ed32.fec11c17.js rel=prefetch><link href=/js/chunk-98c49ca4.ce9efea7.js rel=prefetch><link href=/js/chunk-9e778c14.dde57a39.js rel=prefetch><link href=/js/chunk-b0eebb32.f944564a.js rel=prefetch><link href=/js/fail.be11ae0f.js rel=prefetch><link href=/css/app.dce6df2f.css rel=preload as=style><link href=/css/chunk-vendors.232285c0.css rel=preload as=style><link href=/js/app.6d7db240.js rel=preload as=script><link href=/js/chunk-vendors.68c92f9d.js rel=preload as=script><link href=/css/chunk-vendors.232285c0.css rel=stylesheet><link href=/css/app.dce6df2f.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.68c92f9d.js></script><script src=/js/app.6d7db240.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><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>

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

View File

@ -0,0 +1 @@
(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}}]);

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ba750a2"],{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,bodyStyle:{padding:"16px"}}},[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:"所有标签",bodyStyle:{padding:"16px"}}},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("7f7f"),e("d28d")),i={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.name?(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()):this.$notification["error"]({message:"提示",description:"标签名称不能为空!"})}}},s=i,l=e("2877"),c=Object(l["a"])(s,n,o,!1,null,null,null);a["default"]=c.exports},d28d: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}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0ba750a2"],{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("7364"),e("d28d")),i={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.name?(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()):this.$notification["error"]({message:"提示",description:"标签名称不能为空!"})}}},s=i,l=e("6691"),c=Object(l["a"])(s,n,o,!1,null,null,null);a["default"]=c.exports},d28d: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}}]);

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

View File

@ -0,0 +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}}]);

View File

@ -1 +0,0 @@
(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}},[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:"所有友情链接"}},[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("69a3"),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,m=n("6691"),k=Object(m["a"])(u,a,i,!1,null,"56d4c6ed",null);e["default"]=k.exports}}]);

View File

@ -1 +1 @@
(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("6bf2"),r=a.n(i),d=a("7fdf"),l=a("ed4e"),c=a("5a70"),g=a("2749"),p=a("47a9"),u=(a("2fef"),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)),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("6691"),b=Object(m["a"])(S,o,s,!1,null,null,null);e["default"]=b.exports}}]);
(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}}]);

View File

@ -1 +1 @@
(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("7364"),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("6691"),u=Object(p["a"])(c,e,n,!1,null,"8dab78e6",null);t["default"]=u.exports}}]);
(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}}]);

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

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64602fe8"],{1439:function(e,t,a){"use strict";var i=a("37d9"),n=a.n(i);n.a},"37d9":function(e,t,a){},ac2a:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[e._m(0),a("div",{staticClass:"loginBody animated"},[a("a-form",{attrs:{layout:"vertical"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}}},[a("a-form-item",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.1s"}},[a("a-input",{attrs:{placeholder:"用户名/邮箱"},model:{value:e.username,callback:function(t){e.username=t},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:e.password,callback:function(t){e.password=t},expression:"password"}},[a("a-icon",{staticStyle:{color:"rgba(0,0,0,.25)"},attrs:{slot:"prefix",type:"lock"},slot:"prefix"})],1)],1),a("a-row",[a("a-button",{staticClass:"animated fadeInUp",style:{"animation-delay":"0.3s"},attrs:{type:"primary",block:!0},on:{click:e.handleLogin}},[e._v("登录")])],1),a("a-row",[a("a",{staticClass:"tip animated fadeInUp",style:{"animation-delay":"0.4s"},on:{click:e.handleApiModifyModalOpen}},[e._v("\n API 设置\n ")])]),a("a-modal",{attrs:{title:"API 设置",visible:e.apiModifyVisible},on:{ok:e.handleApiModifyOk,cancel:e.handleApiModifyCancel}},[a("a-form",[a("a-form-item",{attrs:{extra:"如果 halo admin 不是独立部署,请不要更改此 API"}},[a("a-input",{model:{value:e.apiUrl,callback:function(t){e.apiUrl=t},expression:"apiUrl"}})],1),a("a-form-item",[a("a-button",{on:{click:e.handleApiUrlRestore}},[e._v("\n 恢复默认\n ")])],1)],1)],1)],1)],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"loginLogo animated fadeInUp"},[a("span",[e._v("Halo")])])}],r=(a("2338"),a("f763"),a("fb37"),a("34a3"),a("a506")),o=a("591a");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(a,!0).forEach(function(t){Object(r["a"])(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var c={data:function(){return{username:null,password:null,apiModifyVisible:!1,defaultApiBefore:window.location.protocol+"//",apiUrl:window.location.host}},computed:l({},Object(o["c"])({defaultApiUrl:"apiUrl"})),methods:l({},Object(o["b"])(["login","loadUser"]),{},Object(o["d"])({setApiUrl:"SET_API_URL",restoreApiUrl:"RESTORE_API_URL"}),{handleLogin:function(){var e=this;this.username?this.password?this.login({username:this.username,password:this.password}).then(function(t){e.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}})},p=c,d=(a("1439"),a("6691")),u=Object(d["a"])(p,i,n,!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

View File

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["fail"],{2254:function(t,e,s){"use strict";var n=s("5035"),i=s.n(n);i.a},5035: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"}})},i=[],a=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)])])},c=[],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("6691")),d=Object(u["a"])(l,a,c,!1,null,"230942b4",null),m=d.exports,g={components:{ExceptionPage:m}},f=g,v=Object(u["a"])(f,n,i,!1,null,"e319b3a6",null);e["default"]=v.exports}}]);
(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}}]);