mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-15 00:30:50 +00:00
Toutes les copies invite_password_* partent au lancement de l'app, plus seulement celle de l'arbre rouvert. À la déconnexion et à la suppression du compte, les brouillons d'édition, la fiche « c'est moi » et le profil sont effacés. Le prénom du contributeur, la langue et les accueils vus restent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.1 KiB
React
39 lines
1.1 KiB
React
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import faviconUrl from './assets/Parenthese logo.svg?url'
|
|
import './assets/fonts/fonts.css'
|
|
import './index.css'
|
|
import App from './App.jsx'
|
|
import ErrorBoundary from './components/ErrorBoundary.jsx'
|
|
import BootLoader from './components/BootLoader.jsx'
|
|
import { initAppAnalytics } from './utils/analytics.js'
|
|
import { sweepLegacyLocalData } from './utils/localHygiene.js'
|
|
|
|
const setFavicon = (href) => {
|
|
if (typeof document === 'undefined') return
|
|
|
|
const upsertLink = (selector, rel, type) => {
|
|
const link = document.querySelector(selector) ?? document.createElement('link')
|
|
link.rel = rel
|
|
if (type) link.type = type
|
|
link.href = href
|
|
if (!link.parentNode) document.head.appendChild(link)
|
|
}
|
|
|
|
upsertLink(`link[rel~="icon"]`, 'icon', 'image/svg+xml')
|
|
upsertLink(`link[rel="apple-touch-icon"]`, 'apple-touch-icon')
|
|
}
|
|
|
|
sweepLegacyLocalData()
|
|
setFavicon(faviconUrl)
|
|
initAppAnalytics()
|
|
|
|
createRoot(document.getElementById('root')).render(
|
|
<StrictMode>
|
|
<ErrorBoundary>
|
|
<App />
|
|
<BootLoader />
|
|
</ErrorBoundary>
|
|
</StrictMode>,
|
|
)
|