Merge branch 'worktree-agent-ab18ecf78a0bb887b' into claude/relaxed-maxwell-c10wof
# Conflicts: # src/i18n/locales/ar.ts # src/i18n/locales/de.ts # src/i18n/locales/en.ts # src/i18n/locales/es.ts # src/i18n/locales/fr.ts # src/i18n/locales/hi.ts # src/i18n/locales/id.ts # src/i18n/locales/it.ts # src/i18n/locales/ja.ts # src/i18n/locales/ko.ts # src/i18n/locales/nl.ts # src/i18n/locales/pl.ts # src/i18n/locales/pt.ts # src/i18n/locales/ru.ts # src/i18n/locales/th.ts # src/i18n/locales/tr.ts # src/i18n/locales/vi.ts # src/i18n/locales/zh.ts # src/pages/SettingsPage.tsx
This commit is contained in:
42 files changed
+4983
-32
No files matched your search
@@ -20,6 +20,8 @@ import { useEscape } from '../lib/escape'
|
||||
import { useBackToClose } from '../lib/backNav'
|
||||
import { useMedia } from '../store'
|
||||
import { mergeImportedSettings } from '../lib/challenges'
|
||||
import { BugReportRow } from '../components/moderation/BugReport'
|
||||
import { alertsSummary, useAdminAlerts } from '../components/moderation/useAdminAlerts'
|
||||
|
||||
type Message = { kind: 'ok' | 'error'; text: string }
|
||||
|
||||
@@ -53,6 +55,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
if (signedIn) void isAdmin().then(setAdmin)
|
||||
else setAdmin(false)
|
||||
}, [signedIn])
|
||||
const adminHint = alertsSummary(useAdminAlerts(admin))
|
||||
const fileRef = useRef<HTMLInputElement>(null)
|
||||
const [pending, setPending] = useState<ParsedBackup>()
|
||||
const [message, setMessage] = useState<Message>()
|
||||
@@ -188,7 +191,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
<>
|
||||
<SectionTitle>{t('settings.admin')}</SectionTitle>
|
||||
<div className="card overflow-hidden">
|
||||
<Row icon={<ShieldCheck size={19} />} title={t('admin.title')} onClick={onOpenAdmin} />
|
||||
<Row icon={<ShieldCheck size={19} />} title={t('admin.title')} hint={adminHint} onClick={onOpenAdmin} />
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
@@ -505,6 +508,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
|
||||
<SectionTitle>{t('settings.about')}</SectionTitle>
|
||||
<div className="card divide-y divide-line overflow-hidden">
|
||||
<BugReportRow />
|
||||
{(
|
||||
[
|
||||
['/privacy.html', t('legal.privacy')],
|
||||
|
||||
Reference in new issue
Block a user