@uptime.link/statuspage 1.0.72 → 1.0.73
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 +3 -3
- package/npmextra.json +16 -2
- package/package.json +16 -2
- package/readme.md +199 -26
- package/ts_web/00_commitinfo_data.ts +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@uptime.link/statuspage',
|
|
6
|
-
version: '1.0.
|
|
7
|
-
description: '
|
|
6
|
+
version: '1.0.73',
|
|
7
|
+
description: 'A catalog of web components for the UptimeLink dashboard.'
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHNfd2ViLzAwX2NvbW1pdGluZm9fZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLFVBQVUsR0FBRztJQUN4QixJQUFJLEVBQUUseUJBQXlCO0lBQy9CLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFdBQVcsRUFBRSwyREFBMkQ7Q0FDekUsQ0FBQSJ9
|
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": "
|
|
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.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
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/
|
|
1
|
+
# @uptime.link/statuspage
|
|
2
2
|
a catalog with webcomponents for uptimelink dashboard
|
|
3
3
|
|
|
4
|
-
##
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Status Category | Status Badge
|
|
13
|
-
-- | --
|
|
14
|
-
GitLab Pipelines | [](https://lossless.cloud)
|
|
15
|
-
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
|
16
|
-
npm | [](https://lossless.cloud)
|
|
17
|
-
Snyk | [](https://lossless.cloud)
|
|
18
|
-
TypeScript Support | [](https://lossless.cloud)
|
|
19
|
-
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
|
20
|
-
Code Style | [](https://lossless.cloud)
|
|
21
|
-
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
|
22
|
-
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
|
23
|
-
BundlePhobia (total size when bundled) | [](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
|
-
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|