Refactor UUID generation, remove unused logger and encryption utilities, and clean up request handling
- Updated `generateUUID` function for improved readability and performance. - Deleted `logger.ts`, `other.ts`, `request.ts`, `storage.ts`, `tansParams.ts`, and `validate.ts` as they were no longer needed. - Simplified TypeScript configuration by removing unnecessary paths and aliases. - Enhanced Vite configuration for better project structure and maintainability.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
export const SUPPORTED_LANGUAGE_CODES = ['en', 'zh', 'ja'] as const;
|
||||
export type LanguageCode = (typeof SUPPORTED_LANGUAGE_CODES)[number];
|
||||
import type { LanguageCode } from '../types/runtime';
|
||||
|
||||
export const SUPPORTED_LANGUAGE_CODES = ['en', 'zh', 'ja'] as const satisfies readonly LanguageCode[];
|
||||
|
||||
export type { LanguageCode };
|
||||
|
||||
export const SUPPORTED_LANGUAGES = [
|
||||
{ code: 'en', label: 'English' },
|
||||
@@ -7,21 +10,6 @@ export const SUPPORTED_LANGUAGES = [
|
||||
{ code: 'ja', label: '日本語' },
|
||||
] as const;
|
||||
|
||||
// 命名空间定义
|
||||
export const NAMESPACES = [
|
||||
'common',
|
||||
'conversation',
|
||||
'setting',
|
||||
'menu',
|
||||
'login',
|
||||
'dashboard',
|
||||
'task',
|
||||
'rate',
|
||||
'knowledge',
|
||||
'component',
|
||||
'models',
|
||||
'skills',
|
||||
'cron',
|
||||
'script',
|
||||
] as const;
|
||||
export type Namespace = (typeof NAMESPACES)[number];
|
||||
export type Namespace = 'common' | 'conversation' | 'setting' | 'window';
|
||||
|
||||
export const NAMESPACES = ['common', 'conversation', 'setting', 'window'] as const satisfies readonly Namespace[];
|
||||
|
||||
Reference in New Issue
Block a user