mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-20 02:42:12 +08:00
feat(settings): add searchable settings navigation
This commit is contained in:
@@ -156,6 +156,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
<HeaderConfiguration ref={corsRef} />
|
||||
<TunnelsViewer ref={tunnelRef} />
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.allowLan"
|
||||
label={t('settings.sections.clash.form.fields.allowLan')}
|
||||
extra={
|
||||
<TooltipIcon
|
||||
@@ -181,6 +182,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.dnsOverwrite"
|
||||
label={t('settings.sections.clash.form.fields.dnsOverwrite')}
|
||||
extra={
|
||||
<>
|
||||
@@ -203,7 +205,10 @@ const SettingClash = ({ onError }: Props) => {
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem label={t('settings.sections.clash.form.fields.ipv6')}>
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.ipv6"
|
||||
label={t('settings.sections.clash.form.fields.ipv6')}
|
||||
>
|
||||
<GuardState
|
||||
value={ipv6 ?? false}
|
||||
valueProps="checked"
|
||||
@@ -217,6 +222,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.unifiedDelay"
|
||||
label={t('settings.sections.clash.form.fields.unifiedDelay')}
|
||||
extra={
|
||||
<TooltipIcon
|
||||
@@ -238,6 +244,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.logLevel"
|
||||
label={t('settings.sections.clash.form.fields.logLevel')}
|
||||
extra={
|
||||
<TooltipIcon
|
||||
@@ -279,7 +286,10 @@ const SettingClash = ({ onError }: Props) => {
|
||||
</GuardState>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem label={t('settings.sections.clash.form.fields.portConfig')}>
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.portConfig"
|
||||
label={t('settings.sections.clash.form.fields.portConfig')}
|
||||
>
|
||||
<TextField
|
||||
autoComplete="new-password"
|
||||
disabled={false}
|
||||
@@ -294,6 +304,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.external"
|
||||
label={t('settings.sections.clash.form.fields.external')}
|
||||
extra={
|
||||
<TooltipIcon
|
||||
@@ -311,11 +322,13 @@ const SettingClash = ({ onError }: Props) => {
|
||||
/>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.webUI"
|
||||
onClick={() => webRef.current?.open()}
|
||||
label={t('settings.sections.clash.form.fields.webUI')}
|
||||
/>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.clashCore"
|
||||
label={t('settings.sections.clash.form.fields.clashCore')}
|
||||
extra={
|
||||
<TooltipIcon
|
||||
@@ -329,6 +342,7 @@ const SettingClash = ({ onError }: Props) => {
|
||||
|
||||
{isWIN && (
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.openUwpTool"
|
||||
onClick={invoke_uwp_tool}
|
||||
label={t('settings.sections.clash.form.fields.openUwpTool')}
|
||||
extra={
|
||||
@@ -341,11 +355,13 @@ const SettingClash = ({ onError }: Props) => {
|
||||
)}
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.updateGeoData"
|
||||
onClick={onUpdateGeo}
|
||||
label={t('settings.sections.clash.form.fields.updateGeoData')}
|
||||
/>
|
||||
|
||||
<SettingItem
|
||||
data-setting-target="settings.sections.clash.form.fields.tunnels.title"
|
||||
label={t('settings.sections.clash.form.fields.tunnels.title')}
|
||||
onClick={() => tunnelRef.current?.open()}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user