From bde6e2dc44dddb04c46f2199b4f22a90b7b70717 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Sat, 16 Dec 2023 11:19:03 -0500 Subject: [PATCH] chore: comments --- package.json | 1 + pnpm-lock.yaml | 13 ++++++++++++ src/components/MarkdownUi.vue | 7 ++++++- src/composables/index.ts | 2 ++ src/composables/useKeyboardShortcuts.ts | 27 +++++++++++++++++++++++++ src/composables/useMarkdownActions.ts | 12 ++++------- 6 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 src/composables/useKeyboardShortcuts.ts diff --git a/package.json b/package.json index a181aa65..e2fdaf57 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "dependencies": { "@sindresorhus/slugify": "^2.2.1", "@vueuse/core": "^10.7.0", + "@vueuse/math": "^10.7.0", "html-format": "^1.1.2", "markdown-it": "^14.0.0", "markdown-it-abbr": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2008259e..5cb9824c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,9 @@ dependencies: '@vueuse/core': specifier: ^10.7.0 version: 10.7.0(vue@3.3.11) + '@vueuse/math': + specifier: ^10.7.0 + version: 10.7.0(vue@3.3.11) html-format: specifier: ^1.1.2 version: 1.1.2 @@ -1715,6 +1718,16 @@ packages: - vue dev: false + /@vueuse/math@10.7.0(vue@3.3.11): + resolution: {integrity: sha512-JTHFTQ/Mr5nGe6YYC30evYna+981TR6HYFvjD83Aay2dLIEVZGRwM8+f6IxOGcoq9u95hFkhOcer/VsjIDvETg==} + dependencies: + '@vueuse/shared': 10.7.0(vue@3.3.11) + vue-demi: 0.14.6(vue@3.3.11) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: false + /@vueuse/metadata@10.7.0: resolution: {integrity: sha512-GlaH7tKP2iBCZ3bHNZ6b0cl9g0CJK8lttkBNUX156gWvNYhTKEtbweWLm9rxCPIiwzYcr/5xML6T8ZUEt+DkvA==} dev: false diff --git a/src/components/MarkdownUi.vue b/src/components/MarkdownUi.vue index e98e0e88..28d29573 100644 --- a/src/components/MarkdownUi.vue +++ b/src/components/MarkdownUi.vue @@ -21,6 +21,7 @@ data-testid="markdown-editor" >