fix(core): update
This commit is contained in:
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', {
|
||||
|
||||
}))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user