10 Commits

Author SHA1 Message Date
617a3f307c 1.0.66 2021-09-27 14:53:41 +02:00
a577418132 fix(core): update 2021-09-27 14:53:41 +02:00
c969da7362 1.0.65 2021-09-27 13:11:35 +02:00
fd6427da1e fix(core): update 2021-09-27 13:11:34 +02:00
ad178bfec3 1.0.64 2021-09-27 02:49:49 +02:00
22db7a50de fix(core): update 2021-09-27 02:49:49 +02:00
f010f1e32b 1.0.63 2021-09-27 02:40:49 +02:00
1e24a6a671 fix(core): update 2021-09-27 02:40:49 +02:00
69583a90ad 1.0.62 2021-09-27 00:49:30 +02:00
efb2e53e0c fix(core): update 2021-09-27 00:49:30 +02:00
4 changed files with 6782 additions and 5553 deletions

View File

@ -13,6 +13,7 @@
}, },
"npmci": { "npmci": {
"npmGlobalTools": [], "npmGlobalTools": [],
"npmAccessLevel": "private" "npmAccessLevel": "private",
"npmRegistryUrl": "verdaccio.lossless.one"
} }
} }

12237
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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,26 +18,23 @@ 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', {}));
}))
} }
} }