diff --git a/.prettierrc.json b/.prettierrc.json index ad12547..2f089eb 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/prettierrc", "semi": false, - "tabWidth": 2, + "tabWidth": 4, "singleQuote": true, "printWidth": 100, "trailingComma": "none", diff --git a/src/App.vue b/src/App.vue index 18a34ae..6b49f23 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,11 +2,11 @@ import { activeNote, updateNote, notes, activeNotesSource, getNotes } from '@/composables/useNotes' import { viewModes, activeViewMode } from '@/composables/useViewMode' import { - getClientKey, - getEncryptionKey, - encryptionKey, - setClientKey, - passphraseRequired + getClientKey, + getEncryptionKey, + encryptionKey, + setClientKey, + passphraseRequired } from '@/composables/useEncryption' import { initializeSettings } from '@/composables/useSettings' import { windowIsMobile } from '@/utils/helpers' @@ -32,28 +32,28 @@ watch(width, () => (sideBarCollapsed.value = windowIsMobile())) // provide('firebaseAuthUI', firebaseAuthUI) watch( - [activeNotesSource, encryptionKey], - () => { - if (activeNotesSource.value === 'firebase') { - getClientKey() - getEncryptionKey() - } - getNotes() - }, - { immediate: true } + [activeNotesSource, encryptionKey], + () => { + if (activeNotesSource.value === 'firebase') { + getClientKey() + getEncryptionKey() + } + getNotes() + }, + { immediate: true } ) const passphrase = ref('') const passphraseValid = ref() const submitPassphrase = (close: () => void) => { - const setClientKeyResult = setClientKey(passphrase.value) - passphraseValid.value = setClientKeyResult - if (passphraseValid.value) close() + const setClientKeyResult = setClientKey(passphrase.value) + passphraseValid.value = setClientKeyResult + if (passphraseValid.value) close() } const loading = computed( - () => notes.value.length === 0 || passphraseRequired.value || !activeNotesSource.value + () => notes.value.length === 0 || passphraseRequired.value || !activeNotesSource.value ) provide('loading', loading) @@ -62,90 +62,90 @@ const topBarHeightWithSafeArea = computed(() => `calc(${topBarHeight}px + var(--