Skip to content

Commit e679a32

Browse files
authored
Merge pull request #3825 from Dokploy/canary
🚀 Release v0.28.1
2 parents f24f1ad + 17a617e commit e679a32

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

apps/dokploy/components/dashboard/mariadb/update-mariadb.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { standardSchemaResolver as zodResolver } from "@hookform/resolvers/standard-schema";
22
import { PenBoxIcon } from "lucide-react";
3-
import { useEffect } from "react";
3+
import { useEffect, useState } from "react";
44
import { useForm } from "react-hook-form";
55
import { toast } from "sonner";
66
import { z } from "zod";
@@ -41,6 +41,7 @@ interface Props {
4141
}
4242

4343
export const UpdateMariadb = ({ mariadbId }: Props) => {
44+
const [isOpen, setIsOpen] = useState(false);
4445
const utils = api.useUtils();
4546
const { mutateAsync, error, isError, isPending } =
4647
api.mariadb.update.useMutation();
@@ -79,6 +80,7 @@ export const UpdateMariadb = ({ mariadbId }: Props) => {
7980
utils.mariadb.one.invalidate({
8081
mariadbId: mariadbId,
8182
});
83+
setIsOpen(false);
8284
})
8385
.catch(() => {
8486
toast.error("Error updating the Mariadb");
@@ -87,7 +89,7 @@ export const UpdateMariadb = ({ mariadbId }: Props) => {
8789
};
8890

8991
return (
90-
<Dialog>
92+
<Dialog open={isOpen} onOpenChange={setIsOpen}>
9193
<DialogTrigger asChild>
9294
<Button
9395
variant="ghost"

apps/dokploy/components/dashboard/mysql/update-mysql.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { standardSchemaResolver as zodResolver } from "@hookform/resolvers/standard-schema";
22
import { PenBoxIcon } from "lucide-react";
3-
import { useEffect } from "react";
3+
import { useEffect, useState } from "react";
44
import { useForm } from "react-hook-form";
55
import { toast } from "sonner";
66
import { z } from "zod";
@@ -41,6 +41,7 @@ interface Props {
4141
}
4242

4343
export const UpdateMysql = ({ mysqlId }: Props) => {
44+
const [isOpen, setIsOpen] = useState(false);
4445
const utils = api.useUtils();
4546
const { mutateAsync, error, isError, isPending } =
4647
api.mysql.update.useMutation();
@@ -79,6 +80,7 @@ export const UpdateMysql = ({ mysqlId }: Props) => {
7980
utils.mysql.one.invalidate({
8081
mysqlId: mysqlId,
8182
});
83+
setIsOpen(false);
8284
})
8385
.catch(() => {
8486
toast.error("Error updating MySQL");
@@ -87,7 +89,7 @@ export const UpdateMysql = ({ mysqlId }: Props) => {
8789
};
8890

8991
return (
90-
<Dialog>
92+
<Dialog open={isOpen} onOpenChange={setIsOpen}>
9193
<DialogTrigger asChild>
9294
<Button
9395
variant="ghost"

apps/dokploy/components/dashboard/redis/update-redis.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { standardSchemaResolver as zodResolver } from "@hookform/resolvers/standard-schema";
22
import { PenBoxIcon } from "lucide-react";
3-
import { useEffect } from "react";
3+
import { useEffect, useState } from "react";
44
import { useForm } from "react-hook-form";
55
import { toast } from "sonner";
66
import { z } from "zod";
@@ -41,6 +41,7 @@ interface Props {
4141
}
4242

4343
export const UpdateRedis = ({ redisId }: Props) => {
44+
const [isOpen, setIsOpen] = useState(false);
4445
const utils = api.useUtils();
4546
const { mutateAsync, error, isError, isPending } =
4647
api.redis.update.useMutation();
@@ -79,6 +80,7 @@ export const UpdateRedis = ({ redisId }: Props) => {
7980
utils.redis.one.invalidate({
8081
redisId: redisId,
8182
});
83+
setIsOpen(false);
8284
})
8385
.catch(() => {
8486
toast.error("Error updating Redis");
@@ -87,7 +89,7 @@ export const UpdateRedis = ({ redisId }: Props) => {
8789
};
8890

8991
return (
90-
<Dialog>
92+
<Dialog open={isOpen} onOpenChange={setIsOpen}>
9193
<DialogTrigger asChild>
9294
<Button
9395
variant="ghost"

apps/dokploy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dokploy",
3-
"version": "v0.28.0",
3+
"version": "v0.28.1",
44
"private": true,
55
"license": "Apache-2.0",
66
"type": "module",
@@ -55,7 +55,7 @@
5555
"@codemirror/legacy-modes": "6.4.0",
5656
"@codemirror/view": "6.29.0",
5757
"@dokploy/server": "workspace:*",
58-
"@dokploy/trpc-openapi": "0.0.16",
58+
"@dokploy/trpc-openapi": "0.0.17",
5959
"@faker-js/faker": "^8.4.1",
6060
"@hookform/resolvers": "^5.2.2",
6161
"@octokit/auth-app": "^6.1.3",

apps/dokploy/server/api/routers/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,12 @@ export const settingsRouter = createTRPCRouter({
530530
getOpenApiDocument: protectedProcedure.query(
531531
async ({ ctx }): Promise<unknown> => {
532532
const protocol = ctx.req.headers["x-forwarded-proto"];
533-
const url = `${protocol}://${ctx.req.headers.host}/api/trpc`;
533+
const url = `${protocol}://${ctx.req.headers.host}/api`;
534534
const openApiDocument = generateOpenApiDocument(appRouter, {
535535
title: "tRPC OpenAPI",
536536
version: packageInfo.version,
537537
baseUrl: url,
538-
docsUrl: `${url}/trpc/settings.getOpenApiDocument`,
538+
docsUrl: `${url}/settings.getOpenApiDocument`,
539539
tags: [
540540
"admin",
541541
"docker",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)