Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
94685bf46e | |||
96ebe6b42d | |||
f51a5cef57 | |||
d69a7f530b | |||
484741e052 | |||
45ea020ec8 | |||
efdde110a0 | |||
134dd0414f | |||
53e3ba4672 | |||
609e176aab | |||
617a3f307c | |||
a577418132 | |||
c969da7362 | |||
fd6427da1e | |||
ad178bfec3 | |||
22db7a50de | |||
f010f1e32b | |||
1e24a6a671 | |||
69583a90ad | |||
efb2e53e0c | |||
fe38765d2f | |||
1903687a46 | |||
78811a2879 | |||
b6eef831c6 |
@ -12,28 +12,23 @@ stages:
|
|||||||
- release
|
- release
|
||||||
- metadata
|
- metadata
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- pnpm install -g pnpm
|
||||||
|
- pnpm install -g @shipzone/npmci
|
||||||
|
- npmci npm prepare
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# security stage
|
||||||
|
# ====================
|
||||||
# ====================
|
# ====================
|
||||||
# security stage
|
# security stage
|
||||||
# ====================
|
# ====================
|
||||||
mirror:
|
|
||||||
stage: security
|
|
||||||
script:
|
|
||||||
- npmci git mirror
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- lossless
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
auditProductionDependencies:
|
auditProductionDependencies:
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
- npmci command npm install --production --ignore-scripts
|
- npmci command pnpm audit --audit-level=high --prod
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
|
||||||
- npmci command npm audit --audit-level=high --only=prod --production
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
@ -42,10 +37,8 @@ auditDevDependencies:
|
|||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
|
||||||
- npmci command npm install --ignore-scripts
|
|
||||||
- npmci command npm config set registry https://registry.npmjs.org
|
- npmci command npm config set registry https://registry.npmjs.org
|
||||||
- npmci command npm audit --audit-level=high --only=dev
|
- npmci command pnpm audit --audit-level=high --dev
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
@ -58,7 +51,6 @@ auditDevDependencies:
|
|||||||
testStable:
|
testStable:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci npm test
|
- npmci npm test
|
||||||
@ -71,7 +63,6 @@ testStable:
|
|||||||
testBuild:
|
testBuild:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command npm run build
|
- npmci command npm run build
|
||||||
@ -102,10 +93,9 @@ codequality:
|
|||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g typescript
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
@ -127,7 +117,6 @@ pages:
|
|||||||
script:
|
script:
|
||||||
- npmci node install lts
|
- npmci node install lts
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
- npmci command npm install -g @gitzone/tsdoc
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command tsdoc
|
- npmci command tsdoc
|
||||||
tags:
|
tags:
|
||||||
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -2,28 +2,10 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "current file",
|
"command": "npm test",
|
||||||
"type": "node",
|
"name": "Run npm test",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"type": "node-terminal"
|
||||||
"${relativeFile}"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test.ts",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"args": [
|
|
||||||
"test/test.ts"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@gitzone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--gitzone element-->
|
<!--gitzone element-->
|
||||||
<!-- made by Lossless GmbH -->
|
<!-- made by Task Venture Capital 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,6 +10,17 @@
|
|||||||
/>
|
/>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
|
||||||
|
<link rel="preconnect" href="https://rsms.me/">
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
||||||
|
<link
|
||||||
|
crossorigin="anonymous"
|
||||||
|
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
@ -17,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="./index.ts"></script>
|
<script type="module" src="/bundle.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
|
@ -3,8 +3,8 @@ import * as deesWccTools from '@designestate/dees-wcctools';
|
|||||||
import * as deesDomTools from '@designestate/dees-domtools';
|
import * as deesDomTools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
// elements and pages
|
// elements and pages
|
||||||
import * as elements from '../ts_web/elements';
|
import * as elements from '../ts_web/elements/index.js';
|
||||||
import * as pages from '../ts_web/pages';
|
import * as pages from '../ts_web/pages/index.js';
|
||||||
|
|
||||||
deesWccTools.setupWccTools(elements as any, pages);
|
deesWccTools.setupWccTools(elements as any, pages);
|
||||||
deesDomTools.elementBasic.setup();
|
deesDomTools.elementBasic.setup();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "uptimelink/private",
|
"gitscope": "uptimelink/private",
|
||||||
"gitrepo": "catalog",
|
"gitrepo": "catalog",
|
||||||
"shortDescription": "a catalog with webcomponents for uptimelink dashboard",
|
"description": "a catalog with webcomponents for uptimelink dashboard",
|
||||||
"npmPackagename": "@uptimelink_private/catalog",
|
"npmPackagename": "@uptimelink_private/catalog",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"projectDomain": "uptime.link"
|
"projectDomain": "uptime.link"
|
||||||
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "private"
|
"npmAccessLevel": "private",
|
||||||
|
"npmRegistryUrl": "verdaccio.lossless.one"
|
||||||
}
|
}
|
||||||
}
|
}
|
11448
package-lock.json
generated
11448
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
@ -1,33 +1,34 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptimelink_private/catalog",
|
"name": "@uptimelink_private/catalog",
|
||||||
"version": "1.0.59",
|
"version": "1.0.71",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a catalog with webcomponents for 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",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build",
|
"test": "npm run build",
|
||||||
"build": "tsbuild element && tsbundle element --production",
|
"build": "tsbuild element --allowimplicitany && tsbundle element --production",
|
||||||
"watch": "tswatch element"
|
"watch": "tswatch element",
|
||||||
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.85",
|
"@designestate/dees-domtools": "^2.0.1",
|
||||||
"@designestate/dees-element": "^1.0.10",
|
"@designestate/dees-element": "^2.0.4",
|
||||||
"@designestate/dees-wcctools": "^1.0.54",
|
"@designestate/dees-wcctools": "^1.0.73",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@pushrocks/smartexpress": "^3.0.100",
|
"@uptimelink/interfaces": "^1.0.10"
|
||||||
"typescript": "^4.2.3"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsbundle": "^1.0.80",
|
"@gitzone/tsbundle": "^2.0.7",
|
||||||
"@gitzone/tswatch": "^1.0.52",
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
"@pushrocks/projectinfo": "^4.0.5",
|
"@gitzone/tswatch": "^2.0.5",
|
||||||
"tslint": "^6.1.3",
|
"@pushrocks/projectinfo": "^5.0.1",
|
||||||
"tslint-config-prettier": "^1.17.0"
|
"@pushrocks/smartenv": "^5.0.0",
|
||||||
|
"@types/node": "^18.11.18"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
2776
pnpm-lock.yaml
generated
Normal file
2776
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -21,14 +21,12 @@ Code Style | [](htt
|
|||||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||||
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Use TypeScript for best in class intellisense
|
Use TypeScript for best in class intellisense
|
||||||
For further information read the linked docs at the top of this readme.
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
> UNLICENSED licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
## Legal
|
||||||
|
> UNLICENSED licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
||||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||||
|
|
||||||
[](https://maintainedby.lossless.com)
|
|
||||||
|
8
ts_web/00_commitinfo_data.ts
Normal file
8
ts_web/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@uptimelink_private/catalog',
|
||||||
|
version: '1.0.71',
|
||||||
|
description: 'a catalog with webcomponents for uptimelink dashboard'
|
||||||
|
}
|
@ -1,5 +1,7 @@
|
|||||||
export * from './upl-statuspage-assetsselector';
|
export * from './upl-statuspage-assetsselector.js';
|
||||||
export * from './upl-statuspage-header';
|
export * from './upl-statuspage-footer.js';
|
||||||
export * from './upl-statuspage-statusbar';
|
export * from './upl-statuspage-header.js';
|
||||||
export * from './upl-statuspage-statusdetails';
|
export * from './upl-statuspage-incidents.js';
|
||||||
export * from './upl-statuspage-statusmonth';
|
export * from './upl-statuspage-statusbar.js';
|
||||||
|
export * from './upl-statuspage-statusdetails.js';
|
||||||
|
export * from './upl-statuspage-statusmonth.js';
|
||||||
|
@ -10,7 +10,7 @@ export class UplinternalMiniheading extends DeesElement {
|
|||||||
<style>
|
<style>
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
font-family: Roboto Mono;
|
font-family: Inter;
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
|
@ -4,10 +4,12 @@ import {
|
|||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
TemplateResult,
|
TemplateResult,
|
||||||
|
cssManager,
|
||||||
|
css,
|
||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -25,15 +27,14 @@ export class UplStatuspageAssetsselector extends DeesElement {
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public static styles = [
|
||||||
return html`
|
cssManager.defaultStyles,
|
||||||
${domtools.elementBasic.styles}
|
css`
|
||||||
<style>
|
:host {
|
||||||
:host {
|
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: #222222;
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Roboto Mono;
|
font-family: Inter;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,8 +44,15 @@ export class UplStatuspageAssetsselector extends DeesElement {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: #404040;
|
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
||||||
}
|
}
|
||||||
|
`,
|
||||||
|
]
|
||||||
|
|
||||||
|
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">
|
||||||
|
72
ts_web/elements/upl-statuspage-footer.ts
Normal file
72
ts_web/elements/upl-statuspage-footer.ts
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
||||||
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'upl-statuspage-footer': UplStatuspageFooter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('upl-statuspage-footer')
|
||||||
|
export class UplStatuspageFooter extends DeesElement {
|
||||||
|
// STATIC
|
||||||
|
public static demo = () => html`
|
||||||
|
<upl-statuspage-footer></upl-statuspage-footer>
|
||||||
|
`;
|
||||||
|
|
||||||
|
// INSTANCE
|
||||||
|
@property()
|
||||||
|
public legalInfo: string = "https://lossless.gmbh";
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: Boolean
|
||||||
|
})
|
||||||
|
public whitelabel = false;
|
||||||
|
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static styles = [
|
||||||
|
domtools.elementBasic.staticStyles,
|
||||||
|
css`
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
background: ${cssManager.bdTheme('#ffffff', '#000000')};
|
||||||
|
font-family: Inter;
|
||||||
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: auto;
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
`
|
||||||
|
]
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
${domtools.elementBasic.styles}
|
||||||
|
<style></style>
|
||||||
|
<div class="mainbox">
|
||||||
|
Hi there
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchReportNewIncident() {
|
||||||
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchStatusSubscribe() {
|
||||||
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
@ -9,25 +9,28 @@ declare global {
|
|||||||
|
|
||||||
@customElement('upl-statuspage-header')
|
@customElement('upl-statuspage-header')
|
||||||
export class UplStatuspageHeader extends DeesElement {
|
export class UplStatuspageHeader extends DeesElement {
|
||||||
|
// STATIC
|
||||||
public static demo = () => html`
|
public static demo = () => html`
|
||||||
<upl-statuspage-header></upl-statuspage-header>
|
<upl-statuspage-header></upl-statuspage-header>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// INSTANCE
|
||||||
|
@property()
|
||||||
|
public pageTitle: string = "Statuspage Title";
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public static styles = [
|
||||||
return html`
|
domtools.elementBasic.staticStyles,
|
||||||
${domtools.elementBasic.styles}
|
css`
|
||||||
<style>
|
:host {
|
||||||
:host {
|
|
||||||
display: block;
|
display: block;
|
||||||
background: #222222;
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Roboto Mono;
|
font-family: Inter;
|
||||||
color: #fff;
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainbox {
|
.mainbox {
|
||||||
@ -42,9 +45,10 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mainbox .actions .actionButton {
|
.mainbox .actions .actionButton {
|
||||||
background: rgba(255,255,255, 0);
|
background: ${cssManager.bdTheme('#00000000', '#ffffff00')};
|
||||||
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
border: 1px solid #CCC;
|
border: 1px solid ${cssManager.bdTheme('#333', '#CCC')};
|
||||||
padding: 6px 10px 7px 10px;
|
padding: 6px 10px 7px 10px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
@ -53,15 +57,15 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mainbox .actions .actionButton:hover {
|
.mainbox .actions .actionButton:hover {
|
||||||
background: #efefef;
|
background: ${cssManager.bdTheme('#333333', '#efefef')};
|
||||||
border: 1px solid #efefef;
|
border: 1px solid ${cssManager.bdTheme('#333333', '#efefef')};
|
||||||
color: #333333;
|
color: ${cssManager.bdTheme('#fff', '#333333')};
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 300;
|
font-weight: 600;
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,18 +73,38 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
margin: 0px;
|
margin: 0px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 300;
|
font-weight: 600;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
`
|
||||||
|
]
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
${domtools.elementBasic.styles}
|
||||||
|
<style>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="actionButton">report new incident</div>
|
<div class="actionButton" @click=${this.dispatchReportNewIncident}>report new incident</div>
|
||||||
<div class="actionButton">subscribe</div>
|
<div class="actionButton" @click=${this.dispatchStatusSubscribe}>subscribe</div>
|
||||||
</div>
|
</div>
|
||||||
<h1>status.lossless.network</h1>
|
<h1>${this.pageTitle}</h1>
|
||||||
<h2>STATUS BOARD</h2>
|
<h2>STATUS BOARD</h2>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public dispatchReportNewIncident() {
|
||||||
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchStatusSubscribe() {
|
||||||
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
}
|
}
|
90
ts_web/elements/upl-statuspage-incidents.ts
Normal file
90
ts_web/elements/upl-statuspage-incidents.ts
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
import * as plugins from '../plugins.js';
|
||||||
|
import {
|
||||||
|
DeesElement,
|
||||||
|
property,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
css,
|
||||||
|
cssManager,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface HTMLElementTagNameMap {
|
||||||
|
'upl-statuspage-incidents': UplStatuspageIncidents;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@customElement('upl-statuspage-incidents')
|
||||||
|
export class UplStatuspageIncidents extends DeesElement {
|
||||||
|
// STATIC
|
||||||
|
public static demo = () => html` <upl-statuspage-incidents></upl-statuspage-incidents> `;
|
||||||
|
|
||||||
|
// INSTANCE
|
||||||
|
@property({
|
||||||
|
type: Array,
|
||||||
|
})
|
||||||
|
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: Array,
|
||||||
|
})
|
||||||
|
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
|
@property({
|
||||||
|
type: Boolean,
|
||||||
|
})
|
||||||
|
public whitelabel = false;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static styles = [
|
||||||
|
plugins.domtools.elementBasic.staticStyles,
|
||||||
|
css`
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
|
font-family: Inter;
|
||||||
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noIncidentBox {
|
||||||
|
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
||||||
|
padding: 10px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
];
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
<style></style>
|
||||||
|
<div class="mainbox">
|
||||||
|
<uplinternal-miniheading> Current Incidents </uplinternal-miniheading>
|
||||||
|
${this.currentIncidences.length
|
||||||
|
? html``
|
||||||
|
: html` <div class="noIncidentBox">No incidents ongoing.</div> `}
|
||||||
|
<uplinternal-miniheading> Past Incidents </uplinternal-miniheading>
|
||||||
|
${this.pastIncidences.length
|
||||||
|
? html``
|
||||||
|
: html` <div class="noIncidentBox">No past incidents in the last 90 days.</div> `}
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchReportNewIncident() {
|
||||||
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {}));
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchStatusSubscribe() {
|
||||||
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {}));
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
import { DeesElement, property, html, customElement, TemplateResult, cssManager, css } from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
@ -13,21 +13,18 @@ export class UplStatuspageStatusbar extends DeesElement {
|
|||||||
<upl-statuspage-statusbar></upl-statuspage-statusbar>
|
<upl-statuspage-statusbar></upl-statuspage-statusbar>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public static styles = [
|
||||||
return html`
|
cssManager.defaultStyles,
|
||||||
${domtools.elementBasic.styles}
|
css`
|
||||||
<style>
|
:host {
|
||||||
:host {
|
|
||||||
padding: 20px 0px 15px 0px;
|
padding: 20px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: #222222;
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
||||||
font-family: Roboto Mono;
|
font-family: Inter;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,8 +36,12 @@ 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!
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
import * as plugins from '../plugins.js';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import {
|
||||||
|
DeesElement,
|
||||||
|
property,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
css,
|
||||||
|
cssManager,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -11,60 +19,62 @@ declare global {
|
|||||||
|
|
||||||
@customElement('upl-statuspage-statusdetails')
|
@customElement('upl-statuspage-statusdetails')
|
||||||
export class UplStatuspageStatusdetails extends DeesElement {
|
export class UplStatuspageStatusdetails extends DeesElement {
|
||||||
public static demo = () => html`
|
public static demo = () => html` <upl-statuspage-statusdetails></upl-statuspage-statusdetails> `;
|
||||||
<upl-statuspage-statusdetails></upl-statuspage-statusdetails>
|
|
||||||
`;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static styles = [
|
||||||
|
plugins.domtools.elementBasic.staticStyles,
|
||||||
|
css`
|
||||||
|
:host {
|
||||||
|
position: relative;
|
||||||
|
padding: 0px 0px 15px 0px;
|
||||||
|
display: block;
|
||||||
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
||||||
|
font-family: Inter;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox {
|
||||||
|
margin: auto;
|
||||||
|
max-width: 900px;
|
||||||
|
text-align: right;
|
||||||
|
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
||||||
|
line-height: 50px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox .barContainer {
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
padding: 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox .barContainer .bar {
|
||||||
|
margin: 4px;
|
||||||
|
width: 11px;
|
||||||
|
border-radius: 3px;
|
||||||
|
height: 40px;
|
||||||
|
background: #2deb51;
|
||||||
|
}
|
||||||
|
.timeIndicator {
|
||||||
|
position: absolute;
|
||||||
|
width: 11px;
|
||||||
|
height: 11px;
|
||||||
|
background: #FF9800;
|
||||||
|
top: 56px;
|
||||||
|
left: 400px;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
];
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
${domtools.elementBasic.styles}
|
<style></style>
|
||||||
<style>
|
|
||||||
:host {
|
|
||||||
position: relative;
|
|
||||||
padding: 0px 0px 15px 0px;
|
|
||||||
display: block;
|
|
||||||
background: #222222;
|
|
||||||
font-family: Roboto Mono;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainbox {
|
|
||||||
margin: auto;
|
|
||||||
max-width: 900px;
|
|
||||||
text-align: right;
|
|
||||||
background: #404040;
|
|
||||||
line-height: 50px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainbox .barContainer {
|
|
||||||
display: flex;
|
|
||||||
padding: 10px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainbox .barContainer .bar {
|
|
||||||
margin: 4px;
|
|
||||||
width: 11px;
|
|
||||||
border-radius: 3px;
|
|
||||||
height: 40px;
|
|
||||||
background: #2DEB51;
|
|
||||||
}
|
|
||||||
.timeIndicator {
|
|
||||||
position: absolute;
|
|
||||||
width: 11px;
|
|
||||||
height: 11px;
|
|
||||||
background: #fff;
|
|
||||||
top: 90px;
|
|
||||||
left: 600px;
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<uplinternal-miniheading>Yesterday & Today</uplinternal-miniheading>
|
<uplinternal-miniheading>Yesterday & Today</uplinternal-miniheading>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<div class="barContainer">
|
<div class="barContainer">
|
||||||
@ -77,8 +87,8 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
}
|
}
|
||||||
return returnArray;
|
return returnArray;
|
||||||
})()}
|
})()}
|
||||||
|
<div class="timeIndicator"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeIndicator"></div>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,12 @@ import {
|
|||||||
html,
|
html,
|
||||||
customElement,
|
customElement,
|
||||||
TemplateResult,
|
TemplateResult,
|
||||||
|
css,
|
||||||
|
cssManager
|
||||||
} from '@designestate/dees-element';
|
} from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
import './internal/uplinternal-miniheading';
|
import './internal/uplinternal-miniheading.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -23,16 +25,15 @@ export class UplStatuspageStatusmonth extends DeesElement {
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public static styles = [
|
||||||
return html`
|
domtools.elementBasic.staticStyles,
|
||||||
${domtools.elementBasic.styles}
|
css`
|
||||||
<style>
|
:host {
|
||||||
:host {
|
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
display: block;
|
display: block;
|
||||||
background: #222222;
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};;
|
||||||
font-family: Roboto Mono;
|
font-family: Inter;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ export class UplStatuspageStatusmonth extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.statusMonth {
|
.statusMonth {
|
||||||
background: #404040;
|
background: ${cssManager.bdTheme('#ffffff', '#333333')};;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
@ -60,7 +61,12 @@ export class UplStatuspageStatusmonth extends DeesElement {
|
|||||||
background: #2deb51;
|
background: #2deb51;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
</style>
|
`
|
||||||
|
]
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
<style></style>
|
||||||
<uplinternal-miniheading>Last 150 days</uplinternal-miniheading>
|
<uplinternal-miniheading>Last 150 days</uplinternal-miniheading>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<div class="statusMonth">
|
<div class="statusMonth">
|
||||||
|
@ -1 +1 @@
|
|||||||
export * from './elements/index';
|
export * from './elements/index.js';
|
||||||
|
7
ts_web/plugins.ts
Normal file
7
ts_web/plugins.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
import * as uplInterfaces from '@uptimelink/interfaces';
|
||||||
|
|
||||||
|
export {
|
||||||
|
domtools,
|
||||||
|
uplInterfaces
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "es2017",
|
|
||||||
"module": "es2015",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"lib": ["es2017", "dom"],
|
|
||||||
"declaration": true,
|
|
||||||
"inlineSources": true,
|
|
||||||
"inlineSourceMap": true,
|
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"outDir": "dist/",
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"experimentalDecorators": true
|
|
||||||
}
|
|
||||||
}
|
|
8
tsconfig.json
Normal file
8
tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
|
||||||
"rules": {
|
|
||||||
"semicolon": [true, "always"],
|
|
||||||
"no-console": false,
|
|
||||||
"ordered-imports": false,
|
|
||||||
"object-literal-sort-keys": false,
|
|
||||||
"member-ordering": {
|
|
||||||
"options":{
|
|
||||||
"order": [
|
|
||||||
"static-method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultSeverity": "warning"
|
|
||||||
}
|
|
Reference in New Issue
Block a user