(user settings) init user settings with .litenote.json

This commit is contained in:
2021-03-24 22:33:50 +01:00
parent 55faf04d4f
commit 556ddb7f1e
9 changed files with 96 additions and 31 deletions

View File

@@ -47,6 +47,7 @@ import { useNote } from '@/hooks/useNote.hook'
import { useMarkdown } from '@/hooks/useMarkdown.hook'
import { useLinks } from '@/hooks/useLinks.hook'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
import { useUserSettings } from '@/modules/user/hooks/useUserSettings.hook'
const StackedNote = defineAsyncComponent(() =>
import('@/components/StackedNote.vue')
@@ -66,6 +67,7 @@ export default defineComponent({
setup(props) {
const refProps = toRefs(props)
const store = useUserRepoStore()
useUserSettings()
const { renderString } = useMarkdown()
const { listenToClick } = useLinks('note-display')
const { stackedNotes, resetStackedNotes } = useQueryStackedNotes()
@@ -105,6 +107,7 @@ export default defineComponent({
renderedContent,
stackedNotes,
resetStackedNotes,
userSettings: computed(() => store.userSettings),
...noteProps
}
}
@@ -115,6 +118,8 @@ export default defineComponent({
$header-height: 40px;
.flux-note {
font-family: var(--font-family);
display: flex;
flex: 1;