GrateWizard bloc dédié, messagerie libre, page numérique 3 piliers
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- GrateWizard : lancement URL simple (plus de popup embed), bloc dédié violet sur la home entre axes et événement - Messagerie : plus de champs obligatoires, plus de champ email séparé, hint email dans le message, remerciement onboarding - Page /numerique : 3 piliers (Logiciel libre, WoT, Cloud libre) avec projets associés, remplace les extraits livre hors-sujet - Admin : carte Messages ajoutée au dashboard - Safelist icônes complétée Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,19 +1,10 @@
|
||||
export function useGrateWizard() {
|
||||
const appConfig = useAppConfig()
|
||||
const { url, popup } = appConfig.gratewizard as { url: string; popup: { width: number; height: number } }
|
||||
const { url } = appConfig.gratewizard as { url: string; popup: { width: number; height: number } }
|
||||
|
||||
function launch(e?: Event) {
|
||||
const w = popup.width
|
||||
const h = popup.height
|
||||
const left = Math.round((window.screen.width - w) / 2)
|
||||
const top = Math.round((window.screen.height - h) / 2)
|
||||
const embedUrl = `${url}?embed=true&hideTabBar=true&tab=mn`
|
||||
const win = window.open(
|
||||
embedUrl,
|
||||
'grateWizard',
|
||||
`width=${w},height=${h},left=${left},top=${top},menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=yes`,
|
||||
)
|
||||
if (win) e?.preventDefault()
|
||||
window.open(url, '_blank', 'noopener,noreferrer')
|
||||
e?.preventDefault()
|
||||
}
|
||||
|
||||
return { url, launch }
|
||||
|
||||
Reference in New Issue
Block a user