feat: support set summary for sheet.

pull/467/head
ruibaby 2020-01-04 15:26:20 +08:00
parent 0ce380072e
commit ad4da6366b
41 changed files with 82 additions and 111 deletions

View File

@ -121,10 +121,4 @@ public class AdminController {
public BaseResponse<String> getLogFiles(@RequestParam("lines") Long lines) {
return BaseResponse.ok(HttpStatus.OK.getReasonPhrase(), adminService.getLogFiles(lines));
}
@GetMapping(value = "halo/logfile/download")
@ApiOperation("Downloads halo log file")
public void downloadLogFiles(@RequestParam("lines") Long lines, HttpServletResponse response) {
adminService.downloadLogFiles(lines, response);
}
}

View File

@ -1,4 +1,4 @@
package run.halo.app.event.comment;
package run.halo.app.listener.comment;
import cn.hutool.core.lang.Validator;
import cn.hutool.core.text.StrBuilder;
@ -7,6 +7,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import run.halo.app.event.comment.CommentNewEvent;
import run.halo.app.event.comment.CommentReplyEvent;
import run.halo.app.exception.ServiceException;
import run.halo.app.model.entity.*;
import run.halo.app.model.properties.CommentProperties;

View File

@ -1,4 +1,4 @@
package run.halo.app.event.freemarker;
package run.halo.app.listener.freemarker;
import freemarker.template.Configuration;
import freemarker.template.TemplateModelException;

View File

@ -1,8 +1,9 @@
package run.halo.app.event.logger;
package run.halo.app.listener.logger;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import run.halo.app.event.logger.LogEvent;
import run.halo.app.model.entity.Log;
import run.halo.app.service.LogService;

View File

@ -1,8 +1,9 @@
package run.halo.app.event.post;
package run.halo.app.listener.post;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.Assert;
import run.halo.app.event.post.AbstractVisitEvent;
import run.halo.app.service.base.BasePostService;
import java.util.Map;

View File

@ -1,8 +1,9 @@
package run.halo.app.event.post;
package run.halo.app.listener.post;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import run.halo.app.event.post.PostVisitEvent;
import run.halo.app.service.PostService;
/**

View File

@ -1,8 +1,9 @@
package run.halo.app.event.post;
package run.halo.app.listener.post;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import run.halo.app.event.post.SheetVisitEvent;
import run.halo.app.service.SheetService;
/**

View File

@ -1,9 +1,10 @@
package run.halo.app.event.theme;
package run.halo.app.listener.theme;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import run.halo.app.cache.StringCacheStore;
import run.halo.app.event.options.OptionUpdatedEvent;
import run.halo.app.event.theme.ThemeUpdatedEvent;
import run.halo.app.service.ThemeService;
/**

View File

@ -36,6 +36,8 @@ public class SheetParam implements InputConverter<Sheet> {
private String originalContent;
private String summary;
@Size(max = 255, message = "页面缩略图链接的字符长度不能超过 {max}")
private String thumbnail;

View File

@ -109,11 +109,4 @@ public interface AdminService {
* @return logs content.
*/
String getLogFiles(@NonNull Long lines);
/**
* Download halo log file.
*
* @param lines lines.
*/
void downloadLogFiles(@NonNull Long lines, @NonNull HttpServletResponse response);
}

View File

@ -524,29 +524,4 @@ public class AdminServiceImpl implements AdminService {
}
return result.toString();
}
@Override
public void downloadLogFiles(Long lines, HttpServletResponse response) {
Assert.notNull(lines, "Lines must not be null");
Assert.notNull(response, "HttpServletResponse must not be null");
String logFiles = getLogFiles(lines);
String fileName = "halo-log-" +
DateUtil.format(DateUtil.date(), "yyyy-MM-dd-HH-mm-ss") +
".log";
response.setContentType("application/force-download");
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
ServletOutputStream outputStream;
BufferedOutputStream bufferedOutputStream;
try {
outputStream = response.getOutputStream();
bufferedOutputStream = new BufferedOutputStream(outputStream);
bufferedOutputStream.write(logFiles.getBytes(StandardCharsets.UTF_8));
bufferedOutputStream.flush();
bufferedOutputStream.close();
outputStream.close();
} catch (IOException e) {
throw new ServiceException("日志下载失败", e);
}
}
}

