mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 05:49:02 +08:00
feat: Adapt to Offline Mode (#10473)
This commit is contained in:
parent
031de0cd2d
commit
4e061ebcb4
10 changed files with 17 additions and 2 deletions
|
|
@ -182,6 +182,7 @@ const message = {
|
||||||
creatingInfo: 'Creating, no need for this operation',
|
creatingInfo: 'Creating, no need for this operation',
|
||||||
installSuccess: 'Install successful',
|
installSuccess: 'Install successful',
|
||||||
uninstallSuccess: 'Uninstall successful',
|
uninstallSuccess: 'Uninstall successful',
|
||||||
|
offlineTips: 'Offline version does not support this operation',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'Username',
|
username: 'Username',
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@ const message = {
|
||||||
rootInfoErr: 'すでにルートディレクトリです',
|
rootInfoErr: 'すでにルートディレクトリです',
|
||||||
resetSuccess: 'リセット成功',
|
resetSuccess: 'リセット成功',
|
||||||
creatingInfo: '作成、この操作は必要ありません',
|
creatingInfo: '作成、この操作は必要ありません',
|
||||||
|
offlineTips: 'オフライン版はこの操作をサポートしていません',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'ユーザー名',
|
username: 'ユーザー名',
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,7 @@ const message = {
|
||||||
rootInfoErr: '이미 루트 디렉토리입니다',
|
rootInfoErr: '이미 루트 디렉토리입니다',
|
||||||
resetSuccess: '초기화 완료',
|
resetSuccess: '초기화 완료',
|
||||||
creatingInfo: '생성 중입니다. 이 작업이 필요하지 않습니다',
|
creatingInfo: '생성 중입니다. 이 작업이 필요하지 않습니다',
|
||||||
|
offlineTips: '오프라인 버전은 이 작업을 지원하지 않습니다',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: '사용자 이름',
|
username: '사용자 이름',
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,7 @@ const message = {
|
||||||
rootInfoErr: 'Ia sudah menjadi direktori akar',
|
rootInfoErr: 'Ia sudah menjadi direktori akar',
|
||||||
resetSuccess: 'Berjaya ditetapkan semula',
|
resetSuccess: 'Berjaya ditetapkan semula',
|
||||||
creatingInfo: 'Sedang mencipta, operasi ini tidak diperlukan',
|
creatingInfo: 'Sedang mencipta, operasi ini tidak diperlukan',
|
||||||
|
offlineTips: 'Versi luar talian tidak menyokong operasi ini',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'Nama Pengguna',
|
username: 'Nama Pengguna',
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@ const message = {
|
||||||
rootInfoErr: 'Já está no diretório raiz',
|
rootInfoErr: 'Já está no diretório raiz',
|
||||||
resetSuccess: 'Redefinido com sucesso',
|
resetSuccess: 'Redefinido com sucesso',
|
||||||
creatingInfo: 'Criando, não é necessário realizar esta operação',
|
creatingInfo: 'Criando, não é necessário realizar esta operação',
|
||||||
|
offlineTips: 'A versão offline não suporta esta operação',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'Usuário',
|
username: 'Usuário',
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@ const message = {
|
||||||
rootInfoErr: 'Это уже корневой каталог',
|
rootInfoErr: 'Это уже корневой каталог',
|
||||||
resetSuccess: 'Сброс успешен',
|
resetSuccess: 'Сброс успешен',
|
||||||
creatingInfo: 'Создание, эта операция не нужна',
|
creatingInfo: 'Создание, эта операция не нужна',
|
||||||
|
offlineTips: 'Офлайн версия не поддерживает эту операцию',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'Имя пользователя',
|
username: 'Имя пользователя',
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,7 @@ const message = {
|
||||||
creatingInfo: 'Oluşturuluyor, bu işlem gerekli değil',
|
creatingInfo: 'Oluşturuluyor, bu işlem gerekli değil',
|
||||||
installSuccess: 'Yükleme başarılı',
|
installSuccess: 'Yükleme başarılı',
|
||||||
uninstallSuccess: 'Kaldırma başarılı',
|
uninstallSuccess: 'Kaldırma başarılı',
|
||||||
|
offlineTips: 'A versão offline não suporta esta operação',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: 'Kullanıcı adı',
|
username: 'Kullanıcı adı',
|
||||||
|
|
|
||||||
|
|
@ -180,6 +180,7 @@ const message = {
|
||||||
creatingInfo: '正在創建,無需此操作',
|
creatingInfo: '正在創建,無需此操作',
|
||||||
installSuccess: '安裝成功',
|
installSuccess: '安裝成功',
|
||||||
uninstallSuccess: '卸載成功',
|
uninstallSuccess: '卸載成功',
|
||||||
|
offlineTips: '離線版本不支援此操作',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: '用戶名',
|
username: '用戶名',
|
||||||
|
|
|
||||||
|
|
@ -180,6 +180,7 @@ const message = {
|
||||||
creatingInfo: '正在创建,无需此操作',
|
creatingInfo: '正在创建,无需此操作',
|
||||||
installSuccess: '安装成功',
|
installSuccess: '安装成功',
|
||||||
uninstallSuccess: '卸载成功',
|
uninstallSuccess: '卸载成功',
|
||||||
|
offlineTips: '离线版不支持此操作',
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
username: '用户名',
|
username: '用户名',
|
||||||
|
|
|
||||||
|
|
@ -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 RuntimeStatus from '@/views/website/runtime/components/runtime-status.vue';
|
||||||
import Terminal from '@/views/website/runtime/components/terminal.vue';
|
import Terminal from '@/views/website/runtime/components/terminal.vue';
|
||||||
import { disabledButton } from '@/utils/runtime';
|
import { disabledButton } from '@/utils/runtime';
|
||||||
import { GlobalStore } from '@/store';
|
|
||||||
import DockerStatus from '@/views/container/docker-status/index.vue';
|
import DockerStatus from '@/views/container/docker-status/index.vue';
|
||||||
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
|
import { operateRuntime, updateRuntimeRemark } from '../common/utils';
|
||||||
import { routerToFileWithPath } from '@/utils/router';
|
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(() => {
|
const mobile = computed(() => {
|
||||||
return globalStore.isMobile();
|
return globalStore.isMobile();
|
||||||
});
|
});
|
||||||
|
|
@ -284,6 +286,10 @@ const search = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const openCreate = () => {
|
const openCreate = () => {
|
||||||
|
if (isOffLine) {
|
||||||
|
MsgWarning(i18n.global.t('commons.msg.offlineTips'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
createRef.value.acceptParams({ type: 'php', mode: 'create' });
|
createRef.value.acceptParams({ type: 'php', mode: 'create' });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue