@xyd-js/cli 0.1.0-xyd.24 → 0.1.0-xyd.25
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/.cli/app/root.tsx +23 -0
- package/.cli/app/routes.ts +5 -0
- package/.cli/bin.js +3 -0
- package/.cli/index.d.ts +1 -0
- package/.cli/index.js +24940 -0
- package/.cli/package.json +37 -0
- package/.cli/plugins/xyd-plugin-zero/src/pages/api-reference.tsx +293 -0
- package/.cli/plugins/xyd-plugin-zero/src/pages/docs.tsx +175 -0
- package/.cli/plugins/xyd-plugin-zero/src/pages/root.tsx +37 -0
- package/.cli/pnpm-lock.yaml +4425 -0
- package/.cli/postcss.config.cjs +5 -0
- package/.cli/react-router.config.ts +8 -0
- package/.cli/tsconfig.json +22 -0
- package/.cli/vite.config.ts +9 -0
- package/package.json +7 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
|
|
2
|
+
|
|
3
|
+
export function Layout({ children }: { children: React.ReactNode }) {
|
|
4
|
+
return (
|
|
5
|
+
<html lang="en">
|
|
6
|
+
<head>
|
|
7
|
+
<meta charSet="utf-8" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
|
+
<Meta />
|
|
10
|
+
<Links />
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
{children}
|
|
14
|
+
<ScrollRestoration />
|
|
15
|
+
<Scripts />
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default function App() {
|
|
22
|
+
return <Outlet />;
|
|
23
|
+
}
|
package/.cli/bin.js
ADDED
package/.cli/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|