Skip to content

Commit e3832ba

Browse files
committed
review
1 parent 9c9982f commit e3832ba

File tree

12 files changed

+455
-473
lines changed

12 files changed

+455
-473
lines changed

client_v2/src/__locales/en.json

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@
438438
"setup_dns_privacy_ios_2": "<0>AdGuard for iOS</0> supports <1>DNS-over-HTTPS</1> and <1>DNS-over-TLS</1> setup.",
439439
"setup_dns_privacy_other_title": "Other implementations",
440440
"setup_dns_privacy_other_1": "AdGuard Home itself can be a secure DNS client on any platform.",
441-
"setup_dns_privacy_other_2": "<0>dnsproxy</0> supports all known secure DNS protocols.",
442-
"setup_dns_privacy_other_3": "<0>dnscrypt-proxy</0> supports <1>DNS-over-HTTPS</1>.",
443-
"setup_dns_privacy_other_4": "<0>Mozilla Firefox</0> supports <1>DNS-over-HTTPS</1>.",
441+
"setup_dns_privacy_other_2": "<a>dnsproxy</a> supports all known secure DNS protocols.",
442+
"setup_dns_privacy_other_3": "<a>dnscrypt-proxy</a> supports <strong>DNS-over-HTTPS</strong>.",
443+
"setup_dns_privacy_other_4": "<a>Mozilla Firefox</a> supports <strong>DNS-over-HTTPS</strong>.",
444444
"setup_dns_privacy_other_5": "You will find more implementations <0>here</0> and <1>here</1>.",
445445
"setup_dns_privacy_ioc_mac": "iOS and macOS configuration",
446446
"setup_dns_notice": "In order to use <1>DNS-over-HTTPS</1> or <1>DNS-over-TLS</1>, you need to <0>configure Encryption</0> in AdGuard Home settings.",
@@ -974,18 +974,20 @@
974974
"setup_devices_macos_list_1": "Click Apple menu → <i>System Preferences</i> → <i>Network</i>.",
975975
"setup_devices_macos_list_2": "Select the required connection and click <i>Advanced</i>.",
976976
"setup_devices_macos_list_3": "Select the <i>DNS</i> tab and enter the addresses of your AdGuard Home server.",
977-
"setup_devices_android_list_1": "Open your devices <i>Settings</i> app and select <i>Wi-Fi</i>.",
978-
"setup_devices_android_list_2": "Long press your current network, then select <i>Modify network</i>.<br>It is not possible to set custom DNS for mobile Internet connections.",
979-
"setup_devices_android_list_3": "On some devices, you may need to select the <i>Advanced</i> checkbox to see more settings. To customize your Android DNS settings, you need to change IP settings from <i>DHCP</i> to <i>Static</i>.",
977+
"setup_devices_android_list_1": "Open your device's <i>Settings</i> app and select <i>Wi-Fi</i>.",
978+
"setup_devices_android_list_2": "Long press your current network, then select <i>Modify network</i>. It is not possible to set custom DNS for mobile Internet connections.",
979+
"setup_devices_android_list_3": "On some devices, you may need to select the <i>Advanced checkbox</i> to see more settings. To customize your Android DNS settings, you need to change IP settings from <i>DHCP</i> to <i>Static</i>.",
980980
"setup_devices_android_list_4": "Change the <i>DNS 1</i> and <i>DNS 2</i> values to the addresses of your AdGuard Home server.",
981-
"setup_devices_ios_list_1": "Open your devices <i>Settings</i> app and select <i>Wi-Fi</i>.<br>It is not possible to set custom DNS for mobile Internet connections.",
981+
"setup_devices_ios_list_1": "Open your device's <i>Settings</i> app and select <i>Wi-Fi</i>. It is not possible to set custom DNS for mobile Internet connections.",
982982
"setup_devices_ios_list_2": "Tap the name of the currently active network.",
983983
"setup_devices_ios_list_3": "Go to <i>DNS</i> → <i>Configure DNS</i> → <i>Manual</i> and add the addresses of your AdGuard Home server.",
984984
"setup_devices_ios_list_4": "Tap <i>Save</i>.",
985985
"setup_devices_router_desc_1": "Set up AdGuard Home on your home network router and protect all devices connected to it. No need to manually configure each device.",
986-
"setup_devices_router_list_1": "<strong>Open your router's settings</strong>.<br>You can usually access them from your browser via a URL, such as <0>http://192.168.0.1/</0> or <1>http://192.168.1.1/</1>. You may be asked to enter a password. You can often reset the password by pressing a button on the router itself, but be aware that you could lose your entire router configuration. <br>If your router is to be set up through an app, install the app on your phone or PC and use it to access the router's settings.",
987-
"setup_devices_router_list_2": "<strong>In the DHCP/DNS settings, enter the addresses of your AdGuard Home server</strong>.<br>To find the settings, look for DNS next to a field that allows two or three sets of numbers, each divided into four groups of one to three digits.",
988-
"setup_devices_router_desc_2": "Some routers do not allow you to set up a custom DNS server. In this case, you can try to set up AdGuard Home as a <0>DHCP server</0>. If this does not work, please refer to your router manual for instructions on how to customize DNS servers for your specific router.",
986+
"setup_devices_router_list_1_title": "Open your router's settings.",
987+
"setup_devices_router_list_1": "You can usually access them from your browser via a URL, such as <code>http://192.168.0.1</code> or <code2>http://192.168.1.1</code2>. You may be asked to enter a password. You can often reset the password by pressing a button on the router itself, but be aware that you could lose your entire router configuration. If your router is to be set up through an app, install the app on your phone or PC and use it to access the router's settings.",
988+
"setup_devices_router_list_2_title": "In the DHCP/DNS settings, enter the addresses of your AdGuard Home server.",
989+
"setup_devices_router_list_2": "To find the settings, look for DNS next to a field that allows two or three sets of numbers, each divided into four groups of one to three digits.",
990+
"setup_devices_router_desc_2": "Some routers do not allow you to set up a custom DNS server. In this case, you can try to set up AdGuard Home as a <a>DHCP server</a>. If this does not work, please refer to your router manual for instructions on how to customize DNS servers for your specific router.",
989991
"setup_devices_windows_list_1": "Open <i>Control Panel</i> from the <i>Start menu</i> or <i>Windows Search</i>.",
990992
"setup_devices_windows_list_2": "Click <i>Network and Internet</i> → <i>Network and Sharing Center</i> → <i>Change adapter settings</i>.",
991993
"setup_devices_windows_list_3": "Right-click on your active connection and select <i>Properties</i>.",
@@ -997,18 +999,23 @@
997999
"setup_devices_dns_list_3": "For <strong>DNS-over-QUIC</strong>, use quic://testadguardhome.adtidy.net:853",
9981000
"setup_devices_dns_list_devices": "Here’s a list of software you can use.",
9991001
"setup_devices_dns_android_list_1": "Android 9 natively supports <strong>DNS-over-TLS</strong>. To configure it, go to <i>Settings → Network & Internet → Advanced → Private DNS</i> and enter your domain name.",
1000-
"setup_devices_dns_android_list_2": "<0>AdGuard for Android</0> supports <strong>DNS-over-HTTPS</strong>, <strong>DNS-over-TLS</strong>, and <strong>DNS-over-QUIC setup</strong>.",
1001-
"setup_devices_dns_android_list_3": "<0>Intra</0> adds <strong>DNS-over-HTTPS</strong> support to Android.",
1002-
"setup_devices_dns_ios_list_1": "<0>AdGuard for iOS</0> supports <strong>DNS-over-HTTPS</strong>, <strong>DNS-over-TLS</strong>, and <strong>DNS-over-QUIC</strong> setup.",
1003-
"setup_devices_dns_ios_list_2": "<0>DNSCloak</0> supports <strong>DNS-over-HTTPS</strong>, but to configure it to use your own server, you'll need to generate a <1>DNS Stamp</1> for it.",
1002+
"setup_devices_dns_android_list_2": "<a>AdGuard for Android</a> supports <strong>DNS-over-HTTPS</strong>, <strong>DNS-over-TLS</strong>, and <strong>DNS-over-QUIC setup</strong>.",
1003+
"setup_devices_dns_android_list_3": "<a>Intra</a> adds <strong>DNS-over-HTTPS</strong> support to Android.",
1004+
"setup_devices_dns_ios_list_1": "<a>AdGuard for iOS</a> supports <strong>DNS-over-HTTPS</strong>, <strong>DNS-over-TLS</strong>, and <strong>DNS-over-QUIC</strong> setup.",
1005+
"setup_devices_dns_ios_list_2": "<a>DNSCloak</a> supports <strong>DNS-over-HTTPS</strong>, but to configure it to use your own server, you'll need to generate a <b>DNS Stamp</b> for it.",
10041006
"setup_devices_dns_other_list_1": "<0>AdGuard Home</0> itself can be a secure DNS client on any platform.",
10051007
"setup_devices_dns_other_list_2": "<0>dnsproxy</0> supports all known secure DNS protocols.",
10061008
"setup_devices_dns_other_list_3": "<0>dnscrypt-proxy</0> supports <strong>DNS-over-HTTPS</strong>.",
10071009
"setup_devices_dns_other_list_4": "<0>Mozilla Firefox</0> supports <strong>DNS-over-HTTPS</strong>.",
1008-
"setup_devices_dns_other_list_5": "For more implementations, see <0>DNSCrypt</0> and <1>DNS privacy</1>.",
1010+
"setup_devices_dns_other_list_5": "For more implementations, see <a>DNSCrypt</a> and <b>DNS privacy</b>.",
10091011
"setup_devices_dns_macos_desc": "On an iOS 14 or macOS Big Sur device, you can download a special mobileconfig file that adds <strong>DNS-over-HTTPS</strong> or <strong>DNS-over-TLS</strong> servers to the DNS settings.",
10101012
"setup_devices_dns_macos_note": "For a complete iOS and macOS configuration form with all options, please visit the <0>Setup Guide</0> page.",
1011-
"client_id_faq": "Clients can be identified by their ClientID. To learn more, visit the <0>AdGuard Home GitHub</0>",
1013+
"client_id_faq": "Clients can be identified by their ClientID. To learn more, visit the <a>AdGuard Home GitHub</a>",
10121014
"device_type": "Device type",
1013-
"setup_guide_v2": "Setup guide"
1015+
"setup_guide_v2": "Setup guide",
1016+
"setup_devices_router_title": "Router",
1017+
"setup_devices_windows_title": "Windows",
1018+
"setup_devices_macos_title": "macOS",
1019+
"setup_devices_android_title": "Android",
1020+
"setup_devices_ios_title": "iOS"
10141021
}

