@serve.zone/catalog 2.0.1 → 2.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/dist_ts_web/00_commitinfo_data.js +1 -1
- package/package.json +1 -1
- package/readme.md +230 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/catalog',
|
|
6
|
-
version: '2.0
|
|
6
|
+
version: '2.1.0',
|
|
7
7
|
description: 'UI component catalog for serve.zone'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUscUJBQXFCO0lBQzNCLE9BQU8sRUFBRSxPQUFPO0lBQ2hCLFdBQVcsRUFBRSxxQ0FBcUM7Q0FDbkQsQ0FBQSJ9
|
package/package.json
CHANGED
package/readme.md
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# @serve.zone/catalog
|
|
2
|
+
|
|
3
|
+
The complete UI component library for **serve.zone** — a full-featured admin and management interface for onebox server management, built as a collection of reusable web components.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install @serve.zone/catalog
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Issue Reporting and Security
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
## 🚀 What It Does
|
|
16
|
+
|
|
17
|
+
`@serve.zone/catalog` provides **30+ production-ready web components** covering every aspect of server management:
|
|
18
|
+
|
|
19
|
+
- 📊 **Dashboard** — Real-time cluster overview, resource usage, traffic metrics, quick actions
|
|
20
|
+
- 🐳 **Services** — Docker container management, deployment, logs, live stats, backups, and an integrated IDE workspace
|
|
21
|
+
- 🌐 **Network** — Reverse proxy configuration, DNS record management, domain & SSL certificate monitoring
|
|
22
|
+
- 📦 **Registries** — Container registry management (onebox + external registries like Docker Hub, GHCR, ECR)
|
|
23
|
+
- 🔑 **Auth** — Login view, API token management (global + CI tokens)
|
|
24
|
+
- ⚙️ **Settings** — Appearance, Cloudflare integration, SSL/TLS config, network settings, account management
|
|
25
|
+
- 🏗️ **Platform Services** — MongoDB, MinIO, ClickHouse, Redis, Caddy monitoring and control
|
|
26
|
+
|
|
27
|
+
Every component supports **light and dark themes** out of the box and communicates via standard `CustomEvent` dispatching.
|
|
28
|
+
|
|
29
|
+
## 📦 Usage
|
|
30
|
+
|
|
31
|
+
### Import
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// Import everything
|
|
35
|
+
import * as szCatalog from '@serve.zone/catalog';
|
|
36
|
+
|
|
37
|
+
// Or import specific components
|
|
38
|
+
import { SzDashboardView, SzLoginView, SzServiceDetailView } from '@serve.zone/catalog';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Components auto-register as custom elements when imported. Use them directly in your HTML:
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<sz-dashboard-view .data="${dashboardData}"></sz-dashboard-view>
|
|
45
|
+
<sz-login-view @login="${handleLogin}"></sz-login-view>
|
|
46
|
+
<sz-service-detail-view .service="${serviceData}" .logs="${logEntries}"></sz-service-detail-view>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Full Application Shell
|
|
50
|
+
|
|
51
|
+
For a complete app experience, use the demo app shell which wires up sidebar navigation, app bar menus, and all views via `dees-appui`:
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
import '@serve.zone/catalog';
|
|
55
|
+
// Then use <sz-demo-app-shell> for a fully configured application
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 🧩 Component Reference
|
|
59
|
+
|
|
60
|
+
### Dashboard
|
|
61
|
+
|
|
62
|
+
| Component | Tag | Description |
|
|
63
|
+
|-----------|-----|-------------|
|
|
64
|
+
| `SzDashboardView` | `<sz-dashboard-view>` | Main dashboard orchestrating all grid sections — cluster, services, network, infrastructure |
|
|
65
|
+
| `SzStatCard` | `<sz-stat-card>` | Single statistic card with label, value, icon, and color variant |
|
|
66
|
+
| `SzResourceUsageCard` | `<sz-resource-usage-card>` | CPU/memory progress bars, network I/O, top memory consumers |
|
|
67
|
+
| `SzTrafficCard` | `<sz-traffic-card>` | HTTP traffic metrics — requests, errors, response time, status distribution |
|
|
68
|
+
| `SzQuickActionsCard` | `<sz-quick-actions-card>` | Configurable action button grid |
|
|
69
|
+
|
|
70
|
+
### Dashboard Grids
|
|
71
|
+
|
|
72
|
+
| Component | Tag | Description |
|
|
73
|
+
|-----------|-----|-------------|
|
|
74
|
+
| `SzStatusGridCluster` | `<sz-status-grid-cluster>` | 4-column stat card grid — total/running/stopped services, Docker status |
|
|
75
|
+
| `SzStatusGridServices` | `<sz-status-grid-services>` | Resource usage + platform services side by side |
|
|
76
|
+
| `SzStatusGridNetwork` | `<sz-status-grid-network>` | Traffic, reverse proxy, and certificates in a responsive grid |
|
|
77
|
+
| `SzStatusGridInfra` | `<sz-status-grid-infra>` | DNS/SSL status + quick actions |
|
|
78
|
+
|
|
79
|
+
### Services
|
|
80
|
+
|
|
81
|
+
| Component | Tag | Description |
|
|
82
|
+
|-----------|-----|-------------|
|
|
83
|
+
| `SzServicesListView` | `<sz-services-list-view>` | Table of deployed services with status badges and action buttons |
|
|
84
|
+
| `SzServiceDetailView` | `<sz-service-detail-view>` | Full service detail page — info, logs, live stats, actions, backups, and integrated workspace/IDE mode |
|
|
85
|
+
| `SzServiceCreateView` | `<sz-service-create-view>` | Service deployment form — image, ports, env vars, volumes, resource limits |
|
|
86
|
+
| `SzServicesBackupsView` | `<sz-services-backups-view>` | Backup schedule and backup history management |
|
|
87
|
+
|
|
88
|
+
### Platform Services
|
|
89
|
+
|
|
90
|
+
| Component | Tag | Description |
|
|
91
|
+
|-----------|-----|-------------|
|
|
92
|
+
| `SzPlatformServicesCard` | `<sz-platform-services-card>` | Lists infrastructure services (MongoDB, MinIO, etc.) with status indicators |
|
|
93
|
+
| `SzPlatformServiceDetailView` | `<sz-platform-service-detail-view>` | Detailed platform service view — connection info, config, metrics, logs |
|
|
94
|
+
|
|
95
|
+
### Network
|
|
96
|
+
|
|
97
|
+
| Component | Tag | Description |
|
|
98
|
+
|-----------|-----|-------------|
|
|
99
|
+
| `SzNetworkProxyView` | `<sz-network-proxy-view>` | Reverse proxy management — traffic targets table and access log viewer |
|
|
100
|
+
| `SzNetworkDnsView` | `<sz-network-dns-view>` | DNS record management with Cloudflare sync |
|
|
101
|
+
| `SzNetworkDomainsView` | `<sz-network-domains-view>` | Domain list with certificate status and provider info |
|
|
102
|
+
| `SzDomainDetailView` | `<sz-domain-detail-view>` | Domain detail — SSL certificate info, proxy routes, DNS records |
|
|
103
|
+
| `SzReverseProxyCard` | `<sz-reverse-proxy-card>` | Compact proxy status card (HTTP/HTTPS ports, route count) |
|
|
104
|
+
| `SzDnsSslCard` | `<sz-dns-ssl-card>` | Cloudflare DNS and ACME config status |
|
|
105
|
+
| `SzCertificatesCard` | `<sz-certificates-card>` | Certificate status counts — valid, expiring, expired |
|
|
106
|
+
|
|
107
|
+
### Registries
|
|
108
|
+
|
|
109
|
+
| Component | Tag | Description |
|
|
110
|
+
|-----------|-----|-------------|
|
|
111
|
+
| `SzRegistryAdvertisement` | `<sz-registry-advertisement>` | Onebox registry info card with docker quick-start commands |
|
|
112
|
+
| `SzRegistryExternalView` | `<sz-registry-external-view>` | External registry management (Docker Hub, GHCR, GCR, ECR) |
|
|
113
|
+
|
|
114
|
+
### Auth & Settings
|
|
115
|
+
|
|
116
|
+
| Component | Tag | Description |
|
|
117
|
+
|-----------|-----|-------------|
|
|
118
|
+
| `SzLoginView` | `<sz-login-view>` | Login page with serve.zone branding, credentials form, error display |
|
|
119
|
+
| `SzTokensView` | `<sz-tokens-view>` | API token management — global and CI tokens with copy/regenerate/delete |
|
|
120
|
+
| `SzSettingsView` | `<sz-settings-view>` | Full settings panel — appearance, Cloudflare, SSL/TLS, network, account |
|
|
121
|
+
|
|
122
|
+
## 🏗️ Architecture
|
|
123
|
+
|
|
124
|
+
### Component Pattern
|
|
125
|
+
|
|
126
|
+
All components follow a consistent pattern:
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import { DeesElement, customElement, html, css, cssManager, property } from '@design.estate/dees-element';
|
|
130
|
+
|
|
131
|
+
@customElement('sz-my-component')
|
|
132
|
+
export class SzMyComponent extends DeesElement {
|
|
133
|
+
// TC39 standard decorators with accessor keyword
|
|
134
|
+
@property({ type: String })
|
|
135
|
+
public accessor label: string = '';
|
|
136
|
+
|
|
137
|
+
public static styles = [
|
|
138
|
+
cssManager.defaultStyles,
|
|
139
|
+
css`
|
|
140
|
+
/* Light/dark theme support */
|
|
141
|
+
:host { color: ${cssManager.bdTheme('#18181b', '#fafafa')}; }
|
|
142
|
+
`,
|
|
143
|
+
];
|
|
144
|
+
|
|
145
|
+
// Events via CustomEvent (bubbles + composed for shadow DOM)
|
|
146
|
+
private handleClick() {
|
|
147
|
+
this.dispatchEvent(new CustomEvent('action', {
|
|
148
|
+
detail: { id: this.id },
|
|
149
|
+
bubbles: true,
|
|
150
|
+
composed: true,
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Project Structure
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
@serve.zone/catalog/
|
|
160
|
+
├── html/ # WccTools dev server entry point
|
|
161
|
+
│ ├── index.html # HTML shell
|
|
162
|
+
│ └── index.ts # WccTools config (pages + elements sections)
|
|
163
|
+
├── ts_web/
|
|
164
|
+
│ ├── index.ts # Barrel export
|
|
165
|
+
│ ├── elements/ # All web components
|
|
166
|
+
│ │ ├── index.ts # Element barrel export
|
|
167
|
+
│ │ ├── sz-*.ts # Individual components
|
|
168
|
+
│ │ └── sz-demo-view-*.ts # Demo orchestration wrappers
|
|
169
|
+
│ └── pages/ # Page-level components
|
|
170
|
+
│ ├── sz-demo-app-shell.ts # Full app shell (dees-appui)
|
|
171
|
+
│ └── ...
|
|
172
|
+
└── dist_ts_web/ # Compiled output (npm entry point)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### TypeScript Interfaces
|
|
176
|
+
|
|
177
|
+
The library exports comprehensive TypeScript interfaces for all data structures:
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
// Dashboard
|
|
181
|
+
import type { IDashboardData, IResourceUsage, ITrafficData, IClusterStats } from '@serve.zone/catalog';
|
|
182
|
+
|
|
183
|
+
// Services
|
|
184
|
+
import type { IServiceDetail, IServiceStats, ILogEntry, IServiceBackup } from '@serve.zone/catalog';
|
|
185
|
+
|
|
186
|
+
// Network
|
|
187
|
+
import type { IDomainDetail, ICertificateDetail, IDnsRecord, ITrafficTarget } from '@serve.zone/catalog';
|
|
188
|
+
|
|
189
|
+
// Settings & Auth
|
|
190
|
+
import type { ISettings, IToken, IExternalRegistry } from '@serve.zone/catalog';
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## 🛠️ Development
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Install dependencies
|
|
197
|
+
pnpm install
|
|
198
|
+
|
|
199
|
+
# Start dev server (wcctools dashboard with live reload)
|
|
200
|
+
pnpm run watch
|
|
201
|
+
|
|
202
|
+
# Production build
|
|
203
|
+
pnpm run build
|
|
204
|
+
|
|
205
|
+
# Run tests
|
|
206
|
+
pnpm test
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The **wcctools dev server** provides an interactive dashboard where every component is rendered with demo data. Components are organized by group (Dashboard, Services, Network, etc.) in the sidebar. Demo view wrappers (`sz-demo-view-*`) are filtered out from the element list — they serve as full-page orchestration demos accessible through the Pages section.
|
|
210
|
+
|
|
211
|
+
## License and Legal Information
|
|
212
|
+
|
|
213
|
+
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
|
|
214
|
+
|
|
215
|
+
**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.
|
|
216
|
+
|
|
217
|
+
### Trademarks
|
|
218
|
+
|
|
219
|
+
This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein.
|
|
220
|
+
|
|
221
|
+
Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar.
|
|
222
|
+
|
|
223
|
+
### Company Information
|
|
224
|
+
|
|
225
|
+
Task Venture Capital GmbH
|
|
226
|
+
Registered at District Court Bremen HRB 35230 HB, Germany
|
|
227
|
+
|
|
228
|
+
For any legal inquiries or further information, please contact us via email at hello@task.vc.
|
|
229
|
+
|
|
230
|
+
By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.
|