Skip to content

Commit 3bb760d

Browse files
authored
Merge pull request #28 from 142vip/next
feat: 侧边栏等配置更新
2 parents 8540bd7 + 0fa10da commit 3bb760d

File tree

232 files changed

+2015
-1835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+2015
-1835
lines changed

Readme.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020

2121
### 在线浏览
2222

23-
<https://142vip.cn/JavaScriptCollection>
23+
- 尝鲜版:<https://142vip.github.io/JavaScriptCollection>
24+
- 稳定版:<https://142vip.cn/JavaScriptCollection>
25+
2426

2527
网站无法访问时,建议通过科学上网访问备用网络
2628

27-
- Github: <https://142vip.github.io/JavaScriptCollection>
2829
- Netlify: <https://js-collection.netlify.app>
2930
- Vercel: <https://js-collection.vercel.app>
3031

3132

32-
### 思维导图
33+
### 学习路线
3334

34-
> 内容同步与文档,可以结合思维导图对文档进行有效学习.相关目录的xmind文件为思维导图原文件
3535

3636

3737

3838
### 日常推荐
3939

4040

41-
## 文章笔记
41+
### 文章笔记
4242

4343
**注:无高亮有效访问链接的待完成/同步**
4444

@@ -786,9 +786,11 @@ Nestjs框架推崇typescript语法,并且友好的兼容express框架,因此
786786
<table style="border:none;cell-padding:0; cell-spacing:0;border-collapse:collapse;" border="0">
787787
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/fairy-sister-450x450.jpg"
788788
width="250px"
789+
style="margin: 10px"
789790
title="欢迎关注公众号:Rong姐姐好可爱" alt="关注公众号"/>
790791
<img src="https://cdn.staticaly.com/gh/142vip/cdn_service@main/media/chu-fan-443-650x650.jpg"
791792
width="250px"
793+
style="margin: 10px"
792794
title="欢迎添加微信:chufan443 " alt="联系作者"/>
793795
</table>
794796
</div>

code/algorithm/剑指/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
### 栈队列堆
1818

1919
- [ ] [【简单】两个栈实现队列](./栈队列堆/JSStackToQueue.js)
20-
- [ ] [【中等】最小的k个数](./栈队列堆/GetLeastNumbers_Solution.js)
20+
- [ ] [【中等】最小的k个数](./栈队列堆/getLeastNumbersSolution.js)
2121
- [ ] [【中等】数据流中的中位数](./栈队列堆/InsertAndGetMedian.js)
2222
- [ ] [【中等】字符流中的第一个不重复的字符](./栈队列堆/FirstAppearingOnce.js)
2323
- [ ] [【较难】滑动窗口的最大值](./栈队列堆/maxInWindows.js)
File renamed without changes.

docs/.vuepress/client.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import {defineClientConfig} from '@vuepress/client'
22
// import NotFound from './layouts/NotFound.vue'
3+
import {onMounted} from 'vue'
34

45
export default defineClientConfig({
56
enhance({app, router, siteData}) {
67
},
78
setup() {
9+
onMounted(() => {
10+
// 在 mounted 之后使用 DOM API
11+
document.querySelector('#app')
12+
})
813
},
9-
layouts: {
10-
// NotFound: NotFound
11-
},
14+
layouts: {},
1215
rootComponents: [],
1316
})

docs/.vuepress/config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url))
99
// 用于区分base路径,是否nginx代理
1010
const PROXY_DOMAIN = process.env.PROXY_DOMAIN || false
1111

12-
1312
export default defineUserConfig({
1413
title: "凡是过往、皆为序章",
1514
description: "一本有趣的JavaScript合集",
1615
base: PROXY_DOMAIN ? "/JavaScriptCollection/" : "/",
1716
port: 5000,
1817
head: [
19-
["link", {rel: "icon", href: "/fight_favicon.ico"}],
18+
[
19+
"link", {rel: "icon", href: "/fight_favicon.ico"}
20+
],
2021
// vercel统计 相关配置
21-
['script', {type: 'text/javascript', src: '/_vercel/insights/script.js'}]
22+
[
23+
'script', {type: 'text/javascript', src: '/_vercel/insights/script.js'}
24+
]
2225
],
2326
markdown: {
2427
// todo 引入代码文件时的路径替换
@@ -38,7 +41,6 @@ export default defineUserConfig({
3841
level: [2, 3, 4]
3942
}
4043
},
41-
4244
// 主题配置
4345
...themeConfig,
4446
// 插件配置
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import {ThemeLocaleData} from "vuepress-theme-hope";
2+
3+
/**
4+
* 支持中文
5+
* 参考:https://theme-hope.vuejs.press/zh/config/i18n.html
6+
*/
7+
const localCN: ThemeLocaleData = {
8+
lang: "zh-CN",
9+
navbarLocales: {
10+
langName: "简体中文",
11+
selectLangAriaLabel: "选择语言",
12+
},
13+
metaLocales: {
14+
author: "作者",
15+
date: "写作日期",
16+
origin: "原创",
17+
views: "访问量",
18+
category: "分类",
19+
tag: "标签",
20+
readingTime: "阅读时间",
21+
words: "字数",
22+
toc: "标题大纲",
23+
prev: "上一页",
24+
next: "下一页",
25+
lastUpdated: "上次编辑于",
26+
contributors: "贡献者",
27+
editLink: "编辑此页",
28+
print: "打印",
29+
},
30+
31+
blogLocales: {
32+
article: "文章",
33+
articleList: "文章列表",
34+
category: "分类",
35+
tag: "标签",
36+
timeline: "时间轴",
37+
timelineTitle: "昨日不在",
38+
all: "全部",
39+
intro: "个人介绍",
40+
star: "收藏",
41+
},
42+
43+
paginationLocales: {
44+
prev: "上一页",
45+
next: "下一页",
46+
navigate: "跳转到",
47+
action: "前往",
48+
errorText: "请输入 1 到 $page 之前的页码!",
49+
},
50+
51+
outlookLocales: {
52+
themeColor: "主题色",
53+
darkmode: "外观",
54+
fullscreen: "全屏",
55+
},
56+
57+
encryptLocales: {
58+
iconLabel: "文章已加密",
59+
placeholder: "输入密码",
60+
remember: "记住密码",
61+
errorHint: "请输入正确的密码",
62+
},
63+
routeLocales: {
64+
skipToContent: "跳至主要內容",
65+
notFoundTitle: "访问的页面不存在,嘤嘤嘤",
66+
notFoundMsg: [
67+
"这里什么也没有",
68+
"我们是怎么来到这儿的?",
69+
"这 是 四 零 四 !",
70+
"看起来你访问了一个失效的链接",
71+
],
72+
back: "返回",
73+
home: "首页",
74+
openInNewWindow: "新窗口打开",
75+
},
76+
}
77+
78+
/**
79+
* 自定义语言,支持文案
80+
*/
81+
export const langConfig = {
82+
"/": localCN
83+
}

docs/.vuepress/config/navbar-back/battle-interview.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/.vuepress/config/navbar-back/dev-tool.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

docs/.vuepress/config/navbar-back/front-end.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

docs/.vuepress/config/navbar-back/index.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)