@acmekit/dashboard 2.13.6 → 2.13.8
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/api-key-management-create-D57V3NN2.mjs +170 -0
- package/dist/api-key-management-detail-QURSBB6T.mjs +307 -0
- package/dist/api-key-management-edit-GG5V77GY.mjs +106 -0
- package/dist/api-key-management-list-PL64LD22.mjs +400 -0
- package/dist/app.js +16930 -1004
- package/dist/app.mjs +793 -884
- package/dist/chunk-22YYMH6M.mjs +382 -0
- package/dist/chunk-2U3RK3JG.mjs +474 -0
- package/dist/chunk-535OVBXR.mjs +226 -0
- package/dist/chunk-6SQCO25J.mjs +65 -0
- package/dist/chunk-774WSTCC.mjs +19 -0
- package/dist/chunk-7ZHDHEUH.mjs +1837 -0
- package/dist/chunk-C76H5USB.mjs +16 -0
- package/dist/chunk-DFFLVEZ5.mjs +40 -0
- package/dist/chunk-DN3MIYQH.mjs +140 -0
- package/dist/chunk-DQCEH3X2.mjs +28 -0
- package/dist/chunk-DTY37DDZ.mjs +20 -0
- package/dist/chunk-FXYH54JP.mjs +16 -0
- package/dist/chunk-G22WWLPG.mjs +44 -0
- package/dist/chunk-G2VJOHHV.mjs +32 -0
- package/dist/chunk-GBFVWROS.mjs +58 -0
- package/dist/chunk-ITNQKZQQ.mjs +142 -0
- package/dist/chunk-IUCDCPJU.mjs +0 -0
- package/dist/chunk-LKWTBYYC.mjs +35 -0
- package/dist/{chunk-4VYJHIB3.mjs → chunk-ND3ODI36.mjs} +0 -72
- package/dist/chunk-OAHCJFG3.mjs +17 -0
- package/dist/chunk-OHAFITSB.mjs +54 -0
- package/dist/chunk-RPAL6FHW.mjs +73 -0
- package/dist/{chunk-JSJZMTQG.mjs → chunk-RREPQMYC.mjs} +14 -41
- package/dist/chunk-S3REQHPQ.mjs +86 -0
- package/dist/chunk-S4DMV3ZT.mjs +35 -0
- package/dist/chunk-TCNCAWYD.mjs +9 -0
- package/dist/chunk-ULSPL3DR.mjs +126 -0
- package/dist/chunk-VBT5YZ4K.mjs +129 -0
- package/dist/chunk-WILMJYUB.mjs +35 -0
- package/dist/chunk-XIM7X4FB.mjs +83 -0
- package/dist/chunk-YB52HEIR.mjs +387 -0
- package/dist/chunk-YRWSG3YM.mjs +80 -0
- package/dist/{invite-S5USGDOZ.mjs → invite-BAFXQBLJ.mjs} +15 -7
- package/dist/{login-BRUR5XXN.mjs → login-YURMNRCS.mjs} +23 -9
- package/dist/profile-detail-SJWODS2K.mjs +96 -0
- package/dist/profile-edit-HSGF4UXZ.mjs +173 -0
- package/dist/{reset-password-UQPRHMB3.mjs → reset-password-RQ5M7HQC.mjs} +8 -4
- package/dist/settings-3XWLL5LG.mjs +545 -0
- package/dist/store-detail-SQKV5KBD.mjs +109 -0
- package/dist/store-edit-WGGIJMYJ.mjs +97 -0
- package/dist/store-metadata-CSBUGX6Z.mjs +49 -0
- package/dist/translation-list-H5X4DVCC.mjs +587 -0
- package/dist/translations-edit-NPAUN2GZ.mjs +5376 -0
- package/dist/user-detail-7SUQ35G7.mjs +169 -0
- package/dist/user-edit-KUZV37AH.mjs +114 -0
- package/dist/user-invite-OREFWWYL.mjs +361 -0
- package/dist/user-list-OWUR75OP.mjs +1116 -0
- package/dist/user-metadata-QHUX5SHZ.mjs +51 -0
- package/dist/workflow-execution-detail-MWNM25TF.mjs +820 -0
- package/dist/workflow-execution-list-IGYF44UH.mjs +175 -0
- package/package.json +9 -9
- package/src/components/layout/settings-layout/settings-layout.tsx +74 -6
- package/src/dashboard-app/routes/get-route.map.tsx +225 -0
- package/src/routes/login/login.tsx +1 -1
- package/dist/chunk-FBTP4AJM.mjs +0 -221
- package/dist/chunk-NQEMGMWU.mjs +0 -159
- package/dist/chunk-QYOO4QR6.mjs +0 -73
- package/dist/login-AIMR26AL.mjs +0 -291
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
queryKeysFactory
|
|
3
|
+
} from "./chunk-774WSTCC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
sdk
|
|
6
|
+
} from "./chunk-DTY37DDZ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/hooks/api/cloud.tsx
|
|
9
|
+
import {
|
|
10
|
+
useMutation,
|
|
11
|
+
useQuery
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
var cloudQueryKeys = {
|
|
14
|
+
all: ["cloud"],
|
|
15
|
+
auth: () => [...cloudQueryKeys.all, "auth"]
|
|
16
|
+
};
|
|
17
|
+
var useCloudAuthEnabled = (options) => {
|
|
18
|
+
return useQuery({
|
|
19
|
+
queryKey: cloudQueryKeys.auth(),
|
|
20
|
+
queryFn: async () => {
|
|
21
|
+
return await sdk.client.fetch("/cloud/auth");
|
|
22
|
+
},
|
|
23
|
+
...options
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var useCreateCloudAuthUser = (options) => {
|
|
27
|
+
return useMutation({
|
|
28
|
+
mutationFn: async () => {
|
|
29
|
+
await sdk.client.fetch("/cloud/auth/users", {
|
|
30
|
+
method: "POST"
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
...options
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// src/hooks/api/locales.tsx
|
|
38
|
+
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
39
|
+
var LOCALES_QUERY_KEY = "locales";
|
|
40
|
+
var localesQueryKeys = queryKeysFactory(LOCALES_QUERY_KEY);
|
|
41
|
+
|
|
42
|
+
// src/hooks/api/notification.tsx
|
|
43
|
+
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
44
|
+
var NOTIFICATION_QUERY_KEY = "notification";
|
|
45
|
+
var notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY);
|
|
46
|
+
var useNotifications = (query, options) => {
|
|
47
|
+
const { data, ...rest } = useQuery3({
|
|
48
|
+
queryFn: () => sdk.admin.notification.list(query),
|
|
49
|
+
queryKey: notificationQueryKeys.list(query),
|
|
50
|
+
...options
|
|
51
|
+
});
|
|
52
|
+
return { ...data, ...rest };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/hooks/api/plugins.tsx
|
|
56
|
+
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
|
57
|
+
var PLUGINS_QUERY_KEY = "plugins";
|
|
58
|
+
var pluginsQueryKeys = queryKeysFactory(PLUGINS_QUERY_KEY);
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
useCloudAuthEnabled,
|
|
62
|
+
useCreateCloudAuthUser,
|
|
63
|
+
notificationQueryKeys,
|
|
64
|
+
useNotifications
|
|
65
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/lib/query-key-factory.ts
|
|
2
|
+
var queryKeysFactory = (globalKey) => {
|
|
3
|
+
const queryKeyFactory = {
|
|
4
|
+
all: [globalKey],
|
|
5
|
+
lists: () => [...queryKeyFactory.all, "list"],
|
|
6
|
+
list: (query) => [...queryKeyFactory.lists(), query ? { query } : void 0].filter(
|
|
7
|
+
(k) => !!k
|
|
8
|
+
),
|
|
9
|
+
details: () => [...queryKeyFactory.all, "detail"],
|
|
10
|
+
detail: (id, query) => [...queryKeyFactory.details(), id, query ? { query } : void 0].filter(
|
|
11
|
+
(k) => !!k
|
|
12
|
+
)
|
|
13
|
+
};
|
|
14
|
+
return queryKeyFactory;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
queryKeysFactory
|
|
19
|
+
};
|