fix: 随机密码按钮样式统一修改 (#1542)

This commit is contained in:
ssongliu 2023-07-05 15:08:18 +08:00 committed by GitHub
parent 271be81557
commit 006c27fee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 29 additions and 12 deletions

View File

@ -45,6 +45,8 @@ const message = {
get: 'Get',
upgrade: 'Upgrade',
ignoreUpgrade: 'Ignore upgrade',
copy: 'Copy',
random: 'Random',
},
search: {
timeStart: 'Time start',
@ -1006,6 +1008,7 @@ const message = {
entranceError:
'Please enter a secure login entry point of 6-10 characters, only numbers or letters are supported.',
entranceInputHelper: 'When the security entry is set to blank, the security entry is cancelled.',
randomGenerate: 'Random',
expirationTime: 'Expiration Time',
unSetting: 'Not Set',
noneSetting:
@ -1401,7 +1404,6 @@ const message = {
basicAuth: 'Password Access',
editBasicAuthHelper:
'The password is asymmetrically encrypted and cannot be echoed. Editing needs to reset the password',
createPassword: 'Generate password',
antiLeech: 'Anti-leech',
extends: 'Extension',
browserCache: 'browser cache',

View File

@ -45,6 +45,8 @@ const message = {
get: '獲取',
upgrade: '升級',
ignoreUpgrade: '忽略升級',
copy: '復製',
random: '隨機密碼',
},
search: {
timeStart: '開始時間',
@ -999,6 +1001,7 @@ const message = {
entranceHelper: '開啟安全入口後只能通過指定安全入口登錄面板',
entranceError: '請輸入 6-10 位安全登錄入口僅支持輸入數字或字母',
entranceInputHelper: '安全入口設置為空時則取消安全入口',
randomGenerate: '隨機生成',
expirationTime: '密碼過期時間',
unSetting: '未設置',
noneSetting: '為面板密碼設置過期時間過期後需要重新設置密碼',
@ -1332,7 +1335,6 @@ const message = {
replacedErr2: '搜索字符串不能重復',
basicAuth: '密碼訪問',
editBasicAuthHelper: '密碼為非對稱加密無法回顯編輯需要重新設置密碼',
createPassword: '生成密碼',
antiLeech: '防盜鏈',
extends: '擴展名',
browserCache: '瀏覽器緩存',

View File

@ -45,6 +45,8 @@ const message = {
get: '获取',
upgrade: '升级',
ignoreUpgrade: '忽略升级',
copy: '复制',
random: '随机密码',
},
search: {
timeStart: '开始时间',
@ -1005,6 +1007,7 @@ const message = {
entranceHelper: '开启安全入口后只能通过指定安全入口登录面板',
entranceError: '请输入 6-10 位安全登录入口仅支持输入数字或字母',
entranceInputHelper: '安全入口设置为空时则取消安全入口',
randomGenerate: '随机生成',
expirationTime: '密码过期时间',
unSetting: '未设置',
noneSetting: '为面板密码设置过期时间过期后需要重新设置密码',
@ -1338,7 +1341,6 @@ const message = {
replacedErr2: '搜索字符串不能重复',
basicAuth: '密码访问',
editBasicAuthHelper: '密码为非对称加密无法回显编辑需要重新设置密码',
createPassword: '生成密码',
antiLeech: '防盗链',
extends: '扩展名',
browserCache: '浏览器缓存',

View File

@ -25,7 +25,7 @@
<el-form-item :label="$t('commons.login.password')" prop="password">
<el-input type="password" clearable show-password v-model.trim="form.password">
<template #append>
<el-button @click="random" icon="RefreshRight"></el-button>
<el-button @click="random">{{ $t('commons.button.random') }}</el-button>
</template>
</el-input>
</el-form-item>

View File

@ -9,8 +9,11 @@
<el-form-item :label="$t('database.rootPassword')" :rules="Rules.requiredInput" prop="password">
<el-input type="password" show-password clearable v-model="form.password">
<template #append>
<el-button @click="onCopy(form.password)" icon="DocumentCopy"></el-button>
<el-button style="margin-left: 1px" @click="random" icon="RefreshRight"></el-button>
<el-button @click="onCopy(form.password)">{{ $t('commons.button.copy') }}</el-button>
<el-divider direction="vertical" />
<el-button @click="random">
{{ $t('commons.button.random') }}
</el-button>
</template>
</el-input>
</el-form-item>

View File

@ -9,8 +9,11 @@
<el-form-item :label="$t('commons.login.password')" :rules="Rules.requiredInput" prop="password">
<el-input type="password" show-password clearable v-model="form.password">
<template #append>
<el-button @click="onCopy(form.password)" icon="DocumentCopy"></el-button>
<el-button style="margin-left: 1px" @click="random" icon="RefreshRight"></el-button>
<el-button @click="onCopy(form.password)">{{ $t('commons.button.copy') }}</el-button>
<el-divider direction="vertical" />
<el-button style="margin-left: 1px" @click="random">
{{ $t('commons.button.random') }}
</el-button>
</template>
</el-input>
</el-form-item>

View File

@ -24,8 +24,13 @@
<el-form-item :label="$t('commons.login.password')" prop="password">
<el-input v-model="form.password" type="password" show-password>
<template #append>
<el-button @click="onCopy(form.password)" icon="DocumentCopy"></el-button>
<el-button style="margin-left: 1px" @click="random" icon="RefreshRight"></el-button>
<el-button @click="onCopy(form.password)">
{{ $t('commons.button.copy') }}
</el-button>
<el-divider direction="vertical" />
<el-button @click="random">
{{ $t('commons.button.random') }}
</el-button>
</template>
</el-input>
</el-form-item>

View File

@ -17,7 +17,7 @@
<el-form-item :label="$t('setting.entrance')" prop="securityEntrance">
<el-input clearable v-model="form.securityEntrance">
<template #append>
<el-button @click="random" icon="RefreshRight"></el-button>
<el-button @click="random">{{ $t('setting.randomGenerate') }}</el-button>
</template>
</el-input>
<span class="input-help">

View File

@ -24,7 +24,7 @@
<el-input type="password" clearable show-password v-model.trim="authBasic.password">
<template #append>
<el-button @click="random">
{{ $t('website.createPassword') }}
{{ $t('commons.button.random') }}
</el-button>
</template>
</el-input>