1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +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:
Hayden 2021-12-04 16:06:24 -09:00 committed by GitHub
parent c32d7d7486
commit ba4107348f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 323 additions and 1054 deletions

View file

@ -62,6 +62,7 @@
<script lang="ts">
import { computed, defineComponent, onMounted, ref, useContext } from "@nuxtjs/composition-api";
import { useDark } from "@vueuse/core";
import AppHeader from "@/components/Layout/AppHeader.vue";
import AppSidebar from "@/components/Layout/AppSidebar.vue";
import TheSnackbar from "@/components/Layout/TheSnackbar.vue";
@ -78,7 +79,10 @@ export default defineComponent({
const isAdmin = computed(() => $auth.user?.admin);
const isDark = useDark();
function toggleDark() {
isDark.value = !$vuetify.theme.dark;
$vuetify.theme.dark = !$vuetify.theme.dark;
console.log("toggleDark");
}
@ -180,11 +184,5 @@ export default defineComponent({
],
};
},
head: {
title: "Home",
},
});
</script>
<style scoped>
</style>+
</script>