Skip to content

Commit

Permalink
Revert all Tanstack router stuff
Browse files Browse the repository at this point in the history
Revert "start file-based routing"

This reverts commit cc8038f.

Revert "start tanstack router experimentation"

This reverts commit 4ffdccd.
  • Loading branch information
n3dst4 committed Jun 4, 2024
1 parent cc8038f commit f7d1c1e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 843 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
"dependencies": {
"@lumphammer/shared-fvtt-bits": "workspace:^",
"@monaco-editor/react": "^4.6.0",
"@tanstack/react-router": "^1.34.9",
"@tanstack/router-devtools": "^1.34.9",
"@tanstack/router-vite-plugin": "^1.34.8",
"case": "^1.6.3",
"d3-ease": "^3.0.1",
"html-escaper": "^3.0.3",
Expand Down
674 changes: 0 additions & 674 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions src/components/Link.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions src/components/settings/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { RouterProvider } from "@tanstack/react-router";
import React, { useCallback } from "react";

import { settingsSaved } from "../../constants";
import { confirmADoodleDo } from "../../functions/confirmADoodleDo";
import { assertGame } from "../../functions/utilities";
import { useTheme } from "../../hooks/useTheme";
import { router } from "../../router";
import { settings } from "../../settings/settings";
import { absoluteCover } from "../absoluteCover";
import { CSSReset } from "../CSSReset";
Expand Down Expand Up @@ -112,12 +110,6 @@ export const Settings: React.FC<SettingsProps> = ({ foundryApplication }) => {
label: "Misc",
content: <MiscSettings setters={setters} />,
},
{
id: "router",
label: "Router",

content: <RouterProvider router={router} />,
},
]}
/>
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/components/settings/Stats/StatsSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import React from "react";

import { absoluteCover } from "../../absoluteCover";
// import { InputGrid } from "../../inputs/InputGrid";
import { InputGrid } from "../../inputs/InputGrid";
import { TabContainer } from "../../TabContainer";
import { StatsSettingsEditor } from "./StatsSettingsEditor";

export const StatsSettings: React.FC = () => {
const idx = 0;

return (
<div
css={{
...absoluteCover,
margin: "1em",
// backgroundColor: "rgba(0, 0, 0, 0.5)",
col,
}}
>
<TabContainer
Expand Down
78 changes: 0 additions & 78 deletions src/routeTree.gen.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/router.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/routes/__root.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions src/routes/index.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/routes/investigator/settings/cards/index.tsx

This file was deleted.

21 changes: 6 additions & 15 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/// <reference types="vitest" />
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
import react from "@vitejs/plugin-react-swc";
import fs from "fs";
import path from "path";
import { visualizer } from "rollup-plugin-visualizer";
import type { HttpProxy, PluginOption } from "vite";
import { defineConfig } from "vite";
// import { visualizer } from "rollup-plugin-visualizer";
import checker from "vite-plugin-checker";

import { id as name } from "./public/system.json";
Expand Down Expand Up @@ -216,11 +215,11 @@ const config = defineConfig(({ mode }) => {
)}"`,
},
}),
visualizer({
gzipSize: true,
template: "treemap",
filename: "stats/treemap.html",
}),
// visualizer({
// gzipSize: true,
// template: "treemap",
// filename: "stats/treemap.html",
// }),
// visualizer({
// gzipSize: true,
// template: "sunburst",
Expand All @@ -231,14 +230,6 @@ const config = defineConfig(({ mode }) => {
// template: "network",
// filename: "stats/network.html",
// }),
mode === "test"
? null
: TanStackRouterVite({
routesDirectory: "./src/routes",
generatedRouteTree: "./src/routeTree.gen.ts",
routeFileIgnorePrefix: "-",
quoteStyle: "double",
}),
pluginWatchNodeModules(["@lumphammer/shared-fvtt-bits"]),
],
};
Expand Down

0 comments on commit f7d1c1e

Please sign in to comment.