From 5657c45faf34974f5cf42368143b94b2d17133d0 Mon Sep 17 00:00:00 2001 From: Jesse Holden Date: Wed, 1 May 2024 18:40:18 -0400 Subject: [PATCH] fix(typo): enviroment -> environment --- .../{enviroment => environment}/show.tsx | 32 +++++++++---------- .../show-mariadb-environment.tsx} | 32 +++++++++---------- .../show-mongo-environment.tsx} | 32 +++++++++---------- .../show-mysql-environment.tsx} | 32 +++++++++---------- .../show-postgres-environment.tsx} | 32 +++++++++---------- .../show-redis-environment.tsx} | 32 +++++++++---------- .../services/application/[applicationId].tsx | 8 ++--- .../services/mariadb/[mariadbId].tsx | 8 ++--- .../[projectId]/services/mongo/[mongoId].tsx | 8 ++--- .../[projectId]/services/mysql/[mysqlId].tsx | 8 ++--- .../services/postgres/[postgresId].tsx | 8 ++--- .../[projectId]/services/redis/[redisId].tsx | 8 ++--- server/api/routers/application.ts | 6 ++-- server/api/routers/mariadb.ts | 8 ++--- server/api/routers/mongo.ts | 8 ++--- server/api/routers/mysql.ts | 8 ++--- server/api/routers/postgres.ts | 8 ++--- server/api/routers/redis.ts | 8 ++--- server/db/schema/application.ts | 2 +- server/db/schema/mariadb.ts | 2 +- server/db/schema/mongo.ts | 2 +- server/db/schema/mysql.ts | 2 +- server/db/schema/postgres.ts | 2 +- server/db/schema/redis.ts | 2 +- 24 files changed, 149 insertions(+), 149 deletions(-) rename components/dashboard/application/{enviroment => environment}/show.tsx (73%) rename components/dashboard/mariadb/{enviroment/show-mariadb-enviroment.tsx => environment/show-mariadb-environment.tsx} (72%) rename components/dashboard/mongo/{enviroment/show-mongo-enviroment.tsx => environment/show-mongo-environment.tsx} (72%) rename components/dashboard/mysql/{enviroment/show-mysql-enviroment.tsx => environment/show-mysql-environment.tsx} (72%) rename components/dashboard/postgres/{enviroment/show-postgres-enviroment.tsx => environment/show-postgres-environment.tsx} (72%) rename components/dashboard/redis/{enviroment/show-redis-enviroment.tsx => environment/show-redis-environment.tsx} (72%) diff --git a/components/dashboard/application/enviroment/show.tsx b/components/dashboard/application/environment/show.tsx similarity index 73% rename from components/dashboard/application/enviroment/show.tsx rename to components/dashboard/application/environment/show.tsx index 063f7b1a..efd218e2 100644 --- a/components/dashboard/application/enviroment/show.tsx +++ b/components/dashboard/application/environment/show.tsx @@ -21,19 +21,19 @@ import { api } from "@/utils/api"; import { toast } from "sonner"; import { Textarea } from "@/components/ui/textarea"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { applicationId: string; } -export const ShowEnviroment = ({ applicationId }: Props) => { +export const ShowEnvironment = ({ applicationId }: Props) => { const { mutateAsync, isLoading } = - api.application.saveEnviroment.useMutation(); + api.application.saveEnvironment.useMutation(); const { data, refetch } = api.application.one.useQuery( { @@ -43,32 +43,32 @@ export const ShowEnviroment = ({ applicationId }: Props) => { enabled: !!applicationId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, applicationId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -76,9 +76,9 @@ export const ShowEnviroment = ({ applicationId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your resource. + You can add environment variables to your resource. @@ -90,7 +90,7 @@ export const ShowEnviroment = ({ applicationId }: Props) => { > ( diff --git a/components/dashboard/mariadb/enviroment/show-mariadb-enviroment.tsx b/components/dashboard/mariadb/environment/show-mariadb-environment.tsx similarity index 72% rename from components/dashboard/mariadb/enviroment/show-mariadb-enviroment.tsx rename to components/dashboard/mariadb/environment/show-mariadb-environment.tsx index 4e4708e2..cfc89271 100644 --- a/components/dashboard/mariadb/enviroment/show-mariadb-enviroment.tsx +++ b/components/dashboard/mariadb/environment/show-mariadb-environment.tsx @@ -21,18 +21,18 @@ import { api } from "@/utils/api"; import { toast } from "sonner"; import { Textarea } from "@/components/ui/textarea"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { mariadbId: string; } -export const ShowMariadbEnviroment = ({ mariadbId }: Props) => { - const { mutateAsync, isLoading } = api.mariadb.saveEnviroment.useMutation(); +export const ShowMariadbEnvironment = ({ mariadbId }: Props) => { + const { mutateAsync, isLoading } = api.mariadb.saveEnvironment.useMutation(); const { data, refetch } = api.mariadb.one.useQuery( { @@ -42,32 +42,32 @@ export const ShowMariadbEnviroment = ({ mariadbId }: Props) => { enabled: !!mariadbId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, mariadbId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -75,9 +75,9 @@ export const ShowMariadbEnviroment = ({ mariadbId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your database. + You can add environment variables to your database. @@ -89,7 +89,7 @@ export const ShowMariadbEnviroment = ({ mariadbId }: Props) => { > ( diff --git a/components/dashboard/mongo/enviroment/show-mongo-enviroment.tsx b/components/dashboard/mongo/environment/show-mongo-environment.tsx similarity index 72% rename from components/dashboard/mongo/enviroment/show-mongo-enviroment.tsx rename to components/dashboard/mongo/environment/show-mongo-environment.tsx index 24080adf..0c99cede 100644 --- a/components/dashboard/mongo/enviroment/show-mongo-enviroment.tsx +++ b/components/dashboard/mongo/environment/show-mongo-environment.tsx @@ -21,18 +21,18 @@ import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { mongoId: string; } -export const ShowMongoEnviroment = ({ mongoId }: Props) => { - const { mutateAsync, isLoading } = api.mongo.saveEnviroment.useMutation(); +export const ShowMongoEnvironment = ({ mongoId }: Props) => { + const { mutateAsync, isLoading } = api.mongo.saveEnvironment.useMutation(); const { data, refetch } = api.mongo.one.useQuery( { @@ -42,32 +42,32 @@ export const ShowMongoEnviroment = ({ mongoId }: Props) => { enabled: !!mongoId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, mongoId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -75,9 +75,9 @@ export const ShowMongoEnviroment = ({ mongoId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your database. + You can add environment variables to your database. @@ -89,7 +89,7 @@ export const ShowMongoEnviroment = ({ mongoId }: Props) => { > ( diff --git a/components/dashboard/mysql/enviroment/show-mysql-enviroment.tsx b/components/dashboard/mysql/environment/show-mysql-environment.tsx similarity index 72% rename from components/dashboard/mysql/enviroment/show-mysql-enviroment.tsx rename to components/dashboard/mysql/environment/show-mysql-environment.tsx index a3da6f05..2135d708 100644 --- a/components/dashboard/mysql/enviroment/show-mysql-enviroment.tsx +++ b/components/dashboard/mysql/environment/show-mysql-environment.tsx @@ -21,18 +21,18 @@ import { api } from "@/utils/api"; import { toast } from "sonner"; import { Textarea } from "@/components/ui/textarea"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { mysqlId: string; } -export const ShowMysqlEnviroment = ({ mysqlId }: Props) => { - const { mutateAsync, isLoading } = api.mysql.saveEnviroment.useMutation(); +export const ShowMysqlEnvironment = ({ mysqlId }: Props) => { + const { mutateAsync, isLoading } = api.mysql.saveEnvironment.useMutation(); const { data, refetch } = api.mysql.one.useQuery( { @@ -42,32 +42,32 @@ export const ShowMysqlEnviroment = ({ mysqlId }: Props) => { enabled: !!mysqlId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, mysqlId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -75,9 +75,9 @@ export const ShowMysqlEnviroment = ({ mysqlId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your database. + You can add environment variables to your database. @@ -89,7 +89,7 @@ export const ShowMysqlEnviroment = ({ mysqlId }: Props) => { > ( diff --git a/components/dashboard/postgres/enviroment/show-postgres-enviroment.tsx b/components/dashboard/postgres/environment/show-postgres-environment.tsx similarity index 72% rename from components/dashboard/postgres/enviroment/show-postgres-enviroment.tsx rename to components/dashboard/postgres/environment/show-postgres-environment.tsx index 3e9e470a..8a8b792d 100644 --- a/components/dashboard/postgres/enviroment/show-postgres-enviroment.tsx +++ b/components/dashboard/postgres/environment/show-postgres-environment.tsx @@ -21,18 +21,18 @@ import { api } from "@/utils/api"; import { toast } from "sonner"; import { Textarea } from "@/components/ui/textarea"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { postgresId: string; } -export const ShowPostgresEnviroment = ({ postgresId }: Props) => { - const { mutateAsync, isLoading } = api.postgres.saveEnviroment.useMutation(); +export const ShowPostgresEnvironment = ({ postgresId }: Props) => { + const { mutateAsync, isLoading } = api.postgres.saveEnvironment.useMutation(); const { data, refetch } = api.postgres.one.useQuery( { @@ -42,32 +42,32 @@ export const ShowPostgresEnviroment = ({ postgresId }: Props) => { enabled: !!postgresId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, postgresId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -75,9 +75,9 @@ export const ShowPostgresEnviroment = ({ postgresId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your database. + You can add environment variables to your database. @@ -89,7 +89,7 @@ export const ShowPostgresEnviroment = ({ postgresId }: Props) => { > ( diff --git a/components/dashboard/redis/enviroment/show-redis-enviroment.tsx b/components/dashboard/redis/environment/show-redis-environment.tsx similarity index 72% rename from components/dashboard/redis/enviroment/show-redis-enviroment.tsx rename to components/dashboard/redis/environment/show-redis-environment.tsx index e706cb71..c6eb715b 100644 --- a/components/dashboard/redis/enviroment/show-redis-enviroment.tsx +++ b/components/dashboard/redis/environment/show-redis-environment.tsx @@ -21,18 +21,18 @@ import { api } from "@/utils/api"; import { toast } from "sonner"; import { Textarea } from "@/components/ui/textarea"; -const addEnviromentSchema = z.object({ - enviroment: z.string(), +const addEnvironmentSchema = z.object({ + environment: z.string(), }); -type EnviromentSchema = z.infer; +type EnvironmentSchema = z.infer; interface Props { redisId: string; } -export const ShowRedisEnviroment = ({ redisId }: Props) => { - const { mutateAsync, isLoading } = api.redis.saveEnviroment.useMutation(); +export const ShowRedisEnvironment = ({ redisId }: Props) => { + const { mutateAsync, isLoading } = api.redis.saveEnvironment.useMutation(); const { data, refetch } = api.redis.one.useQuery( { @@ -42,32 +42,32 @@ export const ShowRedisEnviroment = ({ redisId }: Props) => { enabled: !!redisId, }, ); - const form = useForm({ + const form = useForm({ defaultValues: { - enviroment: "", + environment: "", }, - resolver: zodResolver(addEnviromentSchema), + resolver: zodResolver(addEnvironmentSchema), }); useEffect(() => { if (data) { form.reset({ - enviroment: data.env || "", + environment: data.env || "", }); } }, [form.reset, data, form]); - const onSubmit = async (data: EnviromentSchema) => { + const onSubmit = async (data: EnvironmentSchema) => { mutateAsync({ - env: data.enviroment, + env: data.environment, redisId, }) .then(async () => { - toast.success("Enviroments Added"); + toast.success("Environments Added"); await refetch(); }) .catch(() => { - toast.error("Error to add enviroment"); + toast.error("Error to add environment"); }); }; @@ -75,9 +75,9 @@ export const ShowRedisEnviroment = ({ redisId }: Props) => {
- Enviroment Settings + Environment Settings - You can add enviroment variables to your database. + You can add environment variables to your database. @@ -89,7 +89,7 @@ export const ShowRedisEnviroment = ({ redisId }: Props) => { > ( diff --git a/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx b/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx index 33e4dd08..fde599a8 100644 --- a/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx +++ b/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx @@ -8,7 +8,7 @@ import { ShowVolumes } from "@/components/dashboard/application/advanced/volumes import { DeleteApplication } from "@/components/dashboard/application/delete-application"; import { ShowDeployments } from "@/components/dashboard/application/deployments/show-deployments"; import { ShowDomains } from "@/components/dashboard/application/domains/show-domains"; -import { ShowEnviroment } from "@/components/dashboard/application/enviroment/show"; +import { ShowEnvironment } from "@/components/dashboard/application/environment/show"; import { ShowGeneralApplication } from "@/components/dashboard/application/general/show"; import { ShowDockerLogs } from "@/components/dashboard/application/logs/show"; import { UpdateApplication } from "@/components/dashboard/application/update-application"; @@ -127,7 +127,7 @@ const Service = (
General - Enviroment + Environment Monitoring Logs Deployments @@ -147,9 +147,9 @@ const Service = (
- +
- +
diff --git a/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx b/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx index 2f9d4cf3..fc753fae 100644 --- a/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx +++ b/pages/dashboard/project/[projectId]/services/mariadb/[mariadbId].tsx @@ -2,7 +2,7 @@ import { ShowDockerLogs } from "@/components/dashboard/application/logs/show"; import { ShowAdvancedMariadb } from "@/components/dashboard/mariadb/advanced/show-mariadb-advanced-settings"; import { ShowBackupMariadb } from "@/components/dashboard/mariadb/backups/show-backup-mariadb"; import { DeleteMariadb } from "@/components/dashboard/mariadb/delete-mariadb"; -import { ShowMariadbEnviroment } from "@/components/dashboard/mariadb/enviroment/show-mariadb-enviroment"; +import { ShowMariadbEnvironment } from "@/components/dashboard/mariadb/environment/show-mariadb-environment"; import { ShowExternalMariadbCredentials } from "@/components/dashboard/mariadb/general/show-external-mariadb-credentials"; import { ShowGeneralMariadb } from "@/components/dashboard/mariadb/general/show-general-mariadb"; import { ShowInternalMariadbCredentials } from "@/components/dashboard/mariadb/general/show-internal-mariadb-credentials"; @@ -110,7 +110,7 @@ const Mariadb = (
General - Enviroment + Environment Monitoring Backups Logs @@ -131,9 +131,9 @@ const Mariadb = (
- +
- +
diff --git a/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx b/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx index 2b88686c..b4f10660 100644 --- a/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx +++ b/pages/dashboard/project/[projectId]/services/mongo/[mongoId].tsx @@ -2,7 +2,7 @@ import { ShowDockerLogs } from "@/components/dashboard/application/logs/show"; import { ShowAdvancedMongo } from "@/components/dashboard/mongo/advanced/show-mongo-advanced-settings"; import { ShowBackupMongo } from "@/components/dashboard/mongo/backups/show-backup-mongo"; import { DeleteMongo } from "@/components/dashboard/mongo/delete-mongo"; -import { ShowMongoEnviroment } from "@/components/dashboard/mongo/enviroment/show-mongo-enviroment"; +import { ShowMongoEnvironment } from "@/components/dashboard/mongo/environment/show-mongo-environment"; import { ShowExternalMongoCredentials } from "@/components/dashboard/mongo/general/show-external-mongo-credentials"; import { ShowGeneralMongo } from "@/components/dashboard/mongo/general/show-general-mongo"; import { ShowInternalMongoCredentials } from "@/components/dashboard/mongo/general/show-internal-mongo-credentials"; @@ -111,7 +111,7 @@ const Mongo = (
General - Enviroment + Environment Monitoring Backups Logs @@ -133,9 +133,9 @@ const Mongo = (
- +
- +
diff --git a/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx b/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx index 095fcd6c..d7d5c560 100644 --- a/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx +++ b/pages/dashboard/project/[projectId]/services/mysql/[mysqlId].tsx @@ -1,7 +1,7 @@ import { ShowAdvancedMysql } from "@/components/dashboard/mysql/advanced/show-mysql-advanced-settings"; import { ShowBackupMySql } from "@/components/dashboard/mysql/backups/show-backup-mysql"; import { DeleteMysql } from "@/components/dashboard/mysql/delete-mysql"; -import { ShowMysqlEnviroment } from "@/components/dashboard/mysql/enviroment/show-mysql-enviroment"; +import { ShowMysqlEnvironment } from "@/components/dashboard/mysql/environment/show-mysql-environment"; import { ShowExternalMysqlCredentials } from "@/components/dashboard/mysql/general/show-external-mysql-credentials"; import { ShowGeneralMysql } from "@/components/dashboard/mysql/general/show-general-mysql"; import { ShowInternalMysqlCredentials } from "@/components/dashboard/mysql/general/show-internal-mysql-credentials"; @@ -110,7 +110,7 @@ const MySql = (
General - Enviroment + Environment Monitoring Backups Logs @@ -132,9 +132,9 @@ const MySql = (
- +
- +
diff --git a/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx b/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx index 222a7298..b00eba36 100644 --- a/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx +++ b/pages/dashboard/project/[projectId]/services/postgres/[postgresId].tsx @@ -1,7 +1,7 @@ import { ShowAdvancedPostgres } from "@/components/dashboard/postgres/advanced/show-postgres-advanced-settings"; import { ShowBackupPostgres } from "@/components/dashboard/postgres/backups/show-backup-postgres"; import { DeletePostgres } from "@/components/dashboard/postgres/delete-postgres"; -import { ShowPostgresEnviroment } from "@/components/dashboard/postgres/enviroment/show-postgres-enviroment"; +import { ShowPostgresEnvironment } from "@/components/dashboard/postgres/environment/show-postgres-environment"; import { ShowExternalPostgresCredentials } from "@/components/dashboard/postgres/general/show-external-postgres-credentials"; import { ShowGeneralPostgres } from "@/components/dashboard/postgres/general/show-general-postgres"; import { ShowInternalPostgresCredentials } from "@/components/dashboard/postgres/general/show-internal-postgres-credentials"; @@ -111,7 +111,7 @@ const Postgresql = (
General - Enviroment + Environment Monitoring Backups Logs @@ -133,9 +133,9 @@ const Postgresql = (
- +
- +
diff --git a/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx b/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx index e2200133..6f4fdb90 100644 --- a/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx +++ b/pages/dashboard/project/[projectId]/services/redis/[redisId].tsx @@ -1,6 +1,6 @@ import { ShowAdvancedRedis } from "@/components/dashboard/redis/advanced/show-redis-advanced-settings"; import { DeleteRedis } from "@/components/dashboard/redis/delete-redis"; -import { ShowRedisEnviroment } from "@/components/dashboard/redis/enviroment/show-redis-enviroment"; +import { ShowRedisEnvironment } from "@/components/dashboard/redis/environment/show-redis-environment"; import { ShowExternalRedisCredentials } from "@/components/dashboard/redis/general/show-external-redis-credentials"; import { ShowGeneralRedis } from "@/components/dashboard/redis/general/show-general-redis"; import { ShowInternalRedisCredentials } from "@/components/dashboard/redis/general/show-internal-redis-credentials"; @@ -110,7 +110,7 @@ const Redis = (
General - Enviroment + Environment Monitoring Logs Advanced @@ -131,9 +131,9 @@ const Redis = (
- +
- +
diff --git a/server/api/routers/application.ts b/server/api/routers/application.ts index a590e75c..304d0449 100644 --- a/server/api/routers/application.ts +++ b/server/api/routers/application.ts @@ -7,7 +7,7 @@ import { apiReloadApplication, apiSaveBuildType, apiSaveDockerProvider, - apiSaveEnviromentVariables, + apiSaveEnvironmentVariables, apiSaveGitProvider, apiSaveGithubProvider, apiUpdateApplication, @@ -170,8 +170,8 @@ export const applicationRouter = createTRPCRouter({ }, ); }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariables) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariables) .mutation(async ({ input }) => { await updateApplication(input.applicationId, { env: input.env, diff --git a/server/api/routers/mariadb.ts b/server/api/routers/mariadb.ts index ecc3d90c..59e57748 100644 --- a/server/api/routers/mariadb.ts +++ b/server/api/routers/mariadb.ts @@ -5,7 +5,7 @@ import { apiDeployMariaDB, apiFindOneMariaDB, apiResetMariadb, - apiSaveEnviromentVariablesMariaDB, + apiSaveEnvironmentVariablesMariaDB, apiSaveExternalPortMariaDB, apiUpdateMariaDB, } from "@/server/db/schema/mariadb"; @@ -134,8 +134,8 @@ export const mariadbRouter = createTRPCRouter({ return mongo; }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariablesMariaDB) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariablesMariaDB) .mutation(async ({ input }) => { const service = await updateMariadbById(input.mariadbId, { env: input.env, @@ -144,7 +144,7 @@ export const mariadbRouter = createTRPCRouter({ if (!service) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Update: Error to add enviroment variables", + message: "Update: Error to add environment variables", }); } diff --git a/server/api/routers/mongo.ts b/server/api/routers/mongo.ts index 5d6df214..705549b6 100644 --- a/server/api/routers/mongo.ts +++ b/server/api/routers/mongo.ts @@ -5,7 +5,7 @@ import { apiDeployMongo, apiFindOneMongo, apiResetMongo, - apiSaveEnviromentVariablesMongo, + apiSaveEnvironmentVariablesMongo, apiSaveExternalPortMongo, apiUpdateMongo, } from "@/server/db/schema/mongo"; @@ -148,8 +148,8 @@ export const mongoRouter = createTRPCRouter({ return mongo; }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariablesMongo) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariablesMongo) .mutation(async ({ input }) => { const service = await updateMongoById(input.mongoId, { env: input.env, @@ -158,7 +158,7 @@ export const mongoRouter = createTRPCRouter({ if (!service) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Update: Error to add enviroment variables", + message: "Update: Error to add environment variables", }); } diff --git a/server/api/routers/mysql.ts b/server/api/routers/mysql.ts index 54f795e0..02f683ba 100644 --- a/server/api/routers/mysql.ts +++ b/server/api/routers/mysql.ts @@ -5,7 +5,7 @@ import { apiDeployMySql, apiFindOneMySql, apiResetMysql, - apiSaveEnviromentVariablesMySql, + apiSaveEnvironmentVariablesMySql, apiSaveExternalPortMySql, apiUpdateMySql, } from "@/server/db/schema/mysql"; @@ -147,8 +147,8 @@ export const mysqlRouter = createTRPCRouter({ return mongo; }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariablesMySql) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariablesMySql) .mutation(async ({ input }) => { const service = await updateMySqlById(input.mysqlId, { env: input.env, @@ -157,7 +157,7 @@ export const mysqlRouter = createTRPCRouter({ if (!service) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Update: Error to add enviroment variables", + message: "Update: Error to add environment variables", }); } diff --git a/server/api/routers/postgres.ts b/server/api/routers/postgres.ts index 9ddf74c7..45bd88a1 100644 --- a/server/api/routers/postgres.ts +++ b/server/api/routers/postgres.ts @@ -5,7 +5,7 @@ import { apiDeployPostgres, apiFindOnePostgres, apiResetPostgres, - apiSaveEnviromentVariablesPostgres, + apiSaveEnvironmentVariablesPostgres, apiSaveExternalPortPostgres, apiUpdatePostgres, } from "@/server/db/schema/postgres"; @@ -130,8 +130,8 @@ export const postgresRouter = createTRPCRouter({ return postgres; }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariablesPostgres) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariablesPostgres) .mutation(async ({ input }) => { const service = await updatePostgresById(input.postgresId, { env: input.env, @@ -140,7 +140,7 @@ export const postgresRouter = createTRPCRouter({ if (!service) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Update: Error to add enviroment variables", + message: "Update: Error to add environment variables", }); } diff --git a/server/api/routers/redis.ts b/server/api/routers/redis.ts index 0c6df7ea..2a40d275 100644 --- a/server/api/routers/redis.ts +++ b/server/api/routers/redis.ts @@ -5,7 +5,7 @@ import { apiDeployRedis, apiFindOneRedis, apiResetRedis, - apiSaveEnviromentVariablesRedis, + apiSaveEnvironmentVariablesRedis, apiSaveExternalPortRedis, apiUpdateRedis, } from "@/server/db/schema/redis"; @@ -147,8 +147,8 @@ export const redisRouter = createTRPCRouter({ return redis; }), - saveEnviroment: protectedProcedure - .input(apiSaveEnviromentVariablesRedis) + saveEnvironment: protectedProcedure + .input(apiSaveEnvironmentVariablesRedis) .mutation(async ({ input }) => { const redis = await updateRedisById(input.redisId, { env: input.env, @@ -157,7 +157,7 @@ export const redisRouter = createTRPCRouter({ if (!redis) { throw new TRPCError({ code: "BAD_REQUEST", - message: "Update: Error to add enviroment variables", + message: "Update: Error to add environment variables", }); } diff --git a/server/db/schema/application.ts b/server/db/schema/application.ts index a4d03b67..abdeed53 100644 --- a/server/db/schema/application.ts +++ b/server/db/schema/application.ts @@ -181,7 +181,7 @@ export const apiSaveGitProvider = createSchema }) .required(); -export const apiSaveEnviromentVariables = createSchema +export const apiSaveEnvironmentVariables = createSchema .pick({ applicationId: true, env: true, diff --git a/server/db/schema/mariadb.ts b/server/db/schema/mariadb.ts index 1eecfce2..256dfbfb 100644 --- a/server/db/schema/mariadb.ts +++ b/server/db/schema/mariadb.ts @@ -102,7 +102,7 @@ export const apiChangeMariaDBStatus = createSchema }) .required(); -export const apiSaveEnviromentVariablesMariaDB = createSchema +export const apiSaveEnvironmentVariablesMariaDB = createSchema .pick({ mariadbId: true, env: true, diff --git a/server/db/schema/mongo.ts b/server/db/schema/mongo.ts index 279b6bb8..7406580e 100644 --- a/server/db/schema/mongo.ts +++ b/server/db/schema/mongo.ts @@ -94,7 +94,7 @@ export const apiChangeMongoStatus = createSchema }) .required(); -export const apiSaveEnviromentVariablesMongo = createSchema +export const apiSaveEnvironmentVariablesMongo = createSchema .pick({ mongoId: true, env: true, diff --git a/server/db/schema/mysql.ts b/server/db/schema/mysql.ts index bbb7010b..9e0c8c77 100644 --- a/server/db/schema/mysql.ts +++ b/server/db/schema/mysql.ts @@ -100,7 +100,7 @@ export const apiChangeMySqlStatus = createSchema }) .required(); -export const apiSaveEnviromentVariablesMySql = createSchema +export const apiSaveEnvironmentVariablesMySql = createSchema .pick({ mysqlId: true, env: true, diff --git a/server/db/schema/postgres.ts b/server/db/schema/postgres.ts index 43e541c4..7cf0f34d 100644 --- a/server/db/schema/postgres.ts +++ b/server/db/schema/postgres.ts @@ -96,7 +96,7 @@ export const apiChangePostgresStatus = createSchema }) .required(); -export const apiSaveEnviromentVariablesPostgres = createSchema +export const apiSaveEnvironmentVariablesPostgres = createSchema .pick({ postgresId: true, env: true, diff --git a/server/db/schema/redis.ts b/server/db/schema/redis.ts index 072c064d..842fe809 100644 --- a/server/db/schema/redis.ts +++ b/server/db/schema/redis.ts @@ -90,7 +90,7 @@ export const apiChangeRedisStatus = createSchema }) .required(); -export const apiSaveEnviromentVariablesRedis = createSchema +export const apiSaveEnvironmentVariablesRedis = createSchema .pick({ redisId: true, env: true,