1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

feat: Improve international language and style (#7697)

Refs #7696
This commit is contained in:
2025-01-10 18:57:45 +08:00 committed by GitHub
parent 6b88e1adf2
commit a04f4a8b96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 160 additions and 168 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-card class="router_card p-1 sm:p-0"> <el-card class="router_card p-1 sm:p-0">
<div class="flex w-full flex-col justify-start sm:items-center items-start sm:justify-between sm:flex-row"> <div class="flex w-full flex-col justify-start sm:items-center items-start sm:justify-between sm:flex-row">
<el-radio-group v-model="activeName" @change="handleChange"> <el-radio-group v-model="activeName" @change="handleChange" class="flex-1">
<el-radio-button <el-radio-button
class="router_card_button" class="router_card_button"
:label="button.label" :label="button.label"

View File

@ -52,7 +52,7 @@ const message = {
saveAndEnable: '保存して有効にします', saveAndEnable: '保存して有効にします',
import: '輸入', import: '輸入',
search: '検索', search: '検索',
refresh: 'フレッシュします', refresh: 'ロード',
get: '得る', get: '得る',
upgrade: 'アップグレード', upgrade: 'アップグレード',
ignore: 'アップグレードを無視します', ignore: 'アップグレードを無視します',
@ -1184,7 +1184,7 @@ const message = {
editPermissions: '編集@:file.mode', editPermissions: '編集@:file.mode',
owner: '所有者', owner: '所有者',
file: 'ファイル', file: 'ファイル',
remoteFile: 'リモコンからダウンロードしてください', remoteFile: 'リモートダウンロード',
share: '共有', share: '共有',
sync: 'データ同期', sync: 'データ同期',
size: 'サイズ', size: 'サイズ',
@ -1283,9 +1283,9 @@ const message = {
clashOpenAlert: 'リサイクルビンボタンをクリックしてリサイクルビンディレクトリを開きます', clashOpenAlert: 'リサイクルビンボタンをクリックしてリサイクルビンディレクトリを開きます',
right: 'フォワード', right: 'フォワード',
back: '戻る', back: '戻る',
top: 'って行きます', top: '',
refresh: 'フレッシュします', refresh: 'ロード',
up: 'って行きます', up: '',
openWithVscode: 'VSコードで開く', openWithVscode: 'VSコードで開く',
vscodeHelper: vscodeHelper:
'VSコードがローカルにインストールされSSHリモートプラグインが構成されていることを確認してください', 'VSコードがローカルにインストールされSSHリモートプラグインが構成されていることを確認してください',

View File

@ -1215,7 +1215,7 @@ const message = {
editPermissions: '@:file.mode', editPermissions: '@:file.mode',
owner: 'Владелец', owner: 'Владелец',
file: 'Файл', file: 'Файл',
remoteFile: 'Скачать с удаленного сервера', remoteFile: 'Удалённая загрузка',
share: 'Поделиться', share: 'Поделиться',
sync: 'Синхронизация данных', sync: 'Синхронизация данных',
size: 'Размер', size: 'Размер',

View File

@ -81,7 +81,7 @@
prop="password" prop="password"
> >
<el-input <el-input
style="width: calc(100% - 167px)" style="width: calc(100% - 205px)"
type="password" type="password"
show-password show-password
clearable clearable

View File

@ -82,7 +82,7 @@
prop="password" prop="password"
> >
<el-input <el-input
style="width: calc(100% - 147px)" style="width: calc(100% - 205px)"
type="password" type="password"
show-password show-password
clearable clearable

View File

@ -68,7 +68,7 @@
<el-divider border-style="dashed" /> <el-divider border-style="dashed" />
<el-form-item :label="$t('commons.login.password')" v-if="form.from === 'local'" prop="password"> <el-form-item :label="$t('commons.login.password')" v-if="form.from === 'local'" prop="password">
<el-input <el-input
style="width: calc(100% - 147px)" style="width: calc(100% - 205px)"
type="password" type="password"
show-password show-password
clearable clearable

View File

@ -720,6 +720,7 @@ onBeforeUnmount(() => {
font-size: 13px !important; font-size: 13px !important;
border: none !important; border: none !important;
width: 100% !important; width: 100% !important;
line-height: normal !important;
} }
.monitor-tags { .monitor-tags {

View File

@ -386,12 +386,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('file.mode')" prop="mode" max-width="50" min-width="110px"> <el-table-column :label="$t('file.mode')" prop="mode" min-width="110">
<template #default="{ row }"> <template #default="{ row }">
<el-link :underline="false" @click="openMode(row)">{{ row.mode }}</el-link> <el-link :underline="false" @click="openMode(row)">{{ row.mode }}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('commons.table.user')" prop="user" show-overflow-tooltip> <el-table-column :label="$t('commons.table.user')" prop="user" show-overflow-tooltip min-width="90">
<template #default="{ row }"> <template #default="{ row }">
<el-link :underline="false" @click="openChown(row)"> <el-link :underline="false" @click="openChown(row)">
{{ row.user ? row.user : '-' }} ({{ row.uid }}) {{ row.user ? row.user : '-' }} ({{ row.uid }})
@ -405,7 +405,7 @@
</el-link> </el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('file.size')" prop="size" max-width="50" sortable> <el-table-column :label="$t('file.size')" prop="size" min-width="100" sortable>
<template #default="{ row, $index }"> <template #default="{ row, $index }">
<span v-if="row.isDir"> <span v-if="row.isDir">
<el-button <el-button

View File

@ -6,7 +6,7 @@
:model="form" :model="form"
:label-position="mobile ? 'top' : 'left'" :label-position="mobile ? 'top' : 'left'"
label-width="auto" label-width="auto"
class="sm:w-full md:w-4/5 lg:w-3/5 2xl:w-1/2 max-w-max" class="sm:w-full md:w-4/5 lg:w-3/5 2xl:w-1/2 max-w-max ml-8"
> >
<el-form-item :label="$t('setting.user')" prop="userName"> <el-form-item :label="$t('setting.user')" prop="userName">
<el-input disabled v-model="form.userName"> <el-input disabled v-model="form.userName">

View File

@ -6,166 +6,157 @@
:model="form" :model="form"
v-loading="loading" v-loading="loading"
:label-position="mobile ? 'top' : 'left'" :label-position="mobile ? 'top' : 'left'"
label-width="150px" label-width="auto"
class="sm:w-full md:w-4/5 lg:w-3/5 2xl:w-1/2 max-w-max ml-8"
> >
<el-row> <el-form-item :label="$t('setting.panelPort')" prop="serverPort">
<el-col :span="1"><br /></el-col> <el-input disabled v-model.number="form.serverPort">
<el-col :xs="24" :sm="20" :md="15" :lg="12" :xl="12"> <template #append>
<el-form-item :label="$t('setting.panelPort')" prop="serverPort"> <el-button @click="onChangePort" icon="Setting">
<el-input disabled v-model.number="form.serverPort"> {{ $t('commons.button.set') }}
<template #append> </el-button>
<el-button @click="onChangePort" icon="Setting"> </template>
{{ $t('commons.button.set') }} </el-input>
</el-button> </el-form-item>
</template> <el-form-item :label="$t('setting.bindInfo')" prop="bindAddress">
</el-input> <el-input disabled v-model="form.bindAddress">
</el-form-item> <template #append>
<el-form-item :label="$t('setting.bindInfo')" prop="bindAddress"> <el-button @click="onChangeBind" icon="Setting">
<el-input disabled v-model="form.bindAddress"> {{ $t('commons.button.set') }}
<template #append> </el-button>
<el-button @click="onChangeBind" icon="Setting"> </template>
{{ $t('commons.button.set') }} </el-input>
</el-button> </el-form-item>
</template> <el-form-item :label="$t('setting.entrance')">
</el-input> <el-input type="password" disabled v-if="form.securityEntrance" v-model="form.securityEntrance">
</el-form-item> <template #append>
<el-form-item :label="$t('setting.entrance')"> <el-button @click="onChangeEntrance" icon="Setting">
<el-input {{ $t('commons.button.set') }}
type="password" </el-button>
disabled </template>
v-if="form.securityEntrance" </el-input>
v-model="form.securityEntrance" <el-input disabled v-if="!form.securityEntrance" v-model="unset">
> <template #append>
<template #append> <el-button @click="onChangeEntrance" icon="Setting">
<el-button @click="onChangeEntrance" icon="Setting"> {{ $t('commons.button.set') }}
{{ $t('commons.button.set') }} </el-button>
</el-button> </template>
</template> </el-input>
</el-input> <span class="input-help">{{ $t('setting.entranceHelper') }}</span>
<el-input disabled v-if="!form.securityEntrance" v-model="unset"> </el-form-item>
<template #append>
<el-button @click="onChangeEntrance" icon="Setting">
{{ $t('commons.button.set') }}
</el-button>
</template>
</el-input>
<span class="input-help">{{ $t('setting.entranceHelper') }}</span>
</el-form-item>
<el-form-item :label="$t('setting.noAuthSetting')"> <el-form-item :label="$t('setting.noAuthSetting')">
<el-input disabled v-model="form.noAuthSetting"> <el-input disabled v-model="form.noAuthSetting">
<template #append> <template #append>
<el-button @click="onChangeResponse" icon="Setting"> <el-button @click="onChangeResponse" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</template> </template>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.allowIPs')"> <el-form-item :label="$t('setting.allowIPs')">
<div style="width: 100%" v-if="form.allowIPs"> <div style="width: 100%" v-if="form.allowIPs">
<el-input <el-input
type="textarea" type="textarea"
:rows="3" :rows="3"
disabled disabled
v-model="form.allowIPs" v-model="form.allowIPs"
style="width: calc(100% - 80px)" style="width: calc(100% - 80px)"
/> />
<el-button class="append-button" @click="onChangeAllowIPs" icon="Setting"> <el-button class="append-button" @click="onChangeAllowIPs" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</div> </div>
<el-input disabled v-if="!form.allowIPs" v-model="unset"> <el-input disabled v-if="!form.allowIPs" v-model="unset">
<template #append> <template #append>
<el-button @click="onChangeAllowIPs" icon="Setting"> <el-button @click="onChangeAllowIPs" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</template> </template>
</el-input> </el-input>
<span class="input-help">{{ $t('setting.allowIPsHelper') }}</span> <span class="input-help">{{ $t('setting.allowIPsHelper') }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.bindDomain')"> <el-form-item :label="$t('setting.bindDomain')">
<el-input disabled v-if="form.bindDomain" v-model="form.bindDomain"> <el-input disabled v-if="form.bindDomain" v-model="form.bindDomain">
<template #append> <template #append>
<el-button @click="onChangeBindDomain" icon="Setting"> <el-button @click="onChangeBindDomain" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</template> </template>
</el-input> </el-input>
<el-input disabled v-if="!form.bindDomain" v-model="unset"> <el-input disabled v-if="!form.bindDomain" v-model="unset">
<template #append> <template #append>
<el-button @click="onChangeBindDomain" icon="Setting"> <el-button @click="onChangeBindDomain" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</template> </template>
</el-input> </el-input>
<span class="input-help">{{ $t('setting.bindDomainHelper') }}</span> <span class="input-help">{{ $t('setting.bindDomainHelper') }}</span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.panelSSL')" prop="ssl"> <el-form-item :label="$t('setting.panelSSL')" prop="ssl">
<el-switch <el-switch
@change="handleSSL" @change="handleSSL"
v-model="form.ssl" v-model="form.ssl"
active-value="enable" active-value="enable"
inactive-value="disable" inactive-value="disable"
/> />
<span class="input-help">{{ $t('setting.https') }}</span> <span class="input-help">{{ $t('setting.https') }}</span>
<div v-if="form.ssl === 'enable' && sslInfo"> <div v-if="form.ssl === 'enable' && sslInfo">
<el-tag>{{ $t('setting.domainOrIP') }} {{ sslInfo.domain }}</el-tag> <el-tag>{{ $t('setting.domainOrIP') }} {{ sslInfo.domain }}</el-tag>
<el-tag style="margin-left: 5px"> <el-tag style="margin-left: 5px">
{{ $t('setting.timeOut') }} {{ dateFormat('', '', sslInfo.timeout) }} {{ $t('setting.timeOut') }} {{ dateFormat('', '', sslInfo.timeout) }}
</el-tag> </el-tag>
<div> <div>
<el-button link type="primary" @click="handleSSL"> <el-button link type="primary" @click="handleSSL">
{{ $t('commons.button.view') }} {{ $t('commons.button.view') }}
</el-button> </el-button>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.expirationTime')" prop="expirationTime"> <el-form-item :label="$t('setting.expirationTime')" prop="expirationTime">
<el-input disabled v-model="form.expirationTime"> <el-input disabled v-model="form.expirationTime">
<template #append> <template #append>
<el-button @click="onChangeExpirationTime" icon="Setting"> <el-button @click="onChangeExpirationTime" icon="Setting">
{{ $t('commons.button.set') }} {{ $t('commons.button.set') }}
</el-button> </el-button>
</template> </template>
</el-input> </el-input>
<div> <div>
<span class="input-help" v-if="form.expirationTime !== $t('setting.unSetting')"> <span class="input-help" v-if="form.expirationTime !== $t('setting.unSetting')">
{{ $t('setting.timeoutHelper', [loadTimeOut()]) }} {{ $t('setting.timeoutHelper', [loadTimeOut()]) }}
</span> </span>
<span class="input-help" v-else> <span class="input-help" v-else>
{{ $t('setting.noneSetting') }} {{ $t('setting.noneSetting') }}
</span> </span>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.complexity')" prop="complexityVerification"> <el-form-item :label="$t('setting.complexity')" prop="complexityVerification">
<el-switch <el-switch
@change="onSaveComplexity" @change="onSaveComplexity"
v-model="form.complexityVerification" v-model="form.complexityVerification"
active-value="enable" active-value="enable"
inactive-value="disable" inactive-value="disable"
/> />
<span class="input-help"> <span class="input-help">
{{ $t('setting.complexityHelper') }} {{ $t('setting.complexityHelper') }}
</span> </span>
</el-form-item> </el-form-item>
<el-form-item :label="$t('setting.mfa')"> <el-form-item :label="$t('setting.mfa')">
<el-switch <el-switch
@change="handleMFA" @change="handleMFA"
v-model="form.mfaStatus" v-model="form.mfaStatus"
active-value="enable" active-value="enable"
inactive-value="disable" inactive-value="disable"
/> />
<span class="input-help"> <span class="input-help">
{{ $t('setting.mfaHelper') }} {{ $t('setting.mfaHelper') }}
</span> </span>
</el-form-item> </el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</template> </template>
</LayoutContent> </LayoutContent>

View File

@ -1,6 +1,6 @@
<template> <template>
<el-row :gutter="20" v-loading="loading"> <el-row :gutter="20" v-loading="loading">
<el-col :xs="24" :sm="18" :md="9" :lg="9" :xl="9"> <el-col :xs="24" :sm="18" :md="14" :lg="12" :xl="9">
<el-form ref="websiteForm" label-position="right" label-width="150px" :model="form" :rules="rules"> <el-form ref="websiteForm" label-position="right" label-width="150px" :model="form" :rules="rules">
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain"> <el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
<el-input v-model="form.primaryDomain"></el-input> <el-input v-model="form.primaryDomain"></el-input>