Skip to content

Commit

Permalink
删除无用js
Browse files Browse the repository at this point in the history
  • Loading branch information
znc15 committed Nov 14, 2023
1 parent 13103d7 commit cbd0dfd
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 65 deletions.
61 changes: 50 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
},
"devDependencies": {
"@vuepress/client": "2.0.0-beta.67",
"@waline/client": "^3.0.0-alpha.1",
"twikoo": "^1.6.22",
"vue": "^3.3.4",
"vuepress": "^2.0.0-beta.67",
"vuepress-theme-hope": "2.0.0-beta.237"
Expand Down
41 changes: 4 additions & 37 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ import theme from "./theme.js";
export default defineUserConfig({
base: "/",
head: [
[
"script",
{
type: "text/javascript",
charset: "UTF-8",
src: "https://cdn.wwads.cn/js/makemoney.js",
// async: true,
},
],
[
"link",
{
Expand All @@ -32,7 +23,7 @@ export default defineUserConfig({
[
"link",
{
href: "https://file-cdn.dl.us-cf.v30.one/MiSans/MiSans-Demibold.ttf",
href: "https://assest.cdn.littlesheep.cc/misans@3.1.1/lib/misans-400-normal.min.css",
rel: "stylesheet",
},
],
Expand All @@ -45,30 +36,6 @@ export default defineUserConfig({
// async: true,
// },
// ],
[
"script",
{},
`!function(p){"use strict";!function(t){var s=window,e=document,i=p,c="".concat("https:"===e.location.protocol?"https://":"http://","sdk.51.la/js-sdk-pro.min.js"),n=e.createElement("script"),r=e.getElementsByTagName("script")[0];n.type="text/javascript",n.setAttribute("charset","UTF-8"),n.async=!0,n.src=c,n.id="LA_COLLECT",i.d=n;var o=function(){s.LA.ids.push(i)};s.LA?s.LA.ids&&o():(s.LA=p,s.LA.ids=[],o()),r.parentNode.insertBefore(n,r)}()}({id:"JopjiIsNYEbnNVF2",ck:"JopjiIsNYEbnNVF2",hashMode:false});`,
],
[
"script",
{},
`var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?6c8a68035d2804b5cfeafe6d96df4c75";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`,
],
[
"script",
{
src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6488351372249466",
async: true,
crossorigin: "anonymous",
},
],
],

locales: {
Expand All @@ -78,9 +45,9 @@ export default defineUserConfig({
description: "LMS服务器的使用与命令文档",
},
"/en/": {
lang: "en-US",
title: "Docs Demo",
description: "A docs demo for vuepress-theme-hope",
lang: "zh-CN",
title: "LMS Wiki",
description: "LMS服务器的使用与命令文档",
},
},

Expand Down
20 changes: 3 additions & 17 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default hopeTheme({

author: {
name: "YangXiaoMian",
url: "https://littlesheep.com",
url: "https://littlesheep.cc",
},

iconAssets: [
Expand All @@ -32,7 +32,7 @@ export default hopeTheme({
// sidebar
sidebar: zhSidebar,

footer: "默认页脚",
footer: "Power By TCB Work's Minecraft Server",

displayFooter: true,

Expand All @@ -51,7 +51,7 @@ export default hopeTheme({
// sidebar
sidebar: enSidebar,

footer: "默认页脚",
footer: "Power By TCB Work's Minecraft Server",

displayFooter: true,

Expand All @@ -62,22 +62,8 @@ export default hopeTheme({
},
},

encrypt: {
config: {
"/demo/encrypt.html": ["1234"],
"/zh/demo/encrypt.html": ["1234"],
},
},

plugins: {
// You should generate and use your own comment service
comment: {
provider: "Giscus",
repo: "vuepress-theme-hope/giscus-discussions",
repoId: "R_kgDOG_Pt2A",
category: "Announcements",
categoryId: "DIC_kwDOG_Pt2M4COD69",
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
Expand Down

0 comments on commit cbd0dfd

Please sign in to comment.