Skip to content

Commit

Permalink
Improve the about section and links
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Jun 15, 2023
1 parent 2790cdf commit 1c1437f
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions src/popup/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import { computed, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { runtime } from 'webextension-polyfill';
import { NTag, NCard } from 'naive-ui';
import { NTag } from 'naive-ui';
import FeGithub from '@/components/Icons/FeGithub.vue';
import FeFileText from '@/components/Icons/FeFileText.vue';
import FeGithub from '@/components/Icons/FeGithub.vue';
import FeInfo from '@/components/Icons/FeInfo.vue';
import PrivacyRecommendations from '@/components/PrivacyRecommendations/PrivacyRecommendations.vue';
import TitleCategory from '@/components/TitleCategory.vue';
import WebRTCToggle from '@/components/PrivacyRecommendations/WebRTCToggle.vue';
Expand Down Expand Up @@ -33,24 +34,28 @@ if (hash.value) {
</script>

<template>
<TitleCategory title="About" />
<n-card>
<div class="flex items-center justify-between">
<span>Version {{ version }} (beta)</span>
<n-tag round :bordered="false" type="info">
<a href="https://github.com/mullvad/browser-extension" @click="closePopup"> Source code </a>
<template #icon>
<FeGithub />
</template>
</n-tag>
<n-tag round :bordered="false" type="info">
<router-link to="/license"> License </router-link>
<template #icon>
<FeFileText />
</template>
</n-tag>
</div>
</n-card>
<div class="flex items-center justify-between p-3 pb-1">
<n-tag round :bordered="false" type="info">
<a href="https://github.com/mullvad/browser-extension/releases" @click="closePopup">
{{ version }} | Changelog
</a>
<template #icon>
<FeInfo />
</template>
</n-tag>
<n-tag round :bordered="false" type="info">
<a href="https://github.com/mullvad/browser-extension" @click="closePopup"> Source code </a>
<template #icon>
<FeGithub />
</template>
</n-tag>
<n-tag round :bordered="false" type="info">
<router-link to="/license"> License </router-link>
<template #icon>
<FeFileText />
</template>
</n-tag>
</div>

<TitleCategory title="Settings" class="pt-4" />
<WebRTCToggle />
Expand All @@ -62,6 +67,8 @@ if (hash.value) {
<style scoped>
a {
text-decoration: none;
color: rgba(255 255 255 / 80%);
font-weight: 600;
}
a:hover {
Expand Down

0 comments on commit 1c1437f

Please sign in to comment.