@axium/server 0.37.1 → 0.38.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/dist/acl.d.ts +8 -2
- package/dist/acl.js +17 -19
- package/dist/api/admin.js +7 -7
- package/dist/api/register.js +1 -1
- package/dist/api/users.js +7 -8
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +36 -28
- package/dist/database.d.ts +1 -1
- package/dist/db/schema.json +10 -0
- package/dist/requests.d.ts +3 -1
- package/dist/requests.js +23 -2
- package/package.json +6 -3
- package/routes/account/+page.svelte +41 -34
- package/routes/admin/+page.svelte +22 -17
- package/routes/admin/audit/+page.svelte +25 -24
- package/routes/admin/audit/[id]/+page.svelte +14 -13
- package/routes/admin/config/+page.svelte +4 -3
- package/routes/admin/plugins/+page.svelte +17 -9
- package/routes/admin/users/+page.svelte +17 -16
- package/routes/admin/users/[id]/+page.svelte +28 -25
- package/routes/login/+page.svelte +2 -1
- package/routes/login/client/+page.svelte +8 -7
- package/routes/login/client/+page.ts +3 -1
- package/routes/login/token/+page.svelte +2 -1
- package/routes/logout/+page.svelte +2 -1
- package/routes/register/+page.svelte +2 -1
|
@@ -13,12 +13,14 @@ export async function load({ parent, url }: Omit<PageLoadEvent, 'parent'> & { pa
|
|
|
13
13
|
const port = parseInt(url.searchParams.get('port') ?? '!');
|
|
14
14
|
const localCallback = new URL('http://localhost');
|
|
15
15
|
|
|
16
|
+
const client = url.searchParams.get('client') ?? '';
|
|
17
|
+
|
|
16
18
|
let options,
|
|
17
19
|
error: string | null = null;
|
|
18
20
|
try {
|
|
19
21
|
if (Number.isNaN(port)) throw new Error('Invalid port number provided by local client');
|
|
20
22
|
localCallback.port = port.toString();
|
|
21
|
-
options = await fetchAPI('OPTIONS', 'users/:id/auth', { type: 'client_login' }, session.userId);
|
|
23
|
+
options = await fetchAPI('OPTIONS', 'users/:id/auth', { type: 'client_login', client }, session.userId);
|
|
22
24
|
} catch (e: any) {
|
|
23
25
|
error = e.message;
|
|
24
26
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { text } from '@axium/client';
|
|
2
3
|
import Register from '@axium/client/components/Register';
|
|
3
4
|
</script>
|
|
4
5
|
|
|
5
6
|
<svelte:head>
|
|
6
|
-
<title>
|
|
7
|
+
<title>{text('generic.register')}</title>
|
|
7
8
|
</svelte:head>
|
|
8
9
|
|
|
9
10
|
<Register fullPage />
|