From f6e264ffad844a370d212b22936cce5b9027efb0 Mon Sep 17 00:00:00 2001 From: Milad Sadeghi Date: Wed, 4 Dec 2024 17:36:18 +0330 Subject: [PATCH] chore(web): Add missing data folders --- web/src/pages/ansible/docker/data/select-options.ts | 6 ++++++ web/src/pages/ansible/kuber/data/select-options.ts | 6 ++++++ web/src/pages/ansible/nginx/data/select-options.ts | 6 ++++++ web/src/pages/helm-template/helm-template.tsx | 4 ++-- web/src/pages/helm-template/helm-template.types.ts | 2 +- 5 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 web/src/pages/ansible/docker/data/select-options.ts create mode 100644 web/src/pages/ansible/kuber/data/select-options.ts create mode 100644 web/src/pages/ansible/nginx/data/select-options.ts diff --git a/web/src/pages/ansible/docker/data/select-options.ts b/web/src/pages/ansible/docker/data/select-options.ts new file mode 100644 index 00000000..aa31f9cd --- /dev/null +++ b/web/src/pages/ansible/docker/data/select-options.ts @@ -0,0 +1,6 @@ +export const OSOptions = [ + { + value: 'ubuntu', + label: 'Ubuntu', + }, +]; diff --git a/web/src/pages/ansible/kuber/data/select-options.ts b/web/src/pages/ansible/kuber/data/select-options.ts new file mode 100644 index 00000000..aa31f9cd --- /dev/null +++ b/web/src/pages/ansible/kuber/data/select-options.ts @@ -0,0 +1,6 @@ +export const OSOptions = [ + { + value: 'ubuntu', + label: 'Ubuntu', + }, +]; diff --git a/web/src/pages/ansible/nginx/data/select-options.ts b/web/src/pages/ansible/nginx/data/select-options.ts new file mode 100644 index 00000000..aa31f9cd --- /dev/null +++ b/web/src/pages/ansible/nginx/data/select-options.ts @@ -0,0 +1,6 @@ +export const OSOptions = [ + { + value: 'ubuntu', + label: 'Ubuntu', + }, +]; diff --git a/web/src/pages/helm-template/helm-template.tsx b/web/src/pages/helm-template/helm-template.tsx index 007d1a61..4ff61952 100644 --- a/web/src/pages/helm-template/helm-template.tsx +++ b/web/src/pages/helm-template/helm-template.tsx @@ -21,7 +21,7 @@ import { FormInput } from '@/components/form/form-input'; import { FormCheckbox } from '@/components/form/form-checkbox'; import { FormSelect } from '@/components/form/form-select'; import PodEnvironmentFields from './components/pod-environment-fields'; -import type { HelmTemplate } from './helm-template.types'; +import type { THelmTemplate } from './helm-template.types'; const HelmTemplate: FC = () => { const { mutateAsync: helmTemplateMutate, isPending: helmTemplatePending } = @@ -82,7 +82,7 @@ const HelmTemplate: FC = () => { remove(index); }; - const handleSubmit = async (data: HelmTemplate) => { + const handleSubmit = async (data: THelmTemplate) => { try { const body_data = data.pods.map((data) => { const { mode, accessModes, size } = data.persistance; diff --git a/web/src/pages/helm-template/helm-template.types.ts b/web/src/pages/helm-template/helm-template.types.ts index 93a02b2e..518b5d84 100644 --- a/web/src/pages/helm-template/helm-template.types.ts +++ b/web/src/pages/helm-template/helm-template.types.ts @@ -83,4 +83,4 @@ export const helmTemplateSchema = zod.object({ .min(1, 'API version is required'), pods: zod.array(podSchema).min(1, 'At least one pod is required'), }); -export type HelmTemplate = zod.infer; +export type THelmTemplate = zod.infer;