client_v2/src/common/controls/Select/MenuList.module.pcss

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313

1414
&::-webkit-scrollbar-thumb {
15-
background-color: var(--gray-60);
15+
background-color: var(--default-gray-icons);
1616
border-radius: 10px;
1717
}
1818
}
@@ -42,28 +42,10 @@
4242

4343
&:hover,
4444
&.isFocused {
45-
background-color: var(--gray-10);
45+
background-color: var(--hovered-dropdown-menu-background);
4646
}
4747

4848
&.isSelected {
49-
background-color: var(--gray-20);
49+
background-color: var(--pressed-dropdown-menu-background);
5050
}
51-
}
52-
53-
/* Dark theme support */
54-
[data-theme="dark"] .menuList {
55-
&::-webkit-scrollbar-thumb {
56-
background-color: var(--gray-50);
57-
}
58-
}
59-
60-
[data-theme="dark"] .customOption {
61-
&:hover,
62-
&.isFocused {
63-
background-color: var(--gray-80);
64-
}
65-
66-
&.isSelected {
67-
background-color: var(--gray-70);
68-
}
69-
}
51+
}

client_v2/src/common/ui/CopiedText/CopiedText.module.pcss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
align-items: center;
66
gap: 8px;
77
padding: 4px 8px;
8-
background: var(--gray-10);
9-
border: 1px solid var(--gray-30);
8+
background: var(--default-input-background);
9+
border: 1px solid var(--default-inactive-input-stroke);
1010
border-radius: 4px;
1111
transition: var(--t2) border-color, var(--t2) background-color;
1212
width: fit-content;
@@ -19,7 +19,7 @@
1919

