-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow proxy to be set per domain instead of the whole browser
This is a major refactor of the way proxy work in the extension. Instead of a proxy config being used for the whole browser, each requests are intercepted and can use a specific proxy config based on arbitrary rules. The use of the pageAction is removed, because it is non-standard and will eventually be removed by Firefox. Finally, the interface has been adapted and improved.
- Loading branch information
Showing
61 changed files
with
1,137 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
src/components/ConnectionStatus/UsingMullvadConnectionStatus.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts" setup> | ||
import { NIcon } from 'naive-ui'; | ||
import FeCog from '@/components/Icons/FeCog.vue'; | ||
import FeGlobe from '@/components/Icons/FeGlobe.vue'; | ||
import TaRoute from '@/components/Icons/TaRoute.vue'; | ||
</script> | ||
|
||
<template> | ||
<div class="flex"> | ||
<div class="grid grid-cols-2 flex-1"> | ||
<div class="flex flex-row items-center justify-center p-2 text-white"> | ||
<n-icon size="20"> | ||
<FeGlobe /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Status</h1> | ||
</div> | ||
|
||
<router-link | ||
to="/proxy" | ||
class="flex flex-row items-center justify-center p-2 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<TaRoute /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Proxy</h1> | ||
</router-link> | ||
</div> | ||
|
||
<router-link | ||
to="/settings" | ||
class="flex flex-row items-center justify-center px-4 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<FeCog /> | ||
</n-icon> | ||
</router-link> | ||
</div> | ||
</template> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts" setup> | ||
import { NIcon } from 'naive-ui'; | ||
import FeCog from '@/components/Icons/FeCog.vue'; | ||
import FeGlobe from '@/components/Icons/FeGlobe.vue'; | ||
import TaRoute from '@/components/Icons/TaRoute.vue'; | ||
</script> | ||
|
||
<template> | ||
<div class="flex"> | ||
<div class="grid grid-cols-2 flex-1"> | ||
<router-link | ||
to="/" | ||
class="flex flex-row items-center justify-center p-2 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<FeGlobe /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Status</h1> | ||
</router-link> | ||
|
||
<div class="flex flex-row items-center justify-center p-2 text-white"> | ||
<n-icon size="20"> | ||
<TaRoute /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Proxy</h1> | ||
</div> | ||
</div> | ||
|
||
<router-link | ||
to="/settings" | ||
class="flex flex-row items-center justify-center px-4 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<FeCog /> | ||
</n-icon> | ||
</router-link> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts" setup> | ||
import { NIcon } from 'naive-ui'; | ||
import FeCog from '@/components/Icons/FeCog.vue'; | ||
import FeGlobe from '@/components/Icons/FeGlobe.vue'; | ||
import TaRoute from '@/components/Icons/TaRoute.vue'; | ||
</script> | ||
|
||
<template> | ||
<div class="flex"> | ||
<div class="grid grid-cols-2 flex-1"> | ||
<router-link | ||
to="/" | ||
class="flex flex-row items-center justify-center p-2 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<FeGlobe /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Status</h1> | ||
</router-link> | ||
|
||
<router-link | ||
to="/proxy" | ||
class="flex flex-row items-center justify-center p-2 hover:text-white bg-[var(--blue)]" | ||
> | ||
<n-icon size="20"> | ||
<TaRoute /> | ||
</n-icon> | ||
<h1 class="text-xl font-semibold pl-2">Proxy</h1> | ||
</router-link> | ||
</div> | ||
|
||
<div class="flex flex-row items-center justify-center px-4 text-white"> | ||
<n-icon size="20"> | ||
<FeCog /> | ||
</n-icon> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<svg | ||
width="1em" | ||
height="1em" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
stroke-width="2" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
> | ||
<circle cx="12" cy="12" r="10"></circle> | ||
<line x1="2" y1="12" x2="22" y2="12"></line> | ||
<path | ||
d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" | ||
></path> | ||
</svg> | ||
</template> |
Oops, something went wrong.