initial commit

This commit is contained in:
2026-06-09 16:51:15 +07:00
commit 0e130eb137
102 changed files with 520 additions and 0 deletions
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2028:(e,t,r)=>{Promise.resolve().then(r.bind(r,6868)),Promise.resolve().then(r.t.bind(r,9324,23))},6868:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,AuthProvider:()=>l});var o=r(5155),u=r(2115);let n=(0,u.createContext)(void 0);function l(e){let{children:t}=e,[r,l]=(0,u.useState)("");return(0,u.useEffect)(()=>{let e=localStorage.getItem("user");if(e){let t=JSON.parse(e);(null==t?void 0:t.name)&&l(t.name)}},[]),(0,o.jsx)(n.Provider,{value:{username:r,setUsername:l,logout:()=>{localStorage.removeItem("authToken"),localStorage.removeItem("user"),l("")}},children:t})}function s(){let e=(0,u.useContext)(n);if(!e)throw Error("useAuth must be used within an AuthProvider");return e}},9324:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[533,441,587,358],()=>t(2028)),_N_E=e.O()}]);