Skip to content

Commit 01e5e8b

Browse files
committed
feat: 升级NodeJs依赖包
1 parent 284ce2d commit 01e5e8b

Some content is hidden

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

53 files changed

+9793
-10540
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ static/images/.DS_Store
99
.temp
1010
node_modules
1111
package-lock.json
12-
yarn.lock
12+
yarn.lock
13+
.cache
14+
docs/.vuepress/.cache
15+
docs/.vuepress/.ctemp

docs/.vuepress/components/UpgradePath.vue

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,32 @@ export default {
33
functional: true,
44
props: {
55
title: String,
6-
required: true
6+
required: true,
77
},
8-
render (h, { props, slots }) {
9-
return h('div',
8+
render(h, { props, slots }) {
9+
return h(
10+
"div",
1011
{
11-
class: ['upgrade-path']
12+
class: ["upgrade-path"],
1213
},
13-
[
14-
h('h4', props.title || 'Upgrade Path'),
15-
slots().default
16-
]
17-
)
18-
}
19-
}
14+
[h("h4", props.title || "Upgrade Path"), slots().default]
15+
);
16+
},
17+
};
2018
</script>
2119

22-
<style lang="stylus">
23-
.upgrade-path
24-
margin-top: 2em
25-
padding: 2em
26-
background: rgba(73, 195, 140, .1)
27-
border-radius: 2px
28-
> h4
29-
margin-top: 0
30-
> p:last-child
31-
margin-bottom: 0
32-
padding-bottom: 0
20+
<style lang="scss">
21+
.upgrade-path {
22+
margin-top: 2em;
23+
padding: 2em;
24+
background: rgba(73, 195, 140, 0.1);
25+
border-radius: 2px;
26+
> h4 {
27+
margin-top: 0;
28+
}
29+
> p:last-child {
30+
margin-bottom: 0;
31+
padding-bottom: 0;
32+
}
33+
}
3334
</style>

docs/.vuepress/components/ahome-article.vue

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
<ul>
66
<li v-for="(item, index) in recommend" :key="index">
77
<a :href="item.url" :title="item.title" target="_blank">
8-
<div class="poster" :style="{'background-image': 'url(' + item.poster + ')'}"></div>
9-
<div class="title">{{item.title}}</div>
8+
<div
9+
class="poster"
10+
:style="{ 'background-image': 'url(' + item.poster + ')' }"
11+
></div>
12+
<div class="title">{{ item.title }}</div>
1013
</a>
1114
</li>
1215
</ul>
@@ -15,7 +18,7 @@
1518
</template>
1619

1720
<script>
18-
const staticDomain = 'https://static.numpy.thto.net/';
21+
const staticDomain = "https://static.numpy.thto.net/";
1922
2023
export default {
2124
data() {
@@ -24,37 +27,42 @@ export default {
2427
{
2528
poster: staticDomain + "home/li.jpg@w300h300",
2629
title: "你离开学只差这个视频:李宏毅机器学习2020版正式开放上线",
27-
url: "https://www.kuxai.com/article/2"
30+
url: "https://www.kuxai.com/article/2",
2831
},
2932
{
3033
poster: staticDomain + "home/article_poster_02.jpg@w300h300",
3134
title: "可能是最通俗易懂的Python入门资料整理和最优学习路线推荐。",
32-
url: "https://mp.weixin.qq.com/s/QUUYEimknwt5v3RUxIf8kQ"
35+
url: "https://mp.weixin.qq.com/s/QUUYEimknwt5v3RUxIf8kQ",
3336
},
3437
{
3538
poster: staticDomain + "home/article_poster_03.jpg@w300h300",
3639
title: "几百个不同领域的数据集分享给你,别让巧妇难为无米之炊。",
37-
url: "https://mp.weixin.qq.com/s/lVKa2j2yXbjpjom4GD5Btw"
40+
url: "https://mp.weixin.qq.com/s/lVKa2j2yXbjpjom4GD5Btw",
3841
},
3942
{
4043
poster: staticDomain + "home/article_poster_04.jpg@w300h300",
4144
title: "刚刚,我用Python做了个七夕礼物,差点被女朋友打死",
42-
url: "https://mp.weixin.qq.com/s/i2UQOqBr8zGqtgqTaHh3mg"
43-
}
44-
]
45+
url: "https://mp.weixin.qq.com/s/i2UQOqBr8zGqtgqTaHh3mg",
46+
},
47+
],
4548
};
46-
}
49+
},
4750
};
4851
</script>
4952

