Skip to content

Commit

Permalink
Adjust some styles and upgrade dependencies to fix potential security…
Browse files Browse the repository at this point in the history
… 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'
  • Loading branch information
linhe0x0 authored Apr 30, 2019
1 parent 1c8592a commit f9ba096
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 35 deletions.
22 changes: 14 additions & 8 deletions NotFound.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
<div class="content">
<h1>Not Found</h1>
<p>{{ getMsg() }}</p>
<router-link to="/">Take me home.</router-link>
<router-link class="backto" to="/">Take me home.</router-link>
</div>
</div>
</template>

<script>
const msgs = [
`There's nothing here.`,
`How did we get here?`,
`That's a Four-Oh-Four.`,
`Looks like we've got some broken links.`,
`Please try your request again or contact support.`,
"There's nothing here.",
'How did we get here?',
"That's a Four-Oh-Four.",
"Looks like we've got some broken links.",
'Please try your request again or contact support.',
"The page you are looking for doesn't exist or misterionsly dissapear.",
]
export default {
Expand All @@ -40,7 +41,7 @@ export default {
margin-bottom: 24px
h1
margin-bottom: 0
margin: 0
font-size: 20px
font-weight: 500
Expand All @@ -50,6 +51,11 @@ export default {
p
margin: 0
margin-right: 10px;
margin-right: 10px
font-size: 14px
.backto
font-size: 14px
text-decoration: none
color: #067df7
</style>
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Noop.

// This file is required due to publish the theme as an npm package.
// More details are https://vuepress.vuejs.org/theme/writing-a-theme.html#directory-structure
57 changes: 32 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"directories": {
"doc": "docs"
},
"main": "index.js",
"scripts": {
"dev": "npm run docs:dev",
"docs:dev": "vuepress dev docs",
Expand All @@ -36,7 +37,7 @@
"axios": "^0.18.0"
},
"devDependencies": {
"gh-pages": "^1.2.0",
"prettier": "^1.13.7"
"gh-pages": "^2.0.1",
"prettier": "^1.15.3"
}
}

0 comments on commit f9ba096

Please sign in to comment.