Skip to content

Commit bee8298

Browse files
committed
chore: remove useless deps
1 parent e29a980 commit bee8298

File tree

4 files changed

+2
-116
lines changed

4 files changed

+2
-116
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@tanstack/vue-query": "^5.28.7",
1312
"@vueuse/core": "^10.7.2",
14-
"axios": "^1.6.8",
1513
"gsap": "^3.12.5",
1614
"pinia": "^2.1.7",
1715
"vue": "^3.4.15",

pnpm-lock.yaml

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

src/components/faucet/FaucetDetail.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import { onMounted, ref, reactive, watch, nextTick } from 'vue'
2323
import { gsap } from 'gsap'
2424
import { Vue3Lottie } from 'vue3-lottie'
25-
import axios from 'axios'
2625
2726
import FaucetContentForm from './content/FaucetContentForm.vue'
2827
import FaucetContentRequest from './content/FaucetContentRequest.vue'
@@ -31,8 +30,6 @@ import GnoJSON from '@/assets/lottie/logo.json'
3130
3231
import { useFaucetDetail } from '@/stores/faucetDetail'
3332
34-
import { Request, FaucetResponse } from '@/types'
35-
3633
const txLink = ref('')
3734
3835
const store = useFaucetDetail()
@@ -59,7 +56,7 @@ const requestFaucet = async (address: string, amount: number, secret: string) =>
5956
})
6057
gsap.to(gnoRequestLogo.value, { autoAlpha: 1, delay: 0.5 })
6158
62-
// default
59+
// min default loading timer
6360
const minTimer = new Promise((resolve) => setTimeout(resolve, 2000))
6461
6562
try {
@@ -85,7 +82,7 @@ const requestFaucet = async (address: string, amount: number, secret: string) =>
8582
error.value = faucetResponse.error.message
8683
store.contentStep = 0
8784
} else {
88-
txLink.value = faucetResponse.result ?? ''
85+
txLink.value = faucetResponse.result ?? '' //TODO: get tx link
8986
}
9087
} catch (e) {
9188
console.log('error :' + e)

src/types/index.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,3 @@ export interface Faucet {
1010
recaptcha: string // the recaptcha site key, if any
1111
token?: string // token name: default $GNOT
1212
}
13-
14-
export interface Request {
15-
to: string // recipient address
16-
amount: string // <AMOUNT>ugnot
17-
captcha: string
18-
}
19-
20-
export interface FaucetResponse {
21-
result: string //json: "result
22-
error: string //json: error,omitempty
23-
}

0 commit comments

Comments
 (0)