From 84934504c796acdf2ceca0dae1e40c3bb9b298f9 Mon Sep 17 00:00:00 2001 From: Isaiah Date: Mon, 27 Nov 2023 16:52:12 -0500 Subject: [PATCH] Removed unused format options --- components.d.ts | 3 --- src/tools/yaml-viewer/yaml-models.ts | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/components.d.ts b/components.d.ts index 335d3bc8..4454e044 100644 --- a/components.d.ts +++ b/components.d.ts @@ -91,7 +91,6 @@ declare module '@vue/runtime-core' { 'IconMdi:contentCopy': typeof import('~icons/mdi/content-copy')['default'] 'IconMdi:kettleSteamOutline': typeof import('~icons/mdi/kettle-steam-outline')['default'] IconMdiArrowDown: typeof import('~icons/mdi/arrow-down')['default'] - IconMdiArrowRight: typeof import('~icons/mdi/arrow-right')['default'] IconMdiArrowRightBottom: typeof import('~icons/mdi/arrow-right-bottom')['default'] IconMdiCamera: typeof import('~icons/mdi/camera')['default'] IconMdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] @@ -171,8 +170,6 @@ declare module '@vue/runtime-core' { NTable: typeof import('naive-ui')['NTable'] NTag: typeof import('naive-ui')['NTag'] NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default'] - NUpload: typeof import('naive-ui')['NUpload'] - NUploadDragger: typeof import('naive-ui')['NUploadDragger'] OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default'] PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default'] PdfSignatureChecker: typeof import('./src/tools/pdf-signature-checker/pdf-signature-checker.vue')['default'] diff --git a/src/tools/yaml-viewer/yaml-models.ts b/src/tools/yaml-viewer/yaml-models.ts index 9160255e..4aa53403 100644 --- a/src/tools/yaml-viewer/yaml-models.ts +++ b/src/tools/yaml-viewer/yaml-models.ts @@ -1,4 +1,5 @@ import { type MaybeRef, get } from '@vueuse/core'; + import yaml from "js-yaml"; export { formatYaml }; @@ -10,14 +11,13 @@ function formatYaml({ }: { rawYaml: MaybeRef sortKeys?: MaybeRef - stripComments?: MaybeRef indentSize?: MaybeRef }) { const parsedYaml = yaml.load(get(rawYaml)); const formattedYAML = yaml.dump(parsedYaml, { - indent: get(indentSize), - sortKeys: get(sortKeys) + sortKeys: get(sortKeys), + indent: get(indentSize) }); return formattedYAML