Files
accountbook/frontend/.next/server/pages/_app.js
T
DeveloperandClaude Opus 4.6 3347a256b2 Initial commit: accountbook project
- Node.js backend server
- Frontend application
- Backup script
- Project specification

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 11:24:10 +08:00

1 line
9.2 KiB
JavaScript

(()=>{var e={};e.id=888,e.ids=[888],e.modules={4407:(e,r,o)=>{"use strict";o.d(r,{N:()=>a,W:()=>l});var t=o(997),n=o(6689),s=o(349);let i=(0,n.createContext)(null);function l({children:e}){let[r,o]=(0,n.useState)(null),l=(0,n.useCallback)(e=>new Promise(r=>{o({title:e.title||"请确认操作",description:e.description||"",confirmText:e.confirmText||"确认",cancelText:e.cancelText||"取消",tone:e.tone||"danger",resolve:r})}),[]),a=(0,n.useCallback)(e=>{o(r=>(r?.resolve(e),null))},[]),c=(0,n.useMemo)(()=>({confirm:l}),[l]);return(0,t.jsxs)(i.Provider,{value:c,children:[e,r?t.jsx("div",{className:"modal-overlay modal-overlay--center",onClick:()=>a(!1),children:(0,t.jsxs)("div",{className:"confirm-card",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",children:[t.jsx("div",{className:`confirm-card__icon confirm-card__icon--${r.tone}`,children:t.jsx(s.J,{name:"danger"===r.tone?"trash":"info",size:18})}),(0,t.jsxs)("div",{className:"confirm-card__body",children:[t.jsx("h2",{id:"confirm-title",children:r.title}),r.description?t.jsx("p",{children:r.description}):null]}),(0,t.jsxs)("div",{className:"confirm-card__actions",children:[t.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>a(!1),children:r.cancelText}),t.jsx("button",{type:"button",className:`btn ${"danger"===r.tone?"btn-danger":"btn-primary"}`,onClick:()=>a(!0),children:r.confirmText})]})]})}):null]})}function a(){let e=(0,n.useContext)(i);if(!e)throw Error("useConfirm must be used within ConfirmProvider");return e}},4190:(e,r,o)=>{"use strict";o.d(r,{V:()=>l,p:()=>a});var t=o(997),n=o(6689),s=o(349);let i=(0,n.createContext)(null);function l({children:e}){let[r,o]=(0,n.useState)([]),l=(0,n.useRef)(new Map),a=(0,n.useCallback)(e=>{let r=l.current.get(e);r&&(clearTimeout(r),l.current.delete(e)),o(r=>r.filter(r=>r.id!==e))},[]),c=(0,n.useCallback)((e,r={})=>{let t=`${Date.now()}-${Math.random()}`,n={id:t,message:e,tone:r.tone||"info"};o(e=>[...e,n]);let s=setTimeout(()=>a(t),r.duration??2600);return l.current.set(t,s),t},[a]),d=(0,n.useMemo)(()=>({showToast:c,removeToast:a}),[c,a]);return(0,t.jsxs)(i.Provider,{value:d,children:[e,t.jsx("div",{className:"toast-stack","aria-live":"polite","aria-atomic":"true",children:r.map(e=>(0,t.jsxs)("div",{className:`toast toast--${e.tone}`,children:[t.jsx("span",{className:"toast__icon",children:t.jsx(s.J,{name:"success"===e.tone?"check":"error"===e.tone?"close":"info",size:16})}),t.jsx("span",{className:"toast__message",children:e.message}),t.jsx("button",{type:"button",className:"icon-button icon-button--ghost toast__close","aria-label":"关闭提示",onClick:()=>a(e.id),children:t.jsx(s.J,{name:"close",size:16})})]},e.id))})]})}function a(){let e=(0,n.useContext)(i);if(!e)throw Error("useToast must be used within ToastProvider");return e}},349:(e,r,o)=>{"use strict";o.d(r,{J:()=>i});var t=o(997),n=o(6689);let s={home:t.jsx("path",{d:"M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5.5v-6h-5v6H4a1 1 0 0 1-1-1v-9.5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),chart:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M4 20h16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M7 16v-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M12 16V8",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M17 16v-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),repeat:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M17 3l4 4-4 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M3 7h18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M7 21l-4-4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M21 17H3",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),tags:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M11 4H5a2 2 0 0 0-2 2v6l8.5 8.5a2.1 2.1 0 0 0 3 0l6-6a2.1 2.1 0 0 0 0-3L12 4Z",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinejoin:"round"}),t.jsx("circle",{cx:"7.5",cy:"8.5",r:"1.2",fill:"currentColor"})]}),settings:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M12 8.5A3.5 3.5 0 1 0 12 15.5A3.5 3.5 0 1 0 12 8.5Z",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),t.jsx("path",{d:"M19.4 15a1 1 0 0 0 .2 1.1l.1.1a2 2 0 0 1-2.8 2.8l-.1-.1a1 1 0 0 0-1.1-.2 1 1 0 0 0-.6.9V20a2 2 0 0 1-4 0v-.2a1 1 0 0 0-.6-.9 1 1 0 0 0-1.1.2l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1 1 0 0 0 .2-1.1 1 1 0 0 0-.9-.6H4a2 2 0 0 1 0-4h.2a1 1 0 0 0 .9-.6 1 1 0 0 0-.2-1.1l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1 1 0 0 0 1.1.2 1 1 0 0 0 .6-.9V4a2 2 0 0 1 4 0v.2a1 1 0 0 0 .6.9 1 1 0 0 0 1.1-.2l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1 1 0 0 0-.2 1.1 1 1 0 0 0 .9.6H20a2 2 0 0 1 0 4h-.2a1 1 0 0 0-.4 1Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),search:(0,t.jsxs)(t.Fragment,{children:[t.jsx("circle",{cx:"11",cy:"11",r:"6.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),t.jsx("path",{d:"m16 16 4.5 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),plus:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M12 5v14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M5 12h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),chevronLeft:t.jsx("path",{d:"m14.5 6-5 6 5 6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),chevronRight:t.jsx("path",{d:"m9.5 6 5 6-5 6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),close:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M6 6l12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M18 6 6 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),trash:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M4 7h16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M9 4h6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M7 7l1 12a1 1 0 0 0 1 .9h6a1 1 0 0 0 1-.9l1-12",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10 11v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"M14 11v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),logout:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M14 8l5 4-5 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M19 12H9",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),download:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M12 4v10",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"m8 10 4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M5 19h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),upload:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M12 20V10",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("path",{d:"m8 14 4-4 4 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M5 5h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),check:t.jsx("path",{d:"m5 12 4.2 4.2L19 7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),info:(0,t.jsxs)(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),t.jsx("path",{d:"M12 10v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),t.jsx("circle",{cx:"12",cy:"7.25",r:"1",fill:"currentColor"})]}),spinner:(0,t.jsxs)(t.Fragment,{children:[t.jsx("path",{d:"M12 3a9 9 0 1 1-6.36 2.64",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",opacity:"0.28"}),t.jsx("path",{d:"M5.64 5.64A9 9 0 0 1 12 3",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]})};function i({name:e,size:r=20,className:o="",title:t}){return(0,n.createElement)("svg",{viewBox:"0 0 24 24",width:r,height:r,className:o,"aria-hidden":t?void 0:"true",role:t?"img":"presentation",fill:"none"},t?(0,n.createElement)("title",null,t):null,s[e]||s.info)}},3414:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>i});var t=o(997);o(6764);var n=o(4190),s=o(4407);function i({Component:e,pageProps:r}){return t.jsx(s.W,{children:t.jsx(n.V,{children:t.jsx(e,{...r})})})}},6764:()=>{},6689:e=>{"use strict";e.exports=require("react")},997:e=>{"use strict";e.exports=require("react/jsx-runtime")}};var r=require("../webpack-runtime.js");r.C(e);var o=r(r.s=3414);module.exports=o})();