style: Optimize container compose page style (#11076)

This commit is contained in:
ssongliu 2025-11-26 12:39:20 +08:00 committed by GitHub
parent 6b061fa327
commit a6875614f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 24 additions and 24 deletions

View file

@ -1127,7 +1127,7 @@ const message = {
targetHelper: 'Backup accounts are maintained in panel settings.', targetHelper: 'Backup accounts are maintained in panel settings.',
withImageHelper: 'Backup app store images, but this will increase the snapshot file size.', withImageHelper: 'Backup app store images, but this will increase the snapshot file size.',
ignoreApp: 'Exclude apps', ignoreApp: 'Exclude apps',
withImage: 'Backup all app images', withImage: 'Backup Application Image',
retainCopies: 'Retain records', retainCopies: 'Retain records',
retryTimes: 'Retry Attempts', retryTimes: 'Retry Attempts',
timeout: 'Timeout', timeout: 'Timeout',

View file

@ -1130,7 +1130,7 @@ const message = {
withImageHelper: withImageHelper:
'Respalda imágenes de la tienda de aplicaciones, pero esto aumentará el tamaño del archivo de la instantánea.', 'Respalda imágenes de la tienda de aplicaciones, pero esto aumentará el tamaño del archivo de la instantánea.',
ignoreApp: 'Excluir aplicaciones', ignoreApp: 'Excluir aplicaciones',
withImage: 'Respaldar todas las imágenes de aplicaciones', withImage: 'Copia de Seguridad de la Imagen de la Aplicación',
retainCopies: 'Retener registros', retainCopies: 'Retener registros',
retryTimes: 'Intentos de reintento', retryTimes: 'Intentos de reintento',
timeout: 'Tiempo de espera', timeout: 'Tiempo de espera',

View file

@ -1098,7 +1098,7 @@ const message = {
withImageHelper: withImageHelper:
'アプリストアのイメージをバックアップしますがスナップショットファイルのサイズが大きくなります', 'アプリストアのイメージをバックアップしますがスナップショットファイルのサイズが大きくなります',
ignoreApp: 'アプリを除外', ignoreApp: 'アプリを除外',
withImage: 'すべてのアプリイメージをバックアップ', withImage: 'アプリケーションイメージのバックアップ',
retainCopies: '記録を保持します', retainCopies: '記録を保持します',
retryTimes: 'リトライ回数', retryTimes: 'リトライ回数',
timeout: 'タイムアウト', timeout: 'タイムアウト',

View file

@ -1084,7 +1084,7 @@ const message = {
targetHelper: '백업 계정은 패널 설정에서 관리됩니다.', targetHelper: '백업 계정은 패널 설정에서 관리됩니다.',
withImageHelper: ' 스토어 이미지를 백업하지만 스냅샷 파일 크기가 증가합니다.', withImageHelper: ' 스토어 이미지를 백업하지만 스냅샷 파일 크기가 증가합니다.',
ignoreApp: ' 제외', ignoreApp: ' 제외',
withImage: '모든 이미지 백업', withImage: '애플리케이션 이미지 백업',
retainCopies: '기록 보관', retainCopies: '기록 보관',
retryTimes: '재시도 횟수', retryTimes: '재시도 횟수',
timeout: '타임아웃', timeout: '타임아웃',

View file

@ -1119,7 +1119,7 @@ const message = {
targetHelper: 'Akaun sandaran diselenggara dalam tetapan panel.', targetHelper: 'Akaun sandaran diselenggara dalam tetapan panel.',
withImageHelper: 'Sandarkan imej kedai aplikasi, tetapi ini akan meningkatkan saiz fail snapshot.', withImageHelper: 'Sandarkan imej kedai aplikasi, tetapi ini akan meningkatkan saiz fail snapshot.',
ignoreApp: 'Kecualikan aplikasi', ignoreApp: 'Kecualikan aplikasi',
withImage: 'Sandarkan semua imej aplikasi', withImage: 'Sandarkan Imej Aplikasi',
retainCopies: 'Simpan salinan', retainCopies: 'Simpan salinan',
retryTimes: 'Bilangan Cubaan Semula', retryTimes: 'Bilangan Cubaan Semula',
timeout: 'Masa Tamat', timeout: 'Masa Tamat',

View file

@ -1118,7 +1118,7 @@ const message = {
withImageHelper: withImageHelper:
'Fazer backup das imagens da loja de aplicativos, mas isso aumentará o tamanho do arquivo de snapshot.', 'Fazer backup das imagens da loja de aplicativos, mas isso aumentará o tamanho do arquivo de snapshot.',
ignoreApp: 'Excluir aplicativos', ignoreApp: 'Excluir aplicativos',
withImage: 'Fazer backup de todas as imagens de aplicativos', withImage: 'Backup da Imagem do Aplicativo',
retainCopies: 'Manter cópias', retainCopies: 'Manter cópias',
retryTimes: 'Tentativas de Repetição', retryTimes: 'Tentativas de Repetição',
timeout: 'Tempo Limite', timeout: 'Tempo Limite',

View file

@ -1113,7 +1113,7 @@ const message = {
targetHelper: 'Учетные записи резервного копирования управляются в настройках панели.', targetHelper: 'Учетные записи резервного копирования управляются в настройках панели.',
withImageHelper: 'Резервное копирование образов из магазина приложений увеличит размер файла снимка.', withImageHelper: 'Резервное копирование образов из магазина приложений увеличит размер файла снимка.',
ignoreApp: 'Исключить приложения', ignoreApp: 'Исключить приложения',
withImage: 'Резервное копирование всех образов приложений', withImage: 'Резервная Копия Образа Приложения',
retainCopies: 'Сохранять записи', retainCopies: 'Сохранять записи',
retryTimes: 'Количество повторов', retryTimes: 'Количество повторов',
timeout: 'Таймаут', timeout: 'Таймаут',

View file

@ -1142,7 +1142,7 @@ const message = {
targetHelper: 'Yedekleme hesapları panel ayarlarında sürdürülür.', targetHelper: 'Yedekleme hesapları panel ayarlarında sürdürülür.',
withImageHelper: 'Uygulama mağazası imajlarını yedekle, ancak bu anlık görüntü dosya boyutunu artıracaktır.', withImageHelper: 'Uygulama mağazası imajlarını yedekle, ancak bu anlık görüntü dosya boyutunu artıracaktır.',
ignoreApp: 'Uygulamaları hariç tut', ignoreApp: 'Uygulamaları hariç tut',
withImage: 'Tüm uygulama imajlarını yedekle', withImage: 'Uygulama Görüntüsünü Yedekle',
retainCopies: 'Kayıtları sakla', retainCopies: 'Kayıtları sakla',
retryTimes: 'Yeniden Deneme Girişimleri', retryTimes: 'Yeniden Deneme Girişimleri',
timeout: 'Zaman ımı', timeout: 'Zaman ımı',

View file

@ -1064,7 +1064,7 @@ const message = {
urlHelper: '請輸入正確的 URL 地址', urlHelper: '請輸入正確的 URL 地址',
targetHelper: '備份帳號可在面板設定中維護', targetHelper: '備份帳號可在面板設定中維護',
ignoreApp: '排除應用', ignoreApp: '排除應用',
withImage: '備份所有應用鏡', withImage: '備份應用映',
retainCopies: '保留份數', retainCopies: '保留份數',
retryTimes: '失敗重試次數', retryTimes: '失敗重試次數',
timeout: '逾時時間', timeout: '逾時時間',

View file

@ -1067,7 +1067,7 @@ const message = {
targetHelper: '备份账号可在面板设置中维护', targetHelper: '备份账号可在面板设置中维护',
withImageHelper: '备份应用商店镜像但是会增大快照文件体积', withImageHelper: '备份应用商店镜像但是会增大快照文件体积',
ignoreApp: '排除应用', ignoreApp: '排除应用',
withImage: '备份所有应用镜像', withImage: '备份应用镜像',
retainCopies: '保留份数', retainCopies: '保留份数',
retryTimes: '失败重试次数', retryTimes: '失败重试次数',
timeout: '超时时间', timeout: '超时时间',

View file

@ -14,6 +14,7 @@
</el-button> </el-button>
</template> </template>
<template #rightToolBar> <template #rightToolBar>
<TableSearch @search="search()" v-model:searchName="searchName" />
<TableRefresh @search="search()" /> <TableRefresh @search="search()" />
<TableSetting title="container-refresh" @search="search()" /> <TableSetting title="container-refresh" @search="search()" />
</template> </template>
@ -21,20 +22,12 @@
<el-row v-if="data.length > 0" :gutter="20" class="row-box"> <el-row v-if="data.length > 0" :gutter="20" class="row-box">
<el-col :span="7"> <el-col :span="7">
<el-card> <el-card>
<el-input <el-table
v-model="searchName" :max-height="loadTableHeight()"
:placeholder="$t('commons.button.search')" :show-header="false"
clearable @row-click="loadDetail"
class="w-4/5" :data="data"
@clear="search"
@keyup.enter="search"
> >
<template #prefix>
<el-icon><Search /></el-icon>
</template>
</el-input>
<el-table class="mt-2" :show-header="false" @row-click="loadDetail" :data="data">
<el-table-column prop="name"> <el-table-column prop="name">
<template #default="{ row }"> <template #default="{ row }">
<div class="cursor-pointer"> <div class="cursor-pointer">
@ -296,7 +289,6 @@ import { Container } from '@/api/interface/container';
import { routerToFileWithPath } from '@/utils/router'; import { routerToFileWithPath } from '@/utils/router';
import { MsgSuccess } from '@/utils/message'; import { MsgSuccess } from '@/utils/message';
import { computeCPU, computeSize2, computeSizeForDocker } from '@/utils/util'; import { computeCPU, computeSize2, computeSizeForDocker } from '@/utils/util';
import { Search } from '@element-plus/icons-vue';
const data = ref<any[]>([]); const data = ref<any[]>([]);
const loading = ref(false); const loading = ref(false);
@ -351,6 +343,14 @@ const loadFrom = (row: any) => {
} }
}; };
const loadTableHeight = () => {
if (currentCompose.value.createdBy === '1Panel') {
return `calc(100vh - 120px)`;
} else {
return `calc(100vh - 240px)`;
}
};
const search = async (withRefreshDetail?: boolean) => { const search = async (withRefreshDetail?: boolean) => {
if (!isActive.value || !isExist.value) { if (!isActive.value || !isExist.value) {
return; return;