create-rezi 0.1.0-alpha.2 → 0.1.0-alpha.21
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 +30 -10
- package/dist/index.js +31 -16
- package/dist/index.js.map +1 -1
- package/dist/scaffold.d.ts +2 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +35 -36
- package/dist/scaffold.js.map +1 -1
- package/package.json +7 -4
- package/templates/cli-tool/README.md +42 -0
- package/templates/{file-browser → cli-tool}/package.json +3 -2
- package/templates/cli-tool/src/main.ts +1037 -0
- package/templates/dashboard/README.md +30 -7
- package/templates/dashboard/package.json +3 -2
- package/templates/dashboard/src/main.ts +1675 -198
- package/templates/stress-test/README.md +81 -0
- package/templates/{streaming-viewer → stress-test}/package.json +3 -2
- package/templates/stress-test/src/main.ts +1615 -0
- package/dist/__tests__/scaffold.test.d.ts +0 -2
- package/dist/__tests__/scaffold.test.d.ts.map +0 -1
- package/dist/__tests__/scaffold.test.js +0 -29
- package/dist/__tests__/scaffold.test.js.map +0 -1
- package/templates/file-browser/README.md +0 -18
- package/templates/file-browser/src/main.ts +0 -258
- package/templates/form-app/README.md +0 -18
- package/templates/form-app/package.json +0 -23
- package/templates/form-app/src/main.ts +0 -222
- package/templates/streaming-viewer/README.md +0 -17
- package/templates/streaming-viewer/src/main.ts +0 -176
- package/templates/streaming-viewer/tsconfig.json +0 -14
- /package/templates/{file-browser → cli-tool}/tsconfig.json +0 -0
- /package/templates/{form-app → stress-test}/tsconfig.json +0 -0
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
# __APP_NAME__
|
|
2
2
|
|
|
3
|
-
Scaffolded with `
|
|
3
|
+
Scaffolded with `create-rezi` using the **__TEMPLATE_LABEL__** template.
|
|
4
4
|
|
|
5
5
|
## Quickstart
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# npm
|
|
8
9
|
npm install
|
|
9
|
-
npm start
|
|
10
|
+
npm run start
|
|
11
|
+
|
|
12
|
+
# bun
|
|
13
|
+
bun install
|
|
14
|
+
bun run start
|
|
10
15
|
```
|
|
11
16
|
|
|
12
|
-
##
|
|
17
|
+
## Controls
|
|
13
18
|
|
|
14
|
-
- `up` / `down` or `j` / `k`: Move selection
|
|
15
|
-
- `f`: Cycle filter
|
|
16
|
-
- `
|
|
17
|
-
-
|
|
19
|
+
- `up` / `down` or `j` / `k`: Move service selection
|
|
20
|
+
- `f`: Cycle health filter (`all`, `warning`, `down`, `healthy`)
|
|
21
|
+
- `s`: Cycle sort field (`service`, `latency`, `errors`, `traffic`)
|
|
22
|
+
- `o`: Toggle sort direction
|
|
23
|
+
- `t`: Cycle theme preset
|
|
24
|
+
- `p` or `space`: Pause/resume live updates
|
|
25
|
+
- `enter`: Pin/unpin selected service
|
|
26
|
+
- `c`: Clear active events feed
|
|
27
|
+
- `d`: Toggle debug counters panel
|
|
28
|
+
- `h`: Open command help modal
|
|
18
29
|
- `q`: Quit
|
|
30
|
+
|
|
31
|
+
## What This Template Demonstrates
|
|
32
|
+
|
|
33
|
+
- A production-style EdgeOps control-plane dashboard with deterministic live telemetry.
|
|
34
|
+
- Stable table + inspector + active events workflow using high-level Rezi widgets only.
|
|
35
|
+
- Escalation-oriented UX: critical banner, service inspector guidance, and runbook panel.
|
|
36
|
+
|
|
37
|
+
## Key Code Patterns
|
|
38
|
+
|
|
39
|
+
- Bounded live update loop and lifecycle cleanup in `src/main.ts` (`simulateTick`, interval setup/teardown).
|
|
40
|
+
- Stable diffing patterns in `src/main.ts` (`ui.table` + `getRowKey` + immutable service updates + fixed-width labels).
|
|
41
|
+
- Interaction and command model in `src/main.ts` (`app.keys`, selection/filter/sort helpers, modal help).
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "tsx src/main.ts",
|
|
8
8
|
"dev": "tsx watch src/main.ts",
|
|
9
|
+
"build": "tsc --pretty false",
|
|
9
10
|
"typecheck": "tsc --noEmit"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
|
-
"@rezi-ui/core": "^0.1.0-alpha.
|
|
13
|
-
"@rezi-ui/node": "^0.1.0-alpha.
|
|
13
|
+
"@rezi-ui/core": "^0.1.0-alpha.11",
|
|
14
|
+
"@rezi-ui/node": "^0.1.0-alpha.11"
|
|
14
15
|
},
|
|
15
16
|
"devDependencies": {
|
|
16
17
|
"@types/node": "^22.13.1",
|