mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
fix(a11y): 8 fields named "Password", by a placeholder, or not at all have names (#33477)
This commit is contained in:
parent
a12eeafb48
commit
6a789c1199
7 changed files with 28 additions and 3 deletions
|
|
@ -302,7 +302,12 @@
|
|||
{#if rotatedAPIKey}
|
||||
<div class="space-y-1.5">
|
||||
<div class="flex items-center gap-2">
|
||||
<SensitiveInput variant="settings" value={rotatedAPIKey} readOnly={true} />
|
||||
<SensitiveInput
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('API Key')}
|
||||
value={rotatedAPIKey}
|
||||
readOnly={true}
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
class="shrink-0 text-xs text-gray-500 hover:text-gray-700 dark:hover:text-gray-200"
|
||||
|
|
|
|||
|
|
@ -219,6 +219,7 @@
|
|||
{#if frequency === 'CUSTOM'}
|
||||
<div class="px-2 pb-2">
|
||||
<input
|
||||
aria-label={$i18n.t('Custom schedule')}
|
||||
type="text"
|
||||
bind:value={customRrule}
|
||||
placeholder="RRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0"
|
||||
|
|
@ -232,6 +233,7 @@
|
|||
{#if frequency === 'ONCE'}
|
||||
<div class="flex items-center gap-1.5">
|
||||
<input
|
||||
aria-label={$i18n.t('Date')}
|
||||
type="date"
|
||||
bind:value={onceDate}
|
||||
min={dayjs().format('YYYY-MM-DD')}
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@
|
|||
<!-- Query editor -->
|
||||
<div class="shrink-0">
|
||||
<textarea
|
||||
aria-label={$i18n.t('SQL query')}
|
||||
bind:value={queryText}
|
||||
placeholder="SELECT * FROM ..."
|
||||
class="query-editor w-full text-xs font-mono bg-transparent text-gray-800 dark:text-gray-200 px-3 py-2 outline-none resize-none"
|
||||
|
|
|
|||
|
|
@ -1034,6 +1034,7 @@
|
|||
class="text-sm flex justify-center font-normal self-center dark:text-gray-500 min-w-fit"
|
||||
>
|
||||
<input
|
||||
aria-label={$i18n.t('Message number')}
|
||||
id="message-index-input-{message.id}"
|
||||
type="number"
|
||||
value={siblings.indexOf(message.id) + 1}
|
||||
|
|
|
|||
|
|
@ -527,6 +527,7 @@
|
|||
class="text-sm flex justify-center font-normal self-center dark:text-gray-500 min-w-fit"
|
||||
>
|
||||
<input
|
||||
aria-label={$i18n.t('Message number')}
|
||||
id="message-index-input-{message.id}"
|
||||
type="number"
|
||||
value={siblings.indexOf(message.id) + 1}
|
||||
|
|
@ -651,6 +652,7 @@
|
|||
class="text-sm flex justify-center font-normal self-center dark:text-gray-500 min-w-fit"
|
||||
>
|
||||
<input
|
||||
aria-label={$i18n.t('Message number')}
|
||||
id="message-index-input-{message.id}"
|
||||
type="number"
|
||||
value={siblings.indexOf(message.id) + 1}
|
||||
|
|
|
|||
|
|
@ -412,7 +412,12 @@
|
|||
description={$i18n.t('settings.personal.account.jwtToken.description')}
|
||||
>
|
||||
<div class="flex">
|
||||
<SensitiveInput variant="settings" value={localStorage.token} readOnly={true} />
|
||||
<SensitiveInput
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('settings.personal.account.jwtToken.label')}
|
||||
value={localStorage.token}
|
||||
readOnly={true}
|
||||
/>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
|
@ -470,7 +475,12 @@
|
|||
>
|
||||
<div class="flex">
|
||||
{#if APIKey}
|
||||
<SensitiveInput variant="settings" value={APIKey} readOnly={true} />
|
||||
<SensitiveInput
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('settings.personal.account.apiKey.label')}
|
||||
value={APIKey}
|
||||
readOnly={true}
|
||||
/>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
|||
|
|
@ -752,6 +752,7 @@
|
|||
"Custom Parameter Value": "",
|
||||
"Custom permissions": "",
|
||||
"Custom range": "",
|
||||
"Custom schedule": "",
|
||||
"Customize": "Customize",
|
||||
"Daily": "",
|
||||
"Daily at": "",
|
||||
|
|
@ -761,6 +762,7 @@
|
|||
"Data": "",
|
||||
"Database": "",
|
||||
"Datalab Marker API": "",
|
||||
"Date": "",
|
||||
"Date Added": "",
|
||||
"Date is required": "",
|
||||
"Date Modified": "",
|
||||
|
|
@ -1751,6 +1753,7 @@
|
|||
"Message counts and response timestamps": "",
|
||||
"Message counts are based on assistant responses.": "",
|
||||
"Message exceeds the 16 KiB limit.": "",
|
||||
"Message number": "",
|
||||
"Message rating should be enabled to use this feature": "",
|
||||
"Message share": "",
|
||||
"Message text...": "",
|
||||
|
|
@ -3828,6 +3831,7 @@
|
|||
"Speech-to-Text Language": "",
|
||||
"Split": "",
|
||||
"Sponsor on GitHub": "",
|
||||
"SQL query": "",
|
||||
"Staan API Key": "",
|
||||
"Standard": "",
|
||||
"Start a new conversation": "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue