- PlayerPersistent: widget compact pill + panneau extensible, aligné au contenu - BookPlayer: ajustements scroll mode, suppression bordures boutons - UnoCSS: ajout border-none au shortcut btn-ghost - GrateWizard: suppression composants, services et utils obsolètes - Ajout du PDF source des paroles (media/) - Mises à jour config et dépendances Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
631 B
TypeScript
18 lines
631 B
TypeScript
export function useGrateWizard() {
|
|
const appConfig = useAppConfig()
|
|
const { url, popup } = appConfig.gratewizard as { url: string; popup: { width: number; height: number } }
|
|
|
|
function launch(e?: Event) {
|
|
const left = Math.round((window.screen.width - popup.width) / 2)
|
|
const top = Math.round((window.screen.height - popup.height) / 2)
|
|
const win = window.open(
|
|
url,
|
|
'grateWizard',
|
|
`width=${popup.width},height=${popup.height},left=${left},top=${top},menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes`,
|
|
)
|
|
if (win) e?.preventDefault()
|
|
}
|
|
|
|
return { url, launch }
|
|
}
|