Skip to content

Commit 485c362

Browse files
committed
feat: 升级NodeJs依赖包
1 parent 267e7cd commit 485c362

35 files changed

+8855
-491
lines changed

.gitignore

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

docs/.vuepress/components/UpgradePath.vue

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@ export default {
1919
}
2020
</script>
2121

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
22+
<style lang="scss">
23+
.upgrade-path {
24+
margin-top: 2em;
25+
padding: 2em;
26+
background: rgba(73, 195, 140, 0.1);
27+
border-radius: 2px;
28+
> h4 {
29+
margin-top: 0;
30+
}
31+
> p:last-child {
32+
margin-bottom: 0;
33+
padding-bottom: 0;
34+
}
35+
}
3336
</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.matplotlib.thto.net/';
21+
const staticDomain = "https://static.matplotlib.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: 59 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -38,53 +38,65 @@
3838
</div>
3939
</template>
4040

41-
<style lang="stylus" scoped>
42-
.home-footer
43-
margin-top 30px
44-
padding-top 20px
45-
padding-bottom 20px
46-
border-top 1px solid #f8f8f8
41+
<style lang="scss" scoped>
42+
.home-footer {
43+
margin-top: 30px;
44+
padding-top: 20px;
45+
padding-bottom: 20px;
46+
border-top: 1px solid #f8f8f8;
4747
48-
&:after
49-
content ""
50-
display block
51-
height 0
52-
clear both
53-
visibility hidden
54-
55-
.item
56-
width 33.3%
57-
ul
58-
padding 0px
59-
list-style none
60-
li
61-
line-height 1.5
62-
a
63-
font-size 14px !important
64-
transition color 0.2s
65-
&:hover
66-
color darken($accentColor, 20%);
67-
68-
.friends
69-
ul
70-
&:after
71-
content ""
72-
display block
73-
height 0
74-
clear both
75-
visibility hidden
76-
li
77-
float left
78-
margin-right 20px
48+
&:after {
49+
content: "";
50+
display: block;
51+
height: 0;
52+
clear: both;
53+
visibility: hidden;
54+
}
55+
.item {
56+
width: 33.3%;
57+
ul {
58+
padding: 0px;
59+
list-style: none;
60+
li {
61+
line-height: 1.5;
62+
a {
63+
font-size: 14px !important;
64+
transition: color 0.2s;
65+
&:hover {
66+
color: darken(#489dc1, 20%);
67+
}
68+
}
69+
}
70+
}
71+
}
72+
.friends {
73+
ul {
74+
&:after {
75+
content: "";
76+
display: block;
77+
height: 0;
78+
clear: both;
79+
visibility: hidden;
80+
}
81+
li {
82+
float: left;
83+
margin-right: 20px;
84+
}
85+
}
86+
}
7987
80-
.left-box
81-
float left
82-
83-
.right-box
84-
float right
85-
86-
@media (max-width: 650px)
87-
.home-footer
88-
.item
89-
width 100%;
88+
.left-box {
89+
float: left;
90+
}
91+
.right-box {
92+
float: right;
93+
}
94+
}
95+
@media (max-width: 650px) {
96+
.home-footer {
97+
.item {
98+
width: 100%;
99+
}
100+
}
101+
}
90102
</style>

0 commit comments

Comments
 (0)