mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-13 01:50:53 +08:00
【调整】申请证书配置CA选项增加liteSSL证书
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
# Product Overview
|
||||
|
||||
This is a Baota (宝塔) Turborepo monorepo containing multiple web applications and shared packages for domain management, SSL certificate management, and cloud control systems.
|
||||
|
||||
## Key Applications
|
||||
|
||||
- **allin-ssl**: SSL certificate management application
|
||||
- **cloud-control**: Cloud infrastructure control panel
|
||||
- **domain-management-backend**: Domain management backend interface
|
||||
- **domain-official**: Official domain registration website
|
||||
- **naive-template**: Reusable template based on Naive UI
|
||||
|
||||
## Target Users
|
||||
|
||||
System administrators and developers managing web infrastructure, SSL certificates, and domain registrations through web-based control panels.
|
||||
|
||||
## Core Features
|
||||
|
||||
- SSL certificate lifecycle management
|
||||
- Domain registration and management
|
||||
- Cloud infrastructure monitoring and control
|
||||
- Multi-language support (i18n)
|
||||
- Real-time monitoring and analytics
|
||||
@@ -1,84 +0,0 @@
|
||||
# Project Structure
|
||||
|
||||
## Monorepo Organization
|
||||
|
||||
```
|
||||
├── apps/ # Applications
|
||||
├── packages/ # Shared packages
|
||||
├── plugin/ # Custom Vite plugins
|
||||
├── scripts/ # Build and utility scripts
|
||||
├── types/ # Global type definitions
|
||||
└── environment/ # Environment configurations
|
||||
```
|
||||
|
||||
## Application Structure (`apps/`)
|
||||
|
||||
Each app follows a consistent structure:
|
||||
|
||||
```
|
||||
apps/app-name/
|
||||
├── src/
|
||||
│ ├── api/ # API layer and HTTP clients
|
||||
│ ├── assets/ # Static assets (images, icons, fonts)
|
||||
│ ├── components/ # Reusable Vue components
|
||||
│ ├── config/ # App configuration
|
||||
│ ├── lib/ # App-specific utilities
|
||||
│ ├── locales/ # i18n translation files
|
||||
│ ├── router/ # Vue Router configuration
|
||||
│ ├── styles/ # Global styles and themes
|
||||
│ ├── types/ # TypeScript type definitions
|
||||
│ ├── views/ # Page components
|
||||
│ ├── App.tsx # Root component
|
||||
│ └── main.ts # Application entry point
|
||||
├── public/ # Public static files
|
||||
├── types/ # Generated type definitions
|
||||
├── mock/ # Mock data for development
|
||||
├── package.json
|
||||
├── vite.config.ts
|
||||
└── tsconfig.json
|
||||
```
|
||||
|
||||
## Shared Packages (`packages/`)
|
||||
|
||||
- **@baota/utils**: Common utilities (browser, data, string, crypto, etc.)
|
||||
- **@baota/vue/**: Vue-specific packages
|
||||
- `hooks/`: Composable functions
|
||||
- `i18n/`: Internationalization utilities
|
||||
- `naive-ui/`: Naive UI components and themes
|
||||
- `pinia/`: State management utilities
|
||||
- `router/`: Router utilities
|
||||
- `vite/`: Vite configuration helpers
|
||||
|
||||
## Custom Plugins (`plugin/`)
|
||||
|
||||
- **vite-plugin-i18n**: Translation file generation
|
||||
- **vite-plugin-ftp-sync**: FTP deployment automation
|
||||
- **vite-plugin-turborepo-deploy**: Git synchronization
|
||||
- **vite-plugin-html-to-php-template**: HTML to PHP conversion
|
||||
- **vite-plugin-timestamp-cache**: Cache busting utilities
|
||||
|
||||
## Naming Conventions
|
||||
|
||||
- **Files**: kebab-case for directories, camelCase for TypeScript files
|
||||
- **Components**: PascalCase for Vue components (`.tsx` preferred)
|
||||
- **Views**: Organized by feature in `src/views/`
|
||||
- **API**: Grouped by domain in `src/api/`
|
||||
- **Types**: Descriptive names ending in `.d.ts`
|
||||
|
||||
## Path Aliases
|
||||
|
||||
Standard aliases used across apps:
|
||||
- `@/`: `src/` directory
|
||||
- `@api/`: `src/api/`
|
||||
- `@components/`: `src/components/`
|
||||
- `@views/`: `src/views/`
|
||||
- `@assets/`: `src/assets/`
|
||||
- `@types/`: `src/types/`
|
||||
- Feature-specific aliases (e.g., `@login/`, `@certManage/`)
|
||||
|
||||
## Architecture Patterns
|
||||
|
||||
- **MVC Separation**: Separate state (stores), controllers (composables), and views
|
||||
- **Composition API**: Use `<script setup>` syntax
|
||||
- **TSX Components**: Prefer `.tsx` over `.vue` for complex components
|
||||
- **Feature-based Organization**: Group related files by feature/domain
|
||||
@@ -1,60 +0,0 @@
|
||||
# Technology Stack
|
||||
|
||||
## Build System & Package Management
|
||||
- **Monorepo**: Turborepo for build orchestration and caching
|
||||
- **Package Manager**: pnpm (v10.14.0+)
|
||||
- **Node.js**: >= 18
|
||||
- **Build Tool**: Vite for fast development and optimized builds
|
||||
|
||||
## Frontend Stack
|
||||
- **Framework**: Vue 3 with Composition API and `<script setup>` syntax
|
||||
- **Language**: TypeScript (ES2022 target)
|
||||
- **Syntax**: TSX for Vue components (`.tsx` files preferred)
|
||||
- **UI Library**: Naive UI
|
||||
- **Styling**: Tailwind CSS + CSS Modules
|
||||
- **State Management**: Pinia with persistence plugin
|
||||
- **Routing**: Vue Router
|
||||
- **Utilities**: VueUse, Axios for HTTP requests
|
||||
|
||||
## Development Tools
|
||||
- **Linting**: ESLint with Vue and TypeScript support
|
||||
- **Formatting**: Prettier
|
||||
- **Testing**: Vitest
|
||||
- **Type Checking**: vue-tsc
|
||||
- **Auto-imports**: unplugin-auto-import for Vue APIs
|
||||
- **Component Auto-import**: unplugin-vue-components with Naive UI resolver
|
||||
|
||||
## Custom Plugins
|
||||
- **@baota/vite-plugin-i18n**: Internationalization generator
|
||||
- **@baota/vite-plugin-ftp-sync**: FTP deployment synchronization
|
||||
- **@baota/vite-plugin-turborepo-deploy**: Git project synchronization
|
||||
|
||||
## Common Commands
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
pnpm install
|
||||
|
||||
# Development
|
||||
pnpm dev # Start all apps
|
||||
pnpm dev --filter app-name # Start specific app
|
||||
|
||||
# Building
|
||||
pnpm build # Build all apps
|
||||
pnpm build --filter app-name # Build specific app
|
||||
|
||||
# Testing & Quality
|
||||
pnpm test # Run tests
|
||||
pnpm lint # Lint all code
|
||||
pnpm check-types # Type checking
|
||||
pnpm format # Format code
|
||||
|
||||
# Utilities
|
||||
pnpm clear # Clean temp files
|
||||
pnpm sync # Sync project files
|
||||
```
|
||||
|
||||
## Workspace Structure
|
||||
- Apps use `workspace:*` dependencies for internal packages
|
||||
- Shared packages under `@baota/` namespace
|
||||
- All packages support both ESM and CJS exports
|
||||
Reference in New Issue
Block a user