8 Commits

Author SHA1 Message Date
c36d0dc243 1.0.60 2020-11-29 02:11:29 +00:00
6d81526bd1 fix(core): update 2020-11-29 02:11:28 +00:00
dd8c40568e 1.0.59 2020-11-23 22:03:03 +00:00
192e976cf2 fix(core): update 2020-11-23 22:03:02 +00:00
30c1203c65 1.0.58 2020-09-19 16:00:48 +00:00
58e716b818 fix(core): update 2020-09-19 16:00:47 +00:00
4f14720ae0 1.0.57 2020-09-19 15:55:23 +00:00
0edc943e41 fix(core): update 2020-09-19 15:55:22 +00:00
3 changed files with 774 additions and 82 deletions

825
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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 {