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