WIP frontend isn't completely broken now
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.
This commit is contained in:
Binary file not shown.
@@ -1,10 +1,5 @@
|
||||
import htmx from 'htmx.org';
|
||||
|
||||
// import assets so they get named with a content hash that busts caches
|
||||
// import '../css/styles.css';
|
||||
|
||||
import './localTimeController';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
htmx: typeof htmx;
|
||||
@@ -13,5 +8,16 @@ declare global {
|
||||
|
||||
window.htmx = htmx;
|
||||
|
||||
// eslint-disable-next-line import/first
|
||||
import 'htmx.org/dist/ext/sse';
|
||||
// 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';
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
"name": "crawlnicle-frontend",
|
||||
"module": "js/index.ts",
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tailwindcss/typography": "^0.5.13",
|
||||
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
||||
"@typescript-eslint/parser": "^7.8.0",
|
||||
"bun-types": "^1.1.8",
|
||||
"eslint": "^9.2.0",
|
||||
"@tailwindcss/forms": "^0.5.10",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"bun-types": "^1.2.2",
|
||||
"eslint": "^9.20.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-standard-with-typescript": "latest",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-n": "^17.6.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"prettier": "^3.2.5",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"typescript": "^5.4.5"
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-n": "^17.15.1",
|
||||
"eslint-plugin-prettier": "^5.2.3",
|
||||
"eslint-plugin-promise": "^6.6.0",
|
||||
"prettier": "^3.4.2",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"typescript": "^5.7.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
const plugin = require('tailwindcss/plugin');
|
||||
import plugin from 'tailwindcss/plugin';
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: ['./src/**/*.rs'],
|
||||
content: ['../src/**/*.rs'],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user