Skip to content

Commit

Permalink
refactor: migrate to React Router and Mantine
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougley committed Dec 2, 2024
1 parent 33fdef4 commit 6e4dea8
Show file tree
Hide file tree
Showing 83 changed files with 5,430 additions and 4,542 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"editor.formatOnSave": true,
"eslint.format.enable": false,
"sqltools.useNodeRuntime": true,
"cssVariables.lookupFiles": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"**/node_modules/@mantine/core/styles.css"
],
"sqltools.connections": [
{
"previewLimit": 50,
Expand Down
6 changes: 3 additions & 3 deletions apps/discord-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"@discord-interactions/builders": "^0.3.18",
"@discord-interactions/core": "^0.3.23",
"@dougley/frugal-savestate": "workspace:^",
"@sentry/cloudflare": "^8.34.0",
"hono": "^4.6.4",
"@sentry/cloudflare": "^8.41.0",
"hono": "^4.6.12",
"kysely": "catalog:",
"kysely-d1": "catalog:"
},
"devDependencies": {
"@cloudflare/workers-types": "catalog:",
"@dougley/tsconfig": "workspace:^",
"@dougley/types": "workspace:^",
"better-sqlite3": "^11.3.0",
"better-sqlite3": "^11.6.0",
"wrangler": "catalog:"
}
}
6 changes: 3 additions & 3 deletions apps/discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"@cloudflare/workers-types": "catalog:",
"@dougley/tsconfig": "workspace:^",
"@dougley/types": "workspace:^",
"@sentry/esbuild-plugin": "^2.22.5",
"better-sqlite3": "11.3.0",
"@sentry/esbuild-plugin": "^2.22.6",
"better-sqlite3": "11.6.0",
"dotenv": "^16.4.5",
"esbuild": "^0.24.0",
"miniflare": "^3.20241004.0",
"miniflare": "^3.20241106.1",
"rimraf": "^6.0.1",
"slash-up": "^1.4.2",
"wrangler": "catalog:"
Expand Down
2 changes: 2 additions & 0 deletions apps/web-new/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules

# Sentry Config File
.env.sentry-build-plugin

.react-router/
2 changes: 1 addition & 1 deletion apps/web-new/app/.server/wikis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getWikis = async (): Promise<WikiMeta[]> => {
"../routes/wiki.*.mdx",
{ eager: true },
);
const build = await import("virtual:remix/server-build");
const build = await import('virtual:react-router/server-build');
const wikis = Object.entries(modules).map(([file, wiki]) => {
let id = file.replace("../", "").replace(/\.mdx$/, "");
let slug = build.routes[id].path;
Expand Down
245 changes: 0 additions & 245 deletions apps/web-new/app/components/Callout.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"use client";

import { Button, Group, useMantineColorScheme } from "@mantine/core";

export function ColorSchemeToggle() {
const { setColorScheme } = useMantineColorScheme();

return (
<Group justify="center" mt="xl">
<Button onClick={() => setColorScheme("light")}>Light</Button>
<Button onClick={() => setColorScheme("dark")}>Dark</Button>
<Button onClick={() => setColorScheme("auto")}>Auto</Button>
</Group>
);
}
71 changes: 0 additions & 71 deletions apps/web-new/app/components/Document.tsx

This file was deleted.

Loading

0 comments on commit 6e4dea8

Please sign in to comment.