Public Access
feat: enhance setup process with SMTP configuration and token generation
fix: require authentication for certain routes and improve exam data handling chore: update .gitignore to include additional database files
This commit is contained in:
1 parent
ca9c646b65
commit
83bb412b35
8 files changed
+115
-28
No files matched your search
@@ -6,7 +6,7 @@ import { loadState } from '../utils/storage'
|
||||
import { formatDate, formatTime } from '../utils/formatting'
|
||||
|
||||
interface Props {
|
||||
onLoadExam: (exam: Exam) => void
|
||||
onLoadExam: (exam: Exam, saveToWorkspace?: boolean) => void
|
||||
history: HistoryEntry[]
|
||||
onResume: () => void
|
||||
onClearHistory: () => void
|
||||
@@ -32,7 +32,7 @@ export default function Landing({ onLoadExam, history, onResume, onClearHistory,
|
||||
const data = JSON.parse(text) as unknown
|
||||
const msg = validateExam(data)
|
||||
if (msg) throw new Error(msg)
|
||||
onLoadExam(parseExam(data))
|
||||
onLoadExam(parseExam(data), true)
|
||||
} catch (e) {
|
||||
setErr(t('landing.loadError', { message: (e as Error).message }))
|
||||
}
|
||||
|
||||
@@ -274,7 +274,6 @@ export default function SetupWizard({ onComplete }: Readonly<Props>) {
|
||||
value={appUrl}
|
||||
onChange={(e) => setAppUrl(e.target.value)}
|
||||
placeholder="https://brainwave.example.com"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user