refactor: add in refine
This commit is contained in:
parent
0ba128b135
commit
2f53b37775
31
app/root.tsx
31
app/root.tsx
|
@ -7,36 +7,45 @@ import {
|
|||
} from "@remix-run/react";
|
||||
|
||||
import stylesheet from "./tailwind.css?url";
|
||||
import { LinksFunction } from "@remix-run/node";
|
||||
import {LinksFunction} from "@remix-run/node";
|
||||
|
||||
// Supports weights 200-800
|
||||
import '@fontsource-variable/manrope';
|
||||
import {Refine} from "@refinedev/core";
|
||||
import {authProvider} from "~/data/auth-provider.js";
|
||||
import routerProvider from "@refinedev/remix-router";
|
||||
|
||||
export const links: LinksFunction = () => [
|
||||
{ rel: "stylesheet", href: stylesheet },
|
||||
// { rel: "stylesheet", href: manropeStylesheet },
|
||||
{rel: "stylesheet", href: stylesheet},
|
||||
];
|
||||
|
||||
export function Layout({ children }: { children: React.ReactNode }) {
|
||||
export function Layout({children}: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charSet="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<Meta />
|
||||
<Links />
|
||||
<meta charSet="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<Meta/>
|
||||
<Links/>
|
||||
</head>
|
||||
<body>
|
||||
{children}
|
||||
<ScrollRestoration />
|
||||
<Scripts />
|
||||
<ScrollRestoration/>
|
||||
<Scripts/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
export default function App() {
|
||||
return <Outlet />;
|
||||
return (
|
||||
<Refine
|
||||
authProvider={authProvider}
|
||||
routerProvider={routerProvider}
|
||||
>
|
||||
<Outlet/>
|
||||
</Refine>
|
||||
);
|
||||
}
|
||||
|
||||
export function HydrateFallback() {
|
||||
|
|
|
@ -17,8 +17,10 @@
|
|||
"@radix-ui/react-progress": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.0.2",
|
||||
"@refinedev/cli": "^2.16.1",
|
||||
"@refinedev/core": "^4.47.2",
|
||||
"@refinedev/remix-router": "^3.0.0",
|
||||
"@refinedev/core": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
|
||||
"@refinedev/devtools-internal": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-internal?remix",
|
||||
"@refinedev/devtools-shared": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-shared?remix",
|
||||
"@refinedev/remix-router": "https://gitpkg.now.sh/LumeWeb/refine/packages/remix?remix",
|
||||
"@remix-run/node": "^2.8.0",
|
||||
"@remix-run/react": "^2.8.0",
|
||||
"@uppy/core": "^3.9.3",
|
||||
|
@ -4097,8 +4099,9 @@
|
|||
},
|
||||
"node_modules/@refinedev/core": {
|
||||
"version": "4.48.0",
|
||||
"resolved": "https://registry.npmjs.org/@refinedev/core/-/core-4.48.0.tgz",
|
||||
"integrity": "sha512-rJWtP8jFkBmNzibUBIAYKapjC2MOYuu3xCxPEhtZJY2qCxwbVSxBsDKiCFe5fd84+EuJr7sqjFPujJdhKrK57g==",
|
||||
"resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
|
||||
"integrity": "sha512-0wIKMpx/Uyz1RfcL6pOA5Y9G9WADWVfL8alBrU5Dgv4f033mGRi3Fz/RJSzje0CYw9BMmSy3TTkLpN/nV0u9tg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@refinedev/devtools-internal": "1.1.6",
|
||||
"@tanstack/react-query": "^4.10.1",
|
||||
|
@ -4120,8 +4123,9 @@
|
|||
},
|
||||
"node_modules/@refinedev/devtools-internal": {
|
||||
"version": "1.1.6",
|
||||
"resolved": "https://registry.npmjs.org/@refinedev/devtools-internal/-/devtools-internal-1.1.6.tgz",
|
||||
"integrity": "sha512-5RMv8euyngJDJGyPa97o2d/h9qKZGvIzIjBbnjm0+teO6+Q9ADPCIOVwtC0ZgqEiEQMmPS8k+qD7UZuFJStIHg==",
|
||||
"resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-internal?remix",
|
||||
"integrity": "sha512-mh6d2v9YXnX3m1uNYNSqPUfHlLYiFZcYgKYnM1PCZqqYWNgIaECHL5kggI1tCs3FrIMq5MTlNIE8dtzin4xayA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@refinedev/devtools-shared": "1.1.4",
|
||||
"@tanstack/react-query": "^4.10.1",
|
||||
|
@ -4181,8 +4185,9 @@
|
|||
},
|
||||
"node_modules/@refinedev/devtools-shared": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@refinedev/devtools-shared/-/devtools-shared-1.1.4.tgz",
|
||||
"integrity": "sha512-YMVRGVmck0UyV5UoIW82EMCSFm2E1ejjXYWzqTiaiZgU5tbLR4NZf8W10enyxtCLzUPONFF5uvFc6tMleodXYA==",
|
||||
"resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-shared?remix",
|
||||
"integrity": "sha512-/qR1KXPIlwIv0kh9XRGWWlQ4gHytY2ElrBTSlqhzB08DYf4PtfRbCyZ3yMc5lfbK3DG2/8UH2ZbAjxH6hSMzmg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^4.10.1",
|
||||
"error-stack-parser": "^2.1.4"
|
||||
|
@ -4263,8 +4268,9 @@
|
|||
},
|
||||
"node_modules/@refinedev/remix-router": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@refinedev/remix-router/-/remix-router-3.0.1.tgz",
|
||||
"integrity": "sha512-B34R9fGxmi5qY87SqGIvhhuboUf69+qeNeNP+/BLWjBaOs54SUBWgsY1n20z+eovNg2H66PbY+9KR6rOSM5S/A==",
|
||||
"resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/remix?remix",
|
||||
"integrity": "sha512-K5hryW2aOqCjcVx4IbWJoBrzWUd51MBqjxgjaOruLz1U45ArVY+P3uJB/A/jtg+zUIgQT4WkCyoJGfokV2To0g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"qs": "^6.10.1"
|
||||
},
|
||||
|
|
|
@ -22,8 +22,10 @@
|
|||
"@radix-ui/react-progress": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.0.2",
|
||||
"@refinedev/cli": "^2.16.1",
|
||||
"@refinedev/core": "^4.47.2",
|
||||
"@refinedev/remix-router": "^3.0.0",
|
||||
"@refinedev/core": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
|
||||
"@refinedev/devtools-internal": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-internal?remix",
|
||||
"@refinedev/devtools-shared": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-shared?remix",
|
||||
"@refinedev/remix-router": "https://gitpkg.now.sh/LumeWeb/refine/packages/remix?remix",
|
||||
"@remix-run/node": "^2.8.0",
|
||||
"@remix-run/react": "^2.8.0",
|
||||
"@uppy/core": "^3.9.3",
|
||||
|
|
Loading…
Reference in New Issue