Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
617a3f307c | |||
a577418132 | |||
c969da7362 | |||
fd6427da1e | |||
ad178bfec3 | |||
22db7a50de | |||
f010f1e32b | |||
1e24a6a671 | |||
69583a90ad | |||
efb2e53e0c |
@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"npmci": {
|
"npmci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "private"
|
"npmAccessLevel": "private",
|
||||||
|
"npmRegistryUrl": "verdaccio.lossless.one"
|
||||||
}
|
}
|
||||||
}
|
}
|
12237
package-lock.json
generated
12237
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptimelink_private/catalog",
|
"name": "@uptimelink_private/catalog",
|
||||||
"version": "1.0.61",
|
"version": "1.0.66",
|
||||||
"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",
|
||||||
@ -13,9 +13,9 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.95",
|
"@designestate/dees-domtools": "^1.0.96",
|
||||||
"@designestate/dees-element": "^1.0.25",
|
"@designestate/dees-element": "^1.0.26",
|
||||||
"@designestate/dees-wcctools": "^1.0.57",
|
"@designestate/dees-wcctools": "^1.0.59",
|
||||||
"@gitzone/tsrun": "^1.2.17",
|
"@gitzone/tsrun": "^1.2.17",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@uptimelink/interfaces": "^1.0.10",
|
"@uptimelink/interfaces": "^1.0.10",
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
import * as plugins from '../plugins';
|
import * as plugins from '../plugins';
|
||||||
import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element';
|
import {
|
||||||
|
DeesElement,
|
||||||
|
property,
|
||||||
|
html,
|
||||||
|
customElement,
|
||||||
|
TemplateResult,
|
||||||
|
css,
|
||||||
|
cssManager,
|
||||||
|
} from '@designestate/dees-element';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -10,27 +18,24 @@ declare global {
|
|||||||
@customElement('upl-statuspage-incidents')
|
@customElement('upl-statuspage-incidents')
|
||||||
export class UplStatuspageIncidents extends DeesElement {
|
export class UplStatuspageIncidents extends DeesElement {
|
||||||
// STATIC
|
// STATIC
|
||||||
public static demo = () => html`
|
public static demo = () => html` <upl-statuspage-incidents></upl-statuspage-incidents> `;
|
||||||
<upl-statuspage-incidents></upl-statuspage-incidents>
|
|
||||||
`;
|
|
||||||
|
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
@property({
|
@property({
|
||||||
type: Array
|
type: Array,
|
||||||
})
|
})
|
||||||
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: Array
|
type: Array,
|
||||||
})
|
})
|
||||||
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
|
||||||
|
|
||||||
@property({
|
@property({
|
||||||
type: Boolean
|
type: Boolean,
|
||||||
})
|
})
|
||||||
public whitelabel = false;
|
public whitelabel = false;
|
||||||
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
@ -39,57 +44,47 @@ export class UplStatuspageIncidents extends DeesElement {
|
|||||||
plugins.domtools.elementBasic.staticStyles,
|
plugins.domtools.elementBasic.staticStyles,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
||||||
font-family: Roboto Mono;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainbox {
|
.mainbox {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noIncidentBox {
|
.noIncidentBox {
|
||||||
background: #333;
|
background: #333;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
}
|
||||||
}
|
`,
|
||||||
|
];
|
||||||
`
|
|
||||||
]
|
|
||||||
|
|
||||||
public render(): TemplateResult {
|
public render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
<style></style>
|
<style></style>
|
||||||
<div class="mainbox">
|
<div class="mainbox">
|
||||||
<uplinternal-miniheading>
|
<uplinternal-miniheading> Current Incidents </uplinternal-miniheading>
|
||||||
Current Incidents
|
${this.currentIncidences.length
|
||||||
</uplinternal-miniheading>
|
? html``
|
||||||
<div class="noIncidentBox">
|
: html` <div class="noIncidentBox">No incidents ongoing.</div> `}
|
||||||
No incidents ongoing.
|
<uplinternal-miniheading> Past Incidents </uplinternal-miniheading>
|
||||||
</div>
|
${this.pastIncidences.length
|
||||||
<uplinternal-miniheading>
|
? html``
|
||||||
Past Incidents
|
: html` <div class="noIncidentBox">No past incidents in the last 90 days.</div> `}
|
||||||
</uplinternal-miniheading>
|
|
||||||
<div class="noIncidentBox">
|
|
||||||
No past incidents in the last 90 days.
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispatchReportNewIncident() {
|
public dispatchReportNewIncident() {
|
||||||
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {}));
|
||||||
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispatchStatusSubscribe() {
|
public dispatchStatusSubscribe() {
|
||||||
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {}));
|
||||||
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user