Skip to content

Commit c7cef6a

Browse files
committed
chore: update changelog and improve user agent settings UI
1 parent 4358402 commit c7cef6a

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Use development and beta versions only if you are aware of the potential risks.
66

7-
## Changes since v1.1.78
7+
## Changes since v1.1.79
88

99
All significant changes in this version are documented here.
1010

@@ -25,7 +25,7 @@ All significant changes in this version are documented here.
2525
- Fix the issue of failing to get "Direct DNS"
2626
- Fix the issue of clicking "Dashboard" not responding on some systems
2727

28-
## 自 v1.1.78 以来的变更
28+
## 自 v1.1.79 以来的变更
2929

3030
本版本的所有重要变更将记录于此。
3131

lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"ua_option_sfm_1_12": "sing-box 1.12 mac",
180180
"ua_option_sfa_1_12": "sing-box 1.12 android",
181181
"ua_option_custom": "custom",
182-
"user_agent_settings": "User Agent Settings",
182+
"user_agent_settings": "User Agent",
183183
"open_user_agent": "Open user agent settings",
184184
"custom_ua_placeholder": "Enter custom User Agent",
185185
"ua_hint": "Select or enter a custom User Agent for requests",

lang/zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"ua_option_sfm_1_12": "sing-box 1.12 mac",
180180
"ua_option_sfa_1_12": "sing-box 1.12 android",
181181
"ua_option_custom": "自定义",
182-
"user_agent_settings": "User Agent 设置",
182+
"user_agent_settings": "User Agent",
183183
"open_user_agent": "打开 UA 设置",
184184
"custom_ua_placeholder": "输入自定义 User Agent",
185185
"ua_hint": "为请求选择或输入自定义 User Agent",

src/components/developer/select-stage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function StageSetting() {
4949
return (
5050
<>
5151
<SettingItem
52-
icon={<Git className="text-[#34C759]" size={22} />}
52+
icon={<Git className="w-5 h-5 text-gray-500" />}
5353
title={t("update_stage")}
5454
badge={<span className="mx-2 text-sm">{t(`${stageVersion}_version`)}</span>}
5555
subTitle={t("update_stage_desc")}

src/components/developer/ua-settings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useState } from "react";
2-
import { Save, TextIndentLeft, X } from "react-bootstrap-icons";
2+
import { Save, Tools, X } from "react-bootstrap-icons";
33
import { toast } from "sonner";
44
import { t } from "../../utils/helper";
55
import { SettingItem } from "../settings/common";
@@ -90,7 +90,7 @@ export default function UASettingsItem() {
9090
return (
9191
<>
9292
<SettingItem
93-
icon={<TextIndentLeft className="w-5 h-5 text-gray-500" />}
93+
icon={<Tools className="w-5 h-5 text-gray-500" />}
9494
title={t("user_agent_settings", "User Agent Settings")}
9595
subTitle={t("open_user_agent", "Open user agent settings")}
9696
disabled={false}
@@ -107,7 +107,7 @@ export default function UASettingsItem() {
107107
<div className="relative bg-white rounded-lg p-3 w-80 max-w-full">
108108
<div className="flex items-center justify-between mb-4">
109109
<div className="flex items-center gap-2">
110-
<TextIndentLeft size={14} className="text-gray-500" />
110+
<Tools size={14} className="text-gray-500" />
111111
<h3 className="text-xs font-medium text-gray-700">
112112
{t("user_agent_settings", "User Agent Settings")}
113113
</h3>

src/page/developer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { invoke } from "@tauri-apps/api/core";
22
import { getCurrentWindow } from "@tauri-apps/api/window";
3-
import { JournalText } from "react-bootstrap-icons";
3+
import { Binoculars } from "react-bootstrap-icons";
44
import ToggleBypassRouter from "../components/developer/bypass-router";
55
import { SettingItem } from "../components/developer/common";
66
import ToggleDev from "../components/developer/dev-toggle";
@@ -36,7 +36,7 @@ export default function Page() {
3636
<DNSSettingsItem />
3737
<UASettingsItem />
3838
<SettingItem
39-
icon={<JournalText className="w-5 h-5 text-gray-500" />}
39+
icon={<Binoculars className="w-5 h-5 text-gray-500" />}
4040

4141
title={t("open_log")}
4242
subTitle={t("open_log_desc")}

0 commit comments

Comments
 (0)