core: Remove unused code (#9342)

This commit is contained in:
CityFun 2025-06-30 11:55:30 +08:00 committed by GitHub
parent 911b5c406d
commit c7ca1ccbd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 0 additions and 29 deletions

View file

@ -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;
}
}

View file

@ -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',

View file

@ -2005,8 +2005,6 @@ const message = {
takeDown: '降ろす',
allReadyInstalled: 'インストール',
installHelper: '画像プルの問題がある場合は画像アクセラレーションを構成します',
upgradeHelper:
'アップグレードする前に異常なアプリケーションを通常のステータスに戻しますアップグレードが失敗した場合はログ>システムログに移動して障害の理由を確認します',
installWarn: `外部アクセスは有効になっていないため、アプリケーションが外部ネットワークを介してアクセスできるようになります。続けたいですか?`,
showIgnore: '無視されたアプリケーションを表示します',
cancelIgnore: 'キャンセルは無視します',

View file

@ -1971,8 +1971,6 @@ const message = {
takeDown: '내리기',
allReadyInstalled: '설치됨',
installHelper: '이미지 문제 이미지 가속을 구성하세요.',
upgradeHelper:
'업그레이드 전에 비정상적인 애플리케이션을 정상 상태로 복원하세요. 업그레이드 실패 "로그 > 시스템 로그"에서 실패 원인을 확인하세요.',
installWarn:
'외부 접근이 활성화되지 않아 애플리케이션이 외부 네트워크에서 접근할 없습니다. 계속 하시겠습니까?',
showIgnore: '무시된 애플리케이션 보기',

View file

@ -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',

View file

@ -2048,8 +2048,6 @@ const message = {
takeDown: 'Отключить',
allReadyInstalled: 'Установлено',
installHelper: 'Если есть проблемы с загрузкой образа, настройте ускорение образов.',
upgradeHelper:
'Приведите аномальные приложения в нормальное состояние перед обновлением. Если обновление не удалось, перейдите в "Логи > Системные логи" для проверки причины сбоя.',
installWarn:
'Внешний доступ не включен, что делает приложение недоступным через внешние сети. Хотите продолжить?',
showIgnore: 'Просмотреть игнорируемые приложения',

View file

@ -1954,7 +1954,6 @@ const message = {
takeDown: '已廢棄',
allReadyInstalled: '已安裝',
installHelper: '配置鏡像加速可以解決鏡像拉取失敗的問題',
upgradeHelper: '異常應用程式需要先同步到正常狀態升級失敗請在日誌審計-系統日誌中查看失敗原因',
installWarn: '當前未勾選端口外部訪問將無法通過外網IP:端口訪問是否繼續 ',
showIgnore: '查看忽略應用',
cancelIgnore: '取消忽略',

View file

@ -1944,7 +1944,6 @@ const message = {
takeDown: '已废弃',
allReadyInstalled: '已安装',
installHelper: '配置镜像加速可以解决镜像拉取失败的问题',
upgradeHelper: '异常应用需要先同步到正常状态升级失败请在日志审计-系统日志中查看失败原因',
installWarn: '当前未勾选端口外部访问将无法通过外网IP:端口访问是否继续',
showIgnore: '查看忽略应用',
cancelIgnore: '取消忽略',

View file

@ -41,8 +41,6 @@ export interface GlobalState {
productProExpires: number;
isMasterProductPro: boolean;
errStatus: string;
currentNode: string;
currentNodeAddr: string;
}

View file

@ -44,8 +44,6 @@ const GlobalStore = defineStore({
productProExpires: 0,
isMasterProductPro: false,
errStatus: '',
currentNode: 'local',
currentNodeAddr: '',
}),

View file

@ -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">