Compare commits

...

6 Commits

Author SHA1 Message Date
6917145b58 1.0.73 2022-03-24 18:30:55 +01:00
2e2ad98ed8 fix(core): update 2022-03-24 18:30:54 +01:00
68375a5e58 1.0.72 2022-03-24 17:08:26 +01:00
5876225b39 fix(core): update 2022-03-24 17:08:25 +01:00
342ac96429 1.0.71 2022-03-24 16:14:12 +01:00
85a472fe1c fix(core): update 2022-03-24 16:14:12 +01:00
9 changed files with 27 additions and 41 deletions

View File

@ -12,6 +12,9 @@ stages:
- release
- metadata
before_script:
- npm install -g @shipzone/npmci
# ====================
# security stage
# ====================
@ -36,6 +39,7 @@ auditProductionDependencies:
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
@ -96,10 +100,9 @@ codequality:
only:
- tags
script:
- npmci command npm install -g tslint typescript
- npmci command npm install -g typescript
- npmci npm prepare
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- lossless
- docker

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "current file",
"type": "node",
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"args": [
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "test.ts",
"type": "node",
"request": "launch",
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
"type": "node-terminal"
}
]
}

View File

@ -17,7 +17,7 @@
}
</style>
<script src="./index.ts"></script>
<script type="module" src="/bundle.js"></script>
</head>
<body>
</body>

View File

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

View File

@ -5,7 +5,7 @@
"githost": "gitlab.com",
"gitscope": "designestate",
"gitrepo": "dees-wcctools",
"shortDescription": "wcc tools for creating element catalogues",
"description": "wcc tools for creating element catalogues",
"npmPackagename": "@designestate/dees-wcctools",
"license": "MIT",
"projectDomain": "design.estate"

18
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@designestate/dees-wcctools",
"version": "1.0.70",
"version": "1.0.73",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@designestate/dees-wcctools",
"version": "1.0.70",
"version": "1.0.73",
"license": "UNLICENSED",
"dependencies": {
"@designestate/dees-domtools": "^2.0.1",
@ -16,7 +16,7 @@
"@pushrocks/smartexpress": "^4.0.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.60",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.101",
"@gitzone/tswatch": "^1.0.73",
"@pushrocks/projectinfo": "^4.0.5",
@ -1889,9 +1889,9 @@
}
},
"node_modules/@gitzone/tsbuild": {
"version": "2.1.60",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.60.tgz",
"integrity": "sha512-uGFp5Al8hGz/XsYnaWOvfIDHa34bik06JH/fo248TDmpBxk4dgmA2N/VV3qEnUEwGNaO7n2x+4Tc8K6ZnhRhEg==",
"version": "2.1.61",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.61.tgz",
"integrity": "sha512-wKMl3OK6YcXcPutQqOtuZvt2GhxpO+DrvLJ/75zyfEF5JVzOtBdfdfd4Nv3prDKBpViXaqgQVVf1BARKQVA7wA==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -11541,9 +11541,9 @@
}
},
"@gitzone/tsbuild": {
"version": "2.1.60",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.60.tgz",
"integrity": "sha512-uGFp5Al8hGz/XsYnaWOvfIDHa34bik06JH/fo248TDmpBxk4dgmA2N/VV3qEnUEwGNaO7n2x+4Tc8K6ZnhRhEg==",
"version": "2.1.61",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.61.tgz",
"integrity": "sha512-wKMl3OK6YcXcPutQqOtuZvt2GhxpO+DrvLJ/75zyfEF5JVzOtBdfdfd4Nv3prDKBpViXaqgQVVf1BARKQVA7wA==",
"dev": true,
"requires": {
"@pushrocks/early": "^3.0.6",

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-wcctools",
"version": "1.0.70",
"version": "1.0.73",
"private": false,
"description": "wcc tools for creating element catalogues",
"main": "dist_ts_web/index.js",
@ -21,7 +21,7 @@
"@pushrocks/smartexpress": "^4.0.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.60",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.101",
"@gitzone/tswatch": "^1.0.73",
"@pushrocks/projectinfo": "^4.0.5",

View File

@ -86,7 +86,7 @@ export class TestDemoelement extends DeesElement {
border-radius: 50px;
}
`)}
pre b {
color: green;
}

View File

@ -101,13 +101,14 @@ export class WccDashboard extends DeesElement {
${(() => {
if (this.selectedType === 'page' && this.selectedItem) {
if (typeof this.selectedItem === 'function') {
console.log('slotting page.');
return this.selectedItem();
} else {
console.error('The selected item looks strange:');
console.log(this.selectedItem);
}
} else if (this.selectedType === 'element' && this.selectedItem) {
// console.log(this.selectedItem);
console.log('slotting element.');
const anonItem: any = this.selectedItem;
if (!anonItem.demo) {
this.setWarning(`component ${anonItem.name} does not expose a demo property.`);