Compare commits

..

6 Commits

Author SHA1 Message Date
1743490a26 1.0.41 2020-11-26 02:59:47 +00:00
2f9ec6a700 fix(core): update 2020-11-26 02:59:46 +00:00
3a89888289 1.0.40 2020-11-26 02:56:12 +00:00
98909c61ff fix(core): update 2020-11-26 02:56:11 +00:00
324808dd03 1.0.39 2020-11-26 02:50:50 +00:00
c5eec2ac22 fix(core): update 2020-11-26 02:50:50 +00:00
9 changed files with 973 additions and 2949 deletions

View File

@ -19,23 +19,35 @@ mirror:
stage: security stage: security
script: script:
- npmci git mirror - npmci git mirror
only:
- tags
tags: tags:
- lossless - lossless
- docker - docker
- notpriv - notpriv
audit: auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
script:
- npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high - npmci command npm audit --audit-level=high --only=dev
tags: tags:
- lossless
- docker - docker
- notpriv allow_failure: true
# ==================== # ====================
# test stage # test stage
@ -50,9 +62,7 @@ testStable:
- npmci npm test - npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- priv
testBuild: testBuild:
stage: test stage: test
@ -63,9 +73,7 @@ testBuild:
- npmci command npm run build - npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- notpriv
release: release:
stage: release stage: release
@ -85,6 +93,8 @@ release:
codequality: codequality:
stage: metadata stage: metadata
allow_failure: true allow_failure: true
only:
- tags
script: script:
- npmci command npm install -g tslint typescript - npmci command npm install -g tslint typescript
- npmci npm prepare - npmci npm prepare

View File

@ -15,7 +15,7 @@
"properties": { "properties": {
"projectType": { "projectType": {
"type": "string", "type": "string",
"enum": ["website", "element", "service", "npm"] "enum": ["website", "element", "service", "npm", "wcc"]
} }
} }
} }

View File

@ -9,7 +9,6 @@
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height"
/> />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<style> <style>
body { body {
@ -18,7 +17,8 @@
} }
</style> </style>
<script src="../test/index.ts"></script> <script src="./index.ts"></script>
</head> </head>
<body></body> <body>
</body>
</html> </html>

10
html/index.ts Normal file
View File

@ -0,0 +1,10 @@
// dees tools
import * as deesWccTools from '@designestate/dees-wcctools';
import * as deesDomTools from '@designestate/dees-domtools';
// elements and pages
import * as elements from '../ts_web/elements';
import * as pages from '../ts_web/pages';
deesWccTools.setupWccTools(elements as any, pages);
deesDomTools.elementBasic.setup();

View File

@ -1,6 +1,6 @@
{ {
"gitzone": { "gitzone": {
"projectType": "element", "projectType": "wcc",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "designestate", "gitscope": "designestate",

3865
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-wcctools", "name": "@designestate/dees-wcctools",
"version": "1.0.38", "version": "1.0.41",
"private": false, "private": false,
"description": "wcc tools for creating element catalogues", "description": "wcc tools for creating element catalogues",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",

View File

@ -20,8 +20,8 @@ export class TestDemoelement extends LitElement {
background: #000; background: #000;
} }
`)} `)}
</style> </style>
<div class="maincontainer">This is a demo element</div> <div class="maincontainer">This is a demo element</div>
`; `;
} }
} }

View File

@ -81,6 +81,8 @@ export class WccDashboard extends LitElement {
.dashboardRef=${this} .dashboardRef=${this}
.warning="${this.warning}" .warning="${this.warning}"
.selectedItem=${this.selectedItem} .selectedItem=${this.selectedItem}
.selectedViewport=${this.selectedViewport}
.selectedTheme=${this.selectedTheme}
@selectedViewport=${(eventArg) => { @selectedViewport=${(eventArg) => {
this.selectedViewport = eventArg.detail; this.selectedViewport = eventArg.detail;
this.performUpdate(); this.performUpdate();
@ -138,6 +140,7 @@ export class WccDashboard extends LitElement {
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport); domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
this.selectedViewport = routeInfo.params.viewport as TViewport; this.selectedViewport = routeInfo.params.viewport as TViewport;
this.selectedTheme = routeInfo.params.theme as TTheme; this.selectedTheme = routeInfo.params.theme as TTheme;
domtoolsInstance.themeManager.goBrightBoolean = this.selectedTheme === 'bright';
}); });
} }
@ -150,10 +153,8 @@ export class WccDashboard extends LitElement {
await this.domtools.router._handleRouteState(); await this.domtools.router._handleRouteState();
this.updating = true; this.updating = true;
const storeElement = this.selectedItem; const storeElement = this.selectedItem;
setTimeout(async () => { setTimeout(async () => {
this.selectedItem = null; this.selectedItem = null;
setTimeout(async () => { setTimeout(async () => {
this.selectedItem = storeElement; this.selectedItem = storeElement;
setTimeout(() => { setTimeout(() => {