feat(frontend): i18n, theming and account/browser/admin UI updates
- add French-keyed i18n with an English dictionary, plus theme and locale helpers, applied across all pages and components - account page: theme and language selectors and a two-column layout - browser: per-folder media type filters and unread chat badges - admin: audit log filtered by user and action through dropdowns - global API and type updates to match the new backend endpoints
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
(function () {
|
||||
try {
|
||||
var stored = localStorage.getItem("cohaise-theme");
|
||||
var theme = stored === "light" || stored === "dark" ? stored : "system";
|
||||
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||
var theme = stored || (prefersDark ? "dark" : "light");
|
||||
if (theme === "dark") document.documentElement.classList.add("dark");
|
||||
var dark = theme === "dark" || (theme === "system" && prefersDark);
|
||||
document.documentElement.classList.toggle("dark", dark);
|
||||
} catch (error) {
|
||||
void error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user