feat: Adapt to Offline Mode (#10473)

This commit is contained in:
CityFun 2025-09-24 18:56:07 +08:00 committed by wanghe-fit2cloud
parent 031de0cd2d
commit 4e061ebcb4
10 changed files with 17 additions and 2 deletions

View file

@ -182,6 +182,7 @@ const message = {
creatingInfo: 'Creating, no need for this operation',
installSuccess: 'Install successful',
uninstallSuccess: 'Uninstall successful',
offlineTips: 'Offline version does not support this operation',
},
login: {
username: 'Username',

View file

@ -172,6 +172,7 @@ const message = {
rootInfoErr: 'すでにルートディレクトリです',
resetSuccess: 'リセット成功',
creatingInfo: '作成この操作は必要ありません',
offlineTips: 'オフライン版はこの操作をサポートしていません',
},
login: {
username: 'ユーザー名',

View file

@ -171,6 +171,7 @@ const message = {
rootInfoErr: '이미 루트 디렉토리입니다',
resetSuccess: '초기화 완료',
creatingInfo: '생성 중입니다. 작업이 필요하지 않습니다',
offlineTips: '오프라인 버전은 작업을 지원하지 않습니다',
},
login: {
username: '사용자 이름',

View file

@ -174,6 +174,7 @@ const message = {
rootInfoErr: 'Ia sudah menjadi direktori akar',
resetSuccess: 'Berjaya ditetapkan semula',
creatingInfo: 'Sedang mencipta, operasi ini tidak diperlukan',
offlineTips: 'Versi luar talian tidak menyokong operasi ini',
},
login: {
username: 'Nama Pengguna',

View file

@ -172,6 +172,7 @@ const message = {
rootInfoErr: ' está no diretório raiz',
resetSuccess: 'Redefinido com sucesso',
creatingInfo: 'Criando, não é necessário realizar esta operação',
offlineTips: 'A versão offline não suporta esta operação',
},
login: {
username: 'Usuário',

View file

@ -172,6 +172,7 @@ const message = {
rootInfoErr: 'Это уже корневой каталог',
resetSuccess: 'Сброс успешен',
creatingInfo: 'Создание, эта операция не нужна',
offlineTips: 'Офлайн версия не поддерживает эту операцию',
},
login: {
username: 'Имя пользователя',

View file

@ -183,6 +183,7 @@ const message = {
creatingInfo: 'Oluşturuluyor, bu işlem gerekli değil',
installSuccess: 'Yükleme başarılı',
uninstallSuccess: 'Kaldırma başarılı',
offlineTips: 'A versão offline não suporta esta operação',
},
login: {
username: 'Kullanıcı adı',

View file

@ -180,6 +180,7 @@ const message = {
creatingInfo: '正在創建無需此操作',
installSuccess: '安裝成功',
uninstallSuccess: '卸載成功',
offlineTips: '離線版本不支援此操作',
},
login: {
username: '用戶名',

View file

@ -180,6 +180,7 @@ const message = {
creatingInfo: '正在创建无需此操作',
installSuccess: '安装成功',
uninstallSuccess: '卸载成功',
offlineTips: '离线版不支持此操作',
},
login: {
username: '用户名',

View file

@ -150,11 +150,13 @@ import Supervisor from '@/views/website/runtime/php/supervisor/index.vue';
import RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
import Terminal from '@/views/website/runtime/components/terminal.vue';
import { disabledButton } from '@/utils/runtime';
import { GlobalStore } from '@/store';
import DockerStatus from '@/views/container/docker-status/index.vue';
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
import { routerToFileWithPath } from '@/utils/router';
const globalStore = GlobalStore();
import { MsgWarning } from '@/utils/message';
import { useGlobalStore } from '@/composables/useGlobalStore';
const { globalStore, isOffLine } = useGlobalStore();
const mobile = computed(() => {
return globalStore.isMobile();
});
@ -284,6 +286,10 @@ const search = async () => {
};
const openCreate = () => {
if (isOffLine) {
MsgWarning(i18n.global.t('commons.msg.offlineTips'));
return;
}
createRef.value.acceptParams({ type: 'php', mode: 'create' });
};