mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-02-19 11:10:49 +08:00
fix(auth-files): unify max auth file size
This commit is contained in:
@@ -17,7 +17,6 @@ export const QUOTA_PROVIDER_TYPES = new Set<QuotaProviderType>(['antigravity', '
|
|||||||
|
|
||||||
export const MIN_CARD_PAGE_SIZE = 3;
|
export const MIN_CARD_PAGE_SIZE = 3;
|
||||||
export const MAX_CARD_PAGE_SIZE = 30;
|
export const MAX_CARD_PAGE_SIZE = 30;
|
||||||
export const MAX_AUTH_FILE_SIZE = 50 * 1024;
|
|
||||||
|
|
||||||
export const INTEGER_STRING_PATTERN = /^[+-]?\d+$/;
|
export const INTEGER_STRING_PATTERN = /^[+-]?\d+$/;
|
||||||
export const TRUTHY_TEXT_VALUES = new Set(['true', '1', 'yes', 'y', 'on']);
|
export const TRUTHY_TEXT_VALUES = new Set(['true', '1', 'yes', 'y', 'on']);
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import { apiClient } from '@/services/api/client';
|
|||||||
import { useNotificationStore } from '@/stores';
|
import { useNotificationStore } from '@/stores';
|
||||||
import type { AuthFileItem } from '@/types';
|
import type { AuthFileItem } from '@/types';
|
||||||
import { formatFileSize } from '@/utils/format';
|
import { formatFileSize } from '@/utils/format';
|
||||||
import { MAX_AUTH_FILE_SIZE, getTypeLabel, isRuntimeOnlyAuthFile } from '@/features/authFiles/constants';
|
import { MAX_AUTH_FILE_SIZE } from '@/utils/constants';
|
||||||
|
import { getTypeLabel, isRuntimeOnlyAuthFile } from '@/features/authFiles/constants';
|
||||||
|
|
||||||
type DeleteAllOptions = {
|
type DeleteAllOptions = {
|
||||||
filter: string;
|
filter: string;
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import { useTranslation } from 'react-i18next';
|
|||||||
import { authFilesApi } from '@/services/api';
|
import { authFilesApi } from '@/services/api';
|
||||||
import { useNotificationStore } from '@/stores';
|
import { useNotificationStore } from '@/stores';
|
||||||
import { formatFileSize } from '@/utils/format';
|
import { formatFileSize } from '@/utils/format';
|
||||||
|
import { MAX_AUTH_FILE_SIZE } from '@/utils/constants';
|
||||||
import {
|
import {
|
||||||
MAX_AUTH_FILE_SIZE,
|
|
||||||
normalizeExcludedModels,
|
normalizeExcludedModels,
|
||||||
parseDisableCoolingValue,
|
parseDisableCoolingValue,
|
||||||
parseExcludedModelsText,
|
parseExcludedModelsText,
|
||||||
|
|||||||
Reference in New Issue
Block a user