50-
<style lang="stylus" scoped>
53+
<style lang="scss" scoped>
5154
.home-wxpub {
5255
margin-top: 2rem;
5356
margin-bottom: 1rem;
5457
5558
h3 {
56-
border-left: 0.4rem solid $accentColor;
59+
border-left: 0.4rem solid var(--c-text-accent);
5760
padding-left: 0.6rem;
61+
padding-top: 0;
62+
margin-block-start: 1em;
63+
margin-block-end: 1em;
64+
margin-inline-start: 0px;
65+
margin-inline-end: 0px;
5866
}
5967
6068
.recommend {
@@ -64,7 +72,7 @@ export default {
6472
padding-left: 0px;
6573
6674
&::after {
67-
content: '.';
75+
content: ".";
6876
display: block;
6977
height: 0;
7078
clear: both;
@@ -81,7 +89,7 @@ export default {
8189
8290
a {
8391
display: block;
84-
color: $textColor;
92+
color: var(--c-text);
8593
font-size: 16px;
8694
font-weight: normal;
8795
padding: 8px;
@@ -138,4 +146,4 @@ export default {
138146
}
139147
}
140148
}
141-
</style>
149+
</style>

docs/.vuepress/components/ahome-footer.vue

Lines changed: 81 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<h4>🌐站点相关</h4>
55
<ul>
66
<li>
7-
<a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备16025085号-3</a>
7+
<a href="https://beian.miit.gov.cn/" target="_blank"
8+
>粤ICP备16025085号-3</a
9+
>
810
</li>
911
</ul>
1012
</div>
@@ -16,7 +18,9 @@
1618
<a href="https://www.pypandas.cn/" target="_blank">Pandas 中文网</a>
1719
</li>
1820
<li>
19-
<a href="https://www.matplotlib.org.cn/" target="_blank">Matplotlib 中文网</a>
21+
<a href="https://www.matplotlib.org.cn/" target="_blank"
22+
>Matplotlib 中文网</a
23+
>
2024
</li>
2125
</ul>
2226
</div>
@@ -40,78 +44,100 @@
4044
<a href="https://www.ziiai.com/" target="_blank">极智能</a>
4145
</li>
4246
<li>
43-
<a href="https://www.pytorchtutorial.com/" target="_blank">PyTorch 中文网</a>
47+
<a href="https://www.pytorchtutorial.com/" target="_blank"
48+
>PyTorch 中文网</a
49+
>
4450
</li>
4551
<li>
4652
<a href="http://www.ezist.cn/" target="_blank">机器人</a>
4753
</li>
4854
<li>
49-
<a href="https://www.lizenghai.com/" target="_blank">Python量化投资</a>
55+
<a href="https://www.lizenghai.com/" target="_blank"
56+
>Python量化投资</a
57+
>
5058
</li>
5159
<li>
52-
<a href="https://www.ricequant.com/" target="_blank">RiceQuant米筐量化交易平台</a>
60+
<a href="https://www.ricequant.com/" target="_blank"
61+
>RiceQuant米筐量化交易平台</a
62+
>
5363
</li>
5464
<li>
5565
<a href="https://www.quantinfo.com/" target="_blank">宽客在线</a>
5666
</li>
5767
<li>
58-
<a href="https://www.leiphone.com/?from=numpy.org.cn" target="_blank">雷锋网</a>
68+
<a href="https://www.leiphone.com/?from=numpy.org.cn" target="_blank"
69+
>雷锋网</a
70+
>
5971
</li>
6072
<li>
61-
<a href="https://www.yanxishe.com/?from=numpy.org.cn" target="_blank">AI研习社</a>
73+
<a href="https://www.yanxishe.com/?from=numpy.org.cn" target="_blank"
74+
>AI研习社</a
75+
>
6276
</li>
6377
</ul>
6478
</div>
6579
</div>
6680
</template>
6781

68-
<style lang="stylus" scoped>
69-
.home-footer
70-
margin-top 30px
71-
padding-top 20px
72-
padding-bottom 20px
73-
border-top 1px solid #f8f8f8
82+
<style lang="scss" scoped>
83+
.home-footer {
84+
margin-top: 30px;
85+
padding-top: 20px;
86+
padding-bottom: 20px;
87+
border-top: 1px solid #f8f8f8;
7488
75-
&:after
76-
content ""
77-
display block
78-
height 0
79-
clear both
80-
visibility hidden
81-
82-
.item
83-
width 33.3%
84-
ul
85-
padding 0px
86-
list-style none
87-
li
88-
line-height 1.5
89-
a
90-
font-size 14px !important
91-
transition color 0.2s
92-
&:hover
93-
color darken($accentColor, 20%);
94-
95-
.friends
96-
ul
97-
&:after
98-
content ""
99-
display block
100-
height 0
101-
clear both
102-
visibility hidden
103-
li
104-
float left
105-
margin-right 20px
89+
&:after {
90+
content: "";
91+
display: block;
92+
height: 0;
93+
clear: both;
94+
visibility: hidden;
95+
}
96+
.item {
97+
width: 33.3%;
98+
ul {
99+
padding: 0px;
100+
list-style: none;
101+
li {
102+
line-height: 1.5;
103+
a {
104+
font-size: 14px !important;
105+
transition: color 0.2s;
106+
&:hover {
107+
color: darken(#489dc1, 20%);
108+
}
109+
}
110+
}
111+
}
112+
}
113+
.friends {
114+
ul {
115+
&:after {
116+
content: "";
117+
display: block;
118+
height: 0;
119+
clear: both;
120+
visibility: hidden;
121+
}
122+
li {
123+
float: left;
124+
margin-right: 20px;
125+
}
126+
}
127+
}
106128
107-
.left-box
108-
float left
109-
110-
.right-box
111-
float right
112-
113-
@media (max-width: 650px)
114-
.home-footer
115-
.item
116-
width 100%;
117-
</style>
129+
.left-box {
130+
float: left;
131+
}
132+
.right-box {
133+
float: right;
134+
}
135+
}
136+
@media (max-width: 650px) {
137+
.home-footer {
138+
.item {
139+
width: 100%;
140+
}
141+
}
142+
}
143+
</style>

0 commit comments

Comments
 (0)