1 line
6.6 KiB
JavaScript
1 line
6.6 KiB
JavaScript
|
|
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[5],{103:function(e,t,n){},104:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),c=n(23),a=n.n(c),i=(n(93),n(40)),s=n(41),l=n(43),h=n(42),u=n(28),d=(n(94),n(44)),b="\u6211\u7684\u8d26\u672c",j="https://github.com/BaoXuebin/beancount-gs",m="https://www.yuque.com/chuyi-ble7p/beancount-gs",g="https://github.com/BaoXuebin/beancount-gs/issues",f=n(60),p=(n(98),n(3)),O=function(e){Object(l.a)(n,e);var t=Object(h.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return(e=t.call.apply(t,[this].concat(o))).state={version:""},e.handleOut=function(){localStorage.clear(),window.location.href="/web/#/ledger"},e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){var e=this;Object(f.b)("/api/version").then((function(t){localStorage.setItem("version",t),e.setState({version:t})}))}},{key:"render",value:function(){var e=this.context.theme,t=window.localStorage.getItem("ledgerTitle")||b;return Object(p.jsx)("div",{className:"".concat(e,"-theme"),children:Object(p.jsxs)("div",{className:"wrapper",children:[Object(p.jsx)("header",{children:Object(p.jsx)("nav",{className:"navbar",children:Object(p.jsxs)("div",{className:"container",children:[Object(p.jsx)("div",{className:"navbar-header header-logo",to:"/",children:Object(p.jsx)(u.b,{to:"/",children:t})}),Object(p.jsxs)("div",{className:"menu navbar-right",children:[Object(p.jsx)(u.b,{to:"/account",children:"\u8d26\u6237"}),Object(p.jsx)(u.b,{to:"/stats",children:"\u7edf\u8ba1"}),Object(p.jsx)("a",{onClick:this.handleOut,children:"\u9000\u51fa"}),Object(p.jsx)("a",{href:j,children:Object(p.jsx)("img",{src:"https://img.shields.io/github/stars/BaoXuebin/beancount-gs?style=social"})})]})]})})}),Object(p.jsx)("div",{className:"main",children:Object(p.jsx)("div",{className:"main-wrap",children:this.props.children})}),Object(p.jsx)("footer",{className:"footer",children:Object(p.jsxs)("div",{className:"copyright",children:["\xa9 2021\xa0\xa0",this.state.version,"\xa0\xa0",Object(p.jsx)("a",{href:m,target:"_blank",children:"\u4f7f\u7528\u6587\u6863"}),"\xa0\xa0",Object(p.jsx)("a",{href:g,target:"_blank",children:"\u53cd\u9988BUG"}),"\xa0\xa0"]})})]})})}}]),n}(r.Component);O.contextType=d.a;var x=O,v=n(25),w=n.n(v),y=n(7),N=(n(103),function(){return Object(p.jsx)("div",{style:{width:"100%"},className:"lds-rolling",children:Object(p.jsx)("div",{})})}),k=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(3),n.e(4),n.e(14)]).then(n.bind(null,477))},loading:N}),P=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(8)]).then(n.bind(null,478))},loading:N}),S=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(9)]).then(n.bind(null,479))},loading:N}),I=w()({loader:function(){return n.e(15).then(n.bind(null,474))},loading:N}),T=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(11)]).then(n.bind(null,481))},loading:N}),B=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(7),n.e(17)]).then(n.bind(null,475))},loading:N}),C=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(13)]).then(n.bind(null,476))},loading:N}),A=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(12),n.e(16)]).then(n.bind(null,483))},loading:N}),E=function(){return Object(p.jsx)(o.a.Fragment,{children:Object(p.jsxs)(y.c,{children:[Object(p.jsx)(y.a,{exact:!0,path:"/",component:P}),Object(p.jsx)(y.a,{exact:!0,path:"/init",component:C}),Object(p.jsx)(y.a,{exact:!0,path:"/ledger",component:k}),Object(p.jsx)(y.a,{exact:!0,path:"/account",component:S}),Object(p.jsx)(y.a,{exact:!0,path:"/about",component:I}),Object(p.jsx)(y.a,{exact:!0,path:"/edit",component:B}),Object(p.jsx)(y.a,{exact:!0,path:"/stats",component:T}),Object(p.jsx)(y.a,{exact:!0,path:"/import",component:A}),Object(p.jsx)(y.a,{component:P})]})})},J=function(e){Object(l.a)(n,e);var t=Object(h.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[
|