From 2880dd7a035a6412219217aa91f3854e38b879ea Mon Sep 17 00:00:00 2001 From: Marco Crapts Date: Sat, 9 Dec 2023 11:29:00 +0100 Subject: [PATCH] tabSize: 4 --- .prettierrc.json | 2 +- src/App.vue | 184 +++---- src/ckeditor/CKEditor.ts | 420 +++++++-------- src/ckeditor/ContextedPlugin.ts | 399 ++++++++------- src/components/Auth.vue | 186 +++---- src/components/Note/Autocomplete.vue | 76 +-- src/components/Note/NoteEditor.vue | 252 ++++----- src/components/Note/NoteReferences.vue | 30 +- src/components/Note/NoteToolbar.vue | 115 +++-- src/components/Search/SearchBar.vue | 111 ++-- src/components/Search/SearchResult.vue | 32 +- src/components/SideBar.vue | 128 ++--- src/components/SideBar/SideBarMenu.vue | 10 +- src/components/SideBar/SideBarMenuItem.vue | 18 +- src/components/Skeleton/SkeletonNote.vue | 46 +- .../Skeleton/SkeletonSidebarItem.vue | 20 +- src/components/Skeleton/SkeletonTopBar.vue | 8 +- src/components/TopBar.vue | 154 +++--- src/components/TopBar/Hamburger.vue | 76 +-- src/components/TopBar/Logo.vue | 2 +- src/components/TopBar/Settings.vue | 48 +- .../TopBar/Settings/AccountSettings.vue | 382 +++++++------- .../TopBar/Settings/NotesSourceSwitcher.vue | 24 +- src/components/TopBar/Settings/SignOut.vue | 48 +- src/components/ViewModes/ListView.vue | 173 +++---- src/components/ViewModes/Mindmap.vue | 481 +++++++++--------- src/components/ViewModes/Note.vue | 92 ++-- src/components/ui/UIAlert.vue | 40 +- src/components/ui/UIBadge.vue | 58 +-- src/components/ui/UIButton.vue | 100 ++-- src/components/ui/UIButtonGroup.vue | 2 +- src/components/ui/UICard.vue | 12 +- src/components/ui/UIDropdown.vue | 18 +- src/components/ui/UIDropdownItem.vue | 6 +- src/components/ui/UIInputCheckbox.vue | 40 +- src/components/ui/UIInputText.vue | 62 +-- src/components/ui/UIMenu.vue | 12 +- src/components/ui/UIMenuItem.vue | 40 +- src/components/ui/UIModal.vue | 108 ++-- src/components/ui/UITab.vue | 12 +- src/components/ui/UITable.vue | 22 +- src/components/ui/UITabs.vue | 2 +- src/composables/useEncryption.ts | 188 +++---- src/composables/useFirebase.ts | 66 +-- src/composables/useNotes.ts | 364 ++++++------- src/composables/useSettings.ts | 24 +- src/composables/useViewMode.ts | 6 +- src/main.ts | 6 +- src/style.scss | 136 ++--- src/types.d.ts | 86 ++-- src/utils/crypto.ts | 14 +- src/utils/defaultNotes.ts | 28 +- src/utils/helpers.ts | 22 +- src/utils/markdown.ts | 62 +-- 54 files changed, 2572 insertions(+), 2481 deletions(-) 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(--