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:
parent
c32d7d7486
commit
ba4107348f
11 changed files with 323 additions and 1054 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue