diff --git a/.gitignore b/.gitignore index a665568..f251b7e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,7 +33,6 @@ node_modules # Optional REPL history .node_repl_history - # custom .vscode @@ -43,5 +42,4 @@ scripts build lib dist -yarn.lock -package-lock.json \ No newline at end of file +assets diff --git a/gh-pages.js b/gh-pages.js index b7dea83..b46d30d 100644 --- a/gh-pages.js +++ b/gh-pages.js @@ -1,6 +1,7 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ var ghpages = require('gh-pages'); var path = require('path'); -ghpages.publish(path.join(__dirname, './dist'), function(err) { +ghpages.publish(path.join(__dirname, './assets'), function (err) { console.log(err); }); diff --git a/package.json b/package.json index ce04726..7fba9e1 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,7 @@ "clear-dist": "rm -rf dist", "build-webpack": "NODE_ENV=production webpack --mode production --progress && cp -R public/* ./dist/ ", "build": "npm run clear-dist && npm run build-webpack", - "publish-github": "node gh-pages.js", - "flow": "flow" + "publish:gh-pages": "node gh-pages.js" }, "keywords": [ "react", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2eff727..0300d1c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,7 +35,6 @@ specifiers: eslint-plugin-import: ^2.22.1 eslint-plugin-react: ^7.23.2 eslint-plugin-react-hooks: ^4.2.0 - faker: ^6.6.6 file-loader: ^6.2.0 gh-pages: ^1.1.0 html-webpack-plugin: ^5.5.0 @@ -65,7 +64,6 @@ dependencies: '@rsuite/icons': 1.0.2_biqbaboplfbrettd7655fr4n2y chartist: 0.10.1 classnames: 2.3.1 - faker: 6.6.6 prop-types: 15.8.1 react: 18.2.0 react-chartist: 0.14.4_uq4xdmbranb5dmrhsn4hftzjqe @@ -4253,10 +4251,6 @@ packages: - supports-color dev: true - /faker/6.6.6: - resolution: {integrity: sha512-9tCqYEDHI5RYFQigXFwF1hnCwcWCOJl/hmll0lr5D2Ljjb0o4wphb69wikeJDz5qCEzXCoPvG6ss5SDP6IfOdg==} - dev: false - /fast-deep-equal/3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} dev: true diff --git a/src/tracker.ts b/src/tracker.ts deleted file mode 100644 index dc5f624..0000000 --- a/src/tracker.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const pageview = title => { - window._ha && - _ha('send', 'pageview', { - title: title || document.title, - url: document.location.href - }); -};