Skip to content

Commit b3d400e

Browse files
authored
Merge branch 'development' into feature/issue-427-fix-ui-user-setting
2 parents 9817963 + 8bc3a0b commit b3d400e

File tree

7 files changed

+622
-159
lines changed

7 files changed

+622
-159
lines changed

nuxt.config.js

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import i18nConfig from './nuxt-i18n.config.js'
2-
const colors = require('vuetify/es5/util/colors').default
32
const environment = process.env.NODE_ENV || 'development'
43

54
export default {
@@ -83,7 +82,10 @@ export default {
8382
/*
8483
** Global CSS
8584
*/
86-
css: [],
85+
css: [
86+
'vuetify/dist/vuetify.min.css',
87+
'@mdi/font/css/materialdesignicons.css',
88+
],
8789
/*
8890
** Plugins to load before mounting the App
8991
*/
@@ -92,6 +94,7 @@ export default {
9294
src: '@/plugins/amplify',
9395
ssr: false,
9496
},
97+
'@/plugins/vuetify',
9598
],
9699
/*
97100
** Nuxt.js dev-modules
@@ -100,7 +103,7 @@ export default {
100103
// Doc: https://github.com/nuxt-community/stylelint-module
101104
'@nuxtjs/stylelint-module',
102105
'@nuxt/typescript-build',
103-
'@nuxtjs/vuetify',
106+
'@nuxtjs/style-resources',
104107
],
105108
typescript: {
106109
typeCheck: true,
@@ -129,27 +132,6 @@ export default {
129132
families: ['Roboto&display=swap', 'NotoSansJP&&display=swap'],
130133
},
131134
},
132-
/*
133-
** vuetify module configuration
134-
** https://github.com/nuxt-community/vuetify-module
135-
*/
136-
vuetify: {
137-
customVariables: ['~/assets/variables.scss'],
138-
theme: {
139-
dark: false,
140-
themes: {
141-
dark: {
142-
primary: colors.blue.darken2,
143-
accent: colors.grey.darken3,
144-
secondary: colors.amber.darken3,
145-
info: colors.teal.lighten1,
146-
warning: colors.amber.base,
147-
error: colors.deepOrange.accent4,
148-
success: colors.green.accent3,
149-
},
150-
},
151-
},
152-
},
153135
env: {
154136
APIKEY: process.env.APIKEY,
155137
AUTHDOMAIN: process.env.AUTHDOMAIN,
@@ -208,4 +190,7 @@ export default {
208190
}
209191
},
210192
},
193+
styleResources: {
194+
scss: ['~/assets/variables.scss'],
195+
},
211196
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@nuxtjs/axios": "^5.12.2",
3232
"@nuxtjs/dotenv": "^1.4.1",
3333
"@nuxtjs/pwa": "^3.0.2",
34+
"@nuxtjs/style-resources": "^1.0.0",
3435
"@types/node": "^14.11.2",
3536
"aws-amplify": "^3.3.3",
3637
"cookieparser": "^0.1.0",
@@ -46,15 +47,16 @@
4647
"nuxt-webfontloader": "^1.1.0",
4748
"uuid": "^8.3.1",
4849
"vue-property-decorator": "^9.0.2",
50+
"vuetify": "^2.3.13",
4951
"vuex": "^3.5.1",
5052
"vuex-class-component": "^2.3.5"
5153
},
5254
"devDependencies": {
55+
"@mdi/font": "^5.6.55",
5356
"@nuxt/types": "^2.14.6",
5457
"@nuxt/typescript-build": "^2.0.3",
5558
"@nuxtjs/eslint-config-typescript": "^3.0.0",
5659
"@nuxtjs/stylelint-module": "^4.0.0",
57-
"@nuxtjs/vuetify": "^1.11.2",
5860
"@types/jest": "^26.0.14",
5961
"@vue/test-utils": "^1.1.0",
6062
"babel-core": "^6.26.3",
@@ -70,9 +72,11 @@
7072
"husky": "^4.3.0",
7173
"jest": "^26.4.2",
7274
"lint-staged": "^10.4.0",
75+
"node-sass": "^4.14.1",
7376
"nodemon": "^2.0.4",
7477
"prettier": "^2.1.2",
7578
"rimraf": "^3.0.2",
79+
"sass-loader": "^10.0.3",
7680
"stylelint": "^13.7.1",
7781
"stylelint-config-prettier": "^8.0.2",
7882
"stylelint-config-standard": "^20.0.0",

src/assets/locales/ja.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"logout": "ログアウト",
1010
"ok": "OK",
1111
"save": "保存する",
12-
"change": "変更する"
12+
"change": "変更する",
13+
"verify": "認証する"
1314
},
1415
"error": {
1516
"default": "何らかのエラーが発生しました。時間をおいて再度お試しください。"
@@ -46,7 +47,8 @@
4647
"password": "パスワード",
4748
"password_rules": "パスワードは6文字以上で設定してください",
4849
"password_not_acceptable": "パスワードが条件を満たしていません",
49-
"password_not_same": "パスワードが一致していません"
50+
"password_not_same": "パスワードが一致していません",
51+
"verification_code":"認証コード"
5052
}
5153
},
5254
"agree_terms": {

src/pages/user/signup.vue

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,6 @@
8080
<v-snackbar v-model="error" :timeout="5000" top color="#C01B61">
8181
{{ $t('common.general.error.default') }}
8282
</v-snackbar>
83-
<v-dialog v-model="completion" max-width="460px">
84-
<v-card class="DialogCard">
85-
<v-container class="DialogCardContentContainer">
86-
{{ $t('pages.user_signup.success.message') }}
87-
</v-container>
88-
<v-card-actions class="DialogCardButtons px-4">
89-
<base-action-button
90-
:text="$t('pages.user_signup.success.go_back_to_top')"
91-
theme="border"
92-
class="my-3"
93-
@click="$router.push('/')"
94-
/>
95-
</v-card-actions>
96-
</v-card>
97-
</v-dialog>
9883
</div>
9984
</template>
10085

@@ -166,7 +151,10 @@ export default Vue.extend({
166151
.then(() => {
167152
this.completion = true
168153
this.loading = false
169-
this.$router.push('/user/verify')
154+
this.$router.push({
155+
name: 'user-verify',
156+
params: { email: this.email },
157+
})
170158
})
171159
.catch(() => {
172160
this.error = true

src/pages/user/verify.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default Vue.extend({
7373
layout: 'background',
7474
data() {
7575
return {
76-
email: '',
76+
email: this.$route.params.email,
7777
verification_code: '',
7878
loading: false,
7979
error: false,
@@ -114,6 +114,7 @@ export default Vue.extend({
114114
}
115115
.SignIn-Item {
116116
margin: 20px 0;
117+
display: flex;
117118
}
118119
.SignIn-ButtonOuter {
119120
justify-content: space-between;

src/plugins/vuetify.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import Vue from 'vue'
2+
import Vuetify from 'vuetify'
3+
import colors from 'vuetify/es5/util/colors'
4+
5+
Vue.use(Vuetify)
6+
7+
// @ts-ignore
8+
export default (ctx) => {
9+
const vuetify = new Vuetify({
10+
theme: {
11+
dark: false,
12+
themes: {
13+
dark: {
14+
primary: colors.blue.darken2,
15+
accent: colors.grey.darken3,
16+
secondary: colors.amber.darken3,
17+
info: colors.teal.lighten1,
18+
warning: colors.amber.base,
19+
error: colors.deepOrange.accent4,
20+
success: colors.green.accent3,
21+
},
22+
},
23+
},
24+
})
25+
26+
ctx.app.vuetify = vuetify
27+
ctx.$vuetify = vuetify.framework
28+
}

0 commit comments

Comments
 (0)