From 905d8625f831d2080b339aaff159440a4c279004 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Fri, 24 Jun 2022 21:19:38 +0900
Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=82=A2=E3=82=AB=E3=82=A6?=
 =?UTF-8?q?=E3=83=B3=E3=83=88=E4=BD=9C=E6=88=90=E3=83=95=E3=82=A9=E3=83=BC?=
 =?UTF-8?q?=E3=83=A0=E3=81=A7=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E5=87=BA?=
 =?UTF-8?q?=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/client/src/components/signup.vue | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/packages/client/src/components/signup.vue b/packages/client/src/components/signup.vue
index 3f2af306e5..a1327e1a1c 100644
--- a/packages/client/src/components/signup.vue
+++ b/packages/client/src/components/signup.vue
@@ -67,12 +67,12 @@
 
 <script lang="ts">
 import { defineComponent, defineAsyncComponent } from 'vue';
-const getPasswordStrength = await import('syuilo-password-strength');
+import getPasswordStrength from 'syuilo-password-strength';
 import { toUnicode } from 'punycode/';
-import { host, url } from '@/config';
 import MkButton from './ui/button.vue';
 import MkInput from './form/input.vue';
 import MkSwitch from './form/switch.vue';
+import { host, url } from '@/config';
 import * as os from '@/os';
 import { login } from '@/account';
 
@@ -89,7 +89,7 @@ export default defineComponent({
 			type: Boolean,
 			required: false,
 			default: false,
-		}
+		},
 	},
 
 	emits: ['signup'],
@@ -132,7 +132,7 @@ export default defineComponent({
 				this.usernameState !== 'invalid-format' &&
 				this.usernameState !== 'min-range' &&
 				this.usernameState !== 'max-range');
-		}
+		},
 	},
 
 	methods: {
@@ -156,7 +156,7 @@ export default defineComponent({
 			this.usernameState = 'wait';
 
 			os.api('username/available', {
-				username: this.username
+				username: this.username,
 			}).then(result => {
 				this.usernameState = result.available ? 'ok' : 'unavailable';
 			}).catch(err => {
@@ -173,7 +173,7 @@ export default defineComponent({
 			this.emailState = 'wait';
 
 			os.api('email-address/available', {
-				emailAddress: this.email
+				emailAddress: this.email,
 			}).then(result => {
 				this.emailState = result.available ? 'ok' :
 					result.reason === 'used' ? 'unavailable:used' :
@@ -228,7 +228,7 @@ export default defineComponent({
 				} else {
 					os.api('signin', {
 						username: this.username,
-						password: this.password
+						password: this.password,
 					}).then(res => {
 						this.$emit('signup', res);
 
@@ -244,11 +244,11 @@ export default defineComponent({
 
 				os.alert({
 					type: 'error',
-					text: this.$ts.somethingHappened
+					text: this.$ts.somethingHappened,
 				});
 			});
-		}
-	}
+		},
+	},
 });
 </script>