update webview

This commit is contained in:
BaoXuebin 2021-12-01 17:34:07 +08:00
parent 251afdb798
commit 6de13a6462
41 changed files with 53 additions and 49 deletions

View File

@ -1,36 +1,38 @@
{ {
"files": { "files": {
"static/js/0.23fa9f66.chunk.js": "/web/static/js/0.23fa9f66.chunk.js", "static/js/0.dc71f259.chunk.js": "/web/static/js/0.dc71f259.chunk.js",
"static/js/1.f4906eca.chunk.js": "/web/static/js/1.f4906eca.chunk.js", "static/js/1.5ff06bf1.chunk.js": "/web/static/js/1.5ff06bf1.chunk.js",
"static/js/2.6066aece.chunk.js": "/web/static/js/2.6066aece.chunk.js", "static/js/2.db2f3ca0.chunk.js": "/web/static/js/2.db2f3ca0.chunk.js",
"static/js/3.e3eeeb91.chunk.js": "/web/static/js/3.e3eeeb91.chunk.js", "static/js/3.94470557.chunk.js": "/web/static/js/3.94470557.chunk.js",
"main.css": "/web/static/css/main.36a187a3.chunk.css", "main.css": "/web/static/css/main.138b4a6f.chunk.css",
"main.js": "/web/static/js/main.63589649.chunk.js", "main.js": "/web/static/js/main.a598b99e.chunk.js",
"runtime-main.js": "/web/static/js/runtime-main.4e9fa4f7.js", "runtime-main.js": "/web/static/js/runtime-main.b4cd7c26.js",
"static/css/6.9221b8e1.chunk.css": "/web/static/css/6.9221b8e1.chunk.css", "static/css/6.9221b8e1.chunk.css": "/web/static/css/6.9221b8e1.chunk.css",
"static/js/6.0d10fa11.chunk.js": "/web/static/js/6.0d10fa11.chunk.js", "static/js/6.1af07943.chunk.js": "/web/static/js/6.1af07943.chunk.js",
"static/css/7.97dd6d72.chunk.css": "/web/static/css/7.97dd6d72.chunk.css", "static/css/7.97dd6d72.chunk.css": "/web/static/css/7.97dd6d72.chunk.css",
"static/js/7.99247dc3.chunk.js": "/web/static/js/7.99247dc3.chunk.js", "static/js/7.679af063.chunk.js": "/web/static/js/7.679af063.chunk.js",
"static/css/8.f0a90ddf.chunk.css": "/web/static/css/8.f0a90ddf.chunk.css", "static/js/8.82ba8cf0.chunk.js": "/web/static/js/8.82ba8cf0.chunk.js",
"static/js/8.9a16b342.chunk.js": "/web/static/js/8.9a16b342.chunk.js", "static/js/9.256591c9.chunk.js": "/web/static/js/9.256591c9.chunk.js",
"static/js/9.b3c4a2d2.chunk.js": "/web/static/js/9.b3c4a2d2.chunk.js", "static/css/10.f0a90ddf.chunk.css": "/web/static/css/10.f0a90ddf.chunk.css",
"static/js/10.51e8bb87.chunk.js": "/web/static/js/10.51e8bb87.chunk.js", "static/js/10.b1068681.chunk.js": "/web/static/js/10.b1068681.chunk.js",
"static/css/11.d211b268.chunk.css": "/web/static/css/11.d211b268.chunk.css", "static/js/11.149e9590.chunk.js": "/web/static/js/11.149e9590.chunk.js",
"static/js/11.bafe93e4.chunk.js": "/web/static/js/11.bafe93e4.chunk.js", "static/css/12.d211b268.chunk.css": "/web/static/css/12.d211b268.chunk.css",
"static/css/12.0e433876.chunk.css": "/web/static/css/12.0e433876.chunk.css", "static/js/12.dc57c0c5.chunk.js": "/web/static/js/12.dc57c0c5.chunk.js",
"static/js/12.8024c82d.chunk.js": "/web/static/js/12.8024c82d.chunk.js", "static/css/13.0e433876.chunk.css": "/web/static/css/13.0e433876.chunk.css",
"static/js/13.3a9d2d0c.chunk.js": "/web/static/js/13.3a9d2d0c.chunk.js", "static/js/13.8f2e6ecb.chunk.js": "/web/static/js/13.8f2e6ecb.chunk.js",
"static/js/14.99e5656c.chunk.js": "/web/static/js/14.99e5656c.chunk.js", "static/js/14.76efc38a.chunk.js": "/web/static/js/14.76efc38a.chunk.js",
"static/js/15.9eb98c4d.chunk.js": "/web/static/js/15.9eb98c4d.chunk.js",
"static/js/16.e1595fcb.chunk.js": "/web/static/js/16.e1595fcb.chunk.js",
"index.html": "/web/index.html", "index.html": "/web/index.html",
"static/js/0.23fa9f66.chunk.js.LICENSE.txt": "/web/static/js/0.23fa9f66.chunk.js.LICENSE.txt", "static/js/0.dc71f259.chunk.js.LICENSE.txt": "/web/static/js/0.dc71f259.chunk.js.LICENSE.txt",
"static/js/10.51e8bb87.chunk.js.LICENSE.txt": "/web/static/js/10.51e8bb87.chunk.js.LICENSE.txt", "static/js/6.1af07943.chunk.js.LICENSE.txt": "/web/static/js/6.1af07943.chunk.js.LICENSE.txt",
"static/js/11.bafe93e4.chunk.js.LICENSE.txt": "/web/static/js/11.bafe93e4.chunk.js.LICENSE.txt", "static/js/8.82ba8cf0.chunk.js.LICENSE.txt": "/web/static/js/8.82ba8cf0.chunk.js.LICENSE.txt",
"static/js/6.0d10fa11.chunk.js.LICENSE.txt": "/web/static/js/6.0d10fa11.chunk.js.LICENSE.txt" "static/js/9.256591c9.chunk.js.LICENSE.txt": "/web/static/js/9.256591c9.chunk.js.LICENSE.txt"
}, },
"entrypoints": [ "entrypoints": [
"static/js/runtime-main.4e9fa4f7.js", "static/js/runtime-main.b4cd7c26.js",
"static/js/10.51e8bb87.chunk.js", "static/js/9.256591c9.chunk.js",
"static/css/main.36a187a3.chunk.css", "static/css/main.138b4a6f.chunk.css",
"static/js/main.63589649.chunk.js" "static/js/main.a598b99e.chunk.js"
] ]
} }

