🐛 fix(config): Bugs

This commit is contained in:
web@ppanel
2024-12-15 23:18:50 +07:00
parent bbc2da05f0
commit f57e40cd3d
12 changed files with 100 additions and 16 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ NEXT_PUBLIC_GITHUB_LINK=https://github.com/perfect-panel/ppanel-user-web
# Default Login User
NEXT_PUBLIC_DEFAULT_USER_EMAIL=admin@ppanel.dev
NEXT_PUBLIC_DEFAULT_USER_PASSWORD=admin-password
NEXT_PUBLIC_DEFAULT_USER_PASSWORD=password
# Please put in the .env file, otherwise the i18n command will not work
# OpenAI API key and proxy URL required for i18n command (optional)
+2 -1
View File
@@ -57,7 +57,6 @@ declare namespace API {
type CurrencyConfig = {
currency_unit: string;
currency_symbol: string;
access_key: string;
};
type Document = {
@@ -235,6 +234,8 @@ declare namespace API {
sni: string;
allow_insecure: boolean;
fingerprint: string;
reality_server_addr: string;
reality_server_port: number;
reality_private_key: string;
reality_public_key: string;
reality_short_id: string;
+2 -1
View File
@@ -71,7 +71,6 @@ declare namespace API {
type CurrencyConfig = {
currency_unit: string;
currency_symbol: string;
access_key: string;
};
type Document = {
@@ -377,6 +376,8 @@ declare namespace API {
sni: string;
allow_insecure: boolean;
fingerprint: string;
reality_server_addr: string;
reality_server_port: number;
reality_private_key: string;
reality_public_key: string;
reality_short_id: string;
+1 -1
View File
@@ -7,9 +7,9 @@ import { getAuthorization, Logout } from './common';
async function handleError(response: any) {
const code = response.data?.code;
if ([40002, 40003, 40004].includes(code)) return Logout();
if (response?.config?.skipErrorHandler) return;
if (!isBrowser()) return;
if ([40002, 40003, 40004].includes(code)) return Logout();
const t = await getTranslations('common');
const message =