支持大文件
This commit is contained in:
@@ -27,6 +27,11 @@
|
|||||||
"csp": null
|
"csp": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"plugins": {
|
||||||
|
"shell": {
|
||||||
|
"open": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": "all",
|
"targets": "all",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { SettingOutlined, UploadOutlined, UserOutlined, WindowsOutlined, Loading
|
|||||||
import { useRouter, useRoute } from 'vue-router';
|
import { useRouter, useRoute } from 'vue-router';
|
||||||
import { Command } from '@tauri-apps/plugin-shell';
|
import { Command } from '@tauri-apps/plugin-shell';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { ErrorCode, createErrorInfo } from './utils/errorCodes';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@@ -82,9 +83,11 @@ async function runCoreProcess() {
|
|||||||
|
|
||||||
if (portStatus === 'wrong_app') {
|
if (portStatus === 'wrong_app') {
|
||||||
// 端口被其他应用占用
|
// 端口被其他应用占用
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.BACKEND_PORT_OCCUPIED);
|
||||||
backendStatus.value = 'error';
|
backendStatus.value = 'error';
|
||||||
backendErrorInfo.value = t('message.backend_port_occupied');
|
backendErrorInfo.value = `${errorInfo.message} (错误码: ${errorInfo.code})`;
|
||||||
message.error(t('message.backend_port_occupied'));
|
message.error(backendErrorInfo.value);
|
||||||
|
router.push(`/error?e=${encodeURIComponent(backendErrorInfo.value)}&code=${errorInfo.code}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,15 +108,19 @@ async function runCoreProcess() {
|
|||||||
backendErrorInfo.value = '';
|
backendErrorInfo.value = '';
|
||||||
message.success(t('message.backend_started'));
|
message.success(t('message.backend_started'));
|
||||||
} else {
|
} else {
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.BACKEND_RESPONSE_ERROR, `HTTP 状态码: ${response.status}`);
|
||||||
backendStatus.value = 'error';
|
backendStatus.value = 'error';
|
||||||
backendErrorInfo.value = t('common.status_error');
|
backendErrorInfo.value = `${errorInfo.message} (错误码: ${errorInfo.code})`;
|
||||||
router.push('/error');
|
message.error(backendErrorInfo.value);
|
||||||
|
router.push(`/error?e=${encodeURIComponent(backendErrorInfo.value)}&code=${errorInfo.code}`);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("后端连接失败:", error);
|
console.error("后端连接失败:", error);
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.BACKEND_CONNECTION_FAILED, error instanceof Error ? error.message : String(error));
|
||||||
backendStatus.value = 'error';
|
backendStatus.value = 'error';
|
||||||
backendErrorInfo.value = t('common.status_error');
|
backendErrorInfo.value = `${errorInfo.message} (错误码: ${errorInfo.code})`;
|
||||||
router.push('/error');
|
message.error(backendErrorInfo.value);
|
||||||
|
router.push(`/error?e=${encodeURIComponent(backendErrorInfo.value)}&code=${errorInfo.code}`);
|
||||||
}
|
}
|
||||||
}, 3000); // 等待3秒让后端启动
|
}, 3000); // 等待3秒让后端启动
|
||||||
})
|
})
|
||||||
@@ -127,9 +134,11 @@ async function runCoreProcess() {
|
|||||||
runCoreProcess();
|
runCoreProcess();
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
} else {
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.BACKEND_START_FAILED, `已重试 ${maxRetries} 次`);
|
||||||
backendStatus.value = 'error';
|
backendStatus.value = 'error';
|
||||||
backendErrorInfo.value = t('message.backend_start_failed', { count: maxRetries });
|
backendErrorInfo.value = `${errorInfo.message} (错误码: ${errorInfo.code})`;
|
||||||
message.error(t('message.backend_start_failed', { count: maxRetries }));
|
message.error(backendErrorInfo.value);
|
||||||
|
router.push(`/error?e=${encodeURIComponent(backendErrorInfo.value)}&code=${errorInfo.code}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { ref, inject, watch, onUnmounted } from 'vue';
|
|||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { message, notification } from 'ant-design-vue';
|
import { message, notification } from 'ant-design-vue';
|
||||||
import { sendNotification } from '@tauri-apps/plugin-notification';
|
import { sendNotification } from '@tauri-apps/plugin-notification';
|
||||||
|
import { ErrorCode, createErrorInfo } from '../utils/errorCodes';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
@@ -239,61 +240,49 @@ onUnmounted(() => {
|
|||||||
function handleError(result: any) {
|
function handleError(result: any) {
|
||||||
if (result === 'jini') {
|
if (result === 'jini') {
|
||||||
javaAvailable.value = false;
|
javaAvailable.value = false;
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.JAVA_NOT_FOUND);
|
||||||
notification.error({
|
notification.error({
|
||||||
message: t('home.java_error_title'),
|
message: `${t('home.java_error_title')} (错误码: ${errorInfo.code})`,
|
||||||
description: t('home.java_error_desc'),
|
description: `${t('home.java_error_desc')}\n\n${t('home.suggestions')}:\n${errorInfo.suggestions?.map((s, i) => `${i + 1}. ${s}`).join('\n')}`,
|
||||||
duration: 0
|
duration: 0
|
||||||
});
|
});
|
||||||
} else if (typeof result === 'string') {
|
} else if (typeof result === 'string') {
|
||||||
let errorTitle = t('home.backend_error');
|
let errorInfo;
|
||||||
let errorDesc = t('home.backend_error_desc', { error: result });
|
|
||||||
let suggestions: string[] = [];
|
|
||||||
|
|
||||||
if (result.includes('network') || result.includes('connection') || result.includes('timeout')) {
|
if (result.includes('network') || result.includes('connection') || result.includes('timeout')) {
|
||||||
errorTitle = t('home.network_error_title');
|
errorInfo = createErrorInfo(ErrorCode.NETWORK_ERROR, result);
|
||||||
errorDesc = t('home.network_error_desc', { error: result });
|
|
||||||
suggestions = [
|
|
||||||
t('home.suggestion_check_network'),
|
|
||||||
t('home.suggestion_check_firewall'),
|
|
||||||
t('home.suggestion_retry')
|
|
||||||
];
|
|
||||||
} else if (result.includes('file') || result.includes('permission') || result.includes('disk')) {
|
} else if (result.includes('file') || result.includes('permission') || result.includes('disk')) {
|
||||||
errorTitle = t('home.file_error_title');
|
if (result.includes('not found')) {
|
||||||
errorDesc = t('home.file_error_desc', { error: result });
|
errorInfo = createErrorInfo(ErrorCode.FILE_NOT_FOUND, result);
|
||||||
suggestions = [
|
} else if (result.includes('permission')) {
|
||||||
t('home.suggestion_check_disk_space'),
|
errorInfo = createErrorInfo(ErrorCode.FILE_PERMISSION_ERROR, result);
|
||||||
t('home.suggestion_check_permission'),
|
} else if (result.includes('format')) {
|
||||||
t('home.suggestion_check_file_format')
|
errorInfo = createErrorInfo(ErrorCode.FILE_FORMAT_ERROR, result);
|
||||||
];
|
} else {
|
||||||
|
errorInfo = createErrorInfo(ErrorCode.FILE_NOT_FOUND, result);
|
||||||
|
}
|
||||||
} else if (result.includes('memory') || result.includes('out of memory') || result.includes('heap')) {
|
} else if (result.includes('memory') || result.includes('out of memory') || result.includes('heap')) {
|
||||||
errorTitle = t('home.memory_error_title');
|
errorInfo = createErrorInfo(ErrorCode.MEMORY_INSUFFICIENT, result);
|
||||||
errorDesc = t('home.memory_error_desc', { error: result });
|
} else if (result.includes('disk') || result.includes('space')) {
|
||||||
suggestions = [
|
errorInfo = createErrorInfo(ErrorCode.DISK_SPACE_INSUFFICIENT, result);
|
||||||
t('home.suggestion_increase_memory'),
|
|
||||||
t('home.suggestion_close_other_apps'),
|
|
||||||
t('home.suggestion_restart_application')
|
|
||||||
];
|
|
||||||
} else {
|
} else {
|
||||||
suggestions = [
|
errorInfo = createErrorInfo(ErrorCode.UNKNOWN_ERROR, result);
|
||||||
t('home.suggestion_check_backend'),
|
|
||||||
t('home.suggestion_check_logs'),
|
|
||||||
t('home.suggestion_contact_support')
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const fullDescription = `${errorDesc}\n\n${t('home.suggestions')}:\n${suggestions.map((s, i) => `${i + 1}. ${s}`).join('\n')}`;
|
const fullDescription = `${errorInfo.message}: ${errorInfo.details}\n\n${t('home.suggestions')}:\n${errorInfo.suggestions?.map((s, i) => `${i + 1}. ${s}`).join('\n')}`;
|
||||||
|
|
||||||
notification.error({
|
notification.error({
|
||||||
message: errorTitle,
|
message: `${errorInfo.message} (错误码: ${errorInfo.code})`,
|
||||||
description: fullDescription,
|
description: fullDescription,
|
||||||
duration: 0
|
duration: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
resetState();
|
resetState();
|
||||||
} else {
|
} else {
|
||||||
|
const errorInfo = createErrorInfo(ErrorCode.UNKNOWN_ERROR);
|
||||||
notification.error({
|
notification.error({
|
||||||
message: t('home.unknown_error_title'),
|
message: `${t('home.unknown_error_title')} (错误码: ${errorInfo.code})`,
|
||||||
description: t('home.unknown_error_desc'),
|
description: `${t('home.unknown_error_desc')}\n\n${t('home.suggestions')}:\n${errorInfo.suggestions?.map((s, i) => `${i + 1}. ${s}`).join('\n')}`,
|
||||||
duration: 0
|
duration: 0
|
||||||
});
|
});
|
||||||
resetState();
|
resetState();
|
||||||
|
|||||||
153
front/src/utils/errorCodes.ts
Normal file
153
front/src/utils/errorCodes.ts
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
// 错误码定义
|
||||||
|
export enum ErrorCode {
|
||||||
|
// 后端启动相关错误
|
||||||
|
BACKEND_START_FAILED = 1001,
|
||||||
|
BACKEND_PORT_OCCUPIED = 1002,
|
||||||
|
BACKEND_CONNECTION_FAILED = 1003,
|
||||||
|
BACKEND_RESPONSE_ERROR = 1004,
|
||||||
|
|
||||||
|
// 网络相关错误
|
||||||
|
NETWORK_ERROR = 2001,
|
||||||
|
NETWORK_TIMEOUT = 2002,
|
||||||
|
NETWORK_CONNECTION_REFUSED = 2003,
|
||||||
|
|
||||||
|
// 文件相关错误
|
||||||
|
FILE_NOT_FOUND = 3001,
|
||||||
|
FILE_PERMISSION_ERROR = 3002,
|
||||||
|
FILE_FORMAT_ERROR = 3003,
|
||||||
|
FILE_SIZE_ERROR = 3004,
|
||||||
|
|
||||||
|
// 系统相关错误
|
||||||
|
JAVA_NOT_FOUND = 4001,
|
||||||
|
DISK_SPACE_INSUFFICIENT = 4002,
|
||||||
|
MEMORY_INSUFFICIENT = 4003,
|
||||||
|
|
||||||
|
// 未知错误
|
||||||
|
UNKNOWN_ERROR = 9999
|
||||||
|
}
|
||||||
|
|
||||||
|
// 错误信息映射
|
||||||
|
export const errorMessages: Record<ErrorCode, string> = {
|
||||||
|
[ErrorCode.BACKEND_START_FAILED]: '后端服务启动失败',
|
||||||
|
[ErrorCode.BACKEND_PORT_OCCUPIED]: '后端服务端口被占用',
|
||||||
|
[ErrorCode.BACKEND_CONNECTION_FAILED]: '后端服务连接失败',
|
||||||
|
[ErrorCode.BACKEND_RESPONSE_ERROR]: '后端服务响应错误',
|
||||||
|
[ErrorCode.NETWORK_ERROR]: '网络连接错误',
|
||||||
|
[ErrorCode.NETWORK_TIMEOUT]: '网络连接超时',
|
||||||
|
[ErrorCode.NETWORK_CONNECTION_REFUSED]: '网络连接被拒绝',
|
||||||
|
[ErrorCode.FILE_NOT_FOUND]: '文件未找到',
|
||||||
|
[ErrorCode.FILE_PERMISSION_ERROR]: '文件权限错误',
|
||||||
|
[ErrorCode.FILE_FORMAT_ERROR]: '文件格式错误',
|
||||||
|
[ErrorCode.FILE_SIZE_ERROR]: '文件大小错误',
|
||||||
|
[ErrorCode.JAVA_NOT_FOUND]: 'Java 未找到',
|
||||||
|
[ErrorCode.DISK_SPACE_INSUFFICIENT]: '磁盘空间不足',
|
||||||
|
[ErrorCode.MEMORY_INSUFFICIENT]: '内存不足',
|
||||||
|
[ErrorCode.UNKNOWN_ERROR]: '未知错误'
|
||||||
|
};
|
||||||
|
|
||||||
|
// 错误建议映射
|
||||||
|
export const errorSuggestions: Record<ErrorCode, string[]> = {
|
||||||
|
[ErrorCode.BACKEND_START_FAILED]: [
|
||||||
|
'检查 37019 端口是否被占用',
|
||||||
|
'检查后端服务是否正常',
|
||||||
|
'重启应用程序'
|
||||||
|
],
|
||||||
|
[ErrorCode.BACKEND_PORT_OCCUPIED]: [
|
||||||
|
'关闭占用 37019 端口的其他应用',
|
||||||
|
'检查是否有其他 DeEarthX 实例在运行',
|
||||||
|
'重启计算机后再试'
|
||||||
|
],
|
||||||
|
[ErrorCode.BACKEND_CONNECTION_FAILED]: [
|
||||||
|
'检查后端服务是否正在运行',
|
||||||
|
'检查网络连接是否正常',
|
||||||
|
'重启应用程序'
|
||||||
|
],
|
||||||
|
[ErrorCode.BACKEND_RESPONSE_ERROR]: [
|
||||||
|
'检查后端服务是否正常',
|
||||||
|
'重启后端服务',
|
||||||
|
'联系技术支持'
|
||||||
|
],
|
||||||
|
[ErrorCode.NETWORK_ERROR]: [
|
||||||
|
'检查网络连接是否正常',
|
||||||
|
'检查防火墙设置',
|
||||||
|
'稍后重试'
|
||||||
|
],
|
||||||
|
[ErrorCode.NETWORK_TIMEOUT]: [
|
||||||
|
'检查网络连接速度',
|
||||||
|
'稍后重试',
|
||||||
|
'检查目标服务器是否可访问'
|
||||||
|
],
|
||||||
|
[ErrorCode.NETWORK_CONNECTION_REFUSED]: [
|
||||||
|
'检查目标服务器是否正在运行',
|
||||||
|
'检查网络连接是否正常',
|
||||||
|
'检查防火墙设置'
|
||||||
|
],
|
||||||
|
[ErrorCode.FILE_NOT_FOUND]: [
|
||||||
|
'确认文件路径是否正确',
|
||||||
|
'检查文件是否存在',
|
||||||
|
'重新上传文件'
|
||||||
|
],
|
||||||
|
[ErrorCode.FILE_PERMISSION_ERROR]: [
|
||||||
|
'检查文件权限设置',
|
||||||
|
'以管理员身份运行应用程序',
|
||||||
|
'检查文件是否被其他程序占用'
|
||||||
|
],
|
||||||
|
[ErrorCode.FILE_FORMAT_ERROR]: [
|
||||||
|
'确认文件格式是否正确',
|
||||||
|
'重新上传正确格式的文件',
|
||||||
|
'检查文件是否损坏'
|
||||||
|
],
|
||||||
|
[ErrorCode.FILE_SIZE_ERROR]: [
|
||||||
|
'检查文件大小是否符合要求',
|
||||||
|
'压缩文件后再上传',
|
||||||
|
'检查磁盘空间是否充足'
|
||||||
|
],
|
||||||
|
[ErrorCode.JAVA_NOT_FOUND]: [
|
||||||
|
'安装 Java 17 或更高版本',
|
||||||
|
'配置 Java 环境变量',
|
||||||
|
'重启应用程序'
|
||||||
|
],
|
||||||
|
[ErrorCode.DISK_SPACE_INSUFFICIENT]: [
|
||||||
|
'清理磁盘空间',
|
||||||
|
'选择其他存储位置',
|
||||||
|
'删除不必要的文件'
|
||||||
|
],
|
||||||
|
[ErrorCode.MEMORY_INSUFFICIENT]: [
|
||||||
|
'增加系统内存',
|
||||||
|
'关闭其他占用内存的应用程序',
|
||||||
|
'减少同时处理的任务数量'
|
||||||
|
],
|
||||||
|
[ErrorCode.UNKNOWN_ERROR]: [
|
||||||
|
'重启应用程序',
|
||||||
|
'检查系统日志',
|
||||||
|
'联系技术支持'
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取错误信息
|
||||||
|
export function getErrorMessage(code: ErrorCode): string {
|
||||||
|
return errorMessages[code] || errorMessages[ErrorCode.UNKNOWN_ERROR];
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取错误建议
|
||||||
|
export function getErrorSuggestions(code: ErrorCode): string[] {
|
||||||
|
return errorSuggestions[code] || errorSuggestions[ErrorCode.UNKNOWN_ERROR];
|
||||||
|
}
|
||||||
|
|
||||||
|
// 错误对象接口
|
||||||
|
export interface ErrorInfo {
|
||||||
|
code: ErrorCode;
|
||||||
|
message: string;
|
||||||
|
details?: string;
|
||||||
|
suggestions?: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
// 创建错误信息
|
||||||
|
export function createErrorInfo(code: ErrorCode, details?: string): ErrorInfo {
|
||||||
|
return {
|
||||||
|
code,
|
||||||
|
message: getErrorMessage(code),
|
||||||
|
details,
|
||||||
|
suggestions: getErrorSuggestions(code)
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,22 +1,67 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tw:h-full tw:w-full tw:flex tw:flex-col tw:justify-center tw:items-center">
|
<div class="tw:h-full tw:w-full tw:flex tw:flex-col tw:justify-center tw:items-center">
|
||||||
<div class="tw:w-32 tw:h-32 tw:mb-25">
|
<div class="tw:w-32 tw:h-32 tw:mb-8">
|
||||||
<svg class="w-32 h-32 mb-4" viewBox="0 0 120 120">
|
<svg class="w-32 h-32 mb-4" viewBox="0 0 120 120">
|
||||||
<circle cx="60" cy="60" r="50" fill="#ef4444" />
|
<circle cx="60" cy="60" r="50" fill="#ef4444" />
|
||||||
<path d="M40,40 L80,80 M80,40 L40,80" stroke="white" stroke-width="10" stroke-linecap="round" />
|
<path d="M40,40 L80,80 M80,40 L40,80" stroke="white" stroke-width="10" stroke-linecap="round" />
|
||||||
</svg>
|
</svg>
|
||||||
<p class="tw:text-2xl tw:font-bold tw:text-center tw:mb-20 tw:text-red-500">Error</p>
|
</div>
|
||||||
<p class="tw:text-sm tw:text-center tw:text-gray-500">
|
<p class="tw:text-2xl tw:font-bold tw:text-center tw:mb-6 tw:text-red-500">Error</p>
|
||||||
|
<div class="tw:w-1/2 tw:max-w-md tw:bg-white tw:p-6 tw:rounded-lg tw:shadow-lg">
|
||||||
|
<p class="tw:text-sm tw:text-center tw:text-gray-500 mb-4">
|
||||||
{{ errorMessage }}
|
{{ errorMessage }}
|
||||||
</p>
|
</p>
|
||||||
|
<div v-if="errorCode" class="tw:text-sm tw:text-center tw:text-gray-500 mb-6">
|
||||||
|
错误码:{{ errorCode }}
|
||||||
|
</div>
|
||||||
|
<div v-if="suggestions.length > 0" class="tw:mt-6">
|
||||||
|
<p class="tw:text-sm tw:font-medium tw:text-gray-700 mb-2">建议解决方案:</p>
|
||||||
|
<ul class="tw:text-xs tw:text-gray-600 tw:list-disc tw:pl-5">
|
||||||
|
<li v-for="(suggestion, index) in suggestions" :key="index" class="tw:mb-1">
|
||||||
|
{{ suggestion }}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="tw:mt-6 tw:flex tw:justify-center tw:gap-4">
|
||||||
|
<button
|
||||||
|
class="tw:px-4 tw:py-2 tw:bg-[#67eac3] tw:text-gray-800 tw:rounded-md tw:hover:bg-[#56d9b0] tw:transition-colors"
|
||||||
|
@click="goBack"
|
||||||
|
>
|
||||||
|
返回首页
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
v-if="errorCode"
|
||||||
|
class="tw:px-4 tw:py-2 tw:bg-[#67eac3] tw:text-gray-800 tw:rounded-md tw:hover:bg-[#56d9b0] tw:transition-colors"
|
||||||
|
@click="openErrorDoc"
|
||||||
|
>
|
||||||
|
文档帮助
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
|
import { ErrorCode, getErrorSuggestions } from '../utils/errorCodes';
|
||||||
|
import { open } from '@tauri-apps/plugin-shell';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const router = useRouter();
|
||||||
const errorReason = route.query.e as string;
|
const errorReason = route.query.e as string;
|
||||||
const errorMessage = errorReason ? `错误原因:${errorReason}` : 'DeEarthX.Core 启动失败!';
|
const errorCodeStr = route.query.code as string;
|
||||||
|
const errorCode = errorCodeStr ? parseInt(errorCodeStr) as ErrorCode : undefined;
|
||||||
|
const errorMessage = errorReason ? errorReason : 'DeEarthX.Core 启动失败!';
|
||||||
|
const suggestions = errorCode ? getErrorSuggestions(errorCode) : [];
|
||||||
|
|
||||||
|
function goBack() {
|
||||||
|
router.push('/');
|
||||||
|
}
|
||||||
|
|
||||||
|
function openErrorDoc() {
|
||||||
|
if (errorCode) {
|
||||||
|
const url = `https://dex.xcclyc.cn/api/error-codes.html#_${errorCode}`;
|
||||||
|
open(url);
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
1173
pnpm-lock.yaml
generated
1173
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
84
word/.vitepress/cache/deps/@theme_index.js
vendored
84
word/.vitepress/cache/deps/@theme_index.js
vendored
@@ -8,59 +8,59 @@ import {
|
|||||||
watch
|
watch
|
||||||
} from "./chunk-VIGQSUQT.js";
|
} from "./chunk-VIGQSUQT.js";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/index.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/index.js
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/fonts.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/fonts.css";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/vars.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/vars.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/base.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/base.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/icons.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/icons.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/utils.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/utils.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/components/custom-block.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/components/custom-block.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code-group.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code-group.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/components/vp-doc.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/components/vp-doc.css";
|
||||||
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/styles/components/vp-sponsor.css";
|
import "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/styles/components/vp-sponsor.css";
|
||||||
import VPBadge from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
import VPBadge from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
||||||
import Layout from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/Layout.vue";
|
import Layout from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/Layout.vue";
|
||||||
import { default as default2 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
import { default as default2 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
||||||
import { default as default3 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPButton.vue";
|
import { default as default3 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPButton.vue";
|
||||||
import { default as default4 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue";
|
import { default as default4 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue";
|
||||||
import { default as default5 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue";
|
import { default as default5 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue";
|
||||||
import { default as default6 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue";
|
import { default as default6 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue";
|
||||||
import { default as default7 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPHomeFeatures.vue";
|
import { default as default7 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPHomeFeatures.vue";
|
||||||
import { default as default8 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPHomeHero.vue";
|
import { default as default8 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPHomeHero.vue";
|
||||||
import { default as default9 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue";
|
import { default as default9 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue";
|
||||||
import { default as default10 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPImage.vue";
|
import { default as default10 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPImage.vue";
|
||||||
import { default as default11 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPLink.vue";
|
import { default as default11 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPLink.vue";
|
||||||
import { default as default12 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearch.vue";
|
import { default as default12 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPNavBarSearch.vue";
|
||||||
import { default as default13 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPSocialLink.vue";
|
import { default as default13 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPSocialLink.vue";
|
||||||
import { default as default14 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPSocialLinks.vue";
|
import { default as default14 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPSocialLinks.vue";
|
||||||
import { default as default15 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPSponsors.vue";
|
import { default as default15 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPSponsors.vue";
|
||||||
import { default as default16 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue";
|
import { default as default16 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue";
|
||||||
import { default as default17 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue";
|
import { default as default17 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue";
|
||||||
import { default as default18 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue";
|
import { default as default18 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue";
|
||||||
import { default as default19 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue";
|
import { default as default19 } from "D:/Users/Grace-X/Desktop/DeEarthX-CE/node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
||||||
import { onContentUpdated } from "vitepress";
|
import { onContentUpdated } from "vitepress";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
||||||
import { getScrollOffset } from "vitepress";
|
import { getScrollOffset } from "vitepress";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/support/utils.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/support/utils.js
|
||||||
import { withBase } from "vitepress";
|
import { withBase } from "vitepress";
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/data.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/data.js
|
||||||
import { useData as useData$ } from "vitepress";
|
import { useData as useData$ } from "vitepress";
|
||||||
var useData = useData$;
|
var useData = useData$;
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/support/utils.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/support/utils.js
|
||||||
function ensureStartingSlash(path) {
|
function ensureStartingSlash(path) {
|
||||||
return path.startsWith("/") ? path : `/${path}`;
|
return path.startsWith("/") ? path : `/${path}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/support/sidebar.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/support/sidebar.js
|
||||||
function getSidebar(_sidebar, path) {
|
function getSidebar(_sidebar, path) {
|
||||||
if (Array.isArray(_sidebar))
|
if (Array.isArray(_sidebar))
|
||||||
return addBase(_sidebar);
|
return addBase(_sidebar);
|
||||||
@@ -103,7 +103,7 @@ function addBase(items, _base) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/sidebar.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/sidebar.js
|
||||||
function useSidebar() {
|
function useSidebar() {
|
||||||
const { frontmatter, page, theme: theme2 } = useData();
|
const { frontmatter, page, theme: theme2 } = useData();
|
||||||
const is960 = useMediaQuery("(min-width: 960px)");
|
const is960 = useMediaQuery("(min-width: 960px)");
|
||||||
@@ -160,7 +160,7 @@ function useSidebar() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
||||||
var ignoreRE = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/;
|
var ignoreRE = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/;
|
||||||
var resolvedHeaders = [];
|
var resolvedHeaders = [];
|
||||||
function getHeaders(range) {
|
function getHeaders(range) {
|
||||||
@@ -225,7 +225,7 @@ function buildTree(data, min, max) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
||||||
function useLocalNav() {
|
function useLocalNav() {
|
||||||
const { theme: theme2, frontmatter } = useData();
|
const { theme: theme2, frontmatter } = useData();
|
||||||
const headers = shallowRef([]);
|
const headers = shallowRef([]);
|
||||||
@@ -241,7 +241,7 @@ function useLocalNav() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
// ../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
||||||
var theme = {
|
var theme = {
|
||||||
Layout,
|
Layout,
|
||||||
enhanceApp: ({ app }) => {
|
enhanceApp: ({ app }) => {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
18
word/.vitepress/cache/deps/_metadata.json
vendored
18
word/.vitepress/cache/deps/_metadata.json
vendored
@@ -1,31 +1,31 @@
|
|||||||
{
|
{
|
||||||
"hash": "6976e0a7",
|
"hash": "c346a9bf",
|
||||||
"configHash": "16b5e256",
|
"configHash": "efc30d79",
|
||||||
"lockfileHash": "b21b0169",
|
"lockfileHash": "1f28932e",
|
||||||
"browserHash": "1a32ef31",
|
"browserHash": "a0a1bed8",
|
||||||
"optimized": {
|
"optimized": {
|
||||||
"vue": {
|
"vue": {
|
||||||
"src": "../../../../node_modules/.pnpm/vue@3.5.29_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
"src": "../../../../node_modules/.pnpm/vue@3.5.29_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
||||||
"file": "vue.js",
|
"file": "vue.js",
|
||||||
"fileHash": "7e923f01",
|
"fileHash": "f9cb5b91",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"vitepress > @vue/devtools-api": {
|
"vitepress > @vue/devtools-api": {
|
||||||
"src": "../../../../node_modules/.pnpm/@vue+devtools-api@7.7.9/node_modules/@vue/devtools-api/dist/index.js",
|
"src": "../../../../node_modules/.pnpm/@vue+devtools-api@7.7.9/node_modules/@vue/devtools-api/dist/index.js",
|
||||||
"file": "vitepress___@vue_devtools-api.js",
|
"file": "vitepress___@vue_devtools-api.js",
|
||||||
"fileHash": "0373f16c",
|
"fileHash": "6601cb18",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"vitepress > @vueuse/core": {
|
"vitepress > @vueuse/core": {
|
||||||
"src": "../../../../node_modules/.pnpm/@vueuse+core@12.8.2_typescript@5.9.3/node_modules/@vueuse/core/index.mjs",
|
"src": "../../../../node_modules/.pnpm/@vueuse+core@12.8.2_typescript@5.9.3/node_modules/@vueuse/core/index.mjs",
|
||||||
"file": "vitepress___@vueuse_core.js",
|
"file": "vitepress___@vueuse_core.js",
|
||||||
"fileHash": "67853364",
|
"fileHash": "37e71cfa",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"@theme/index": {
|
"@theme/index": {
|
||||||
"src": "../../../../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_b21953e64bdc687d6358312771661039/node_modules/vitepress/dist/client/theme-default/index.js",
|
"src": "../../../../node_modules/.pnpm/vitepress@1.6.4_@algolia+cl_24d2dfd0c17bd24a27a1736f87e83da8/node_modules/vitepress/dist/client/theme-default/index.js",
|
||||||
"file": "@theme_index.js",
|
"file": "@theme_index.js",
|
||||||
"fileHash": "58797fc7",
|
"fileHash": "8723d3d2",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ export default defineConfig({
|
|||||||
items: [
|
items: [
|
||||||
{ text: '核心模块', link: '/api/core' },
|
{ text: '核心模块', link: '/api/core' },
|
||||||
{ text: '后端 API', link: '/api/backend' },
|
{ text: '后端 API', link: '/api/backend' },
|
||||||
{ text: '前端 API', link: '/api/frontend' }
|
{ text: '前端 API', link: '/api/frontend' },
|
||||||
|
{ text: '错误码说明', link: '/api/error-codes' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
256
word/api/error-codes.md
Normal file
256
word/api/error-codes.md
Normal file
@@ -0,0 +1,256 @@
|
|||||||
|
# 错误码说明
|
||||||
|
|
||||||
|
本文档详细说明了 DeEarthX 应用中使用的错误码系统,帮助用户和开发者理解和排查错误。
|
||||||
|
|
||||||
|
## 错误码格式
|
||||||
|
|
||||||
|
错误码采用四位数字格式,第一位数字表示错误类别,后三位数字表示具体错误:
|
||||||
|
|
||||||
|
- `1xxx`: 后端启动相关错误
|
||||||
|
- `2xxx`: 网络相关错误
|
||||||
|
- `3xxx`: 文件相关错误
|
||||||
|
- `4xxx`: 系统相关错误
|
||||||
|
- `9999`: 未知错误
|
||||||
|
|
||||||
|
## 错误码详情
|
||||||
|
|
||||||
|
### 1. 后端启动相关错误
|
||||||
|
|
||||||
|
#### 1001
|
||||||
|
|
||||||
|
**错误信息**: 后端服务启动失败
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 后端服务无法启动
|
||||||
|
- 可能是权限问题
|
||||||
|
- 可能是文件损坏
|
||||||
|
- 可能是端口被占用
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查 37019 端口是否被占用
|
||||||
|
2. 检查后端服务是否正常
|
||||||
|
3. 重启应用程序
|
||||||
|
|
||||||
|
#### 1002
|
||||||
|
|
||||||
|
**错误信息**: 后端服务端口被占用
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 37019 端口已被其他应用占用
|
||||||
|
- 可能有其他 DeEarthX 实例在运行
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 关闭占用 37019 端口的其他应用
|
||||||
|
2. 检查是否有其他 DeEarthX 实例在运行
|
||||||
|
3. 重启计算机后再试
|
||||||
|
|
||||||
|
#### 1003
|
||||||
|
|
||||||
|
**错误信息**: 后端服务连接失败
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 无法连接到后端服务
|
||||||
|
- 后端服务可能未启动
|
||||||
|
- 网络连接可能存在问题
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查后端服务是否正在运行
|
||||||
|
2. 检查网络连接是否正常
|
||||||
|
3. 重启应用程序
|
||||||
|
|
||||||
|
#### 1004
|
||||||
|
|
||||||
|
**错误信息**: 后端服务响应错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 后端服务返回错误响应
|
||||||
|
- 后端服务可能出现内部错误
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查后端服务是否正常
|
||||||
|
2. 重启后端服务
|
||||||
|
3. 联系技术支持
|
||||||
|
|
||||||
|
### 2. 网络相关错误
|
||||||
|
|
||||||
|
#### 2001
|
||||||
|
|
||||||
|
**错误信息**: 网络连接错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 网络连接出现问题
|
||||||
|
- 网络不稳定
|
||||||
|
- 网络中断
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查网络连接是否正常
|
||||||
|
2. 检查防火墙设置
|
||||||
|
3. 稍后重试
|
||||||
|
|
||||||
|
#### 2002
|
||||||
|
|
||||||
|
**错误信息**: 网络连接超时
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 网络连接超时
|
||||||
|
- 网络速度过慢
|
||||||
|
- 目标服务器响应缓慢
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查网络连接速度
|
||||||
|
2. 稍后重试
|
||||||
|
3. 检查目标服务器是否可访问
|
||||||
|
|
||||||
|
#### 2003
|
||||||
|
|
||||||
|
**错误信息**: 网络连接被拒绝
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 网络连接被拒绝
|
||||||
|
- 目标服务器可能未运行
|
||||||
|
- 防火墙可能阻止连接
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查目标服务器是否正在运行
|
||||||
|
2. 检查网络连接是否正常
|
||||||
|
3. 检查防火墙设置
|
||||||
|
|
||||||
|
### 3. 文件相关错误
|
||||||
|
|
||||||
|
#### 3001
|
||||||
|
|
||||||
|
**错误信息**: 文件未找到
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 文件不存在
|
||||||
|
- 文件路径不正确
|
||||||
|
- 文件可能被删除或移动
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 确认文件路径是否正确
|
||||||
|
2. 检查文件是否存在
|
||||||
|
3. 重新上传文件
|
||||||
|
|
||||||
|
#### 3002
|
||||||
|
|
||||||
|
**错误信息**: 文件权限错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 没有文件操作权限
|
||||||
|
- 文件可能被其他程序占用
|
||||||
|
- 应用程序可能没有足够的权限
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查文件权限设置
|
||||||
|
2. 以管理员身份运行应用程序
|
||||||
|
3. 检查文件是否被其他程序占用
|
||||||
|
|
||||||
|
#### 3003
|
||||||
|
|
||||||
|
**错误信息**: 文件格式错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 文件格式不正确
|
||||||
|
- 文件可能损坏
|
||||||
|
- 文件类型不符合要求
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 确认文件格式是否正确
|
||||||
|
2. 重新上传正确格式的文件
|
||||||
|
3. 检查文件是否损坏
|
||||||
|
|
||||||
|
#### 3004
|
||||||
|
|
||||||
|
**错误信息**: 文件大小错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 文件大小不符合要求
|
||||||
|
- 磁盘空间可能不足
|
||||||
|
- 文件可能过大
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 检查文件大小是否符合要求
|
||||||
|
2. 压缩文件后再上传
|
||||||
|
3. 检查磁盘空间是否充足
|
||||||
|
|
||||||
|
### 4. 系统相关错误
|
||||||
|
|
||||||
|
#### 4001
|
||||||
|
|
||||||
|
**错误信息**: Java 未找到
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 系统中未安装 Java
|
||||||
|
- Java 环境变量未配置
|
||||||
|
- Java 版本可能不兼容
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 安装 Java 17 或更高版本
|
||||||
|
2. 配置 Java 环境变量
|
||||||
|
3. 重启应用程序
|
||||||
|
|
||||||
|
#### 4002
|
||||||
|
|
||||||
|
**错误信息**: 磁盘空间不足
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 磁盘空间不足
|
||||||
|
- 目标存储位置空间已满
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 清理磁盘空间
|
||||||
|
2. 选择其他存储位置
|
||||||
|
3. 删除不必要的文件
|
||||||
|
|
||||||
|
#### 4003
|
||||||
|
|
||||||
|
**错误信息**: 内存不足
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 系统内存不足
|
||||||
|
- 应用程序占用内存过多
|
||||||
|
- 其他应用程序占用大量内存
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 增加系统内存
|
||||||
|
2. 关闭其他占用内存的应用程序
|
||||||
|
3. 减少同时处理的任务数量
|
||||||
|
|
||||||
|
### 5. 未知错误
|
||||||
|
|
||||||
|
#### 9999
|
||||||
|
|
||||||
|
**错误信息**: 未知错误
|
||||||
|
|
||||||
|
**可能原因**:
|
||||||
|
- 发生未知错误
|
||||||
|
- 可能是应用程序内部错误
|
||||||
|
- 可能是系统环境问题
|
||||||
|
|
||||||
|
**解决方案**:
|
||||||
|
1. 重启应用程序
|
||||||
|
2. 检查系统日志
|
||||||
|
3. 联系技术支持
|
||||||
|
|
||||||
|
## 错误处理流程
|
||||||
|
|
||||||
|
当应用遇到错误时,会:
|
||||||
|
|
||||||
|
1. 生成相应的错误码和错误信息
|
||||||
|
2. 在界面上显示错误信息和错误码
|
||||||
|
3. 提供可能的解决方案
|
||||||
|
4. 记录错误日志以便排查
|
||||||
|
|
||||||
|
## 如何使用错误码
|
||||||
|
|
||||||
|
当您遇到错误时:
|
||||||
|
|
||||||
|
1. 查看错误信息和错误码
|
||||||
|
2. 参考本文档中的解决方案尝试解决
|
||||||
|
3. 如果问题仍然存在,请联系技术支持并提供错误码和详细的错误信息
|
||||||
|
|
||||||
|
## 注意事项
|
||||||
|
|
||||||
|
- 错误码仅用于参考,具体错误原因可能因环境不同而有所差异
|
||||||
|
- 如遇到持续的错误,请检查系统环境和网络连接
|
||||||
|
- 定期更新应用程序以获取最新的错误处理机制
|
||||||
@@ -4,13 +4,15 @@
|
|||||||
|
|
||||||
感谢您对 DeEarthX-CE 项目的关注和支持!我们欢迎来自社区的贡献,包括代码提交、问题报告、功能建议等。本指南将帮助您了解如何参与项目开发。
|
感谢您对 DeEarthX-CE 项目的关注和支持!我们欢迎来自社区的贡献,包括代码提交、问题报告、功能建议等。本指南将帮助您了解如何参与项目开发。
|
||||||
|
|
||||||
|
[XCCGit仓库](https://git.xcclyc.cn/xcclyc/DeEarthX-CE)
|
||||||
|
|
||||||
## 开发环境设置
|
## 开发环境设置
|
||||||
|
|
||||||
### 前提条件
|
### 前提条件
|
||||||
|
|
||||||
在开始贡献之前,请确保您的系统满足以下要求:
|
在开始贡献之前,请确保您的系统满足以下要求:
|
||||||
|
|
||||||
- **Node.js**:v16.0+(推荐使用最新稳定版)
|
- **Node.js**:v22.0+(推荐使用最新稳定版)
|
||||||
- **pnpm**:v8.0+(包管理器)
|
- **pnpm**:v8.0+(包管理器)
|
||||||
- **Rust**:最新稳定版(用于 Tauri 构建)
|
- **Rust**:最新稳定版(用于 Tauri 构建)
|
||||||
- **Git**:用于版本控制
|
- **Git**:用于版本控制
|
||||||
@@ -18,7 +20,7 @@
|
|||||||
### 克隆仓库
|
### 克隆仓库
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/yourusername/DeEarthX-CE.git
|
git clone https://git.xcclyc.cn/xcclyc/DeEarthX-CE.git
|
||||||
cd DeEarthX-CE
|
cd DeEarthX-CE
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -35,7 +37,7 @@ pnpm install
|
|||||||
pnpm run dev
|
pnpm run dev
|
||||||
|
|
||||||
# 启动后端开发服务器(如果需要)
|
# 启动后端开发服务器(如果需要)
|
||||||
pnpm run backend:dev
|
pnpm run test
|
||||||
```
|
```
|
||||||
|
|
||||||
## 代码规范
|
## 代码规范
|
||||||
@@ -123,7 +125,7 @@ pnpm run test
|
|||||||
|
|
||||||
## 问题报告
|
## 问题报告
|
||||||
|
|
||||||
如果您发现了 bug 或有功能建议,请在 GitHub Issues 页面提交:
|
如果您发现了 bug 或有功能建议,请在 XCCGit Issues 页面提交:
|
||||||
|
|
||||||
1. **搜索现有问题**:确保问题尚未被报告
|
1. **搜索现有问题**:确保问题尚未被报告
|
||||||
2. **创建新问题**:提供详细的问题描述
|
2. **创建新问题**:提供详细的问题描述
|
||||||
@@ -133,7 +135,9 @@ pnpm run test
|
|||||||
|
|
||||||
## 功能请求
|
## 功能请求
|
||||||
|
|
||||||
如果您有新功能的想法,请在 GitHub Issues 页面提交功能请求:
|
如果您有新功能的想法,请在 XCCGit Issues 页面提交功能请求:
|
||||||
|
|
||||||
|
[XCCGit](https://git.xcclyc.cn/xcclyc/DeEarthX-CE/issues)
|
||||||
|
|
||||||
1. **搜索现有请求**:确保功能尚未被请求
|
1. **搜索现有请求**:确保功能尚未被请求
|
||||||
2. **创建新请求**:提供详细的功能描述
|
2. **创建新请求**:提供详细的功能描述
|
||||||
@@ -179,7 +183,7 @@ MAJOR.MINOR.PATCH
|
|||||||
2. **更新 CHANGELOG**:记录版本变更内容
|
2. **更新 CHANGELOG**:记录版本变更内容
|
||||||
3. **构建项目**:确保项目能够正常构建
|
3. **构建项目**:确保项目能够正常构建
|
||||||
4. **运行测试**:确保所有测试通过
|
4. **运行测试**:确保所有测试通过
|
||||||
5. **创建发布**:在 GitHub 上创建新的发布
|
5. **创建发布**:在 XCCGit 上创建新的发布
|
||||||
6. **部署**:部署到相关平台
|
6. **部署**:部署到相关平台
|
||||||
|
|
||||||
## 行为准则
|
## 行为准则
|
||||||
@@ -196,8 +200,8 @@ MAJOR.MINOR.PATCH
|
|||||||
|
|
||||||
如果您有任何问题或需要帮助,可以通过以下方式联系我们:
|
如果您有任何问题或需要帮助,可以通过以下方式联系我们:
|
||||||
|
|
||||||
- **GitHub Issues**:用于问题报告和功能请求
|
- **XCCGit Issues**:用于问题报告和功能请求
|
||||||
- **Discord**:用于实时讨论和社区交流
|
- **QQ**:简单直接
|
||||||
- **Email**:用于重要事项的沟通
|
- **Email**:用于重要事项的沟通
|
||||||
|
|
||||||
## 致谢
|
## 致谢
|
||||||
|
|||||||
Reference in New Issue
Block a user