- Postiz publishing now selects exact channels by integration id; identifier mapping fixes instagram-standalone (was 'not connected') and multiple channels per network (was first-only); settings.__type uses the real identifier - Publish modal lists all channels, DD/MM/YYYY + HH:MM scheduling with validation, surfaces backend errors and a success confirmation - Remove AWS/S3 clip backup and ElevenLabs voice dubbing (server, UI, tests, docs) - Boot straight into the app; remove the landing/launch screen - CI backend-tests runs in a python:3.11-slim container (Forgejo has no 3.11 cache)
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
import { StrictMode, useState, useEffect, lazy, Suspense } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import './index.css'
|
|
import { AuthProvider } from './contexts/AuthContext'
|
|
import { applyConsent } from './lib/consent'
|
|
import CookieBanner from './components/CookieBanner'
|
|
|
|
const App = lazy(() => import('./App.jsx'))
|
|
const Legal = lazy(() => import('./Legal.jsx'))
|
|
|
|
// Boot straight into the app. Only #legal is still a distinct view; every
|
|
// other hash (including #app, #app?…) renders App.
|
|
function Root() {
|
|
const [isLegal, setIsLegal] = useState(() => window.location.hash === '#legal')
|
|
|
|
useEffect(() => {
|
|
const handleHashChange = () => setIsLegal(window.location.hash === '#legal')
|
|
window.addEventListener('hashchange', handleHashChange)
|
|
return () => window.removeEventListener('hashchange', handleHashChange)
|
|
}, [])
|
|
|
|
return isLegal ? <Legal /> : <App />
|
|
}
|
|
|
|
// Start whatever the visitor previously agreed to. Nothing at all on a first
|
|
// visit: index.html only publishes the analytics initialiser, it never runs it.
|
|
applyConsent();
|
|
|
|
createRoot(document.getElementById('root')).render(
|
|
<StrictMode>
|
|
<AuthProvider>
|
|
<Suspense fallback={<div className="min-h-screen bg-paper flex items-center justify-center text-muted text-sm lowercase">loading…</div>}>
|
|
<Root />
|
|
</Suspense>
|
|
<CookieBanner />
|
|
</AuthProvider>
|
|
</StrictMode>,
|
|
)
|