From b9a6bca502c9e821eb705bbf35c001e9b791ffa2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Nov 2019 00:00:48 +0800 Subject: [PATCH] update --- public/p__login.async.js | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/p__login.async.js b/public/p__login.async.js index 3e61f71a..d8925899 100644 --- a/public/p__login.async.js +++ b/public/p__login.async.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{SGa5:function(e,t,a){"use strict";a.r(t);a("/zsF");var s=a("PArb"),n=(a("Pwec"),a("CtXQ")),o=a("q1tI"),l=a.n(o),r=a("/MKj"),c=a("3a4m"),i=a.n(c);a("t3Un");class m extends l.a.Component{constructor(){super(...arguments),this.state={loading:!1}}componentDidMount(){}onLogin(){this.setState({loading:!0}),this.props.dispatch({type:"auth/login",action:{email:this.refs.email.value,password:this.refs.password.value},complete:e=>{if(console.log(e.code),200!==e.code)return this.setState({loading:!1});e.data&&(this.setState({loading:!1}),i.a.push("/dashboard"),this.props.dispatch({type:"header/getUserInfo"}))}})}render(){return l.a.createElement("div",{id:"page-container"},l.a.createElement("main",{id:"main-container"},l.a.createElement("div",{className:"row no-gutters justify-content-center bg-body-dark"},l.a.createElement("div",{className:"hero-static col-sm-10 col-md-6 col-xl-4 d-flex align-items-center p-2"},l.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image"},l.a.createElement("div",{className:"row no-gutters"},l.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},l.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},l.a.createElement("div",{className:"mb-2 text-center"},l.a.createElement("a",{className:"link-fx font-w700 font-size-h1",href:"index.html"},l.a.createElement("span",{className:"text-dark"},window.v2board.title?window.v2board.title:"V2Board")),l.a.createElement("p",{className:"text-uppercase font-w700 font-size-sm text-muted"},"\u8be5\u9875\u9762\u662f\u88ab\u52a0\u5bc6\u7684")),l.a.createElement("div",{className:"form-group"},l.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),l.a.createElement("div",{className:"form-group"},l.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),l.a.createElement("div",{className:"form-group"},l.a.createElement("button",{disabled:this.state.loading,type:"submit",className:"btn btn-block btn-hero-primary",onClick:()=>this.onLogin()},this.state.loading?l.a.createElement(n["a"],{type:"loading"}):l.a.createElement("span",null,l.a.createElement("i",{className:"fa fa-fw fa-sign-in-alt mr-1"}),"\u767b\u9646")),l.a.createElement("div",{className:"text-center mt-3"},l.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>i.a.push("/register")},"\u6ce8\u518c"),l.a.createElement(s["a"],{type:"vertical"}),l.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>i.a.push("/forgetpassword")},"\u5fd8\u8bb0\u5bc6\u7801")))))))))))}}t["default"]=Object(r["c"])()(m)}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{SGa5:function(e,t,a){"use strict";a.r(t);a("/zsF");var n=a("PArb"),o=(a("Pwec"),a("CtXQ")),s=a("q1tI"),r=a.n(s),l=a("/MKj"),c=a("3a4m"),i=a.n(c);a("t3Un");class m extends r.a.Component{constructor(){super(...arguments),this.state={loading:!1}}keyDown(e){13===e.keyCode&&this.onLogin()}componentDidMount(){window.addEventListener("keydown",this.keyDown.bind(this))}componentWillMount(){window.removeEventListener("keydown",this.keyDown.bind(this))}onLogin(){this.setState({loading:!0}),this.props.dispatch({type:"auth/login",action:{email:this.refs.email.value,password:this.refs.password.value},complete:e=>{if(console.log(e.code),200!==e.code)return this.setState({loading:!1});e.data&&(this.setState({loading:!1}),i.a.push("/dashboard"),this.props.dispatch({type:"header/getUserInfo"}))}})}render(){return r.a.createElement("div",{id:"page-container"},r.a.createElement("main",{id:"main-container"},r.a.createElement("div",{className:"row no-gutters justify-content-center bg-body-dark"},r.a.createElement("div",{className:"hero-static col-sm-10 col-md-6 col-xl-4 d-flex align-items-center p-2"},r.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image"},r.a.createElement("div",{className:"row no-gutters"},r.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},r.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},r.a.createElement("div",{className:"mb-2 text-center"},r.a.createElement("a",{className:"link-fx font-w700 font-size-h1",href:"index.html"},r.a.createElement("span",{className:"text-dark"},window.v2board.title?window.v2board.title:"V2Board")),r.a.createElement("p",{className:"text-uppercase font-w700 font-size-sm text-muted"},"\u8be5\u9875\u9762\u662f\u88ab\u52a0\u5bc6\u7684")),r.a.createElement("div",{className:"form-group"},r.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),r.a.createElement("div",{className:"form-group"},r.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),r.a.createElement("div",{className:"form-group"},r.a.createElement("button",{disabled:this.state.loading,type:"submit",className:"btn btn-block btn-hero-primary",onClick:()=>this.onLogin()},this.state.loading?r.a.createElement(o["a"],{type:"loading"}):r.a.createElement("span",null,r.a.createElement("i",{className:"fa fa-fw fa-sign-in-alt mr-1"}),"\u767b\u9646")),r.a.createElement("div",{className:"text-center mt-3"},r.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>i.a.push("/register")},"\u6ce8\u518c"),r.a.createElement(n["a"],{type:"vertical"}),r.a.createElement("a",{className:"font-w700 font-size-sm text-muted",href:"javascript:;",onClick:()=>i.a.push("/forgetpassword")},"\u5fd8\u8bb0\u5bc6\u7801")))))))))))}}t["default"]=Object(l["c"])()(m)}}]); \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 0df18e02..f87a3c31 100755 --- a/routes/web.php +++ b/routes/web.php @@ -15,6 +15,6 @@ Route::get('/', function () { return view('app', [ 'title' => config('v2board.app_name', 'V2Board'), 'theme' => config('v2board.app_theme', 1), - 'verison' => '0.1.7' + 'verison' => '0.1.8' ]); });