View File

@ -1,4 +1,4 @@
#app{height:100%}.header-comment[data-v-0a9623a1]{display:inline-block;-webkit-transition:all .3s;transition:all .3s}.header-comment span[data-v-0a9623a1]{vertical-align:initial}.setting-drawer-index-item[data-v-e773bc98]{margin-bottom:24px}.setting-drawer-index-item .setting-drawer-index-title[data-v-e773bc98]{font-size:14px;color:rgba(0,0,0,.85);line-height:22px;margin-bottom:12px}.setting-drawer-index-content .setting-drawer-index-blockChecbox[data-v-6900ff4b]{display:-webkit-box;display:-ms-flexbox;display:flex}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item[data-v-6900ff4b]{margin-right:16px;position:relative;border-radius:4px;cursor:pointer}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item img[data-v-6900ff4b]{width:48px}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item .setting-drawer-index-selectIcon[data-v-6900ff4b]{position:absolute;top:0;right:0;width:100%;padding-top:15px;padding-left:24px;height:100%;color:#1890ff;font-size:14px;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock[data-v-6900ff4b]{width:20px;height:20px;border-radius:2px;float:left;cursor:pointer;margin-right:8px;padding-left:0;padding-right:0;text-align:center;color:#fff;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock i[data-v-6900ff4b]{font-size:14px}.setting-drawer-index-handle[data-v-6900ff4b]{position:absolute;top:240px;background:#1890ff;width:48px;height:48px;right:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;pointer-events:auto;z-index:1001;text-align:center;font-size:16px;border-radius:4px 0 0 4px}.setting-drawer-index-handle i[data-v-6900ff4b]{color:#fff;font-size:20px}.header-animat{position:relative;z-index:999}.showHeader-enter-active{-webkit-transition:all .25s ease;transition:all .25s ease}.showHeader-leave-active{-webkit-transition:all .5s ease;transition:all .5s ease}.showHeader-enter,.showHeader-leave-to{opacity:0}
#app{height:100%}.header-comment[data-v-193866f2]{display:inline-block;-webkit-transition:all .3s;transition:all .3s}.header-comment span[data-v-193866f2]{vertical-align:initial}.setting-drawer-index-item[data-v-e773bc98]{margin-bottom:24px}.setting-drawer-index-item .setting-drawer-index-title[data-v-e773bc98]{font-size:14px;color:rgba(0,0,0,.85);line-height:22px;margin-bottom:12px}.setting-drawer-index-content .setting-drawer-index-blockChecbox[data-v-6900ff4b]{display:-webkit-box;display:-ms-flexbox;display:flex}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item[data-v-6900ff4b]{margin-right:16px;position:relative;border-radius:4px;cursor:pointer}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item img[data-v-6900ff4b]{width:48px}.setting-drawer-index-content .setting-drawer-index-blockChecbox .setting-drawer-index-item .setting-drawer-index-selectIcon[data-v-6900ff4b]{position:absolute;top:0;right:0;width:100%;padding-top:15px;padding-left:24px;height:100%;color:#1890ff;font-size:14px;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock[data-v-6900ff4b]{width:20px;height:20px;border-radius:2px;float:left;cursor:pointer;margin-right:8px;padding-left:0;padding-right:0;text-align:center;color:#fff;font-weight:700}.setting-drawer-index-content .setting-drawer-theme-color-colorBlock i[data-v-6900ff4b]{font-size:14px}.setting-drawer-index-handle[data-v-6900ff4b]{position:absolute;top:240px;background:#1890ff;width:48px;height:48px;right:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;pointer-events:auto;z-index:1001;text-align:center;font-size:16px;border-radius:4px 0 0 4px}.setting-drawer-index-handle i[data-v-6900ff4b]{color:#fff;font-size:20px}.header-animat{position:relative;z-index:999}.showHeader-enter-active{-webkit-transition:all .25s ease;transition:all .25s ease}.showHeader-leave-active{-webkit-transition:all .5s ease;transition:all .5s ease}.showHeader-enter,.showHeader-leave-to{opacity:0}
/*!
* animate.css -https://daneden.github.io/animate.css/
* Version - 3.7.2

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 @@
<!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 1.2.0-beta.1"><link rel=icon href=/logo.png><title>Halo Dashboard</title><style>body {height: 100%;background-color: #f5f5f5;}#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-0b44f908.c76aeee1.css rel=prefetch><link href=/css/chunk-7e9c61cd.e32891ce.css rel=prefetch><link href=/css/chunk-8adae550.ae3f2f3c.css rel=prefetch><link href=/css/chunk-966610cc.be194fd2.css rel=prefetch><link href=/css/chunk-db4f48dc.e76ee991.css rel=prefetch><link href=/js/chunk-0b44f908.fe3fdb7b.js rel=prefetch><link href=/js/chunk-0ba750a2.36dba82e.js rel=prefetch><link href=/js/chunk-17f8cd22.09e40d76.js rel=prefetch><link href=/js/chunk-27659703.add4cf72.js rel=prefetch><link href=/js/chunk-2d0b383e.82d6b51b.js rel=prefetch><link href=/js/chunk-2d0b64bf.bad5ed95.js rel=prefetch><link href=/js/chunk-2d0b8b03.a4c7e359.js rel=prefetch><link href=/js/chunk-2d0cf13d.1b499c89.js rel=prefetch><link href=/js/chunk-2d213307.94cde3f0.js rel=prefetch><link href=/js/chunk-2d2165e6.9d31a9c5.js rel=prefetch><link href=/js/chunk-2d21a35c.22d0ac7d.js rel=prefetch><link href=/js/chunk-2d221c57.1b5fa6e7.js rel=prefetch><link href=/js/chunk-2d228c74.f1bd3706.js rel=prefetch><link href=/js/chunk-2d228d13.838d3129.js rel=prefetch><link href=/js/chunk-37a26d88.3ec46813.js rel=prefetch><link href=/js/chunk-5889a1fc.d867b3ce.js rel=prefetch><link href=/js/chunk-595876d0.bf8719be.js rel=prefetch><link href=/js/chunk-5b9394ac.01c86592.js rel=prefetch><link href=/js/chunk-664d53d7.fa2503ec.js rel=prefetch><link href=/js/chunk-6709ac89.f1b8f52f.js rel=prefetch><link href=/js/chunk-76ee4b7f.ddf772cd.js rel=prefetch><link href=/js/chunk-7e9c61cd.3a35bbdc.js rel=prefetch><link href=/js/chunk-8adae550.01382706.js rel=prefetch><link href=/js/chunk-966610cc.e735d4d4.js rel=prefetch><link href=/js/chunk-db4f48dc.fcdb168a.js rel=prefetch><link href=/js/chunk-ddaf34b4.4649d126.js rel=prefetch><link href=/js/chunk-ec5bbb3c.5718f87a.js rel=prefetch><link href=/js/chunk-f04cc1dc.02044b19.js rel=prefetch><link href=/css/app.1e25fd40.css rel=preload as=style><link href=/css/chunk-vendors.aa27b70b.css rel=preload as=style><link href=/js/app.f37c0a65.js rel=preload as=script><link href=/js/chunk-vendors.20322a1f.js rel=preload as=script><link href=/css/chunk-vendors.aa27b70b.css rel=stylesheet><link href=/css/app.1e25fd40.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=//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js></script><script src=//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js></script><script src=//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js></script><script src=//cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js></script><script src=/js/chunk-vendors.20322a1f.js></script><script src=/js/app.f37c0a65.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 1.2.0-beta.1"><link rel=icon href=/logo.png><title>Halo Dashboard</title><style>body {height: 100%;background-color: #f5f5f5;}#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-0b44f908.c76aeee1.css rel=prefetch><link href=/css/chunk-7e9c61cd.e32891ce.css rel=prefetch><link href=/css/chunk-8adae550.ae3f2f3c.css rel=prefetch><link href=/css/chunk-966610cc.be194fd2.css rel=prefetch><link href=/css/chunk-db4f48dc.e76ee991.css rel=prefetch><link href=/js/chunk-0b44f908.f12a9304.js rel=prefetch><link href=/js/chunk-0ba750a2.36dba82e.js rel=prefetch><link href=/js/chunk-17f8cd22.d9d33f34.js rel=prefetch><link href=/js/chunk-27659703.41e2d7d3.js rel=prefetch><link href=/js/chunk-2d0b383e.82d6b51b.js rel=prefetch><link href=/js/chunk-2d0b64bf.63819e4d.js rel=prefetch><link href=/js/chunk-2d0b8b03.a4c7e359.js rel=prefetch><link href=/js/chunk-2d0cf13d.1b499c89.js rel=prefetch><link href=/js/chunk-2d213307.3904ea28.js rel=prefetch><link href=/js/chunk-2d2165e6.5de3e90d.js rel=prefetch><link href=/js/chunk-2d21a35c.debf64b7.js rel=prefetch><link href=/js/chunk-2d221c57.1b5fa6e7.js rel=prefetch><link href=/js/chunk-2d228c74.f1bd3706.js rel=prefetch><link href=/js/chunk-2d228d13.838d3129.js rel=prefetch><link href=/js/chunk-37a26d88.3ec46813.js rel=prefetch><link href=/js/chunk-5889a1fc.afa1ca7e.js rel=prefetch><link href=/js/chunk-595876d0.50362aa9.js rel=prefetch><link href=/js/chunk-5b9394ac.7d56309b.js rel=prefetch><link href=/js/chunk-664d53d7.fa2503ec.js rel=prefetch><link href=/js/chunk-6709ac89.4e20c0f4.js rel=prefetch><link href=/js/chunk-76ee4b7f.91f6c80d.js rel=prefetch><link href=/js/chunk-7e9c61cd.3a35bbdc.js rel=prefetch><link href=/js/chunk-8adae550.01382706.js rel=prefetch><link href=/js/chunk-966610cc.e735d4d4.js rel=prefetch><link href=/js/chunk-db4f48dc.fcdb168a.js rel=prefetch><link href=/js/chunk-ddaf34b4.4649d126.js rel=prefetch><link href=/js/chunk-ec5bbb3c.5718f87a.js rel=prefetch><link href=/js/chunk-f04cc1dc.02044b19.js rel=prefetch><link href=/css/app.5d8e0a5f.css rel=preload as=style><link href=/css/chunk-vendors.77d07287.css rel=preload as=style><link href=/js/app.cd7f4e70.js rel=preload as=script><link href=/js/chunk-vendors.03b09846.js rel=preload as=script><link href=/css/chunk-vendors.77d07287.css rel=stylesheet><link href=/css/app.5d8e0a5f.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=//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js></script><script src=//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js></script><script src=//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js></script><script src=//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js></script><script src=//cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js></script><script src=/js/chunk-vendors.03b09846.js></script><script src=/js/app.cd7f4e70.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

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-2d2165e6"],{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:"新密码",autocomplete:"new-password"},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:"确认密码",autocomplete:"new-password"},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;if(this.resetParam.username)if(this.resetParam.email){var e=this.$message.loading("发送中...",0);i["a"].sendResetCode(this.resetParam).then((function(e){a.$message.info("邮件发送成功,五分钟内有效")})).finally((function(){e()}))}else this.$notification["error"]({message:"提示",description:"邮箱不能为空!"});else 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("2877"),c=Object(l["a"])(n,s,r,!1,null,null,null);e["default"]=c.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2165e6"],{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("2877"),c=Object(l["a"])(n,s,r,!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

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