fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-23 15:40:08 +00:00
parent 2032df467e
commit 7c3d131b46
5 changed files with 24 additions and 13 deletions

View File

@ -4,9 +4,9 @@
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "designestate", "gitscope": "designestate",
"gitrepo": "dees-csstools", "gitrepo": "dees-domtools",
"shortDescription": "tools to simplify complex css structures", "shortDescription": "tools to simplify complex css structures",
"npmPackagename": "@designestate/dees-csstools", "npmPackagename": "@designestate/dees-domtools",
"license": "MIT", "license": "MIT",
"projectDomain": "design.estate" "projectDomain": "design.estate"
} }

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "@designestate/dees-csstools", "name": "@designestate/dees-domtools",
"version": "1.0.4", "version": "1.0.4",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View File

@ -1,5 +1,5 @@
{ {
"name": "@designestate/dees-csstools", "name": "@designestate/dees-domtools",
"version": "1.0.4", "version": "1.0.4",
"private": false, "private": false,
"description": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",

View File

@ -1,17 +1,17 @@
# @designestate/dees-csstools # @designestate/dees-domtools
tools to simplify complex css structures tools to simplify complex css structures
## Availabililty and Links ## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@designestate/dees-csstools) * [npmjs.org (npm package)](https://www.npmjs.com/package/@designestate/dees-domtools)
* [gitlab.com (source)](https://gitlab.com/designestate/dees-csstools) * [gitlab.com (source)](https://gitlab.com/designestate/dees-domtools)
* [github.com (source mirror)](https://github.com/designestate/dees-csstools) * [github.com (source mirror)](https://github.com/designestate/dees-domtools)
* [docs (typedoc)](https://designestate.gitlab.io/dees-csstools/) * [docs (typedoc)](https://designestate.gitlab.io/dees-domtools/)
## Status for master ## Status for master
[![pipeline status](https://gitlab.com/designestate/dees-csstools/badges/master/pipeline.svg)](https://gitlab.com/designestate/dees-csstools/commits/master) [![pipeline status](https://gitlab.com/designestate/dees-domtools/badges/master/pipeline.svg)](https://gitlab.com/designestate/dees-domtools/commits/master)
[![coverage report](https://gitlab.com/designestate/dees-csstools/badges/master/coverage.svg)](https://gitlab.com/designestate/dees-csstools/commits/master) [![coverage report](https://gitlab.com/designestate/dees-domtools/badges/master/coverage.svg)](https://gitlab.com/designestate/dees-domtools/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@designestate/dees-csstools.svg)](https://www.npmjs.com/package/@designestate/dees-csstools) [![npm downloads per month](https://img.shields.io/npm/dm/@designestate/dees-domtools.svg)](https://www.npmjs.com/package/@designestate/dees-domtools)
[![Known Vulnerabilities](https://snyk.io/test/npm/@designestate/dees-csstools/badge.svg)](https://snyk.io/test/npm/@designestate/dees-csstools) [![Known Vulnerabilities](https://snyk.io/test/npm/@designestate/dees-domtools/badge.svg)](https://snyk.io/test/npm/@designestate/dees-domtools)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) [![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)

View File

@ -9,6 +9,17 @@ export const elementBasicSetup = async () => {
await globalThis.deesCssToolsReady.promise; await globalThis.deesCssToolsReady.promise;
} else { } else {
globalThis.deesCssToolsReady = defer(); globalThis.deesCssToolsReady = defer();
const documentReady = defer();
document.onreadystatechange = () => {
if (document.readyState === 'interactive') {
documentReady.resolve();
}
};
await documentReady.promise;
const head = document.querySelector('head');
const styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.appendChild(document.createTextNode(materialFontCss));
globalThis.deesCssToolsReady.resolve(); globalThis.deesCssToolsReady.resolve();
} }
}; };