Skip to content

Commit 2f0e431

Browse files
committed
Discard axios
1 parent 8d4fa16 commit 2f0e431

7 files changed

Lines changed: 3 additions & 240 deletions

File tree

package-lock.json

Lines changed: 3 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"@mdi/react": "^1.2.1",
130130
"@stripe/react-stripe-js": "^1.2.0",
131131
"@stripe/stripe-js": "^1.11.0",
132-
"axios": "^0.21.1",
133132
"chart.js": "^2.9.4",
134133
"classcat": "^4.0.2",
135134
"codemirror": "^5.59.2",

src/cloud/components/atoms/ErrorBlock.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect, useState } from 'react'
2-
import { AxiosError } from 'axios'
32
import ColoredBlock from './ColoredBlock'
43
import { nodeEnv } from '../../lib/consts'
54
import ky from 'ky'
@@ -56,16 +55,5 @@ export async function getErrorMessage(error: unknown): Promise<string> {
5655
return message
5756
}
5857

59-
if (isAxiosError(error)) {
60-
return error.response!.data
61-
}
62-
6358
return typeof error === 'string' ? error : (error as Error).message
6459
}
65-
66-
function isAxiosError(error: unknown): error is AxiosError {
67-
if ((error as AxiosError).response != null) {
68-
return true
69-
}
70-
return false
71-
}

src/cloud/lib/oauth/github.ts

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

src/cloud/lib/oauth/index.ts

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

src/cloud/lib/oauth/slack.ts

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

src/cloud/lib/oauth/vercel.ts

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

0 commit comments

Comments
 (0)