Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Jan 13, 2025
2 parents 3c70a86 + b850588 commit bfdc6b4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 23 deletions.
31 changes: 31 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

You are an expert in TypeScript, Vite, Vue3, Vue Router, Pinia, VueUse ,Daisy UI, Element Plus, and Tailwind, with a deep understanding of best practices and performance optimization techniques in these technologies.

Code Style and Structure
- Write concise, maintainable, and technically accurate TypeScript code with relevant examples.
- Use functional and declarative programming patterns; avoid classes.
- Favor iteration and modularization to adhere to DRY principles and avoid code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Organize files systematically: each file should contain only related content, such as exported components, subcomponents, helpers, static content, and types.

Naming Conventions
- Use lowercase with dashes for directories (e.g., components/auth-wizard).
- Favor named exports for functions.

TypeScript Usage
- Use TypeScript for all code; prefer interfaces over types for their extendability and ability to merge.
- Avoid enums; use maps instead for better type safety and flexibility.
- Use functional components with TypeScript interfaces.

Syntax and Formatting
- Use the "function" keyword for pure functions to benefit from hoisting and clarity.
- Always use the Vue Composition API script setup style.
- The order is template , typescript , Sass

UI and Styling
- Use Element Plus,Daisyui, and Tailwind for components and styling.
- Implement responsive design with Tailwind CSS; use a mobile-first approach.

Performance Optimization
- Leverage VueUse functions where applicable to enhance reactivity and performance.

5 changes: 5 additions & 0 deletions docker/pig-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ server {
proxy_set_header Host $http_host;
proxy_set_header from "";
}

# 屏蔽所有敏感路径,不用改代码
location ~* ^/(actuator|swagger-ui|v3/api-docs|swagger-resources|webjars|doc.html) {
return 403; # 禁止访问
}
}
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,54 +17,54 @@
"@wangeditor/editor": "5.1.23",
"@wangeditor/editor-for-vue": "5.1.12",
"autoprefixer": "10.4.20",
"axios": "1.7.7",
"axios": "1.7.9",
"china-area-data": "^5.0.1",
"codemirror": "5.65.18",
"crypto-js": "4.2.0",
"driver.js": "1.3.1",
"echarts": "5.5.1",
"element-plus": "2.8.6",
"element-plus": "2.8.7",
"js-cookie": "3.0.5",
"mitt": "3.0.1",
"nprogress": "0.2.0",
"pinia": "2.2.6",
"postcss": "8.4.47",
"qs": "6.13.0",
"pinia": "2.3.0",
"postcss": "8.4.49",
"qs": "6.13.1",
"screenfull": "6.0.2",
"sm-crypto": "0.3.13",
"sortablejs": "1.15.3",
"splitpanes": "3.1.5",
"tailwindcss": "3.4.14",
"vue": "3.5.12",
"sortablejs": "1.15.6",
"splitpanes": "3.1.8",
"tailwindcss": "3.4.17",
"vue": "3.5.13",
"vue-clipboard3": "2.0.0",
"vue-echarts": "7.0.3",
"vue-i18n": "9.14.1",
"vue-i18n": "9.14.2",
"vue-router": "4.4.5",
"vuedraggable": "4.1.0"
},
"devDependencies": {
"@swc/core": "1.6.13",
"@types/node": "20.0.0",
"@types/nprogress": "0.2.0",
"@types/sortablejs": "1.15.0",
"@typescript-eslint/eslint-plugin": "8.13.0",
"@typescript-eslint/parser": "8.13.0",
"@vitejs/plugin-vue": "5.0.5",
"@vue/compiler-sfc": "3.4.3",
"consola": "3.0.0",
"@types/nprogress": "0.2.3",
"@types/sortablejs": "1.15.8",
"@typescript-eslint/eslint-plugin": "8.17.0",
"@typescript-eslint/parser": "8.17.0",
"@vitejs/plugin-vue": "5.2.1",
"@vue/compiler-sfc": "3.5.13",
"consola": "3.2.3",
"cross-env": "7.0.3",
"eslint": "9.14.0",
"eslint-plugin-vue": "9.30.0",
"eslint-plugin-vue": "9.32.0",
"glob": "9.3.5",
"pinia-plugin-persist": "1.0.0",
"prettier": "3.3.3",
"prettier": "3.4.2",
"sass": "1.58.3",
"terser": "5.31.1",
"terser": "5.36.0",
"typescript": "5.6.3",
"vite": "5.3.3",
"vite": "5.4.11",
"vite-plugin-compression": "0.5.1",
"vite-plugin-top-level-await": "1.4.1",
"unplugin-auto-import": "0.18.0",
"vite-plugin-top-level-await": "1.4.4",
"unplugin-auto-import": "0.18.6",
"unplugin-vue-setup-extend-plus": "1.0.1",
"vue-eslint-parser": "9.4.3"
},
Expand Down

0 comments on commit bfdc6b4

Please sign in to comment.