@axium/sysadmin 0.2.5 → 0.2.6

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/common.d.ts CHANGED
@@ -31,6 +31,7 @@ export declare const System: z.ZodObject<{
31
31
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
32
32
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
33
33
  debug: z.ZodDefault<z.ZodBoolean>;
34
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
34
35
  }, z.core.$strip>>>;
35
36
  roles: z.ZodArray<z.ZodString>;
36
37
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -86,6 +87,7 @@ declare const SysadminAPI: {
86
87
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
87
88
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
88
89
  debug: z.ZodDefault<z.ZodBoolean>;
90
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
89
91
  }, z.core.$strip>>>;
90
92
  roles: z.ZodArray<z.ZodString>;
91
93
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -122,6 +124,7 @@ declare const SysadminAPI: {
122
124
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
123
125
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
124
126
  debug: z.ZodDefault<z.ZodBoolean>;
127
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
125
128
  }, z.core.$strip>>>;
126
129
  roles: z.ZodArray<z.ZodString>;
127
130
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -172,6 +175,7 @@ declare const SysadminAPI: {
172
175
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
173
176
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
174
177
  debug: z.ZodDefault<z.ZodBoolean>;
178
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
175
179
  }, z.core.$strip>>>;
176
180
  roles: z.ZodArray<z.ZodString>;
177
181
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -208,6 +212,7 @@ declare const SysadminAPI: {
208
212
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
209
213
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
210
214
  debug: z.ZodDefault<z.ZodBoolean>;
215
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
211
216
  }, z.core.$strip>>>;
212
217
  roles: z.ZodArray<z.ZodString>;
213
218
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -239,6 +244,7 @@ declare const SysadminAPI: {
239
244
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
240
245
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
241
246
  debug: z.ZodDefault<z.ZodBoolean>;
247
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
242
248
  }, z.core.$strip>>>;
243
249
  roles: z.ZodArray<z.ZodString>;
244
250
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -295,6 +301,7 @@ declare const SysadminAPI: {
295
301
  emailVerified: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>>;
296
302
  preferences: z.ZodOptional<z.ZodLazy<z.ZodObject<{
297
303
  debug: z.ZodDefault<z.ZodBoolean>;
304
+ theme: z.ZodDefault<z.ZodLiteral<"default" | "light" | "forest" | "midnight" | "beach" | "cherry" | "volcano">>;
298
305
  }, z.core.$strip>>>;
299
306
  roles: z.ZodArray<z.ZodString>;
300
307
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -2,7 +2,7 @@
2
2
  import { fetchAPI, text } from '@axium/client';
3
3
  import { contextMenu, type ContextMenuItem } from '@axium/client/attachments';
4
4
  import { Icon, Popover } from '@axium/client/components';
5
- import { copy } from '@axium/client/gui';
5
+ import { copy } from '@axium/client/web';
6
6
  import { toastStatus } from '@axium/client/toast';
7
7
  import { systemTypeIcons, type System } from '@axium/sysadmin';
8
8
  import SystemInitDialog from './SystemInitDialog.svelte';
@@ -2,7 +2,7 @@
2
2
  import { fetchAPI, text } from '@axium/client';
3
3
  import { contextMenu, type ContextMenuItem } from '@axium/client/attachments';
4
4
  import { Icon, Popover } from '@axium/client/components';
5
- import { copy } from '@axium/client/gui';
5
+ import { copy } from '@axium/client/web';
6
6
  import { toastStatus } from '@axium/client/toast';
7
7
  import type { SystemUser } from '@axium/sysadmin';
8
8
  import UserInitDialog from './UserInitDialog.svelte';
package/lib/tsconfig.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "module": "preserve",
7
7
  "moduleResolution": "Bundler"
8
8
  },
9
- "include": ["**/*.svelte", "**/*.ts"],
9
+ "include": ["**/*.svelte", "**/*.ts", "../src/.*.ts", "../../client/dist/.*.ts"],
10
10
  "exclude": [],
11
11
  "references": [{ "path": ".." }]
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/sysadmin",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "description": "System administration for Axium",
6
6
  "funding": {
@@ -36,8 +36,8 @@
36
36
  "build": "tsc"
37
37
  },
38
38
  "peerDependencies": {
39
- "@axium/client": ">=0.27.0",
40
- "@axium/core": ">=0.33.0",
39
+ "@axium/client": ">=0.37.0",
40
+ "@axium/core": ">=0.39.0",
41
41
  "@axium/server": ">=0.47.0",
42
42
  "@sveltejs/kit": "^2.27.3",
43
43
  "kysely": "^0.29.0",
@@ -49,11 +49,12 @@
49
49
  "zod": "^4.0.5"
50
50
  },
51
51
  "axium": {
52
+ "locales": "locales",
52
53
  "server": {
53
54
  "routes": "routes",
54
55
  "hooks": "./dist/server/hooks.js",
55
56
  "db": "./db.json",
56
- "web_client_hooks": "./dist/web_hook.js"
57
+ "web_client_hooks": "./dist/common.js"
57
58
  },
58
59
  "client": {
59
60
  "hooks": "./dist/client/hooks.js",
@@ -7,6 +7,6 @@
7
7
  "target": "esnext",
8
8
  "rootDir": ".."
9
9
  },
10
- "include": ["**/*", "../lib/*"],
10
+ "include": ["**/*", "../lib/*", "../src/.*.ts", "../../client/dist/.*.ts"],
11
11
  "references": [{ "path": ".." }]
12
12
  }
@@ -1,8 +0,0 @@
1
- import en from '../locales/en.json';
2
- import './common.js';
3
- type en = typeof en;
4
- declare module '@axium/client/locales' {
5
- interface Locale extends en {
6
- }
7
- }
8
- export {};
package/dist/web_hook.js DELETED
@@ -1,4 +0,0 @@
1
- import { extendLocale } from '@axium/client';
2
- import en from '../locales/en.json' with { type: 'json' };
3
- import './common.js';
4
- extendLocale('en', en);