Skip to content

Commit f9ba096

Browse files
author
根号三
authored
Adjust some styles and upgrade dependencies to fix potential security vulnerability (#7)
* ⬆️ deps(package.json): Upgrade prettier to latest version * ⬆️ deps(package.json): Upgrade gh-pages to latest version * 👽 fix: Add main field and index.js due to VuePress API changes https://vuepress.vuejs.org/theme/writing-a-theme.html#directory-structure Signed-off-by: sqrtthree <[email protected]> * 💄 fix(styles): Fix the style of 404 page'
1 parent 1c8592a commit f9ba096

File tree

4 files changed

+53
-35
lines changed

4 files changed

+53
-35
lines changed

NotFound.vue

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
<div class="content">
44
<h1>Not Found</h1>
55
<p>{{ getMsg() }}</p>
6-
<router-link to="/">Take me home.</router-link>
6+
<router-link class="backto" to="/">Take me home.</router-link>
77
</div>
88
</div>
99
</template>
1010

1111
<script>
1212
const msgs = [
13-
`There's nothing here.`,
14-
`How did we get here?`,
15-
`That's a Four-Oh-Four.`,
16-
`Looks like we've got some broken links.`,
17-
`Please try your request again or contact support.`,
13+
"There's nothing here.",
14+
'How did we get here?',
15+
"That's a Four-Oh-Four.",
16+
"Looks like we've got some broken links.",
17+
'Please try your request again or contact support.',
18+
"The page you are looking for doesn't exist or misterionsly dissapear.",
1819
]
1920
2021
export default {
@@ -40,7 +41,7 @@ export default {
4041
margin-bottom: 24px
4142
4243
h1
43-
margin-bottom: 0
44+
margin: 0
4445
font-size: 20px
4546
font-weight: 500
4647
@@ -50,6 +51,11 @@ export default {
5051
5152
p
5253
margin: 0
53-
margin-right: 10px;
54+
margin-right: 10px
55+
font-size: 14px
56+
57+
.backto
5458
font-size: 14px
59+
text-decoration: none
60+
color: #067df7
5561
</style>

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Noop.
2+
3+
// This file is required due to publish the theme as an npm package.
4+
// More details are https://vuepress.vuejs.org/theme/writing-a-theme.html#directory-structure

package-lock.json

Lines changed: 32 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"directories": {
2222
"doc": "docs"
2323
},
24+
"main": "index.js",
2425
"scripts": {
2526
"dev": "npm run docs:dev",
2627
"docs:dev": "vuepress dev docs",
@@ -36,7 +37,7 @@
3637
"axios": "^0.18.0"
3738
},
3839
"devDependencies": {
39-
"gh-pages": "^1.2.0",
40-
"prettier": "^1.13.7"
40+
"gh-pages": "^2.0.1",
41+
"prettier": "^1.15.3"
4142
}
4243
}

0 commit comments

Comments
 (0)