refactor: add in refine
This commit is contained in:
parent
0ba128b135
commit
2f53b37775
59
app/root.tsx
59
app/root.tsx
|
@ -1,44 +1,53 @@
|
||||||
import {
|
import {
|
||||||
Links,
|
Links,
|
||||||
Meta,
|
Meta,
|
||||||
Outlet,
|
Outlet,
|
||||||
Scripts,
|
Scripts,
|
||||||
ScrollRestoration,
|
ScrollRestoration,
|
||||||
} from "@remix-run/react";
|
} from "@remix-run/react";
|
||||||
|
|
||||||
import stylesheet from "./tailwind.css?url";
|
import stylesheet from "./tailwind.css?url";
|
||||||
import { LinksFunction } from "@remix-run/node";
|
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 }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charSet="utf-8" />
|
<meta charSet="utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
<Meta />
|
<Meta/>
|
||||||
<Links />
|
<Links/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{children}
|
{children}
|
||||||
<ScrollRestoration />
|
<ScrollRestoration/>
|
||||||
<Scripts />
|
<Scripts/>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return <Outlet />;
|
return (
|
||||||
|
<Refine
|
||||||
|
authProvider={authProvider}
|
||||||
|
routerProvider={routerProvider}
|
||||||
|
>
|
||||||
|
<Outlet/>
|
||||||
|
</Refine>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function HydrateFallback() {
|
export function HydrateFallback() {
|
||||||
return <p>Loading...</p>;
|
return <p>Loading...</p>;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
122
package.json
122
package.json
|
@ -1,62 +1,64 @@
|
||||||
{
|
{
|
||||||
"name": "lume-portal-dashboard",
|
"name": "lume-portal-dashboard",
|
||||||
"private": true,
|
"private": true,
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "remix vite:build",
|
"build": "remix vite:build",
|
||||||
"dev": "remix vite:dev",
|
"dev": "remix vite:dev",
|
||||||
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
|
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@conform-to/react": "^1.0.2",
|
"@conform-to/react": "^1.0.2",
|
||||||
"@conform-to/zod": "^1.0.2",
|
"@conform-to/zod": "^1.0.2",
|
||||||
"@fontsource-variable/manrope": "^5.0.19",
|
"@fontsource-variable/manrope": "^5.0.19",
|
||||||
"@lumeweb/portal-sdk": "^0.0.0-20240306231947",
|
"@lumeweb/portal-sdk": "^0.0.0-20240306231947",
|
||||||
"@radix-ui/react-checkbox": "^1.0.4",
|
"@radix-ui/react-checkbox": "^1.0.4",
|
||||||
"@radix-ui/react-dialog": "^1.0.5",
|
"@radix-ui/react-dialog": "^1.0.5",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
"@radix-ui/react-label": "^2.0.2",
|
"@radix-ui/react-label": "^2.0.2",
|
||||||
"@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",
|
||||||
"@remix-run/node": "^2.8.0",
|
"@refinedev/devtools-shared": "https://gitpkg.now.sh/LumeWeb/refine/packages/devtools-shared?remix",
|
||||||
"@remix-run/react": "^2.8.0",
|
"@refinedev/remix-router": "https://gitpkg.now.sh/LumeWeb/refine/packages/remix?remix",
|
||||||
"@uppy/core": "^3.9.3",
|
"@remix-run/node": "^2.8.0",
|
||||||
"@uppy/tus": "^3.5.3",
|
"@remix-run/react": "^2.8.0",
|
||||||
"@uppy/utils": "^5.7.4",
|
"@uppy/core": "^3.9.3",
|
||||||
"class-variance-authority": "^0.7.0",
|
"@uppy/tus": "^3.5.3",
|
||||||
"clsx": "^2.1.0",
|
"@uppy/utils": "^5.7.4",
|
||||||
"react": "^18.2.0",
|
"class-variance-authority": "^0.7.0",
|
||||||
"react-dom": "^18.2.0",
|
"clsx": "^2.1.0",
|
||||||
"tailwind-merge": "^2.2.1",
|
"react": "^18.2.0",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"react-dom": "^18.2.0",
|
||||||
"zod": "^3.22.4"
|
"tailwind-merge": "^2.2.1",
|
||||||
},
|
"tailwindcss-animate": "^1.0.7",
|
||||||
"devDependencies": {
|
"zod": "^3.22.4"
|
||||||
"@remix-run/dev": "^2.8.0",
|
},
|
||||||
"@types/react": "^18.2.20",
|
"devDependencies": {
|
||||||
"@types/react-dom": "^18.2.7",
|
"@remix-run/dev": "^2.8.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
"@types/react": "^18.2.20",
|
||||||
"@typescript-eslint/parser": "^6.7.4",
|
"@types/react-dom": "^18.2.7",
|
||||||
"autoprefixer": "^10.4.18",
|
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
||||||
"eslint": "^8.38.0",
|
"@typescript-eslint/parser": "^6.7.4",
|
||||||
"eslint-import-resolver-typescript": "^3.6.1",
|
"autoprefixer": "^10.4.18",
|
||||||
"eslint-plugin-import": "^2.28.1",
|
"eslint": "^8.38.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-import": "^2.28.1",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||||
"tailwindcss": "^3.4.1",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"typescript": "^5.1.6",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"vite": "^5.1.0",
|
"tailwindcss": "^3.4.1",
|
||||||
"vite-tsconfig-paths": "^4.2.1"
|
"typescript": "^5.1.6",
|
||||||
},
|
"vite": "^5.1.0",
|
||||||
"engines": {
|
"vite-tsconfig-paths": "^4.2.1"
|
||||||
"node": ">=18.0.0"
|
},
|
||||||
},
|
"engines": {
|
||||||
"packageManager": "npm"
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
|
"packageManager": "npm"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue