Compare commits
No commits in common. "master" and "v1.0.69" have entirely different histories.
146
.gitlab-ci.yml
Normal file
146
.gitlab-ci.yml
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
# gitzone ci_default_private
|
||||||
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .npmci_cache/
|
||||||
|
key: '$CI_BUILD_STAGE'
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- security
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
- metadata
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- npm install -g @shipzone/npmci
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# security stage
|
||||||
|
# ====================
|
||||||
|
mirror:
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci git mirror
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
auditProductionDependencies:
|
||||||
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci command npm install --production --ignore-scripts
|
||||||
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
- npmci command npm audit --audit-level=high --only=prod --production
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
auditDevDependencies:
|
||||||
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
|
stage: security
|
||||||
|
script:
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci command npm install --ignore-scripts
|
||||||
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
- npmci command npm audit --audit-level=high --only=dev
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# test stage
|
||||||
|
# ====================
|
||||||
|
|
||||||
|
testStable:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci node install stable
|
||||||
|
- npmci npm install
|
||||||
|
- npmci npm test
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
testBuild:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci node install stable
|
||||||
|
- npmci npm install
|
||||||
|
- npmci command npm run build
|
||||||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- npmci node install stable
|
||||||
|
- npmci npm publish
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# metadata stage
|
||||||
|
# ====================
|
||||||
|
codequality:
|
||||||
|
stage: metadata
|
||||||
|
allow_failure: true
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- npmci command npm install -g typescript
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci npm install
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- priv
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npmci trigger
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: metadata
|
||||||
|
script:
|
||||||
|
- npmci node install lts
|
||||||
|
- npmci command npm install -g @gitzone/tsdoc
|
||||||
|
- npmci npm prepare
|
||||||
|
- npmci npm install
|
||||||
|
- npmci command tsdoc
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- docker
|
||||||
|
- notpriv
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
allow_failure: true
|
58
changelog.md
58
changelog.md
@ -1,58 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
## 2024-06-27 - 1.0.74 - fix(core)
|
|
||||||
Updated font loading strategy in index.html for improved performance
|
|
||||||
|
|
||||||
- Replaced multiple font loading links with a single assetbroker link.
|
|
||||||
- Removed redundant preconnect and stylesheet links for fonts.
|
|
||||||
|
|
||||||
## 2024-06-26 - 1.0.73 - fix(documentation)
|
|
||||||
Update project description and keywords in package.json and npmextra.json. Refactored documentation in readme.md.
|
|
||||||
|
|
||||||
- Updated project description and keywords within package.json and npmextra.json to ensure alignment.
|
|
||||||
- Enhanced readme.md with detailed setup, installation and usage instructions including examples for importing and using components.
|
|
||||||
|
|
||||||
## 2024-06-26 - 1.0.72 - fix(core)
|
|
||||||
Fixed incorrect import paths and updated configurations for package publication.
|
|
||||||
|
|
||||||
- Fixed import paths for various dependencies in TypeScript files.
|
|
||||||
- Updated npm package name and scope in package.json.
|
|
||||||
- Deleted .gitlab-ci.yml file.
|
|
||||||
- Adjusted tsconfig.json for ESModule compatibility.
|
|
||||||
- Adjusted npmextra.json for correct repository and license information.
|
|
||||||
- Updated documentation links in readme.md.
|
|
||||||
|
|
||||||
## 2023-01-05 - 1.0.69 to 1.0.71 - core
|
|
||||||
Multiple updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2022-03-24 - 1.0.67 to 1.0.69 - core
|
|
||||||
Multiple updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2021-09-27 - 1.0.60 to 1.0.66 - core
|
|
||||||
Multiple updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2021-09-24 - 1.0.59 to 1.0.60 - core
|
|
||||||
Fixes and updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2021-09-23 - 1.0.58 to 1.0.59 - core
|
|
||||||
Fixes and updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2020-11-29 - 1.0.57 to 1.0.58 - core
|
|
||||||
Fixes and updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
||||||
|
|
||||||
## 2020-09-19 - 1.0.55 to 1.0.57 - core
|
|
||||||
Fixes and updates.
|
|
||||||
|
|
||||||
- fix(core): update
|
|
@ -1,5 +1,5 @@
|
|||||||
<!--gitzone element-->
|
<!--gitzone element-->
|
||||||
<!-- made by Task Venture Capital GmbH -->
|
<!-- made by Lossless GmbH -->
|
||||||
<!-- checkout https://maintainedby.lossless.com for awesome OpenSource projects -->
|
<!-- checkout https://maintainedby.lossless.com for awesome OpenSource projects -->
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@ -10,10 +10,6 @@
|
|||||||
/>
|
/>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
<!--Lets load standard fonts-->
|
|
||||||
<link rel="preconnect" href="https://assetbroker.lossless.one/" crossorigin>
|
|
||||||
<link rel="stylesheet" href="https://assetbroker.lossless.one/fonts/fonts.css">
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// dees tools
|
// dees tools
|
||||||
import * as deesWccTools from '@design.estate/dees-wcctools';
|
import * as deesWccTools from '@designestate/dees-wcctools';
|
||||||
import * as deesDomTools from '@design.estate/dees-domtools';
|
import * as deesDomTools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
// elements and pages
|
// elements and pages
|
||||||
import * as elements from '../ts_web/elements/index.js';
|
import * as elements from '../ts_web/elements/index.js';
|
||||||
|
@ -2,27 +2,13 @@
|
|||||||
"gitzone": {
|
"gitzone": {
|
||||||
"projectType": "wcc",
|
"projectType": "wcc",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "code.foss.global",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "uptime.link",
|
"gitscope": "uptimelink/private",
|
||||||
"gitrepo": "statuspage",
|
"gitrepo": "catalog",
|
||||||
"description": "A catalog of web components for the UptimeLink dashboard.",
|
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||||
"npmPackagename": "@uptime.link/statuspage",
|
"npmPackagename": "@uptimelink_private/catalog",
|
||||||
"license": "MIT",
|
"license": "UNLICENSED",
|
||||||
"projectDomain": "uptime.link",
|
"projectDomain": "uptime.link"
|
||||||
"keywords": [
|
|
||||||
"web components",
|
|
||||||
"uptimelink",
|
|
||||||
"dashboard",
|
|
||||||
"status monitoring",
|
|
||||||
"typescript",
|
|
||||||
"incidents",
|
|
||||||
"status",
|
|
||||||
"performance",
|
|
||||||
"uptime",
|
|
||||||
"frontend",
|
|
||||||
"UI",
|
|
||||||
"catalog"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
|
17058
package-lock.json
generated
Normal file
17058
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
48
package.json
48
package.json
@ -1,33 +1,33 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptime.link/statuspage",
|
"name": "@uptimelink_private/catalog",
|
||||||
"version": "1.0.74",
|
"version": "1.0.69",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A catalog of web components for the UptimeLink dashboard.",
|
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
"typings": "dist_ts_web/index.d.ts",
|
"typings": "dist_ts_web/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build",
|
"test": "npm run build",
|
||||||
"build": "tsbuild tsfolders --allowimplicitany && tsbundle element --production",
|
"build": "tsbuild element --allowimplicitany --skiplibcheck && tsbundle element --production",
|
||||||
"watch": "tswatch element",
|
"watch": "tswatch element"
|
||||||
"buildDocs": "tsdoc"
|
|
||||||
},
|
},
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@design.estate/dees-domtools": "^2.0.1",
|
"@designestate/dees-domtools": "^2.0.1",
|
||||||
"@design.estate/dees-element": "^2.0.4",
|
"@designestate/dees-element": "^2.0.4",
|
||||||
"@design.estate/dees-wcctools": "^1.0.73",
|
"@designestate/dees-wcctools": "^1.0.73",
|
||||||
"@uptime.link/interfaces": "^2.0.21"
|
"@gitzone/tsrun": "^1.2.31",
|
||||||
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
|
"@uptimelink/interfaces": "^1.0.10",
|
||||||
|
"typescript": "^4.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.61",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@git.zone/tsbundle": "^2.0.7",
|
"@gitzone/tsbundle": "^1.0.101",
|
||||||
"@git.zone/tsrun": "^1.2.39",
|
"@gitzone/tswatch": "^1.0.73",
|
||||||
"@git.zone/tswatch": "^2.0.5",
|
"@pushrocks/projectinfo": "^4.0.5",
|
||||||
"@push.rocks/projectinfo": "^5.0.1",
|
"@pushrocks/smartenv": "^5.0.0"
|
||||||
"@push.rocks/smartenv": "^5.0.0",
|
|
||||||
"@types/node": "^18.11.18"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
@ -43,19 +43,5 @@
|
|||||||
],
|
],
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 Chrome versions"
|
"last 1 Chrome versions"
|
||||||
],
|
|
||||||
"keywords": [
|
|
||||||
"web components",
|
|
||||||
"uptimelink",
|
|
||||||
"dashboard",
|
|
||||||
"status monitoring",
|
|
||||||
"typescript",
|
|
||||||
"incidents",
|
|
||||||
"status",
|
|
||||||
"performance",
|
|
||||||
"uptime",
|
|
||||||
"frontend",
|
|
||||||
"UI",
|
|
||||||
"catalog"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
4741
pnpm-lock.yaml
generated
4741
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
221
readme.md
221
readme.md
@ -1,205 +1,34 @@
|
|||||||
# @uptime.link/statuspage
|
# @uptimelink/private/catalog
|
||||||
a catalog with webcomponents for uptimelink dashboard
|
a catalog with webcomponents for uptimelink dashboard
|
||||||
|
|
||||||
## Install
|
## Availabililty and Links
|
||||||
|
* [npmjs.org (npm package)](https://www.npmjs.com/package/@uptimelink_private/catalog)
|
||||||
|
* [gitlab.com (source)](https://gitlab.com/uptimelink/private/catalog)
|
||||||
|
* [github.com (source mirror)](https://github.com/uptimelink/private/catalog)
|
||||||
|
* [docs (typedoc)](https://uptimelink/private.gitlab.io/catalog/)
|
||||||
|
|
||||||
To install the `@uptime.link/statuspage` module, you can use npm. Make sure you have Node.js and npm installed, then run:
|
## Status for master
|
||||||
|
|
||||||
```sh
|
Status Category | Status Badge
|
||||||
npm install @uptime.link/statuspage
|
-- | --
|
||||||
```
|
GitLab Pipelines | [](https://lossless.cloud)
|
||||||
|
GitLab Pipline Test Coverage | [](https://lossless.cloud)
|
||||||
|
npm | [](https://lossless.cloud)
|
||||||
|
Snyk | [](https://lossless.cloud)
|
||||||
|
TypeScript Support | [](https://lossless.cloud)
|
||||||
|
node Support | [](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
Code Style | [](https://lossless.cloud)
|
||||||
|
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||||
|
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||||
|
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||||
|
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
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.
|
Use TypeScript for best in class intellisense
|
||||||
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
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.
|
> UNLICENSED licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||||
|
|
||||||
### Step-by-Step Example
|
[](https://maintainedby.lossless.com)
|
||||||
|
|
||||||
1. **Setup Your Project:**
|
|
||||||
|
|
||||||
Ensure you have a TypeScript project setup. Here's a minimal `tsconfig.json` to get started:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "ES2020",
|
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"strict": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"skipLibCheck": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
2. **Import Components:**
|
|
||||||
|
|
||||||
Create an `index.ts` file, and import the components you need:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import './elements/index.js';
|
|
||||||
import { page1 } from './pages/index.js';
|
|
||||||
```
|
|
||||||
|
|
||||||
3. **Creating a Status Page:**
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
### UplStatuspageHeader
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageHeader } from './elements/upl-statuspage-header.js';
|
|
||||||
|
|
||||||
const header: UplStatuspageHeader = document.createElement('upl-statuspage-header');
|
|
||||||
header.pageTitle = "Uptime Link Status Page";
|
|
||||||
document.body.appendChild(header);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageStatusbar
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageStatusbar } from './elements/upl-statuspage-statusbar.js';
|
|
||||||
|
|
||||||
const statusBar: UplStatuspageStatusbar = document.createElement('upl-statuspage-statusbar');
|
|
||||||
document.body.appendChild(statusBar);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageAssetsselector
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageAssetsselector } from './elements/upl-statuspage-assetsselector.js';
|
|
||||||
|
|
||||||
const assetsSelector: UplStatuspageAssetsselector = document.createElement('upl-statuspage-assetsselector');
|
|
||||||
document.body.appendChild(assetsSelector);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageStatusdetails
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageStatusdetails } from './elements/upl-statuspage-statusdetails.js';
|
|
||||||
|
|
||||||
const statusDetails: UplStatuspageStatusdetails = document.createElement('upl-statuspage-statusdetails');
|
|
||||||
document.body.appendChild(statusDetails);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageStatusmonth
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageStatusmonth } from './elements/upl-statuspage-statusmonth.js';
|
|
||||||
|
|
||||||
const statusMonth: UplStatuspageStatusmonth = document.createElement('upl-statuspage-statusmonth');
|
|
||||||
document.body.appendChild(statusMonth);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageIncidents
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageIncidents } from './elements/upl-statuspage-incidents.js';
|
|
||||||
import { uplInterfaces } from './plugins.js';
|
|
||||||
|
|
||||||
const incidents: UplStatuspageIncidents = document.createElement('upl-statuspage-incidents');
|
|
||||||
incidents.currentIncidences = [
|
|
||||||
// Example incident data
|
|
||||||
{
|
|
||||||
id: "incident1",
|
|
||||||
title: "Server Outage",
|
|
||||||
description: "There was an outage on the main server.",
|
|
||||||
status: "resolved",
|
|
||||||
createdAt: new Date().toISOString(),
|
|
||||||
updatedAt: new Date().toISOString()
|
|
||||||
}
|
|
||||||
] as uplInterfaces.IIncident[];
|
|
||||||
|
|
||||||
incidents.pastIncidences = [
|
|
||||||
// Example past incident data
|
|
||||||
{
|
|
||||||
id: "incident2",
|
|
||||||
title: "Database Maintenance",
|
|
||||||
description: "Scheduled maintenance on the database.",
|
|
||||||
status: "completed",
|
|
||||||
createdAt: new Date().toISOString(),
|
|
||||||
updatedAt: new Date().toISOString()
|
|
||||||
}
|
|
||||||
] as uplInterfaces.IIncident[];
|
|
||||||
|
|
||||||
document.body.appendChild(incidents);
|
|
||||||
```
|
|
||||||
|
|
||||||
### UplStatuspageFooter
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { UplStatuspageFooter } from './elements/upl-statuspage-footer.js';
|
|
||||||
|
|
||||||
const footer: UplStatuspageFooter = document.createElement('upl-statuspage-footer');
|
|
||||||
footer.legalInfo = "https://example.com/legal";
|
|
||||||
document.body.appendChild(footer);
|
|
||||||
```
|
|
||||||
|
|
||||||
### Full Example
|
|
||||||
|
|
||||||
Here’s how you can put it all together to create a full status page:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import './elements/index.js';
|
|
||||||
import { page1 } from './pages/index.js';
|
|
||||||
import { UplStatuspageHeader } from './elements/upl-statuspage-header.js';
|
|
||||||
import { UplStatuspageStatusbar } from './elements/upl-statuspage-statusbar.js';
|
|
||||||
import { UplStatuspageAssetsselector } from './elements/upl-statuspage-assetsselector.js';
|
|
||||||
import { UplStatuspageStatusdetails } from './elements/upl-statuspage-statusdetails.js';
|
|
||||||
import { UplStatuspageStatusmonth } from './elements/upl-statuspage-statusmonth.js';
|
|
||||||
import { UplStatuspageIncidents } from './elements/upl-statuspage-incidents.js';
|
|
||||||
import { UplStatuspageFooter } from './elements/upl-statuspage-footer.js';
|
|
||||||
import { uplInterfaces } from './plugins.js';
|
|
||||||
|
|
||||||
const header: UplStatuspageHeader = document.createElement('upl-statuspage-header');
|
|
||||||
header.pageTitle = "Uptime Link Status Page";
|
|
||||||
document.body.appendChild(header);
|
|
||||||
|
|
||||||
const statusBar: UplStatuspageStatusbar = document.createElement('upl-statuspage-statusbar');
|
|
||||||
document.body.appendChild(statusBar);
|
|
||||||
|
|
||||||
const assetsSelector: UplStatuspageAssetsselector = document.createElement('upl-statuspage-assetsselector');
|
|
||||||
document.body.appendChild(assetsSelector);
|
|
||||||
|
|
||||||
const statusDetails: UplStatuspageStatusdetails = document.createElement('upl-statuspage-statusdetails');
|
|
||||||
document.body.appendChild(statusDetails);
|
|
||||||
|
|
||||||
const statusMonth: UplStatuspageStatusmonth = document.createElement('upl-statuspage-statusmonth');
|
|
||||||
document.body.appendChild(statusMonth);
|
|
||||||
|
|
||||||
const incidents: UplStatuspageIncidents = document.createElement('upl-statuspage-incidents');
|
|
||||||
incidents.currentIncidences = [
|
|
||||||
{
|
|
||||||
id: "incident1",
|
|
||||||
title: "Server Outage",
|
|
||||||
description: "There was an outage on the main server.",
|
|
||||||
status: "resolved",
|
|
||||||
createdAt: new Date().toISOString(),
|
|
||||||
updatedAt: new Date().toISOString()
|
|
||||||
}
|
|
||||||
] as uplInterfaces.IIncident[];
|
|
||||||
|
|
||||||
incidents.pastIncidences = [
|
|
||||||
{
|
|
||||||
id: "incident2",
|
|
||||||
title: "Database Maintenance",
|
|
||||||
description: "Scheduled maintenance on the database.",
|
|
||||||
status: "completed",
|
|
||||||
createdAt: new Date().toISOString(),
|
|
||||||
updatedAt: new Date().toISOString()
|
|
||||||
}
|
|
||||||
] as uplInterfaces.IIncident[];
|
|
||||||
|
|
||||||
document.body.appendChild(incidents);
|
|
||||||
|
|
||||||
const footer: UplStatuspageFooter = document.createElement('upl-statuspage-footer');
|
|
||||||
footer.legalInfo = "https://example.com/legal";
|
|
||||||
document.body.appendChild(footer);
|
|
||||||
```
|
|
||||||
|
|
||||||
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.
|
|
||||||
undefined
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
/**
|
|
||||||
* autocreated commitinfo by @push.rocks/commitinfo
|
|
||||||
*/
|
|
||||||
export const commitinfo = {
|
|
||||||
name: '@uptime.link/statuspage',
|
|
||||||
version: '1.0.74',
|
|
||||||
description: 'A catalog of web components for the UptimeLink dashboard.'
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
import { customElement, DeesElement, html, type TemplateResult } from '@design.estate/dees-element';
|
import { customElement, DeesElement, html, TemplateResult } from '@designestate/dees-element';
|
||||||
|
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
@customElement('uplinternal-miniheading')
|
@customElement('uplinternal-miniheading')
|
||||||
export class UplinternalMiniheading extends DeesElement {
|
export class UplinternalMiniheading extends DeesElement {
|
||||||
@ -10,7 +10,7 @@ export class UplinternalMiniheading extends DeesElement {
|
|||||||
<style>
|
<style>
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
|
@ -3,11 +3,9 @@ import {
|
|||||||
property,
|
property,
|
||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
type TemplateResult,
|
TemplateResult,
|
||||||
cssManager,
|
} from '@designestate/dees-element';
|
||||||
css,
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
} from '@design.estate/dees-element';
|
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading.js';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
@ -27,14 +25,15 @@ export class UplStatuspageAssetsselector extends DeesElement {
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static styles = [
|
public render(): TemplateResult {
|
||||||
cssManager.defaultStyles,
|
return html`
|
||||||
css`
|
${domtools.elementBasic.styles}
|
||||||
:host {
|
<style>
|
||||||
|
:host {
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: #222222;
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,15 +43,8 @@ export class UplStatuspageAssetsselector extends DeesElement {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
background: #404040;
|
||||||
}
|
}
|
||||||
`,
|
|
||||||
]
|
|
||||||
|
|
||||||
public render(): TemplateResult {
|
|
||||||
return html`
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<uplinternal-miniheading>Monitored Assets</uplinternal-miniheading>
|
<uplinternal-miniheading>Monitored Assets</uplinternal-miniheading>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DeesElement, property, html, customElement, type TemplateResult, css, cssManager } from '@design.estate/dees-element';
|
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -34,7 +34,7 @@ export class UplStatuspageFooter extends DeesElement {
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#ffffff', '#000000')};
|
background: ${cssManager.bdTheme('#ffffff', '#000000')};
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DeesElement, property, html, customElement, type TemplateResult, css, cssManager } from '@design.estate/dees-element';
|
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -29,7 +29,7 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
h1 {
|
h1 {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 600;
|
font-weight: 300;
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
margin: 0px;
|
margin: 0px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 600;
|
font-weight: 300;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
@ -4,10 +4,10 @@ import {
|
|||||||
property,
|
property,
|
||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
type TemplateResult,
|
TemplateResult,
|
||||||
css,
|
css,
|
||||||
cssManager,
|
cssManager,
|
||||||
} from '@design.estate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -46,7 +46,7 @@ export class UplStatuspageIncidents extends DeesElement {
|
|||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ export class UplStatuspageIncidents extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.noIncidentBox {
|
.noIncidentBox {
|
||||||
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
background: #333;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DeesElement, property, html, customElement, type TemplateResult, cssManager, css } from '@design.estate/dees-element';
|
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -13,18 +13,21 @@ export class UplStatuspageStatusbar extends DeesElement {
|
|||||||
<upl-statuspage-statusbar></upl-statuspage-statusbar>
|
<upl-statuspage-statusbar></upl-statuspage-statusbar>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static styles = [
|
public render(): TemplateResult {
|
||||||
cssManager.defaultStyles,
|
return html`
|
||||||
css`
|
${domtools.elementBasic.styles}
|
||||||
:host {
|
<style>
|
||||||
|
:host {
|
||||||
padding: 20px 0px 15px 0px;
|
padding: 20px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
background: #222222;
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,12 +39,8 @@ export class UplStatuspageStatusbar extends DeesElement {
|
|||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
`,
|
|
||||||
]
|
|
||||||
|
|
||||||
public render(): TemplateResult {
|
|
||||||
return html`
|
|
||||||
<style>
|
|
||||||
</style>
|
</style>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
Everything is working normally!
|
Everything is working normally!
|
||||||
|
@ -4,10 +4,10 @@ import {
|
|||||||
property,
|
property,
|
||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
type TemplateResult,
|
TemplateResult,
|
||||||
css,
|
css,
|
||||||
cssManager,
|
cssManager,
|
||||||
} from '@design.estate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading.js';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
@ -32,8 +32,8 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
background: #222222;
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
background: #404040;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,11 @@ import {
|
|||||||
property,
|
property,
|
||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
type TemplateResult,
|
TemplateResult,
|
||||||
css,
|
css,
|
||||||
cssManager
|
cssManager
|
||||||
} from '@design.estate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading.js';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
@ -32,8 +32,8 @@ export class UplStatuspageStatusmonth extends DeesElement {
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
background: #222222;
|
||||||
font-family: Inter;
|
font-family: Roboto Mono;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ export class UplStatuspageStatusmonth extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.statusMonth {
|
.statusMonth {
|
||||||
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
background: #404040;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import * as domtools from '@design.estate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
import * as uplInterfaces from '@uptime.link/interfaces';
|
import * as uplInterfaces from '@uptimelink/interfaces';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
domtools,
|
domtools,
|
||||||
|
@ -1,14 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"useDefineForClassFields": false,
|
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "NodeNext",
|
"module": "ES2022",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "nodenext"
|
||||||
"esModuleInterop": true,
|
}
|
||||||
"verbatimModuleSyntax": true
|
|
||||||
},
|
|
||||||
"exclude": [
|
|
||||||
"dist_*/**/*.d.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user