mirror of
https://github.com/jason5ng32/MyIP.git
synced 2026-11-04 08:55:47 +00:00
Improvements
This commit is contained in:
1 parent
552cb7b2ae
commit
8a80724855
13 files changed
+12
-12
No files matched your search
@@ -95,7 +95,7 @@ import countryLookup from 'country-code-lookup';
|
||||
import { JnTooltip } from '@/components/ui/tooltip';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { useStatusTone } from '@/composables/use-status-tone.js';
|
||||
import { Building2, ChevronRight, HeartPulse, MapPin, RotateCw } from 'lucide-vue-next';
|
||||
import { Icon } from '@iconify/vue';
|
||||
|
||||
@@ -147,7 +147,7 @@ import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import { isValidIP } from '@/utils/valid-ip.js';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import SpeedTestEngine from '@cloudflare/speedtest';
|
||||
import useSpeedTestCharts from '@/utils/use-speedtest-charts.js';
|
||||
import { JnTooltip } from '@/components/ui/tooltip';
|
||||
@@ -263,7 +263,7 @@ const connectionMethods = {
|
||||
|
||||
if (!isValidIP(ip)) throw new Error('Invalid IP from SpeedTest Server');
|
||||
|
||||
const { default: getColoCountry } = await import('@/utils/speedtest-colos.js');
|
||||
const { default: getColoCountry } = await import('@/data/speedtest-colos.js');
|
||||
|
||||
return {
|
||||
ip, colo, loc,
|
||||
|
||||
@@ -81,7 +81,7 @@ import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import { transformDataFromIPapi } from '@/utils/transform-ip-data.js';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { JnTooltip } from '@/components/ui/tooltip';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
@@ -66,7 +66,7 @@ import { ref, computed, h } from 'vue';
|
||||
import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { InputGroup } from '@/components/ui/input-group';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
@@ -100,7 +100,7 @@ import { ref, computed } from 'vue';
|
||||
import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '@/components/ui/select';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
|
||||
@@ -87,7 +87,7 @@ import { ref, computed } from 'vue';
|
||||
import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { CircleCheck, CircleX, Factory, ListChecks } from 'lucide-vue-next';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { InputGroup } from '@/components/ui/input-group';
|
||||
|
||||
@@ -65,7 +65,7 @@ import { ref, computed } from 'vue';
|
||||
import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { trackEvent } from '@/utils/use-analytics';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '@/components/ui/accordion';
|
||||
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '@/components/ui/select';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
import { ref, computed, onMounted, watch } from 'vue';
|
||||
import { useMainStore } from '@/store';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useMainStore } from '@/store';
|
||||
import { computed } from 'vue';
|
||||
import getCountryName from '@/utils/country-name.js';
|
||||
import getCountryName from '@/data/country-name.js';
|
||||
import DataPairBar from './DataPairBar.vue';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Icon } from '@iconify/vue';
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { describe, it } from 'node:test';
|
||||
|
||||
import getCountryName from '../frontend/utils/country-name.js';
|
||||
import getCountryName from '../frontend/data/country-name.js';
|
||||
|
||||
describe('getCountryName(abbr, lang)', () => {
|
||||
it('returns English name for known code', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { describe, it } from 'node:test';
|
||||
|
||||
import getColoCountry from '../frontend/utils/speedtest-colos.js';
|
||||
import getColoCountry from '../frontend/data/speedtest-colos.js';
|
||||
|
||||
describe('getColoCountry(abbr)', () => {
|
||||
it('returns country + city for a known Cloudflare PoP', () => {
|
||||
|
||||
Reference in new issue
Block a user