@axium/server 0.24.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/account.dAAx7bby.css +1 -0
- package/build/client/_app/immutable/assets/account.dAAx7bby.css.br +0 -0
- package/build/client/_app/immutable/assets/account.dAAx7bby.css.gz +0 -0
- package/build/client/_app/immutable/assets/list.DVGH0BeP.css +1 -0
- package/build/client/_app/immutable/assets/list.DVGH0BeP.css.br +0 -0
- package/build/client/_app/immutable/assets/list.DVGH0BeP.css.gz +0 -0
- package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css +1 -0
- package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.br +2 -0
- package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.gz +0 -0
- package/build/client/_app/immutable/chunks/46qGscyh.js +2 -0
- package/build/client/_app/immutable/chunks/46qGscyh.js.br +0 -0
- package/build/client/_app/immutable/chunks/46qGscyh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B2Vkpbkw.js +2 -0
- package/build/client/_app/immutable/chunks/B2Vkpbkw.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2Vkpbkw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKixenYx.js +1 -0
- package/build/client/_app/immutable/chunks/BKixenYx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BKixenYx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BLtAtlP3.js +1 -0
- package/build/client/_app/immutable/chunks/BLtAtlP3.js.br +2 -0
- package/build/client/_app/immutable/chunks/BLtAtlP3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNTlty5m.js +1 -0
- package/build/client/_app/immutable/chunks/BNTlty5m.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNTlty5m.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Beh6Ec8J.js +1 -0
- package/build/client/_app/immutable/chunks/Beh6Ec8J.js.br +0 -0
- package/build/client/_app/immutable/chunks/Beh6Ec8J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrUe-Qen.js +1 -0
- package/build/client/_app/immutable/chunks/BrUe-Qen.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrUe-Qen.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bs4cD_pX.js +1 -0
- package/build/client/_app/immutable/chunks/Bs4cD_pX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bs4cD_pX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C62F-tXu.js +1 -0
- package/build/client/_app/immutable/chunks/C62F-tXu.js.br +1 -0
- package/build/client/_app/immutable/chunks/C62F-tXu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CUBtP2L9.js +23 -0
- package/build/client/_app/immutable/chunks/CUBtP2L9.js.br +0 -0
- package/build/client/_app/immutable/chunks/CUBtP2L9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch16TNvP.js +1 -0
- package/build/client/_app/immutable/chunks/Ch16TNvP.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch16TNvP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoYD6HNm.js +1 -0
- package/build/client/_app/immutable/chunks/CoYD6HNm.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoYD6HNm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D40Zn55h.js +1 -0
- package/build/client/_app/immutable/chunks/D40Zn55h.js.br +0 -0
- package/build/client/_app/immutable/chunks/D40Zn55h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW7-1esk.js +21 -0
- package/build/client/_app/immutable/chunks/DW7-1esk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW7-1esk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DY4fWHx_.js +1 -0
- package/build/client/_app/immutable/chunks/DY4fWHx_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DY4fWHx_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DvOBbqVY.js +1 -0
- package/build/client/_app/immutable/chunks/DvOBbqVY.js.br +0 -0
- package/build/client/_app/immutable/chunks/DvOBbqVY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DwZYWemd.js +1 -0
- package/build/client/_app/immutable/chunks/DwZYWemd.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwZYWemd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy2Ho0cF.js +1 -0
- package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy2Ho0cF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FTv0qR3w.js +1 -0
- package/build/client/_app/immutable/chunks/FTv0qR3w.js.br +0 -0
- package/build/client/_app/immutable/chunks/FTv0qR3w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/NeK0YGoY.js +1 -0
- package/build/client/_app/immutable/chunks/NeK0YGoY.js.br +0 -0
- package/build/client/_app/immutable/chunks/NeK0YGoY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aArGsq9c.js +1 -0
- package/build/client/_app/immutable/chunks/aArGsq9c.js.br +0 -0
- package/build/client/_app/immutable/chunks/aArGsq9c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/lH47zGKU.js +1 -0
- package/build/client/_app/immutable/chunks/lH47zGKU.js.br +0 -0
- package/build/client/_app/immutable/chunks/lH47zGKU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sMHjBQqw.js +1 -0
- package/build/client/_app/immutable/chunks/sMHjBQqw.js.br +0 -0
- package/build/client/_app/immutable/chunks/sMHjBQqw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/vQfHcJV6.js +2 -0
- package/build/client/_app/immutable/chunks/vQfHcJV6.js.br +0 -0
- package/build/client/_app/immutable/chunks/vQfHcJV6.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.pLVZKpSD.js +2 -0
- package/build/client/_app/immutable/entry/app.pLVZKpSD.js.br +0 -0
- package/build/client/_app/immutable/entry/app.pLVZKpSD.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CUaVsIrY.js +1 -0
- package/build/client/_app/immutable/entry/start.CUaVsIrY.js.br +2 -0
- package/build/client/_app/immutable/entry/start.CUaVsIrY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.D7hET-Bq.js +1 -0
- package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.D7hET-Bq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BWU-JJm_.js +1 -0
- package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.br +2 -0
- package/build/client/_app/immutable/nodes/1.BWU-JJm_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.C5N2XBee.js +1 -0
- package/build/client/_app/immutable/nodes/10.C5N2XBee.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.C5N2XBee.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CerbuSAv.js +1 -0
- package/build/client/_app/immutable/nodes/11.CerbuSAv.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CerbuSAv.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Z4B9zS78.js +1 -0
- package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Z4B9zS78.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.CuICShck.js +1 -0
- package/build/client/_app/immutable/nodes/13.CuICShck.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CuICShck.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.BSEF5oaF.js +1 -0
- package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.BSEF5oaF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.D1nsmo6j.js +1 -0
- package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.D1nsmo6j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js +1 -0
- package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DQ1JcYgz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BJp2JEtW.js +1 -0
- package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BJp2JEtW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js +1 -0
- package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Cvn_QsIx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DgPP9GX3.js +1 -0
- package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DgPP9GX3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DKIzms8i.js +2 -0
- package/build/client/_app/immutable/nodes/6.DKIzms8i.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DKIzms8i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.3UigVXV4.js +1 -0
- package/build/client/_app/immutable/nodes/7.3UigVXV4.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.3UigVXV4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js +1 -0
- package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.B8s2TdNQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.LBMMe2kc.js +1 -0
- package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.LBMMe2kc.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/styles.css +28 -0
- package/build/client/styles.css.br +0 -0
- package/build/client/styles.css.gz +0 -0
- package/build/handler.js +20 -3
- package/build/server/chunks/0-CNbALTKz.js +9 -0
- package/build/server/chunks/0-CNbALTKz.js.map +1 -0
- package/build/server/chunks/1-Dgxy393u.js +9 -0
- package/build/server/chunks/1-Dgxy393u.js.map +1 -0
- package/build/server/chunks/10-DovmbqKa.js +14 -0
- package/build/server/chunks/10-DovmbqKa.js.map +1 -0
- package/build/server/chunks/11-CRK_ubcl.js +14 -0
- package/build/server/chunks/11-CRK_ubcl.js.map +1 -0
- package/build/server/chunks/12-SbQlwMfe.js +9 -0
- package/build/server/chunks/12-SbQlwMfe.js.map +1 -0
- package/build/server/chunks/13-CbniIW7F.js +14 -0
- package/build/server/chunks/13-CbniIW7F.js.map +1 -0
- package/build/server/chunks/14-D9Vb_8Yx.js +9 -0
- package/build/server/chunks/14-D9Vb_8Yx.js.map +1 -0
- package/build/server/chunks/15-D-75Hdef.js +9 -0
- package/build/server/chunks/15-D-75Hdef.js.map +1 -0
- package/build/server/chunks/2-57exN8ae.js +14 -0
- package/build/server/chunks/2-57exN8ae.js.map +1 -0
- package/build/server/chunks/3-DNQft-pY.js +9 -0
- package/build/server/chunks/{2-CXlrhpR6.js.map → 3-DNQft-pY.js.map} +1 -1
- package/build/server/chunks/4-D9Bwp-f8.js +14 -0
- package/build/server/chunks/4-D9Bwp-f8.js.map +1 -0
- package/build/server/chunks/5-COEQwZNP.js +14 -0
- package/build/server/chunks/5-COEQwZNP.js.map +1 -0
- package/build/server/chunks/6-RT4yiDcP.js +14 -0
- package/build/server/chunks/6-RT4yiDcP.js.map +1 -0
- package/build/server/chunks/7-CVqF_r5D.js +14 -0
- package/build/server/chunks/7-CVqF_r5D.js.map +1 -0
- package/build/server/chunks/8-C5SO-sVH.js +14 -0
- package/build/server/chunks/8-C5SO-sVH.js.map +1 -0
- package/build/server/chunks/9-DoCOKtY-.js +14 -0
- package/build/server/chunks/9-DoCOKtY-.js.map +1 -0
- package/build/server/chunks/FormDialog-ZCY0chY1.js +102 -0
- package/build/server/chunks/FormDialog-ZCY0chY1.js.map +1 -0
- package/build/server/chunks/Icon-BVo9qbDf.js +30 -0
- package/build/server/chunks/Icon-BVo9qbDf.js.map +1 -0
- package/build/server/chunks/Logout-CmBZgu0j.js +46 -0
- package/build/server/chunks/Logout-CmBZgu0j.js.map +1 -0
- package/build/server/chunks/_layout.svelte-DuS006VZ.js +33 -0
- package/build/server/chunks/_layout.svelte-DuS006VZ.js.map +1 -0
- package/build/server/chunks/_page.svelte-BFVobcI7.js +14 -0
- package/build/server/chunks/_page.svelte-BFVobcI7.js.map +1 -0
- package/build/server/chunks/_page.svelte-B_cvhWJS.js +66 -0
- package/build/server/chunks/_page.svelte-B_cvhWJS.js.map +1 -0
- package/build/server/chunks/_page.svelte-BriaBR9l.js +28 -0
- package/build/server/chunks/_page.svelte-BriaBR9l.js.map +1 -0
- package/build/server/chunks/_page.svelte-BtQQzT7H.js +72 -0
- package/build/server/chunks/_page.svelte-BtQQzT7H.js.map +1 -0
- package/build/server/chunks/_page.svelte-C8D3c3yB.js +64 -0
- package/build/server/chunks/_page.svelte-C8D3c3yB.js.map +1 -0
- package/build/server/chunks/_page.svelte-CVSb9eHQ.js +24 -0
- package/build/server/chunks/_page.svelte-CVSb9eHQ.js.map +1 -0
- package/build/server/chunks/_page.svelte-CwRjZqL7.js +107 -0
- package/build/server/chunks/_page.svelte-CwRjZqL7.js.map +1 -0
- package/build/server/chunks/_page.svelte-D9A9RYjx.js +233 -0
- package/build/server/chunks/_page.svelte-D9A9RYjx.js.map +1 -0
- package/build/server/chunks/_page.svelte-DGhwqWMM.js +34 -0
- package/build/server/chunks/_page.svelte-DGhwqWMM.js.map +1 -0
- package/build/server/chunks/_page.svelte-DTvnX95_.js +75 -0
- package/build/server/chunks/_page.svelte-DTvnX95_.js.map +1 -0
- package/build/server/chunks/_page.svelte-DUfwpXfC.js +122 -0
- package/build/server/chunks/_page.svelte-DUfwpXfC.js.map +1 -0
- package/build/server/chunks/_page.svelte-DxDoD3rZ.js +37 -0
- package/build/server/chunks/_page.svelte-DxDoD3rZ.js.map +1 -0
- package/build/server/chunks/_page.svelte-VDBvShZ8.js +6 -0
- package/build/server/chunks/_page.svelte-VDBvShZ8.js.map +1 -0
- package/build/server/chunks/account-Bf_llRe2.js +446 -0
- package/build/server/chunks/account-Bf_llRe2.js.map +1 -0
- package/build/server/chunks/auth_redirect-olBYiIF2.js +24 -0
- package/build/server/chunks/auth_redirect-olBYiIF2.js.map +1 -0
- package/build/server/chunks/color-K_MR7m8s.js +14 -0
- package/build/server/chunks/color-K_MR7m8s.js.map +1 -0
- package/build/server/chunks/context-R2425nfV.js +64 -0
- package/build/server/chunks/context-R2425nfV.js.map +1 -0
- package/build/server/chunks/{error.svelte-DNQXZmIO.js → error.svelte-CkSCwrMJ.js} +7 -6
- package/build/server/chunks/error.svelte-CkSCwrMJ.js.map +1 -0
- package/build/server/chunks/index-CIEcmmdN.js +890 -0
- package/build/server/chunks/index-CIEcmmdN.js.map +1 -0
- package/build/server/chunks/{index-CvHf_GW2.js → index-Tt4zVDIZ.js} +843 -438
- package/build/server/chunks/index-Tt4zVDIZ.js.map +1 -0
- package/build/server/chunks/layout.svelte-UxsTmhKc.js +8 -0
- package/build/server/chunks/layout.svelte-UxsTmhKc.js.map +1 -0
- package/build/server/chunks/{string-DLbvtT1R.js → numbers-DL8C9q4W.js} +1 -71
- package/build/server/chunks/numbers-DL8C9q4W.js.map +1 -0
- package/build/server/chunks/{FormDialog-CB-2YGWi.js → user2-CRfK67II.js} +12 -206
- package/build/server/chunks/user2-CRfK67II.js.map +1 -0
- package/build/server/chunks/utils-h74ns7K6.js.map +1 -1
- package/build/server/index.js +2304 -1140
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +78 -13
- package/build/server/manifest.js.map +1 -1
- package/dist/acl.d.ts +1 -2
- package/dist/acl.js +1 -1
- package/dist/api/acl.js +4 -4
- package/dist/api/admin.d.ts +1 -0
- package/dist/api/admin.js +152 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/metadata.js +5 -5
- package/dist/api/passkeys.js +10 -10
- package/dist/api/register.js +4 -4
- package/dist/api/session.js +5 -5
- package/dist/api/users.js +52 -49
- package/dist/audit.d.ts +8 -39
- package/dist/audit.js +13 -16
- package/dist/auth.d.ts +4 -11
- package/dist/auth.js +4 -4
- package/dist/cli.js +515 -559
- package/dist/config.d.ts +26 -16
- package/dist/config.js +65 -36
- package/dist/database.d.ts +3 -4
- package/dist/database.js +19 -18
- package/dist/internal_requests.d.ts +3 -0
- package/dist/internal_requests.js +119 -0
- package/dist/io.d.ts +0 -49
- package/dist/io.js +23 -171
- package/dist/linking.d.ts +0 -1
- package/dist/linking.js +5 -8
- package/dist/requests.d.ts +10 -6
- package/dist/requests.js +17 -15
- package/dist/routes.d.ts +6 -10
- package/dist/routes.js +7 -8
- package/dist/serve.d.ts +7 -2
- package/dist/serve.js +170 -13
- package/dist/state.js +2 -1
- package/package.json +8 -7
- package/routes/account/+page.svelte +5 -109
- package/routes/admin/+layout.svelte +56 -0
- package/routes/admin/+layout.ts +31 -0
- package/routes/admin/+page.svelte +39 -0
- package/routes/admin/+page.ts +7 -0
- package/routes/admin/audit/+page.svelte +158 -0
- package/routes/admin/audit/+page.ts +22 -0
- package/routes/admin/audit/[id]/+page.svelte +43 -0
- package/routes/admin/audit/[id]/+page.ts +9 -0
- package/routes/admin/audit/styles.css +31 -0
- package/routes/admin/config/+page.svelte +28 -0
- package/routes/admin/config/+page.ts +9 -0
- package/routes/admin/plugins/+page.svelte +23 -0
- package/routes/admin/plugins/+page.ts +7 -0
- package/routes/admin/users/+page.svelte +60 -0
- package/routes/admin/users/+page.ts +9 -0
- package/routes/admin/users/[id]/+page.svelte +108 -0
- package/routes/admin/users/[id]/+page.ts +17 -0
- package/routes/login/client/+page.svelte +72 -0
- package/routes/login/client/+page.ts +27 -0
- package/routes/tsconfig.json +1 -1
- package/svelte.config.js +4 -10
- package/{web/template.html → template.html} +1 -1
- package/{web/tsconfig.json → web.tsconfig.json} +2 -2
- package/build/client/_app/immutable/chunks/B1E1cVbi.js +0 -1
- package/build/client/_app/immutable/chunks/B1E1cVbi.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1E1cVbi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CIywFg5g.js +0 -3
- package/build/client/_app/immutable/chunks/CIywFg5g.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIywFg5g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3hk2v8y.js +0 -1
- package/build/client/_app/immutable/chunks/D3hk2v8y.js.br +0 -2
- package/build/client/_app/immutable/chunks/D3hk2v8y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D4Bce_hb.js +0 -1
- package/build/client/_app/immutable/chunks/D4Bce_hb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4Bce_hb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9TfJrfD.js +0 -1
- package/build/client/_app/immutable/chunks/D9TfJrfD.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9TfJrfD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJeR1n-B.js +0 -51
- package/build/client/_app/immutable/chunks/DJeR1n-B.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJeR1n-B.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DsnmJJEf.js +0 -1
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.br +0 -2
- package/build/client/_app/immutable/chunks/DsnmJJEf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dy1O3iBu.js +0 -2
- package/build/client/_app/immutable/chunks/Dy1O3iBu.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dy1O3iBu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/pba7IodQ.js +0 -1
- package/build/client/_app/immutable/chunks/pba7IodQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/pba7IodQ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ChtScU8h.js +0 -2
- package/build/client/_app/immutable/entry/app.ChtScU8h.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ChtScU8h.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DdjgBKiR.js +0 -1
- package/build/client/_app/immutable/entry/start.DdjgBKiR.js.br +0 -2
- package/build/client/_app/immutable/entry/start.DdjgBKiR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js +0 -1
- package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DRjfV_5C.js +0 -1
- package/build/client/_app/immutable/nodes/1.DRjfV_5C.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DRjfV_5C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CvEpuMc7.js +0 -1
- package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js +0 -7
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CVudd8x2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js +0 -1
- package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js +0 -1
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CGoBaVII.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BtB2uWXy.js +0 -1
- package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.gz +0 -0
- package/build/server/chunks/0-DgHTujtC.js +0 -9
- package/build/server/chunks/0-DgHTujtC.js.map +0 -1
- package/build/server/chunks/1-B3zVLOO8.js +0 -9
- package/build/server/chunks/1-B3zVLOO8.js.map +0 -1
- package/build/server/chunks/2-CXlrhpR6.js +0 -9
- package/build/server/chunks/3-CGT4Ugys.js +0 -13
- package/build/server/chunks/3-CGT4Ugys.js.map +0 -1
- package/build/server/chunks/4-BscEiwUk.js +0 -9
- package/build/server/chunks/4-BscEiwUk.js.map +0 -1
- package/build/server/chunks/5-H0ePIJBE.js +0 -9
- package/build/server/chunks/5-H0ePIJBE.js.map +0 -1
- package/build/server/chunks/6-BrPpcagX.js +0 -9
- package/build/server/chunks/6-BrPpcagX.js.map +0 -1
- package/build/server/chunks/FormDialog-CB-2YGWi.js.map +0 -1
- package/build/server/chunks/Logout-LKOt-AST.js +0 -45
- package/build/server/chunks/Logout-LKOt-AST.js.map +0 -1
- package/build/server/chunks/_page.svelte-B1LK5J87.js +0 -11
- package/build/server/chunks/_page.svelte-B1LK5J87.js.map +0 -1
- package/build/server/chunks/_page.svelte-CMtkwvbP.js +0 -68
- package/build/server/chunks/_page.svelte-CMtkwvbP.js.map +0 -1
- package/build/server/chunks/_page.svelte-CbI2KxeA.js +0 -62
- package/build/server/chunks/_page.svelte-CbI2KxeA.js.map +0 -1
- package/build/server/chunks/_page.svelte-D1_WJoyP.js +0 -6
- package/build/server/chunks/_page.svelte-D1_WJoyP.js.map +0 -1
- package/build/server/chunks/_page.svelte-d01Hl2Ia.js +0 -639
- package/build/server/chunks/_page.svelte-d01Hl2Ia.js.map +0 -1
- package/build/server/chunks/error.svelte-DNQXZmIO.js.map +0 -1
- package/build/server/chunks/hooks.server-CQhG9POo.js +0 -17298
- package/build/server/chunks/hooks.server-CQhG9POo.js.map +0 -1
- package/build/server/chunks/index-CvHf_GW2.js.map +0 -1
- package/build/server/chunks/index-RTKpMYZ1.js +0 -397
- package/build/server/chunks/index-RTKpMYZ1.js.map +0 -1
- package/build/server/chunks/layout.svelte-BSvrn-4a.js +0 -8
- package/build/server/chunks/layout.svelte-BSvrn-4a.js.map +0 -1
- package/build/server/chunks/string-DLbvtT1R.js.map +0 -1
- package/dist/apps.d.ts +0 -6
- package/dist/apps.js +0 -6
- package/dist/plugins.d.ts +0 -49
- package/dist/plugins.js +0 -80
- package/dist/sveltekit.d.ts +0 -8
- package/dist/sveltekit.js +0 -60
- package/web/hooks.server.ts +0 -4
- /package/{axiumd.service → axium.service} +0 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import './numbers-DL8C9q4W.js';
|
|
2
|
+
import { p as preferenceSchemas, a as preferenceLabels, z as zIs, b as preferenceDefaults } from './index-Tt4zVDIZ.js';
|
|
3
|
+
import { I as Icon } from './Icon-BVo9qbDf.js';
|
|
4
|
+
import { N as bind_props, O as props_id, w as ensure_array_like, K as attr_style, J as css_props, x as attr, G as stringify, P as attributes } from './index-CIEcmmdN.js';
|
|
5
|
+
import { e as escape_html } from './context-R2425nfV.js';
|
|
6
|
+
import { l as logout, c as logoutAll } from './user2-CRfK67II.js';
|
|
7
|
+
import { F as FormDialog } from './FormDialog-ZCY0chY1.js';
|
|
8
|
+
|
|
9
|
+
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
10
|
+
// Copyright (c) 2025 James Prevett
|
|
11
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
12
|
+
function pick(object, ...keys) {
|
|
13
|
+
const picked = {};
|
|
14
|
+
for (const key of keys.flat()) {
|
|
15
|
+
picked[key] = object[key];
|
|
16
|
+
}
|
|
17
|
+
return picked;
|
|
18
|
+
}
|
|
19
|
+
function getByString(object, path, separator = /[.[\]'"]/) {
|
|
20
|
+
return path
|
|
21
|
+
.split(separator)
|
|
22
|
+
.filter(p => p && p != '__proto__')
|
|
23
|
+
.reduce((o, p) => o?.[p], object);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const $$css$2 = {
|
|
27
|
+
hash: "svelte-1jyuowb",
|
|
28
|
+
code: "button.svelte-1jyuowb {position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent;}span.svelte-1jyuowb {position:absolute;inset:0;}"
|
|
29
|
+
};
|
|
30
|
+
function ClipboardCopy($$renderer, $$props) {
|
|
31
|
+
$$renderer.global.css.add($$css$2);
|
|
32
|
+
$$renderer.component(($$renderer2) => {
|
|
33
|
+
const { value, type = "text/plain" } = $$props;
|
|
34
|
+
$$renderer2.push(`<button class="svelte-1jyuowb">`);
|
|
35
|
+
{
|
|
36
|
+
$$renderer2.push("<!--[!-->");
|
|
37
|
+
$$renderer2.push(`<span class="svelte-1jyuowb">`);
|
|
38
|
+
Icon($$renderer2, { i: "copy" });
|
|
39
|
+
$$renderer2.push(`<!----></span>`);
|
|
40
|
+
}
|
|
41
|
+
$$renderer2.push(`<!--]--></button>`);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
const $$css$1 = {
|
|
45
|
+
hash: "svelte-5ofwln",
|
|
46
|
+
code: "input[type='checkbox'].svelte-5ofwln {display:none;}label.checkbox.svelte-5ofwln {cursor:pointer;width:1.5em;height:1.5em;border:1px solid var(--border-accent);border-radius:0.5em;display:inline-flex;justify-content:center;align-items:center;}"
|
|
47
|
+
};
|
|
48
|
+
function Preference_1($$renderer, $$props) {
|
|
49
|
+
$$renderer.global.css.add($$css$1);
|
|
50
|
+
$$renderer.component(($$renderer2) => {
|
|
51
|
+
const id = props_id($$renderer2);
|
|
52
|
+
let { preferences = void 0, userId, path, schema, optional = false } = $$props;
|
|
53
|
+
let checked = schema.def.type == "boolean" && getByString(preferences, path);
|
|
54
|
+
const initialValue = getByString(preferences, path) ?? getByString(preferenceDefaults, path);
|
|
55
|
+
function dateAttr(date, format) {
|
|
56
|
+
if (!date) return null;
|
|
57
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
58
|
+
const yyyy = date.getFullYear();
|
|
59
|
+
const mm = pad(date.getMonth() + 1);
|
|
60
|
+
const dd = pad(date.getDate());
|
|
61
|
+
const dateStr = `${yyyy}-${mm}-${dd}`;
|
|
62
|
+
const HH = pad(date.getHours());
|
|
63
|
+
const MM = pad(date.getMinutes());
|
|
64
|
+
const timeStr = `${HH}:${MM}`;
|
|
65
|
+
switch (format) {
|
|
66
|
+
case "date":
|
|
67
|
+
return dateStr;
|
|
68
|
+
case "time":
|
|
69
|
+
return timeStr;
|
|
70
|
+
case "time+sec":
|
|
71
|
+
return `${timeStr}:${pad(date.getSeconds())}`;
|
|
72
|
+
case "datetime":
|
|
73
|
+
default:
|
|
74
|
+
return `${dateStr}T${timeStr}`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function _in($$renderer3, rest) {
|
|
78
|
+
$$renderer3.push(`<input${attributes({ id, ...rest, value: initialValue, required: !optional }, "svelte-5ofwln", void 0, void 0, 4)}/>`);
|
|
79
|
+
}
|
|
80
|
+
let $$settled = true;
|
|
81
|
+
let $$inner_renderer;
|
|
82
|
+
function $$render_inner($$renderer3) {
|
|
83
|
+
if (zIs(schema, "string")) {
|
|
84
|
+
$$renderer3.push("<!--[-->");
|
|
85
|
+
_in($$renderer3, {
|
|
86
|
+
type: schema.format == "email" ? "email" : "text",
|
|
87
|
+
...pick(schema, "minLength", "maxLength")
|
|
88
|
+
});
|
|
89
|
+
} else {
|
|
90
|
+
$$renderer3.push("<!--[!-->");
|
|
91
|
+
if (zIs(schema, "number")) {
|
|
92
|
+
$$renderer3.push("<!--[-->");
|
|
93
|
+
_in($$renderer3, {
|
|
94
|
+
type: "number",
|
|
95
|
+
min: schema.minValue,
|
|
96
|
+
max: schema.maxValue,
|
|
97
|
+
step: schema.format?.includes("int") ? 1 : 0.1
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
$$renderer3.push("<!--[!-->");
|
|
101
|
+
if (zIs(schema, "bigint")) {
|
|
102
|
+
$$renderer3.push("<!--[-->");
|
|
103
|
+
_in($$renderer3, {
|
|
104
|
+
type: "number",
|
|
105
|
+
min: Number(schema.minValue),
|
|
106
|
+
max: Number(schema.maxValue),
|
|
107
|
+
step: 1
|
|
108
|
+
});
|
|
109
|
+
} else {
|
|
110
|
+
$$renderer3.push("<!--[!-->");
|
|
111
|
+
if (zIs(schema, "boolean")) {
|
|
112
|
+
$$renderer3.push("<!--[-->");
|
|
113
|
+
$$renderer3.push(`<input${attr("checked", checked, true)}${attr("id", id)} type="checkbox"${attr("required", !optional, true)} class="svelte-5ofwln"/> <label${attr("for", id)} class="checkbox svelte-5ofwln">`);
|
|
114
|
+
if (checked) {
|
|
115
|
+
$$renderer3.push("<!--[-->");
|
|
116
|
+
css_props($$renderer3, true, { "--size": "1.3em" }, () => {
|
|
117
|
+
Icon($$renderer3, { i: "check" });
|
|
118
|
+
});
|
|
119
|
+
} else {
|
|
120
|
+
$$renderer3.push("<!--[!-->");
|
|
121
|
+
}
|
|
122
|
+
$$renderer3.push(`<!--]--></label>`);
|
|
123
|
+
} else {
|
|
124
|
+
$$renderer3.push("<!--[!-->");
|
|
125
|
+
if (zIs(schema, "date")) {
|
|
126
|
+
$$renderer3.push("<!--[-->");
|
|
127
|
+
_in($$renderer3, {
|
|
128
|
+
type: "date",
|
|
129
|
+
min: dateAttr(schema.minDate, "date"),
|
|
130
|
+
max: dateAttr(schema.maxDate, "date")
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
$$renderer3.push("<!--[!-->");
|
|
134
|
+
if (zIs(schema, "file")) {
|
|
135
|
+
$$renderer3.push("<!--[-->");
|
|
136
|
+
} else {
|
|
137
|
+
$$renderer3.push("<!--[!-->");
|
|
138
|
+
if (zIs(schema, "literal")) {
|
|
139
|
+
$$renderer3.push("<!--[-->");
|
|
140
|
+
$$renderer3.push(`<select${attr("id", id)}${attr("required", !optional, true)}><!--[-->`);
|
|
141
|
+
const each_array = ensure_array_like(schema.values);
|
|
142
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
143
|
+
let value = each_array[$$index];
|
|
144
|
+
$$renderer3.option({ value, selected: initialValue === value }, ($$renderer4) => {
|
|
145
|
+
$$renderer4.push(`${escape_html(value)}`);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
$$renderer3.push(`<!--]--></select>`);
|
|
149
|
+
} else {
|
|
150
|
+
$$renderer3.push("<!--[!-->");
|
|
151
|
+
if (zIs(schema, "template_literal")) {
|
|
152
|
+
$$renderer3.push("<!--[-->");
|
|
153
|
+
} else {
|
|
154
|
+
$$renderer3.push("<!--[!-->");
|
|
155
|
+
if (zIs(schema, "nullable") || zIs(schema, "optional")) {
|
|
156
|
+
$$renderer3.push("<!--[-->");
|
|
157
|
+
Preference_1($$renderer3, {
|
|
158
|
+
userId,
|
|
159
|
+
path,
|
|
160
|
+
schema: schema.def.innerType,
|
|
161
|
+
optional: true,
|
|
162
|
+
get preferences() {
|
|
163
|
+
return preferences;
|
|
164
|
+
},
|
|
165
|
+
set preferences($$value) {
|
|
166
|
+
preferences = $$value;
|
|
167
|
+
$$settled = false;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
} else {
|
|
171
|
+
$$renderer3.push("<!--[!-->");
|
|
172
|
+
if (zIs(schema, "array")) {
|
|
173
|
+
$$renderer3.push("<!--[-->");
|
|
174
|
+
$$renderer3.push(`<div class="pref-sub"><!--[-->`);
|
|
175
|
+
const each_array_1 = ensure_array_like(initialValue);
|
|
176
|
+
for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {
|
|
177
|
+
$$renderer3.push(`<div class="pref-record-entry">`);
|
|
178
|
+
Preference_1($$renderer3, {
|
|
179
|
+
userId,
|
|
180
|
+
path: `${stringify(path)}.${stringify(i)}`,
|
|
181
|
+
schema: schema.element,
|
|
182
|
+
get preferences() {
|
|
183
|
+
return preferences;
|
|
184
|
+
},
|
|
185
|
+
set preferences($$value) {
|
|
186
|
+
preferences = $$value;
|
|
187
|
+
$$settled = false;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
$$renderer3.push(`<!----></div>`);
|
|
191
|
+
}
|
|
192
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
193
|
+
} else {
|
|
194
|
+
$$renderer3.push("<!--[!-->");
|
|
195
|
+
if (zIs(schema, "record")) {
|
|
196
|
+
$$renderer3.push("<!--[-->");
|
|
197
|
+
$$renderer3.push(`<div class="pref-sub"><!--[-->`);
|
|
198
|
+
const each_array_2 = ensure_array_like(Object.keys(initialValue));
|
|
199
|
+
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
200
|
+
let key = each_array_2[$$index_2];
|
|
201
|
+
$$renderer3.push(`<div class="pref-record-entry"><label${attr("for", id)}>${escape_html(key)}</label> `);
|
|
202
|
+
Preference_1($$renderer3, {
|
|
203
|
+
userId,
|
|
204
|
+
path: `${stringify(path)}.${stringify(key)}`,
|
|
205
|
+
schema: schema.valueType,
|
|
206
|
+
get preferences() {
|
|
207
|
+
return preferences;
|
|
208
|
+
},
|
|
209
|
+
set preferences($$value) {
|
|
210
|
+
preferences = $$value;
|
|
211
|
+
$$settled = false;
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
$$renderer3.push(`<!----></div>`);
|
|
215
|
+
}
|
|
216
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
217
|
+
} else {
|
|
218
|
+
$$renderer3.push("<!--[!-->");
|
|
219
|
+
if (zIs(schema, "object")) {
|
|
220
|
+
$$renderer3.push("<!--[-->");
|
|
221
|
+
$$renderer3.push(`<!--[-->`);
|
|
222
|
+
const each_array_3 = ensure_array_like(Object.entries(schema.shape));
|
|
223
|
+
for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
|
|
224
|
+
let [key, value] = each_array_3[$$index_3];
|
|
225
|
+
$$renderer3.push(`<div class="pref-sub"><label${attr("for", id)}>${escape_html(key)}</label> `);
|
|
226
|
+
Preference_1($$renderer3, {
|
|
227
|
+
userId,
|
|
228
|
+
path: `${stringify(path)}.${stringify(key)}`,
|
|
229
|
+
schema: value,
|
|
230
|
+
get preferences() {
|
|
231
|
+
return preferences;
|
|
232
|
+
},
|
|
233
|
+
set preferences($$value) {
|
|
234
|
+
preferences = $$value;
|
|
235
|
+
$$settled = false;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
$$renderer3.push(`<!----></div>`);
|
|
239
|
+
}
|
|
240
|
+
$$renderer3.push(`<!--]-->`);
|
|
241
|
+
} else {
|
|
242
|
+
$$renderer3.push("<!--[!-->");
|
|
243
|
+
if (zIs(schema, "tuple")) {
|
|
244
|
+
$$renderer3.push("<!--[-->");
|
|
245
|
+
$$renderer3.push(`<div class="pref-sub"${attr("data-rest", schema.def.rest)}><!--[-->`);
|
|
246
|
+
const each_array_4 = ensure_array_like(schema.def.items);
|
|
247
|
+
for (let i = 0, $$length = each_array_4.length; i < $$length; i++) {
|
|
248
|
+
let item = each_array_4[i];
|
|
249
|
+
Preference_1($$renderer3, {
|
|
250
|
+
userId,
|
|
251
|
+
path: `${stringify(path)}.${stringify(i)}`,
|
|
252
|
+
schema: item,
|
|
253
|
+
get preferences() {
|
|
254
|
+
return preferences;
|
|
255
|
+
},
|
|
256
|
+
set preferences($$value) {
|
|
257
|
+
preferences = $$value;
|
|
258
|
+
$$settled = false;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
$$renderer3.push(`<!--]--></div>`);
|
|
263
|
+
} else {
|
|
264
|
+
$$renderer3.push("<!--[!-->");
|
|
265
|
+
if (zIs(schema, "enum")) {
|
|
266
|
+
$$renderer3.push("<!--[-->");
|
|
267
|
+
$$renderer3.push(`<select${attr("id", id)}${attr("required", !optional, true)}><!--[-->`);
|
|
268
|
+
const each_array_5 = ensure_array_like(Object.entries(schema.enum));
|
|
269
|
+
for (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {
|
|
270
|
+
let [key, value] = each_array_5[$$index_5];
|
|
271
|
+
$$renderer3.option({ value, selected: initialValue === value }, ($$renderer4) => {
|
|
272
|
+
$$renderer4.push(`${escape_html(key)}`);
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
$$renderer3.push(`<!--]--></select>`);
|
|
276
|
+
} else {
|
|
277
|
+
$$renderer3.push("<!--[!-->");
|
|
278
|
+
$$renderer3.push(`<i class="error-text">Invalid preference type: ${escape_html(JSON.stringify(schema?.def?.type))}</i>`);
|
|
279
|
+
}
|
|
280
|
+
$$renderer3.push(`<!--]-->`);
|
|
281
|
+
}
|
|
282
|
+
$$renderer3.push(`<!--]-->`);
|
|
283
|
+
}
|
|
284
|
+
$$renderer3.push(`<!--]-->`);
|
|
285
|
+
}
|
|
286
|
+
$$renderer3.push(`<!--]-->`);
|
|
287
|
+
}
|
|
288
|
+
$$renderer3.push(`<!--]-->`);
|
|
289
|
+
}
|
|
290
|
+
$$renderer3.push(`<!--]-->`);
|
|
291
|
+
}
|
|
292
|
+
$$renderer3.push(`<!--]-->`);
|
|
293
|
+
}
|
|
294
|
+
$$renderer3.push(`<!--]-->`);
|
|
295
|
+
}
|
|
296
|
+
$$renderer3.push(`<!--]-->`);
|
|
297
|
+
}
|
|
298
|
+
$$renderer3.push(`<!--]-->`);
|
|
299
|
+
}
|
|
300
|
+
$$renderer3.push(`<!--]-->`);
|
|
301
|
+
}
|
|
302
|
+
$$renderer3.push(`<!--]-->`);
|
|
303
|
+
}
|
|
304
|
+
$$renderer3.push(`<!--]-->`);
|
|
305
|
+
}
|
|
306
|
+
$$renderer3.push(`<!--]-->`);
|
|
307
|
+
}
|
|
308
|
+
do {
|
|
309
|
+
$$settled = true;
|
|
310
|
+
$$inner_renderer = $$renderer2.copy();
|
|
311
|
+
$$render_inner($$inner_renderer);
|
|
312
|
+
} while (!$$settled);
|
|
313
|
+
$$renderer2.subsume($$inner_renderer);
|
|
314
|
+
bind_props($$props, { preferences });
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
const $$css = {
|
|
318
|
+
hash: "svelte-1j7yjjy",
|
|
319
|
+
code: ".pref.svelte-1j7yjjy {display:grid;grid-template-columns:1fr 1fr;gap:1em;}"
|
|
320
|
+
};
|
|
321
|
+
function Preferences($$renderer, $$props) {
|
|
322
|
+
$$renderer.global.css.add($$css);
|
|
323
|
+
$$renderer.component(($$renderer2) => {
|
|
324
|
+
const id = props_id($$renderer2);
|
|
325
|
+
let { preferences = void 0, userId } = $$props;
|
|
326
|
+
let $$settled = true;
|
|
327
|
+
let $$inner_renderer;
|
|
328
|
+
function $$render_inner($$renderer3) {
|
|
329
|
+
$$renderer3.push(`<!--[-->`);
|
|
330
|
+
const each_array = ensure_array_like(Object.keys(preferenceSchemas));
|
|
331
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
332
|
+
let path = each_array[$$index];
|
|
333
|
+
$$renderer3.push(`<div class="pref svelte-1j7yjjy"><label${attr("for", id)}>${escape_html(preferenceLabels[path])}</label> `);
|
|
334
|
+
Preference_1($$renderer3, {
|
|
335
|
+
userId,
|
|
336
|
+
path,
|
|
337
|
+
schema: preferenceSchemas[path],
|
|
338
|
+
get preferences() {
|
|
339
|
+
return preferences;
|
|
340
|
+
},
|
|
341
|
+
set preferences($$value) {
|
|
342
|
+
preferences = $$value;
|
|
343
|
+
$$settled = false;
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
$$renderer3.push(`<!----></div>`);
|
|
347
|
+
}
|
|
348
|
+
$$renderer3.push(`<!--]-->`);
|
|
349
|
+
}
|
|
350
|
+
do {
|
|
351
|
+
$$settled = true;
|
|
352
|
+
$$inner_renderer = $$renderer2.copy();
|
|
353
|
+
$$render_inner($$inner_renderer);
|
|
354
|
+
} while (!$$settled);
|
|
355
|
+
$$renderer2.subsume($$inner_renderer);
|
|
356
|
+
bind_props($$props, { preferences });
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function SessionList($$renderer, $$props) {
|
|
360
|
+
$$renderer.component(($$renderer2) => {
|
|
361
|
+
let {
|
|
362
|
+
sessions = void 0,
|
|
363
|
+
currentSession,
|
|
364
|
+
user,
|
|
365
|
+
redirectAfterLogoutAll = false
|
|
366
|
+
} = $$props;
|
|
367
|
+
const dialogs = {};
|
|
368
|
+
let $$settled = true;
|
|
369
|
+
let $$inner_renderer;
|
|
370
|
+
function $$render_inner($$renderer3) {
|
|
371
|
+
$$renderer3.push(`<!--[-->`);
|
|
372
|
+
const each_array = ensure_array_like(sessions);
|
|
373
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
374
|
+
let session = each_array[$$index];
|
|
375
|
+
$$renderer3.push(`<div class="item session"><p>${escape_html(session.id.slice(0, 4))}...${escape_html(session.id.slice(-4))} `);
|
|
376
|
+
if (session.id == currentSession?.id) {
|
|
377
|
+
$$renderer3.push("<!--[-->");
|
|
378
|
+
$$renderer3.push(`<span class="current">Current</span>`);
|
|
379
|
+
} else {
|
|
380
|
+
$$renderer3.push("<!--[!-->");
|
|
381
|
+
}
|
|
382
|
+
$$renderer3.push(`<!--]--> `);
|
|
383
|
+
if (session.elevated) {
|
|
384
|
+
$$renderer3.push("<!--[-->");
|
|
385
|
+
$$renderer3.push(`<span class="elevated">Elevated</span>`);
|
|
386
|
+
} else {
|
|
387
|
+
$$renderer3.push("<!--[!-->");
|
|
388
|
+
}
|
|
389
|
+
$$renderer3.push(`<!--]--></p> <p>Created ${escape_html(session.created.toLocaleString())}</p> <p>Expires ${escape_html(session.expires.toLocaleString())}</p> <button${attr_style("", { display: "contents" })}>`);
|
|
390
|
+
css_props($$renderer3, true, { "--size": "16px" }, () => {
|
|
391
|
+
Icon($$renderer3, { i: "right-from-bracket" });
|
|
392
|
+
});
|
|
393
|
+
$$renderer3.push(`</button></div> `);
|
|
394
|
+
FormDialog($$renderer3, {
|
|
395
|
+
submit: async () => {
|
|
396
|
+
await logout(user.id, session.id);
|
|
397
|
+
dialogs["logout#" + session.id].remove();
|
|
398
|
+
sessions.splice(sessions.indexOf(session), 1);
|
|
399
|
+
if (session.id == currentSession?.id) window.location.href = "/";
|
|
400
|
+
},
|
|
401
|
+
submitText: "Logout",
|
|
402
|
+
get dialog() {
|
|
403
|
+
return dialogs["logout#" + session.id];
|
|
404
|
+
},
|
|
405
|
+
set dialog($$value) {
|
|
406
|
+
dialogs["logout#" + session.id] = $$value;
|
|
407
|
+
$$settled = false;
|
|
408
|
+
},
|
|
409
|
+
children: ($$renderer4) => {
|
|
410
|
+
$$renderer4.push(`<p>Are you sure you want to log out this session?</p>`);
|
|
411
|
+
},
|
|
412
|
+
$$slots: { default: true }
|
|
413
|
+
});
|
|
414
|
+
$$renderer3.push(`<!---->`);
|
|
415
|
+
}
|
|
416
|
+
$$renderer3.push(`<!--]--> <span><button class="danger">Logout All</button></span> `);
|
|
417
|
+
FormDialog($$renderer3, {
|
|
418
|
+
submit: () => logoutAll(user.id).then(() => redirectAfterLogoutAll ? window.location.href = "/" : null),
|
|
419
|
+
submitText: "Logout All Sessions",
|
|
420
|
+
submitDanger: true,
|
|
421
|
+
get dialog() {
|
|
422
|
+
return dialogs.logout_all;
|
|
423
|
+
},
|
|
424
|
+
set dialog($$value) {
|
|
425
|
+
dialogs.logout_all = $$value;
|
|
426
|
+
$$settled = false;
|
|
427
|
+
},
|
|
428
|
+
children: ($$renderer4) => {
|
|
429
|
+
$$renderer4.push(`<p>Are you sure you want to log out all sessions?</p>`);
|
|
430
|
+
},
|
|
431
|
+
$$slots: { default: true }
|
|
432
|
+
});
|
|
433
|
+
$$renderer3.push(`<!---->`);
|
|
434
|
+
}
|
|
435
|
+
do {
|
|
436
|
+
$$settled = true;
|
|
437
|
+
$$inner_renderer = $$renderer2.copy();
|
|
438
|
+
$$render_inner($$inner_renderer);
|
|
439
|
+
} while (!$$settled);
|
|
440
|
+
$$renderer2.subsume($$inner_renderer);
|
|
441
|
+
bind_props($$props, { sessions });
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export { ClipboardCopy as C, Preferences as P, SessionList as S };
|
|
446
|
+
//# sourceMappingURL=account-Bf_llRe2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-Bf_llRe2.js","sources":["../../../../node_modules/utilium/dist/objects.js","../../../.svelte-kit/adapter-node/chunks/account.js"],"sourcesContent":["// SPDX-License-Identifier: LGPL-3.0-or-later\n// Copyright (c) 2025 James Prevett\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport function filterObject(object, predicate) {\n const entries = Object.entries(object);\n return Object.fromEntries(entries.filter(([key, value]) => predicate(key, value)));\n}\nexport function pick(object, ...keys) {\n const picked = {};\n for (const key of keys.flat()) {\n picked[key] = object[key];\n }\n return picked;\n}\nexport function omit(object, ...keys) {\n return filterObject(object, key => !keys.flat().includes(key));\n}\nexport function assignWithDefaults(to, from, defaults = to) {\n const keys = new Set([...Object.keys(to), ...Object.keys(from)]);\n for (const key of keys) {\n try {\n to[key] = from[key] ?? defaults[key] ?? to[key];\n }\n catch {\n // Do nothing\n }\n }\n}\n/**\n * Returns whether `value` is not a primitive.\n *\n * This function is only useful for the type check,\n * you can do `Object(v) === v` otherwise.\n */\nexport function isObject(value) {\n return Object(value) === value;\n}\nexport function deepAssign(to, from) {\n const keys = new Set([\n ...Object.keys(to),\n ...Object.keys(from),\n ]);\n for (const key of keys) {\n if (!(key in from))\n continue;\n const value = from[key];\n if (!(key in to)) {\n to[key] = value;\n continue;\n }\n if (!isObject(to[key]) && Object(value) !== value) {\n to[key] = value;\n continue;\n }\n if (isObject(to[key]) && Object(value) === value) {\n deepAssign(to[key], value);\n continue;\n }\n throw new TypeError(!isObject(to[key])\n ? 'Can not deeply assign an object to a primitive'\n : 'Can not deeply assign a primitive to an object');\n }\n return to;\n}\nexport function isJSON(str) {\n try {\n JSON.parse(str);\n return true;\n }\n catch {\n return false;\n }\n}\nexport function resolveConstructors(object) {\n const constructors = [];\n for (let prototype = object; prototype && !['Function', 'Object'].includes(prototype.constructor.name); prototype = Object.getPrototypeOf(prototype)) {\n constructors.push(prototype.constructor.name);\n }\n return constructors;\n}\nexport function* getAllPrototypes(object) {\n for (let prototype = object; prototype; prototype = Object.getPrototypeOf(prototype)) {\n yield prototype;\n }\n}\nexport function map(items) {\n return new Map(Object.entries(items));\n}\nexport function getByString(object, path, separator = /[.[\\]'\"]/) {\n return path\n .split(separator)\n .filter(p => p && p != '__proto__')\n .reduce((o, p) => o?.[p], object);\n}\nexport function setByString(object, path, value, separator = /[.[\\]'\"]/) {\n return path\n .split(separator)\n .filter(p => p && p != '__proto__')\n .reduce((o, p, i) => (o[p] = path.split(separator).filter(p => p).length === ++i ? value : o[p] || {}), object);\n}\n/**\n * Binds a this value for all of the functions in an object (not recursive)\n */\nexport function bindFunctions(fns, thisValue) {\n return Object.fromEntries(Object.entries(fns).map(([k, v]) => [k, typeof v == 'function' ? v.bind(thisValue) : v]));\n}\n","import \"clsx\";\nimport { getByString, pick } from \"utilium\";\nimport { I as Icon } from \"./Icon.js\";\nimport { N as props_id, O as bind_props, x as attr, J as css_props, w as ensure_array_like, G as stringify, P as attributes, K as attr_style } from \"./index.js\";\nimport { p as preferenceDefaults, z as zIs, a as preferenceSchemas, b as preferenceLabels } from \"./user.js\";\nimport \"mime\";\nimport { e as escape_html } from \"./context.js\";\nimport { l as logout, h as logoutAll } from \"./user2.js\";\nimport { F as FormDialog } from \"./FormDialog.js\";\nconst $$css$2 = {\n hash: \"svelte-1jyuowb\",\n code: \"button.svelte-1jyuowb {position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent;}span.svelte-1jyuowb {position:absolute;inset:0;}\"\n};\nfunction ClipboardCopy($$renderer, $$props) {\n $$renderer.global.css.add($$css$2);\n $$renderer.component(($$renderer2) => {\n const { value, type = \"text/plain\" } = $$props;\n $$renderer2.push(`<button class=\"svelte-1jyuowb\">`);\n {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<span class=\"svelte-1jyuowb\">`);\n Icon($$renderer2, { i: \"copy\" });\n $$renderer2.push(`<!----></span>`);\n }\n $$renderer2.push(`<!--]--></button>`);\n });\n}\nconst $$css$1 = {\n hash: \"svelte-5ofwln\",\n code: \"input[type='checkbox'].svelte-5ofwln {display:none;}label.checkbox.svelte-5ofwln {cursor:pointer;width:1.5em;height:1.5em;border:1px solid var(--border-accent);border-radius:0.5em;display:inline-flex;justify-content:center;align-items:center;}\"\n};\nfunction Preference_1($$renderer, $$props) {\n $$renderer.global.css.add($$css$1);\n $$renderer.component(($$renderer2) => {\n const id = props_id($$renderer2);\n let { preferences = void 0, userId, path, schema, optional = false } = $$props;\n let checked = schema.def.type == \"boolean\" && getByString(preferences, path);\n const initialValue = getByString(preferences, path) ?? getByString(preferenceDefaults, path);\n function dateAttr(date, format) {\n if (!date) return null;\n const pad = (n) => String(n).padStart(2, \"0\");\n const yyyy = date.getFullYear();\n const mm = pad(date.getMonth() + 1);\n const dd = pad(date.getDate());\n const dateStr = `${yyyy}-${mm}-${dd}`;\n const HH = pad(date.getHours());\n const MM = pad(date.getMinutes());\n const timeStr = `${HH}:${MM}`;\n switch (format) {\n case \"date\":\n return dateStr;\n case \"time\":\n return timeStr;\n case \"time+sec\":\n return `${timeStr}:${pad(date.getSeconds())}`;\n case \"datetime\":\n default:\n return `${dateStr}T${timeStr}`;\n }\n }\n function _in($$renderer3, rest) {\n $$renderer3.push(`<input${attributes({ id, ...rest, value: initialValue, required: !optional }, \"svelte-5ofwln\", void 0, void 0, 4)}/>`);\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n if (zIs(schema, \"string\")) {\n $$renderer3.push(\"<!--[-->\");\n _in($$renderer3, {\n type: schema.format == \"email\" ? \"email\" : \"text\",\n ...pick(schema, \"minLength\", \"maxLength\")\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"number\")) {\n $$renderer3.push(\"<!--[-->\");\n _in($$renderer3, {\n type: \"number\",\n min: schema.minValue,\n max: schema.maxValue,\n step: schema.format?.includes(\"int\") ? 1 : 0.1\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"bigint\")) {\n $$renderer3.push(\"<!--[-->\");\n _in($$renderer3, {\n type: \"number\",\n min: Number(schema.minValue),\n max: Number(schema.maxValue),\n step: 1\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"boolean\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<input${attr(\"checked\", checked, true)}${attr(\"id\", id)} type=\"checkbox\"${attr(\"required\", !optional, true)} class=\"svelte-5ofwln\"/> <label${attr(\"for\", id)} class=\"checkbox svelte-5ofwln\">`);\n if (checked) {\n $$renderer3.push(\"<!--[-->\");\n css_props($$renderer3, true, { \"--size\": \"1.3em\" }, () => {\n Icon($$renderer3, { i: \"check\" });\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></label>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"date\")) {\n $$renderer3.push(\"<!--[-->\");\n _in($$renderer3, {\n type: \"date\",\n min: dateAttr(schema.minDate, \"date\"),\n max: dateAttr(schema.maxDate, \"date\")\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"file\")) {\n $$renderer3.push(\"<!--[-->\");\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"literal\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<select${attr(\"id\", id)}${attr(\"required\", !optional, true)}><!--[-->`);\n const each_array = ensure_array_like(schema.values);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let value = each_array[$$index];\n $$renderer3.option({ value, selected: initialValue === value }, ($$renderer4) => {\n $$renderer4.push(`${escape_html(value)}`);\n });\n }\n $$renderer3.push(`<!--]--></select>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"template_literal\")) {\n $$renderer3.push(\"<!--[-->\");\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"nullable\") || zIs(schema, \"optional\")) {\n $$renderer3.push(\"<!--[-->\");\n Preference_1($$renderer3, {\n userId,\n path,\n schema: schema.def.innerType,\n optional: true,\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"array\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<div class=\"pref-sub\"><!--[-->`);\n const each_array_1 = ensure_array_like(initialValue);\n for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {\n $$renderer3.push(`<div class=\"pref-record-entry\">`);\n Preference_1($$renderer3, {\n userId,\n path: `${stringify(path)}.${stringify(i)}`,\n schema: schema.element,\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"record\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<div class=\"pref-sub\"><!--[-->`);\n const each_array_2 = ensure_array_like(Object.keys(initialValue));\n for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {\n let key = each_array_2[$$index_2];\n $$renderer3.push(`<div class=\"pref-record-entry\"><label${attr(\"for\", id)}>${escape_html(key)}</label> `);\n Preference_1($$renderer3, {\n userId,\n path: `${stringify(path)}.${stringify(key)}`,\n schema: schema.valueType,\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----></div>`);\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"object\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<!--[-->`);\n const each_array_3 = ensure_array_like(Object.entries(schema.shape));\n for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {\n let [key, value] = each_array_3[$$index_3];\n $$renderer3.push(`<div class=\"pref-sub\"><label${attr(\"for\", id)}>${escape_html(key)}</label> `);\n Preference_1($$renderer3, {\n userId,\n path: `${stringify(path)}.${stringify(key)}`,\n schema: value,\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----></div>`);\n }\n $$renderer3.push(`<!--]-->`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"tuple\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<div class=\"pref-sub\"${attr(\"data-rest\", schema.def.rest)}><!--[-->`);\n const each_array_4 = ensure_array_like(schema.def.items);\n for (let i = 0, $$length = each_array_4.length; i < $$length; i++) {\n let item = each_array_4[i];\n Preference_1($$renderer3, {\n userId,\n path: `${stringify(path)}.${stringify(i)}`,\n schema: item,\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n if (zIs(schema, \"enum\")) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<select${attr(\"id\", id)}${attr(\"required\", !optional, true)}><!--[-->`);\n const each_array_5 = ensure_array_like(Object.entries(schema.enum));\n for (let $$index_5 = 0, $$length = each_array_5.length; $$index_5 < $$length; $$index_5++) {\n let [key, value] = each_array_5[$$index_5];\n $$renderer3.option({ value, selected: initialValue === value }, ($$renderer4) => {\n $$renderer4.push(`${escape_html(key)}`);\n });\n }\n $$renderer3.push(`<!--]--></select>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<i class=\"error-text\">Invalid preference type: ${escape_html(JSON.stringify(schema?.def?.type))}</i>`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n bind_props($$props, { preferences });\n });\n}\nconst $$css = {\n hash: \"svelte-1j7yjjy\",\n code: \".pref.svelte-1j7yjjy {display:grid;grid-template-columns:1fr 1fr;gap:1em;}\"\n};\nfunction Preferences($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n const id = props_id($$renderer2);\n let { preferences = void 0, userId } = $$props;\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n $$renderer3.push(`<!--[-->`);\n const each_array = ensure_array_like(Object.keys(preferenceSchemas));\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let path = each_array[$$index];\n $$renderer3.push(`<div class=\"pref svelte-1j7yjjy\"><label${attr(\"for\", id)}>${escape_html(preferenceLabels[path])}</label> `);\n Preference_1($$renderer3, {\n userId,\n path,\n schema: preferenceSchemas[path],\n get preferences() {\n return preferences;\n },\n set preferences($$value) {\n preferences = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----></div>`);\n }\n $$renderer3.push(`<!--]-->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n bind_props($$props, { preferences });\n });\n}\nfunction SessionList($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n sessions = void 0,\n currentSession,\n user,\n redirectAfterLogoutAll = false\n } = $$props;\n const dialogs = {};\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n $$renderer3.push(`<!--[-->`);\n const each_array = ensure_array_like(sessions);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let session = each_array[$$index];\n $$renderer3.push(`<div class=\"item session\"><p>${escape_html(session.id.slice(0, 4))}...${escape_html(session.id.slice(-4))} `);\n if (session.id == currentSession?.id) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"current\">Current</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--> `);\n if (session.elevated) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<span class=\"elevated\">Elevated</span>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n }\n $$renderer3.push(`<!--]--></p> <p>Created ${escape_html(session.created.toLocaleString())}</p> <p>Expires ${escape_html(session.expires.toLocaleString())}</p> <button${attr_style(\"\", { display: \"contents\" })}>`);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n Icon($$renderer3, { i: \"right-from-bracket\" });\n });\n $$renderer3.push(`</button></div> `);\n FormDialog($$renderer3, {\n submit: async () => {\n await logout(user.id, session.id);\n dialogs[\"logout#\" + session.id].remove();\n sessions.splice(sessions.indexOf(session), 1);\n if (session.id == currentSession?.id) window.location.href = \"/\";\n },\n submitText: \"Logout\",\n get dialog() {\n return dialogs[\"logout#\" + session.id];\n },\n set dialog($$value) {\n dialogs[\"logout#\" + session.id] = $$value;\n $$settled = false;\n },\n children: ($$renderer4) => {\n $$renderer4.push(`<p>Are you sure you want to log out this session?</p>`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!---->`);\n }\n $$renderer3.push(`<!--]--> <span><button class=\"danger\">Logout All</button></span> `);\n FormDialog($$renderer3, {\n submit: () => logoutAll(user.id).then(() => redirectAfterLogoutAll ? window.location.href = \"/\" : null),\n submitText: \"Logout All Sessions\",\n submitDanger: true,\n get dialog() {\n return dialogs.logout_all;\n },\n set dialog($$value) {\n dialogs.logout_all = $$value;\n $$settled = false;\n },\n children: ($$renderer4) => {\n $$renderer4.push(`<p>Are you sure you want to log out all sessions?</p>`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!---->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n bind_props($$props, { sessions });\n });\n}\nexport {\n ClipboardCopy as C,\n Preferences as P,\n SessionList as S\n};\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AAKO,SAAS,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,EAAE;AACtC,IAAI,MAAM,MAAM,GAAG,EAAE;AACrB,IAAI,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;AACnC,QAAQ,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;AACjC,IAAI;AACJ,IAAI,OAAO,MAAM;AACjB;AA2EO,SAAS,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,EAAE;AAClE,IAAI,OAAO;AACX,SAAS,KAAK,CAAC,SAAS;AACxB,SAAS,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,WAAW;AAC1C,SAAS,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;AACzC;;ACpFA,MAAM,OAAO,GAAG;AAChB,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE;AACR,CAAC;AACD,SAAS,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE;AAC5C,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,YAAY,EAAE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,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;AAC/G,QAAQ,UAAU,EAAE,qBAAqB;AACzC,QAAQ,YAAY,EAAE,IAAI;AAC1B,QAAQ,IAAI,MAAM,GAAG;AACrB,UAAU,OAAO,OAAO,CAAC,UAAU;AACnC,QAAQ,CAAC;AACT,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE;AAC5B,UAAU,OAAO,CAAC,UAAU,GAAG,OAAO;AACtC,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ,CAAC;AACT,QAAQ,QAAQ,EAAE,CAAC,WAAW,KAAK;AACnC,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,qDAAqD,CAAC,CAAC;AACnF,QAAQ,CAAC;AACT,QAAQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI;AAChC,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACjC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC;AACrC,EAAE,CAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { g as getCurrentSession } from './user2-CRfK67II.js';
|
|
2
|
+
|
|
3
|
+
function resolveRedirect() {
|
|
4
|
+
const url = new URL(location.href);
|
|
5
|
+
const maybe = url.searchParams.get("after");
|
|
6
|
+
if (!["/login", "/register"].includes(url.pathname)) return false;
|
|
7
|
+
if (!maybe || maybe == url.pathname) return "/";
|
|
8
|
+
if (maybe[0] != "/" || maybe[1] == "/") {
|
|
9
|
+
console.error("Ignoring potentially malicious redirect:", maybe);
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
const redirect2 = new URL(maybe, location.origin);
|
|
13
|
+
return redirect2.pathname + redirect2.search || "/";
|
|
14
|
+
}
|
|
15
|
+
const redirect = resolveRedirect();
|
|
16
|
+
try {
|
|
17
|
+
if (!redirect) throw "No redirect";
|
|
18
|
+
const session = await getCurrentSession();
|
|
19
|
+
if (session) location.href = redirect;
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { redirect as r };
|
|
24
|
+
//# sourceMappingURL=auth_redirect-olBYiIF2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth_redirect-olBYiIF2.js","sources":["../../../.svelte-kit/adapter-node/chunks/auth_redirect.js"],"sourcesContent":["import { g as getCurrentSession } from \"./user2.js\";\nfunction resolveRedirect() {\n const url = new URL(location.href);\n const maybe = url.searchParams.get(\"after\");\n if (![\"/login\", \"/register\"].includes(url.pathname)) return false;\n if (!maybe || maybe == url.pathname) return \"/\";\n if (maybe[0] != \"/\" || maybe[1] == \"/\") {\n console.error(\"Ignoring potentially malicious redirect:\", maybe);\n return false;\n }\n const redirect2 = new URL(maybe, location.origin);\n return redirect2.pathname + redirect2.search || \"/\";\n}\nconst redirect = resolveRedirect();\ntry {\n if (!redirect) throw \"No redirect\";\n const session = await getCurrentSession();\n if (session) location.href = redirect;\n} catch {\n}\nexport {\n redirect as r\n};\n"],"names":[],"mappings":";;AACA,SAAS,eAAe,GAAG;AAC3B,EAAE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;AACpC,EAAE,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC;AAC7C,EAAE,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK;AACnE,EAAE,IAAI,CAAC,KAAK,IAAI,KAAK,IAAI,GAAG,CAAC,QAAQ,EAAE,OAAO,GAAG;AACjD,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE;AAC1C,IAAI,OAAO,CAAC,KAAK,CAAC,0CAA0C,EAAE,KAAK,CAAC;AACpE,IAAI,OAAO,KAAK;AAChB,EAAE;AACF,EAAE,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;AACnD,EAAE,OAAO,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,MAAM,IAAI,GAAG;AACrD;AACK,MAAC,QAAQ,GAAG,eAAe;AAChC,IAAI;AACJ,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,aAAa;AACpC,EAAE,MAAM,OAAO,GAAG,MAAM,iBAAiB,EAAE;AAC3C,EAAE,IAAI,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ;AACvC,CAAC,CAAC,MAAM;AACR;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function colorHash(input) {
|
|
2
|
+
let color = input.charCodeAt(0);
|
|
3
|
+
for (let i = 1; i < input.length; i++) {
|
|
4
|
+
color *= input.charCodeAt(i);
|
|
5
|
+
}
|
|
6
|
+
color &= 12566463;
|
|
7
|
+
const r = color >> 16 & 255;
|
|
8
|
+
const g = color >> 8 & 255;
|
|
9
|
+
const b = color & 255;
|
|
10
|
+
return `rgb(${r}, ${g}, ${b})`;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { colorHash as c };
|
|
14
|
+
//# sourceMappingURL=color-K_MR7m8s.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-K_MR7m8s.js","sources":["../../../.svelte-kit/adapter-node/chunks/color.js"],"sourcesContent":["function colorHash(input) {\n let color = input.charCodeAt(0);\n for (let i = 1; i < input.length; i++) {\n color *= input.charCodeAt(i);\n }\n color &= 12566463;\n const r = color >> 16 & 255;\n const g = color >> 8 & 255;\n const b = color & 255;\n return `rgb(${r}, ${g}, ${b})`;\n}\nexport {\n colorHash as c\n};\n"],"names":[],"mappings":"AAAA,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1B,EAAE,IAAI,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACjC,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACzC,IAAI,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AAChC,EAAE;AACF,EAAE,KAAK,IAAI,QAAQ;AACnB,EAAE,MAAM,CAAC,GAAG,KAAK,IAAI,EAAE,GAAG,GAAG;AAC7B,EAAE,MAAM,CAAC,GAAG,KAAK,IAAI,CAAC,GAAG,GAAG;AAC5B,EAAE,MAAM,CAAC,GAAG,KAAK,GAAG,GAAG;AACvB,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAChC;;;;"}
|