@uptime.link/statuspage 1.0.72 → 1.0.74

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.
@@ -10,16 +10,9 @@
10
10
  />
11
11
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
12
 
13
- <link rel="preconnect" href="https://rsms.me/">
14
- <link rel="preconnect" href="https://fonts.googleapis.com">
15
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
16
- <link rel="stylesheet" href="https://rsms.me/inter/inter.css">
17
- <link
18
- crossorigin="anonymous"
19
- href="https://fonts.googleapis.com/icon?family=Material+Icons"
20
- rel="stylesheet"
21
- />
22
- <link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
13
+ <!--Lets load standard fonts-->
14
+ <link rel="preconnect" href="https://assetbroker.lossless.one/" crossorigin>
15
+ <link rel="stylesheet" href="https://assetbroker.lossless.one/fonts/fonts.css">
23
16
 
24
17
  <style>
25
18
  body {
package/npmextra.json CHANGED
@@ -5,10 +5,24 @@
5
5
  "githost": "code.foss.global",
6
6
  "gitscope": "uptime.link",
7
7
  "gitrepo": "statuspage",
8
- "description": "a catalog with webcomponents for uptimelink dashboard",
8
+ "description": "A catalog of web components for the UptimeLink dashboard.",
9
9
  "npmPackagename": "@uptime.link/statuspage",
10
10
  "license": "MIT",
11
- "projectDomain": "uptime.link"
11
+ "projectDomain": "uptime.link",
12
+ "keywords": [
13
+ "web components",
14
+ "uptimelink",
15
+ "dashboard",
16
+ "status monitoring",
17
+ "typescript",
18
+ "incidents",
19
+ "status",
20
+ "performance",
21
+ "uptime",
22
+ "frontend",
23
+ "UI",
24
+ "catalog"
25
+ ]
12
26
  }
13
27
  },
