mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-22 19:04:55 +00:00
chore: remove wwads
This commit is contained in:
@@ -232,7 +232,6 @@ const darkCodeTheme = require("prism-react-renderer/themes/palenight");
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"./src/plugins/plugin-wwads/index.js",
|
|
||||||
],
|
],
|
||||||
scripts: [
|
scripts: [
|
||||||
{
|
{
|
||||||
@@ -241,9 +240,6 @@ const darkCodeTheme = require("prism-react-renderer/themes/palenight");
|
|||||||
defer: true,
|
defer: true,
|
||||||
"data-website-id": "7e8d48ad-973d-4b44-b36d-ea1f1df25baa",
|
"data-website-id": "7e8d48ad-973d-4b44-b36d-ea1f1df25baa",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
src: "/js/wwads.js",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.9",
|
"@docusaurus/core": "2.0.0-beta.9",
|
||||||
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.9",
|
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.ff31de0ff",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.9",
|
"@docusaurus/preset-classic": "2.0.0-beta.9",
|
||||||
"@mdx-js/react": "^1.6.22",
|
"@mdx-js/react": "^1.6.22",
|
||||||
"@svgr/webpack": "^5.5.0",
|
"@svgr/webpack": "^5.5.0",
|
||||||
|
1716
pnpm-lock.yaml
generated
1716
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,27 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
function pluginWwads() {
|
|
||||||
return {
|
|
||||||
name: "docusaurus-plugin-wwads",
|
|
||||||
|
|
||||||
getClientModules() {
|
|
||||||
return [path.resolve(__dirname, "./wwads")];
|
|
||||||
},
|
|
||||||
|
|
||||||
injectHtmlTags() {
|
|
||||||
return {
|
|
||||||
headTags: [
|
|
||||||
{
|
|
||||||
tagName: "script",
|
|
||||||
attributes: {
|
|
||||||
async: true,
|
|
||||||
src: `https://cdn.wwads.cn/js/makemoney.js`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
exports.default = pluginWwads;
|
|
@@ -1,20 +0,0 @@
|
|||||||
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
|
|
||||||
|
|
||||||
export default (function () {
|
|
||||||
if (!ExecutionEnvironment.canUseDOM) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
onRouteUpdate() {
|
|
||||||
setTimeout(() => {
|
|
||||||
const ad = document.getElementsByClassName("table-of-contents");
|
|
||||||
const adnode = document.createElement("div");
|
|
||||||
adnode.setAttribute("class", "wwads-cn wwads-vertical");
|
|
||||||
adnode.setAttribute("data-id", "80");
|
|
||||||
adnode.setAttribute("style", "max-width:200px");
|
|
||||||
ad[0].parentNode.appendChild(adnode);
|
|
||||||
}, 2000);
|
|
||||||
},
|
|
||||||
};
|
|
||||||
})();
|
|
@@ -1,8 +0,0 @@
|
|||||||
window.onload = function () {
|
|
||||||
const ad = document.getElementsByClassName("table-of-contents");
|
|
||||||
const adnode = document.createElement("div");
|
|
||||||
adnode.setAttribute("class", "wwads-cn wwads-vertical");
|
|
||||||
adnode.setAttribute("data-id", "80");
|
|
||||||
adnode.setAttribute('style',"max-width:200px")
|
|
||||||
ad[0].parentNode.appendChild(adnode);
|
|
||||||
};
|
|
Reference in New Issue
Block a user