-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump version (bump version: 2.0.0-alpha.4)
- Loading branch information
1 parent
3e5aa50
commit 4a87c2e
Showing
13 changed files
with
213 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template></template> | ||
|
||
<script lang="ts"> | ||
export default {} | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<section class="error-page"> | ||
<div class="title">{{ title }}</div> | ||
<div class="description">{{ desc }}</div> | ||
<div class="random" @click="randomMsg">{{ msg }}</div> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
function pick(list: any[]) { | ||
return list[Math.floor(Math.random() * list.length)] | ||
} | ||
const msgList = [ | ||
'就像装在游戏机盒子里的作业本一样没有人喜欢!', | ||
// FF14骚话 | ||
'就像闪耀登场释放天辉的白魔法师一样没有人喜欢!', | ||
'就像冰4火4一个慢动作的黑魔法师一样没有人喜欢!', | ||
'就像耗尽了了以太超流的学者一样没有人喜欢!', | ||
'就像忘记了每分钟背刺的忍者一样没有人喜欢!', | ||
'就像进本后跳999接受LB需求退本一气呵成的龙骑一样没有人喜欢!', | ||
'就像成天把拉拉菲尔族当做食材的人一样没有人喜欢!', | ||
'就像死而不僵状态下的暗黑骑士一样没有人喜欢!', | ||
'就像无论如何也触发不了诗心的诗人一样没有人喜欢!', | ||
] | ||
export default defineComponent({ | ||
props: ['title', 'desc'], | ||
data() { | ||
return { | ||
msg: '', | ||
} | ||
}, | ||
methods: { | ||
randomMsg() { | ||
this.msg = pick(msgList) | ||
}, | ||
}, | ||
created() { | ||
document.title = 'Error | PixivNow' | ||
this.randomMsg() | ||
}, | ||
}) | ||
</script> | ||
|
||
<style scoped> | ||
.error-page { | ||
margin: 10rem auto; | ||
height: 100%; | ||
text-align: center; | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
} | ||
.error-page > div { | ||
width: 100%; | ||
} | ||
.title { | ||
font-size: 4rem; | ||
font-weight: bold; | ||
} | ||
.description { | ||
font-size: 1.5rem; | ||
} | ||
.random { | ||
color: #aaa; | ||
user-select: none; | ||
margin-top: 1rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,15 @@ | ||
<template> | ||
<section class="error-404"> | ||
<div class="title">404</div> | ||
<div class="description">啊咧?啊咧咧——?!页面跑丢了!!!</div> | ||
<div class="random" @click="random404">{{ msg }}</div> | ||
</section> | ||
<error-page title="404" desc="啊咧?啊咧咧——?!页面跑丢了!!!" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
function pick(list: any[]) { | ||
return list[Math.floor(Math.random() * list.length)] | ||
} | ||
const errMsg = [ | ||
'就像装在游戏机盒子里的作业本一样没有人喜欢!', | ||
// FF14骚话 | ||
'就像闪耀登场释放天辉的白魔法师一样没有人喜欢!', | ||
'就像冰4火4一个慢动作的黑魔法师一样没有人喜欢!', | ||
'就像耗尽了了以太超流的学者一样没有人喜欢!', | ||
'就像忘记了每分钟背刺的忍者一样没有人喜欢!', | ||
'就像进本后跳999接受LB需求退本一气呵成的龙骑一样没有人喜欢!', | ||
'就像成天把拉拉菲尔族成为食材的人一样没有人喜欢!', | ||
'就像死而不僵状态下的暗黑骑士一样没有人喜欢!', | ||
'就像无论如何也触发不了诗心的诗人一样没有人喜欢!', | ||
] | ||
import ErrorPage from '../components/ErrorPage.vue' | ||
export default { | ||
data() { | ||
return { | ||
msg: '', | ||
} | ||
}, | ||
methods: { | ||
random404() { | ||
this.msg = pick(errMsg) | ||
}, | ||
}, | ||
mounted() { | ||
this.random404() | ||
setup() {}, | ||
components: { | ||
ErrorPage, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.error-404 { | ||
margin: 10rem auto; | ||
height: 100%; | ||
text-align: center; | ||
display: flex; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
} | ||
.error-404 > div { | ||
width: 100%; | ||
} | ||
.title { | ||
font-size: 6rem; | ||
font-weight: bold; | ||
} | ||
.description { | ||
font-size: 1.5rem; | ||
} | ||
.random { | ||
color: #aaa; | ||
user-select: none; | ||
margin-top: 1rem; | ||
} | ||
</style> | ||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.