mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 07:09:41 +02: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:
parent
c32d7d7486
commit
ba4107348f
11 changed files with 323 additions and 1054 deletions
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;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue