Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunny-117 committed Jan 28, 2024
1 parent 2a3461f commit c4e34bd
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 51 deletions.
10 changes: 1 addition & 9 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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"
},
});
40 changes: 13 additions & 27 deletions docs/.vitepress/defaultSidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ export const defaultSidebar: DefaultTheme.Sidebar = [
],
},
{
text: "JavaScript",
text: "前端三件套",
collapsible: true,
items: [
{
text: "JavaScript",
link: "/js/",
},
{
text: "异步处理",
link: "/js/异步处理",
Expand All @@ -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,
Expand All @@ -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: [
Expand All @@ -89,11 +85,7 @@ export const defaultSidebar: DefaultTheme.Sidebar = [
{
text: "🔥刷题之探索最优解",
link: "/algorithm/🔥刷题之探索最优解",
},
{
text: "js-challanges",
link: "/js-challanges/index.md",
},
}
],
},
{
Expand All @@ -109,11 +101,5 @@ export const defaultSidebar: DefaultTheme.Sidebar = [
link: "/interview/算法笔试",
},
],
},
{
text: `HTML-CSS ${hcConfig.length}篇`,
collapsed: true,
collapsible: true,
items: hcConfig,
},
}
];
2 changes: 1 addition & 1 deletion docs/.vitepress/dist
Submodule dist updated from 22f541 to 6a0d76
4 changes: 2 additions & 2 deletions docs/front-end-engineering/webpack常用拓展.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ new webpack.BannerPlugin({
hash:[hash]
chunkhash:[chunkhash]
name:[name]
author:yuanjin
corporation:duyi
author:sunny-117
corporation:sunny
`
})
```
Expand Down
3 changes: 0 additions & 3 deletions docs/html-css/interview.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# HTML_CSS 面试题

:::danger
文档格式待调整,欢迎提 PR
:::

## 1. 什么是 <!DOCTYPE>?是否需要在 _HTML5_ 中使用?

Expand Down
3 changes: 0 additions & 3 deletions docs/js-challanges/1.js

This file was deleted.

3 changes: 0 additions & 3 deletions docs/js-challanges/index.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/index.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/ts/TypeScript-onePage.md
Original file line number Diff line number Diff line change
Expand Up @@ -1101,11 +1101,11 @@ function nameToUpperCase<T extends hasNameProperty>(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);
```

## 多泛型
Expand Down

0 comments on commit c4e34bd

Please sign in to comment.