diff --git a/.gitignore b/.gitignore index e2bb856..1413330 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,21 @@ -debug-logs/ -node_modules/ -vendor/ -build/ -dist/ -coverage/ -.env -.env.* -*.log -*.exe -*.exe~ -*~ -.DS_Store -.cursor/ -config.json -mengyastore-backend/data/ -mengyastore-frontend/public/logo.png +debug-logs/ +node_modules/ +vendor/ +build/ +dist/ +coverage/ +.idea/ +.vscode/ +.kiro/ +.env +.env.* +*.log +*.exe +*.exe~ +*~ +.DS_Store +.cursor/ +config.json +mengyastore-backend/data/ +mengyastore-frontend/public/logo.png +萌芽小店项目经历-*.md diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 4647a46..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,10 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 已忽略包含查询文件的默认文件夹 -/queries/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 627e4cd..0000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index f82ef42..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml deleted file mode 100644 index a468a99..0000000 --- a/.idea/jarRepositories.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/mengyastore.iml b/.idea/mengyastore.iml deleted file mode 100644 index 18ec59d..0000000 --- a/.idea/mengyastore.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 18e444c..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 746d6ba..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index c8397c9..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.kiro/steering/coding-standards.md b/.kiro/steering/coding-standards.md deleted file mode 100644 index 0773e03..0000000 --- a/.kiro/steering/coding-standards.md +++ /dev/null @@ -1,42 +0,0 @@ -# 代码规范 - -## 注释语言 - -所有代码注释必须使用**中文**,禁止使用英文注释。 - -适用范围:Go、Java、JavaScript、TypeScript、Vue、CSS、SQL 等所有文件。 - -示例(Go): -```go -// 获取商品列表 -func (s *ProductStore) List() ([]models.Product, error) { - // 查询所有激活状态的商品 - ... -} -``` - -示例(JavaScript/Vue): -```js -// 初始化认证状态 -const saved = loadAuth() -``` - -## 域名与环境配置 - -- 前端生产环境域名:`store.shumengya.top` -- 后端生产环境域名:`store.api.shumengya.top` -- 后端 CORS 策略:宽松模式,允许所有来源(`AllowOrigins: ["*"]`) - -前端 `.env.production` 示例: -``` -VITE_API_BASE_URL=https://store.api.shumengya.top -``` - -后端 CORS 配置示例(Go/Gin): -```go -r.Use(cors.New(cors.Config{ - AllowOrigins: []string{"*"}, - AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"}, - AllowHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization", "X-Admin-Token"}, -})) -``` diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index c473400..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "kiroAgent.configureMCP": "Disabled" -} \ No newline at end of file