Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
c36d0dc243 | |||
6d81526bd1 | |||
dd8c40568e | |||
192e976cf2 | |||
30c1203c65 | |||
58e716b818 | |||
4f14720ae0 | |||
0edc943e41 |
831
package-lock.json
generated
831
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@uptimelink/webwidget",
|
"name": "@uptimelink/webwidget",
|
||||||
"version": "1.0.56",
|
"version": "1.0.60",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "the webwidget for public use of uptimelink",
|
"description": "the webwidget for public use of uptimelink",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
@ -13,13 +13,11 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@designestate/dees-domtools": "^1.0.41",
|
"@designestate/dees-domtools": "^1.0.74",
|
||||||
"@designestate/dees-wcctools": "^1.0.37",
|
"@designestate/dees-element": "^1.0.6",
|
||||||
|
"@designestate/dees-wcctools": "^1.0.47",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@gitzone/tsrun": "^1.2.12",
|
||||||
"@losslessone_private/loint-pubapi": "^1.0.9",
|
"typescript": "^4.1.2"
|
||||||
"@pushrocks/smartexpress": "^3.0.76",
|
|
||||||
"lit-element": "^2.3.1",
|
|
||||||
"typescript": "^3.9.7"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@gitzone/tsbuild": "^2.1.24",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { LitElement, property, html, customElement, TemplateResult } from 'lit-element';
|
import { DeesElement, property, html, customElement, TemplateResult } from '@designestate/dees-element';
|
||||||
import * as domtools from '@designestate/dees-domtools';
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
@customElement('uptimelink-webwidget')
|
@customElement('uptimelink-webwidget')
|
||||||
export class UptimelinkWebwidget extends LitElement {
|
export class UptimelinkWebwidget extends DeesElement {
|
||||||
public static demo = () => html`
|
public static demo = () => html`
|
||||||
<uptimelink-webwidget projectSlug="uptime.link"></uptimelink-webwidget>
|
<uptimelink-webwidget projectSlug="uptime.link"></uptimelink-webwidget>
|
||||||
`;
|
`;
|
||||||
@ -19,7 +19,11 @@ export class UptimelinkWebwidget extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
${domtools.elementBasic.styles}
|
${domtools.elementBasic.styles}
|
||||||
<style>
|
<style>
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
.mainbox {
|
.mainbox {
|
||||||
|
line-height: 1em;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 26px auto;
|
grid-template-columns: 26px auto;
|
||||||
@ -30,9 +34,10 @@ export class UptimelinkWebwidget extends LitElement {
|
|||||||
width: 150px;
|
width: 150px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background: #111;
|
background: ${this.goBright ? '#fff' : '#222' };
|
||||||
|
box-shadow: ${this.goBright ? '0px 0px 5px rgba(0,0,0,0.1)' : ''};
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
color: #CCC;
|
color: ${this.goBright ? '#333' : '#CCC' };
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.statusindicator {
|
.statusindicator {
|
||||||
|
Reference in New Issue
Block a user