docs: remove hotjar (#38654)

This commit is contained in:
afc163 2022-11-18 00:01:31 +08:00 committed by GitHub
parent a2b424946b
commit af139e9d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 43 deletions

View File

@ -1525,10 +1525,6 @@ const GlobalStyles = () => {
}
}
#_hj_feedback_container {
display: none;
}
/** home 区块 **/
.home-page-wrapper {
.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 */}
<Global
styles={css`

View File

@ -95,25 +95,5 @@ export default defineConfig({
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=');
`,
],
});