From 3b3e95e23a2169cac2cdf9f410ed70285d874abd Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sun, 13 Sep 2026 12:35:28 -0400 Subject: [PATCH] fix(cloudflare): proteger les scripts inline des pages du Rocket Loader Rocket Loader (Cloudflare) reecrit les balises script inline en type=...-text/javascript et les execute de facon differee, ce qui casse l'enregistrement des composants Alpine et l'init des pages lors d'un acces direct via le tunnel (ex. /settings ne se chargeait pas au complet). Ajout de data-cfasync=false sur les scripts inline des pages completes et des partiels du shell (settings, accounts, trash, workspace, board, gitea_workspace, welcome, import, page_editor_collection/embed, _database_table_scripts, _notification_bell, public_page, local_workspace). Les fragments charges via HTMX restent inchanges. --- app/templates/_database_table_scripts.html | 2 +- app/templates/_notification_bell.html | 2 +- app/templates/accounts.html | 2 +- app/templates/board.html | 2 +- app/templates/gitea_workspace.html | 2 +- app/templates/import.html | 2 +- app/templates/local_workspace.html | 2 +- app/templates/page_editor_collection.html | 2 +- app/templates/page_editor_embed.html | 2 +- app/templates/public_page.html | 2 +- app/templates/settings.html | 2 +- app/templates/trash.html | 2 +- app/templates/welcome.html | 2 +- app/templates/workspace.html | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/templates/_database_table_scripts.html b/app/templates/_database_table_scripts.html index ffffe4d..8fc38f2 100644 --- a/app/templates/_database_table_scripts.html +++ b/app/templates/_database_table_scripts.html @@ -1,6 +1,6 @@ - - +
+ + {% endblock %} {% block scripts %} {% include '_page_editor_scripts.html' %} diff --git a/app/templates/public_page.html b/app/templates/public_page.html index ea13d7c..aa6be99 100644 --- a/app/templates/public_page.html +++ b/app/templates/public_page.html @@ -173,7 +173,7 @@ -