mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-11 00:54:55 +08:00
core: Remove unused code (#9342)
This commit is contained in:
parent
911b5c406d
commit
c7ca1ccbd7
11 changed files with 0 additions and 29 deletions
|
@ -47,7 +47,6 @@ class RequestHttp {
|
|||
|
||||
this.service.interceptors.response.use(
|
||||
(response: AxiosResponse) => {
|
||||
globalStore.errStatus = '';
|
||||
const { data } = response;
|
||||
if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) {
|
||||
globalStore.setLogStatus(false);
|
||||
|
@ -94,7 +93,6 @@ class RequestHttp {
|
|||
return data;
|
||||
},
|
||||
async (error: AxiosError) => {
|
||||
globalStore.errStatus = '';
|
||||
const { response } = error;
|
||||
|
||||
if (error.message.indexOf('timeout') !== -1) MsgError(i18n.global.t('commons.msg.requestTimeout'));
|
||||
|
@ -111,11 +109,6 @@ class RequestHttp {
|
|||
);
|
||||
return Promise.reject(error);
|
||||
default:
|
||||
globalStore.errStatus = 'code-' + response.status;
|
||||
router.push({
|
||||
name: 'entrance',
|
||||
params: { code: globalStore.entrance },
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2092,8 +2092,6 @@ const message = {
|
|||
takeDown: 'TakeDown',
|
||||
allReadyInstalled: 'Installed',
|
||||
installHelper: 'If you have image pull issues, configure image acceleration.',
|
||||
upgradeHelper:
|
||||
'Bring abnormal applications back to normal status before upgrading. If the upgrade fails, go to "Logs > System Logs" to check the failure reason.',
|
||||
installWarn: `The external access isn't checked, and it will make the application unable to access through external network. Do you want to continue?`,
|
||||
showIgnore: 'View ignored applications',
|
||||
cancelIgnore: 'Cancel ignore',
|
||||
|
|
|
@ -2005,8 +2005,6 @@ const message = {
|
|||
takeDown: '降ろす',
|
||||
allReadyInstalled: 'インストール',
|
||||
installHelper: '画像プルの問題がある場合は、画像アクセラレーションを構成します。',
|
||||
upgradeHelper:
|
||||
'アップグレードする前に、異常なアプリケーションを通常のステータスに戻します。アップグレードが失敗した場合は、「ログ>システムログ」に移動して、障害の理由を確認します。',
|
||||
installWarn: `外部アクセスは有効になっていないため、アプリケーションが外部ネットワークを介してアクセスできるようになります。続けたいですか?`,
|
||||
showIgnore: '無視されたアプリケーションを表示します',
|
||||
cancelIgnore: 'キャンセルは無視します',
|
||||
|
|
|
@ -1971,8 +1971,6 @@ const message = {
|
|||
takeDown: '내리기',
|
||||
allReadyInstalled: '설치됨',
|
||||
installHelper: '이미지 풀 문제 시 이미지 가속을 구성하세요.',
|
||||
upgradeHelper:
|
||||
'업그레이드 전에 비정상적인 애플리케이션을 정상 상태로 복원하세요. 업그레이드 실패 시 "로그 > 시스템 로그"에서 실패 원인을 확인하세요.',
|
||||
installWarn:
|
||||
'외부 접근이 활성화되지 않아 애플리케이션이 외부 네트워크에서 접근할 수 없습니다. 계속 하시겠습니까?',
|
||||
showIgnore: '무시된 애플리케이션 보기',
|
||||
|
|
|
@ -2062,7 +2062,6 @@ const message = {
|
|||
takeDown: 'Henti Operasi',
|
||||
allReadyInstalled: 'Telah Dipasang',
|
||||
installHelper: 'Jika terdapat isu tarikan imej, konfigurasikan pecutan imej.',
|
||||
upgradeHelper: 'Bawa aplikasi yang tidak normal kembali ke status normal sebelum meningkatkan.',
|
||||
installWarn:
|
||||
'Akses luaran tidak diaktifkan, yang menghalang aplikasi daripada diakses melalui rangkaian luaran. Adakah anda mahu meneruskan?',
|
||||
showIgnore: 'Lihat aplikasi yang diabaikan',
|
||||
|
|
|
@ -2048,8 +2048,6 @@ const message = {
|
|||
takeDown: 'Отключить',
|
||||
allReadyInstalled: 'Установлено',
|
||||
installHelper: 'Если есть проблемы с загрузкой образа, настройте ускорение образов.',
|
||||
upgradeHelper:
|
||||
'Приведите аномальные приложения в нормальное состояние перед обновлением. Если обновление не удалось, перейдите в "Логи > Системные логи" для проверки причины сбоя.',
|
||||
installWarn:
|
||||
'Внешний доступ не включен, что делает приложение недоступным через внешние сети. Хотите продолжить?',
|
||||
showIgnore: 'Просмотреть игнорируемые приложения',
|
||||
|
|
|
@ -1954,7 +1954,6 @@ const message = {
|
|||
takeDown: '已廢棄',
|
||||
allReadyInstalled: '已安裝',
|
||||
installHelper: '配置鏡像加速可以解決鏡像拉取失敗的問題',
|
||||
upgradeHelper: '異常應用程式需要先同步到正常狀態,升級失敗請在日誌審計-系統日誌中查看失敗原因',
|
||||
installWarn: '當前未勾選端口外部訪問,將無法通過外網IP:端口訪問,是否繼續? ',
|
||||
showIgnore: '查看忽略應用',
|
||||
cancelIgnore: '取消忽略',
|
||||
|
|
|
@ -1944,7 +1944,6 @@ const message = {
|
|||
takeDown: '已废弃',
|
||||
allReadyInstalled: '已安装',
|
||||
installHelper: '配置镜像加速可以解决镜像拉取失败的问题',
|
||||
upgradeHelper: '异常应用需要先同步到正常状态,升级失败请在日志审计-系统日志中查看失败原因',
|
||||
installWarn: '当前未勾选端口外部访问,将无法通过外网IP:端口访问,是否继续?',
|
||||
showIgnore: '查看忽略应用',
|
||||
cancelIgnore: '取消忽略',
|
||||
|
|
|
@ -41,8 +41,6 @@ export interface GlobalState {
|
|||
productProExpires: number;
|
||||
isMasterProductPro: boolean;
|
||||
|
||||
errStatus: string;
|
||||
|
||||
currentNode: string;
|
||||
currentNodeAddr: string;
|
||||
}
|
||||
|
|
|
@ -44,8 +44,6 @@ const GlobalStore = defineStore({
|
|||
productProExpires: 0,
|
||||
isMasterProductPro: false,
|
||||
|
||||
errStatus: '',
|
||||
|
||||
currentNode: 'local',
|
||||
currentNodeAddr: '',
|
||||
}),
|
||||
|
|
|
@ -17,13 +17,6 @@
|
|||
<template #main>
|
||||
<div>
|
||||
<MainDiv :heightDiff="mode === 'upgrade' ? 270 : 300">
|
||||
<el-alert
|
||||
type="info"
|
||||
:title="$t('app.upgradeHelper')"
|
||||
:closable="false"
|
||||
v-if="mode === 'upgrade'"
|
||||
/>
|
||||
|
||||
<el-alert type="info" :closable="false" v-if="mode === 'installed'">
|
||||
<template #title>
|
||||
<span class="flx-align-center">
|
||||
|
|
Loading…
Add table
Reference in a new issue