mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-31 16:26:30 +00:00
feat: add usage IP geolocation lookup
This commit is contained in:
@@ -155,6 +155,7 @@
|
||||
default-sort-key="created_at"
|
||||
default-sort-order="desc"
|
||||
@sort="handleSort"
|
||||
@ipGeoBatchFailed="handleIpGeoBatchFailed"
|
||||
/>
|
||||
|
||||
<Pagination
|
||||
@@ -514,6 +515,10 @@ const handleSort = (key: string, order: 'asc' | 'desc') => {
|
||||
void loadLogs()
|
||||
}
|
||||
|
||||
const handleIpGeoBatchFailed = () => {
|
||||
appStore.showError(t('usage.ipGeo.batchFailed'))
|
||||
}
|
||||
|
||||
const getRequestTypeExportText = (log: UsageLog): string => {
|
||||
const requestType = resolveUsageRequestType(log)
|
||||
if (requestType === 'cyber') return 'Cyber'
|
||||
|
||||
Reference in New Issue
Block a user