Initial commit: breakpilot-lehrer - Lehrer KI Platform
Services: Admin-Lehrer, Backend-Lehrer, Studio v2, Website, Klausur-Service, School-Service, Voice-Service, Geo-Service, BreakPilot Drive, Agent-Core Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
klausur-service/frontend/src/main.tsx
Normal file
19
klausur-service/frontend/src/main.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App'
|
||||
import './styles/global.css'
|
||||
|
||||
// Listen for auth token from parent Studio window
|
||||
window.addEventListener('message', (event) => {
|
||||
const data = event.data as { type?: string; token?: string }
|
||||
if (data?.type === 'AUTH_TOKEN' && data?.token) {
|
||||
localStorage.setItem('auth_token', data.token)
|
||||
console.log('Auth token received from Studio')
|
||||
}
|
||||
})
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
)
|
||||
Reference in New Issue
Block a user