refactor: add in refine

This commit is contained in:
Derrick Hammer 2024-03-13 09:38:01 -04:00
parent 0ba128b135
commit 2f53b37775
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 18558 additions and 18541 deletions

View File

@ -11,10 +11,12 @@ import { LinksFunction } from "@remix-run/node";
// Supports weights 200-800 // Supports weights 200-800
import '@fontsource-variable/manrope'; 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 = () => [ export const links: LinksFunction = () => [
{rel: "stylesheet", href: stylesheet}, {rel: "stylesheet", href: stylesheet},
// { rel: "stylesheet", href: manropeStylesheet },
]; ];
export function Layout({children}: { children: React.ReactNode }) { export function Layout({children}: { children: React.ReactNode }) {
@ -36,7 +38,14 @@ export function Layout({ children }: { children: React.ReactNode }) {
} }
export default function App() { export default function App() {
return <Outlet />; return (
<Refine
authProvider={authProvider}
routerProvider={routerProvider}
>
<Outlet/>
</Refine>
);
} }
export function HydrateFallback() { export function HydrateFallback() {

26
package-lock.json generated
View File

@ -17,8 +17,10 @@
"@radix-ui/react-progress": "^1.0.3", "@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-slot": "^1.0.2",
"@refinedev/cli": "^2.16.1", "@refinedev/cli": "^2.16.1",
"@refinedev/core": "^4.47.2", "@refinedev/core": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
"@refinedev/remix-router": "^3.0.0", "@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/node": "^2.8.0",
"@remix-run/react": "^2.8.0", "@remix-run/react": "^2.8.0",
"@uppy/core": "^3.9.3", "@uppy/core": "^3.9.3",
@ -4097,8 +4099,9 @@
}, },
"node_modules/@refinedev/core": { "node_modules/@refinedev/core": {
"version": "4.48.0", "version": "4.48.0",
"resolved": "https://registry.npmjs.org/@refinedev/core/-/core-4.48.0.tgz", "resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
"integrity": "sha512-rJWtP8jFkBmNzibUBIAYKapjC2MOYuu3xCxPEhtZJY2qCxwbVSxBsDKiCFe5fd84+EuJr7sqjFPujJdhKrK57g==", "integrity": "sha512-0wIKMpx/Uyz1RfcL6pOA5Y9G9WADWVfL8alBrU5Dgv4f033mGRi3Fz/RJSzje0CYw9BMmSy3TTkLpN/nV0u9tg==",
"license": "MIT",
"dependencies": { "dependencies": {
"@refinedev/devtools-internal": "1.1.6", "@refinedev/devtools-internal": "1.1.6",
"@tanstack/react-query": "^4.10.1", "@tanstack/react-query": "^4.10.1",
@ -4120,8 +4123,9 @@
}, },
"node_modules/@refinedev/devtools-internal": { "node_modules/@refinedev/devtools-internal": {
"version": "1.1.6", "version": "1.1.6",
"resolved": "https://registry.npmjs.org/@refinedev/devtools-internal/-/devtools-internal-1.1.6.tgz", "resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-internal?remix",
"integrity": "sha512-5RMv8euyngJDJGyPa97o2d/h9qKZGvIzIjBbnjm0+teO6+Q9ADPCIOVwtC0ZgqEiEQMmPS8k+qD7UZuFJStIHg==", "integrity": "sha512-mh6d2v9YXnX3m1uNYNSqPUfHlLYiFZcYgKYnM1PCZqqYWNgIaECHL5kggI1tCs3FrIMq5MTlNIE8dtzin4xayA==",
"license": "MIT",
"dependencies": { "dependencies": {
"@refinedev/devtools-shared": "1.1.4", "@refinedev/devtools-shared": "1.1.4",
"@tanstack/react-query": "^4.10.1", "@tanstack/react-query": "^4.10.1",
@ -4181,8 +4185,9 @@
}, },
"node_modules/@refinedev/devtools-shared": { "node_modules/@refinedev/devtools-shared": {
"version": "1.1.4", "version": "1.1.4",
"resolved": "https://registry.npmjs.org/@refinedev/devtools-shared/-/devtools-shared-1.1.4.tgz", "resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-shared?remix",
"integrity": "sha512-YMVRGVmck0UyV5UoIW82EMCSFm2E1ejjXYWzqTiaiZgU5tbLR4NZf8W10enyxtCLzUPONFF5uvFc6tMleodXYA==", "integrity": "sha512-/qR1KXPIlwIv0kh9XRGWWlQ4gHytY2ElrBTSlqhzB08DYf4PtfRbCyZ3yMc5lfbK3DG2/8UH2ZbAjxH6hSMzmg==",
"license": "MIT",
"dependencies": { "dependencies": {
"@tanstack/react-query": "^4.10.1", "@tanstack/react-query": "^4.10.1",
"error-stack-parser": "^2.1.4" "error-stack-parser": "^2.1.4"
@ -4263,8 +4268,9 @@
}, },
"node_modules/@refinedev/remix-router": { "node_modules/@refinedev/remix-router": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/@refinedev/remix-router/-/remix-router-3.0.1.tgz", "resolved": "https://gitpkg.now.sh/LumeWeb/refine/packages/remix?remix",
"integrity": "sha512-B34R9fGxmi5qY87SqGIvhhuboUf69+qeNeNP+/BLWjBaOs54SUBWgsY1n20z+eovNg2H66PbY+9KR6rOSM5S/A==", "integrity": "sha512-K5hryW2aOqCjcVx4IbWJoBrzWUd51MBqjxgjaOruLz1U45ArVY+P3uJB/A/jtg+zUIgQT4WkCyoJGfokV2To0g==",
"license": "MIT",
"dependencies": { "dependencies": {
"qs": "^6.10.1" "qs": "^6.10.1"
}, },

View File

@ -22,8 +22,10 @@
"@radix-ui/react-progress": "^1.0.3", "@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-slot": "^1.0.2",
"@refinedev/cli": "^2.16.1", "@refinedev/cli": "^2.16.1",
"@refinedev/core": "^4.47.2", "@refinedev/core": "https://gitpkg.now.sh/LumeWeb/refine/packages/core?remix",
"@refinedev/remix-router": "^3.0.0", "@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/node": "^2.8.0",
"@remix-run/react": "^2.8.0", "@remix-run/react": "^2.8.0",
"@uppy/core": "^3.9.3", "@uppy/core": "^3.9.3",