fix(core): update
This commit is contained in:
parent
b562be8529
commit
b6eef831c6
17928
package-lock.json
generated
17928
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -13,18 +13,18 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.85",
|
"@designestate/dees-domtools": "^1.0.95",
|
||||||
"@designestate/dees-element": "^1.0.10",
|
"@designestate/dees-element": "^1.0.25",
|
||||||
"@designestate/dees-wcctools": "^1.0.54",
|
"@designestate/dees-wcctools": "^1.0.57",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.17",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.10",
|
"@losslessone_private/loint-pubapi": "^1.0.10",
|
||||||
"@pushrocks/smartexpress": "^3.0.100",
|
"@pushrocks/smartexpress": "^3.0.103",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@gitzone/tsbuild": "^2.1.27",
|
||||||
"@gitzone/tsbundle": "^1.0.80",
|
"@gitzone/tsbundle": "^1.0.87",
|
||||||
"@gitzone/tswatch": "^1.0.52",
|
"@gitzone/tswatch": "^1.0.56",
|
||||||
"@pushrocks/projectinfo": "^4.0.5",
|
"@pushrocks/projectinfo": "^4.0.5",
|
||||||
"tslint": "^6.1.3",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.17.0"
|
"tslint-config-prettier": "^1.17.0"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export * from './upl-statuspage-assetsselector';
|
export * from './upl-statuspage-assetsselector';
|
||||||
|
export * from './upl-statuspage-footer';
|
||||||
export * from './upl-statuspage-header';
|
export * from './upl-statuspage-header';
|
||||||
export * from './upl-statuspage-statusbar';
|
export * from './upl-statuspage-statusbar';
|
||||||
export * from './upl-statuspage-statusdetails';
|
export * from './upl-statuspage-statusdetails';
|
||||||
|
66
ts_web/elements/upl-statuspage-footer.ts
Normal file
66
ts_web/elements/upl-statuspage-footer.ts
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
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('#eeeeeb', '#222222')};
|
||||||
|
font-family: Roboto Mono;
|
||||||
|
color: ${cssManager.bdTheme('#333333', '#ffffff')};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
`
|
||||||
|
]
|
||||||
|
|
||||||
|
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: Roboto Mono;
|
||||||
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,9 +57,9 @@ 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 {
|
||||||
@ -72,15 +76,35 @@ export class UplStatuspageHeader extends DeesElement {
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
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', {
|
||||||
|
|
||||||
|
}))
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user