From c990382085c8a3730c43b0be68493aef1a810af1 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 16 Jul 2026 14:12:53 -0400 Subject: [PATCH] fix: use Alpine.data() to register giteaWorkspace component Replaced global function giteaWorkspace() with Alpine.data('giteaWorkspace', ...) registered via document.addEventListener('alpine:init', ...). This is the recommended Alpine 3 approach that guarantees the component factory is available before Alpine processes x-data directives. Changed x-data="giteaWorkspace()" to x-data="giteaWorkspace" (Alpine.data calls the factory automatically, no parentheses needed). --- app/templates/gitea_workspace.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/templates/gitea_workspace.html b/app/templates/gitea_workspace.html index c61886f..f4cac8c 100644 --- a/app/templates/gitea_workspace.html +++ b/app/templates/gitea_workspace.html @@ -36,7 +36,8 @@ -
+