Still more work left with integrating apalis and need to fully update it. These changes are mostly for fixing the frontend I broke by eagerly updating everything.
24 lines
438 B
TypeScript
24 lines
438 B
TypeScript
import htmx from 'htmx.org';
|
|
|
|
declare global {
|
|
interface Window {
|
|
htmx: typeof htmx;
|
|
}
|
|
}
|
|
|
|
window.htmx = htmx;
|
|
|
|
// Wait for htmx to be fully initialized before loading extensions
|
|
document.addEventListener(
|
|
'htmx:load',
|
|
() => {
|
|
import('htmx.org/dist/ext/sse');
|
|
},
|
|
{ once: true }
|
|
);
|
|
|
|
// import assets so they get named with a content hash that busts caches
|
|
// import '../css/styles.css';
|
|
|
|
import './localTimeController';
|