@philomelcc/dsh-workbench 0.0.0-stage → 0.1.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 +25 -2
- package/client.js +1316 -0
- package/cordis.patch.yml +3 -0
- package/icon.svg +6 -0
- package/index.js +41 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +39 -4
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @philomelcc/dsh-workbench
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The shell: a second top-bar row of workbench tabs, one page per module, plus the
|
|
4
|
+
small API modules register against.
|
|
5
|
+
|
|
6
|
+
This package does almost nothing on its own — install it together with at least
|
|
7
|
+
one module:
|
|
8
|
+
|
|
9
|
+
```powershell
|
|
10
|
+
dsh plugin --profile web add @philomelcc/dsh-workbench
|
|
11
|
+
dsh plugin --profile web add @philomelcc/dsh-status-monitor
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Contract: [`docs/SPEC.md`](../../docs/SPEC.md) · module template: [`template/`](../../template) ·
|
|
15
|
+
ready-made modules: [status monitor](../status-monitor), [download center](../download-center).
|
|
16
|
+
|
|
17
|
+
What the shell provides:
|
|
18
|
+
|
|
19
|
+
- `registerView({ id, title, icon, component, order, subtitle, badge, tab })` —
|
|
20
|
+
one tab, one full page;
|
|
21
|
+
- `components` (StatusDot, Card, SectionHeader, EmptyState, Spinner, Button, Field);
|
|
22
|
+
- `tokens` (theme colors that follow light/dark);
|
|
23
|
+
- `apiVersion` — `1` today;
|
|
24
|
+
- `refresh()` — repaint the tab row after a badge changed.
|
|
25
|
+
|
|
26
|
+
MIT.
|