Files
accountbook/frontend/.next/cache/webpack/client-production/15.pack
T

2 lines
13 KiB
Plaintext
Raw Normal View History

2026-03-12 11:24:10 +08:00
wpc¶2§webpack/lib/cache/PackFileCacheStrategyPackContentItems ÁTerserWebpackPlugin|static/chunks/pages/stats-354c093a21405b22.jsÀTerserWebpackPlugin|static/22xw6zyQvdiPO2twUriMa/_ssgManifest.jsÂTerserWebpackPlugin|static/22xw6zyQvdiPO2twUriMa/_buildManifest.jsËRealContentHashPlugin|analyse|static/chunks/pages/stats-354c093a21405b22.jsÊRealContentHashPlugin|analyse|static/22xw6zyQvdiPO2twUriMa/_ssgManifest.jsÌRealContentHashPlugin|analyse|static/22xw6zyQvdiPO2twUriMa/_buildManifest.jsÍRealContentHashPlugin|generate|static/22xw6zyQvdiPO2twUriMa/_buildManifest.js†source«webpack/lib/util/registerExternalSerializer™webpack-sources/RawSourceû'(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[368],{4841:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stats",function(){return n(8011)}])},6248:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(5893),r=n(7294),c=n(1163),s=n(9415);let o=[{href:"/",label:"首页",icon:"home"},{href:"/stats",label:"统计",icon:"chart"},{href:"/recurring",label:"周期",icon:"repeat"},{href:"/categories",label:"分类",icon:"tags"}];function i(e){let{title:t,subtitle:n,actions:i,headerContent:l,children:u,contentClassName:d="",hideNav:h=!1,compactHeader:p=!1}=e,m=(0,c.useRouter)(),f=(0,r.useMemo)(()=>{let e=o.find(e=>e.href===m.pathname);return(null==e?void 0:e.href)||null},[m.pathname]),g=l||(t?(0,a.jsxs)("div",{className:"app-header__text",children:[(0,a.jsx)("h1",{children:t}),n?(0,a.jsx)("p",{children:n}):null]}):null),y=["app-header",p?"app-header--compact":"",g?"app-header--with-content":"app-header--actions-only",i?"app-header--with-actions":""].filter(Boolean).join(" ");return(0,a.jsxs)("div",{className:"app-shell".concat(h?" app-shell--standalone":""),children:[(0,a.jsx)("header",{className:y,children:(0,a.jsxs)("div",{className:"app-shell__container app-header__inner",children:[g?(0,a.jsx)("div",{className:"app-header__main",children:g}):(0,a.jsx)("div",{className:"app-header__spacer","aria-hidden":"true"}),i?(0,a.jsx)("div",{className:"app-header__actions",children:i}):null]})}),(0,a.jsx)("main",{className:"app-content ".concat(d).trim(),children:(0,a.jsx)("div",{className:"app-shell__container app-content__inner",children:u})}),h?null:(0,a.jsx)("nav",{className:"bottom-nav","aria-label":"主导航",children:(0,a.jsx)("div",{className:"app-shell__container bottom-nav__inner",children:o.map(e=>{let t=f===e.href;return(0,a.jsxs)("button",{type:"button",className:"bottom-nav__item".concat(t?" is-active":""),onClick:()=>m.push(e.href),"aria-current":t?"page":void 0,children:[(0,a.jsx)(s.J,{name:e.icon,size:20}),(0,a.jsx)("span",{children:e.label})]},e.href)})})})]})}},610:function(e,t,n){"use strict";async function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=await fetch("".concat("").concat(e),{...t,headers:{"Content-Type":"application/json",...function(){let e=localStorage.getItem("token");return e?{Authorization:"Bearer ".concat(e)}:{}}(),...t.headers}}),a=await n.json();if(!n.ok)throw Error(a.error||"请求失败");return a}async function r(e,t){let n=await a("/api/auth/login",{method:"POST",body:JSON.stringify({username:e,password:t})});return localStorage.setItem("token",n.token),n}async function c(e,t){let n=await a("/api/auth/register",{method:"POST",body:JSON.stringify({username:e,password:t})});return localStorage.setItem("token",n.token),n}function s(){localStorage.removeItem("token")}function o(){return!!localStorage.getItem("token")}async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n="/api/records?month=".concat(e);return"all"!==t&&(n+="&type=".concat(t)),a(n)}async function l(e){return a("/api/stats?month=".concat(e))}async function u(e){return a("/api/records",{method:"POST",body:JSON.stringify(e)})}async function d(e,t){return a("/api/records/".concat(e),{method:"PUT",body:JSON.stringify(t)})}async function h(e){return a("/api/records/".concat(e),{method:"DELETE"})}async function p(e){return a("/api/records/search?q=".concat(encodeURIComponent(e)))}async f
6cb4660fc497dc4e4f9dfbe25cb315980208c5ae4a3933c984632b2968be1e4404563c7d5abdac2c409b77ecb657f4575384580e3bc2c9e67f08890fb6f1598d0cb57a344af69d33354c093a21405b22sself.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[{has:s,source:"/api/:path*",destination:s}],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-9134a1c15f8e7e73.js"],"/_error":["static/chunks/pages/_error-7a92967bea80186d.js"],"/categories":["static/chunks/pages/categories-a3255e0a23d19e86.js"],"/login":["static/chunks/pages/login-f50164aa2a6805b4.js"],"/recurring":["static/chunks/pages/recurring-560011bee3956d16.js"],"/search":["static/chunks/pages/search-3f7f0eb3485675fc.js"],"/settings":["static/chunks/pages/settings-bb02e29d5162e9fa.js"],"/stats":["static/chunks/ee8b1517-5dfbbb6838544537.js","static/chunks/925-ca8bea7fb2a62185.js","static/chunks/pages/stats-fac8445753c94f21.js"],sortedPages:["/","/_app","/_error","/categories","/login","/recurring","/search","/settings","/stats"]}}(void 0),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();