Skip to content

Commit

Permalink
Add warning message to proxy settings (#6099)
Browse files Browse the repository at this point in the history
* Add warning message to proxy settings

* Update src/renderer/components/proxy-settings/proxy-settings.css

Co-authored-by: PikachuEXE <git@pikachuexe.net>

* simplify message

* Only show banner when useProxy is enabled

---------

Co-authored-by: PikachuEXE <git@pikachuexe.net>
  • Loading branch information
ChunkyProgrammer and PikachuEXE authored Nov 23, 2024
1 parent 2cead47 commit e4007c1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/renderer/components/proxy-settings/proxy-settings.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
.protocol-dropdown {
margin-block-end: 1rem;
}

.proxy-warning {
padding-block: 12px;
padding-inline: 4%;
background-color: var(--accent-color);
color: var(--text-with-accent-color);
font-weight: bold;
}

.warning-icon {
font-size: large;
}
11 changes: 11 additions & 0 deletions src/renderer/components/proxy-settings/proxy-settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
:title="$t('Settings.Proxy Settings.Proxy Settings')"
>
<ft-flex-box class="settingsFlexStart500px">
<p
v-if="useProxy"
class="proxy-warning"
>
<font-awesome-icon
:icon="['fas', 'circle-exclamation']"
class="warning-icon"
fixed-width
/>
{{ $t('Settings.Proxy Settings.Proxy Warning') }}
</p>
<ft-toggle-switch
:label="$t('Settings.Proxy Settings.Enable Tor / Proxy')"
:default-value="useProxy"
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
faBookmark,
faCheck,
faChevronRight,
faCircleExclamation,
faCirclePlay,
faCircleUser,
faClapperboard,
Expand Down Expand Up @@ -141,6 +142,7 @@ library.add(
faBookmark,
faCheck,
faChevronRight,
faCircleExclamation,
faCirclePlay,
faCircleUser,
faClapperboard,
Expand Down
1 change: 1 addition & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ Settings:
Manage Subscriptions: Manage Subscriptions
Proxy Settings:
Proxy Settings: Proxy
Proxy Warning: FreeTube doesn't have a built-in proxy but can connect to an external proxy, such as one running on your machine like Tor or an external proxy such-as a SOCKS5 proxy provided by some VPNs. If enabled, make sure your proxy/Tor is configured properly, or FreeTube won't be able to fetch any data.
Enable Tor / Proxy: Enable Tor / Proxy
Proxy Protocol: Proxy Protocol
Proxy Host: Proxy Host
Expand Down

0 comments on commit e4007c1

Please sign in to comment.