Compare commits
95 Commits
Author | SHA1 | Date | |
---|---|---|---|
4456f00816 | |||
b60a1bebe0 | |||
94127227a6 | |||
b5af1b1226 | |||
a6f382dd7f | |||
0de00cb2c1 | |||
570a026cf8 | |||
48b5cc770c | |||
7ae2de5843 | |||
e4d87ae882 | |||
259a669e24 | |||
bf461dd1a0 | |||
63c9ae97d4 | |||
a83239e0d9 | |||
8da64f1b50 | |||
2d4c0e4e49 | |||
1c8f7fa59e | |||
a613c0aca2 | |||
127564cd71 | |||
e077bf5b25 | |||
64a3f57813 | |||
1315e8c3f6 | |||
d059862841 | |||
ad34affb9e | |||
011b3fb76a | |||
47099d02b5 | |||
f4029ed008 | |||
d5732822e4 | |||
c467a92e7c | |||
746c1148e3 | |||
d75e66ba78 | |||
7c805a075e | |||
5e1a44ad88 | |||
093eae2c97 | |||
991d318de6 | |||
c7c3650fe9 | |||
8d355f234f | |||
a5c22ec1db | |||
f5263a0cc4 | |||
4a022a7d1d | |||
bd6ba6d6db | |||
317bc63bc7 | |||
22eeb7809b | |||
fdd550ec21 | |||
9db1f92ba3 | |||
772d0b0b97 | |||
a68e9e1bf9 | |||
f9507b0dbd | |||
f8c1a0135a | |||
7d884f6556 | |||
8a8ee5cd7b | |||
1660381be6 | |||
f0ad441415 | |||
27c087b693 | |||
63463a751c | |||
a01f5a5b8a | |||
bb1ad4e037 | |||
eb871161f9 | |||
090e5b4d42 | |||
8168dd1a0c | |||
de15bc0d1c | |||
13fa3d655e | |||
18b93b860d | |||
e8e6416b6f | |||
fbe2f381c9 | |||
3cb0aceaad | |||
6d6c92eee4 | |||
4385909677 | |||
2dc36d8170 | |||
ffbde62744 | |||
7bde843e43 | |||
faa7adcffe | |||
7977538c05 | |||
afaa88047c | |||
8aabe2820e | |||
570d370c97 | |||
73552ad80f | |||
537902aa53 | |||
e033bfa5b3 | |||
4983e1ed90 | |||
899775b050 | |||
7655fc0348 | |||
8aa5576318 | |||
1ff54b0fcd | |||
3901258272 | |||
27380d1483 | |||
e2f9991f96 | |||
133ce80b0a | |||
cf12f45c9b | |||
6cc5ec315e | |||
88810bae2c | |||
21369d8da5 | |||
a5973944ee | |||
ad3f4b31fa | |||
91b50ecde5 |
@ -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
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -15,7 +15,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"projectType": {
|
"projectType": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["website", "element", "service", "npm"]
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10007
package-lock.json
generated
10007
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
37
package.json
37
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@designestate/dees-domtools",
|
"name": "@designestate/dees-domtools",
|
||||||
"version": "1.0.32",
|
"version": "1.0.80",
|
||||||
"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",
|
||||||
@ -13,23 +13,27 @@
|
|||||||
"format": "(gitzone format)"
|
"format": "(gitzone format)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.0.22",
|
"@gitzone/tsbuild": "^2.1.25",
|
||||||
"@gitzone/tsbundle": "^1.0.69",
|
"@gitzone/tsbundle": "^1.0.78",
|
||||||
"@gitzone/tstest": "^1.0.15",
|
"@gitzone/tstest": "^1.0.52",
|
||||||
"@pushrocks/tapbundle": "^3.0.7",
|
"@pushrocks/tapbundle": "^3.2.9",
|
||||||
"@types/node": "^14.0.5",
|
"@types/node": "^14.14.10",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.3",
|
||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apiglobal/typedrequest": "^1.0.38",
|
"@apiglobal/typedrequest": "^1.0.54",
|
||||||
"@pushrocks/lik": "^4.0.13",
|
"@designestate/dees-comms": "^1.0.7",
|
||||||
"@pushrocks/smartpromise": "^3.0.6",
|
"@pushrocks/lik": "^4.0.20",
|
||||||
"@pushrocks/smartrouter": "^1.0.2",
|
"@pushrocks/smartdelay": "^2.0.10",
|
||||||
"@pushrocks/smartstate": "^1.0.16",
|
"@pushrocks/smartpromise": "^3.1.3",
|
||||||
"@pushrocks/webrequest": "^2.0.9",
|
"@pushrocks/smartrouter": "^1.0.6",
|
||||||
"@pushrocks/websetup": "^2.0.16",
|
"@pushrocks/smartrx": "^2.0.19",
|
||||||
"lit-element": "^2.3.1",
|
"@pushrocks/smartstate": "^1.0.21",
|
||||||
|
"@pushrocks/webrequest": "^2.0.13",
|
||||||
|
"@pushrocks/websetup": "^3.0.11",
|
||||||
|
"@pushrocks/webstore": "^1.0.16",
|
||||||
|
"lit-element": "^2.4.0",
|
||||||
"sweet-scroll": "^4.0.0"
|
"sweet-scroll": "^4.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
@ -43,5 +47,8 @@
|
|||||||
"cli.js",
|
"cli.js",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
|
],
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
9
test/test.browser.ts
Normal file
9
test/test.browser.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
|
import * as domtools from '../ts/index';
|
||||||
|
|
||||||
|
tap.test('first test', async () => {
|
||||||
|
const domtoolsInstance = await domtools.DomTools.setupDomTools();
|
||||||
|
expect(domtoolsInstance).to.be.instanceof(domtools.DomTools);
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.start();
|
@ -1,8 +0,0 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
|
||||||
import * as deesCsstools from '../ts/index';
|
|
||||||
|
|
||||||
tap.test('first test', async () => {
|
|
||||||
console.log('hi');
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.start();
|
|
@ -3,6 +3,11 @@ import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
|
|||||||
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
|
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
|
||||||
import { TViewport } from './domtools.breakpoints';
|
import { TViewport } from './domtools.breakpoints';
|
||||||
|
|
||||||
|
import { Scroller } from './domtools.classes.scroller';
|
||||||
|
import { delayForRandom } from '@pushrocks/smartdelay';
|
||||||
|
import { WebSetup } from '@pushrocks/websetup';
|
||||||
|
import { ThemeManager } from './domtools.classes.thememanager';
|
||||||
|
|
||||||
export interface IDomToolsState {
|
export interface IDomToolsState {
|
||||||
virtualViewport: TViewport;
|
virtualViewport: TViewport;
|
||||||
}
|
}
|
||||||
@ -19,6 +24,7 @@ export class DomTools {
|
|||||||
if (!globalThis.deesDomTools) {
|
if (!globalThis.deesDomTools) {
|
||||||
globalThis.deesDomTools = new DomTools();
|
globalThis.deesDomTools = new DomTools();
|
||||||
domToolsInstance = globalThis.deesDomTools;
|
domToolsInstance = globalThis.deesDomTools;
|
||||||
|
|
||||||
// lets make sure the dom is ready
|
// lets make sure the dom is ready
|
||||||
const readyStateChangedFunc = () => {
|
const readyStateChangedFunc = () => {
|
||||||
if (document.readyState === 'interactive' || document.readyState === 'complete') {
|
if (document.readyState === 'interactive' || document.readyState === 'complete') {
|
||||||
@ -36,6 +42,17 @@ export class DomTools {
|
|||||||
return domToolsInstance;
|
return domToolsInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* if you can, use the static asysnc .setupDomTools() function instead since it is safer to use.
|
||||||
|
*/
|
||||||
|
public static getGlobalDomToolsSync(): DomTools {
|
||||||
|
const globalDomTools: DomTools = globalThis.deesDomTools;
|
||||||
|
if (!globalDomTools) {
|
||||||
|
throw new Error('You tried to access domtools synchronously too early');
|
||||||
|
}
|
||||||
|
return globalThis.deesDomTools;
|
||||||
|
}
|
||||||
|
|
||||||
// ========
|
// ========
|
||||||
// INSTANCE
|
// INSTANCE
|
||||||
// ========
|
// ========
|
||||||
@ -48,6 +65,12 @@ export class DomTools {
|
|||||||
bodyElement: null,
|
bodyElement: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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', {
|
||||||
virtualViewport: 'native',
|
virtualViewport: 'native',
|
||||||
@ -57,7 +80,15 @@ export class DomTools {
|
|||||||
debug: false,
|
debug: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
public scroller: plugins.SweetScroll;
|
public convenience = {
|
||||||
|
smartdelay: plugins.smartdelay,
|
||||||
|
};
|
||||||
|
|
||||||
|
public deesComms = new plugins.deesComms.DeesComms();
|
||||||
|
public scroller = new plugins.SweetScroll({
|
||||||
|
/* some options */
|
||||||
|
}); // TODO: switch to scroller class
|
||||||
|
public themeManager = new ThemeManager(this);
|
||||||
|
|
||||||
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
|
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(
|
||||||
async (statePart, payload) => {
|
async (statePart, payload) => {
|
||||||
@ -71,14 +102,7 @@ export class DomTools {
|
|||||||
public domReady = plugins.smartpromise.defer();
|
public domReady = plugins.smartpromise.defer();
|
||||||
public globalStylesReady = plugins.smartpromise.defer();
|
public globalStylesReady = plugins.smartpromise.defer();
|
||||||
|
|
||||||
constructor() {
|
constructor() {}
|
||||||
// lets care about third party stuff
|
|
||||||
this.domToolsReady.promise.then(() => {
|
|
||||||
this.scroller = new plugins.SweetScroll({
|
|
||||||
/* some options */
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private runOnceTrackerStringMap = new Stringmap();
|
private runOnceTrackerStringMap = new Stringmap();
|
||||||
private runOnceResultMap = new FastMap();
|
private runOnceResultMap = new FastMap();
|
||||||
@ -116,12 +140,20 @@ export class DomTools {
|
|||||||
this.elements.headElement.appendChild(styleElement);
|
this.elements.headElement.appendChild(styleElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async setExternalCss(cssLinkArg: string) {
|
||||||
|
const cssTag = document.createElement('link');
|
||||||
|
cssTag.rel = 'stylesheet';
|
||||||
|
cssTag.crossOrigin = 'anonymous';
|
||||||
|
cssTag.href = cssLinkArg;
|
||||||
|
document.head.append(cssTag);
|
||||||
|
}
|
||||||
|
|
||||||
public setVirtualViewport(environmentArg: TViewport) {
|
public setVirtualViewport(environmentArg: TViewport) {
|
||||||
this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg);
|
this.domToolsStatePart.dispatchAction(this.actionSetVirtualViewport, environmentArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
|
public async setWebsiteInfo(optionsArg: plugins.websetup.IWebSetupConstructorOptions) {
|
||||||
const websetup = new plugins.websetup.WebSetup(optionsArg);
|
await this.websetup.setup(optionsArg);
|
||||||
await websetup.setup();
|
await this.websetup.readyPromise;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
5
ts/domtools.classes.scroller.ts
Normal file
5
ts/domtools.classes.scroller.ts
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import * as plugins from './domtools.plugins';
|
||||||
|
|
||||||
|
export class Scroller {
|
||||||
|
// TODO: move sweet scroll over to here;
|
||||||
|
}
|
44
ts/domtools.classes.thememanager.ts
Normal file
44
ts/domtools.classes.thememanager.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import { LitElement } from 'lit-element';
|
||||||
|
import { DomTools } from './domtools.classes.domtools';
|
||||||
|
import * as plugins from './domtools.plugins';
|
||||||
|
|
||||||
|
export class ThemeManager {
|
||||||
|
public domtoolsRef: DomTools;
|
||||||
|
|
||||||
|
public goBrightBoolean = false;
|
||||||
|
public preferredColorSchemeMediaMatch = window.matchMedia('(prefers-color-scheme: light)');
|
||||||
|
|
||||||
|
public themeObservable = new plugins.smartrx.rxjs.ReplaySubject<boolean>(1);
|
||||||
|
|
||||||
|
constructor(domtoolsRefArg: DomTools) {
|
||||||
|
this.domtoolsRef = domtoolsRefArg;
|
||||||
|
|
||||||
|
// lets care
|
||||||
|
this.goBrightBoolean = this.preferredColorSchemeMediaMatch.matches;
|
||||||
|
this.preferredColorSchemeMediaMatch.addEventListener('change', eventArg => {
|
||||||
|
this.goBrightBoolean = eventArg.matches;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
});
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async updateAllConnectedElements() {
|
||||||
|
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
|
||||||
|
this.themeObservable.next(this.goBrightBoolean);
|
||||||
|
}
|
||||||
|
|
||||||
|
public goBright() {
|
||||||
|
this.goBrightBoolean = true;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
public goDark() {
|
||||||
|
this.goBrightBoolean = false;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
public toggleDarkBright() {
|
||||||
|
this.goBrightBoolean = !this.goBrightBoolean;
|
||||||
|
this.updateAllConnectedElements();
|
||||||
|
}
|
||||||
|
}
|
28
ts/domtools.css.theme.ts
Normal file
28
ts/domtools.css.theme.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { DomTools } from './domtools.classes.domtools';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* changes scrollbar styles to be consistent across OS borders
|
||||||
|
*/
|
||||||
|
export const scrollBarStyles = (() => {
|
||||||
|
const returnStyles = navigator.userAgent.indexOf("Windows") !== -1 ? `
|
||||||
|
/* width */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Track */
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle */
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Handle on hover */
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #777;
|
||||||
|
}
|
||||||
|
` : ``;
|
||||||
|
})();
|
@ -1,13 +1,21 @@
|
|||||||
import * as plugins from './domtools.plugins';
|
import * as plugins from './domtools.plugins';
|
||||||
import { DomTools } from './domtools.classes.domtools';
|
import { DomTools } from './domtools.classes.domtools';
|
||||||
|
import { scrollBarStyles } from './domtools.css.theme';
|
||||||
|
|
||||||
import { html } from 'lit-element';
|
import { html, LitElement } from 'lit-element';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* styles to be included in every webcomponent
|
||||||
|
*/
|
||||||
export const styles = html`
|
export const styles = html`
|
||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
|
transition: background 0.1s, color 0.1s;
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
${scrollBarStyles}
|
||||||
</style>
|
</style>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@ -15,8 +23,14 @@ 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 (elementArg?: LitElement): Promise<DomTools> => {
|
||||||
const domTools = await DomTools.setupDomTools();
|
const domTools = await DomTools.setupDomTools();
|
||||||
|
|
||||||
|
if (elementArg) {
|
||||||
|
// lets do something with the element
|
||||||
|
// not used right now
|
||||||
|
}
|
||||||
|
|
||||||
domTools.runOnce('elementBasicSetup', async () => {
|
domTools.runOnce('elementBasicSetup', async () => {
|
||||||
// bodyStyles
|
// bodyStyles
|
||||||
domTools.setGlobalStyles(`
|
domTools.setGlobalStyles(`
|
||||||
@ -39,7 +53,14 @@ export const setup = async () => {
|
|||||||
|
|
||||||
// Roboto Font
|
// Roboto Font
|
||||||
domTools.setGlobalStyles(`
|
domTools.setGlobalStyles(`
|
||||||
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400');
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;400');
|
||||||
|
`);
|
||||||
|
|
||||||
|
// scrollbars
|
||||||
|
domTools.setGlobalStyles(`
|
||||||
|
${scrollBarStyles}
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
return domTools;
|
||||||
};
|
};
|
||||||
|
@ -1 +0,0 @@
|
|||||||
import * as plugins from './domtools.plugins';
|
|
@ -1,11 +1,32 @@
|
|||||||
|
// designestate scope
|
||||||
|
import * as deesComms from '@designestate/dees-comms';
|
||||||
|
|
||||||
|
export {
|
||||||
|
deesComms
|
||||||
|
};
|
||||||
|
|
||||||
|
// apiglobal scope
|
||||||
|
import * as typedrequest from '@apiglobal/typedrequest';
|
||||||
|
|
||||||
|
export { typedrequest };
|
||||||
|
|
||||||
// pushrocks scope
|
// pushrocks scope
|
||||||
|
import * as smartdelay from '@pushrocks/smartdelay';
|
||||||
import * as smartpromise from '@pushrocks/smartpromise';
|
import * as smartpromise from '@pushrocks/smartpromise';
|
||||||
import * as smartrouter from '@pushrocks/smartrouter';
|
import * as smartrouter from '@pushrocks/smartrouter';
|
||||||
|
import * as smartrx from '@pushrocks/smartrx';
|
||||||
import * as smartstate from '@pushrocks/smartstate';
|
import * as smartstate from '@pushrocks/smartstate';
|
||||||
import * as webrequest from '@pushrocks/webrequest';
|
import * as webrequest from '@pushrocks/webrequest';
|
||||||
import * as websetup from '@pushrocks/websetup';
|
import * as websetup from '@pushrocks/websetup';
|
||||||
|
import * as webstore from '@pushrocks/webstore';
|
||||||
|
|
||||||
export { smartpromise, smartrouter, smartstate, webrequest, websetup };
|
// subscope lik
|
||||||
|
import { ObjectMap } from '@pushrocks/lik/dist_ts/lik.objectmap';
|
||||||
|
const lik = {
|
||||||
|
ObjectMap
|
||||||
|
};
|
||||||
|
|
||||||
|
export { lik, smartdelay, smartpromise, smartrouter, smartrx, smartstate, webrequest, websetup, webstore };
|
||||||
|
|
||||||
// third party scope
|
// third party scope
|
||||||
import SweetScroll from 'sweet-scroll';
|
import SweetScroll from 'sweet-scroll';
|
||||||
|
@ -7,3 +7,9 @@ import * as css from './domtools.css';
|
|||||||
export { css, breakpoints, elementBasic };
|
export { css, breakpoints, elementBasic };
|
||||||
export { DomTools } from './domtools.classes.domtools';
|
export { DomTools } from './domtools.classes.domtools';
|
||||||
export { TypedRequest } from '@apiglobal/typedrequest';
|
export { TypedRequest } from '@apiglobal/typedrequest';
|
||||||
|
|
||||||
|
import * as allPlugins from './domtools.plugins';
|
||||||
|
|
||||||
|
export const plugins = {
|
||||||
|
smartpromise: allPlugins.smartpromise,
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user