feat: add dasyui for backpex

This commit is contained in:
Moritz 2025-07-03 16:37:54 +02:00
parent 5d0e8b5f78
commit a958b49a7c
Signed by: moritz
GPG key ID: 1020A035E5DD0824
7 changed files with 35 additions and 3 deletions

View file

@ -23,6 +23,9 @@ import {LiveSocket} from "phoenix_live_view"
import { Hooks as BackpexHooks } from 'backpex'
import topbar from "../vendor/topbar"
// Set stored theme as soon as possible
BackpexHooks.BackpexThemeSelector.setStoredTheme()
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, {
longPollFallbackMs: 2500,