Skip to content

Commit 0e6b52a

Browse files
committed
chore: upgrade deps
1 parent 9486e11 commit 0e6b52a

23 files changed

+5636
-7635
lines changed

components/headline.vue

-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
</container>
66
</template>
77
<script>
8-
import Container from '~/components/container'
98
export default {
10-
components: { Container },
119
props: { title: String, subtitle: String }, // eslint-disable-line vue/require-default-prop
1210
}
1311
</script>

components/set-property.vue

+2-7
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222

2323
<script>
2424
/* eslint-disable vue/require-default-prop */
25-
import Headline from '~/components/headline'
26-
import Container from '~/components/container'
2725
export default {
28-
components: { Headline, Container },
26+
inject: [ 'snackbar', 'setIdframe' ],
2927
props: {
3028
noSubmit: Boolean,
3129
title: String,
@@ -38,10 +36,7 @@ export default {
3836
},
3937
track: String,
4038
},
41-
data () {
42-
return { submitting: false }
43-
},
44-
inject: [ 'snackbar', 'setIdframe' ],
39+
data: () => ({ submitting: false }),
4540
computed: {
4641
valid () {
4742
return this.validate ? this.validate() : true

components/sms-verify.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
<script>
1313
export default {
14+
inject: [ 'snackbar' ],
1415
props: {
1516
value: { type: String, default: '' },
1617
number: { type: String, required: true },
1718
type: { type: String, required: true },
1819
},
19-
inject: [ 'snackbar' ],
2020
data () {
2121
return {
2222
code: this.value,

idframe/serve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const script = readFileSync(path.resolve(__dirname, 'appbar.dist.js')).toString(
44
const base = new URL(process.env.BASE_URL).origin
55

66
exports.applyIdframeRoutes = router => router.get('/api/idframe', ctx => {
7-
if (!/^https?:\/\/(?:[^.]+\.)?keeer.net(:\d+)?\//.test(ctx.get('referer'))) ctx.status = 403
7+
if (!/^https?:\/\/(?:[^.]+\.)?keeer.(net|local)(:\d+)?\//.test(ctx.get('referer'))) ctx.status = 403
88
const info = ctx.getUserInformation()
99
const data = info ? { ...info, base, loggedIn: true } : { base, loggedIn: false }
1010
const str = JSON.stringify(data).replace(/\//g, '\\u002F')

layouts/default.vue

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
<template>
22
<div>
33
<v-app>
4-
<v-content>
4+
<v-main>
55
<nuxt />
66
<v-snackbar v-model="snackbarModel" :timeout="3200">
77
{{ snackbarText }}
88
</v-snackbar>
9-
</v-content>
9+
</v-main>
1010
</v-app>
1111
<span v-show="showIdframe" id="idframe" ref="idframe" />
1212
</div>
1313
</template>
1414

1515
<script>
1616
export default {
17-
data () {
18-
return {
19-
title: 'KEEER Account Service',
20-
showIdframe: false,
21-
snackbarModel: false,
22-
snackbarText: '',
23-
snackbarQueue: [],
24-
}
25-
},
2617
provide () {
2718
return {
2819
layout: this,
@@ -35,6 +26,16 @@ export default {
3526
reloadIdframe: () => this.reloadIdframe(),
3627
}
3728
},
29+
data () {
30+
return {
31+
title: 'KEEER Account Service',
32+
showIdframe: false,
33+
snackbarModel: false,
34+
snackbarText: '',
35+
snackbarQueue: [],
36+
}
37+
},
38+
head: () => ({ title: 'KAS' }),
3839
watch: {
3940
snackbarModel (val) {
4041
if (!val && this.snackbarQueue.length > 0) {
@@ -60,7 +61,6 @@ export default {
6061
document.head.appendChild(scriptEl)
6162
},
6263
},
63-
head () { return { title: 'KAS' } },
6464
}
6565
</script>
6666

nuxt.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== 'production') publicPath = '/_nuxt/'
99

1010
module.exports = {
1111
telemetry: false,
12-
mode: 'universal',
12+
components: true,
1313
head: {
1414
titleTemplate: '%s | KEEER 帐号',
1515
title: '',

0 commit comments

Comments
 (0)