mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
* 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
13 lines
255 B
TypeScript
13 lines
255 B
TypeScript
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;
|
|
}
|
|
};
|