@alepha/devtools 0.11.2 → 0.11.4
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/index.d.mts +370 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +360 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +26 -16
- package/src/DevCollectorProvider.ts +29 -29
- package/src/index.ts +4 -1
- package/src/ui/AppRouter.tsx +61 -0
- package/src/ui/DevLogs.tsx +143 -0
- package/src/ui/main.ts +4 -0
- package/src/ui/styles.css +7 -0
- package/src/ui/wotfardregular/stylesheet.css +12 -0
- package/src/ui/wotfardregular/wotfard-regular-webfont.eot +0 -0
- package/src/ui/wotfardregular/wotfard-regular-webfont.ttf +0 -0
- package/src/ui/wotfardregular/wotfard-regular-webfont.woff2 +0 -0
- package/dist/index.d.ts +0 -368
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1678
- package/dist/index.js.map +0 -1
- package/src/constants/ui.ts +0 -1317
- package/src/schemas/DevLogEntry.ts +0 -11
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { t } from "@alepha/core";
|
|
2
|
+
import { type LogEntry, logEntrySchema } from "@alepha/logger";
|
|
3
|
+
import { useAction, useInject } from "@alepha/react";
|
|
4
|
+
import { useI18n } from "@alepha/react-i18n";
|
|
5
|
+
import { HttpClient } from "@alepha/server";
|
|
6
|
+
import { DataTable, Flex, Text } from "@alepha/ui";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
|
|
9
|
+
const DevLogs = () => {
|
|
10
|
+
const http = useInject(HttpClient);
|
|
11
|
+
const [logs, setLog] = useState<LogEntry[]>([]);
|
|
12
|
+
const { l } = useI18n();
|
|
13
|
+
|
|
14
|
+
useAction(
|
|
15
|
+
{
|
|
16
|
+
runOnInit: true,
|
|
17
|
+
runEvery: [10, "seconds"],
|
|
18
|
+
handler: async () => {
|
|
19
|
+
setLog(
|
|
20
|
+
await http
|
|
21
|
+
.fetch("/devtools/api/logs", {
|
|
22
|
+
schema: {
|
|
23
|
+
response: t.array(logEntrySchema),
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
.then(({ data }) => data),
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
[],
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const renderLevel = (level: string) => {
|
|
34
|
+
switch (level.toLowerCase()) {
|
|
35
|
+
case "error":
|
|
36
|
+
return (
|
|
37
|
+
<Text ff={"monospace"} c="red">
|
|
38
|
+
{level.slice(0, 5)}
|
|
39
|
+
</Text>
|
|
40
|
+
);
|
|
41
|
+
case "warn":
|
|
42
|
+
return (
|
|
43
|
+
<Text ff={"monospace"} c="orange">
|
|
44
|
+
{level.slice(0, 5)}
|
|
45
|
+
</Text>
|
|
46
|
+
);
|
|
47
|
+
case "info":
|
|
48
|
+
return (
|
|
49
|
+
<Text ff={"monospace"} c="green">
|
|
50
|
+
{level.slice(0, 5)}
|
|
51
|
+
</Text>
|
|
52
|
+
);
|
|
53
|
+
case "debug":
|
|
54
|
+
return (
|
|
55
|
+
<Text ff={"monospace"} c="grape">
|
|
56
|
+
{level.slice(0, 5)}
|
|
57
|
+
</Text>
|
|
58
|
+
);
|
|
59
|
+
case "trace":
|
|
60
|
+
return (
|
|
61
|
+
<Text ff={"monospace"} c="dimmed">
|
|
62
|
+
{level.slice(0, 5)}
|
|
63
|
+
</Text>
|
|
64
|
+
);
|
|
65
|
+
default:
|
|
66
|
+
return <Text>{level}</Text>;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<Flex>
|
|
72
|
+
<DataTable
|
|
73
|
+
tableProps={{
|
|
74
|
+
horizontalSpacing: "xs",
|
|
75
|
+
verticalSpacing: 0,
|
|
76
|
+
}}
|
|
77
|
+
tableTrProps={(item) => {
|
|
78
|
+
if (item.level.toLowerCase() === "error") {
|
|
79
|
+
return {
|
|
80
|
+
bg: "rgba(255,0,0,0.1)",
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (item.level.toLowerCase() === "warn") {
|
|
84
|
+
return {
|
|
85
|
+
bg: "rgba(255,153,0,0.1)",
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return {};
|
|
89
|
+
}}
|
|
90
|
+
items={logs}
|
|
91
|
+
columns={{
|
|
92
|
+
timestamp: {
|
|
93
|
+
label: "Tme",
|
|
94
|
+
value: (item) => (
|
|
95
|
+
<Text c={"dimmed"} size={"xs"}>
|
|
96
|
+
{l(item.timestamp, {
|
|
97
|
+
date: "HH:mm:ss.SSS",
|
|
98
|
+
})}
|
|
99
|
+
</Text>
|
|
100
|
+
),
|
|
101
|
+
},
|
|
102
|
+
level: {
|
|
103
|
+
label: "Lvl",
|
|
104
|
+
value: (item) => renderLevel(item.level),
|
|
105
|
+
},
|
|
106
|
+
context: {
|
|
107
|
+
label: "Ctx",
|
|
108
|
+
value: (item) =>
|
|
109
|
+
item.context && (
|
|
110
|
+
<Text ff={"monospace"} size={"xs"} c="dimmed">
|
|
111
|
+
{item.context.slice(0, 8)}
|
|
112
|
+
</Text>
|
|
113
|
+
),
|
|
114
|
+
},
|
|
115
|
+
service: {
|
|
116
|
+
label: "Srv",
|
|
117
|
+
value: (item) => (
|
|
118
|
+
<Flex align={"center"} justify={"end"}>
|
|
119
|
+
{item.module && (
|
|
120
|
+
<Text c="dimmed" size={"xs"}>
|
|
121
|
+
{item.module}.
|
|
122
|
+
</Text>
|
|
123
|
+
)}
|
|
124
|
+
<Text size={"sm"}>{item.service}</Text>
|
|
125
|
+
</Flex>
|
|
126
|
+
),
|
|
127
|
+
},
|
|
128
|
+
message: {
|
|
129
|
+
label: "Msg",
|
|
130
|
+
value: (item) => item.message.slice(0, 64),
|
|
131
|
+
},
|
|
132
|
+
data: {
|
|
133
|
+
label: "Dat",
|
|
134
|
+
value: (item) =>
|
|
135
|
+
item.data ? JSON.stringify(item.data, null, 2).slice(0, 32) : "",
|
|
136
|
+
},
|
|
137
|
+
}}
|
|
138
|
+
/>
|
|
139
|
+
</Flex>
|
|
140
|
+
);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export default DevLogs;
|
package/src/ui/main.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on March 27, 2020 */
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: "wotfardregular";
|
|
5
|
+
src: url("wotfard-regular-webfont.eot");
|
|
6
|
+
src:
|
|
7
|
+
url("wotfard-regular-webfont.eot?#iefix") format("embedded-opentype"),
|
|
8
|
+
url("wotfard-regular-webfont.woff2") format("woff2"),
|
|
9
|
+
url("wotfard-regular-webfont.ttf") format("truetype");
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import * as _alepha_core1 from "@alepha/core";
|
|
2
|
-
import { Alepha, Static } from "@alepha/core";
|
|
3
|
-
import * as _alepha_server0 from "@alepha/server";
|
|
4
|
-
import * as typebox144 from "typebox";
|
|
5
|
-
import { LogEntry } from "@alepha/logger";
|
|
6
|
-
|
|
7
|
-
//#region src/schemas/DevActionMetadata.d.ts
|
|
8
|
-
declare const devActionMetadataSchema: typebox144.TObject<{
|
|
9
|
-
name: typebox144.TString;
|
|
10
|
-
group: typebox144.TString;
|
|
11
|
-
method: typebox144.TString;
|
|
12
|
-
path: typebox144.TString;
|
|
13
|
-
prefix: typebox144.TString;
|
|
14
|
-
fullPath: typebox144.TString;
|
|
15
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
16
|
-
summary: typebox144.TOptional<typebox144.TString>;
|
|
17
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
18
|
-
secure: typebox144.TOptional<typebox144.TBoolean>;
|
|
19
|
-
hide: typebox144.TOptional<typebox144.TBoolean>;
|
|
20
|
-
body: typebox144.TOptional<typebox144.TAny>;
|
|
21
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
22
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
23
|
-
response: typebox144.TOptional<typebox144.TAny>;
|
|
24
|
-
bodyContentType: typebox144.TOptional<typebox144.TString>;
|
|
25
|
-
}>;
|
|
26
|
-
type DevActionMetadata = Static<typeof devActionMetadataSchema>;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/schemas/DevBucketMetadata.d.ts
|
|
29
|
-
declare const devBucketMetadataSchema: typebox144.TObject<{
|
|
30
|
-
name: typebox144.TString;
|
|
31
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
32
|
-
mimeTypes: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
33
|
-
maxSize: typebox144.TOptional<typebox144.TNumber>;
|
|
34
|
-
provider: typebox144.TString;
|
|
35
|
-
}>;
|
|
36
|
-
type DevBucketMetadata = Static<typeof devBucketMetadataSchema>;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/schemas/DevCacheMetadata.d.ts
|
|
39
|
-
declare const devCacheMetadataSchema: typebox144.TObject<{
|
|
40
|
-
name: typebox144.TString;
|
|
41
|
-
ttl: typebox144.TOptional<typebox144.TAny>;
|
|
42
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
43
|
-
provider: typebox144.TString;
|
|
44
|
-
}>;
|
|
45
|
-
type DevCacheMetadata = Static<typeof devCacheMetadataSchema>;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/schemas/DevLogEntry.d.ts
|
|
48
|
-
declare const devLogEntrySchema: typebox144.TObject<{
|
|
49
|
-
formatted: typebox144.TString;
|
|
50
|
-
entry: typebox144.TAny;
|
|
51
|
-
}>;
|
|
52
|
-
type DevLogEntry = Static<typeof devLogEntrySchema> & {
|
|
53
|
-
entry: LogEntry;
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/schemas/DevMetadata.d.ts
|
|
57
|
-
declare const devMetadataSchema: typebox144.TObject<{
|
|
58
|
-
actions: typebox144.TArray<typebox144.TObject<{
|
|
59
|
-
name: typebox144.TString;
|
|
60
|
-
group: typebox144.TString;
|
|
61
|
-
method: typebox144.TString;
|
|
62
|
-
path: typebox144.TString;
|
|
63
|
-
prefix: typebox144.TString;
|
|
64
|
-
fullPath: typebox144.TString;
|
|
65
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
66
|
-
summary: typebox144.TOptional<typebox144.TString>;
|
|
67
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
68
|
-
secure: typebox144.TOptional<typebox144.TBoolean>;
|
|
69
|
-
hide: typebox144.TOptional<typebox144.TBoolean>;
|
|
70
|
-
body: typebox144.TOptional<typebox144.TAny>;
|
|
71
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
72
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
73
|
-
response: typebox144.TOptional<typebox144.TAny>;
|
|
74
|
-
bodyContentType: typebox144.TOptional<typebox144.TString>;
|
|
75
|
-
}>>;
|
|
76
|
-
queues: typebox144.TArray<typebox144.TObject<{
|
|
77
|
-
name: typebox144.TString;
|
|
78
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
79
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
80
|
-
provider: typebox144.TString;
|
|
81
|
-
}>>;
|
|
82
|
-
schedulers: typebox144.TArray<typebox144.TObject<{
|
|
83
|
-
name: typebox144.TString;
|
|
84
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
85
|
-
cron: typebox144.TOptional<typebox144.TString>;
|
|
86
|
-
interval: typebox144.TOptional<typebox144.TAny>;
|
|
87
|
-
lock: typebox144.TOptional<typebox144.TBoolean>;
|
|
88
|
-
}>>;
|
|
89
|
-
topics: typebox144.TArray<typebox144.TObject<{
|
|
90
|
-
name: typebox144.TString;
|
|
91
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
92
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
93
|
-
provider: typebox144.TString;
|
|
94
|
-
}>>;
|
|
95
|
-
buckets: typebox144.TArray<typebox144.TObject<{
|
|
96
|
-
name: typebox144.TString;
|
|
97
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
98
|
-
mimeTypes: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
99
|
-
maxSize: typebox144.TOptional<typebox144.TNumber>;
|
|
100
|
-
provider: typebox144.TString;
|
|
101
|
-
}>>;
|
|
102
|
-
realms: typebox144.TArray<typebox144.TObject<{
|
|
103
|
-
name: typebox144.TString;
|
|
104
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
105
|
-
roles: typebox144.TOptional<typebox144.TArray<typebox144.TAny>>;
|
|
106
|
-
type: typebox144.TUnsafe<"internal" | "external">;
|
|
107
|
-
settings: typebox144.TOptional<typebox144.TObject<{
|
|
108
|
-
accessTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
109
|
-
refreshTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
110
|
-
hasOnCreateSession: typebox144.TBoolean;
|
|
111
|
-
hasOnRefreshSession: typebox144.TBoolean;
|
|
112
|
-
hasOnDeleteSession: typebox144.TBoolean;
|
|
113
|
-
}>>;
|
|
114
|
-
}>>;
|
|
115
|
-
caches: typebox144.TArray<typebox144.TObject<{
|
|
116
|
-
name: typebox144.TString;
|
|
117
|
-
ttl: typebox144.TOptional<typebox144.TAny>;
|
|
118
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
119
|
-
provider: typebox144.TString;
|
|
120
|
-
}>>;
|
|
121
|
-
pages: typebox144.TArray<typebox144.TObject<{
|
|
122
|
-
name: typebox144.TString;
|
|
123
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
124
|
-
path: typebox144.TOptional<typebox144.TString>;
|
|
125
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
126
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
127
|
-
hasComponent: typebox144.TBoolean;
|
|
128
|
-
hasLazy: typebox144.TBoolean;
|
|
129
|
-
hasResolve: typebox144.TBoolean;
|
|
130
|
-
hasChildren: typebox144.TBoolean;
|
|
131
|
-
hasParent: typebox144.TBoolean;
|
|
132
|
-
hasErrorHandler: typebox144.TBoolean;
|
|
133
|
-
static: typebox144.TOptional<typebox144.TBoolean>;
|
|
134
|
-
cache: typebox144.TOptional<typebox144.TAny>;
|
|
135
|
-
client: typebox144.TOptional<typebox144.TAny>;
|
|
136
|
-
animation: typebox144.TOptional<typebox144.TAny>;
|
|
137
|
-
}>>;
|
|
138
|
-
providers: typebox144.TArray<typebox144.TObject<{
|
|
139
|
-
name: typebox144.TString;
|
|
140
|
-
module: typebox144.TOptional<typebox144.TString>;
|
|
141
|
-
dependencies: typebox144.TArray<typebox144.TString>;
|
|
142
|
-
aliases: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
143
|
-
}>>;
|
|
144
|
-
modules: typebox144.TArray<typebox144.TObject<{
|
|
145
|
-
name: typebox144.TString;
|
|
146
|
-
providers: typebox144.TArray<typebox144.TString>;
|
|
147
|
-
}>>;
|
|
148
|
-
}>;
|
|
149
|
-
type DevMetadata = Static<typeof devMetadataSchema>;
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/schemas/DevModuleMetadata.d.ts
|
|
152
|
-
declare const devModuleMetadataSchema: typebox144.TObject<{
|
|
153
|
-
name: typebox144.TString;
|
|
154
|
-
providers: typebox144.TArray<typebox144.TString>;
|
|
155
|
-
}>;
|
|
156
|
-
type DevModuleMetadata = Static<typeof devModuleMetadataSchema>;
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region src/schemas/DevPageMetadata.d.ts
|
|
159
|
-
declare const devPageMetadataSchema: typebox144.TObject<{
|
|
160
|
-
name: typebox144.TString;
|
|
161
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
162
|
-
path: typebox144.TOptional<typebox144.TString>;
|
|
163
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
164
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
165
|
-
hasComponent: typebox144.TBoolean;
|
|
166
|
-
hasLazy: typebox144.TBoolean;
|
|
167
|
-
hasResolve: typebox144.TBoolean;
|
|
168
|
-
hasChildren: typebox144.TBoolean;
|
|
169
|
-
hasParent: typebox144.TBoolean;
|
|
170
|
-
hasErrorHandler: typebox144.TBoolean;
|
|
171
|
-
static: typebox144.TOptional<typebox144.TBoolean>;
|
|
172
|
-
cache: typebox144.TOptional<typebox144.TAny>;
|
|
173
|
-
client: typebox144.TOptional<typebox144.TAny>;
|
|
174
|
-
animation: typebox144.TOptional<typebox144.TAny>;
|
|
175
|
-
}>;
|
|
176
|
-
type DevPageMetadata = Static<typeof devPageMetadataSchema>;
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/schemas/DevProviderMetadata.d.ts
|
|
179
|
-
declare const devProviderMetadataSchema: typebox144.TObject<{
|
|
180
|
-
name: typebox144.TString;
|
|
181
|
-
module: typebox144.TOptional<typebox144.TString>;
|
|
182
|
-
dependencies: typebox144.TArray<typebox144.TString>;
|
|
183
|
-
aliases: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
184
|
-
}>;
|
|
185
|
-
type DevProviderMetadata = Static<typeof devProviderMetadataSchema>;
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/schemas/DevQueueMetadata.d.ts
|
|
188
|
-
declare const devQueueMetadataSchema: typebox144.TObject<{
|
|
189
|
-
name: typebox144.TString;
|
|
190
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
191
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
192
|
-
provider: typebox144.TString;
|
|
193
|
-
}>;
|
|
194
|
-
type DevQueueMetadata = Static<typeof devQueueMetadataSchema>;
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region src/schemas/DevRealmMetadata.d.ts
|
|
197
|
-
declare const devRealmMetadataSchema: typebox144.TObject<{
|
|
198
|
-
name: typebox144.TString;
|
|
199
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
200
|
-
roles: typebox144.TOptional<typebox144.TArray<typebox144.TAny>>;
|
|
201
|
-
type: typebox144.TUnsafe<"internal" | "external">;
|
|
202
|
-
settings: typebox144.TOptional<typebox144.TObject<{
|
|
203
|
-
accessTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
204
|
-
refreshTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
205
|
-
hasOnCreateSession: typebox144.TBoolean;
|
|
206
|
-
hasOnRefreshSession: typebox144.TBoolean;
|
|
207
|
-
hasOnDeleteSession: typebox144.TBoolean;
|
|
208
|
-
}>>;
|
|
209
|
-
}>;
|
|
210
|
-
type DevRealmMetadata = Static<typeof devRealmMetadataSchema>;
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/schemas/DevSchedulerMetadata.d.ts
|
|
213
|
-
declare const devSchedulerMetadataSchema: typebox144.TObject<{
|
|
214
|
-
name: typebox144.TString;
|
|
215
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
216
|
-
cron: typebox144.TOptional<typebox144.TString>;
|
|
217
|
-
interval: typebox144.TOptional<typebox144.TAny>;
|
|
218
|
-
lock: typebox144.TOptional<typebox144.TBoolean>;
|
|
219
|
-
}>;
|
|
220
|
-
type DevSchedulerMetadata = Static<typeof devSchedulerMetadataSchema>;
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region src/schemas/DevTopicMetadata.d.ts
|
|
223
|
-
declare const devTopicMetadataSchema: typebox144.TObject<{
|
|
224
|
-
name: typebox144.TString;
|
|
225
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
226
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
227
|
-
provider: typebox144.TString;
|
|
228
|
-
}>;
|
|
229
|
-
type DevTopicMetadata = Static<typeof devTopicMetadataSchema>;
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/DevCollectorProvider.d.ts
|
|
232
|
-
declare class DevCollectorProvider {
|
|
233
|
-
protected readonly alepha: Alepha;
|
|
234
|
-
protected readonly logs: DevLogEntry[];
|
|
235
|
-
protected readonly maxLogs = 10000;
|
|
236
|
-
protected readonly onLog: _alepha_core1.HookDescriptor<"log">;
|
|
237
|
-
protected readonly uiRoute: _alepha_server0.RouteDescriptor<{
|
|
238
|
-
response: typebox144.TString;
|
|
239
|
-
}>;
|
|
240
|
-
protected readonly metadataRoute: _alepha_server0.RouteDescriptor<{
|
|
241
|
-
response: typebox144.TObject<{
|
|
242
|
-
actions: typebox144.TArray<typebox144.TObject<{
|
|
243
|
-
name: typebox144.TString;
|
|
244
|
-
group: typebox144.TString;
|
|
245
|
-
method: typebox144.TString;
|
|
246
|
-
path: typebox144.TString;
|
|
247
|
-
prefix: typebox144.TString;
|
|
248
|
-
fullPath: typebox144.TString;
|
|
249
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
250
|
-
summary: typebox144.TOptional<typebox144.TString>;
|
|
251
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
252
|
-
secure: typebox144.TOptional<typebox144.TBoolean>;
|
|
253
|
-
hide: typebox144.TOptional<typebox144.TBoolean>;
|
|
254
|
-
body: typebox144.TOptional<typebox144.TAny>;
|
|
255
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
256
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
257
|
-
response: typebox144.TOptional<typebox144.TAny>;
|
|
258
|
-
bodyContentType: typebox144.TOptional<typebox144.TString>;
|
|
259
|
-
}>>;
|
|
260
|
-
queues: typebox144.TArray<typebox144.TObject<{
|
|
261
|
-
name: typebox144.TString;
|
|
262
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
263
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
264
|
-
provider: typebox144.TString;
|
|
265
|
-
}>>;
|
|
266
|
-
schedulers: typebox144.TArray<typebox144.TObject<{
|
|
267
|
-
name: typebox144.TString;
|
|
268
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
269
|
-
cron: typebox144.TOptional<typebox144.TString>;
|
|
270
|
-
interval: typebox144.TOptional<typebox144.TAny>;
|
|
271
|
-
lock: typebox144.TOptional<typebox144.TBoolean>;
|
|
272
|
-
}>>;
|
|
273
|
-
topics: typebox144.TArray<typebox144.TObject<{
|
|
274
|
-
name: typebox144.TString;
|
|
275
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
276
|
-
schema: typebox144.TOptional<typebox144.TAny>;
|
|
277
|
-
provider: typebox144.TString;
|
|
278
|
-
}>>;
|
|
279
|
-
buckets: typebox144.TArray<typebox144.TObject<{
|
|
280
|
-
name: typebox144.TString;
|
|
281
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
282
|
-
mimeTypes: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
283
|
-
maxSize: typebox144.TOptional<typebox144.TNumber>;
|
|
284
|
-
provider: typebox144.TString;
|
|
285
|
-
}>>;
|
|
286
|
-
realms: typebox144.TArray<typebox144.TObject<{
|
|
287
|
-
name: typebox144.TString;
|
|
288
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
289
|
-
roles: typebox144.TOptional<typebox144.TArray<typebox144.TAny>>;
|
|
290
|
-
type: typebox144.TUnsafe<"internal" | "external">;
|
|
291
|
-
settings: typebox144.TOptional<typebox144.TObject<{
|
|
292
|
-
accessTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
293
|
-
refreshTokenExpiration: typebox144.TOptional<typebox144.TAny>;
|
|
294
|
-
hasOnCreateSession: typebox144.TBoolean;
|
|
295
|
-
hasOnRefreshSession: typebox144.TBoolean;
|
|
296
|
-
hasOnDeleteSession: typebox144.TBoolean;
|
|
297
|
-
}>>;
|
|
298
|
-
}>>;
|
|
299
|
-
caches: typebox144.TArray<typebox144.TObject<{
|
|
300
|
-
name: typebox144.TString;
|
|
301
|
-
ttl: typebox144.TOptional<typebox144.TAny>;
|
|
302
|
-
disabled: typebox144.TOptional<typebox144.TBoolean>;
|
|
303
|
-
provider: typebox144.TString;
|
|
304
|
-
}>>;
|
|
305
|
-
pages: typebox144.TArray<typebox144.TObject<{
|
|
306
|
-
name: typebox144.TString;
|
|
307
|
-
description: typebox144.TOptional<typebox144.TString>;
|
|
308
|
-
path: typebox144.TOptional<typebox144.TString>;
|
|
309
|
-
params: typebox144.TOptional<typebox144.TAny>;
|
|
310
|
-
query: typebox144.TOptional<typebox144.TAny>;
|
|
311
|
-
hasComponent: typebox144.TBoolean;
|
|
312
|
-
hasLazy: typebox144.TBoolean;
|
|
313
|
-
hasResolve: typebox144.TBoolean;
|
|
314
|
-
hasChildren: typebox144.TBoolean;
|
|
315
|
-
hasParent: typebox144.TBoolean;
|
|
316
|
-
hasErrorHandler: typebox144.TBoolean;
|
|
317
|
-
static: typebox144.TOptional<typebox144.TBoolean>;
|
|
318
|
-
cache: typebox144.TOptional<typebox144.TAny>;
|
|
319
|
-
client: typebox144.TOptional<typebox144.TAny>;
|
|
320
|
-
animation: typebox144.TOptional<typebox144.TAny>;
|
|
321
|
-
}>>;
|
|
322
|
-
providers: typebox144.TArray<typebox144.TObject<{
|
|
323
|
-
name: typebox144.TString;
|
|
324
|
-
module: typebox144.TOptional<typebox144.TString>;
|
|
325
|
-
dependencies: typebox144.TArray<typebox144.TString>;
|
|
326
|
-
aliases: typebox144.TOptional<typebox144.TArray<typebox144.TString>>;
|
|
327
|
-
}>>;
|
|
328
|
-
modules: typebox144.TArray<typebox144.TObject<{
|
|
329
|
-
name: typebox144.TString;
|
|
330
|
-
providers: typebox144.TArray<typebox144.TString>;
|
|
331
|
-
}>>;
|
|
332
|
-
}>;
|
|
333
|
-
}>;
|
|
334
|
-
protected readonly logsRoute: _alepha_server0.RouteDescriptor<{
|
|
335
|
-
response: typebox144.TArray<typebox144.TObject<{
|
|
336
|
-
formatted: typebox144.TString;
|
|
337
|
-
entry: typebox144.TAny;
|
|
338
|
-
}>>;
|
|
339
|
-
}>;
|
|
340
|
-
getLogs(): DevLogEntry[];
|
|
341
|
-
getActions(): DevActionMetadata[];
|
|
342
|
-
getQueues(): DevQueueMetadata[];
|
|
343
|
-
getSchedulers(): DevSchedulerMetadata[];
|
|
344
|
-
getTopics(): DevTopicMetadata[];
|
|
345
|
-
getBuckets(): DevBucketMetadata[];
|
|
346
|
-
getRealms(): DevRealmMetadata[];
|
|
347
|
-
getCaches(): DevCacheMetadata[];
|
|
348
|
-
getPages(): DevPageMetadata[];
|
|
349
|
-
getProviders(): DevProviderMetadata[];
|
|
350
|
-
getModules(): DevModuleMetadata[];
|
|
351
|
-
getMetadata(): DevMetadata;
|
|
352
|
-
protected getProviderName(provider?: "memory" | any): string;
|
|
353
|
-
}
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region src/index.d.ts
|
|
356
|
-
/**
|
|
357
|
-
* Developer tools module for monitoring and debugging Alepha applications.
|
|
358
|
-
*
|
|
359
|
-
* This module provides comprehensive data collection capabilities for tracking application behavior,
|
|
360
|
-
* performance metrics, and debugging information in real-time.
|
|
361
|
-
*
|
|
362
|
-
* @see {@link DevCollectorProvider}
|
|
363
|
-
* @module alepha.devtools
|
|
364
|
-
*/
|
|
365
|
-
declare const AlephaDevtools: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
366
|
-
//#endregion
|
|
367
|
-
export { AlephaDevtools, DevActionMetadata, DevBucketMetadata, DevCacheMetadata, DevCollectorProvider, DevLogEntry, DevMetadata, DevModuleMetadata, DevPageMetadata, DevProviderMetadata, DevQueueMetadata, DevRealmMetadata, DevSchedulerMetadata, DevTopicMetadata, devActionMetadataSchema, devBucketMetadataSchema, devCacheMetadataSchema, devLogEntrySchema, devMetadataSchema, devModuleMetadataSchema, devPageMetadataSchema, devProviderMetadataSchema, devQueueMetadataSchema, devRealmMetadataSchema, devSchedulerMetadataSchema, devTopicMetadataSchema };
|
|
368
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/schemas/DevActionMetadata.ts","../src/schemas/DevBucketMetadata.ts","../src/schemas/DevCacheMetadata.ts","../src/schemas/DevLogEntry.ts","../src/schemas/DevMetadata.ts","../src/schemas/DevModuleMetadata.ts","../src/schemas/DevPageMetadata.ts","../src/schemas/DevProviderMetadata.ts","../src/schemas/DevQueueMetadata.ts","../src/schemas/DevRealmMetadata.ts","../src/schemas/DevSchedulerMetadata.ts","../src/schemas/DevTopicMetadata.ts","../src/DevCollectorProvider.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;cAEa,oCAAuB;QAiBlC,UAAA,CAAA;;;;;EAjBW,QAAA,oBAiBX;EAAA,WAAA,sBAAA,oBAAA;;;;;;;;;;;KAEU,iBAAA,GAAoB,cAAc;;;cCnBjC,oCAAuB;QAMlC,UAAA,CAAA;;;;;ADNF,CAAA,CAAA;AAiBE,KCTU,iBAAA,GAAoB,MDS9B,CAAA,OCT4C,uBDS5C,CAAA;;;cEjBW,mCAAsB;QAKjC,UAAA,CAAA;;;;;AFLW,KEOD,gBAAA,GAAmB,MFU7B,CAAA,OEV2C,sBFU3C,CAAA;;;cGhBW,8BAAiB;aAG5B,UAAA,CAAA;;;KAEU,WAAA,GAAc,cAAc;EHN3B,KAAA,EGOJ,QHPI;CAiBX;;;cIPW,8BAAiB;;UAY5B,UAAA,CAAA;;;;IJtBW,MAAA,oBAiBX;IAAA,QAAA,oBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;QAjBkC,oBAAA;IAAA,WAAA,sBAAA,oBAAA;IAmBxB,MAAA,sBAAkC,iBAAR;;;;ICnBzB,IAAA,oBAMX;IAAA,WAAA,sBAAA,oBAAA;;;;;;;;;QANkC,oBAAA,CAAA,UAAA,GAAA,UAAA,CAAA;IAAA,QAAA,sBAAA,mBAAA,CAAA;MAQxB,qBAAiB,sBAAG,iBAAM;;;;MCRzB,kBAKX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