From c81932d3831e3f26fba93bd962c24c30f2b09de4 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:35:44 +0530 Subject: [PATCH] fix feedback --- .vitepress/config.mts | 8 ++++---- .vitepress/theme/components/Feedback.vue | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 19b41a11e..e02dd6861 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -68,10 +68,10 @@ export default withPwa( ], }), ], - build: { - // Shut the fuck up - chunkSizeWarningLimit: Infinity, - }, + // build: { + // // Shut the fuck up + // chunkSizeWarningLimit: Infinity, + // }, }, themeConfig: { search: { diff --git a/.vitepress/theme/components/Feedback.vue b/.vitepress/theme/components/Feedback.vue index 56f92eeb7..2c03bc1d7 100644 --- a/.vitepress/theme/components/Feedback.vue +++ b/.vitepress/theme/components/Feedback.vue @@ -4,7 +4,6 @@ import { reactive, ref } from "vue"; interface Feedback { message: string; feedbackType?: string; - anonymous?: boolean; contactEmail?: string; } @@ -12,7 +11,7 @@ const loading = ref(false); const error = ref(null); const success = ref(false); -const feedback = reactive({ message: "" }); +const feedback = reactive({ message: "", contactEmail: "" }); const feedbackOptions = [ { label: "🐞 Bug", value: "bug" }, @@ -33,12 +32,12 @@ function getFeedbackOption(value: string) { async function handleSubmit(type?: string) { if (type) feedback.feedbackType = type as string; + loading.value = true; const body: Feedback = { message: feedback.message, feedbackType: feedback.feedbackType, contactEmail: feedback.contactEmail, - anonymous: feedback.anonymous, }; try { @@ -175,7 +174,6 @@ async function handleSubmit(type?: string) { color: var(--vp-c-text-2); } - .fade-enter-active, .fade-leave-active { transition: opacity 0.25s ease;