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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user