From b4df982c3753e3db65dee78a573215c2b60c38df Mon Sep 17 00:00:00 2001 From: QLHazyCoder <2825305047@qq.com> Date: Thu, 28 May 2026 02:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Cloudflare=20Temp=20Email?= =?UTF-8?q?=20=E5=AD=90=E5=9F=9F=E6=A8=A1=E5=BC=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sidepanel/sidepanel.css | 36 +++ sidepanel/sidepanel.html | 51 ++-- sidepanel/sidepanel.js | 241 +++++++++++++----- ...dflare-temp-email-random-subdomain.test.js | 162 +++++++++++- tests/sidepanel-contribution-mode.test.js | 7 + tests/sidepanel-icloud-provider.test.js | 51 +++- tests/sidepanel-mail2925-base-email.test.js | 7 + ...epanel-phone-verification-settings.test.js | 7 + 8 files changed, 458 insertions(+), 104 deletions(-) diff --git a/sidepanel/sidepanel.css b/sidepanel/sidepanel.css index ae20c10..3f8c28b 100644 --- a/sidepanel/sidepanel.css +++ b/sidepanel/sidepanel.css @@ -1378,6 +1378,10 @@ header { } .data-input::placeholder { color: var(--text-muted); } .data-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); } +.data-input.is-invalid { + border-color: var(--red); + box-shadow: 0 0 0 3px var(--red-soft); +} .data-textarea { width: 100%; @@ -1490,6 +1494,38 @@ header { color: var(--text-muted); } +.temp-email-subdomain-mode-wrap, +.temp-email-subdomain-prefix-wrap { + align-items: flex-start; + flex-direction: column; +} + +.temp-email-subdomain-mode-wrap .choice-group, +.temp-email-subdomain-prefix-wrap .data-input { + width: 100%; +} + +.temp-email-subdomain-mode-wrap .setting-caption { + white-space: normal; + text-align: left; +} + +.field-feedback { + min-height: 15px; + font-size: 12px; + font-weight: 600; + line-height: 1.25; + color: var(--text-muted); +} + +.field-feedback.is-error { + color: var(--red); +} + +.field-feedback-muted { + color: var(--text-secondary); +} + #btn-fetch-email, #btn-save-settings { padding-inline: 10px; diff --git a/sidepanel/sidepanel.html b/sidepanel/sidepanel.html index c4fcec8..ed260b0 100644 --- a/sidepanel/sidepanel.html +++ b/sidepanel/sidepanel.html @@ -812,41 +812,34 @@ - -