@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/ts_web/readme.md CHANGED
@@ -1,76 +1,56 @@
1
1
  # @serve.zone/dcrouter-web
2
2
 
3
- Browser UI package for dcrouter's operations dashboard. 🖥️
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 Is In Here
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
- - overview and configuration
25
- - network activity and route management
26
- - source profiles, target profiles, and network targets
27
- - email activity and email domains
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
- ## Route Management UX
16
+ ## View Map
33
17
 
34
- The web UI reflects dcrouter's current route ownership model:
35
-
36
- - system routes are shown separately from user routes
37
- - system routes are visible and toggleable
38
- - system routes are not directly editable or deletable
39
- - API routes are fully managed through the route-management forms
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
- The frontend uses TypedRequest and shared interfaces from `@serve.zone/dcrouter-interfaces`.
44
-
45
- State actions in `appstate.ts` fetch and mutate:
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
- The browser bundle is built from this package and served by the main dcrouter package.
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 bundle
40
+ pnpm run build
61
41
  pnpm run watch
62
42
  ```
63
43
 
64
- The generated bundle is written into `dist_serve/` by the main build pipeline.
44
+ The built dashboard assets are emitted into `dist_serve/` by the workspace build pipeline.
65
45
 
66
- ## When To Use This Package
46
+ ## What This Package Is For
67
47
 
68
- - Use it if you want the dashboard frontend as a package/module boundary.
69
- - Use the main `@serve.zone/dcrouter` package if you want the server that actually serves this UI.
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 [license](../license) file.
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