Compare commits

...

12 Commits

Author SHA1 Message Date
5e1a44ad88 1.0.64 2020-11-21 16:50:14 +00:00
093eae2c97 fix(core): update 2020-11-21 16:50:13 +00:00
991d318de6 1.0.63 2020-11-06 01:27:47 +00:00
c7c3650fe9 fix(core): update 2020-11-06 01:27:46 +00:00
8d355f234f 1.0.62 2020-11-05 20:08:07 +00:00
a5c22ec1db fix(core): update 2020-11-05 20:08:07 +00:00
f5263a0cc4 1.0.61 2020-11-05 18:50:28 +00:00
4a022a7d1d fix(core): update 2020-11-05 18:50:28 +00:00
bd6ba6d6db 1.0.60 2020-11-05 18:08:42 +00:00
317bc63bc7 fix(core): update 2020-11-05 18:08:42 +00:00
22eeb7809b 1.0.59 2020-11-05 17:37:45 +00:00
fdd550ec21 fix(core): update 2020-11-05 17:37:45 +00:00
4 changed files with 15 additions and 9 deletions

9
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "1.0.58", "version": "1.0.64",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@ -2189,10 +2189,11 @@
} }
}, },
"@pushrocks/websetup": { "@pushrocks/websetup": {
"version": "3.0.6", "version": "3.0.11",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-3.0.6.tgz", "resolved": "https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-3.0.11.tgz",
"integrity": "sha512-rJAIZn30mUjNC/XOLih3q6lZ/YnPSN6vbBYS4TY1V97RieuqNxrZER+2LB+xSP7KvBnJF5RyerPQzqYp0hYq+w==", "integrity": "sha512-5nQqrQSiP5/WUv5pLsmjYAkfGosi2DqEH1mNrliOTr6iA8syGQ7bOQk4JY7jApjk64wO5L7l8qBGvKJuZ+p9Dw==",
"requires": { "requires": {
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartpromise": "^3.1.3", "@pushrocks/smartpromise": "^3.1.3",
"@tsclass/tsclass": "^3.0.29" "@tsclass/tsclass": "^3.0.29"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "1.0.58", "version": "1.0.64",
"private": false, "private": false,
"description": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -30,7 +30,7 @@
"@pushrocks/smartrouter": "^1.0.4", "@pushrocks/smartrouter": "^1.0.4",
"@pushrocks/smartstate": "^1.0.17", "@pushrocks/smartstate": "^1.0.17",
"@pushrocks/webrequest": "^2.0.13", "@pushrocks/webrequest": "^2.0.13",
"@pushrocks/websetup": "^3.0.6", "@pushrocks/websetup": "^3.0.11",
"@pushrocks/webstore": "^1.0.16", "@pushrocks/webstore": "^1.0.16",
"lit-element": "^2.4.0", "lit-element": "^2.4.0",
"sweet-scroll": "^4.0.0" "sweet-scroll": "^4.0.0"

View File

@ -64,7 +64,11 @@ export class DomTools {
bodyElement: null, bodyElement: null,
}; };
public websetup: WebSetup; public websetup: WebSetup = new WebSetup({
metaObject: {
title: 'loading...'
}
});
public smartstate = new plugins.smartstate.Smartstate(); public smartstate = new plugins.smartstate.Smartstate();
public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', { public domToolsStatePart = this.smartstate.getStatePart<IDomToolsState>('domtools', {
@ -145,7 +149,7 @@ export class DomTools {
} }
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) { public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
this.websetup = new plugins.websetup.WebSetup(optionsArg); await this.websetup.setup(optionsArg);
await this.websetup.readyPromise; await this.websetup.readyPromise;
} }
} }

View File

@ -22,7 +22,7 @@ export const styles = html`
* a basic setup for elements * a basic setup for elements
* makes sure everything is in check * makes sure everything is in check
*/ */
export const setup = async () => { export const setup = async (): Promise<DomTools> => {
const domTools = await DomTools.setupDomTools(); const domTools = await DomTools.setupDomTools();
domTools.runOnce('elementBasicSetup', async () => { domTools.runOnce('elementBasicSetup', async () => {
// bodyStyles // bodyStyles
@ -55,4 +55,5 @@ export const setup = async () => {
${scrollBarStyles} ${scrollBarStyles}
`); `);
}); });
return domTools;
}; };