@lark-apaas/coding-templates 0.1.37 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-templates",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "OpenClaw project templates for mclaw CLI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -19,7 +19,7 @@
19
19
 
20
20
  ```
21
21
  ├── client/src/ # 前端代码
22
- │ ├── main.tsx # 入口(Provider 层级 + 样式引入,勿修改)
22
+ │ ├── index.tsx # 入口(Provider 层级 + 样式引入,勿修改)
23
23
  │ ├── app.tsx # 路由配置
24
24
  │ ├── index.css # 全局样式 + 主题变量
25
25
  │ ├── api/ # API 请求封装
@@ -218,7 +218,7 @@ export default function DashboardPage() {
218
218
  </Route>
219
219
  ```
220
220
 
221
- > **注意:** `BrowserRouter` 已在 `main.tsx` 中统一配置,`app.tsx` 中**禁止**再包裹 `BrowserRouter`,否则会报嵌套 Router 错误。
221
+ > **注意:** `BrowserRouter` 已在 `index.tsx` 中统一配置,`app.tsx` 中**禁止**再包裹 `BrowserRouter`,否则会报嵌套 Router 错误。
222
222
 
223
223
  **新增页面步骤:**
224
224
 
@@ -9,6 +9,6 @@
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
12
- <script type="module" src="/src/main.tsx"></script>
12
+ <script type="module" src="/src/index.tsx"></script>
13
13
  </body>
14
14
  </html>
@@ -16,7 +16,7 @@
16
16
 
17
17
  ```
18
18
  client/src/
19
- ├── main.tsx # 入口(Provider 层级 + 样式引入,勿修改)
19
+ ├── index.tsx # 入口(Provider 层级 + 样式引入,勿修改)
20
20
  ├── app.tsx # 路由配置
21
21
  ├── index.css # 全局样式 + 主题变量
22
22
  ├── components/ # 基础 UI 组件(禁止存放业务组件)
@@ -113,7 +113,7 @@ export default function App() {
113
113
  }
114
114
  ```
115
115
 
116
- > **注意:** `BrowserRouter` 已在 `main.tsx` 中统一配置,`app.tsx` 中**禁止**再包裹 `BrowserRouter`,否则会报嵌套 Router 错误。
116
+ > **注意:** `BrowserRouter` 已在 `index.tsx` 中统一配置,`app.tsx` 中**禁止**再包裹 `BrowserRouter`,否则会报嵌套 Router 错误。
117
117
 
118
118
  **新增页面步骤:**
119
119
 
@@ -9,6 +9,6 @@
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
12
- <script type="module" src="/src/main.tsx"></script>
12
+ <script type="module" src="/src/index.tsx"></script>
13
13
  </body>
14
14
  </html>