@lark-apaas/coding-templates 0.1.35-alpha.1 → 0.1.35-alpha.2
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 +1 -1
- package/template-apex/client/src/app.tsx +7 -9
- package/template-apex/client/src/main.tsx +6 -3
- package/template-apex/package.json +2 -2
- package/template-vite-react/client/src/app.tsx +7 -9
- package/template-vite-react/client/src/main.tsx +6 -3
- package/template-vite-react/package.json +1 -1
- package/template-apex/package-lock.json +0 -11958
- package/template-vite-react/package-lock.json +0 -10316
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Routes, Route } from "react-router-dom";
|
|
2
2
|
import { Layout } from "@/components/layout";
|
|
3
3
|
import HomePage from "@/pages/HomePage/HomePage";
|
|
4
4
|
import NotFoundPage from "@/pages/NotFoundPage/NotFoundPage";
|
|
5
5
|
|
|
6
6
|
export default function App() {
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<Route element={<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</Routes>
|
|
15
|
-
</BrowserRouter>
|
|
8
|
+
<Routes>
|
|
9
|
+
<Route element={<Layout />}>
|
|
10
|
+
<Route index element={<HomePage />} />
|
|
11
|
+
<Route path="*" element={<NotFoundPage />} />
|
|
12
|
+
</Route>
|
|
13
|
+
</Routes>
|
|
16
14
|
);
|
|
17
15
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { StrictMode } from "react";
|
|
2
2
|
import { createRoot } from "react-dom/client";
|
|
3
|
+
import { BrowserRouter } from "react-router-dom";
|
|
3
4
|
import { AppContainer } from "@lark-apaas/client-toolkit-lite";
|
|
4
5
|
import App from "./app";
|
|
5
6
|
import "./index.css";
|
|
6
7
|
|
|
7
8
|
createRoot(document.getElementById("root")!).render(
|
|
8
9
|
<StrictMode>
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
10
|
+
<BrowserRouter basename={process.env.CLIENT_BASE_PATH || "/"}>
|
|
11
|
+
<AppContainer>
|
|
12
|
+
<App />
|
|
13
|
+
</AppContainer>
|
|
14
|
+
</BrowserRouter>
|
|
12
15
|
</StrictMode>,
|
|
13
16
|
);
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@radix-ui/react-toggle": "^1.1.9",
|
|
49
49
|
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
50
50
|
"@radix-ui/react-tooltip": "^1.1.18",
|
|
51
|
-
"@lark-apaas/client-toolkit-lite": "^1.1.0-alpha.
|
|
52
|
-
"@lark-apaas/express-core": "^0.0.
|
|
51
|
+
"@lark-apaas/client-toolkit-lite": "^1.1.0-alpha.1",
|
|
52
|
+
"@lark-apaas/express-core": "^0.0.10-alpha.0",
|
|
53
53
|
"@formkit/auto-animate": "^0.9.0",
|
|
54
54
|
"framer-motion": "^12.38.0",
|
|
55
55
|
"class-variance-authority": "^0.7.1",
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Routes, Route } from "react-router-dom";
|
|
2
2
|
import { Layout } from "@/components/layout";
|
|
3
3
|
import HomePage from "@/pages/HomePage/HomePage";
|
|
4
4
|
import NotFoundPage from "@/pages/NotFoundPage/NotFoundPage";
|
|
5
5
|
|
|
6
6
|
export default function App() {
|
|
7
7
|
return (
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<Route element={<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</Routes>
|
|
15
|
-
</BrowserRouter>
|
|
8
|
+
<Routes>
|
|
9
|
+
<Route element={<Layout />}>
|
|
10
|
+
<Route index element={<HomePage />} />
|
|
11
|
+
<Route path="*" element={<NotFoundPage />} />
|
|
12
|
+
</Route>
|
|
13
|
+
</Routes>
|
|
16
14
|
);
|
|
17
15
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { StrictMode } from "react";
|
|
2
2
|
import { createRoot } from "react-dom/client";
|
|
3
|
+
import { BrowserRouter } from "react-router-dom";
|
|
3
4
|
import { AppContainer } from "@lark-apaas/client-toolkit-lite";
|
|
4
5
|
import App from "./app";
|
|
5
6
|
import "./index.css";
|
|
6
7
|
|
|
7
8
|
createRoot(document.getElementById("root")!).render(
|
|
8
9
|
<StrictMode>
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
10
|
+
<BrowserRouter basename={process.env.CLIENT_BASE_PATH || "/"}>
|
|
11
|
+
<AppContainer>
|
|
12
|
+
<App />
|
|
13
|
+
</AppContainer>
|
|
14
|
+
</BrowserRouter>
|
|
12
15
|
</StrictMode>,
|
|
13
16
|
);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@radix-ui/react-toggle": "^1.1.9",
|
|
44
44
|
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
45
45
|
"@radix-ui/react-tooltip": "^1.1.18",
|
|
46
|
-
"@lark-apaas/client-toolkit-lite": "^1.1.0-alpha.
|
|
46
|
+
"@lark-apaas/client-toolkit-lite": "^1.1.0-alpha.1",
|
|
47
47
|
"@formkit/auto-animate": "^0.9.0",
|
|
48
48
|
"framer-motion": "^12.38.0",
|
|
49
49
|
"class-variance-authority": "^0.7.1",
|