fix(docs): refresh package readmes with clearer runtime, API client, interfaces, migrations, and dashboard guidance
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/dcrouter',
|
||||
version: '13.20.0',
|
||||
version: '13.20.1',
|
||||
description: 'A multifaceted routing service handling mail and SMS delivery functions.'
|
||||
}
|
||||
|
||||
@@ -1,76 +1,56 @@
|
||||
# @serve.zone/dcrouter-web
|
||||
|
||||
Browser UI package for dcrouter's operations dashboard. 🖥️
|
||||
|
||||
This package contains the browser entrypoint, app state, router, and web components that power the Ops dashboard served by dcrouter.
|
||||
Browser-side frontend for the dcrouter Ops dashboard. This folder is the SPA entrypoint, router, app state, and web-component UI rendered by OpsServer.
|
||||
|
||||
## Issue Reporting and Security
|
||||
|
||||
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.
|
||||
|
||||
## What Is In Here
|
||||
## What It Boots
|
||||
|
||||
| Path | Purpose |
|
||||
- `index.ts` initializes the app router and renders `<ops-dashboard>` into `document.body`
|
||||
- `router.ts` defines top-level dashboard routes and subviews
|
||||
- `appstate.ts` holds reactive state, TypedRequest actions, and TypedSocket log streaming
|
||||
- `elements/` contains the dashboard shell and feature views
|
||||
|
||||
## View Map
|
||||
|
||||
| Top-level view | Subviews |
|
||||
| --- | --- |
|
||||
| `index.ts` | Browser entrypoint that initializes routing and renders `<ops-dashboard>` |
|
||||
| `appstate.ts` | Central reactive state and action definitions |
|
||||
| `router.ts` | URL-based dashboard routing |
|
||||
| `elements/` | Dashboard views and reusable UI pieces |
|
||||
|
||||
## Main Views
|
||||
|
||||
The dashboard currently includes views for:
|
||||
|
||||
- overview and configuration
|
||||
- network activity and route management
|
||||
- source profiles, target profiles, and network targets
|
||||
- email activity and email domains
|
||||
- DNS providers, domains, DNS records, and certificates
|
||||
- API tokens and users
|
||||
- VPN, remote ingress, logs, and security views
|
||||
|
||||
## Route Management UX
|
||||
|
||||
The web UI reflects dcrouter's current route ownership model:
|
||||
|
||||
- system routes are shown separately from user routes
|
||||
- system routes are visible and toggleable
|
||||
- system routes are not directly editable or deletable
|
||||
- API routes are fully managed through the route-management forms
|
||||
| `overview` | `stats`, `configuration` |
|
||||
| `network` | `activity`, `routes`, `sourceprofiles`, `networktargets`, `targetprofiles`, `remoteingress`, `vpn` |
|
||||
| `email` | `log`, `security`, `domains` |
|
||||
| `access` | `apitokens`, `users` |
|
||||
| `security` | `overview`, `blocked`, `authentication` |
|
||||
| `domains` | `providers`, `domains`, `dns`, `certificates` |
|
||||
| `logs` | flat view |
|
||||
|
||||
## How It Talks To dcrouter
|
||||
|
||||
The frontend uses TypedRequest and shared interfaces from `@serve.zone/dcrouter-interfaces`.
|
||||
|
||||
State actions in `appstate.ts` fetch and mutate:
|
||||
|
||||
- stats and health
|
||||
- logs
|
||||
- routes and tokens
|
||||
- certificates and ACME config
|
||||
- DNS providers, domains, and records
|
||||
- email domains and email operations
|
||||
- VPN, remote ingress, and RADIUS data
|
||||
- TypedRequest for the main API surface
|
||||
- shared request and data contracts from `@serve.zone/dcrouter-interfaces`
|
||||
- TypedSocket for real-time log streaming
|
||||
- QR code generation for VPN client UX
|
||||
|
||||
## Development Notes
|
||||
|
||||
The browser bundle is built from this package and served by the main dcrouter package.
|
||||
This package is the frontend module boundary, but it is built and served as part of the main workspace.
|
||||
|
||||
```bash
|
||||
pnpm run bundle
|
||||
pnpm run build
|
||||
pnpm run watch
|
||||
```
|
||||
|
||||
The generated bundle is written into `dist_serve/` by the main build pipeline.
|
||||
The built dashboard assets are emitted into `dist_serve/` by the workspace build pipeline.
|
||||
|
||||
## When To Use This Package
|
||||
## What This Package Is For
|
||||
|
||||
- Use it if you want the dashboard frontend as a package/module boundary.
|
||||
- Use the main `@serve.zone/dcrouter` package if you want the server that actually serves this UI.
|
||||
- Use it when you want the dashboard frontend as its own published module boundary.
|
||||
- Use `@serve.zone/dcrouter` when you want the server that actually hosts this UI and the backend API.
|
||||
|
||||
## License and Legal Information
|
||||
|
||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [license](../license) file.
|
||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](../license) file.
|
||||
|
||||
**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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user