Download webui/src/features/settings/FileAuditSection.jsx from a3216/ds2api: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/a3216/ds2api/resolve/ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/features/settings/FileAuditSection.jsx
- Command line
-
hf download hf://spaces/a3216/ds2api@ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/features/settings/FileAuditSection.jsx
-
curl -L -o FileAuditSection.jsx https://huggingface.co/spaces/a3216/ds2api/resolve/ce5a019598af8a3a8fa70d3880098df3e850ecd7/webui/src/features/settings/FileAuditSection.jsx
1.32 kB
| export default function FileAuditSection({ t, form, setForm }) { | |
| return ( | |
| <div className="bg-card border border-border rounded-xl p-5 space-y-4"> | |
| <div className="space-y-1"> | |
| <h3 className="font-semibold">{t('settings.fileAuditTitle')}</h3> | |
| <p className="text-sm text-muted-foreground">{t('settings.fileAuditDesc')}</p> | |
| </div> | |
| <label className="flex items-start gap-3 rounded-lg border border-border bg-background/60 p-4"> | |
| <input | |
| type="checkbox" | |
| checked={Boolean(form.file_audit?.strict)} | |
| onChange={(e) => setForm((prev) => ({ | |
| ...prev, | |
| file_audit: { | |
| ...prev.file_audit, | |
| strict: e.target.checked, | |
| }, | |
| }))} | |
| className="mt-1 h-4 w-4 rounded border-border" | |
| /> | |
| <div className="space-y-1"> | |
| <span className="text-sm font-medium block">{t('settings.fileAuditEnabled')}</span> | |
| <span className="text-xs text-muted-foreground block">{t('settings.fileAuditHelp')}</span> | |
| </div> | |
| </label> | |
| </div> | |
| ) | |
| } | |