14
28
  "npmci": {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@uptime.link/statuspage",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "private": false,
5
- "description": "a catalog with webcomponents for uptimelink dashboard",
5
+ "description": "A catalog of web components for the UptimeLink dashboard.",
6
6
  "main": "dist_ts_web/index.js",
7
7
  "typings": "dist_ts_web/index.d.ts",
8
8
  "type": "module",
@@ -38,6 +38,20 @@
38
38
  "browserslist": [
39
39
  "last 1 Chrome versions"
40
40
  ],
41
+ "keywords": [
42
+ "web components",
43
+ "uptimelink",
44
+ "dashboard",
45
+ "status monitoring",
46
+ "typescript",
47
+ "incidents",
48
+ "status",
49
+ "performance",
50
+ "uptime",
51
+ "frontend",
52
+ "UI",
53
+ "catalog"
54
+ ],
41
55
  "scripts": {
42
56
  "test": "npm run build",
43
57
  "build": "tsbuild tsfolders --allowimplicitany && tsbundle element --production",
package/readme.md CHANGED
@@ -1,32 +1,205 @@
1
- # @uptime.link/private/catalog
1
+ # @uptime.link/statuspage
2
2
  a catalog with webcomponents for uptimelink dashboard
3
3
 
4
- ## Availabililty and Links
5
- * [npmjs.org (npm package)](https://www.npmjs.com/package/@uptimelink_private/catalog)
6
- * [gitlab.com (source)](https://gitlab.com/uptimelink/private/catalog)
7
- * [github.com (source mirror)](https://github.com/uptimelink/private/catalog)
8
- * [docs (typedoc)](https://uptimelink/private.gitlab.io/catalog/)
9
-
10
- ## Status for master
11
-
12
- Status Category | Status Badge
13
- -- | --
14
- GitLab Pipelines | [![pipeline status](https://gitlab.com/uptimelink/private/catalog/badges/master/pipeline.svg)](https://lossless.cloud)
15
- GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/uptimelink/private/catalog/badges/master/coverage.svg)](https://lossless.cloud)
16
- npm | [![npm downloads per month](https://badgen.net/npm/dy/@uptimelink_private/catalog)](https://lossless.cloud)
17
- Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/uptimelink/private/catalog)](https://lossless.cloud)
18
- TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
19
- node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
20
- Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
21
- PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@uptimelink_private/catalog)](https://lossless.cloud)
22
- PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@uptimelink_private/catalog)](https://lossless.cloud)
23
- BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@uptimelink_private/catalog)](https://lossless.cloud)
4
+ ## Install
5
+
6
+ To install the `@uptime.link/statuspage` module, you can use npm. Make sure you have Node.js and npm installed, then run:
7
+
8
+ ```sh
9
+ npm install @uptime.link/statuspage
10
+ ```
24
11
 
25
12
  ## Usage
26
13
 
27
- Use TypeScript for best in class intellisense
28
- For further information read the linked docs at the top of this readme.
14
+ The `@uptime.link/statuspage` module provides a collection of web components to build a comprehensive status page for Uptime.link dashboards. This includes headers, status bars, asset selectors, status details, incident lists, and more.
15
+
16
+ Here’s a detailed guide on how to use each component in your TypeScript project with ESM syntax. We will walk through creating a complete status page using the provided components.
17
+
18
+ ### Step-by-Step Example
19
+
20
+ 1. **Setup Your Project:**
21
+
22
+ Ensure you have a TypeScript project setup. Here's a minimal `tsconfig.json` to get started:
23
+
24
+ ```json
25
+ {
26
+ "compilerOptions": {
27
+ "target": "ES2020",
28
+ "module": "ESNext",
29
+ "moduleResolution": "node",
30
+ "experimentalDecorators": true,
31
+ "emitDecoratorMetadata": true,
32
+ "strict": true,
33
+ "esModuleInterop": true,
34
+ "skipLibCheck": true
35
+ }
36
+ }
37
+ ```
38
+
39
+ 2. **Import Components:**
40
+
41
+ Create an `index.ts` file, and import the components you need:
42
+
43
+ ```typescript
44
+ import './elements/index.js';
45
+ import { page1 } from './pages/index.js';
46
+ ```
47
+
48
+ 3. **Creating a Status Page:**
49
+
50
+ Here, we'll create a simple status page using the imported components. We'll create individual components like headers, status bars, footers, etc., and combine them into a single page.
51
+
52
+ ### UplStatuspageHeader
53
+
54
+ ```typescript
55
+ import { UplStatuspageHeader } from './elements/upl-statuspage-header.js';
56
+
57
+ const header: UplStatuspageHeader = document.createElement('upl-statuspage-header');
58
+ header.pageTitle = "Uptime Link Status Page";
59
+ document.body.appendChild(header);
60
+ ```
61
+
62
+ ### UplStatuspageStatusbar
63
+
64
+ ```typescript
65
+ import { UplStatuspageStatusbar } from './elements/upl-statuspage-statusbar.js';
66
+
67
+ const statusBar: UplStatuspageStatusbar = document.createElement('upl-statuspage-statusbar');
68
+ document.body.appendChild(statusBar);
69
+ ```
70
+
71
+ ### UplStatuspageAssetsselector
72
+
73
+ ```typescript
74
+ import { UplStatuspageAssetsselector } from './elements/upl-statuspage-assetsselector.js';
75
+
76
+ const assetsSelector: UplStatuspageAssetsselector = document.createElement('upl-statuspage-assetsselector');
77
+ document.body.appendChild(assetsSelector);
78
+ ```
79
+
80
+ ### UplStatuspageStatusdetails
81
+
82
+ ```typescript
83
+ import { UplStatuspageStatusdetails } from './elements/upl-statuspage-statusdetails.js';
84
+
85
+ const statusDetails: UplStatuspageStatusdetails = document.createElement('upl-statuspage-statusdetails');
86
+ document.body.appendChild(statusDetails);
87
+ ```
88
+
89
+ ### UplStatuspageStatusmonth
90
+
91
+ ```typescript
92
+ import { UplStatuspageStatusmonth } from './elements/upl-statuspage-statusmonth.js';
93
+
94
+ const statusMonth: UplStatuspageStatusmonth = document.createElement('upl-statuspage-statusmonth');
95
+ document.body.appendChild(statusMonth);
96
+ ```
97
+
98
+ ### UplStatuspageIncidents
99
+
100
+ ```typescript
101
+ import { UplStatuspageIncidents } from './elements/upl-statuspage-incidents.js';
102
+ import { uplInterfaces } from './plugins.js';
103
+
104
+ const incidents: UplStatuspageIncidents = document.createElement('upl-statuspage-incidents');
105
+ incidents.currentIncidences = [
106
+ // Example incident data
107
+ {
108
+ id: "incident1",
109
+ title: "Server Outage",
110
+ description: "There was an outage on the main server.",
111
+ status: "resolved",
112
+ createdAt: new Date().toISOString(),
113
+ updatedAt: new Date().toISOString()
114
+ }
115
+ ] as uplInterfaces.IIncident[];
116
+
117
+ incidents.pastIncidences = [
118
+ // Example past incident data
119
+ {
120
+ id: "incident2",
121
+ title: "Database Maintenance",
122
+ description: "Scheduled maintenance on the database.",
123
+ status: "completed",
124
+ createdAt: new Date().toISOString(),
125
+ updatedAt: new Date().toISOString()
126
+ }
127
+ ] as uplInterfaces.IIncident[];
128
+
129
+ document.body.appendChild(incidents);
130
+ ```
131
+
132
+ ### UplStatuspageFooter
133
+
134
+ ```typescript
135
+ import { UplStatuspageFooter } from './elements/upl-statuspage-footer.js';
136
+
137
+ const footer: UplStatuspageFooter = document.createElement('upl-statuspage-footer');
138
+ footer.legalInfo = "https://example.com/legal";
139
+ document.body.appendChild(footer);
140
+ ```
141
+
142
+ ### Full Example
143
+
144
+ Here’s how you can put it all together to create a full status page:
145
+
146
+ ```typescript
147
+ import './elements/index.js';
148
+ import { page1 } from './pages/index.js';
149
+ import { UplStatuspageHeader } from './elements/upl-statuspage-header.js';
150
+ import { UplStatuspageStatusbar } from './elements/upl-statuspage-statusbar.js';
151
+ import { UplStatuspageAssetsselector } from './elements/upl-statuspage-assetsselector.js';
152
+ import { UplStatuspageStatusdetails } from './elements/upl-statuspage-statusdetails.js';
153
+ import { UplStatuspageStatusmonth } from './elements/upl-statuspage-statusmonth.js';
154
+ import { UplStatuspageIncidents } from './elements/upl-statuspage-incidents.js';
155
+ import { UplStatuspageFooter } from './elements/upl-statuspage-footer.js';
156
+ import { uplInterfaces } from './plugins.js';
157
+
158
+ const header: UplStatuspageHeader = document.createElement('upl-statuspage-header');
159
+ header.pageTitle = "Uptime Link Status Page";
160
+ document.body.appendChild(header);
161
+
162
+ const statusBar: UplStatuspageStatusbar = document.createElement('upl-statuspage-statusbar');
163
+ document.body.appendChild(statusBar);
164
+
165
+ const assetsSelector: UplStatuspageAssetsselector = document.createElement('upl-statuspage-assetsselector');
166
+ document.body.appendChild(assetsSelector);
167
+
168
+ const statusDetails: UplStatuspageStatusdetails = document.createElement('upl-statuspage-statusdetails');
169
+ document.body.appendChild(statusDetails);
170
+
171
+ const statusMonth: UplStatuspageStatusmonth = document.createElement('upl-statuspage-statusmonth');
172
+ document.body.appendChild(statusMonth);
173
+
174
+ const incidents: UplStatuspageIncidents = document.createElement('upl-statuspage-incidents');
175
+ incidents.currentIncidences = [
176
+ {
177
+ id: "incident1",
178
+ title: "Server Outage",
179
+ description: "There was an outage on the main server.",
180
+ status: "resolved",
181
+ createdAt: new Date().toISOString(),
182
+ updatedAt: new Date().toISOString()
183
+ }
184
+ ] as uplInterfaces.IIncident[];
185
+
186
+ incidents.pastIncidences = [
187
+ {
188
+ id: "incident2",
189
+ title: "Database Maintenance",
190
+ description: "Scheduled maintenance on the database.",
191
+ status: "completed",
192
+ createdAt: new Date().toISOString(),
193
+ updatedAt: new Date().toISOString()
194
+ }
195
+ ] as uplInterfaces.IIncident[];
196
+
197
+ document.body.appendChild(incidents);
198
+
199
+ const footer: UplStatuspageFooter = document.createElement('upl-statuspage-footer');
200
+ footer.legalInfo = "https://example.com/legal";
201
+ document.body.appendChild(footer);
202
+ ```
29
203
 
30
- ## Legal
31
- > UNLICENSED licensed | **&copy;** [Task Venture Capital GmbH](https://task.vc)
32
- | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
204
+ This example uses all the components provided by `@uptime.link/statuspage` to create a functional status page. Modify the data, styles, and structure to suit your requirements.
205
+ undefined
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@uptime.link/statuspage',
6
- version: '1.0.72',
7
- description: 'a catalog with webcomponents for uptimelink dashboard'
6
+ version: '1.0.74',
7
+ description: 'A catalog of web components for the UptimeLink dashboard.'
8
8
  }