Browse Source

docs: remove hotjar (#38654)

pull/38658/head
afc163 2 years ago
committed by GitHub
parent
commit
af139e9d13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      .dumi/theme/common/GlobalStyles.tsx
  2. 20
      .dumirc.ts

23
.dumi/theme/common/GlobalStyles.tsx

@ -1525,10 +1525,6 @@ const GlobalStyles = () => {
} }
} }
#_hj_feedback_container {
display: none;
}
/** home 区块 **/ /** home 区块 **/
.home-page-wrapper { .home-page-wrapper {
.page { .page {
@ -1763,25 +1759,6 @@ const GlobalStyles = () => {
`} `}
/> />
{/* RTL */}
<Global
styles={css`
[data-direction='rtl'] {
#_hj_feedback_container {
> div {
right: auto;
left: 32px;
}
}
.fixed-widgets {
right: auto;
left: 32px;
}
}
`}
/>
{/* Preview Image */} {/* Preview Image */}
<Global <Global
styles={css` styles={css`

20
.dumirc.ts

@ -95,25 +95,5 @@ export default defineConfig({
document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us'; document.documentElement.className += isZhCN(pathname) ? 'zh-cn' : 'en-us';
})(); })();
`, `,
// Hotjar Tracking Code for ant.design
`
(function (h, o, t, j, a, r) {
if (location.hostname === 'localhost') {
return;
}
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 473408, hjsv: 5 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script');
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, '//static.hotjar.com/c/hotjar-', '.js?sv=');
`,
], ],
}); });

Loading…
Cancel
Save