mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 10:30:23 +08:00
feat: 新增隐藏宿主品牌标识开关,精简破限提示词并移除实时预览污染(v0.2.12)
This commit is contained in:
1 parent
849fc35ac5
commit
6da4c81b5e
18 files changed
+421
-111
No files matched your search
@@ -173,6 +173,9 @@ export function UnrestrictedCard(props: UnrestrictedCardProps) {
|
||||
<div className="dsh-unrestricted-headerTitle">
|
||||
<h3 id="dsh-unrestricted-main-title" className="dsh-unrestricted-title">{t('title')}</h3>
|
||||
<Tag tone={summaryTone}>{t(summaryKey)}</Tag>
|
||||
{view.settingsStatus === 'ready' && view.stripHostIdentity && (
|
||||
<Tag tone="outline">{t('stripHostBadge')}</Tag>
|
||||
)}
|
||||
</div>
|
||||
<div className="dsh-unrestricted-headerControls">
|
||||
<span className="dsh-unrestricted-switchLabel">{t('toggle')}</span>
|
||||
@@ -186,6 +189,18 @@ export function UnrestrictedCard(props: UnrestrictedCardProps) {
|
||||
</div>
|
||||
<p className="dsh-unrestricted-description">{t('description')}</p>
|
||||
<p className="dsh-unrestricted-note">{t('scopeNote')}</p>
|
||||
<div className="dsh-unrestricted-optionRow">
|
||||
<div className="dsh-unrestricted-optionCopy">
|
||||
<span className="dsh-unrestricted-modeName">{t('stripHostTitle')}</span>
|
||||
<p className="dsh-unrestricted-note">{t('stripHostDesc')}</p>
|
||||
</div>
|
||||
<Switch
|
||||
checked={view.stripHostIdentity}
|
||||
disabled={!view.writable || view.settingsStatus !== 'ready' || view.busy}
|
||||
label={t('stripHostTitle')}
|
||||
onChange={(checked) => { void props.setStripHostIdentity(checked) }}
|
||||
/>
|
||||
</div>
|
||||
{view.settingsStatus === 'loading' && (
|
||||
<p className="dsh-unrestricted-note" role="status">{t('settingsLoading')}</p>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user