Skip to content

Commit fe9404b

Browse files
rsbhclaude
andauthored
chore(web): remove unused custom-fetch and dead fetcher utility (#1523)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b23ef6c commit fe9404b

6 files changed

Lines changed: 3 additions & 574 deletions

File tree

web/apps/admin/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"dev": "vite",
88
"build": "tsc && vite build",
99
"preview": "vite preview",
10-
"lint": "eslint \"./**/*.ts*\"",
11-
"build:client": "node scripts/gen-swagger-client.mjs"
10+
"lint": "eslint \"./**/*.ts*\""
1211
},
1312
"dependencies": {
1413
"@bufbuild/protobuf": "^2.11.0",
@@ -51,7 +50,6 @@
5150
"@types/react-dom": "^19.0.0",
5251
"@vitejs/plugin-react-swc": "^3.0.0",
5352
"eslint": "^8.56.0",
54-
"swagger-typescript-api": "^13.0.23",
5553
"typescript": "^5.8.2",
5654
"vite": "^4.5.9",
5755
"vite-plugin-svgr": "^4.3.0"

web/apps/admin/scripts/gen-swagger-client.mjs

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

web/apps/admin/src/utils/helper.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ export const capitalizeFirstLetter = (str: string) => {
4545
return str.charAt(0).toUpperCase() + str.slice(1);
4646
};
4747

48-
// @ts-ignore
49-
export const fetcher = (...args) => fetch(...args).then(res => res.json());
50-
5148
export const keyToColumnMetaObject = (key: any) =>
5249
({ key: key, name: key, value: key } as TableColumnMetadata);
5350

web/apps/client-demo/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import config from '@/config/frontier';
22
import AuthContextProvider from '@/contexts/auth/provider';
3-
import { customFetch } from '@/utils/custom-fetch';
43
import { FrontierProvider } from '@raystack/frontier/react';
54
import Router from './Router';
65
import { v4 as uuid } from 'uuid';
@@ -15,7 +14,6 @@ function App() {
1514
return (
1615
<FrontierProvider
1716
config={config}
18-
customFetch={customFetch}
1917
customHeaders={customHeaders}
2018
>
2119
<AuthContextProvider>

web/apps/client-demo/src/utils/custom-fetch.ts

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

0 commit comments

Comments
 (0)