6 Commits

Author SHA1 Message Date
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 6454 additions and 5457 deletions

View File

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

11749
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@uptimelink_private/catalog",
"version": "1.0.61",
"version": "1.0.64",
"private": false,
"description": "a catalog with webcomponents for uptimelink dashboard",
"main": "dist_ts_web/index.js",

View File

@ -1,5 +1,13 @@
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 {
interface HTMLElementTagNameMap {
@ -10,27 +18,24 @@ declare global {
@customElement('upl-statuspage-incidents')
export class UplStatuspageIncidents extends DeesElement {
// STATIC
public static demo = () => html`
<upl-statuspage-incidents></upl-statuspage-incidents>
`;
public static demo = () => html` <upl-statuspage-incidents></upl-statuspage-incidents> `;
// INSTANCE
@property({
type: Array
type: Array,
})
public currentIncidences: plugins.uplInterfaces.data.IIncident[] = [];
@property({
type: Array
type: Array,
})
public pastIncidences: plugins.uplInterfaces.data.IIncident[] = [];
@property({
type: Boolean
type: Boolean,
})
public whitelabel = false;
constructor() {
super();
}
@ -55,41 +60,31 @@ export class UplStatuspageIncidents extends DeesElement {
padding: 10px;
margin-bottom: 15px;
border-radius: 3px;
}
`
]
`,
];
public render(): TemplateResult {
return html`
<style></style>
<div class="mainbox">
<uplinternal-miniheading>
Current Incidents
</uplinternal-miniheading>
<div class="noIncidentBox">
No incidents ongoing.
</div>
<uplinternal-miniheading>
Past Incidents
</uplinternal-miniheading>
<div class="noIncidentBox">
No past incidents in the last 90 days.
</div>
<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', {
}))
this.dispatchEvent(new CustomEvent('reportNewIncident', {}));
}
public dispatchStatusSubscribe() {
this.dispatchEvent(new CustomEvent('statusSubscribe', {
}))
this.dispatchEvent(new CustomEvent('statusSubscribe', {}));
}
}