fix: Alpine.data() avec x-data="wsInit" (sans parenthèses) + cache busting v2.4.6
- 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:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user