fix: Alpine.data() avec x-data="wsInit" (sans parenthèses) + cache busting v2.4.6
FlowDeck CI / test (push) Failing after 5s
FlowDeck CI / docker (push) Has been skipped

- Changé function wsInit() → Alpine.data('wsInit', ...) avec addEventListener('alpine:init')
- x-data="wsInit()" → x-data="wsInit" (syntaxe correcte pour Alpine.data)
- Ajouté ?v=2.4.6 sur CSS et JS pour bust le cache navigateur
- Version bumpée à 2.4.6
This commit is contained in:
2026-07-12 19:55:30 -04:00
parent dc630c9ba7
commit cce132d771
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ async def lifespan(_app: FastAPI):
app = FastAPI(
title="FlowDeck",
version="2.4.5",
version="2.4.6",
docs_url="/docs" if settings.log_level == "DEBUG" else None,
redoc_url=None,
lifespan=lifespan,
+2 -2
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlowDeck</title>
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
<link rel="stylesheet" href="/static/css/app.css">
<link rel="stylesheet" href="/static/css/app.css?v=2.4.6">
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js" defer></script>
@@ -976,7 +976,7 @@
}, 300);
});
</script>
<script src="/static/js/app.js" defer></script>
<script src="/static/js/app.js?v=2.4.6" defer></script>
{% block scripts %}{% endblock %}
</body>
</html>
+5 -6
View File
@@ -336,7 +336,7 @@
.preview-leave-end{transform:translateX(100%);opacity:0;}
</style>
<div class="ws-split" x-data="wsInit()"
<div class="ws-split" x-data="wsInit"
@dragover.prevent="onDragOver($event)"
@dragleave="onDragLeave($event)"
@drop.prevent="onDrop($event)"
@@ -867,8 +867,8 @@
</div><!-- /ws-split -->
<script>
function wsInit() {
return {
document.addEventListener('alpine:init', () => {
Alpine.data('wsInit', () => ({
tree:[],
displayTree:[],
breadcrumb: [],
@@ -2388,8 +2388,7 @@ function wsInit() {
this.selectedIdsCount = Object.keys(this.selectedIds).length;
}
};
}
}))
})
</script>
{% endblock %}