fix(core): update
This commit is contained in:
parent
78811a2879
commit
1903687a46
19
package-lock.json
generated
19
package-lock.json
generated
@ -14,7 +14,7 @@
|
|||||||
"@designestate/dees-wcctools": "^1.0.57",
|
"@designestate/dees-wcctools": "^1.0.57",
|
||||||
"@gitzone/tsrun": "^1.2.17",
|
"@gitzone/tsrun": "^1.2.17",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@pushrocks/smartexpress": "^3.0.103",
|
"@uptimelink/interfaces": "^1.0.10",
|
||||||
"typescript": "^4.4.3"
|
"typescript": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -3810,6 +3810,15 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/@uptimelink/interfaces": {
|
||||||
|
"version": "1.0.10",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@uptimelink%2finterfaces/-/interfaces-1.0.10.tgz",
|
||||||
|
"integrity": "sha512-nZMNFCPuedIfJherqHXKKlc3w6XlxG1fwD2N+SK5sc00V52O9+klPHnuSiip/b+MnVk9tgpqFmuj0WAc6nimaw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@apiglobal/typedrequest-interfaces": "^1.0.15"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/abab": {
|
"node_modules/abab": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/abab/-/abab-2.0.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/abab/-/abab-2.0.5.tgz",
|
||||||
@ -17708,6 +17717,14 @@
|
|||||||
"integrity": "sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==",
|
"integrity": "sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@uptimelink/interfaces": {
|
||||||
|
"version": "1.0.10",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/@uptimelink%2finterfaces/-/interfaces-1.0.10.tgz",
|
||||||
|
"integrity": "sha512-nZMNFCPuedIfJherqHXKKlc3w6XlxG1fwD2N+SK5sc00V52O9+klPHnuSiip/b+MnVk9tgpqFmuj0WAc6nimaw==",
|
||||||
|
"requires": {
|
||||||
|
"@apiglobal/typedrequest-interfaces": "^1.0.15"
|
||||||
|
}
|
||||||
|
},
|
||||||
"abab": {
|
"abab": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.5",
|
||||||
"resolved": "https://verdaccio.lossless.one/abab/-/abab-2.0.5.tgz",
|
"resolved": "https://verdaccio.lossless.one/abab/-/abab-2.0.5.tgz",
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"@designestate/dees-wcctools": "^1.0.57",
|
"@designestate/dees-wcctools": "^1.0.57",
|
||||||
"@gitzone/tsrun": "^1.2.17",
|
"@gitzone/tsrun": "^1.2.17",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@pushrocks/smartexpress": "^3.0.103",
|
"@uptimelink/interfaces": "^1.0.10",
|
||||||
"typescript": "^4.4.3"
|
"typescript": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
export * from './upl-statuspage-assetsselector';
|
export * from './upl-statuspage-assetsselector';
|
||||||
export * from './upl-statuspage-footer';
|
export * from './upl-statuspage-footer';
|
||||||
export * from './upl-statuspage-header';
|
export * from './upl-statuspage-header';
|
||||||
|
export * from './upl-statuspage-incidents';
|
||||||
export * from './upl-statuspage-statusbar';
|
export * from './upl-statuspage-statusbar';
|
||||||
export * from './upl-statuspage-statusdetails';
|
export * from './upl-statuspage-statusdetails';
|
||||||
export * from './upl-statuspage-statusmonth';
|
export * from './upl-statuspage-statusmonth';
|
||||||
|
@ -33,11 +33,17 @@ export class UplStatuspageFooter extends DeesElement {
|
|||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
background: ${cssManager.bdTheme('#eeeeeb', '#222222')};
|
background: ${cssManager.bdTheme('#ffffff', '#000000')};
|
||||||
font-family: Roboto Mono;
|
font-family: Roboto Mono;
|
||||||
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mainbox {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: auto;
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
`
|
`
|
||||||
]
|
]
|
||||||
|
95
ts_web/elements/upl-statuspage-incidents.ts
Normal file
95
ts_web/elements/upl-statuspage-incidents.ts
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
import * as plugins from '../plugins';
|
||||||
|
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: Roboto Mono;
|
||||||
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox {
|
||||||
|
max-width: 900px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.noIncidentBox {
|
||||||
|
background: #333;
|
||||||
|
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>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchReportNewIncident() {
|
||||||
|
this.dispatchEvent(new CustomEvent('reportNewIncident', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispatchStatusSubscribe() {
|
||||||
|
this.dispatchEvent(new CustomEvent('statusSubscribe', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,13 @@
|
|||||||
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
import * as plugins from '../plugins';
|
||||||
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';
|
||||||
|
|
||||||
@ -11,20 +19,15 @@ 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 render(): TemplateResult {
|
public static styles = [
|
||||||
return html`
|
plugins.domtools.elementBasic.staticStyles,
|
||||||
${domtools.elementBasic.styles}
|
css`
|
||||||
<style>
|
|
||||||
:host {
|
:host {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0px 0px 15px 0px;
|
padding: 0px 0px 15px 0px;
|
||||||
@ -44,8 +47,10 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mainbox .barContainer {
|
.mainbox .barContainer {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px 6px;
|
padding: 6px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainbox .barContainer .bar {
|
.mainbox .barContainer .bar {
|
||||||
@ -53,18 +58,23 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
width: 11px;
|
width: 11px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background: #2DEB51;
|
background: #2deb51;
|
||||||
}
|
}
|
||||||
.timeIndicator {
|
.timeIndicator {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 11px;
|
width: 11px;
|
||||||
height: 11px;
|
height: 11px;
|
||||||
background: #fff;
|
background: #FF9800;
|
||||||
top: 90px;
|
top: 56px;
|
||||||
left: 600px;
|
left: 400px;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
</style>
|
`,
|
||||||
|
];
|
||||||
|
|
||||||
|
public render(): TemplateResult {
|
||||||
|
return html`
|
||||||
|
<style></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,9 +87,9 @@ export class UplStatuspageStatusdetails extends DeesElement {
|
|||||||
}
|
}
|
||||||
return returnArray;
|
return returnArray;
|
||||||
})()}
|
})()}
|
||||||
</div>
|
|
||||||
<div class="timeIndicator"></div>
|
<div class="timeIndicator"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -4,6 +4,8 @@ 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';
|
||||||
|
|
||||||
@ -23,10 +25,9 @@ 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;
|
||||||
@ -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">
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user