Skip to content

Commit 789f911

Browse files
authored
Merge pull request #24 from 142vip/feat/docs-dev
feat: 新增文档,修复一些问题
2 parents ed17b5f + 223ff3c commit 789f911

File tree

229 files changed

+1993
-1829
lines changed

Some content is hidden

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

229 files changed

+1993
-1829
lines changed

Readme.md

Lines changed: 5 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

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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export default defineUserConfig({
3838
level: [2, 3, 4]
3939
}
4040
},
41-
4241
// 主题配置
4342
...themeConfig,
4443
// 插件配置
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)