From 3fb8ea12cbc63504bf0fd437ae3c8a6709320721 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Mon, 3 May 2021 01:04:55 +0800 Subject: [PATCH] v1.8.2 --- docs/.vuepress/config.js | 2 +- .../40.学习笔记/00.《JavaScript教程》笔记.md | 8 +- .../40.学习笔记/10.《ES6 教程》笔记.md | 2 +- docs/01.前端/40.学习笔记/20.《Vue》笔记.md | 2 +- .../{25.《Reqct》笔记.md => 25.《React》笔记.md} | 2 +- .../30.《TypeScript 从零实现 axios》.md | 8 +- .../01.前端/40.学习笔记/33.《Git》学习笔记.md | 2 +- .../随笔/你知道的越多,不知道的也就越多.md | 8 +- package.json | 4 +- theme-vdoing/components/ArchivesPage.vue | 10 +-- theme-vdoing/components/ArticleInfo.vue | 74 +++++++++++-------- theme-vdoing/components/BloggerBar.vue | 19 ++--- theme-vdoing/components/Buttons.vue | 6 +- theme-vdoing/components/Catalogue.vue | 73 +++++++----------- theme-vdoing/components/CategoriesBar.vue | 21 +++--- theme-vdoing/components/CategoriesPage.vue | 2 +- theme-vdoing/components/DropdownLink.vue | 37 +++------- theme-vdoing/components/Home.vue | 51 ++++++------- theme-vdoing/node_utils/getSidebarData.js | 6 +- theme-vdoing/package.json | 2 +- theme-vdoing/styles/mobile.styl | 2 +- theme-vdoing/util/index.js | 8 +- 22 files changed, 159 insertions(+), 190 deletions(-) rename docs/01.前端/40.学习笔记/{25.《Reqct》笔记.md => 25.《React》笔记.md} (96%) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index ff2704e..fa89d82 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -3,7 +3,7 @@ const plugins = require('./config/plugins.js'); const themeConfig = require('./config/themeConfig.js'); module.exports = { - theme: 'vdoing', // 使用依赖包主题 + theme: 'vdoing', // 使用npm包主题 // theme: require.resolve('../../theme-vdoing'), // 使用本地主题 title: "Evan's blog", diff --git a/docs/01.前端/40.学习笔记/00.《JavaScript教程》笔记.md b/docs/01.前端/40.学习笔记/00.《JavaScript教程》笔记.md index 3f04e49..44696f9 100644 --- a/docs/01.前端/40.学习笔记/00.《JavaScript教程》笔记.md +++ b/docs/01.前端/40.学习笔记/00.《JavaScript教程》笔记.md @@ -1,8 +1,8 @@ --- -pageComponent: +pageComponent: name: Catalogue - data: - key: 《JavaScript教程》笔记 + data: + path: 《JavaScript教程》笔记 imgUrl: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200112120340.png description: 本章内容为博主在原教程基础上添加学习笔记,教程版权归原作者所有。来源:JavaScript教程 title: 《JavaScript教程》笔记 @@ -11,7 +11,7 @@ permalink: /note/javascript article: false comment: false editLink: false -author: +author: name: xugaoyi link: https://github.com/xugaoyi --- diff --git a/docs/01.前端/40.学习笔记/10.《ES6 教程》笔记.md b/docs/01.前端/40.学习笔记/10.《ES6 教程》笔记.md index 734bbab..103371a 100644 --- a/docs/01.前端/40.学习笔记/10.《ES6 教程》笔记.md +++ b/docs/01.前端/40.学习笔记/10.《ES6 教程》笔记.md @@ -2,7 +2,7 @@ pageComponent: name: Catalogue data: - key: 《ES6 教程》笔记 + path: 《ES6 教程》笔记 imgUrl: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200112160453.png description: 本章内容为博主在原教程基础上添加学习笔记,教程版权归原作者所有。来源:ES6教程 title: 《ES6 教程》笔记 diff --git a/docs/01.前端/40.学习笔记/20.《Vue》笔记.md b/docs/01.前端/40.学习笔记/20.《Vue》笔记.md index ac19ec5..2887aed 100644 --- a/docs/01.前端/40.学习笔记/20.《Vue》笔记.md +++ b/docs/01.前端/40.学习笔记/20.《Vue》笔记.md @@ -2,7 +2,7 @@ pageComponent: name: Catalogue data: - key: 《Vue》笔记 + path: 《Vue》笔记 imgUrl: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200204143633.png description: 本章内容是博主的Vue学习笔记,非教程文档,请以官方文档为准。 title: 《Vue》笔记 diff --git a/docs/01.前端/40.学习笔记/25.《Reqct》笔记.md b/docs/01.前端/40.学习笔记/25.《React》笔记.md similarity index 96% rename from docs/01.前端/40.学习笔记/25.《Reqct》笔记.md rename to docs/01.前端/40.学习笔记/25.《React》笔记.md index 03b49c0..832567b 100644 --- a/docs/01.前端/40.学习笔记/25.《Reqct》笔记.md +++ b/docs/01.前端/40.学习笔记/25.《React》笔记.md @@ -2,7 +2,7 @@ pageComponent: name: Catalogue data: - key: 《React》笔记 + path: 《React》笔记 imgUrl: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0xMS41IC0xMC4yMzE3NCAyMyAyMC40NjM0OCI+CiAgPHRpdGxlPlJlYWN0IExvZ288L3RpdGxlPgogIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIyLjA1IiBmaWxsPSIjNjFkYWZiIi8+CiAgPGcgc3Ryb2tlPSIjNjFkYWZiIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIi8+CiAgICA8ZWxsaXBzZSByeD0iMTEiIHJ5PSI0LjIiIHRyYW5zZm9ybT0icm90YXRlKDYwKSIvPgogICAgPGVsbGlwc2Ugcng9IjExIiByeT0iNC4yIiB0cmFuc2Zvcm09InJvdGF0ZSgxMjApIi8+CiAgPC9nPgo8L3N2Zz4K description: 本章内容是博主的React学习笔记,非教程文档,请以官方文档为准。 title: 《React》笔记 diff --git a/docs/01.前端/40.学习笔记/30.《TypeScript 从零实现 axios》.md b/docs/01.前端/40.学习笔记/30.《TypeScript 从零实现 axios》.md index fca2b28..fcd25b0 100644 --- a/docs/01.前端/40.学习笔记/30.《TypeScript 从零实现 axios》.md +++ b/docs/01.前端/40.学习笔记/30.《TypeScript 从零实现 axios》.md @@ -1,8 +1,8 @@ --- -pageComponent: +pageComponent: name: Catalogue - data: - key: 《TypeScript 从零实现 axios》 + data: + path: 《TypeScript 从零实现 axios》 imgUrl: https://cdn.jsdelivr.net/gh/xugaoyi/image_store/blog/20200105104632.png description: 学习使用 TypeScript 从零实现 axios 库 title: 《TypeScript 从零实现 axios》 @@ -11,7 +11,7 @@ permalink: /note/typescript-axios article: false comment: false editLink: false -author: +author: name: xugaoyi link: https://github.com/xugaoyi --- diff --git a/docs/01.前端/40.学习笔记/33.《Git》学习笔记.md b/docs/01.前端/40.学习笔记/33.《Git》学习笔记.md index f485d6d..8089cc8 100644 --- a/docs/01.前端/40.学习笔记/33.《Git》学习笔记.md +++ b/docs/01.前端/40.学习笔记/33.《Git》学习笔记.md @@ -2,7 +2,7 @@ pageComponent: name: Catalogue data: - key: 《Git》学习笔记 + path: 《Git》学习笔记 imgUrl: https://avatars3.githubusercontent.com/u/18133?s=200&v=4 description: Git官网文档的学习笔记,以官方文档为准。 title: 《Git》学习笔记 diff --git a/docs/_posts/随笔/你知道的越多,不知道的也就越多.md b/docs/_posts/随笔/你知道的越多,不知道的也就越多.md index 4323e0f..d934a7c 100644 --- a/docs/_posts/随笔/你知道的越多,不知道的也就越多.md +++ b/docs/_posts/随笔/你知道的越多,不知道的也就越多.md @@ -3,13 +3,13 @@ title: 你知道的越多,不知道的也就越多 date: 2020-05-06 15:52:40 permalink: /pages/f2e63f sidebar: auto -categories: +categories: - 随笔 -tags: +tags: - 学习 - 知识 - 鸡汤 -author: +author: name: xugaoyi link: https://github.com/xugaoyi --- @@ -30,5 +30,3 @@ author: ::: tip 鸡汤2 当代青年人都应该摆脱冷气,只管向上走,不必听从自暴自弃者的流言。能做事的做事,能发声的发声。有一份热,发一份光,就像萤火一般,也可以在黑暗里发一点光,不必等候炬火。 ::: - - diff --git a/package.json b/package.json index c5b9adf..edb55fd 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "deploy": "bash deploy.sh", "editFm": "node utils/editFrontmatter.js", "baiduPush": "node utils/baiduPush.js https://xugaoyi.com && bash baiduPush.sh", - "publish": "cd theme-vdoing && npm publish && cd ../ && npm run updateTheme", + "publish": "cd ./theme-vdoing && npm publish && cd ../ && npm run updateTheme", "updateTheme": "npm uninstall vuepress-theme-vdoing && rm -rf node_modules && npm i && npm i vuepress-theme-vdoing -D" }, "license": "MIT", @@ -22,7 +22,7 @@ "vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-zooming": "^1.1.7", - "vuepress-theme-vdoing": "^1.8.1", + "vuepress-theme-vdoing": "^1.8.2", "yamljs": "^0.3.0" }, "dependencies": { diff --git a/theme-vdoing/components/ArchivesPage.vue b/theme-vdoing/components/ArchivesPage.vue index 3bf4bc8..e464758 100644 --- a/theme-vdoing/components/ArchivesPage.vue +++ b/theme-vdoing/components/ArchivesPage.vue @@ -6,21 +6,21 @@ :src="currentBadge" v-if="$themeConfig.titleBadge === false ? false : true" /> - {{this.$page.title}} + {{ this.$page.title }}
@@ -60,33 +68,42 @@ > {{articleInfo.author.name}} - {{articleInfo.author.name || articleInfo.author}} + >{{ articleInfo.author.name }} + {{ + articleInfo.author.name || articleInfo.author + }}
- {{articleInfo.date}} + {{ articleInfo.date }}
{{item + ' '}} + >{{ item + ' ' }}
@@ -123,7 +140,6 @@ export default { const classify3 = relativePathArr.length > 3 ? relativePathArr[2].split('.')[1] : undefined// 文章三级分类名称 const cataloguePermalink = sidebar && sidebar.catalogue ? sidebar.catalogue[classify1] : undefined// 目录页永久链接 - const author = this.$frontmatter.author || this.$themeConfig.author // 作者 let date = (pageInfo.frontmatter.date || '').split(' ')[0] // 文章创建时间 diff --git a/theme-vdoing/components/BloggerBar.vue b/theme-vdoing/components/BloggerBar.vue index c99ac16..71ca215 100644 --- a/theme-vdoing/components/BloggerBar.vue +++ b/theme-vdoing/components/BloggerBar.vue @@ -1,29 +1,22 @@ @@ -45,7 +38,7 @@ export default { .blogger-wrapper height auto display inline-table - padding-top 0!important + padding-top 0 !important overflow hidden .avatar width 100% diff --git a/theme-vdoing/components/Buttons.vue b/theme-vdoing/components/Buttons.vue index 36dbdc0..da2fbb4 100644 --- a/theme-vdoing/components/Buttons.vue +++ b/theme-vdoing/components/Buttons.vue @@ -33,9 +33,11 @@ v-for="item in modeList" :key="item.KEY" class="iconfont" - :class="[item.icon, {active: item.KEY === currentMode}]" + :class="[item.icon, { active: item.KEY === currentMode }]" @click="toggleMode(item.KEY)" - >{{item.name}} + > + {{ item.name }} + diff --git a/theme-vdoing/components/Catalogue.vue b/theme-vdoing/components/Catalogue.vue index 6ae8399..e54eadc 100644 --- a/theme-vdoing/components/Catalogue.vue +++ b/theme-vdoing/components/Catalogue.vue @@ -3,53 +3,34 @@
-
{{pageData.title}}
-
+
{{ pageData.title }}
+
-
+
目录