2020
.text {
2121
font-size: 14px;
22-
color: var(--gray-80);
22+
color: var(--default-main-text);
2323
cursor: pointer;
2424
user-select: none;
2525
word-break: break-all;
@@ -33,7 +33,7 @@
3333
.icon {
3434
width: 20px;
3535
height: 20px;
36-
color: var(--gray-60);
36+
color: var(--default-gray-icons);
3737
cursor: pointer;
3838
transition: var(--t2) color, var(--t2) transform;
3939
flex-shrink: 0;

client_v2/src/common/ui/CopiedText/CopiedText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Icon } from '../Icon';
44

55
import s from './CopiedText.module.pcss';
66

7-
export interface CopiedTextProps {
7+
export type CopiedTextProps = {
88
text: string;
99
className?: string;
1010
onCopy?: (text: string) => void;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { CopiedText } from './CopiedText';
2-
export type { CopiedTextProps } from './CopiedText';
1+
export { CopiedText, type CopiedTextProps } from './CopiedText';

client_v2/src/common/ui/Guide/Guide.module.pcss

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.dhcpLink {
12-
color: var(--product-primary-50);
12+
color: var(--default-link);
1313
font-size: 16px;
1414
font-weight: 400;
1515
}
@@ -18,21 +18,21 @@
1818
text-decoration: underline;
1919
}
2020

21-
.text {
21+
.guideText {
2222
line-height: 1.7;
2323
}
2424

25-
.text li,
26-
.text p {
25+
.guideText li,
26+
.guideText p {
2727
margin-bottom: 5px;
2828
}
2929

30-
.text ul,
31-
.text ol {
30+
.guideText ul,
31+
.guideText ol {
3232
padding-left: 25px;
3333
}
3434

35-
.paragraph {
35+
.guideParagraph {
3636
margin-bottom: 10px;
3737
}
3838

@@ -62,7 +62,7 @@
6262
}
6363

6464
.dnsLink {
65-
color: var(--product-primary-50);
65+
color: var(--default-link);
6666
font-size: 16px;
6767
font-weight: 400;
6868
}
@@ -74,13 +74,39 @@
7474
.selectorDesc {
7575
margin-bottom: 4px;
7676
font-size: 14px;
77-
color: var(--gray-60);
78-
}
79-
80-
[data-theme="dark"] .selectorDesc {
81-
color: var(--gray-50);
77+
color: var(--default-description-text);
8278
}
8379

8480
.deviceSelector {
8581
margin-bottom: 32px;
8682
}
83+
84+
.deviceDnsListItem {
85+
margin-top: 8px;
86+
}
87+
88+
.guideBulletItem {
89+
margin-bottom: 16px;
90+
list-style: none;
91+
position: relative;
92+
}
93+
94+
.guideBulletItem::before {
95+
content: "";
96+
width: 8px;
97+
height: 8px;
98+
background-color: var(--default-description-text);
99+
border-radius: 50%;
100+
display: inline-block;
101+
position: absolute;
102+
left: -16px;
103+
top: 8px;
104+
}
105+
106+
.guideItemTitle {
107+
display: block;
108+
}
109+
110+
.guideList {
111+
padding-left: 20px;
112+
}

0 commit comments

Comments
 (0)