1 line
4.7 KiB
JavaScript
1 line
4.7 KiB
JavaScript
|
|
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[5],{15:function(e,t,n){"use strict";var c=n(0),a=n.n(c).a.createContext({theme:"light",toggleTheme:function(){}});t.a=a},29:function(e,t,n){},30:function(e,t,n){},31:function(e,t,n){},37:function(e,t,n){},38:function(e,t,n){"use strict";n.r(t);var c=n(0),a=n.n(c),o=n(20),r=n.n(o),i=(n(29),n(11)),l=n(12),s=n(14),h=n(13),d=n(8),j=(n(30),n(15)),b="\u6211\u7684\u8d26\u672c",u="v0.0.1",m="https://github.com/BaoXuebin/beancount-gs",x="https://www.yuque.com/chuyi-ble7p/beancount-ns",O="https://github.com/BaoXuebin/beancount-gs/issues",g=(n(31),n(1)),p=function(e){Object(s.a)(n,e);var t=Object(h.a)(n);function n(){var e;Object(i.a)(this,n);for(var c=arguments.length,a=new Array(c),o=0;o<c;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).handleOut=function(){localStorage.clear(),window.location.href="/web/#/ledger"},e}return Object(l.a)(n,[{key:"render",value:function(){var e=this.context.theme,t=window.localStorage.getItem("ledgerTitle")||b;return Object(g.jsx)("div",{className:"".concat(e,"-theme"),children:Object(g.jsxs)("div",{className:"wrapper",children:[Object(g.jsx)("header",{children:Object(g.jsx)("nav",{className:"navbar",children:Object(g.jsxs)("div",{className:"container",children:[Object(g.jsx)("div",{className:"navbar-header header-logo",to:"/",children:Object(g.jsx)(d.b,{to:"/",children:t})}),Object(g.jsxs)("div",{className:"menu navbar-right",children:[Object(g.jsx)(d.b,{to:"/account",children:"\u8d26\u6237"}),Object(g.jsx)(d.b,{to:"/stats",children:"\u7edf\u8ba1"}),Object(g.jsx)("a",{onClick:this.handleOut,children:"\u9000\u51fa"}),Object(g.jsx)("a",{href:m,children:Object(g.jsx)("img",{src:"https://img.shields.io/github/stars/BaoXuebin/beancount-gs?style=social"})})]})]})})}),Object(g.jsx)("div",{className:"main",children:Object(g.jsx)("div",{className:"main-wrap",children:this.props.children})}),Object(g.jsx)("footer",{className:"footer",children:Object(g.jsxs)("div",{className:"copyright",children:["\xa9 2021\xa0\xa0",u,"\xa0\xa0",Object(g.jsx)("a",{href:x,target:"_blank",children:"\u4f7f\u7528\u6587\u6863"}),"\xa0\xa0",Object(g.jsx)("a",{href:O,target:"_blank",children:"\u53cd\u9988BUG"}),"\xa0\xa0"]})})]})})}}]),n}(c.Component);p.contextType=j.a;var f=p,v=n(7),w=n.n(v),y=n(2),N=(n(37),function(){return Object(g.jsx)("div",{style:{width:"100%"},className:"lds-rolling",children:Object(g.jsx)("div",{})})}),k=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(3),n.e(4),n.e(13)]).then(n.bind(null,474))},loading:N}),P=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(8)]).then(n.bind(null,475))},loading:N}),B=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(9)]).then(n.bind(null,473))},loading:N}),T=w()({loader:function(){return n.e(14).then(n.bind(null,470))},loading:N}),S=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(10)]).then(n.bind(null,477))},loading:N}),C=w()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(7),n.e(15)]).then(n.bind(null,471))},loading:N}),A=w()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(12)]).then(n.bind(null,472))},loading:N}),I=function(){return Object(g.jsx)(a.a.Fragment,{children:Object(g.jsxs)(y.c,{children:[Object(g.jsx)(y.a,{exact:!0,path:"/",component:P}),Object(g.jsx)(y.a,{exact:!0,path:"/init",component:A}),Object(g.jsx)(y.a,{exact:!0,path:"/ledger",component:k}),Object(g.jsx)(y.a,{exact:!0,path:"/account",component:B}),Object(g.jsx)(y.a,{exact:!0,path:"/about",component:T}),Object(g.jsx)(y.a,{exact:!0,path:"/edit",component:C}),Object(g.jsx)(y.a,{exact:!0,path:"/stats",component:S}),Object(g.jsx)(y.a,{component:P})]})})},X=function(e){Object(s.a)(n,e);var t=Object(h.a)(n);function n(){var e;Object(i.a)(this,n);for(var c=arguments.length,a=new Array(c),o=0;o<c;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={theme:localStorage.getItem("theme")||"light"},e.toggleTheme=function(t){e.setState({theme:t})},e}return Object(l.a)(n,[{key:"render",value:
|