@alepha/devtools 0.11.11 → 0.12.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/README.md +0 -11
- package/dist/index.cjs +145 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +165 -165
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +165 -165
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +46 -69
- package/src/DevToolsProvider.ts +6 -6
- package/src/entities/logs.ts +2 -2
- package/src/index.ts +1 -1
- package/src/providers/DevToolsDatabaseProvider.ts +1 -1
- package/src/providers/DevToolsMetadataProvider.ts +9 -9
- package/src/repositories/LogRepository.ts +1 -1
- package/src/schemas/DevActionMetadata.ts +1 -1
- package/src/schemas/DevBucketMetadata.ts +1 -1
- package/src/schemas/DevCacheMetadata.ts +1 -1
- package/src/schemas/DevMetadata.ts +1 -1
- package/src/schemas/DevModuleMetadata.ts +1 -1
- package/src/schemas/DevPageMetadata.ts +1 -1
- package/src/schemas/DevProviderMetadata.ts +1 -1
- package/src/schemas/DevQueueMetadata.ts +1 -1
- package/src/schemas/DevRealmMetadata.ts +1 -1
- package/src/schemas/DevSchedulerMetadata.ts +1 -1
- package/src/schemas/DevTopicMetadata.ts +1 -1
- package/src/ui/components/DevLogViewer.tsx +5 -5
- package/src/ui/main.ts +1 -1
package/package.json
CHANGED
|
@@ -1,71 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"ui:dev": "alepha dev",
|
|
50
|
-
"ui:build": "alepha build && rm -r assets/devtools && cp -r dist/public assets/devtools"
|
|
51
|
-
},
|
|
52
|
-
"homepage": "https://github.com/feunard/alepha",
|
|
53
|
-
"repository": {
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "git+https://github.com/feunard/alepha.git"
|
|
56
|
-
},
|
|
57
|
-
"keywords": [
|
|
58
|
-
"alepha",
|
|
59
|
-
"devtools",
|
|
60
|
-
"monitoring",
|
|
61
|
-
"debugging"
|
|
62
|
-
],
|
|
63
|
-
"module": "./dist/index.js",
|
|
64
|
-
"exports": {
|
|
65
|
-
".": {
|
|
66
|
-
"types": "./dist/index.d.ts",
|
|
67
|
-
"import": "./dist/index.js",
|
|
68
|
-
"require": "./dist/index.cjs"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
2
|
+
"name": "@alepha/devtools",
|
|
3
|
+
"description": "Developer tools for monitoring and debugging Alepha applications.",
|
|
4
|
+
"version": "0.12.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22.0.0"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"src"
|
|
15
|
+
],
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@alepha/react": "0.12.0",
|
|
18
|
+
"@alepha/ui": "0.12.0",
|
|
19
|
+
"@tabler/icons-react": "^3.35.0",
|
|
20
|
+
"alepha": "0.12.0",
|
|
21
|
+
"react": "^19.2.0",
|
|
22
|
+
"tsdown": "^0.16.4",
|
|
23
|
+
"vitest": "^4.0.9"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"alepha": "0.12.0"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"lint": "alepha lint",
|
|
30
|
+
"typecheck": "alepha typecheck",
|
|
31
|
+
"test": "alepha test",
|
|
32
|
+
"build": "yarn ui:build && tsdown -c=../../tsdown.config.ts",
|
|
33
|
+
"ui:dev": "alepha dev",
|
|
34
|
+
"ui:build": "alepha build && rm -rf assets/devtools && mkdir -p assets && cp -r dist/public assets/devtools"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/feunard/alepha",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/feunard/alepha.git"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"alepha",
|
|
43
|
+
"devtools",
|
|
44
|
+
"monitoring",
|
|
45
|
+
"debugging"
|
|
46
|
+
],
|
|
47
|
+
"module": "./dist/index.js"
|
|
71
48
|
}
|
package/src/DevToolsProvider.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
import { $
|
|
4
|
-
import { $
|
|
3
|
+
import { $hook, $inject, Alepha, pageQuerySchema, t } from "alepha";
|
|
4
|
+
import { $batch } from "alepha/batch";
|
|
5
5
|
import {
|
|
6
6
|
$logger,
|
|
7
7
|
JsonFormatterProvider,
|
|
8
8
|
type LogEntry,
|
|
9
9
|
logEntrySchema,
|
|
10
|
-
} from "
|
|
11
|
-
import { parseQueryString } from "
|
|
12
|
-
import { $route, ServerProvider } from "
|
|
13
|
-
import { $serve } from "
|
|
10
|
+
} from "alepha/logger";
|
|
11
|
+
import { parseQueryString } from "alepha/orm";
|
|
12
|
+
import { $route, ServerProvider } from "alepha/server";
|
|
13
|
+
import { $serve } from "alepha/server/static";
|
|
14
14
|
import { type DevLogEntry, logs } from "./entities/logs.ts";
|
|
15
15
|
import { DevToolsMetadataProvider } from "./providers/DevToolsMetadataProvider.ts";
|
|
16
16
|
import { LogRepository } from "./repositories/LogRepository.ts";
|
package/src/entities/logs.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $module } from "
|
|
1
|
+
import { $module } from "alepha";
|
|
2
2
|
import { DevToolsProvider } from "./DevToolsProvider.ts";
|
|
3
3
|
import { DevToolsDatabaseProvider } from "./providers/DevToolsDatabaseProvider.ts";
|
|
4
4
|
import { DevToolsMetadataProvider } from "./providers/DevToolsMetadataProvider.ts";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { $
|
|
3
|
-
import { $
|
|
4
|
-
import { $logger } from "
|
|
5
|
-
import { $queue } from "
|
|
6
|
-
import { $scheduler } from "
|
|
7
|
-
import { $realm } from "
|
|
8
|
-
import { $action } from "
|
|
9
|
-
import { $topic } from "
|
|
1
|
+
import { $inject, Alepha } from "alepha";
|
|
2
|
+
import { $bucket } from "alepha/bucket";
|
|
3
|
+
import { $cache } from "alepha/cache";
|
|
4
|
+
import { $logger } from "alepha/logger";
|
|
5
|
+
import { $queue } from "alepha/queue";
|
|
6
|
+
import { $scheduler } from "alepha/scheduler";
|
|
7
|
+
import { $realm } from "alepha/security";
|
|
8
|
+
import { $action } from "alepha/server";
|
|
9
|
+
import { $topic } from "alepha/topic";
|
|
10
10
|
import type { DevActionMetadata } from "../schemas/DevActionMetadata.ts";
|
|
11
11
|
import type { DevBucketMetadata } from "../schemas/DevBucketMetadata.ts";
|
|
12
12
|
import type { DevCacheMetadata } from "../schemas/DevCacheMetadata.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Static, t } from "
|
|
1
|
+
import { type Static, t } from "alepha";
|
|
2
2
|
import { devActionMetadataSchema } from "./DevActionMetadata.ts";
|
|
3
3
|
import { devBucketMetadataSchema } from "./DevBucketMetadata.ts";
|
|
4
4
|
import { devCacheMetadataSchema } from "./DevCacheMetadata.ts";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type Page, t } from "@alepha/core";
|
|
2
|
-
import { dayjs } from "@alepha/datetime";
|
|
3
|
-
import { type LogEntry, logEntrySchema } from "@alepha/logger";
|
|
4
1
|
import { useInject } from "@alepha/react";
|
|
5
|
-
import { useI18n } from "@alepha/react
|
|
6
|
-
import { HttpClient } from "@alepha/server";
|
|
2
|
+
import { useI18n } from "@alepha/react/i18n";
|
|
7
3
|
import { ActionButton, DataTable, DialogService, Flex, Text } from "@alepha/ui";
|
|
4
|
+
import { type Page, t } from "alepha";
|
|
5
|
+
import { dayjs } from "alepha/datetime";
|
|
6
|
+
import { type LogEntry, logEntrySchema } from "alepha/logger";
|
|
7
|
+
import { HttpClient } from "alepha/server";
|
|
8
8
|
import { logs } from "../../entities/logs.ts";
|
|
9
9
|
|
|
10
10
|
const DevLogViewer = () => {
|
package/src/ui/main.ts
CHANGED