File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,28 @@ import BaseActionButton from '@/components/BaseActionButton.vue'
92
92
import BaseInputField from ' @/components/BaseInputField.vue'
93
93
import { withSSRContext } from ' aws-amplify'
94
94
95
- export default Vue .extend ({
95
+ type Data = {
96
+ name: string
97
+ email: string
98
+ password: string
99
+ confirmation: string
100
+ error: boolean
101
+ completion: boolean
102
+ loading: boolean
103
+ }
104
+
105
+ type Methods = {
106
+ doSignUp(): Promise <void >
107
+ }
108
+
109
+ type Computed = {
110
+ passwordConfirm: string
111
+ disableRegisterButton: boolean
112
+ }
113
+
114
+ type Props = {}
115
+
116
+ export default Vue .extend <Data , Methods , Computed , Props >({
96
117
components: { BaseBottomSheetLayer , BaseActionButton , BaseInputField },
97
118
layout: ' background' ,
98
119
data() {
@@ -131,16 +152,13 @@ export default Vue.extend({
131
152
}
132
153
const reg = / [ -~ ] {6,} $ /
133
154
const response = reg .test (this .password )
134
- if (! response ) {
135
- return true
136
- }
137
- return false
155
+ return ! response
138
156
}
139
157
return true
140
158
},
141
159
},
142
160
methods: {
143
- async doSignUp(): Promise < void > {
161
+ async doSignUp() {
144
162
this .loading = true
145
163
const { Auth } = withSSRContext ()
146
164
await Auth .signUp ({
You can’t perform that action at this time.
0 commit comments