Skip to content

Commit

Permalink
Re-order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Apr 23, 2024
1 parent 50fd6ff commit 576a9e4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 30 deletions.
33 changes: 11 additions & 22 deletions src/components/Location.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,34 +91,23 @@ const selectLocation = (connection: HistoryEntry) => {
</n-button>
</template>
<n-collapse arrow-placement="right">
<n-collapse-item
v-for="{ city, proxyList } in cities"
:key="city"
:name="city"
:title="city"
>
<n-collapse-item v-for="{ city, proxyList } in cities" :key="city" :name="city" :title="city">
<template #header>
<n-button quaternary @click.prevent="clickCountryOrCity(country, city)">
{{ city }}
</n-button>
</template>
<n-space vertical>
<n-button
v-for="proxy in proxyList"
:key="proxy.hostname"
secondary
medium
@click="
clickServer(
country,
proxy.location.countryCode,
city,
proxy.hostname,
proxy.ipv4_address,
proxy.port,
)
"
>
<n-button v-for="proxy in proxyList" :key="proxy.hostname" secondary medium @click="
clickServer(
country,
proxy.location.countryCode,
city,
proxy.hostname,
proxy.ipv4_address,
proxy.port,
)
">
{{ proxy.hostname }}
</n-button>
</n-space>
Expand Down
4 changes: 2 additions & 2 deletions src/components/NotificationsCarousel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import { computed } from 'vue';
import { NCard, NCarousel, NIcon, NImage } from 'naive-ui';
import { closePopup } from '@/helpers/closePopup';
import Button from '@/components/Buttons/Button.vue';
import ExternalLinkIconLabel from '@/components/ExternalLinkIconLabel.vue';
import IconLabel from '@/components/IconLabel.vue';
import FeArrowLeft from '@/components/Icons/FeArrowLeft.vue';
import FeArrowRight from '@/components/Icons/FeArrowRight.vue';
import { closePopup } from '@/helpers/closePopup';
import useRecommendations from '@/composables/useRecommendations/useRecommendations';
import useWarnings from '@/composables/useWarnings/useWarnings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import { computed, toRefs, watchEffect } from 'vue';
import { NAvatar, NCard } from 'naive-ui';
import { closePopup } from '@/helpers/closePopup';
import Button from '@/components/Buttons/Button.vue';
import IconLabel from '@/components/IconLabel.vue';
import Instructions from '@/components/PrivacyRecommendations/Instructions.vue';
import RecommendationIconWithTooltip from '@/components/RecommendationIconWithTooltip.vue';
import SplitButton from '@/components/Buttons/SplitButton.vue';
import { closePopup } from '@/helpers/closePopup';
import type { Recommendation } from '@/composables/useRecommendations/Recommendation.types';
import ExternalLinkIconLabel from '@/components/ExternalLinkIconLabel.vue';
import useConnection from '@/composables/useConnection';
Expand Down
5 changes: 3 additions & 2 deletions src/composables/useStore.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Ref } from 'vue';

import { ProxyDetails, ProxyInfoMap, ProxyInfo, ProxyDetailsMap } from '@/helpers/socksProxy.types';
import useBrowserStorageLocal from '@/composables/useBrowserStorageLocal';
import type { HistoryEntriesMap } from './useProxyHistory/HistoryEntries.types';
import { Country } from './useListProxies';

import { ProxyDetails, ProxyInfoMap, ProxyInfo, ProxyDetailsMap } from '@/helpers/socksProxy.types';
import useBrowserStorageLocal from '@/composables/useBrowserStorageLocal';

export type Store = {
excludedHosts: Ref<string[]>;
hostProxies: Ref<ProxyInfoMap>;
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/browserAction.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getActiveProxyDetails } from '@/helpers/socksProxy';
import { ProxyDetails } from './socksProxy.types';
import { getActiveProxyDetails } from '@/helpers/socksProxy';

export const initBrowserAction = () => {
// Each time a tab is updated, reset the browserAction for that tab
Expand Down
1 change: 1 addition & 0 deletions src/helpers/connCheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ n is an optional parameter to retry the connCheck any number of time.
By default, it will retry twice because after connecting/disconnecting to/from Mullvad server, the first request results in a NetworkError and the second is successful.
It's a workaround for the following bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1706377
Workaround can be removed when Mullvad Browser 14.0 is released (the bug is fixed!).
*/

export const connCheck = async (n = 3): Promise<Connection> => {
Expand Down
1 change: 0 additions & 1 deletion src/popup/views/License.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts" setup>
import { NCard } from 'naive-ui';
import { closePopup } from '@/helpers/closePopup';
</script>

Expand Down

0 comments on commit 576a9e4

Please sign in to comment.