fix(core): update
This commit is contained in:
parent
751a325c81
commit
359e18f5dc
@ -31,7 +31,7 @@ audit:
|
|||||||
- 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=moderate
|
- npmci command npm audit --audit-level=high
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- docker
|
- docker
|
||||||
|
3283
package-lock.json
generated
3283
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/)",
|
"test": "(tstest test/)",
|
||||||
"build": "(tsbuild --web && npm run bundle)",
|
"build": "(tsbuild --web && tsbundle npm)"
|
||||||
"format": "(gitzone format)",
|
|
||||||
"bundle": "tsbundle --production --from ./ts/index.ts --to ./dist_bundle/bundle.js"
|
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"lossless",
|
"lossless",
|
||||||
@ -26,7 +24,7 @@
|
|||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tsclass/tsclass": "^3.0.12"
|
"@tsclass/tsclass": "^3.0.18"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
@ -40,4 +38,4 @@
|
|||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
]
|
]
|
||||||
}
|
}
|
24
readme.md
24
readme.md
@ -8,21 +8,29 @@ setup basic page properties
|
|||||||
* [docs (typedoc)](https://pushrocks.gitlab.io/websetup/)
|
* [docs (typedoc)](https://pushrocks.gitlab.io/websetup/)
|
||||||
|
|
||||||
## Status for master
|
## Status for master
|
||||||
[![pipeline status](https://gitlab.com/pushrocks/websetup/badges/master/pipeline.svg)](https://gitlab.com/pushrocks/websetup/commits/master)
|
|
||||||
[![coverage report](https://gitlab.com/pushrocks/websetup/badges/master/coverage.svg)](https://gitlab.com/pushrocks/websetup/commits/master)
|
Status Category | Status Badge
|
||||||
[![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/websetup.svg)](https://www.npmjs.com/package/@pushrocks/websetup)
|
-- | --
|
||||||
[![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/websetup/badge.svg)](https://snyk.io/test/npm/@pushrocks/websetup)
|
GitLab Pipelines | [![pipeline status](https://gitlab.com/pushrocks/websetup/badges/master/pipeline.svg)](https://lossless.cloud)
|
||||||
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/pushrocks/websetup/badges/master/coverage.svg)](https://lossless.cloud)
|
||||||
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
npm | [![npm downloads per month](https://badgen.net/npm/dy/@pushrocks/websetup)](https://lossless.cloud)
|
||||||
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
|
Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/pushrocks/websetup)](https://lossless.cloud)
|
||||||
|
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
|
||||||
|
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||||
|
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
|
||||||
|
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@pushrocks/websetup)](https://lossless.cloud)
|
||||||
|
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@pushrocks/websetup)](https://lossless.cloud)
|
||||||
|
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@pushrocks/websetup)](https://lossless.cloud)
|
||||||
|
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
Use TypeScript for best in class intellisense.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
||||||
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)
|
||||||
|
@ -66,9 +66,9 @@ const addCompanyInfo = async (
|
|||||||
telephone: companyDataArg.contact.phone,
|
telephone: companyDataArg.contact.phone,
|
||||||
contactType: 'customer service',
|
contactType: 'customer service',
|
||||||
areaServed: 'DE',
|
areaServed: 'DE',
|
||||||
availableLanguage: ['en', 'German']
|
availableLanguage: ['en', 'German'],
|
||||||
},
|
},
|
||||||
sameAs: []
|
sameAs: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
if (companyDataArg.contact.facebookUrl) {
|
if (companyDataArg.contact.facebookUrl) {
|
||||||
|
@ -24,7 +24,7 @@ export const setupFullStory = async (fsCodeArg: string) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g = m[e] = function(a, b, s) {
|
g = m[e] = function (a, b, s) {
|
||||||
g.q ? g.q.push([a, b, s]) : g._api(a, b, s);
|
g.q ? g.q.push([a, b, s]) : g._api(a, b, s);
|
||||||
};
|
};
|
||||||
g.q = [];
|
g.q = [];
|
||||||
@ -35,36 +35,36 @@ export const setupFullStory = async (fsCodeArg: string) => {
|
|||||||
y = n.getElementsByTagName(t)[0];
|
y = n.getElementsByTagName(t)[0];
|
||||||
y.parentNode.insertBefore(o, y);
|
y.parentNode.insertBefore(o, y);
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g.identify = function(i, v, s) {
|
g.identify = function (i, v, s) {
|
||||||
g(l, { uid: i }, s);
|
g(l, { uid: i }, s);
|
||||||
if (v) g(l, v, s);
|
if (v) g(l, v, s);
|
||||||
};
|
};
|
||||||
g.setUserVars = function(v, s) {
|
g.setUserVars = function (v, s) {
|
||||||
g(l, v, s);
|
g(l, v, s);
|
||||||
};
|
};
|
||||||
g.event = function(i, v, s) {
|
g.event = function (i, v, s) {
|
||||||
g('event', { n: i, p: v }, s);
|
g('event', { n: i, p: v }, s);
|
||||||
};
|
};
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g.shutdown = function() {
|
g.shutdown = function () {
|
||||||
g('rec', !1);
|
g('rec', !1);
|
||||||
};
|
};
|
||||||
g.restart = function() {
|
g.restart = function () {
|
||||||
g('rec', !0);
|
g('rec', !0);
|
||||||
};
|
};
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g.consent = function(a) {
|
g.consent = function (a) {
|
||||||
g('consent', !arguments.length || a);
|
g('consent', !arguments.length || a);
|
||||||
};
|
};
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g.identifyAccount = function(i, v) {
|
g.identifyAccount = function (i, v) {
|
||||||
o = 'account';
|
o = 'account';
|
||||||
v = v || {};
|
v = v || {};
|
||||||
v.acctId = i;
|
v.acctId = i;
|
||||||
g(o, v);
|
g(o, v);
|
||||||
};
|
};
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
g.clearUserCookie = function() {};
|
g.clearUserCookie = function () {};
|
||||||
// tslint:disable-next-line: no-string-literal
|
// tslint:disable-next-line: no-string-literal
|
||||||
})(window, document, window['_fs_namespace'], 'script', 'user');
|
})(window, document, window['_fs_namespace'], 'script', 'user');
|
||||||
};
|
};
|
||||||
|
@ -7,14 +7,14 @@ declare global {
|
|||||||
|
|
||||||
export const setupGoogleAnalytics = async (gaCode: string) => {
|
export const setupGoogleAnalytics = async (gaCode: string) => {
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
(function(i, s, o, g, r, a, m) {
|
(function (i, s, o, g, r, a, m) {
|
||||||
// tslint:disable-next-line: no-string-literal
|
// tslint:disable-next-line: no-string-literal
|
||||||
i['GoogleAnalyticsObject'] = r;
|
i['GoogleAnalyticsObject'] = r;
|
||||||
// tslint:disable-next-line: ban-comma-operator
|
// tslint:disable-next-line: ban-comma-operator
|
||||||
(i[r] =
|
(i[r] =
|
||||||
i[r] ||
|
i[r] ||
|
||||||
// tslint:disable-next-line: only-arrow-functions
|
// tslint:disable-next-line: only-arrow-functions
|
||||||
function() {
|
function () {
|
||||||
(i[r].q = i[r].q || []).push(arguments);
|
(i[r].q = i[r].q || []).push(arguments);
|
||||||
}),
|
}),
|
||||||
(i[r].l = new Date().getTime());
|
(i[r].l = new Date().getTime());
|
||||||
|
Loading…
Reference in New Issue
Block a user