From c4e34bd87911c67abab5d6a68bc3d8b5c69e3275 Mon Sep 17 00:00:00 2001 From: Sunny-117 Date: Sun, 28 Jan 2024 18:08:43 +0800 Subject: [PATCH] chore: update deps --- docs/.vitepress/config.ts | 10 +---- docs/.vitepress/defaultSidebar.ts | 40 ++++++------------- docs/.vitepress/dist | 2 +- ...70\347\224\250\346\213\223\345\261\225.md" | 4 +- docs/html-css/interview.md | 3 -- docs/js-challanges/1.js | 3 -- docs/js-challanges/index.md | 3 -- docs/js/index.md | 1 - docs/ts/TypeScript-onePage.md | 4 +- 9 files changed, 19 insertions(+), 51 deletions(-) delete mode 100644 docs/js-challanges/1.js delete mode 100644 docs/js-challanges/index.md delete mode 100644 docs/js/index.md diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 9caf4da0..13726c09 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -28,10 +28,6 @@ export default defineConfig({ outline: [1, 3], sidebar: defaultSidebar, nav: [ - // { - // text: 'Playground', - // link: 'https://mini-anything-play.netlify.app/', - // }, ...defaultSidebar.slice(1, 5), ], socialLinks: [ @@ -44,10 +40,6 @@ export default defineConfig({ pattern: "https://github.com/Sunny-117/blog", text: "Edit this page on Gitlab", }, - lastUpdatedText: "Last Updated", - localeLinks: { - text: "English", - items: [{ text: "简体中文", link: "https://netlify.app" }], - }, + lastUpdatedText: "Last Updated" }, }); diff --git a/docs/.vitepress/defaultSidebar.ts b/docs/.vitepress/defaultSidebar.ts index 2ad63ae7..60e5f8f1 100644 --- a/docs/.vitepress/defaultSidebar.ts +++ b/docs/.vitepress/defaultSidebar.ts @@ -15,13 +15,9 @@ export const defaultSidebar: DefaultTheme.Sidebar = [ ], }, { - text: "JavaScript", + text: "前端三件套", collapsible: true, items: [ - { - text: "JavaScript", - link: "/js/", - }, { text: "异步处理", link: "/js/异步处理", @@ -34,18 +30,9 @@ export const defaultSidebar: DefaultTheme.Sidebar = [ text: "迭代器和生成器", link: "/js/迭代器和生成器", }, + ...hcConfig ], }, - { - text: "TypeScript", - items: [ - { - text: "TypeScript OnePage", - link: "/ts/TypeScript-onePage", - }, - ], - }, - { text: "前端工程化", collapsible: true, @@ -64,6 +51,15 @@ export const defaultSidebar: DefaultTheme.Sidebar = [ collapsed: true, items: reactConfig, }, + { + text: "TypeScript", + items: [ + { + text: "TypeScript OnePage", + link: "/ts/TypeScript-onePage", + }, + ], + }, { text: "前端工具", items: [ @@ -89,11 +85,7 @@ export const defaultSidebar: DefaultTheme.Sidebar = [ { text: "🔥刷题之探索最优解", link: "/algorithm/🔥刷题之探索最优解", - }, - { - text: "js-challanges", - link: "/js-challanges/index.md", - }, + } ], }, { @@ -109,11 +101,5 @@ export const defaultSidebar: DefaultTheme.Sidebar = [ link: "/interview/算法笔试", }, ], - }, - { - text: `HTML-CSS ${hcConfig.length}篇`, - collapsed: true, - collapsible: true, - items: hcConfig, - }, + } ]; diff --git a/docs/.vitepress/dist b/docs/.vitepress/dist index 22f54152..6a0d769d 160000 --- a/docs/.vitepress/dist +++ b/docs/.vitepress/dist @@ -1 +1 @@ -Subproject commit 22f54152026c73d5f2ed32106b02b0f1bb5afee1 +Subproject commit 6a0d769d5e74d4463dd3dd40dbe63f18f23b81ce diff --git "a/docs/front-end-engineering/webpack\345\270\270\347\224\250\346\213\223\345\261\225.md" "b/docs/front-end-engineering/webpack\345\270\270\347\224\250\346\213\223\345\261\225.md" index 6bf3f005..ed2a1f1e 100644 --- "a/docs/front-end-engineering/webpack\345\270\270\347\224\250\346\213\223\345\261\225.md" +++ "b/docs/front-end-engineering/webpack\345\270\270\347\224\250\346\213\223\345\261\225.md" @@ -228,8 +228,8 @@ new webpack.BannerPlugin({ hash:[hash] chunkhash:[chunkhash] name:[name] - author:yuanjin - corporation:duyi + author:sunny-117 + corporation:sunny ` }) ``` diff --git a/docs/html-css/interview.md b/docs/html-css/interview.md index 92b15598..1df1033e 100644 --- a/docs/html-css/interview.md +++ b/docs/html-css/interview.md @@ -1,8 +1,5 @@ # HTML_CSS 面试题 -:::danger -文档格式待调整,欢迎提 PR -::: ## 1. 什么是 ?是否需要在 _HTML5_ 中使用? diff --git a/docs/js-challanges/1.js b/docs/js-challanges/1.js deleted file mode 100644 index 8b024f86..00000000 --- a/docs/js-challanges/1.js +++ /dev/null @@ -1,3 +0,0 @@ -export function a() { - -} \ No newline at end of file diff --git a/docs/js-challanges/index.md b/docs/js-challanges/index.md deleted file mode 100644 index bcd1256e..00000000 --- a/docs/js-challanges/index.md +++ /dev/null @@ -1,3 +0,0 @@ -# js-challanges - -代码内容详见代码仓库 `docs/js-challanges/` \ No newline at end of file diff --git a/docs/js/index.md b/docs/js/index.md deleted file mode 100644 index d7d07d13..00000000 --- a/docs/js/index.md +++ /dev/null @@ -1 +0,0 @@ -# js diff --git a/docs/ts/TypeScript-onePage.md b/docs/ts/TypeScript-onePage.md index b1b07639..7d71564a 100644 --- a/docs/ts/TypeScript-onePage.md +++ b/docs/ts/TypeScript-onePage.md @@ -1101,11 +1101,11 @@ function nameToUpperCase(obj: T): T { return obj; } const o = { - name: "kevin yuan", + name: "kevin", age: 19, }; const newO = nameToUpperCase(o); -console.log(newO.name); //Kevin Yuan +console.log(newO.name); ``` ## 多泛型