File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" w-100 inset-x-0 mx-auto p-2 text-center fixed bottom-10" >
3
+ <p class =" text-gray-400 text-sm" >
4
+ Current IP: {{ data?.ip }} ({{ data?.province }} {{ data?.city }} {{ data?.distinct }} {{ data?.isp }})
5
+ </p >
6
+ </div >
7
+ </template >
8
+
9
+ <script setup lang="ts">
10
+ import type { LocationInfo } from ' @/types'
11
+
12
+ const { data } = useFetch <LocationInfo >(' https://forge.speedtest.cn/api/location/info' )
13
+ </script >
Original file line number Diff line number Diff line change @@ -147,5 +147,6 @@ function onDeleteKey(row: KeyData) {
147
147
</template >
148
148
</ClientOnly >
149
149
</section >
150
+ <AppFooter />
150
151
</div >
151
152
</template >
Original file line number Diff line number Diff line change @@ -7,4 +7,12 @@ export type KeyData = {
7
7
expiryDate : string
8
8
hasGPT4 : boolean
9
9
hasPayment : boolean
10
+ }
11
+
12
+ export type LocationInfo = {
13
+ ip : string
14
+ province : string
15
+ city : string
16
+ distinct : string
17
+ isp : string
10
18
}
You can’t perform that action at this time.
0 commit comments