Skip to content

Commit 4e4e046

Browse files
committed
update: hide empty article
1 parent 770f051 commit 4e4e046

File tree

4 files changed

+41
-24
lines changed

4 files changed

+41
-24
lines changed

.vitepress/sidebar/learn.ts

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,39 @@
11
import {
2-
androidIcon, conceptIcon, cssIcon, deployIcon, dockerIcon, editorIcon, gitIcon, hBuilderXIcon,
3-
htmlIcon, httpIcon, ideaIcon, infoIcon, javaBaseIcon, javaIcon, jsIcon, mySQLIcon, nodejsIcon, npmIcon,
4-
rearEndIcon, springBootIcon, springIcon, sqlIcon, uniAppIcon, versionControlIcon, vueIcon,
5-
webIcon, webpackIcon, wxMiniprogramIcon
2+
androidIcon,
3+
conceptIcon,
4+
cssIcon,
5+
deployIcon,
6+
dockerIcon,
7+
editorIcon,
8+
gitIcon,
9+
hBuilderXIcon,
10+
htmlIcon,
11+
httpIcon,
12+
ideaIcon,
13+
infoIcon,
14+
javaIcon,
15+
jsIcon,
16+
mySQLIcon,
17+
nodejsIcon,
18+
npmIcon,
19+
rearEndIcon,
20+
springIcon,
21+
sqlIcon,
22+
uniAppIcon,
23+
versionControlIcon,
24+
vueIcon,
25+
webIcon
626
} from './icons';
727
import htmlItems from './learn/html';
828
import cssItems from './learn/css';
929
import jsItems from './learn/js';
1030
import vueItems from './learn/vue';
1131
import httpItems from './learn/http';
1232
import webConceptItems from './learn/webConcept';
13-
import springbootItems from './learn/springboot';
1433
import ideaItems from './learn/idea';
1534
import springItems from './learn/spring';
16-
import wxMiniprogramItems from './learn/wx-miniprogram';
1735
import mysqlItems from './learn/mysql';
1836
import hBuilderXItems from './learn/hbuilderx';
19-
import webpackItems from './learn/webpack';
2037
import uniappItems from './learn/uniapp';
2138
import dockerItem from './learn/docker';
2239
import androidItems from './learn/android';
@@ -77,12 +94,12 @@ const learnSidebar: SidebarType[] = [
7794
collapsed: true,
7895
items: httpItems
7996
},
80-
{
97+
/* {
8198
icon: wxMiniprogramIcon,
8299
text: '微信小程序',
83100
collapsed: true,
84101
items: wxMiniprogramItems
85-
},
102+
}, */
86103
{
87104
icon: uniAppIcon,
88105
text: 'uni-app',
@@ -94,13 +111,13 @@ const learnSidebar: SidebarType[] = [
94111
text: 'Android',
95112
collapsed: true,
96113
items: androidItems
97-
},
98-
{
114+
}
115+
/* {
99116
icon: webpackIcon,
100117
text: 'Webpack',
101118
collapsed: true,
102119
items: webpackItems
103-
}
120+
} */
104121
]
105122
},
106123
{
@@ -113,24 +130,24 @@ const learnSidebar: SidebarType[] = [
113130
text: 'Java',
114131
collapsed: true,
115132
items: [
116-
{
133+
/* {
117134
icon: javaBaseIcon,
118135
text: 'Java基础',
119136
collapsed: true,
120137
items: []
121-
},
138+
}, */
122139
{
123140
icon: springIcon,
124141
text: 'Spring',
125142
collapsed: true,
126143
items: springItems
127-
},
128-
{
144+
}
145+
/* {
129146
icon: springBootIcon,
130147
text: 'SpringBoot',
131148
collapsed: true,
132149
items: springbootItems
133-
}
150+
} */
134151
]
135152
}
136153
]

.vitepress/sidebar/learn/js.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const jsItems: SidebarType[] = [
2222
link: '/learn/web/javascript/the_difference_between_deep_copy_and_shallow_copy'
2323
},
2424
{ icon: '🔥', text: '什么是闭包?', link: '/learn/web/javascript/what_is_closure' },
25-
{ icon: '🔥', text: '谈谈原型与原型链', link: '/learn/web/javascript/prototype_and_prototype_chains' },
25+
// { icon: '🔥', text: '谈谈原型与原型链', link: '/learn/web/javascript/prototype_and_prototype_chains' },
2626
{ icon: '🔥', text: 'var、let、const 的区别', link: '/learn/web/javascript/the_difference_between_var_let_and_const' },
2727
{
2828
icon: '🔥',
@@ -43,9 +43,9 @@ const jsItems: SidebarType[] = [
4343
{ icon: '⭐', text: 'promise.all()', link: '/learn/web/javascript/promise_all' }
4444
]
4545
},
46-
{ icon: '🔹', text: 'MutationObserver监听DOM', link: '/learn/web/javascript/mutationObserver_listens_to_dom' },
47-
{ icon: '⭐', text: 'requestAnimationFrame是什么?', link: '/learn/web/javascript/what_is_requestAnimationFrame' },
48-
{ icon: '⭐', text: 'GC垃圾回收机制', link: '/learn/web/javascript/garbage_collection_mechanism' }
46+
{ icon: '🔹', text: 'MutationObserver监听DOM', link: '/learn/web/javascript/mutationObserver_listens_to_dom' }
47+
// { icon: '⭐', text: 'requestAnimationFrame是什么?', link: '/learn/web/javascript/what_is_requestAnimationFrame' },
48+
// { icon: '⭐', text: 'GC垃圾回收机制', link: '/learn/web/javascript/garbage_collection_mechanism' }
4949
];
5050

5151
export default jsItems;

.vitepress/sidebar/learn/uniapp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { type SidebarType } from '../../../package/type';
22

33
const uniappItems: SidebarType[] = [
4-
{
4+
/* {
55
icon: '🔹',
66
text: '使用 Android Studio 离线打包',
77
link: '/learn/web/uniapp/packaging_offline_with_android_studio'
8-
},
8+
}, */
99
{
1010
icon: '🔹',
1111
text: 'uni-app 离线打包配置使用高德地图',

.vitepress/sidebar/learn/vue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const vueItems: SidebarType[] = [
4444
}
4545
]
4646
},
47-
{ icon: '⭐', text: 'Diff 算法', link: '/learn/web/vue/diff_algorithm' },
47+
// { icon: '⭐', text: 'Diff 算法', link: '/learn/web/vue/diff_algorithm' },
4848
{ icon: '🔸', text: 'Vue项目配置路径别名', link: '/learn/web/vue/configure_path_aliases' },
4949
{
5050
icon: '🔥',

0 commit comments

Comments
 (0)