mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 16:24:31 -04:00
Feature/misc tasks (#864)
* feat(backend): 🌐 make foods/ingredients translatable * feat(backend): ✨ add remember me support for login - 14 days * feat(frontend): 💄 add persistent darkmode for user sessions * capture #859 * feat(frontend): 💄 add basic open-graph data for site links
This commit is contained in:
12
frontend/plugins/dark-mode.client.ts
Normal file
12
frontend/plugins/dark-mode.client.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { useDark } from "@vueuse/core";
|
||||
|
||||
export default ({ $vuetify }: any) => {
|
||||
const isDark = useDark();
|
||||
console.log("isDark Plugin", isDark);
|
||||
|
||||
if (isDark.value) {
|
||||
$vuetify.theme.dark = true;
|
||||
} else {
|
||||
$vuetify.theme.dark = false;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user