- Node.js backend server - Frontend application - Backup script - Project specification Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(()=>{var e={};e.id=820,e.ids=[820,888,660],e.modules={1323:(e,t)=>{"use strict";Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},7909:(e,t,r)=>{"use strict";r.r(t),r.d(t,{config:()=>f,default:()=>c,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>u,reportWebVitals:()=>k,routeModule:()=>b,unstable_getServerProps:()=>g,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>m,unstable_getStaticPaths:()=>j,unstable_getStaticProps:()=>x});var n=r(7093),o=r(5244),s=r(1323),i=r(2899),l=r.n(i),a=r(3414),d=r(6971);let c=(0,s.l)(d,"default"),u=(0,s.l)(d,"getStaticProps"),p=(0,s.l)(d,"getStaticPaths"),h=(0,s.l)(d,"getServerSideProps"),f=(0,s.l)(d,"config"),k=(0,s.l)(d,"reportWebVitals"),x=(0,s.l)(d,"unstable_getStaticProps"),j=(0,s.l)(d,"unstable_getStaticPaths"),m=(0,s.l)(d,"unstable_getStaticParams"),g=(0,s.l)(d,"unstable_getServerProps"),v=(0,s.l)(d,"unstable_getServerSideProps"),b=new n.PagesRouteModule({definition:{kind:o.x.PAGES,page:"/_error",pathname:"/_error",bundlePath:"",filename:""},components:{App:a.default,Document:l()},userland:d})},4407:(e,t,r)=>{"use strict";r.d(t,{N:()=>a,W:()=>l});var n=r(997),o=r(6689),s=r(349);let i=(0,o.createContext)(null);function l({children:e}){let[t,r]=(0,o.useState)(null),l=(0,o.useCallback)(e=>new Promise(t=>{r({title:e.title||"请确认操作",description:e.description||"",confirmText:e.confirmText||"确认",cancelText:e.cancelText||"取消",tone:e.tone||"danger",resolve:t})}),[]),a=(0,o.useCallback)(e=>{r(t=>(t?.resolve(e),null))},[]),d=(0,o.useMemo)(()=>({confirm:l}),[l]);return(0,n.jsxs)(i.Provider,{value:d,children:[e,t?n.jsx("div",{className:"modal-overlay modal-overlay--center",onClick:()=>a(!1),children:(0,n.jsxs)("div",{className:"confirm-card",onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",children:[n.jsx("div",{className:`confirm-card__icon confirm-card__icon--${t.tone}`,children:n.jsx(s.J,{name:"danger"===t.tone?"trash":"info",size:18})}),(0,n.jsxs)("div",{className:"confirm-card__body",children:[n.jsx("h2",{id:"confirm-title",children:t.title}),t.description?n.jsx("p",{children:t.description}):null]}),(0,n.jsxs)("div",{className:"confirm-card__actions",children:[n.jsx("button",{type:"button",className:"btn btn-secondary",onClick:()=>a(!1),children:t.cancelText}),n.jsx("button",{type:"button",className:`btn ${"danger"===t.tone?"btn-danger":"btn-primary"}`,onClick:()=>a(!0),children:t.confirmText})]})]})}):null]})}function a(){let e=(0,o.useContext)(i);if(!e)throw Error("useConfirm must be used within ConfirmProvider");return e}},4190:(e,t,r)=>{"use strict";r.d(t,{V:()=>l,p:()=>a});var n=r(997),o=r(6689),s=r(349);let i=(0,o.createContext)(null);function l({children:e}){let[t,r]=(0,o.useState)([]),l=(0,o.useRef)(new Map),a=(0,o.useCallback)(e=>{let t=l.current.get(e);t&&(clearTimeout(t),l.current.delete(e)),r(t=>t.filter(t=>t.id!==e))},[]),d=(0,o.useCallback)((e,t={})=>{let n=`${Date.now()}-${Math.random()}`,o={id:n,message:e,tone:t.tone||"info"};r(e=>[...e,o]);let s=setTimeout(()=>a(n),t.duration??2600);return l.current.set(n,s),n},[a]),c=(0,o.useMemo)(()=>({showToast:d,removeToast:a}),[d,a]);return(0,n.jsxs)(i.Provider,{value:c,children:[e,n.jsx("div",{className:"toast-stack","aria-live":"polite","aria-atomic":"true",children:t.map(e=>(0,n.jsxs)("div",{className:`toast toast--${e.tone}`,children:[n.jsx("span",{className:"toast__icon",children:n.jsx(s.J,{name:"success"===e.tone?"check":"error"===e.tone?"close":"info",size:16})}),n.jsx("span",{className:"toast__message",children:e.message}),n.jsx("button",{type:"button",className:"icon-button icon-button--ghost toast__close","aria-label":"关闭提示",onClick:()=>a(e.id),children:n.jsx(s.J,{name:"close",size:16})})]},e.id))})]})}function a(){let e=(0,o.useContext)(i);if(!e)throw Error("useToast must be used within ToastProvider");return e}},349:(e,t,r)=>{"use strict";r.d(t,{J:()=>i});var n=r(997),o=r(6689);let s={home:n.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,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M4 20h16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M7 16v-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M12 16V8",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M17 16v-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),repeat:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M17 3l4 4-4 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M3 7h18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M7 21l-4-4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M21 17H3",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),tags:(0,n.jsxs)(n.Fragment,{children:[n.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"}),n.jsx("circle",{cx:"7.5",cy:"8.5",r:"1.2",fill:"currentColor"})]}),settings:(0,n.jsxs)(n.Fragment,{children:[n.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"}),n.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,n.jsxs)(n.Fragment,{children:[n.jsx("circle",{cx:"11",cy:"11",r:"6.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),n.jsx("path",{d:"m16 16 4.5 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),plus:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M12 5v14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M5 12h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),chevronLeft:n.jsx("path",{d:"m14.5 6-5 6 5 6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),chevronRight:n.jsx("path",{d:"m9.5 6 5 6-5 6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),close:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M6 6l12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M18 6 6 18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),trash:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M4 7h16",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M9 4h6",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.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"}),n.jsx("path",{d:"M10 11v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"M14 11v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),logout:(0,n.jsxs)(n.Fragment,{children:[n.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"}),n.jsx("path",{d:"M14 8l5 4-5 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M19 12H9",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),download:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M12 4v10",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"m8 10 4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M5 19h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),upload:(0,n.jsxs)(n.Fragment,{children:[n.jsx("path",{d:"M12 20V10",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("path",{d:"m8 14 4-4 4 4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M5 5h14",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]}),check:n.jsx("path",{d:"m5 12 4.2 4.2L19 7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),info:(0,n.jsxs)(n.Fragment,{children:[n.jsx("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"1.8"}),n.jsx("path",{d:"M12 10v5",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),n.jsx("circle",{cx:"12",cy:"7.25",r:"1",fill:"currentColor"})]}),spinner:(0,n.jsxs)(n.Fragment,{children:[n.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"}),n.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:t=20,className:r="",title:n}){return(0,o.createElement)("svg",{viewBox:"0 0 24 24",width:t,height:t,className:r,"aria-hidden":n?void 0:"true",role:n?"img":"presentation",fill:"none"},n?(0,o.createElement)("title",null,n):null,s[e]||s.info)}},6971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(167),o=r(997),s=n._(r(6689)),i=n._(r(7828)),l={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function a(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let d={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends s.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||l[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:d.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:d.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:d.h1,children:e}):null,(0,o.jsx)("div",{style:d.wrap,children:(0,o.jsxs)("h2",{style:d.h2,children:[this.props.title||e?r:(0,o.jsx)(o.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=a,c.origGetInitialProps=a,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5495:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},7828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return k},defaultHead:function(){return u}});let n=r(167),o=r(8760),s=r(997),i=o._(r(6689)),l=n._(r(7215)),a=r(8039),d=r(1988),c=r(5495);function u(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(1997);let h=["name","httpEquiv","charSet","itemProp"];function f(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(u(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let s=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?s=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?s=!1:r.add(t);else{let e=o.props[t],r=n[t]||new Set;("name"!==t||!i)&&r.has(e)?s=!1:(r.add(e),n[t]=r)}}}}return s}}()).reverse().map((e,t)=>{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:n})})}let k=function(e){let{children:t}=e,r=(0,i.useContext)(a.AmpStateContext),n=(0,i.useContext)(d.HeadManagerContext);return(0,s.jsx)(l.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(6689),o=()=>{},s=()=>{};function i(e){var t;let{headManager:r,reduceComponentsToState:i}=e;function l(){if(r&&r.mountedInstances){let t=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(i(t,e))}}return null==r||null==(t=r.mountedInstances)||t.add(e.children),l(),o(()=>{var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),()=>{var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}}),o(()=>(r&&(r._pendingUpdate=l),()=>{r&&(r._pendingUpdate=l)})),s(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null}},1997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},3414:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>i});var n=r(997);r(6764);var o=r(4190),s=r(4407);function i({Component:e,pageProps:t}){return n.jsx(s.W,{children:n.jsx(o.V,{children:n.jsx(e,{...t})})})}},6764:()=>{},5244:(e,t)=>{"use strict";var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},8039:(e,t,r)=>{"use strict";e.exports=r(7093).vendored.contexts.AmpContext},1988:(e,t,r)=>{"use strict";e.exports=r(7093).vendored.contexts.HeadManagerContext},2785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},6689:e=>{"use strict";e.exports=require("react")},997:e=>{"use strict";e.exports=require("react/jsx-runtime")},5315:e=>{"use strict";e.exports=require("path")},8760:(e,t)=>{"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}t._=t._interop_require_wildcard=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=s?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[899],()=>r(7909));module.exports=n})(); |