Skip to content

Commit 50c67bf

Browse files
authored
Merge pull request #18 from geobrowser/cleanup
cleanup unsued code and deps
2 parents 6402c67 + 71c1053 commit 50c67bf

File tree

7 files changed

+13
-603
lines changed

7 files changed

+13
-603
lines changed

apps/events/package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,26 @@
1414
"dependencies": {
1515
"@automerge/automerge": "^2.2.8",
1616
"@automerge/automerge-repo-react-hooks": "^1.2.1",
17-
"effect": "^3.10.12",
1817
"@noble/hashes": "^1.5.0",
1918
"@privy-io/react-auth": "^1.88.4",
2019
"@radix-ui/react-avatar": "^1.1.1",
2120
"@radix-ui/react-icons": "^1.3.0",
2221
"@radix-ui/react-slot": "^1.1.0",
2322
"@tanstack/react-router": "^1.62.1",
24-
"@types/libsodium-wrappers": "^0.7.14",
2523
"@xmtp/react-sdk": "^9.0.0",
2624
"@xmtp/xmtp-js": "^13.0.0",
2725
"class-variance-authority": "^0.7.0",
2826
"clsx": "^2.1.1",
27+
"effect": "^3.10.12",
2928
"ethers": "^6.13.3",
3029
"graph-framework": "workspace:*",
31-
"libsodium-wrappers": "^0.7.15",
3230
"lucide-react": "^0.441.0",
3331
"react": "^18.3.1",
3432
"react-dom": "^18.3.1",
35-
"react-yjs": "^2.0.0",
36-
"secsync": "^0.5.0",
37-
"secsync-react-devtool": "^0.5.0",
38-
"secsync-react-yjs": "^0.5.0",
3933
"tailwind-merge": "^2.5.3",
4034
"tailwindcss-animate": "^1.0.7",
41-
"tinybase": "^5.3.0",
4235
"uuid": "^10.0.0",
43-
"vite-plugin-node-polyfills": "^0.22.0",
44-
"yjs": "^13.6.19"
36+
"vite-plugin-node-polyfills": "^0.22.0"
4537
},
4638
"devDependencies": {
4739
"@eslint/js": "^9.12.0",

apps/events/src/Boot.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { PrivyProvider } from "@privy-io/react-auth";
22
import { RouterProvider, createRouter } from "@tanstack/react-router";
3-
import { ready } from "libsodium-wrappers";
4-
import { useEffect, useState } from "react";
53

64
import { routeTree } from "./routeTree.gen";
75

@@ -16,15 +14,7 @@ declare module "@tanstack/react-router" {
1614
}
1715

1816
export function Boot() {
19-
// only return the App component when the libsodium-wrappers is ready
20-
const [isReady, setIsReady] = useState(false);
21-
useEffect(() => {
22-
ready.then(() => {
23-
setIsReady(true);
24-
});
25-
}, []);
26-
27-
return isReady ? (
17+
return (
2818
<PrivyProvider
2919
appId="cm1gt9i1b002g12ih6b6l4vvi"
3020
config={{
@@ -43,5 +33,5 @@ export function Boot() {
4333
>
4434
<RouterProvider router={router} />
4535
</PrivyProvider>
46-
) : null;
36+
);
4737
}

apps/events/src/components/events-page.tsx

Lines changed: 0 additions & 86 deletions
This file was deleted.

apps/events/src/routeTree.gen.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Route as Schema2Import } from './routes/schema2'
1717
import { Route as PlaygroundImport } from './routes/playground'
1818
import { Route as IndexImport } from './routes/index'
1919
import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId'
20-
import { Route as SpaceOldSpaceIdImport } from './routes/space-old/$spaceId'
2120

2221
// Create Virtual Routes
2322

@@ -62,12 +61,6 @@ const SpaceSpaceIdRoute = SpaceSpaceIdImport.update({
6261
getParentRoute: () => rootRoute,
6362
} as any)
6463

65-
const SpaceOldSpaceIdRoute = SpaceOldSpaceIdImport.update({
66-
id: '/space-old/$spaceId',
67-
path: '/space-old/$spaceId',
68-
getParentRoute: () => rootRoute,
69-
} as any)
70-
7164
// Populate the FileRoutesByPath interface
7265

7366
declare module '@tanstack/react-router' {
@@ -107,13 +100,6 @@ declare module '@tanstack/react-router' {
107100
preLoaderRoute: typeof Login2LazyImport
108101
parentRoute: typeof rootRoute
109102
}
110-
'/space-old/$spaceId': {
111-
id: '/space-old/$spaceId'
112-
path: '/space-old/$spaceId'
113-
fullPath: '/space-old/$spaceId'
114-
preLoaderRoute: typeof SpaceOldSpaceIdImport
115-
parentRoute: typeof rootRoute
116-
}
117103
'/space/$spaceId': {
118104
id: '/space/$spaceId'
119105
path: '/space/$spaceId'
@@ -132,7 +118,6 @@ export interface FileRoutesByFullPath {
132118
'/schema2': typeof Schema2Route
133119
'/login': typeof LoginLazyRoute
134120
'/login2': typeof Login2LazyRoute
135-
'/space-old/$spaceId': typeof SpaceOldSpaceIdRoute
136121
'/space/$spaceId': typeof SpaceSpaceIdRoute
137122
}
138123

@@ -142,7 +127,6 @@ export interface FileRoutesByTo {
142127
'/schema2': typeof Schema2Route
143128
'/login': typeof LoginLazyRoute
144129
'/login2': typeof Login2LazyRoute
145-
'/space-old/$spaceId': typeof SpaceOldSpaceIdRoute
146130
'/space/$spaceId': typeof SpaceSpaceIdRoute
147131
}
148132

@@ -153,7 +137,6 @@ export interface FileRoutesById {
153137
'/schema2': typeof Schema2Route
154138
'/login': typeof LoginLazyRoute
155139
'/login2': typeof Login2LazyRoute
156-
'/space-old/$spaceId': typeof SpaceOldSpaceIdRoute
157140
'/space/$spaceId': typeof SpaceSpaceIdRoute
158141
}
159142

@@ -165,7 +148,6 @@ export interface FileRouteTypes {
165148
| '/schema2'
166149
| '/login'
167150
| '/login2'
168-
| '/space-old/$spaceId'
169151
| '/space/$spaceId'
170152
fileRoutesByTo: FileRoutesByTo
171153
to:
@@ -174,7 +156,6 @@ export interface FileRouteTypes {
174156
| '/schema2'
175157
| '/login'
176158
| '/login2'
177-
| '/space-old/$spaceId'
178159
| '/space/$spaceId'
179160
id:
180161
| '__root__'
@@ -183,7 +164,6 @@ export interface FileRouteTypes {
183164
| '/schema2'
184165
| '/login'
185166
| '/login2'
186-
| '/space-old/$spaceId'
187167
| '/space/$spaceId'
188168
fileRoutesById: FileRoutesById
189169
}
@@ -194,7 +174,6 @@ export interface RootRouteChildren {
194174
Schema2Route: typeof Schema2Route
195175
LoginLazyRoute: typeof LoginLazyRoute
196176
Login2LazyRoute: typeof Login2LazyRoute
197-
SpaceOldSpaceIdRoute: typeof SpaceOldSpaceIdRoute
198177
SpaceSpaceIdRoute: typeof SpaceSpaceIdRoute
199178
}
200179

@@ -204,7 +183,6 @@ const rootRouteChildren: RootRouteChildren = {
204183
Schema2Route: Schema2Route,
205184
LoginLazyRoute: LoginLazyRoute,
206185
Login2LazyRoute: Login2LazyRoute,
207-
SpaceOldSpaceIdRoute: SpaceOldSpaceIdRoute,
208186
SpaceSpaceIdRoute: SpaceSpaceIdRoute,
209187
}
210188

@@ -223,7 +201,6 @@ export const routeTree = rootRoute
223201
"/schema2",
224202
"/login",
225203
"/login2",
226-
"/space-old/$spaceId",
227204
"/space/$spaceId"
228205
]
229206
},
@@ -242,9 +219,6 @@ export const routeTree = rootRoute
242219
"/login2": {
243220
"filePath": "login2.lazy.tsx"
244221
},
245-
"/space-old/$spaceId": {
246-
"filePath": "space-old/$spaceId.tsx"
247-
},
248222
"/space/$spaceId": {
249223
"filePath": "space/$spaceId.tsx"
250224
}

0 commit comments

Comments
 (0)