View File

@ -1 +1 @@
<!doctype html><html lang="zh"><head><meta charset="utf-8"/><link rel="icon" href="/web/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/web/logo192.png"/><link rel="manifest" href="/web/manifest.json"/><title>我的账本</title><link href="/web/static/css/main.36a187a3.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],i=t[1],f=t[2],l=0,s=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(d&&d(t);s.length;)s.shift()();return c.push.apply(c,f||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{6:1,7:1,8:1,11:1,12:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",6:"9221b8e1",7:"97dd6d72",8:"f0a90ddf",9:"31d6cfe0",11:"d211b268",12:"0e433876",13:"31d6cfe0",14:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(d=c[i]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===n||f===a))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){var d;if((f=(d=l[i]).getAttribute("data-href"))===n||f===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"23fa9f66",1:"f4906eca",2:"6066aece",3:"e3eeeb91",6:"0d10fa11",7:"99247dc3",8:"9a16b342",9:"b3c4a2d2",11:"bafe93e4",12:"8024c82d",13:"3a9d2d0c",14:"99e5656c"}[e]+".chunk.js"}(e);var f=new Error;c=function(t){i.onerror=i.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:i})}),12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/web/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var d=f;r()}([])</script><script src="/web/static/js/10.51e8bb87.chunk.js"></script><script src="/web/static/js/main.63589649.chunk.js"></script></body></html> <!doctype html><html lang="zh"><head><meta charset="utf-8"/><link rel="icon" href="/web/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/web/logo192.png"/><link rel="manifest" href="/web/manifest.json"/><title>我的账本</title><link href="/web/static/css/main.138b4a6f.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],l=0,s=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(d&&d(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{6:1,7:1,10:1,12:1,13:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",6:"9221b8e1",7:"97dd6d72",8:"31d6cfe0",10:"f0a90ddf",11:"31d6cfe0",12:"d211b268",13:"0e433876",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(d=c[f]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(i===n||i===a))return t()}var l=document.getElementsByTagName("style");for(f=0;f<l.length;f++){var d;if((i=(d=l[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"dc71f259",1:"5ff06bf1",2:"db2f3ca0",3:"94470557",6:"1af07943",7:"679af063",8:"82ba8cf0",10:"b1068681",11:"149e9590",12:"dc57c0c5",13:"8f2e6ecb",14:"76efc38a",15:"9eb98c4d",16:"e1595fcb"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/web/",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var d=i;r()}([])</script><script src="/web/static/js/9.256591c9.chunk.js"></script><script src="/web/static/js/main.a598b99e.chunk.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

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

@ -1 +1 @@
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[12],{353:function(t,e,r){},467:function(t,e,r){"use strict";r.r(e);var n=r(11),c=r(12),o=r(14),a=r(13),i=r(0),u=r(80),s=r(15),b=(r(353),r(1)),f=function(t){Object(o.a)(r,t);var e=Object(a.a)(r);function r(){var t;Object(n.a)(this,r);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))).theme=t.context.theme,t}return Object(c.a)(r,[{key:"render",value:function(){return this.context.theme!==this.theme&&(this.theme=this.context.theme),Object(b.jsx)("div",{className:"about-page",children:"\u5173\u4e8e"})}}]),r}(i.Component);f.contextType=s.a,e.default=Object(u.a)(f)},60:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"a",(function(){return o}))},80:function(t,e,r){"use strict";var n=r(60),c=r(11),o=r(12),a=r(14),i=r(13),u=r(0),s=r(1);e.a=function(t){return function(e){Object(a.a)(u,e);var r=Object(i.a)(u);function u(){var t;Object(c.a)(this,u);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=r.call.apply(r,[this].concat(n))).defaultCommodity={val:"CNY",symbol:"\uffe5"},t.currentCommodity=window.localStorage.getItem("commodity"),t}return Object(o.a)(u,[{key:"render",value:function(){return Object(s.jsx)(t,Object(n.a)(Object(n.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),u}(u.Component)}}}]); (this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[13],{355:function(t,e,r){},471:function(t,e,r){"use strict";r.r(e);var n=r(12),c=r(13),o=r(15),a=r(14),i=r(0),u=r(70),s=r(16),b=(r(355),r(1)),f=function(t){Object(o.a)(r,t);var e=Object(a.a)(r);function r(){var t;Object(n.a)(this,r);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))).theme=t.context.theme,t}return Object(c.a)(r,[{key:"render",value:function(){return this.context.theme!==this.theme&&(this.theme=this.context.theme),Object(b.jsx)("div",{className:"about-page",children:"\u5173\u4e8e"})}}]),r}(i.Component);f.contextType=s.a,e.default=Object(u.a)(f)},61:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,"a",(function(){return o}))},70:function(t,e,r){"use strict";var n=r(61),c=r(12),o=r(13),a=r(15),i=r(14),u=r(0),s=r(1);e.a=function(t){return function(e){Object(a.a)(u,e);var r=Object(i.a)(u);function u(){var t;Object(c.a)(this,u);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=r.call.apply(r,[this].concat(n))).defaultCommodity={currency:"CNY",symbol:"\uffe5"},t.currentCommodity=window.localStorage.getItem("ledgerCurrency"),t}return Object(o.a)(u,[{key:"render",value:function(){return Object(s.jsx)(t,Object(n.a)(Object(n.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),u}(u.Component)}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[14],{466:function(e,t,r){"use strict";r.r(t);var n=r(11),a=r(12),c=r(14),o=r(13),i=r(458),s=r(326),l=r(472),d=r(327),h=r(0),u=r.n(h),m=r(15),b=r(80),j=r(1),p={required:"${label} \u4e0d\u80fd\u4e3a\u7a7a\uff01"},f=function(e){Object(c.a)(r,e);var t=Object(o.a)(r);function r(){var e;Object(n.a)(this,r);for(var a=arguments.length,c=new Array(a),o=0;o<a;o++)c[o]=arguments[o];return(e=t.call.apply(t,[this].concat(c))).theme=e.context.theme,e.formRef=u.a.createRef(),e.state={loading:!1},e.handleCreateLedger=function(t){e.setState({loading:!0}),fetch("/api/ledger",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){return e.json()})).then((function(t){200===t.code?(window.localStorage.setItem("ledgerId",t.data),e.props.history.replace("/")):1010===t.code?i.b.error("\u65e0\u6548\u8d26\u6237"):1006===t.code&&i.b.error("\u5bc6\u7801\u9519\u8bef")})).catch((function(e){i.b.error("\u8bf7\u6c42\u5931\u8d25"),console.error(e)})).finally((function(){e.setState({loading:!1})}))},e}return Object(a.a)(r,[{key:"render",value:function(){return this.context.theme!==this.theme&&(this.theme=this.context.theme),Object(j.jsx)("div",{className:"ledger-page",children:Object(j.jsx)("div",{children:Object(j.jsxs)(s.a,{name:"add-account-form",size:"middle",ref:this.formRef,onFinish:this.handleCreateLedger,validateMessages:p,children:[Object(j.jsx)(s.a.Item,{name:"mail",label:"\u7528\u6237",rules:[{required:!0}],children:Object(j.jsx)(l.a,{placeholder:"\u4f5c\u4e3a\u8d26\u672c\u7684\u552f\u4e00\u6807\u8bc6\uff0c\u4e00\u4e2a\u7528\u6237\u53ea\u5141\u8bb8\u521b\u5efa\u4e00\u4e2a\u8d26\u672c\uff0c\u63a8\u8350\u4f7f\u7528\u90ae\u7bb1"})}),Object(j.jsx)(s.a.Item,{name:"secret",label:"\u5bc6\u7801",rules:[{required:!0}],children:Object(j.jsx)(l.a,{type:"password",placeholder:"\u8d26\u672c\u5bc6\u7801"})}),Object(j.jsx)(s.a.Item,{children:Object(j.jsx)(d.a,{type:"primary",htmlType:"submit",children:"\u521b\u5efa/\u8fdb\u5165\u4e2a\u4eba\u8d26\u672c"})})]})})})}}]),r}(h.Component);f.contextType=m.a,t.default=Object(b.a)(f)},80:function(e,t,r){"use strict";var n=r(60),a=r(11),c=r(12),o=r(14),i=r(13),s=r(0),l=r(1);t.a=function(e){return function(t){Object(o.a)(s,t);var r=Object(i.a)(s);function s(){var e;Object(a.a)(this,s);for(var t=arguments.length,n=new Array(t),c=0;c<t;c++)n[c]=arguments[c];return(e=r.call.apply(r,[this].concat(n))).defaultCommodity={val:"CNY",symbol:"\uffe5"},e.currentCommodity=window.localStorage.getItem("commodity"),e}return Object(c.a)(s,[{key:"render",value:function(){return Object(l.jsx)(e,Object(n.a)(Object(n.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),s}(s.Component)}}}]);

View File

@ -1 +1 @@
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[13],{468:function(t,e,n){"use strict";n.r(e);var i=n(11),o=n(12),r=n(14),a=n(13),c=n(474),s=n(458),l=n(209),u=n(327),h=n(355),d=(n(450),n(0)),f=n(59),b=n(15),p=n(80),m=n(1),j=function(t){Object(r.a)(n,t);var e=Object(a.a)(n);function n(){var t;Object(i.a)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))).theme=t.context.theme,t.state={loading:!1,path:null,files:[],rawContent:"",content:"",editorState:h.EditorState.createEmpty()},t.fetchFileDir=function(){t.setState({loading:!0}),Object(f.b)("/api/auth/file/dir").then((function(e){t.setState({files:e})})).finally((function(){t.setState({loading:!1})}))},t.handldEditContent=function(e){t.setState({editorState:e,content:e.getCurrentContent().getPlainText()})},t.handleChangeFile=function(e){t.setState({path:e},(function(){t.fetchFileContent(e)}))},t.fetchFileContent=function(){t.setState({loading:!0}),Object(f.b)("/api/auth/file/content?path=".concat(t.state.path)).then((function(e){t.setState({rawContent:e,content:e,editorState:h.EditorState.createWithContent(h.ContentState.createFromText(e))})})).finally((function(){t.setState({loading:!1})}))},t.saveFileContent=function(){var e=t.state,n=e.path,i=e.content;t.setState({loading:!0}),Object(f.b)("/api/auth/file",{method:"POST",body:{path:n,content:i}}).then((function(){t.setState({rawContent:i}),s.b.success("\u4fdd\u5b58\u6210\u529f")})).finally((function(){t.setState({loading:!1})}))},t}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.fetchFileDir()}},{key:"render",value:function(){return this.context.theme!==this.theme&&(this.theme=this.context.theme),Object(m.jsxs)("div",{className:"edit-page",children:[Object(m.jsxs)("div",{children:[Object(m.jsx)(l.a,{showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u6e90\u6587\u4ef6",style:{width:"200px"},onChange:this.handleChangeFile,children:this.state.files.map((function(t){return Object(m.jsx)(l.a.Option,{value:t,children:t},t)}))}),"\xa0\xa0",Object(m.jsx)(u.a,{type:"primary",icon:Object(m.jsx)(c.a,{}),disabled:this.state.rawContent===this.state.content,loading:this.state.loading,onClick:this.saveFileContent,children:"\u4fdd\u5b58"})]}),Object(m.jsx)("div",{style:{marginTop:"1rem"},children:Object(m.jsx)(h.Editor,{placeholder:"\u672a\u9009\u62e9\u6587\u4ef6",editorState:this.state.editorState,onChange:this.handldEditContent})})]})}}]),n}(d.Component);j.contextType=b.a,e.default=Object(p.a)(j)},59:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"f",(function(){return b}));var i=n(458),o=n(85),r=n.n(o),a=n(215),c=n.n(a),s=function(t){var e=t.split(":");return e&&e.length>=1?t.split(":")[0]:""},l=function(t){for(var e=t.split(":").reverse(),n=0;n<e.length;n++){var i=e[n];if(new RegExp("^[a-zA-Z]").test(i))return i}return""},u=function(t){var e=t.split(":");return e&&e.length>=2?t.split(":")[e.length-1]:""},h={Income:"\u6536\u5165",Expenses:"\u652f\u51fa",Liabilities:"\u8d1f\u503a",Assets:"\u8d44\u4ea7"},d=function(t){return t},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.method,o=e.headers,r=e.body,a={"Content-Type":"application/json",ledgerId:window.localStorage.getItem("ledgerId")};return new Promise((function(e,s){c()(t,{method:n,headers:Object.assign({},a,o),body:JSON.stringify(r)}).then(d).then((function(t){return t.json()})).then((function(t){var n=t.code;200===n?e(t.data):200!==n&&(400===n?i.b.error("\u8bf7\u6c42\u53c2\u6570\u9519\u8bef"):1001===n?i.b.error("\u8d26\u76ee\u4e0d\u5e73\u8861"):1003===n?i.b.error("\u65e0\u6548\u8d26\u6237"):1005===n?i.b.error("\u65e0\u6548\u547d\u4ee4"):1006===n?i.b.error("\u5bc6\u7801\u9519\u8bef"):1007===n?i.b.error("\u8d26\u6237\u5df2\u5b58\u5728"):1010===n?window.location.href="/web/#/ledger":i.b.error("\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5"),s(t))})).catch((function(t){i.b.error("\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5"),s(t)}))}))},b=function(){return r()().format("YYYY-M")}},80:function(t,e,n){"use strict";var i=n(60),o=n(11),r=n(12),a=n(14),c=n(13),s=n(0),l=n(1);e.a=function(t){return function(e){Object(a.a)(s,e);var n=Object(c.a)(s);function s(){var t;Object(o.a)(this,s);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.call.apply(n,[this].concat(i))).defaultCommodity={val:"CNY",symbol:"\uffe5"},t.currentCommodity=window.localStorage.getItem("commodity"),t}return Object(r.a)(s,[{key:"render",value:function(){return Object(l.jsx)(t,Object(i.a)(Object(i.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),s}(s.Component)}}}]); (this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[15],{472:function(t,e,n){"use strict";n.r(e);var i=n(12),o=n(13),r=n(15),a=n(14),c=n(480),s=n(463),l=n(135),u=n(271),h=n(357),d=(n(452),n(0)),f=n(59),b=n(16),p=n(70),m=n(1),j=function(t){Object(r.a)(n,t);var e=Object(a.a)(n);function n(){var t;Object(i.a)(this,n);for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))).theme=t.context.theme,t.state={loading:!1,path:null,files:[],rawContent:"",content:"",editorState:h.EditorState.createEmpty()},t.fetchFileDir=function(){t.setState({loading:!0}),Object(f.b)("/api/auth/file/dir").then((function(e){t.setState({files:e})})).finally((function(){t.setState({loading:!1})}))},t.handldEditContent=function(e){t.setState({editorState:e,content:e.getCurrentContent().getPlainText()})},t.handleChangeFile=function(e){t.setState({path:e},(function(){t.fetchFileContent(e)}))},t.fetchFileContent=function(){t.setState({loading:!0}),Object(f.b)("/api/auth/file/content?path=".concat(t.state.path)).then((function(e){t.setState({rawContent:e,content:e,editorState:h.EditorState.createWithContent(h.ContentState.createFromText(e))})})).finally((function(){t.setState({loading:!1})}))},t.saveFileContent=function(){var e=t.state,n=e.path,i=e.content;t.setState({loading:!0}),Object(f.b)("/api/auth/file",{method:"POST",body:{path:n,content:i}}).then((function(){t.setState({rawContent:i}),s.b.success("\u4fdd\u5b58\u6210\u529f")})).finally((function(){t.setState({loading:!1})}))},t}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.fetchFileDir()}},{key:"render",value:function(){return this.context.theme!==this.theme&&(this.theme=this.context.theme),Object(m.jsxs)("div",{className:"edit-page",children:[Object(m.jsxs)("div",{children:[Object(m.jsx)(l.a,{showSearch:!0,placeholder:"\u8bf7\u9009\u62e9\u6e90\u6587\u4ef6",style:{width:"200px"},onChange:this.handleChangeFile,children:this.state.files.map((function(t){return Object(m.jsx)(l.a.Option,{value:t,children:t},t)}))}),"\xa0\xa0",Object(m.jsx)(u.a,{type:"primary",icon:Object(m.jsx)(c.a,{}),disabled:this.state.rawContent===this.state.content,loading:this.state.loading,onClick:this.saveFileContent,children:"\u4fdd\u5b58"})]}),Object(m.jsx)("div",{style:{marginTop:"1rem"},children:Object(m.jsx)(h.Editor,{placeholder:"\u672a\u9009\u62e9\u6587\u4ef6",editorState:this.state.editorState,onChange:this.handldEditContent})})]})}}]),n}(d.Component);j.contextType=b.a,e.default=Object(p.a)(j)},59:function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"f",(function(){return b}));var i=n(463),o=n(73),r=n.n(o),a=n(112),c=n.n(a),s=function(t){var e=t.split(":");return e&&e.length>=1?t.split(":")[0]:""},l=function(t){return t.split(":").join("_")},u=function(t){var e=t.split(":");return e&&e.length>=2?t.split(":")[e.length-1]:""},h={Income:"\u6536\u5165",Expenses:"\u652f\u51fa",Liabilities:"\u8d1f\u503a",Assets:"\u8d44\u4ea7"},d=function(t){return t},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.method,o=e.headers,r=e.body,a={"Content-Type":"application/json",ledgerId:window.localStorage.getItem("ledgerId")};return new Promise((function(e,s){c()(t,{method:n,headers:Object.assign({},a,o),body:JSON.stringify(r)}).then(d).then((function(t){return t.json()})).then((function(t){var n=t.code;200===n?e(t.data):200!==n&&(400===n?i.b.error("\u8bf7\u6c42\u53c2\u6570\u9519\u8bef"):1001===n?i.b.error("\u8d26\u76ee\u4e0d\u5e73\u8861"):1003===n?i.b.error("\u65e0\u6548\u8d26\u6237"):1005===n?i.b.error("\u65e0\u6548\u547d\u4ee4"):1006===n?i.b.error("\u5bc6\u7801\u9519\u8bef"):1007===n?i.b.error("\u8d26\u6237\u5df2\u5b58\u5728"):1010===n||401===n?window.location.href="/web/#/ledger":i.b.error("\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5"),s(t))})).catch((function(t){i.b.error("\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5"),s(t)}))}))},b=function(){return r()().format("YYYY-M")}},70:function(t,e,n){"use strict";var i=n(61),o=n(12),r=n(13),a=n(15),c=n(14),s=n(0),l=n(1);e.a=function(t){return function(e){Object(a.a)(s,e);var n=Object(c.a)(s);function s(){var t;Object(o.a)(this,s);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.call.apply(n,[this].concat(i))).defaultCommodity={currency:"CNY",symbol:"\uffe5"},t.currentCommodity=window.localStorage.getItem("ledgerCurrency"),t}return Object(r.a)(s,[{key:"render",value:function(){return Object(l.jsx)(t,Object(i.a)(Object(i.a)({},this.props),{},{commodity:this.currentCommodity?JSON.parse(this.currentCommodity):this.defaultCommodity}))}}]),s}(s.Component)}}}]);

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

View File

@ -1 +0,0 @@
(this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[]).push([[4],{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),r=n(20),o=n.n(r),i=(n(29),n(11)),s=n(12),l=n(14),h=n(13),d=n(7),j=(n(30),n(15)),b="\u6211\u7684\u8d26\u672c",u="https://github.com/BaoXuebin/beancount-node-server",m=(n(31),n(1)),x=function(e){Object(l.a)(n,e);var t=Object(h.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"render",value:function(){var e=this.context.theme;return Object(m.jsx)("div",{className:"".concat(e,"-theme"),children:Object(m.jsxs)("div",{className:"wrapper",children:[Object(m.jsx)("header",{children:Object(m.jsx)("nav",{className:"navbar",children:Object(m.jsxs)("div",{className:"container",children:[Object(m.jsx)("div",{className:"navbar-header header-logo",to:"/",children:Object(m.jsx)(d.b,{to:"/",children:b})}),Object(m.jsxs)("div",{className:"menu navbar-right",children:[Object(m.jsx)(d.b,{to:"/account",children:"\u8d26\u6237"}),Object(m.jsx)(d.b,{to:"/stats",children:"\u7edf\u8ba1"}),Object(m.jsx)(d.b,{to:"/ledger",children:"\u9000\u51fa"}),Object(m.jsx)("a",{href:u,children:Object(m.jsx)("img",{src:"https://img.shields.io/github/stars/BaoXuebin/beancount-node-server?style=social"})})]})]})})}),Object(m.jsx)("div",{className:"main",children:Object(m.jsx)("div",{className:"main-wrap",children:this.props.children})}),Object(m.jsx)("footer",{className:"footer",children:Object(m.jsx)("div",{className:"copyright",children:"\xa9 2021\xa0\xa0"})})]})})}}]),n}(c.Component);x.contextType=j.a;var O=x,g=n(9),p=n.n(g),v=n(2),f=(n(37),function(){return Object(m.jsx)("div",{style:{width:"100%"},className:"lds-rolling",children:Object(m.jsx)("div",{})})}),w=p()({loader:function(){return Promise.all([n.e(0),n.e(1),n.e(9),n.e(14)]).then(n.bind(null,466))},loading:f}),N=p()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(7)]).then(n.bind(null,471))},loading:f}),y=p()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(8)]).then(n.bind(null,469))},loading:f}),k=p()({loader:function(){return n.e(12).then(n.bind(null,467))},loading:f}),P=p()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(1),n.e(3),n.e(11)]).then(n.bind(null,473))},loading:f}),T=p()({loader:function(){return Promise.all([n.e(0),n.e(2),n.e(6),n.e(13)]).then(n.bind(null,468))},loading:f}),B=function(){return Object(m.jsx)(a.a.Fragment,{children:Object(m.jsxs)(v.c,{children:[Object(m.jsx)(v.a,{exact:!0,path:"/",component:N}),Object(m.jsx)(v.a,{exact:!0,path:"/ledger",component:w}),Object(m.jsx)(v.a,{exact:!0,path:"/account",component:y}),Object(m.jsx)(v.a,{exact:!0,path:"/about",component:k}),Object(m.jsx)(v.a,{exact:!0,path:"/edit",component:T}),Object(m.jsx)(v.a,{exact:!0,path:"/stats",component:P})]})})},C=function(e){Object(l.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),r=0;r<c;r++)a[r]=arguments[r];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(m.jsx)("div",{className:"App",children:Object(m.jsx)(j.a.Provider,{value:{theme:this.state.theme,toggleTheme:this.toggleTheme},children:Object(m.jsx)(d.a,{children:Object(m.jsx)(O,{children:Object(m.jsx)(B,{})})})})})}}]),n}(c.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(Object(m.jsx)(a.a.StrictMode,{children:Object(m.jsx)(C,{})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[38,5,10]]]);

View File

@ -0,0 +1 @@
(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:Object(b.jsx)(d.a.Provider,{value:{theme:this.state.theme,toggleTheme:this.toggleTheme},children:Object(b.jsx)(j.a,{children:Object(b.jsx)(g,{children:Object(b.jsx)(T,{})})})})})}}]),n}(c.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(Object(b.jsx)(a.a.StrictMode,{children:Object(b.jsx)(S,{})}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[39,5,9]]]);

