From eb0d60d90ee247cde222655dbdef41b8dddb68ee Mon Sep 17 00:00:00 2001 From: xkeshav Date: Sun, 2 Mar 2025 14:35:28 +0530 Subject: [PATCH] [RZA-2500050]: remove feedback and survey form which using SSR --- astro.config.mjs | 5 +- src/components/FeedbackForm.astro | 91 -------------- src/components/surveyForm.astro | 193 ------------------------------ src/pages/api/feedback.ts | 73 ----------- src/pages/api/survey.ts | 98 --------------- src/pages/blog/[slug].astro | 1 + src/pages/feedback.astro | 9 -- src/pages/survey.astro | 11 -- src/utils/constants.ts | 12 -- 9 files changed, 3 insertions(+), 490 deletions(-) delete mode 100644 src/components/FeedbackForm.astro delete mode 100644 src/components/surveyForm.astro delete mode 100644 src/pages/api/feedback.ts delete mode 100644 src/pages/api/survey.ts delete mode 100644 src/pages/feedback.astro delete mode 100644 src/pages/survey.astro diff --git a/astro.config.mjs b/astro.config.mjs index bc4153c..dfa97f3 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,5 +1,4 @@ import mdx from "@astrojs/mdx"; -import node from "@astrojs/node"; import react from "@astrojs/react"; import tailwind from "@astrojs/tailwind"; import { defineConfig } from "astro/config"; @@ -37,6 +36,6 @@ export default defineConfig({ optimizeDeps: { exclude: ["@resvg/resvg-js"] } - }, - adapter: node({ mode: "standalone" }) + } + //adapter: node({ mode: "standalone" }) }); diff --git a/src/components/FeedbackForm.astro b/src/components/FeedbackForm.astro deleted file mode 100644 index 3f6e93c..0000000 --- a/src/components/FeedbackForm.astro +++ /dev/null @@ -1,91 +0,0 @@ ---- -import "@/assets/styles/feedback.css"; ---- - -
-
-
-

Share Your Feedback

-

We value your thoughts and suggestions

-
- -
-
Error message goes here
- -
- - -
- -
- - -
- -
- -
-
-
-
- - diff --git a/src/components/surveyForm.astro b/src/components/surveyForm.astro deleted file mode 100644 index dd88017..0000000 --- a/src/components/surveyForm.astro +++ /dev/null @@ -1,193 +0,0 @@ ---- -import type { SurveyData } from "@/types"; -import "@/assets/styles/survey.css"; - -interface Props { - data: SurveyData; -} - -const { data } = Astro.props; ---- - -
-
-
-

{data.surveyTitle}

-

{data.description}

-
- -
-
- { - data.questions.map((question, index) => ( -
-

- {index + 1}. - {question.questionText} -

- - {question.type === "openEnded" ? ( -