@axium/server 0.24.0 → 0.25.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.
Files changed (353) hide show
  1. package/axiumd.service +1 -1
  2. package/build/client/_app/immutable/assets/account.dAAx7bby.css +1 -0
  3. package/build/client/_app/immutable/assets/account.dAAx7bby.css.br +0 -0
  4. package/build/client/_app/immutable/assets/account.dAAx7bby.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/list.DVGH0BeP.css +1 -0
  6. package/build/client/_app/immutable/assets/list.DVGH0BeP.css.br +0 -0
  7. package/build/client/_app/immutable/assets/list.DVGH0BeP.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css +1 -0
  9. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.br +2 -0
  10. package/build/client/_app/immutable/assets/styles.D8SZ-PeY.css.gz +0 -0
  11. package/build/client/_app/immutable/chunks/1taVrT-y.js +1 -0
  12. package/build/client/_app/immutable/chunks/1taVrT-y.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/1taVrT-y.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/BSFUgC2l.js +23 -0
  15. package/build/client/_app/immutable/chunks/BSFUgC2l.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/BSFUgC2l.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/Bbzjahjl.js +2 -0
  18. package/build/client/_app/immutable/chunks/Bbzjahjl.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/Bbzjahjl.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/BxjargW5.js +1 -0
  21. package/build/client/_app/immutable/chunks/BxjargW5.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/BxjargW5.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/C2ewTgu8.js +1 -0
  24. package/build/client/_app/immutable/chunks/C2ewTgu8.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/C2ewTgu8.js.gz +0 -0
  26. package/build/client/_app/immutable/chunks/CFWAHLsq.js +1 -0
  27. package/build/client/_app/immutable/chunks/CFWAHLsq.js.br +0 -0
  28. package/build/client/_app/immutable/chunks/CFWAHLsq.js.gz +0 -0
  29. package/build/client/_app/immutable/chunks/CPL43v-I.js +1 -0
  30. package/build/client/_app/immutable/chunks/CPL43v-I.js.br +0 -0
  31. package/build/client/_app/immutable/chunks/CPL43v-I.js.gz +0 -0
  32. package/build/client/_app/immutable/chunks/CTKC36WM.js +1 -0
  33. package/build/client/_app/immutable/chunks/CTKC36WM.js.br +0 -0
  34. package/build/client/_app/immutable/chunks/CTKC36WM.js.gz +0 -0
  35. package/build/client/_app/immutable/chunks/CekH6JMP.js +1 -0
  36. package/build/client/_app/immutable/chunks/CekH6JMP.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/CekH6JMP.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/Ch16TNvP.js +1 -0
  39. package/build/client/_app/immutable/chunks/Ch16TNvP.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/Ch16TNvP.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/CqfYW08-.js +1 -0
  42. package/build/client/_app/immutable/chunks/CqfYW08-.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/CqfYW08-.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/D1v6O410.js +1 -0
  45. package/build/client/_app/immutable/chunks/D1v6O410.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/D1v6O410.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/DY4fWHx_.js +1 -0
  48. package/build/client/_app/immutable/chunks/DY4fWHx_.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/DY4fWHx_.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/DdnE6dyJ.js +2 -0
  51. package/build/client/_app/immutable/chunks/DdnE6dyJ.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/DdnE6dyJ.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/DeieCYM0.js +22 -0
  54. package/build/client/_app/immutable/chunks/DeieCYM0.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/DeieCYM0.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/DfUzlYF5.js +1 -0
  57. package/build/client/_app/immutable/chunks/DfUzlYF5.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/DfUzlYF5.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/Dnk28BpG.js +1 -0
  60. package/build/client/_app/immutable/chunks/Dnk28BpG.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/Dnk28BpG.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/KNAS5R2A.js +3 -0
  63. package/build/client/_app/immutable/chunks/KNAS5R2A.js.br +0 -0
  64. package/build/client/_app/immutable/chunks/KNAS5R2A.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/eyJgPND9.js +1 -0
  66. package/build/client/_app/immutable/chunks/eyJgPND9.js.br +1 -0
  67. package/build/client/_app/immutable/chunks/eyJgPND9.js.gz +0 -0
  68. package/build/client/_app/immutable/entry/app.CPF6A_DV.js +2 -0
  69. package/build/client/_app/immutable/entry/app.CPF6A_DV.js.br +0 -0
  70. package/build/client/_app/immutable/entry/app.CPF6A_DV.js.gz +0 -0
  71. package/build/client/_app/immutable/entry/start.Dos_Ttds.js +1 -0
  72. package/build/client/_app/immutable/entry/start.Dos_Ttds.js.br +2 -0
  73. package/build/client/_app/immutable/entry/start.Dos_Ttds.js.gz +0 -0
  74. package/build/client/_app/immutable/nodes/{0.DlE8ZTIF.js → 0.C5HgTRfT.js} +1 -1
  75. package/build/client/_app/immutable/nodes/0.C5HgTRfT.js.br +0 -0
  76. package/build/client/_app/immutable/nodes/0.C5HgTRfT.js.gz +0 -0
  77. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js +1 -0
  78. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js.br +0 -0
  79. package/build/client/_app/immutable/nodes/1.CGcgSoA9.js.gz +0 -0
  80. package/build/client/_app/immutable/nodes/10.ukScuXwz.js +1 -0
  81. package/build/client/_app/immutable/nodes/10.ukScuXwz.js.br +5 -0
  82. package/build/client/_app/immutable/nodes/10.ukScuXwz.js.gz +0 -0
  83. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js +1 -0
  84. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/11.D3RDNx7M.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/12._vvpCcSG.js +1 -0
  87. package/build/client/_app/immutable/nodes/12._vvpCcSG.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/12._vvpCcSG.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js +1 -0
  90. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/13.BWPzZMQ5.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/14.Cr843Lep.js +1 -0
  93. package/build/client/_app/immutable/nodes/14.Cr843Lep.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/14.Cr843Lep.js.gz +0 -0
  95. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js +1 -0
  96. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js.br +0 -0
  97. package/build/client/_app/immutable/nodes/2.DUpwDjw8.js.gz +0 -0
  98. package/build/client/_app/immutable/nodes/{2.CvEpuMc7.js → 3.DPH7xl7M.js} +1 -1
  99. package/build/client/_app/immutable/nodes/3.DPH7xl7M.js.br +0 -0
  100. package/build/client/_app/immutable/nodes/3.DPH7xl7M.js.gz +0 -0
  101. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js +1 -0
  102. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js.br +0 -0
  103. package/build/client/_app/immutable/nodes/4.Bk0knTIK.js.gz +0 -0
  104. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js +1 -0
  105. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js.br +0 -0
  106. package/build/client/_app/immutable/nodes/5.DwnZ1Bh8.js.gz +0 -0
  107. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js +2 -0
  108. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js.br +0 -0
  109. package/build/client/_app/immutable/nodes/6.5U-KxFgt.js.gz +0 -0
  110. package/build/client/_app/immutable/nodes/7.DFc4sJix.js +1 -0
  111. package/build/client/_app/immutable/nodes/7.DFc4sJix.js.br +0 -0
  112. package/build/client/_app/immutable/nodes/7.DFc4sJix.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js +1 -0
  114. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js.br +0 -0
  115. package/build/client/_app/immutable/nodes/8.BG4bv5P5.js.gz +0 -0
  116. package/build/client/_app/immutable/nodes/9.BKljyhOi.js +1 -0
  117. package/build/client/_app/immutable/nodes/9.BKljyhOi.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/9.BKljyhOi.js.gz +0 -0
  119. package/build/client/_app/version.json +1 -1
  120. package/build/client/_app/version.json.br +0 -0
  121. package/build/client/_app/version.json.gz +0 -0
  122. package/build/client/styles.css +7 -0
  123. package/build/client/styles.css.br +0 -0
  124. package/build/client/styles.css.gz +0 -0
  125. package/build/handler.js +20 -3
  126. package/build/server/chunks/0-CZBaNtSI.js +9 -0
  127. package/build/server/chunks/{0-DgHTujtC.js.map → 0-CZBaNtSI.js.map} +1 -1
  128. package/build/server/chunks/1-D_3BtEbe.js +9 -0
  129. package/build/server/chunks/{1-k30i-hic.js.map → 1-D_3BtEbe.js.map} +1 -1
  130. package/build/server/chunks/10-CLkNMKHU.js +13 -0
  131. package/build/server/chunks/10-CLkNMKHU.js.map +1 -0
  132. package/build/server/chunks/11-5xPYR_1w.js +13 -0
  133. package/build/server/chunks/11-5xPYR_1w.js.map +1 -0
  134. package/build/server/chunks/12-N7UaQj7u.js +9 -0
  135. package/build/server/chunks/12-N7UaQj7u.js.map +1 -0
  136. package/build/server/chunks/13-QYVLpXli.js +9 -0
  137. package/build/server/chunks/13-QYVLpXli.js.map +1 -0
  138. package/build/server/chunks/14-CPY578rT.js +9 -0
  139. package/build/server/chunks/14-CPY578rT.js.map +1 -0
  140. package/build/server/chunks/2-_1jFrcvz.js +13 -0
  141. package/build/server/chunks/2-_1jFrcvz.js.map +1 -0
  142. package/build/server/chunks/3-B1CwnVF_.js +9 -0
  143. package/build/server/chunks/{2-CXlrhpR6.js.map → 3-B1CwnVF_.js.map} +1 -1
  144. package/build/server/chunks/4-CcxCcH4F.js +13 -0
  145. package/build/server/chunks/4-CcxCcH4F.js.map +1 -0
  146. package/build/server/chunks/5-CrlH6VoB.js +13 -0
  147. package/build/server/chunks/5-CrlH6VoB.js.map +1 -0
  148. package/build/server/chunks/6-FkP678Uz.js +13 -0
  149. package/build/server/chunks/6-FkP678Uz.js.map +1 -0
  150. package/build/server/chunks/7-B1iCe7VA.js +13 -0
  151. package/build/server/chunks/7-B1iCe7VA.js.map +1 -0
  152. package/build/server/chunks/8-p6n9G-P_.js +13 -0
  153. package/build/server/chunks/8-p6n9G-P_.js.map +1 -0
  154. package/build/server/chunks/9-fc3lKB7X.js +13 -0
  155. package/build/server/chunks/9-fc3lKB7X.js.map +1 -0
  156. package/build/server/chunks/Icon-CG7XnWX5.js +30 -0
  157. package/build/server/chunks/Icon-CG7XnWX5.js.map +1 -0
  158. package/build/server/chunks/Logout-BwzK1P29.js +45 -0
  159. package/build/server/chunks/Logout-BwzK1P29.js.map +1 -0
  160. package/build/server/chunks/_layout.svelte-9KMUotip.js +31 -0
  161. package/build/server/chunks/_layout.svelte-9KMUotip.js.map +1 -0
  162. package/build/server/chunks/_page.svelte-BD3HmLo_.js +28 -0
  163. package/build/server/chunks/_page.svelte-BD3HmLo_.js.map +1 -0
  164. package/build/server/chunks/_page.svelte-BFzPdJ6z.js +105 -0
  165. package/build/server/chunks/_page.svelte-BFzPdJ6z.js.map +1 -0
  166. package/build/server/chunks/_page.svelte-BIxxuzff.js +64 -0
  167. package/build/server/chunks/_page.svelte-BIxxuzff.js.map +1 -0
  168. package/build/server/chunks/_page.svelte-Bou2_u6i.js +13 -0
  169. package/build/server/chunks/_page.svelte-Bou2_u6i.js.map +1 -0
  170. package/build/server/chunks/_page.svelte-C25oQ2NT.js +80 -0
  171. package/build/server/chunks/_page.svelte-C25oQ2NT.js.map +1 -0
  172. package/build/server/chunks/_page.svelte-CAzWL4aq.js +66 -0
  173. package/build/server/chunks/_page.svelte-CAzWL4aq.js.map +1 -0
  174. package/build/server/chunks/_page.svelte-Ci5V-DhL.js +72 -0
  175. package/build/server/chunks/_page.svelte-Ci5V-DhL.js.map +1 -0
  176. package/build/server/chunks/_page.svelte-CnfRSJsl.js +37 -0
  177. package/build/server/chunks/_page.svelte-CnfRSJsl.js.map +1 -0
  178. package/build/server/chunks/_page.svelte-DgyZKeaF.js +231 -0
  179. package/build/server/chunks/_page.svelte-DgyZKeaF.js.map +1 -0
  180. package/build/server/chunks/_page.svelte-VDBvShZ8.js +6 -0
  181. package/build/server/chunks/_page.svelte-VDBvShZ8.js.map +1 -0
  182. package/build/server/chunks/_page.svelte-cAsZlwLs.js +24 -0
  183. package/build/server/chunks/_page.svelte-cAsZlwLs.js.map +1 -0
  184. package/build/server/chunks/_page.svelte-rrN2zFNa.js +66 -0
  185. package/build/server/chunks/_page.svelte-rrN2zFNa.js.map +1 -0
  186. package/build/server/chunks/account-BZSP6KBP.js +445 -0
  187. package/build/server/chunks/account-BZSP6KBP.js.map +1 -0
  188. package/build/server/chunks/color-K_MR7m8s.js +14 -0
  189. package/build/server/chunks/color-K_MR7m8s.js.map +1 -0
  190. package/build/server/chunks/context-R2425nfV.js +64 -0
  191. package/build/server/chunks/context-R2425nfV.js.map +1 -0
  192. package/build/server/chunks/{error.svelte-DNQXZmIO.js → error.svelte-DTrQqomO.js} +8 -7
  193. package/build/server/chunks/error.svelte-DTrQqomO.js.map +1 -0
  194. package/build/server/chunks/index-DJrm8BZm.js +844 -0
  195. package/build/server/chunks/index-DJrm8BZm.js.map +1 -0
  196. package/build/server/chunks/{index-CvHf_GW2.js → index-eKiDBuyI.js} +826 -438
  197. package/build/server/chunks/index-eKiDBuyI.js.map +1 -0
  198. package/build/server/chunks/layout.svelte-UxsTmhKc.js +8 -0
  199. package/build/server/chunks/layout.svelte-UxsTmhKc.js.map +1 -0
  200. package/build/server/chunks/{string-DLbvtT1R.js → numbers-DL8C9q4W.js} +1 -71
  201. package/build/server/chunks/numbers-DL8C9q4W.js.map +1 -0
  202. package/build/server/chunks/{FormDialog-CB-2YGWi.js → user2-Coq3Frtw.js} +102 -203
  203. package/build/server/chunks/user2-Coq3Frtw.js.map +1 -0
  204. package/build/server/chunks/{utils-h74ns7K6.js → utils-DlBYhQz7.js} +2 -1
  205. package/build/server/chunks/utils-DlBYhQz7.js.map +1 -0
  206. package/build/server/index.js +1787 -994
  207. package/build/server/index.js.map +1 -1
  208. package/build/server/manifest.js +70 -13
  209. package/build/server/manifest.js.map +1 -1
  210. package/dist/acl.d.ts +1 -2
  211. package/dist/api/acl.js +4 -4
  212. package/dist/api/admin.d.ts +1 -0
  213. package/dist/api/admin.js +135 -0
  214. package/dist/api/index.d.ts +2 -0
  215. package/dist/api/index.js +2 -0
  216. package/dist/api/metadata.js +3 -3
  217. package/dist/api/passkeys.js +10 -10
  218. package/dist/api/register.js +4 -4
  219. package/dist/api/session.js +5 -5
  220. package/dist/api/users.js +48 -48
  221. package/dist/audit.d.ts +7 -39
  222. package/dist/audit.js +10 -13
  223. package/dist/auth.d.ts +4 -11
  224. package/dist/auth.js +4 -4
  225. package/dist/cli.js +40 -54
  226. package/dist/config.d.ts +24 -14
  227. package/dist/config.js +42 -25
  228. package/dist/database.d.ts +3 -4
  229. package/dist/database.js +12 -12
  230. package/dist/internal_requests.d.ts +3 -0
  231. package/dist/internal_requests.js +119 -0
  232. package/dist/io.d.ts +1 -1
  233. package/dist/io.js +2 -5
  234. package/dist/linking.d.ts +0 -1
  235. package/dist/linking.js +2 -5
  236. package/dist/plugins.d.ts +4 -39
  237. package/dist/plugins.js +35 -51
  238. package/dist/requests.d.ts +5 -5
  239. package/dist/requests.js +14 -14
  240. package/dist/routes.d.ts +6 -10
  241. package/dist/routes.js +4 -5
  242. package/dist/serve.d.ts +3 -2
  243. package/dist/serve.js +165 -13
  244. package/dist/state.js +2 -1
  245. package/package.json +6 -5
  246. package/routes/account/+page.svelte +5 -109
  247. package/routes/admin/+layout.svelte +56 -0
  248. package/routes/admin/+layout.ts +29 -0
  249. package/routes/admin/+page.svelte +39 -0
  250. package/routes/admin/+page.ts +7 -0
  251. package/routes/admin/audit/+page.svelte +137 -0
  252. package/routes/admin/audit/+page.ts +20 -0
  253. package/routes/admin/audit/[id]/+page.svelte +43 -0
  254. package/routes/admin/audit/[id]/+page.ts +9 -0
  255. package/routes/admin/audit/styles.css +31 -0
  256. package/routes/admin/config/+page.svelte +28 -0
  257. package/routes/admin/config/+page.ts +9 -0
  258. package/routes/admin/plugins/+page.svelte +23 -0
  259. package/routes/admin/plugins/+page.ts +7 -0
  260. package/routes/admin/users/+page.svelte +60 -0
  261. package/routes/admin/users/+page.ts +9 -0
  262. package/routes/admin/users/[id]/+page.svelte +108 -0
  263. package/routes/admin/users/[id]/+page.ts +17 -0
  264. package/routes/tsconfig.json +1 -1
  265. package/svelte.config.js +4 -10
  266. package/{web/template.html → template.html} +1 -1
  267. package/{web/tsconfig.json → web.tsconfig.json} +2 -2
  268. package/build/client/_app/immutable/chunks/B1E1cVbi.js +0 -1
  269. package/build/client/_app/immutable/chunks/B1E1cVbi.js.br +0 -0
  270. package/build/client/_app/immutable/chunks/B1E1cVbi.js.gz +0 -0
  271. package/build/client/_app/immutable/chunks/D3hk2v8y.js +0 -1
  272. package/build/client/_app/immutable/chunks/D3hk2v8y.js.br +0 -2
  273. package/build/client/_app/immutable/chunks/D3hk2v8y.js.gz +0 -0
  274. package/build/client/_app/immutable/chunks/D4Bce_hb.js +0 -1
  275. package/build/client/_app/immutable/chunks/D4Bce_hb.js.br +0 -0
  276. package/build/client/_app/immutable/chunks/D4Bce_hb.js.gz +0 -0
  277. package/build/client/_app/immutable/chunks/D9TfJrfD.js +0 -1
  278. package/build/client/_app/immutable/chunks/D9TfJrfD.js.br +0 -0
  279. package/build/client/_app/immutable/chunks/D9TfJrfD.js.gz +0 -0
  280. package/build/client/_app/immutable/chunks/DJeR1n-B.js +0 -51
  281. package/build/client/_app/immutable/chunks/DJeR1n-B.js.br +0 -0
  282. package/build/client/_app/immutable/chunks/DJeR1n-B.js.gz +0 -0
  283. package/build/client/_app/immutable/chunks/Dy1O3iBu.js +0 -2
  284. package/build/client/_app/immutable/chunks/Dy1O3iBu.js.br +0 -0
  285. package/build/client/_app/immutable/chunks/Dy1O3iBu.js.gz +0 -0
  286. package/build/client/_app/immutable/chunks/NhZR8nmR.js +0 -3
  287. package/build/client/_app/immutable/chunks/NhZR8nmR.js.br +0 -0
  288. package/build/client/_app/immutable/chunks/NhZR8nmR.js.gz +0 -0
  289. package/build/client/_app/immutable/chunks/pba7IodQ.js +0 -1
  290. package/build/client/_app/immutable/chunks/pba7IodQ.js.br +0 -0
  291. package/build/client/_app/immutable/chunks/pba7IodQ.js.gz +0 -0
  292. package/build/client/_app/immutable/entry/app.DJWgFLyv.js +0 -2
  293. package/build/client/_app/immutable/entry/app.DJWgFLyv.js.br +0 -0
  294. package/build/client/_app/immutable/entry/app.DJWgFLyv.js.gz +0 -0
  295. package/build/client/_app/immutable/entry/start.CM7y0WAo.js +0 -1
  296. package/build/client/_app/immutable/entry/start.CM7y0WAo.js.br +0 -2
  297. package/build/client/_app/immutable/entry/start.CM7y0WAo.js.gz +0 -0
  298. package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.br +0 -0
  299. package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.gz +0 -0
  300. package/build/client/_app/immutable/nodes/1.BER4lkmI.js +0 -1
  301. package/build/client/_app/immutable/nodes/1.BER4lkmI.js.br +0 -0
  302. package/build/client/_app/immutable/nodes/1.BER4lkmI.js.gz +0 -0
  303. package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.br +0 -0
  304. package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.gz +0 -0
  305. package/build/client/_app/immutable/nodes/3.CVudd8x2.js +0 -7
  306. package/build/client/_app/immutable/nodes/3.CVudd8x2.js.br +0 -0
  307. package/build/client/_app/immutable/nodes/3.CVudd8x2.js.gz +0 -0
  308. package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js +0 -1
  309. package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.br +0 -0
  310. package/build/client/_app/immutable/nodes/4.Dhj0R0r7.js.gz +0 -0
  311. package/build/client/_app/immutable/nodes/5.CGoBaVII.js +0 -1
  312. package/build/client/_app/immutable/nodes/5.CGoBaVII.js.br +0 -0
  313. package/build/client/_app/immutable/nodes/5.CGoBaVII.js.gz +0 -0
  314. package/build/client/_app/immutable/nodes/6.BtB2uWXy.js +0 -1
  315. package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.br +0 -0
  316. package/build/client/_app/immutable/nodes/6.BtB2uWXy.js.gz +0 -0
  317. package/build/server/chunks/0-DgHTujtC.js +0 -9
  318. package/build/server/chunks/1-k30i-hic.js +0 -9
  319. package/build/server/chunks/2-CXlrhpR6.js +0 -9
  320. package/build/server/chunks/3-CGT4Ugys.js +0 -13
  321. package/build/server/chunks/3-CGT4Ugys.js.map +0 -1
  322. package/build/server/chunks/4-BscEiwUk.js +0 -9
  323. package/build/server/chunks/4-BscEiwUk.js.map +0 -1
  324. package/build/server/chunks/5-H0ePIJBE.js +0 -9
  325. package/build/server/chunks/5-H0ePIJBE.js.map +0 -1
  326. package/build/server/chunks/6-BrPpcagX.js +0 -9
  327. package/build/server/chunks/6-BrPpcagX.js.map +0 -1
  328. package/build/server/chunks/FormDialog-CB-2YGWi.js.map +0 -1
  329. package/build/server/chunks/Logout-LKOt-AST.js +0 -45
  330. package/build/server/chunks/Logout-LKOt-AST.js.map +0 -1
  331. package/build/server/chunks/_page.svelte-B1LK5J87.js +0 -11
  332. package/build/server/chunks/_page.svelte-B1LK5J87.js.map +0 -1
  333. package/build/server/chunks/_page.svelte-CMtkwvbP.js +0 -68
  334. package/build/server/chunks/_page.svelte-CMtkwvbP.js.map +0 -1
  335. package/build/server/chunks/_page.svelte-CbI2KxeA.js +0 -62
  336. package/build/server/chunks/_page.svelte-CbI2KxeA.js.map +0 -1
  337. package/build/server/chunks/_page.svelte-D1_WJoyP.js +0 -6
  338. package/build/server/chunks/_page.svelte-D1_WJoyP.js.map +0 -1
  339. package/build/server/chunks/_page.svelte-d01Hl2Ia.js +0 -639
  340. package/build/server/chunks/_page.svelte-d01Hl2Ia.js.map +0 -1
  341. package/build/server/chunks/error.svelte-DNQXZmIO.js.map +0 -1
  342. package/build/server/chunks/hooks.server-BQqilaHv.js +0 -17301
  343. package/build/server/chunks/hooks.server-BQqilaHv.js.map +0 -1
  344. package/build/server/chunks/index-CvHf_GW2.js.map +0 -1
  345. package/build/server/chunks/index-RTKpMYZ1.js +0 -397
  346. package/build/server/chunks/index-RTKpMYZ1.js.map +0 -1
  347. package/build/server/chunks/layout.svelte-BSvrn-4a.js +0 -8
  348. package/build/server/chunks/layout.svelte-BSvrn-4a.js.map +0 -1
  349. package/build/server/chunks/string-DLbvtT1R.js.map +0 -1
  350. package/build/server/chunks/utils-h74ns7K6.js.map +0 -1
  351. package/dist/sveltekit.d.ts +0 -8
  352. package/dist/sveltekit.js +0 -60
  353. package/web/hooks.server.ts +0 -4
