mirror of
https://github.com/ritz078/transform.git
synced 2026-11-20 16:22:53 +03:00
get rid of thesemetrics (#242)
This commit is contained in:
1 parent
538840e5cd
commit
6604b2dd0f
4 files changed
+10
-24
No files matched your search
@@ -64,10 +64,6 @@ const config = {
|
||||
config.output.webassemblyModuleFilename = "static/wasm/[modulehash].wasm";
|
||||
|
||||
return config;
|
||||
},
|
||||
target: "serverless",
|
||||
experimental: {
|
||||
jsConfig: true
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-dropzone": "^11.0.1",
|
||||
"react-ga": "^3.0.0",
|
||||
"rust-keywords": "^1.1.0",
|
||||
"sha1": "^1.1.1",
|
||||
"snack-sdk": "^2.6.3",
|
||||
|
||||
+10
-14
@@ -7,12 +7,7 @@ import "@styles/main.css";
|
||||
import NProgress from "nprogress";
|
||||
import Router from "next/router";
|
||||
import { activeRouteData } from "@utils/routes";
|
||||
|
||||
let reactGa;
|
||||
if (IN_BROWSER && !IS_DEV) {
|
||||
reactGa = require("react-ga");
|
||||
reactGa.initialize("UA-60624235-8");
|
||||
}
|
||||
import Head from "next/head";
|
||||
|
||||
const logo = (
|
||||
<svg
|
||||
@@ -60,8 +55,7 @@ function renderHeadWay() {
|
||||
export default class extends App {
|
||||
timer: any;
|
||||
|
||||
private stopProgress = pathname => {
|
||||
reactGa && reactGa.pageview(pathname);
|
||||
private stopProgress = () => {
|
||||
clearTimeout(this.timer);
|
||||
NProgress.done();
|
||||
};
|
||||
@@ -75,7 +69,6 @@ export default class extends App {
|
||||
};
|
||||
|
||||
componentDidMount(): void {
|
||||
reactGa && reactGa.pageview(Router.pathname);
|
||||
Router.events.on("routeChangeStart", this.showProgressBar);
|
||||
}
|
||||
|
||||
@@ -97,11 +90,14 @@ export default class extends App {
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>
|
||||
{activeRoute && (activeRoute.title || activeRoute.searchTerm)}
|
||||
</title>
|
||||
<meta name="description" content={activeRoute && activeRoute.desc} />
|
||||
<meta name="viewport" content="width=1024" />
|
||||
<Head>
|
||||
<title>
|
||||
{activeRoute && (activeRoute.title || activeRoute.searchTerm)}
|
||||
</title>
|
||||
<meta name="description" content={activeRoute && activeRoute.desc} />
|
||||
<meta name="viewport" content="width=1024" />
|
||||
<script async src="https://unpkg.com/thesemetrics@latest" />
|
||||
</Head>
|
||||
<Pane
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
|
||||
@@ -8756,11 +8756,6 @@ react-fast-compare@^2.0.1:
|
||||
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-2.0.4.tgz#e84b4d455b0fec113e0402c329352715196f81f9"
|
||||
integrity sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==
|
||||
|
||||
react-ga@^3.0.0:
|
||||
version "3.1.2"
|
||||
resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-3.1.2.tgz#e13f211c51a2e5c401ea69cf094b9501fe3c51ce"
|
||||
integrity sha512-OJrMqaHEHbodm+XsnjA6ISBEHTwvpFrxco65mctzl/v3CASMSLSyUkFqz9yYrPDKGBUfNQzKCjuMJwctjlWBbw==
|
||||
|
||||
react-is@16.13.1, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.9.0:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||
|
||||
Reference in new issue
Block a user