Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
71e885f3e4 | |||
57bc2b76bc | |||
f21a20b652 | |||
91b9c424d8 | |||
5cf4752ad9 | |||
5f347153fc | |||
e1aebc7db8 | |||
97b88d965c | |||
37d343da03 | |||
47cb726716 | |||
4220131bc4 | |||
edee4fa446 | |||
c2a0fd26e2 | |||
693c8ca3f0 |
70
package-lock.json
generated
70
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-wcctools",
|
||||
"version": "1.0.47",
|
||||
"version": "1.0.54",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -1135,17 +1135,18 @@
|
||||
}
|
||||
},
|
||||
"@designestate/dees-domtools": {
|
||||
"version": "1.0.74",
|
||||
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-1.0.74.tgz",
|
||||
"integrity": "sha512-iqo6EyKpbHyKPgYA88omFzuBKQ47iGmsR92PbL/wsSxGvqtS/CuaShhrQN1+I6569eh9iqMNltwf9kRm29AGng==",
|
||||
"version": "1.0.81",
|
||||
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-domtools/-/dees-domtools-1.0.81.tgz",
|
||||
"integrity": "sha512-Djov5qo1zeM9uoBobApNTmI6CkXPm7ozx6m22EziAKMxcpa2Sa0UuLqpuUNmHlgm7I74MC3x6/gVCzkX3HNkMQ==",
|
||||
"requires": {
|
||||
"@apiglobal/typedrequest": "^1.0.54",
|
||||
"@designestate/dees-comms": "^1.0.7",
|
||||
"@pushrocks/lik": "^4.0.20",
|
||||
"@pushrocks/smartdelay": "^2.0.10",
|
||||
"@pushrocks/smartpromise": "^3.1.3",
|
||||
"@pushrocks/smartrouter": "^1.0.4",
|
||||
"@pushrocks/smartstate": "^1.0.17",
|
||||
"@pushrocks/smartrouter": "^1.0.6",
|
||||
"@pushrocks/smartrx": "^2.0.19",
|
||||
"@pushrocks/smartstate": "^1.0.21",
|
||||
"@pushrocks/webrequest": "^2.0.13",
|
||||
"@pushrocks/websetup": "^3.0.11",
|
||||
"@pushrocks/webstore": "^1.0.16",
|
||||
@ -1154,11 +1155,12 @@
|
||||
}
|
||||
},
|
||||
"@designestate/dees-element": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-element/-/dees-element-1.0.6.tgz",
|
||||
"integrity": "sha512-nYwFrXlDpm85fDDu9IkvrRWartgDabcxs3DDwNLKamd0DmL2EJjYrEpkme7V25gfw9TuwIPXmBcvpKpqrRtNcQ==",
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://verdaccio.lossless.one/@designestate%2fdees-element/-/dees-element-1.0.10.tgz",
|
||||
"integrity": "sha512-aYVFBnXOn5oLno4A9eAAtBg90xTTiGI7ys7tYJ1DlGVxPFi3HJcUAMZskm6KCVaTxyhcSl2RQHpp4UqeFDtCQw==",
|
||||
"requires": {
|
||||
"@designestate/dees-domtools": "^1.0.70",
|
||||
"@designestate/dees-domtools": "^1.0.80",
|
||||
"@pushrocks/smartrx": "^2.0.19",
|
||||
"lit-element": "^2.4.0"
|
||||
}
|
||||
},
|
||||
@ -1760,13 +1762,13 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartexpress": {
|
||||
"version": "3.0.97",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.97.tgz",
|
||||
"integrity": "sha512-mg7sAanDRpDgUGvUNY3fvaG8RWDN45JQIiv7d71O5Li8MACOpEGThJ05400RzHZ51EgXWwAUstikXsgN+iXUNg==",
|
||||
"version": "3.0.98",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartexpress/-/smartexpress-3.0.98.tgz",
|
||||
"integrity": "sha512-GQNeIZIVEMkTaH0WAkLxoeIax1KbDclXNpOrOHe9329YxgNSz+3KflxdhgcTvXnTz8QniL3VgvC+d+FbWLxg7g==",
|
||||
"requires": {
|
||||
"@apiglobal/typedrequest": "^1.0.53",
|
||||
"@pushrocks/lik": "^4.0.17",
|
||||
"@pushrocks/smartfeed": "^1.0.9",
|
||||
"@pushrocks/lik": "^4.0.20",
|
||||
"@pushrocks/smartfeed": "^1.0.10",
|
||||
"@pushrocks/smartfile": "^8.0.8",
|
||||
"@pushrocks/smartmanifest": "^1.0.8",
|
||||
"@pushrocks/smartmime": "^1.0.3",
|
||||
@ -1849,9 +1851,9 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartfeed": {
|
||||
"version": "1.0.9",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfeed/-/smartfeed-1.0.9.tgz",
|
||||
"integrity": "sha512-ntkvG/uGw8X7NO93LRuCAH7FkTVSRih1gLM8z/gilIQh6L5pMX9plnlx9w8RvspKgU4YMfl2Lw0kXUXzr79Cwg==",
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfeed/-/smartfeed-1.0.10.tgz",
|
||||
"integrity": "sha512-vu9UUQcw0UT0wblb/y0RbYtcp9ty9M4iRfqsv7utAWI9MRer4HcufWZO9M05oRrpxsGmGMi+W5a3DHZ6XhcmNA==",
|
||||
"requires": {
|
||||
"@tsclass/tsclass": "^3.0.29",
|
||||
"feed": "^4.2.1",
|
||||
@ -2187,9 +2189,9 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartrouter": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrouter/-/smartrouter-1.0.4.tgz",
|
||||
"integrity": "sha512-6ahtHvZvwH/IQh7EtachXJkHxfQZe3i/TqCxmzFdhppDTWek+v8E/fpHit0av/568tLmC6Jc2B+WHPge6whVhg==",
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartrouter/-/smartrouter-1.0.7.tgz",
|
||||
"integrity": "sha512-ns4ye4uyzjpFUDr/vciOZog4y5QDsFBxwnYmXkSMxCA7hwiL0Fn64lvCexjez05t6Gz54ge5yflWSvyv63X0kA==",
|
||||
"requires": {
|
||||
"path-to-regexp": "^6.1.0"
|
||||
}
|
||||
@ -2248,14 +2250,14 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartstate": {
|
||||
"version": "1.0.17",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartstate/-/smartstate-1.0.17.tgz",
|
||||
"integrity": "sha512-lzcN6zeGXdDxG67cJPSgC2Of0Up7iQf7hKI0KMAxricYCQp514DJYdfrv82SAEoTqB4eG4bOVqq5M9IYkvEfZw==",
|
||||
"version": "1.0.21",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartstate/-/smartstate-1.0.21.tgz",
|
||||
"integrity": "sha512-uyrnTrBoIP6Ka3pYAMZFZVZ4AOgFSTPgM5sURWMNogC5Fncx1A7PuDL5nE1oRJIZOl5U/kH3vq+/81gmPn4QbA==",
|
||||
"requires": {
|
||||
"@pushrocks/lik": "^4.0.12",
|
||||
"@pushrocks/smartpromise": "^3.0.6",
|
||||
"@pushrocks/smartrx": "^2.0.15",
|
||||
"rxjs": "^6.5.5"
|
||||
"@pushrocks/lik": "^4.0.20",
|
||||
"@pushrocks/smartpromise": "^3.1.3",
|
||||
"@pushrocks/smartrx": "^2.0.19",
|
||||
"rxjs": "^6.6.3"
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartstring": {
|
||||
@ -5204,9 +5206,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"fast-xml-parser": {
|
||||
"version": "3.17.4",
|
||||
"resolved": "https://verdaccio.lossless.one/fast-xml-parser/-/fast-xml-parser-3.17.4.tgz",
|
||||
"integrity": "sha512-qudnQuyYBgnvzf5Lj/yxMcf4L9NcVWihXJg7CiU1L+oUCq8MUnFEfH2/nXR/W5uq+yvUN1h7z6s7vs2v1WkL1A=="
|
||||
"version": "3.17.5",
|
||||
"resolved": "https://verdaccio.lossless.one/fast-xml-parser/-/fast-xml-parser-3.17.5.tgz",
|
||||
"integrity": "sha512-lEvThd1Xq+CCylf1n+05bUZCDZjTufaaaqpxM3JZ+4iDqtlG+d/oKgtMmg9GEMOuzBgUoalIzFOaClht9YiGJQ=="
|
||||
},
|
||||
"fastparse": {
|
||||
"version": "1.1.2",
|
||||
@ -6339,9 +6341,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"idb": {
|
||||
"version": "5.0.7",
|
||||
"resolved": "https://verdaccio.lossless.one/idb/-/idb-5.0.7.tgz",
|
||||
"integrity": "sha512-tXkkEtzOEolCKNLpxEvE5ctPqUhgTEi+wPWVWIWavl/Z0/NjSJx0o/79z4/etJWpEpVjhbQNZ7fvmp/UFv/Yog=="
|
||||
"version": "5.0.8",
|
||||
"resolved": "https://verdaccio.lossless.one/idb/-/idb-5.0.8.tgz",
|
||||
"integrity": "sha512-K9xInRkVbT3ZsYimD2KVj6B4E93IBvOjEQTryu99WuuN7G+7x3SzA79+yubbX0QRN9V64Gi+L+ulG5QYTVydOg=="
|
||||
},
|
||||
"ieee754": {
|
||||
"version": "1.2.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-wcctools",
|
||||
"version": "1.0.47",
|
||||
"version": "1.0.54",
|
||||
"private": false,
|
||||
"description": "wcc tools for creating element catalogues",
|
||||
"main": "dist_ts_web/index.js",
|
||||
@ -13,11 +13,11 @@
|
||||
"author": "Lossless GmbH",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
"@designestate/dees-domtools": "^1.0.74",
|
||||
"@designestate/dees-element": "^1.0.6",
|
||||
"@designestate/dees-domtools": "^1.0.81",
|
||||
"@designestate/dees-element": "^1.0.10",
|
||||
"@gitzone/tsrun": "^1.2.12",
|
||||
"@pushrocks/smartdelay": "^2.0.10",
|
||||
"@pushrocks/smartexpress": "^3.0.97",
|
||||
"@pushrocks/smartexpress": "^3.0.98",
|
||||
"lit-element": "^2.4.0",
|
||||
"lit-html": "^1.3.0",
|
||||
"typescript": "^4.1.2"
|
||||
|
@ -102,7 +102,7 @@ export class WccDashboard extends LitElement {
|
||||
if (typeof this.selectedItem === 'function') {
|
||||
return this.selectedItem();
|
||||
} else {
|
||||
console.error('The selected item looks strange:')
|
||||
console.error('The selected item looks strange:');
|
||||
console.log(this.selectedItem);
|
||||
}
|
||||
} else if (this.selectedType === 'element' && this.selectedItem) {
|
||||
@ -138,7 +138,9 @@ export class WccDashboard extends LitElement {
|
||||
|
||||
public async firstUpdated() {
|
||||
this.domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||
this.domtools.router.on('/:itemType/:itemName/:viewport/:theme', async (routeInfo) => {
|
||||
this.domtools.router.on(
|
||||
'/wcctools-route/:itemType/:itemName/:viewport/:theme',
|
||||
async (routeInfo) => {
|
||||
this.selectedType = routeInfo.params.itemType as TElementType;
|
||||
this.selectedItemName = routeInfo.params.itemName;
|
||||
this.selectedViewport = routeInfo.params.viewport as TViewport;
|
||||
@ -150,8 +152,11 @@ export class WccDashboard extends LitElement {
|
||||
}
|
||||
const domtoolsInstance = await plugins.deesDomtools.elementBasic.setup();
|
||||
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
|
||||
domtoolsInstance.themeManager.goBrightBoolean = this.selectedTheme === 'bright';
|
||||
});
|
||||
this.selectedTheme === 'bright'
|
||||
? domtoolsInstance.themeManager.goBright()
|
||||
: domtoolsInstance.themeManager.goDark();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
private updating = false;
|
||||
@ -176,9 +181,7 @@ export class WccDashboard extends LitElement {
|
||||
|
||||
public buildUrl() {
|
||||
this.domtools.router.pushUrl(
|
||||
`/${this.selectedType}/${this.selectedItemName}/${this.selectedViewport}/${
|
||||
this.selectedTheme
|
||||
}`
|
||||
`/wcctools-route/${this.selectedType}/${this.selectedItemName}/${this.selectedViewport}/${this.selectedTheme}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
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';
|
||||
|
||||
@customElement('wcc-frame')
|
||||
export class WccFrame extends LitElement {
|
||||
export class WccFrame extends DeesElement {
|
||||
@property()
|
||||
public viewport: string;
|
||||
|
||||
@ -12,8 +12,8 @@ export class WccFrame extends LitElement {
|
||||
<style>
|
||||
:host {
|
||||
border: 10px solid #ffaeaf;
|
||||
background: #222;
|
||||
position: absolute;
|
||||
background: ${this.goBright ? '#333': '#000'};
|
||||
left: 200px;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
@ -55,6 +55,16 @@ export class WccFrame extends LitElement {
|
||||
: html``}
|
||||
min-height: 100%;
|
||||
background:
|
||||
${this.goBright ? `
|
||||
radial-gradient(#CCCCCC 3px, transparent 4px),
|
||||
radial-gradient(#CCCCCC 3px, transparent 4px),
|
||||
linear-gradient(#eeeeee 4px, transparent 0),
|
||||
linear-gradient(45deg, transparent 74px, transparent 75px, #CCCCCC 75px, #CCCCCC 76px, transparent 77px, transparent 109px),
|
||||
linear-gradient(-45deg, transparent 75px, transparent 76px, #CCCCCC 76px, #CCCCCC 77px, transparent 78px, transparent 109px),
|
||||
#eeeeee;
|
||||
background-size: 109px 109px, 109px 109px,100% 6px, 109px 109px, 109px 109px;
|
||||
background-position: 54px 55px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
|
||||
` : `
|
||||
radial-gradient(#444444 3px, transparent 4px),
|
||||
radial-gradient(#444444 3px, transparent 4px),
|
||||
linear-gradient(#222222 4px, transparent 0),
|
||||
@ -63,6 +73,7 @@ export class WccFrame extends LitElement {
|
||||
#222222;
|
||||
background-size: 109px 109px, 109px 109px,100% 6px, 109px 109px, 109px 109px;
|
||||
background-position: 54px 55px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
|
||||
`}
|
||||
}
|
||||
</style>
|
||||
<div class="viewport">
|
||||
|
@ -62,6 +62,7 @@ export class WccProperties extends LitElement {
|
||||
}
|
||||
.viewportSelector,
|
||||
.themeSelector {
|
||||
user-select: none;
|
||||
border-right: 1px solid #999;
|
||||
}
|
||||
.selectorButtons2 {
|
||||
|
@ -44,6 +44,12 @@ export class WccSidebar extends LitElement {
|
||||
text-align: center;
|
||||
margin: 20px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.heading a {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.subheading {
|
||||
text-align: center;
|
||||
}
|
||||
@ -92,9 +98,10 @@ export class WccSidebar extends LitElement {
|
||||
|
||||
</style>
|
||||
<div class="heading">
|
||||
wcc-tools
|
||||
<a href="https://gitlab.com/designestate/dees-wcctools" target="_blank">wcctools</a>
|
||||
</div>
|
||||
<div class="subheading">
|
||||
by Lossless GmbH
|
||||
</div>
|
||||
<div class="menu">
|
||||
<h3>Live Websites</h3>
|
||||
@ -127,7 +134,7 @@ export class WccSidebar extends LitElement {
|
||||
const item = this.dashboardRef.elements[elementName];
|
||||
return html`
|
||||
<div
|
||||
class="selectOption ${this.selectedItem === item ? 'selected' : console.log('hi')}"
|
||||
class="selectOption ${this.selectedItem === item ? 'selected' : null}"
|
||||
@click=${async () => {
|
||||
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||
this.selectItem('element', elementName, item);
|
||||
|
Reference in New Issue
Block a user