@@ -0,0 +1,105 @@
1
+ import { F as head, J as css_props, x as attr, G as stringify } from './index-DJrm8BZm.js';
2
+ import './index-eKiDBuyI.js';
3
+ import { I as Icon } from './Icon-CG7XnWX5.js';
4
+ import { S as SessionList, P as Preferences, C as ClipboardCopy } from './account-BZSP6KBP.js';
5
+ import './numbers-DL8C9q4W.js';
6
+ import { e as escape_html } from './context-R2425nfV.js';
7
+ import './color-K_MR7m8s.js';
8
+ import './user2-Coq3Frtw.js';
9
+
10
+ function formatDateRange(date) {
11
+ const rawDays = (date.getTime() - Date.now()) / (24 * 36e5);
12
+ const daysCount = Math.abs(rawDays);
13
+ const daysText = Number.isInteger(daysCount) ? daysCount : daysCount.toFixed(1);
14
+ const plural = daysCount == 1 ? "" : "s";
15
+ return `${date.toLocaleString()} (${rawDays >= 0 ? `in ${daysText} day${plural}` : `${daysText} day${plural} ago`})`;
16
+ }
17
+ const $$css = {
18
+ hash: "svelte-1r28lg0",
19
+ code: "div.info.svelte-1r28lg0 {grid-template-columns:10em 1fr 6em;}.section.svelte-1r28lg0 {margin-bottom:2em;}"
20
+ };
21
+ function _page($$renderer, $$props) {
22
+ $$renderer.global.css.add($$css);
23
+ $$renderer.component(($$renderer2) => {
24
+ const { data } = $$props;
25
+ const { user } = data;
26
+ let sessions = user.sessions;
27
+ let $$settled = true;
28
+ let $$inner_renderer;
29
+ function $$render_inner($$renderer3) {
30
+ head($$renderer3, ($$renderer4) => {
31
+ $$renderer4.title(($$renderer5) => {
32
+ $$renderer5.push(`<title>Admin — User Management</title>`);
33
+ });
34
+ });
35
+ $$renderer3.push(`<a href="/admin/users"><button class="icon-text">`);
36
+ Icon($$renderer3, { i: "up-left" });
37
+ $$renderer3.push(`<!----> Back to all users</button></a> <h2>User Management</h2> <div class="section main svelte-1r28lg0"><div class="item info svelte-1r28lg0"><p>UUID</p> <p>${escape_html(user.id)}</p> `);
38
+ css_props($$renderer3, true, { "--size": "16px" }, () => {
39
+ ClipboardCopy($$renderer3, { value: user.id });
40
+ });
41
+ $$renderer3.push(`</div> <div class="item info svelte-1r28lg0"><p>Display Name</p> <p>${escape_html(user.name)}</p> `);
42
+ css_props($$renderer3, true, { "--size": "16px" }, () => {
43
+ ClipboardCopy($$renderer3, { value: user.name });
44
+ });
45
+ $$renderer3.push(`</div> <div class="item info svelte-1r28lg0"><p>Email</p> <p><a${attr("href", `mailto:${stringify(user.email)}`)}>${escape_html(user.email)}</a>, ${escape_html(user.emailVerified ? "verified " + user.emailVerified.toLocaleString() : "not verified")}</p> `);
46
+ css_props($$renderer3, true, { "--size": "16px" }, () => {
47
+ ClipboardCopy($$renderer3, { value: user.email });
48
+ });
49
+ $$renderer3.push(`</div> <div class="item info svelte-1r28lg0"><p>Registered</p> <p>${escape_html(formatDateRange(user.registeredAt))}</p> `);
50
+ css_props($$renderer3, true, { "--size": "16px" }, () => {
51
+ ClipboardCopy($$renderer3, { value: user.registeredAt.toISOString() });
52
+ });
53
+ $$renderer3.push(`</div> <div class="item info svelte-1r28lg0"><p>Administrator</p> `);
54
+ if (user.isAdmin) {
55
+ $$renderer3.push("<!--[-->");
56
+ $$renderer3.push(`<strong>Yes</strong>`);
57
+ } else {
58
+ $$renderer3.push("<!--[!-->");
59
+ $$renderer3.push(`<p>No</p>`);
60
+ }
61
+ $$renderer3.push(`<!--]--> <p></p></div> <div class="item info svelte-1r28lg0"><p>Suspended</p> `);
62
+ if (user.isSuspended) {
63
+ $$renderer3.push("<!--[-->");
64
+ $$renderer3.push(`<strong>Yes</strong>`);
65
+ } else {
66
+ $$renderer3.push("<!--[!-->");
67
+ $$renderer3.push(`<p>No</p>`);
68
+ }
69
+ $$renderer3.push(`<!--]--> <button>${escape_html(user.isSuspended ? "Unsuspend" : "Suspend")}</button></div> <div class="item info svelte-1r28lg0"><p>Profile Image</p> `);
70
+ if (user.image) {
71
+ $$renderer3.push("<!--[-->");
72
+ $$renderer3.push(`<a${attr("href", user.image)} target="_blank" rel="noopener noreferrer">${escape_html(user.image)}</a> `);
73
+ css_props($$renderer3, true, { "--size": "16px" }, () => {
74
+ ClipboardCopy($$renderer3, { value: user.image });
75
+ });
76
+ } else {
77
+ $$renderer3.push("<!--[!-->");
78
+ $$renderer3.push(`<i>Default</i> <p></p>`);
79
+ }
80
+ $$renderer3.push(`<!--]--></div> <div class="item info svelte-1r28lg0"><p>Roles</p> <p>${escape_html(user.roles.join(", "))}</p></div> <div class="item info svelte-1r28lg0"><p>Tags</p> <p>${escape_html(user.tags.join(", "))}</p></div></div> <div class="section main svelte-1r28lg0"><h3>Sessions</h3> `);
81
+ SessionList($$renderer3, { sessions, user });
82
+ $$renderer3.push(`<!----></div> <div class="section main svelte-1r28lg0"><h3>Preferences</h3> `);
83
+ Preferences($$renderer3, {
84
+ userId: user.id,
85
+ get preferences() {
86
+ return user.preferences;
87
+ },
88
+ set preferences($$value) {
89
+ user.preferences = $$value;
90
+ $$settled = false;
91
+ }
92
+ });
93
+ $$renderer3.push(`<!----></div>`);
94
+ }
95
+ do {
96
+ $$settled = true;
97
+ $$inner_renderer = $$renderer2.copy();
98
+ $$render_inner($$inner_renderer);
99
+ } while (!$$settled);
100
+ $$renderer2.subsume($$inner_renderer);
101
+ });
102
+ }
103
+
104
+ export { _page as default };
105
+ //# sourceMappingURL=_page.svelte-BFzPdJ6z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-BFzPdJ6z.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/admin/users/_id_/_page.svelte.js"],"sourcesContent":["import { F as head, J as css_props, x as attr, G as stringify } from \"../../../../../chunks/index.js\";\nimport \"../../../../../chunks/user.js\";\nimport \"mime\";\nimport { I as Icon } from \"../../../../../chunks/Icon.js\";\nimport { S as SessionList, P as Preferences, C as ClipboardCopy } from \"../../../../../chunks/account.js\";\nimport \"@simplewebauthn/browser\";\nimport \"utilium\";\nimport { e as escape_html } from \"../../../../../chunks/context.js\";\nfunction formatDateRange(date) {\n const rawDays = (date.getTime() - Date.now()) / (24 * 36e5);\n const daysCount = Math.abs(rawDays);\n const daysText = Number.isInteger(daysCount) ? daysCount : daysCount.toFixed(1);\n const plural = daysCount == 1 ? \"\" : \"s\";\n return `${date.toLocaleString()} (${rawDays >= 0 ? `in ${daysText} day${plural}` : `${daysText} day${plural} ago`})`;\n}\nconst $$css = {\n hash: \"svelte-1r28lg0\",\n code: \"div.info.svelte-1r28lg0 {grid-template-columns:10em 1fr 6em;}.section.svelte-1r28lg0 {margin-bottom:2em;}\"\n};\nfunction _page($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n const { user } = data;\n let sessions = user.sessions;\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head($$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Admin — User Management</title>`);\n });\n });\n $$renderer3.push(`<a href=\"/admin/users\"><button class=\"icon-text\">`);\n Icon($$renderer3, { i: \"up-left\" });\n $$renderer3.push(`<!----> Back to all users</button></a> <h2>User Management</h2> <div class=\"section main svelte-1r28lg0\"><div class=\"item info svelte-1r28lg0\"><p>UUID</p> <p>${escape_html(user.id)}</p> `);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n ClipboardCopy($$renderer3, { value: user.id });\n });\n $$renderer3.push(`</div> <div class=\"item info svelte-1r28lg0\"><p>Display Name</p> <p>${escape_html(user.name)}</p> `);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n ClipboardCopy($$renderer3, { value: user.name });\n });\n $$renderer3.push(`</div> <div class=\"item info svelte-1r28lg0\"><p>Email</p> <p><a${attr(\"href\", `mailto:${stringify(user.email)}`)}>${escape_html(user.email)}</a>, ${escape_html(user.emailVerified ? \"verified \" + user.emailVerified.toLocaleString() : \"not verified\")}</p> `);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n ClipboardCopy($$renderer3, { value: user.email });\n });\n $$renderer3.push(`</div> <div class=\"item info svelte-1r28lg0\"><p>Registered</p> <p>${escape_html(formatDateRange(user.registeredAt))}</p> `);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n ClipboardCopy($$renderer3, { value: user.registeredAt.toISOString() });\n });\n $$renderer3.push(`</div> <div class=\"item info svelte-1r28lg0\"><p>Administrator</p> `);\n if (user.isAdmin) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<strong>Yes</strong>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<p>No</p>`);\n }\n $$renderer3.push(`<!--]--> <p></p></div> <div class=\"item info svelte-1r28lg0\"><p>Suspended</p> `);\n if (user.isSuspended) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<strong>Yes</strong>`);\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<p>No</p>`);\n }\n $$renderer3.push(`<!--]--> <button>${escape_html(user.isSuspended ? \"Unsuspend\" : \"Suspend\")}</button></div> <div class=\"item info svelte-1r28lg0\"><p>Profile Image</p> `);\n if (user.image) {\n $$renderer3.push(\"<!--[-->\");\n $$renderer3.push(`<a${attr(\"href\", user.image)} target=\"_blank\" rel=\"noopener noreferrer\">${escape_html(user.image)}</a> `);\n css_props($$renderer3, true, { \"--size\": \"16px\" }, () => {\n ClipboardCopy($$renderer3, { value: user.image });\n });\n } else {\n $$renderer3.push(\"<!--[!-->\");\n $$renderer3.push(`<i>Default</i> <p></p>`);\n }\n $$renderer3.push(`<!--]--></div> <div class=\"item info svelte-1r28lg0\"><p>Roles</p> <p>${escape_html(user.roles.join(\", \"))}</p></div> <div class=\"item info svelte-1r28lg0\"><p>Tags</p> <p>${escape_html(user.tags.join(\", \"))}</p></div></div> <div class=\"section main svelte-1r28lg0\"><h3>Sessions</h3> `);\n SessionList($$renderer3, { sessions, user });\n $$renderer3.push(`<!----></div> <div class=\"section main svelte-1r28lg0\"><h3>Preferences</h3> `);\n Preferences($$renderer3, {\n userId: user.id,\n get preferences() {\n return user.preferences;\n },\n set preferences($$value) {\n user.preferences = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----></div>`);\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 });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;AAQA,SAAS,eAAe,CAAC,IAAI,EAAE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WAAW,CAAC,WAAW,EAAE;AAC/B,QAAQ,MAAM,EAAE,IAAI,CAAC,EAAE;AACvB,QAAQ,IAAI,WAAW,GAAG;AAC1B,UAAU,OAAO,IAAI,CAAC,WAAW;AACjC,QAAQ,CAAC;AACT,QAAQ,IAAI,WAAW,CAAC,OAAO,EAAE;AACjC,UAAU,IAAI,CAAC,WAAW,GAAG,OAAO;AACpC,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AACvC,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,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,64 @@
1
+ import { F as head, w as ensure_array_like, x as attr$1, G as stringify, K as attr_style } from './index-DJrm8BZm.js';
2
+ import { I as Icon } from './Icon-CG7XnWX5.js';
3
+ import { c as colorHash } from './color-K_MR7m8s.js';
4
+ import { e as escape_html } from './context-R2425nfV.js';
5
+
6
+ function attr($$renderer, i, text, color = colorHash(text)) {
7
+ $$renderer.push(`<span class="attribute svelte-1ivxq48"${attr_style("", { "background-color": color })}>`);
8
+ Icon($$renderer, { i });
9
+ $$renderer.push(`<!---->${escape_html(text)}</span>`);
10
+ }
11
+ const $$css = {
12
+ hash: "svelte-1ivxq48",
13
+ code: ".list-item.svelte-1ivxq48 {grid-template-columns:1fr 1fr 3fr repeat(2, 2em);}.attribute.svelte-1ivxq48 {border-radius:1em;padding:0.25em 0.75em;display:inline-flex;align-items:center;gap:0.25em;}"
14
+ };
15
+ function _page($$renderer, $$props) {
16
+ $$renderer.global.css.add($$css);
17
+ $$renderer.component(($$renderer2) => {
18
+ const { data } = $$props;
19
+ head($$renderer2, ($$renderer3) => {
20
+ $$renderer3.title(($$renderer4) => {
21
+ $$renderer4.push(`<title>Admin - Users</title>`);
22
+ });
23
+ });
24
+ $$renderer2.push(`<h2>Users</h2> <div id="user-list" class="list"><div class="list-item list-header svelte-1ivxq48"><span>Name</span> <span>Email</span> <span>Attributes</span></div> `);
25
+ const each_array = ensure_array_like(data.users);
26
+ if (each_array.length !== 0) {
27
+ $$renderer2.push("<!--[-->");
28
+ for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {
29
+ let user = each_array[$$index_2];
30
+ $$renderer2.push(`<div class="user list-item svelte-1ivxq48"><span>${escape_html(user.name)}</span> <span>${escape_html(user.email)}</span> <span>`);
31
+ if (user.isAdmin) {
32
+ $$renderer2.push("<!--[-->");
33
+ attr($$renderer2, "crown", "Admin", "#710");
34
+ } else {
35
+ $$renderer2.push("<!--[!-->");
36
+ }
37
+ $$renderer2.push(`<!--]--> <!--[-->`);
38
+ const each_array_1 = ensure_array_like(user.tags);
39
+ for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {
40
+ let tag = each_array_1[$$index];
41
+ attr($$renderer2, "hashtag", tag);
42
+ }
43
+ $$renderer2.push(`<!--]--> <!--[-->`);
44
+ const each_array_2 = ensure_array_like(user.roles);
45
+ for (let $$index_1 = 0, $$length2 = each_array_2.length; $$index_1 < $$length2; $$index_1++) {
46
+ let role = each_array_2[$$index_1];
47
+ attr($$renderer2, "at", role);
48
+ }
49
+ $$renderer2.push(`<!--]--></span> <a${attr$1("href", `/admin/audit?user=${stringify(user.id)}`)}>`);
50
+ Icon($$renderer2, { i: "file-shield" });
51
+ $$renderer2.push(`<!----></a> <a${attr$1("href", `/admin/users/${stringify(user.id)}`)}>`);
52
+ Icon($$renderer2, { i: "chevron-right" });
53
+ $$renderer2.push(`<!----></a></div>`);
54
+ }
55
+ } else {
56
+ $$renderer2.push("<!--[!-->");
57
+ $$renderer2.push(`<div class="error">No users!</div>`);
58
+ }
59
+ $$renderer2.push(`<!--]--></div>`);
60
+ });
61
+ }
62
+
63
+ export { _page as default };
64
+ //# sourceMappingURL=_page.svelte-BIxxuzff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-BIxxuzff.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/admin/users/_page.svelte.js"],"sourcesContent":["import { F as head, w as ensure_array_like, x as attr$1, G as stringify, K as attr_style } from \"../../../../chunks/index.js\";\nimport { I as Icon } from \"../../../../chunks/Icon.js\";\n/* empty css */\nimport { c as colorHash } from \"../../../../chunks/color.js\";\nimport { e as escape_html } from \"../../../../chunks/context.js\";\nfunction attr($$renderer, i, text, color = colorHash(text)) {\n $$renderer.push(`<span class=\"attribute svelte-1ivxq48\"${attr_style(\"\", { \"background-color\": color })}>`);\n Icon($$renderer, { i });\n $$renderer.push(`<!---->${escape_html(text)}</span>`);\n}\nconst $$css = {\n hash: \"svelte-1ivxq48\",\n code: \".list-item.svelte-1ivxq48 {grid-template-columns:1fr 1fr 3fr repeat(2, 2em);}.attribute.svelte-1ivxq48 {border-radius:1em;padding:0.25em 0.75em;display:inline-flex;align-items:center;gap:0.25em;}\"\n};\nfunction _page($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n head($$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>Admin - Users</title>`);\n });\n });\n $$renderer2.push(`<h2>Users</h2> <div id=\"user-list\" class=\"list\"><div class=\"list-item list-header svelte-1ivxq48\"><span>Name</span> <span>Email</span> <span>Attributes</span></div> `);\n const each_array = ensure_array_like(data.users);\n if (each_array.length !== 0) {\n $$renderer2.push(\"<!--[-->\");\n for (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {\n let user = each_array[$$index_2];\n $$renderer2.push(`<div class=\"user list-item svelte-1ivxq48\"><span>${escape_html(user.name)}</span> <span>${escape_html(user.email)}</span> <span>`);\n if (user.isAdmin) {\n $$renderer2.push(\"<!--[-->\");\n attr($$renderer2, \"crown\", \"Admin\", \"#710\");\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> <!--[-->`);\n const each_array_1 = ensure_array_like(user.tags);\n for (let $$index = 0, $$length2 = each_array_1.length; $$index < $$length2; $$index++) {\n let tag = each_array_1[$$index];\n attr($$renderer2, \"hashtag\", tag);\n }\n $$renderer2.push(`<!--]--> <!--[-->`);\n const each_array_2 = ensure_array_like(user.roles);\n for (let $$index_1 = 0, $$length2 = each_array_2.length; $$index_1 < $$length2; $$index_1++) {\n let role = each_array_2[$$index_1];\n attr($$renderer2, \"at\", role);\n }\n $$renderer2.push(`<!--]--></span> <a${attr$1(\"href\", `/admin/audit?user=${stringify(user.id)}`)}>`);\n Icon($$renderer2, { i: \"file-shield\" });\n $$renderer2.push(`<!----></a> <a${attr$1(\"href\", `/admin/users/${stringify(user.id)}`)}>`);\n Icon($$renderer2, { i: \"chevron-right\" });\n $$renderer2.push(`<!----></a></div>`);\n }\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<div class=\"error\">No users!</div>`);\n }\n $$renderer2.push(`<!--]--></div>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;AAKA,SAAS,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE;AAC5D,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,sCAAsC,EAAE,UAAU,CAAC,EAAE,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5G,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC;AACzB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAA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AC,IAAI,CAAC,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClG,QAAQ,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC;AACjD,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAC7C,MAAM;AACN,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,kCAAkC,CAAC,CAAC;AAC5D,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACtC,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,13 @@
1
+ import { L as Logout } from './Logout-BwzK1P29.js';
2
+ import './index-DJrm8BZm.js';
3
+ import './context-R2425nfV.js';
4
+ import './user2-Coq3Frtw.js';
5
+ import './index-eKiDBuyI.js';
6
+ import './color-K_MR7m8s.js';
7
+
8
+ function _page($$renderer) {
9
+ Logout($$renderer, { fullPage: true });
10
+ }
11
+
12
+ export { _page as default };
13
+ //# sourceMappingURL=_page.svelte-Bou2_u6i.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-Bou2_u6i.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/logout/_page.svelte.js"],"sourcesContent":["import \"clsx\";\nimport { L as Logout } from \"../../../chunks/Logout.js\";\nfunction _page($$renderer) {\n Logout($$renderer, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;AAEA,SAAS,KAAK,CAAC,UAAU,EAAE;AAC3B,EAAE,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxC;;;;"}
@@ -0,0 +1,80 @@
1
+ import { F as head, w as ensure_array_like, x as attr, y as attr_class, G as stringify } from './index-DJrm8BZm.js';
2
+ import { c as capitalize, S as Severity, s as severityNames } from './index-eKiDBuyI.js';
3
+ import { I as Icon } from './Icon-CG7XnWX5.js';
4
+ import './numbers-DL8C9q4W.js';
5
+ import { e as escape_html } from './context-R2425nfV.js';
6
+ import './color-K_MR7m8s.js';
7
+
8
+ const $$css = {
9
+ hash: "svelte-1h51ffz",
10
+ code: ".list-item.svelte-1h51ffz {grid-template-columns:15em 10em 10em 1fr 1fr 10em repeat(1, 2em);}#filter.svelte-1h51ffz {background-color:var(--bg-menu);padding:1em;border-radius:0.5em;display:grid;grid-template-columns:repeat(2, 1fr);gap:0.25em;width:fit-content;h4:where(.svelte-1h51ffz) {grid-column:1 / span 2;}}"
11
+ };
12
+ function _page($$renderer, $$props) {
13
+ $$renderer.global.css.add($$css);
14
+ $$renderer.component(($$renderer2) => {
15
+ const { data } = $$props;
16
+ head($$renderer2, ($$renderer3) => {
17
+ $$renderer3.title(($$renderer4) => {
18
+ $$renderer4.push(`<title>Admin — Audit Log</title>`);
19
+ });
20
+ });
21
+ $$renderer2.push(`<h2>Audit Log</h2> `);
22
+ if (data.filterError) {
23
+ $$renderer2.push("<!--[-->");
24
+ $$renderer2.push(`<div class="error"><strong>Invalid Filter:</strong> <!--[-->`);
25
+ const each_array = ensure_array_like(data.filterError.split("\n"));
26
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
27
+ let line = each_array[$$index];
28
+ $$renderer2.push(`<p>${escape_html(line)}</p>`);
29
+ }
30
+ $$renderer2.push(`<!--]--></div>`);
31
+ } else {
32
+ $$renderer2.push("<!--[!-->");
33
+ }
34
+ $$renderer2.push(`<!--]--> <form id="filter" method="dialog" class="svelte-1h51ffz"><h4 class="svelte-1h51ffz">Filters</h4> <span>Minimum Severity:</span> `);
35
+ $$renderer2.select({ name: "severity", value: data.filter.severity }, ($$renderer3) => {
36
+ $$renderer3.push(`<!--[-->`);
37
+ const each_array_1 = ensure_array_like(severityNames);
38
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
39
+ let value = each_array_1[$$index_1];
40
+ $$renderer3.option({ value, selected: value == "info" }, ($$renderer4) => {
41
+ $$renderer4.push(`${escape_html(capitalize(value))}`);
42
+ });
43
+ }
44
+ $$renderer3.push(`<!--]-->`);
45
+ });
46
+ $$renderer2.push(` <span>Since:</span> <input type="date" name="since"${attr("value", data.filter.since)}/> <span>Until:</span> <input type="date" name="until"${attr("value", data.filter.until)}/> <span>Tags:</span> <input type="text" name="tags"${attr("value", data.filter.tags)}/> <span>Event Name:</span> <input type="text" name="event"${attr("value", data.filter.event)}/> <span>Source:</span> <input type="text" name="source"${attr("value", data.filter.source)}/> <span>User UUID:</span> <input type="text" name="user" size="36"${attr("value", data.filter.user)}/> <button>Apply</button> <button>Reset</button></form> <div class="list-container"><div class="list"><div class="list-item list-header svelte-1h51ffz"><span>Timestamp</span> <span>Severity</span> <span>Source</span> <span>Name</span> <span>Tags</span> <span>User</span></div> `);
47
+ const each_array_2 = ensure_array_like(data.events);
48
+ if (each_array_2.length !== 0) {
49
+ $$renderer2.push("<!--[-->");
50
+ for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
51
+ let event = each_array_2[$$index_2];
52
+ $$renderer2.push(`<div class="list-item svelte-1h51ffz"><span>${escape_html(new Date(event.timestamp).toLocaleString())}</span> <span${attr_class(`severity--${stringify(Severity[event.severity].toLowerCase())}`, "svelte-1h51ffz")}>${escape_html(Severity[event.severity])}</span> <span>${escape_html(event.source)}</span> <span>${escape_html(event.name)}</span> <span>${escape_html(event.tags.join(", "))}</span> `);
53
+ if (event.user) {
54
+ $$renderer2.push("<!--[-->");
55
+ $$renderer2.push(`<a${attr("href", `/admin/users/${stringify(event.userId)}`)}>${escape_html(event.user.name)} `);
56
+ if (event.userId === data.session?.userId) {
57
+ $$renderer2.push("<!--[-->");
58
+ $$renderer2.push(`<span class="subtle">(You)</span>`);
59
+ } else {
60
+ $$renderer2.push("<!--[!-->");
61
+ }
62
+ $$renderer2.push(`<!--]--></a>`);
63
+ } else {
64
+ $$renderer2.push("<!--[!-->");
65
+ $$renderer2.push(`<i>Unknown</i>`);
66
+ }
67
+ $$renderer2.push(`<!--]--> <a${attr("href", `/admin/audit/${stringify(event.id)}`)}>`);
68
+ Icon($$renderer2, { i: "chevron-right" });
69
+ $$renderer2.push(`<!----></a></div>`);
70
+ }
71
+ } else {
72
+ $$renderer2.push("<!--[!-->");
73
+ $$renderer2.push(`<p class="list-empty">No audit log events found</p>`);
74
+ }
75
+ $$renderer2.push(`<!--]--></div></div>`);
76
+ });
77
+ }
78
+
79
+ export { _page as default };
80
+ //# sourceMappingURL=_page.svelte-C25oQ2NT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-C25oQ2NT.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/admin/audit/_page.svelte.js"],"sourcesContent":["import { F as head, w as ensure_array_like, x as attr, y as attr_class, G as stringify } from \"../../../../chunks/index.js\";\nimport { S as Severity, s as severityNames } from \"../../../../chunks/user.js\";\nimport \"mime\";\nimport { I as Icon } from \"../../../../chunks/Icon.js\";\nimport { capitalize } from \"utilium\";\nimport \"@simplewebauthn/browser\";\n/* empty css */\n/* empty css */\nimport { e as escape_html } from \"../../../../chunks/context.js\";\nconst $$css = {\n hash: \"svelte-1h51ffz\",\n code: \".list-item.svelte-1h51ffz {grid-template-columns:15em 10em 10em 1fr 1fr 10em repeat(1, 2em);}#filter.svelte-1h51ffz {background-color:var(--bg-menu);padding:1em;border-radius:0.5em;display:grid;grid-template-columns:repeat(2, 1fr);gap:0.25em;width:fit-content;h4:where(.svelte-1h51ffz) {grid-column:1 / span 2;}}\"\n};\nfunction _page($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n head($$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>Admin — Audit Log</title>`);\n });\n });\n $$renderer2.push(`<h2>Audit Log</h2> `);\n if (data.filterError) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<div class=\"error\"><strong>Invalid Filter:</strong> <!--[-->`);\n const each_array = ensure_array_like(data.filterError.split(\"\\n\"));\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let line = each_array[$$index];\n $$renderer2.push(`<p>${escape_html(line)}</p>`);\n }\n $$renderer2.push(`<!--]--></div>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--> <form id=\"filter\" method=\"dialog\" class=\"svelte-1h51ffz\"><h4 class=\"svelte-1h51ffz\">Filters</h4> <span>Minimum Severity:</span> `);\n $$renderer2.select({ name: \"severity\", value: data.filter.severity }, ($$renderer3) => {\n $$renderer3.push(`<!--[-->`);\n const each_array_1 = ensure_array_like(severityNames);\n for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n let value = each_array_1[$$index_1];\n $$renderer3.option({ value, selected: value == \"info\" }, ($$renderer4) => {\n $$renderer4.push(`${escape_html(capitalize(value))}`);\n });\n }\n $$renderer3.push(`<!--]-->`);\n });\n $$renderer2.push(` <span>Since:</span> <input type=\"date\" name=\"since\"${attr(\"value\", data.filter.since)}/> <span>Until:</span> <input type=\"date\" name=\"until\"${attr(\"value\", data.filter.until)}/> <span>Tags:</span> <input type=\"text\" name=\"tags\"${attr(\"value\", data.filter.tags)}/> <span>Event Name:</span> <input type=\"text\" name=\"event\"${attr(\"value\", data.filter.event)}/> <span>Source:</span> <input type=\"text\" name=\"source\"${attr(\"value\", data.filter.source)}/> <span>User UUID:</span> <input type=\"text\" name=\"user\" size=\"36\"${attr(\"value\", data.filter.user)}/> <button>Apply</button> <button>Reset</button></form> <div class=\"list-container\"><div class=\"list\"><div class=\"list-item list-header svelte-1h51ffz\"><span>Timestamp</span> <span>Severity</span> <span>Source</span> <span>Name</span> <span>Tags</span> <span>User</span></div> `);\n const each_array_2 = ensure_array_like(data.events);\n if (each_array_2.length !== 0) {\n $$renderer2.push(\"<!--[-->\");\n for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {\n let event = each_array_2[$$index_2];\n $$renderer2.push(`<div class=\"list-item svelte-1h51ffz\"><span>${escape_html(new Date(event.timestamp).toLocaleString())}</span> <span${attr_class(`severity--${stringify(Severity[event.severity].toLowerCase())}`, \"svelte-1h51ffz\")}>${escape_html(Severity[event.severity])}</span> <span>${escape_html(event.source)}</span> <span>${escape_html(event.name)}</span> <span>${escape_html(event.tags.join(\", \"))}</span> `);\n if (event.user) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<a${attr(\"href\", `/admin/users/${stringify(event.userId)}`)}>${escape_html(event.user.name)} `);\n if (event.userId === data.session?.userId) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`<span class=\"subtle\">(You)</span>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n }\n $$renderer2.push(`<!--]--></a>`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<i>Unknown</i>`);\n }\n $$renderer2.push(`<!--]--> <a${attr(\"href\", `/admin/audit/${stringify(event.id)}`)}>`);\n Icon($$renderer2, { i: \"chevron-right\" });\n $$renderer2.push(`<!----></a></div>`);\n }\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<p class=\"list-empty\">No audit log events found</p>`);\n }\n $$renderer2.push(`<!--]--></div></div>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,KAAK,GAAG;AACd,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE;AACR,CAAC;AACD,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AAClC,EAA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AI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3H,UAAU,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;AACrD,YAAY,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AACxC,YAAY,WAAW,CAAC,IAAI,CAAC,CAAC,iCAAiC,CAAC,CAAC;AACjE,UAAU,CAAC,MAAM;AACjB,YAAY,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACzC,UAAU;AACV,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC;AAC1C,QAAQ,CAAC,MAAM;AACf,UAAU,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACvC,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AAC5C,QAAQ;AACR,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9F,QAAQ,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC;AACjD,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAC7C,MAAM;AACN,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,mDAAmD,CAAC,CAAC;AAC7E,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC5C,EAAE,CAAC,CAAC;AACJ;;;;"}
@@ -0,0 +1,66 @@
1
+ import { F as head, N as bind_props } from './index-DJrm8BZm.js';
2
+ import { F as FormDialog, r as register } from './user2-Coq3Frtw.js';
3
+ import './context-R2425nfV.js';
4
+ import './index-eKiDBuyI.js';
5
+ import './color-K_MR7m8s.js';
6
+
7
+ const $$css = {
8
+ hash: "svelte-2447ej",
9
+ code: ".footer.svelte-2447ej {margin-bottom:1em;text-align:center;background:none;}"
10
+ };
11
+ function Register($$renderer, $$props) {
12
+ $$renderer.global.css.add($$css);
13
+ $$renderer.component(($$renderer2) => {
14
+ let { dialog = void 0, fullPage = false } = $$props;
15
+ let $$settled = true;
16
+ let $$inner_renderer;
17
+ function $$render_inner($$renderer3) {
18
+ {
19
+ let footer = function($$renderer4) {
20
+ if (fullPage) {
21
+ $$renderer4.push("<!--[-->");
22
+ $$renderer4.push(`<div class="footer svelte-2447ej"><a href="/login">Login instead</a></div>`);
23
+ } else {
24
+ $$renderer4.push("<!--[!-->");
25
+ }
26
+ $$renderer4.push(`<!--]-->`);
27
+ };
28
+ FormDialog($$renderer3, {
29
+ submitText: "Register",
30
+ submit: register,
31
+ pageMode: fullPage,
32
+ get dialog() {
33
+ return dialog;
34
+ },
35
+ set dialog($$value) {
36
+ dialog = $$value;
37
+ $$settled = false;
38
+ },
39
+ footer,
40
+ children: ($$renderer4) => {
41
+ $$renderer4.push(`<div><label for="name">Display Name</label> <input name="name" type="text" required/></div> <div><label for="email">Email</label> <input name="email" type="email" required/></div>`);
42
+ },
43
+ $$slots: { footer: true, default: true }
44
+ });
45
+ }
46
+ }
47
+ do {
48
+ $$settled = true;
49
+ $$inner_renderer = $$renderer2.copy();
50
+ $$render_inner($$inner_renderer);
51
+ } while (!$$settled);
52
+ $$renderer2.subsume($$inner_renderer);
53
+ bind_props($$props, { dialog });
54
+ });
55
+ }
56
+ function _page($$renderer) {
57
+ head($$renderer, ($$renderer2) => {
58
+ $$renderer2.title(($$renderer3) => {
59
+ $$renderer3.push(`<title>Sign Up</title>`);
60
+ });
61
+ });
62
+ Register($$renderer, { fullPage: true });
63
+ }
64
+
65
+ export { _page as default };
66
+ //# sourceMappingURL=_page.svelte-CAzWL4aq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-CAzWL4aq.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/register/_page.svelte.js"],"sourcesContent":["import { O as bind_props, F as head } from \"../../../chunks/index.js\";\nimport { r as register } from \"../../../chunks/user2.js\";\nimport { F as FormDialog } from \"../../../chunks/FormDialog.js\";\nconst $$css = {\n hash: \"svelte-2447ej\",\n code: \".footer.svelte-2447ej {margin-bottom:1em;text-align:center;background:none;}\"\n};\nfunction Register($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n let { dialog = void 0, fullPage = false } = $$props;\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n {\n let footer = function($$renderer4) {\n if (fullPage) {\n $$renderer4.push(\"<!--[-->\");\n $$renderer4.push(`<div class=\"footer svelte-2447ej\"><a href=\"/login\">Login instead</a></div>`);\n } else {\n $$renderer4.push(\"<!--[!-->\");\n }\n $$renderer4.push(`<!--]-->`);\n };\n FormDialog($$renderer3, {\n submitText: \"Register\",\n submit: register,\n pageMode: fullPage,\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<div><label for=\"name\">Display Name</label> <input name=\"name\" type=\"text\" required/></div> <div><label for=\"email\">Email</label> <input name=\"email\" type=\"email\" required/></div>`);\n },\n $$slots: { footer: true, default: true }\n });\n }\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, { dialog });\n });\n}\nfunction _page($$renderer) {\n head($$renderer, ($$renderer2) => {\n $$renderer2.title(($$renderer3) => {\n $$renderer3.push(`<title>Sign Up</title>`);\n });\n });\n Register($$renderer, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,KAAK,GAAG;AACd,EAAE,IAAI,EAAE,eAAe;AACvB,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X,UAAU,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;AAChD,SAAS,CAAC;AACV,MAAM;AACN,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,MAAM,EAAE,CAAC;AACnC,EAAE,CAAC,CAAC;AACJ;AACA,SAAS,KAAK,CAAC,UAAU,EAAE;AAC3B,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,KAAK;AACpC,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACvC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAChD,IAAI,CAAC,CAAC;AACN,EAAE,CAAC,CAAC;AACJ,EAAE,QAAQ,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC1C;;;;"}
@@ -0,0 +1,72 @@
1
+ import { F as head, N as bind_props } from './index-DJrm8BZm.js';
2
+ import { F as FormDialog, e as loginByEmail } from './user2-Coq3Frtw.js';
3
+ import './context-R2425nfV.js';
4
+ import './index-eKiDBuyI.js';
5
+ import './color-K_MR7m8s.js';
6
+
7
+ const $$css = {
8
+ hash: "svelte-1mdh4kt",
9
+ code: ".footer.svelte-1mdh4kt {margin-bottom:1em;text-align:center;background:none;}"
10
+ };
11
+ function Login($$renderer, $$props) {
12
+ $$renderer.global.css.add($$css);
13
+ $$renderer.component(($$renderer2) => {
14
+ let { dialog = void 0, fullPage = false } = $$props;
15
+ function submit(data) {
16
+ if (typeof data.email != "string") {
17
+ throw "Tried to upload a file for an email. Huh?!";
18
+ }
19
+ return loginByEmail(data.email);
20
+ }
21
+ let $$settled = true;
22
+ let $$inner_renderer;
23
+ function $$render_inner($$renderer3) {
24
+ {
25
+ let footer = function($$renderer4) {
26
+ if (fullPage) {
27
+ $$renderer4.push("<!--[-->");
28
+ $$renderer4.push(`<div class="footer svelte-1mdh4kt"><a href="/register">Register instead</a></div>`);
29
+ } else {
30
+ $$renderer4.push("<!--[!-->");
31
+ }
32
+ $$renderer4.push(`<!--]-->`);
33
+ };
34
+ FormDialog($$renderer3, {
35
+ submitText: "Login",
36
+ submit,
37
+ pageMode: fullPage,
38
+ get dialog() {
39
+ return dialog;
40
+ },
41
+ set dialog($$value) {
42
+ dialog = $$value;
43
+ $$settled = false;
44
+ },
45
+ footer,
46
+ children: ($$renderer4) => {
47
+ $$renderer4.push(`<div><label for="email">Email</label> <input name="email" type="email" required/></div>`);
48
+ },
49
+ $$slots: { footer: true, default: true }
50
+ });
51
+ }
52
+ }
53
+ do {
54
+ $$settled = true;
55
+ $$inner_renderer = $$renderer2.copy();
56
+ $$render_inner($$inner_renderer);
57
+ } while (!$$settled);
58
+ $$renderer2.subsume($$inner_renderer);
59
+ bind_props($$props, { dialog });
60
+ });
61
+ }
62
+ function _page($$renderer) {
63
+ head($$renderer, ($$renderer2) => {
64
+ $$renderer2.title(($$renderer3) => {
65
+ $$renderer3.push(`<title>Login</title>`);
66
+ });
67
+ });
68
+ Login($$renderer, { fullPage: true });
69
+ }
70
+
71
+ export { _page as default };
72
+ //# sourceMappingURL=_page.svelte-Ci5V-DhL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-Ci5V-DhL.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/login/_page.svelte.js"],"sourcesContent":["import { O as bind_props, F as head } from \"../../../chunks/index.js\";\nimport { i as loginByEmail } from \"../../../chunks/user2.js\";\nimport { F as FormDialog } from \"../../../chunks/FormDialog.js\";\nconst $$css = {\n hash: \"svelte-1mdh4kt\",\n code: \".footer.svelte-1mdh4kt {margin-bottom:1em;text-align:center;background:none;}\"\n};\nfunction Login($$renderer, $$props) {\n $$renderer.global.css.add($$css);\n $$renderer.component(($$renderer2) => {\n let { dialog = void 0, fullPage = false } = $$props;\n function submit(data) {\n if (typeof data.email != \"string\") {\n throw \"Tried to upload a file for an email. Huh?!\";\n }\n return loginByEmail(data.email);\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n {\n let footer = function($$renderer4) {\n if (fullPage) {\n $$renderer4.push(\"<!--[-->\");\n $$renderer4.push(`<div class=\"footer svelte-1mdh4kt\"><a href=\"/register\">Register instead</a></div>`);\n } else {\n $$renderer4.push(\"<!--[!-->\");\n }\n $$renderer4.push(`<!--]-->`);\n };\n FormDialog($$renderer3, {\n submitText: \"Login\",\n submit,\n pageMode: fullPage,\n get dialog() {\n return dialog;\n },\n set dialog($$value) {\n dialog = $$value;\n $$settled = false;\n },\n footer,\n children: ($$renderer4) => {\n $$renderer4.push(`<div><label for=\"email\">Email</label> <input name=\"email\" type=\"email\" required/></div>`);\n },\n $$slots: { footer: true, default: true }\n });\n }\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, { dialog });\n });\n}\nfunction _page($$renderer) {\n head($$renderer, ($$renderer2) => {\n $$renderer2.title(($$renderer3) => {\n $$renderer3.push(`<title>Login</title>`);\n });\n });\n Login($$renderer, { fullPage: true });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;AAGA,MAAM,KAAK,GAAG;AACd,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE;AACR,CAAC;AACD,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AAClC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;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,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI;AAChD,SAAS,CAAC;AACV,MAAM;AACN,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,MAAM,EAAE,CAAC;AACnC,EAAE,CAAC,CAAC;AACJ;AACA,SAAS,KAAK,CAAC,UAAU,EAAE;AAC3B,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,WAAW,KAAK;AACpC,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACvC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC9C,IAAI,CAAC,CAAC;AACN,EAAE,CAAC,CAAC;AACJ,EAAE,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACvC;;;;"}
@@ -0,0 +1,37 @@
1
+ import { F as head, w as ensure_array_like } from './index-DJrm8BZm.js';
2
+ import { e as escape_html } from './context-R2425nfV.js';
3
+
4
+ function _page($$renderer, $$props) {
5
+ $$renderer.component(($$renderer2) => {
6
+ const { data } = $$props;
7
+ head($$renderer2, ($$renderer3) => {
8
+ $$renderer3.title(($$renderer4) => {
9
+ $$renderer4.push(`<title>Admin — Plugins</title>`);
10
+ });
11
+ });
12
+ $$renderer2.push(`<h2>Plugins</h2> `);
13
+ const each_array = ensure_array_like(data.plugins);
14
+ if (each_array.length !== 0) {
15
+ $$renderer2.push("<!--[-->");
16
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
17
+ let plugin = each_array[$$index];
18
+ $$renderer2.push(`<h4>${escape_html(plugin.name)}</h4> <p><strong>Loaded from</strong> ${escape_html(plugin.path)} by ${escape_html(plugin._loadedBy ?? "<unknown>")}</p> <p><strong>Version:</strong> ${escape_html(plugin.version)}</p> <p><strong>Author:</strong> ${escape_html(plugin.author)}</p> <p><strong>Provided apps:</strong> `);
19
+ if (plugin.apps?.length) {
20
+ $$renderer2.push("<!--[-->");
21
+ $$renderer2.push(`${escape_html(plugin.apps?.map((a) => a.name).join(", "))}`);
22
+ } else {
23
+ $$renderer2.push("<!--[!-->");
24
+ $$renderer2.push(`<i>None</i>`);
25
+ }
26
+ $$renderer2.push(`<!--]--></p> <p>${escape_html(plugin.description)}</p>`);
27
+ }
28
+ } else {
29
+ $$renderer2.push("<!--[!-->");
30
+ $$renderer2.push(`<i>No plugins loaded.</i>`);
31
+ }
32
+ $$renderer2.push(`<!--]-->`);
33
+ });
34
+ }
35
+
36
+ export { _page as default };
37
+ //# sourceMappingURL=_page.svelte-CnfRSJsl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_page.svelte-CnfRSJsl.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/admin/plugins/_page.svelte.js"],"sourcesContent":["import { F as head, w as ensure_array_like } from \"../../../../chunks/index.js\";\nimport { e as escape_html } from \"../../../../chunks/context.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n head($$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>Admin — Plugins</title>`);\n });\n });\n $$renderer2.push(`<h2>Plugins</h2> `);\n const each_array = ensure_array_like(data.plugins);\n if (each_array.length !== 0) {\n $$renderer2.push(\"<!--[-->\");\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let plugin = each_array[$$index];\n $$renderer2.push(`<h4>${escape_html(plugin.name)}</h4> <p><strong>Loaded from</strong> ${escape_html(plugin.path)} by ${escape_html(plugin._loadedBy ?? \"<unknown>\")}</p> <p><strong>Version:</strong> ${escape_html(plugin.version)}</p> <p><strong>Author:</strong> ${escape_html(plugin.author)}</p> <p><strong>Provided apps:</strong> `);\n if (plugin.apps?.length) {\n $$renderer2.push(\"<!--[-->\");\n $$renderer2.push(`${escape_html(plugin.apps?.map((a) => a.name).join(\", \"))}`);\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<i>None</i>`);\n }\n $$renderer2.push(`<!--]--></p> <p>${escape_html(plugin.description)}</p>`);\n }\n } else {\n $$renderer2.push(\"<!--[!-->\");\n $$renderer2.push(`<i>No plugins loaded.</i>`);\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;AAEA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO;AAC5B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,WAAW,KAAK;AACvC,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,8BAA8B,CAAC,CAAC;AAC1D,MAAM,CAAC,CAAC;AACR,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC;AACzC,IAAI,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;AACtD,IAAI,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;AACjC,MAAM,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;AAClC,MAAM,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE;AACzF,QAAQ,IAAI,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;AACxC,QAAQ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