Skip to content

Commit e4956aa

Browse files
committed
Format
1 parent 704b072 commit e4956aa

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

packages/theme-pink-cupcake/src/plugins/core.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
* See : https://vuejs.org/guide/components/registration
44
*/
55
import type { App } from 'vue'
6-
import {
7-
ErrorPage
8-
} from '../views/Core'
6+
import { ErrorPage } from '../views/Core'
97

108
export default {
119
install: (app: App) => {

packages/theme-pink-cupcake/src/views/Core/ErrorPage.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const title = computed(() => {
3535
case '404':
3636
case '405':
3737
case '410':
38-
return 'ERROR.'+props.errorCode+'.TITLE'
38+
return 'ERROR.' + props.errorCode + '.TITLE'
3939
default:
4040
return 'ERROR.TITLE'
4141
}
@@ -49,17 +49,13 @@ const description = computed(() => {
4949
case '404':
5050
case '405':
5151
case '410':
52-
return 'ERROR.'+props.errorCode+'.DESCRIPTION'
52+
return 'ERROR.' + props.errorCode + '.DESCRIPTION'
5353
default:
5454
return 'ERROR.DESCRIPTION'
5555
}
5656
})
5757
</script>
5858

5959
<template>
60-
<UFInfoBox
61-
to="/"
62-
:faIcon="faIcon"
63-
:value="$t(title)"
64-
:label="$t(description)" />
60+
<UFInfoBox to="/" :faIcon="faIcon" :value="$t(title)" :label="$t(description)" />
6561
</template>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import ErrorPage from './ErrorPage.vue'
22

3-
export {
4-
ErrorPage
5-
}
3+
export { ErrorPage }

0 commit comments

Comments
 (0)