View File

@ -1 +0,0 @@
!function(e){function t(t){for(var n,o,u=t[0],i=t[1],f=t[2],l=0,s=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(d&&d(t);s.length;)s.shift()();return c.push.apply(c,f||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{6:1,7:1,8:1,11:1,12:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",6:"9221b8e1",7:"97dd6d72",8:"f0a90ddf",9:"31d6cfe0",11:"d211b268",12:"0e433876",13:"31d6cfe0",14:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(d=c[i]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===n||f===a))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){var d;if((f=(d=l[i]).getAttribute("data-href"))===n||f===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"23fa9f66",1:"f4906eca",2:"6066aece",3:"e3eeeb91",6:"0d10fa11",7:"99247dc3",8:"9a16b342",9:"b3c4a2d2",11:"bafe93e4",12:"8024c82d",13:"3a9d2d0c",14:"99e5656c"}[e]+".chunk.js"}(e);var f=new Error;c=function(t){i.onerror=i.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:i})}),12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/web/",u.oe=function(e){throw console.error(e),e};var i=this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var d=f;r()}([]);

View File

@ -0,0 +1 @@
!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],l=0,s=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&s.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(d&&d(t);s.length;)s.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{6:1,7:1,10:1,12:1,13:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",6:"9221b8e1",7:"97dd6d72",8:"31d6cfe0",10:"f0a90ddf",11:"31d6cfe0",12:"d211b268",13:"0e433876",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(d=c[f]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(i===n||i===a))return t()}var l=document.getElementsByTagName("style");for(f=0;f<l.length;f++){var d;if((i=(d=l[f]).getAttribute("data-href"))===n||i===a)return t()}var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onload=t,s.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],s.parentNode.removeChild(s),r(c)},s.href=a,document.getElementsByTagName("head")[0].appendChild(s)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"dc71f259",1:"5ff06bf1",2:"db2f3ca0",3:"94470557",6:"1af07943",7:"679af063",8:"82ba8cf0",10:"b1068681",11:"149e9590",12:"dc57c0c5",13:"8f2e6ecb",14:"76efc38a",15:"9eb98c4d",16:"e1595fcb"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/web/",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpbeancount-web"]=this["webpackJsonpbeancount-web"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var d=i;r()}([]);