fix start error

Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2025-09-22 16:47:35 +08:00
parent fd9d605f7a
commit 9b23e5933c
5 changed files with 924 additions and 20064 deletions
+4 -1
View File
@@ -16,7 +16,10 @@
"Bash(mv:*)",
"Bash(cp:*)",
"Bash(npm run:*)",
"Bash(git add:*)"
"Bash(git add:*)",
"Bash(node:*)",
"Bash(npm:*)",
"Bash(pnpm add:*)"
],
"deny": []
}
+29 -1
View File
@@ -59,7 +59,11 @@ Domain-specific logic is organized in composables (`composables/`):
- `useAPI.ts` - Base API wrapper using custom `$apiFetch`
- `useAuth.ts` - Authentication and session management
- `useBucket.ts`, `useObject.ts` - Object storage operations
- `useUsers.ts`, `useAccessKeys.ts` - User and access management
- `useUsers.ts`, `useAccessKeys.ts`, `useGroups.ts` - User and access management
- `usePolicies.ts`, `usePools.ts`, `useTiers.ts` - Policy and storage management
- `useSystem.ts` - System monitoring and health checks
- `useSSE.ts` - Server-sent events for real-time updates
- `useEcharts.ts` - Chart and visualization utilities
#### Component Architecture
@@ -115,3 +119,27 @@ Required environment variables:
- TypeScript interfaces and types go in `types/` directory
- Utility functions organized by domain in `utils/`
- Follow Vue 3 Composition API patterns with `<script setup>`
## Development Workflow
### Common Development Tasks
- **Starting Development**: Run `npm run dev` to start the development server at localhost:3000
- **Code Quality Checks**: Always run `npm run type-check` and `npm run lint` before committing
- **Production Testing**: Use `npm run build && npm run preview` to test production builds locally
### Debugging and Troubleshooting
- **Configuration Issues**: Check browser console for config loading errors; configuration is loaded via `01.config.ts` plugin
- **API Authentication**: Verify credentials in browser storage and check network tab for authentication failures
- **Type Errors**: Use `vue-tsc --noEmit` for detailed TypeScript error reporting
- **Performance Issues**: Monitor network requests and check for unnecessary re-renders in Vue DevTools
### Key Utilities
The `utils/` directory contains domain-specific helpers:
- `config.ts` - Configuration management with priority system
- `error-handler.ts` - Global error handling and user notifications
- `logger.ts` - Logging utilities for debugging
- `functions.ts` - Common utility functions and data transformations
-19869
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -44,6 +44,7 @@
"nuxtjs-naive-ui": "^1.0.2",
"pinia": "^2.3.1",
"postprocessing": "^6.37.6",
"seemly": "^0.3.10",
"strip-json-comments": "^5.0.2",
"tailwindcss": "^3.4.17",
"three": "^0.175.0",
@@ -57,6 +58,7 @@
"@aws-sdk/types": "^3.840.0",
"@inspira-ui/plugins": "^0.0.1",
"@types/aws4": "^1.11.6",
"@types/lodash": "^4.17.20",
"@types/node-forge": "^1.3.12",
"@vueuse/core": "^13.5.0",
"@vueuse/nuxt": "^13.5.0",
+889 -193
View File
File diff suppressed because it is too large Load Diff