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:
DEV_DSW
2026-04-17 15:38:08 +08:00
parent b1dea9a5c2
commit 79bea4f107
360 changed files with 14495 additions and 30856 deletions

View File

@@ -15,7 +15,7 @@ const ICONS_DIR = path.join(PROJECT_ROOT, 'resources', 'icons');
const SOURCE_PATHS = [
path.join(ICONS_DIR, 'icon.svg'), // Primary: SVG in icons directory
path.join(PROJECT_ROOT, 'icon.svg'), // SVG in project root
path.join(PROJECT_ROOT, 'src', 'assets', 'images', 'icon.png'), // Login logo
path.join(PROJECT_ROOT, 'src', 'assets', 'images', 'login', 'logo.png'), // React login logo fallback
];
echo`🎨 Generating ZN-AI icons...`;
@@ -39,7 +39,7 @@ if (!sourceFile) {
Please provide one of the following source files:
1. ${path.join(ICONS_DIR, 'icon.svg')} (recommended)
2. ${path.join(PROJECT_ROOT, 'icon.svg')}
4. ${path.join(PROJECT_ROOT, 'src', 'assets', 'images', 'login', 'logo.png')}
3. ${path.join(PROJECT_ROOT, 'src', 'assets', 'images', 'login', 'logo.png')}
Or create an SVG file at ${path.join(ICONS_DIR, 'icon.svg')} for best results.
`;
@@ -166,4 +166,4 @@ Next steps:
} catch (error) {
echo(chalk.red`\n❌ Fatal Error: ${error.message}`);
process.exit(1);
}
}