Create test notes on startup

This commit is contained in:
Joscha 2025-02-08 01:09:02 +01:00
parent 9e41b5920a
commit c2b4592bc9

View file

@ -3,6 +3,7 @@ import { Note, useNotesStore } from "@/stores/notes";
import { useReposStore } from "@/stores/repos";
import { useUiStore } from "@/stores/ui";
import { RiDeleteBinFill, RiNodeTree, RiSettings3Fill } from "@remixicon/vue";
import { onMounted } from "vue";
import CNavbarButton from "./CNavbarButton.vue";
import CNavbarDropdown from "./CNavbarDropdown.vue";
@ -37,6 +38,8 @@ function createSomeNotes() {
.sort((a, b) => a.rand - b.rand)
.map(({ it }) => it);
}
onMounted(() => createSomeNotes());
</script>
<template>