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(
|
app = FastAPI(
|
||||||
title="FlowDeck",
|
title="FlowDeck",
|
||||||
version="2.4.5",
|
version="2.4.6",
|
||||||
docs_url="/docs" if settings.log_level == "DEBUG" else None,
|
docs_url="/docs" if settings.log_level == "DEBUG" else None,
|
||||||
redoc_url=None,
|
redoc_url=None,
|
||||||
lifespan=lifespan,
|
lifespan=lifespan,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>FlowDeck</title>
|
<title>FlowDeck</title>
|
||||||
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
|
<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]"></script>
|
||||||
<script src="https://unpkg.com/[email protected]" defer></script>
|
<script src="https://unpkg.com/[email protected]" defer></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js" defer></script>
|
<script src="https://cdn.jsdelivr.net/npm/[email protected]/Sortable.min.js" defer></script>
|
||||||
@@ -976,7 +976,7 @@
|
|||||||
}, 300);
|
}, 300);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/js/app.js" defer></script>
|
<script src="/static/js/app.js?v=2.4.6" defer></script>
|
||||||
{% block scripts %}{% endblock %}
|
{% block scripts %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -336,7 +336,7 @@
|
|||||||
.preview-leave-end{transform:translateX(100%);opacity:0;}
|
.preview-leave-end{transform:translateX(100%);opacity:0;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="ws-split" x-data="wsInit()"
|
<div class="ws-split" x-data="wsInit"
|
||||||
@dragover.prevent="onDragOver($event)"
|
@dragover.prevent="onDragOver($event)"
|
||||||
@dragleave="onDragLeave($event)"
|
@dragleave="onDragLeave($event)"
|
||||||
@drop.prevent="onDrop($event)"
|
@drop.prevent="onDrop($event)"
|
||||||
@@ -867,8 +867,8 @@
|
|||||||
</div><!-- /ws-split -->
|
</div><!-- /ws-split -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function wsInit() {
|
document.addEventListener('alpine:init', () => {
|
||||||
return {
|
Alpine.data('wsInit', () => ({
|
||||||
tree:[],
|
tree:[],
|
||||||
displayTree:[],
|
displayTree:[],
|
||||||
breadcrumb: [],
|
breadcrumb: [],
|
||||||
@@ -2388,8 +2388,7 @@ function wsInit() {
|
|||||||
this.selectedIdsCount = Object.keys(this.selectedIds).length;
|
this.selectedIdsCount = Object.keys(this.selectedIds).length;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
}))
|
||||||
|
})
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user