Skip to content

Commit

Permalink
Merge pull request #168 from jason5ng32/dev
Browse files Browse the repository at this point in the history
SpeedTest Improvements
  • Loading branch information
jason5ng32 authored Apr 12, 2024
2 parents 7b3e58e + d880d87 commit 0360cdc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
13 changes: 2 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,10 @@ export default {
keys: "s",
action: () => {
this.scrollToElement("SpeedTest", 80);
this.$refs.speedTestRef.refreshstartSpeedTest();
this.$refs.speedTestRef.speedTestController();
this.$trackEvent('ShortCut', 'ShortCut', 'SpeedTest');
},
description: this.$t('shortcutKeys.StartSpeedTest'),
},
{
keys: "p",
action: () => {
this.scrollToElement("SpeedTest", 80);
this.$refs.speedTestRef.pauseSpeedTest();
this.$trackEvent('ShortCut', 'ShortCut', 'SpeedTest');
},
description: this.$t('shortcutKeys.PauseSpeedTest'),
description: this.$t('shortcutKeys.SpeedTestButton'),
},
{
keys: "m",
Expand Down
7 changes: 0 additions & 7 deletions src/components/speedtest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,6 @@ export default {
};
},
// 刷新 Speed Test
refreshstartSpeedTest() {
if (this.speedTestStatus !== "running") {
this.startSpeedTest();
}
},
},
mounted() {
Expand Down
3 changes: 1 addition & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@
"RefreshConnectivityTests": "Refresh Connectivity Tests",
"RefreshWebRTC": "Refresh WebRTC Test",
"RefreshDNSLeakTest": "Refresh DNS Leak Test",
"StartSpeedTest": "Start/Continue Speed Test",
"PauseSpeedTest": "Pause Speed Test",
"SpeedTestButton": "Start/Pause Speed Test",
"ToggleMaps": "Toggle Maps",
"IPCheck": "IP Check",
"AddBingMapKey": "Add Bing Map API Key",
Expand Down
3 changes: 1 addition & 2 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@
"RefreshConnectivityTests": "Actualiser les tests de connectivité",
"RefreshWebRTC": "Actualiser le test WebRTC",
"RefreshDNSLeakTest": "Actualiser le test de fuite DNS",
"StartSpeedTest": "Démarrer/Continuer le test de vitesse",
"PauseSpeedTest": "Pause le test de vitesse",
"SpeedTestButton": "Démarrer/Pause le test de vitesse",
"ToggleMaps": "Activer/désactiver les cartes",
"IPCheck": "Vérification IP",
"AddBingMapKey": "Ajouter une clé API Bing Map",
Expand Down
3 changes: 1 addition & 2 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@
"RefreshConnectivityTests": "刷新连通性测试",
"RefreshWebRTC": "刷新 WebRTC 测试",
"RefreshDNSLeakTest": "刷新 DNS 泄漏测试",
"StartSpeedTest": "开始/继续网速测试",
"PauseSpeedTest": "暂停网速测试",
"SpeedTestButton": "开始/暂停网速测试",
"ToggleMaps": "切换地图显示",
"IPCheck": "IP 查询",
"AddBingMapKey": "添加 Bing Map API Key",
Expand Down

0 comments on commit 0360cdc

Please sign in to comment.