code refactor

This commit is contained in:
MaysWind
2025-06-09 23:32:19 +08:00
parent cd37e2ab1d
commit 4111eb0838
27 changed files with 73 additions and 56 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
<v-text-field
type="email"
autocomplete="email"
autofocus="autofocus"
:autofocus="true"
:disabled="requesting"
:label="tt('E-mail')"
:placeholder="tt('Your email address')"
+1 -1
View File
@@ -34,7 +34,7 @@
<v-text-field
type="text"
autocomplete="username"
autofocus="autofocus"
:autofocus="true"
:disabled="show2faInput || logining || verifying"
:label="tt('Username')"
:placeholder="tt('Your username or email')"
+1 -1
View File
@@ -33,7 +33,7 @@
<v-text-field
type="email"
autocomplete="email"
autofocus="autofocus"
:autofocus="true"
:disabled="updating"
:label="tt('E-mail')"
:placeholder="tt('Your email address')"
+2 -2
View File
@@ -179,8 +179,8 @@
:disabled="currentStep === 'basicSetting' || currentStep === 'finalResult' || submitting || navigateToHomePage"
:prepend-icon="mdiArrowLeft"
@click="switchToPreviousTab">{{ tt('Previous') }}</v-btn>
<v-btn :color="(currentStep === 'presetCategories' || currentStep === 'finalResult') ? 'secondary' : 'primary'"
:disabled="currentStep === 'presetCategories' || currentStep === 'finalResult' || submitting || navigateToHomePage"
<v-btn color="primary"
:disabled="submitting || navigateToHomePage"
:append-icon="mdiArrowRight"
@click="switchToNextTab"
v-if="currentStep === 'basicSetting'">{{ tt('Next') }}</v-btn>
@@ -93,7 +93,7 @@
<p class="text-body-1" v-if="status === true">
{{ tt('Please copy these backup codes to safe place, the following backup codes will be displayed only once. If these codes were lost, you can regenerate them at any time.') }}
</p>
<v-textarea class="backup-code" readonly="readonly" :rows="10" :value="currentBackupCode"/>
<v-textarea class="backup-code" :readonly="true" :rows="10" :value="currentBackupCode"/>
</v-card-text>
</v-card>
</v-col>