diff --git a/app.vue b/app.vue index 439cfc5..5799e0e 100644 --- a/app.vue +++ b/app.vue @@ -13,6 +13,8 @@ const copyImageLabel = ref("Copy"); const isQRCodeEmpty = computed(() => !qrCode.value); const qrCodeSrc = computed(() => qrCode.value ?? "/default.webp"); +const isApiModelOpen = ref(false); + const state = reactive({ logo: undefined, format: IMAGE_FORMATS[0], @@ -92,6 +94,9 @@ const copyQRCode = async () => { const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1); const upperCase = (str: string) => str.toUpperCase(); + +const arrayToUnion = (array: string[]) => + array.map((x) => `"${x}"`).join(" | ");