Done some more upgrades

This commit is contained in:
Colin Dawson 2026-02-19 21:56:24 +00:00
parent d96a578371
commit b419993e98
3 changed files with 29 additions and 14 deletions

View File

@ -36,6 +36,19 @@
} }
} }
</style> </style>
<script>
(function () {
try {
const stored = localStorage.getItem("theme");
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)",
).matches;
const theme = stored || (prefersDark ? "dark" : "light");
document.documentElement.setAttribute("data-bs-theme", theme);
} catch {}
})();
</script>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View File

@ -4,7 +4,7 @@
"private": true, "private": true,
"dependencies": { "dependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@ckeditor/ckeditor5-react": "^10.0.0", "@ckeditor/ckeditor5-react": "^11.0.1",
"@fortawesome/fontawesome-pro": "^6.7.2", "@fortawesome/fontawesome-pro": "^6.7.2",
"@fortawesome/fontawesome-svg-core": "^6.7.2", "@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2", "@fortawesome/free-solid-svg-icons": "^6.7.2",
@ -17,30 +17,28 @@
"@testing-library/jest-dom": "^6.6.3", "@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.2", "@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.5.2", "@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.14",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/lodash.debounce": "^4.0.9", "@types/lodash.debounce": "^4.0.9",
"@types/react": "^18.3.27", "@types/react": "^18.3.27",
"@types/react-dom": "^18.3.7", "@types/react-dom": "^18.3.7",
"axios": "^1.7.9", "axios": "^1.13.5",
"bootstrap": "^5.3.8", "bootstrap": "^5.3.8",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"ckeditor5": "^47.4.0", "ckeditor5": "^47.5.0",
"ckeditor5-premium-features": "^47.4.0", "ckeditor5-premium-features": "^47.5.0",
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"cross-env": "^7.0.3",
"date-fns": "^4.1.0", "date-fns": "^4.1.0",
"html-react-parser": "^5.2.15", "html-react-parser": "^5.2.17",
"i18next": "^25.8.0", "i18next": "^25.8.11",
"i18next-http-backend": "^3.0.2", "i18next-http-backend": "^3.0.2",
"joi": "^17.13.3", "joi": "^17.13.3",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"jwt-decode": "^4.0.0", "jwt-decode": "^4.0.0",
"lodash.debounce": "^4.0.8", "lodash.debounce": "^4.0.8",
"nodemon": "^3.1.11", "nodemon": "^3.1.11",
"react": "^18.3.1", "react": "^19.2.4",
"react-bootstrap": "^2.10.8", "react-bootstrap": "^2.10.8",
"react-dom": "^18.3.1", "react-dom": "^19.2.4",
"react-helmet-async": "^2.0.5", "react-helmet-async": "^2.0.5",
"react-i18next": "^16.5.4", "react-i18next": "^16.5.4",
"react-router-dom": "^7.13.0", "react-router-dom": "^7.13.0",
@ -81,7 +79,7 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.13.5", "@types/node": "^25.3.0",
"@types/react-toggle": "^4.0.5", "@types/react-toggle": "^4.0.5",
"@vitejs/plugin-react": "^5.1.4", "@vitejs/plugin-react": "^5.1.4",
"i18n-unused": "^0.19.0", "i18n-unused": "^0.19.0",

View File

@ -1,10 +1,14 @@
@import "../../node_modules/bootstrap/scss/functions"; // Enable Bootstrap color modes
$color-mode-type: media-query; // or "class" if you prefer manual control
@import "bootstrap/scss/bootstrap";
//default variable overrides //default variable overrides
@import "./_esuiteVariables.scss"; @import "./_esuiteVariables.scss";
@import "../../node_modules/bootstrap/scss/variables"; //@import "../../node_modules/bootstrap/scss/functions";
@import "../../node_modules/bootstrap/scss/variables-dark"; //@import "../../node_modules/bootstrap/scss/variables";
//@import "../../node_modules/bootstrap/scss/variables-dark";
@import "../../node_modules/bootstrap/scss/maps"; @import "../../node_modules/bootstrap/scss/maps";
@import "../../node_modules/bootstrap/scss/mixins"; @import "../../node_modules/bootstrap/scss/mixins";