@serve.zone/dcrouter 13.20.0 → 13.20.2
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_serve/bundle.js +506 -506
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.dcrouter.d.ts +5 -0
- package/dist_ts/classes.dcrouter.js +34 -10
- package/dist_ts/config/classes.route-config-manager.d.ts +1 -0
- package/dist_ts/config/classes.route-config-manager.js +4 -1
- package/dist_ts/vpn/classes.vpn-manager.d.ts +5 -1
- package/dist_ts/vpn/classes.vpn-manager.js +55 -17
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/network/ops-view-vpn.d.ts +3 -0
- package/dist_ts_web/elements/network/ops-view-vpn.js +44 -16
- package/package.json +1 -1
- package/readme.md +123 -155
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.dcrouter.ts +51 -14
- package/ts/config/classes.route-config-manager.ts +6 -0
- package/ts/readme.md +46 -103
- package/ts/vpn/classes.vpn-manager.ts +66 -15
- package/ts_apiclient/readme.md +57 -59
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/network/ops-view-vpn.ts +50 -14
- package/ts_web/readme.md +27 -47
package/ts_web/readme.md
CHANGED
|
@@ -1,76 +1,56 @@
|
|
|
1
1
|
# @serve.zone/dcrouter-web
|
|
2
2
|
|
|
3
|
-
Browser
|
|
4
|
-
|
|
5
|
-
This package contains the browser entrypoint, app state, router, and web components that power the Ops dashboard served by dcrouter.
|
|
3
|
+
Browser-side frontend for the dcrouter Ops dashboard. This folder is the SPA entrypoint, router, app state, and web-component UI rendered by OpsServer.
|
|
6
4
|
|
|
7
5
|
## Issue Reporting and Security
|
|
8
6
|
|
|
9
7
|
For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly.
|
|
10
8
|
|
|
11
|
-
## What
|
|
12
|
-
|
|
13
|
-
| Path | Purpose |
|
|
14
|
-
| --- | --- |
|
|
15
|
-
| `index.ts` | Browser entrypoint that initializes routing and renders `<ops-dashboard>` |
|
|
16
|
-
| `appstate.ts` | Central reactive state and action definitions |
|
|
17
|
-
| `router.ts` | URL-based dashboard routing |
|
|
18
|
-
| `elements/` | Dashboard views and reusable UI pieces |
|
|
19
|
-
|
|
20
|
-
## Main Views
|
|
21
|
-
|
|
22
|
-
The dashboard currently includes views for:
|
|
9
|
+
## What It Boots
|
|
23
10
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
- DNS providers, domains, DNS records, and certificates
|
|
29
|
-
- API tokens and users
|
|
30
|
-
- VPN, remote ingress, logs, and security views
|
|
11
|
+
- `index.ts` initializes the app router and renders `<ops-dashboard>` into `document.body`
|
|
12
|
+
- `router.ts` defines top-level dashboard routes and subviews
|
|
13
|
+
- `appstate.ts` holds reactive state, TypedRequest actions, and TypedSocket log streaming
|
|
14
|
+
- `elements/` contains the dashboard shell and feature views
|
|
31
15
|
|
|
32
|
-
##
|
|
16
|
+
## View Map
|
|
33
17
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
18
|
+
| Top-level view | Subviews |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| `overview` | `stats`, `configuration` |
|
|
21
|
+
| `network` | `activity`, `routes`, `sourceprofiles`, `networktargets`, `targetprofiles`, `remoteingress`, `vpn` |
|
|
22
|
+
| `email` | `log`, `security`, `domains` |
|
|
23
|
+
| `access` | `apitokens`, `users` |
|
|
24
|
+
| `security` | `overview`, `blocked`, `authentication` |
|
|
25
|
+
| `domains` | `providers`, `domains`, `dns`, `certificates` |
|
|
26
|
+
| `logs` | flat view |
|
|
40
27
|
|
|
41
28
|
## How It Talks To dcrouter
|
|
42
29
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- stats and health
|
|
48
|
-
- logs
|
|
49
|
-
- routes and tokens
|
|
50
|
-
- certificates and ACME config
|
|
51
|
-
- DNS providers, domains, and records
|
|
52
|
-
- email domains and email operations
|
|
53
|
-
- VPN, remote ingress, and RADIUS data
|
|
30
|
+
- TypedRequest for the main API surface
|
|
31
|
+
- shared request and data contracts from `@serve.zone/dcrouter-interfaces`
|
|
32
|
+
- TypedSocket for real-time log streaming
|
|
33
|
+
- QR code generation for VPN client UX
|
|
54
34
|
|
|
55
35
|
## Development Notes
|
|
56
36
|
|
|
57
|
-
|
|
37
|
+
This package is the frontend module boundary, but it is built and served as part of the main workspace.
|
|
58
38
|
|
|
59
39
|
```bash
|
|
60
|
-
pnpm run
|
|
40
|
+
pnpm run build
|
|
61
41
|
pnpm run watch
|
|
62
42
|
```
|
|
63
43
|
|
|
64
|
-
The
|
|
44
|
+
The built dashboard assets are emitted into `dist_serve/` by the workspace build pipeline.
|
|
65
45
|
|
|
66
|
-
##
|
|
46
|
+
## What This Package Is For
|
|
67
47
|
|
|
68
|
-
- Use it
|
|
69
|
-
- Use
|
|
48
|
+
- Use it when you want the dashboard frontend as its own published module boundary.
|
|
49
|
+
- Use `@serve.zone/dcrouter` when you want the server that actually hosts this UI and the backend API.
|
|
70
50
|
|
|
71
51
|
## License and Legal Information
|
|
72
52
|
|
|
73
|
-
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [
|
|
53
|
+
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](../license) file.
|
|
74
54
|
|
|
75
55
|
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
|
76
56
|
|