mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #456 from Dokploy/439-unable-to-open-swagger
439 unable to open swagger
This commit is contained in:
@@ -81,7 +81,10 @@ export const ShowClusterSettings = ({ applicationId }: Props) => {
|
|||||||
const onSubmit = async (data: AddCommand) => {
|
const onSubmit = async (data: AddCommand) => {
|
||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
applicationId,
|
applicationId,
|
||||||
registryId: data?.registryId === "none" ? null : data?.registryId,
|
registryId:
|
||||||
|
data?.registryId === "none" || !data?.registryId
|
||||||
|
? null
|
||||||
|
: data?.registryId,
|
||||||
replicas: data?.replicas,
|
replicas: data?.replicas,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.8.1",
|
"version": "v0.8.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -356,18 +356,28 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
return false;
|
return false;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
readStatsLogs: adminProcedure.input(apiReadStatsLogs).query(({ input }) => {
|
readStatsLogs: adminProcedure
|
||||||
const rawConfig = readMonitoringConfig();
|
.meta({
|
||||||
const parsedConfig = parseRawConfig(
|
openapi: {
|
||||||
rawConfig as string,
|
path: "/read-stats-logs",
|
||||||
input.page,
|
method: "POST",
|
||||||
input.sort,
|
override: true,
|
||||||
input.search,
|
enabled: false,
|
||||||
input.status,
|
},
|
||||||
);
|
})
|
||||||
|
.input(apiReadStatsLogs)
|
||||||
|
.query(({ input }) => {
|
||||||
|
const rawConfig = readMonitoringConfig();
|
||||||
|
const parsedConfig = parseRawConfig(
|
||||||
|
rawConfig as string,
|
||||||
|
input.page,
|
||||||
|
input.sort,
|
||||||
|
input.search,
|
||||||
|
input.status,
|
||||||
|
);
|
||||||
|
|
||||||
return parsedConfig;
|
return parsedConfig;
|
||||||
}),
|
}),
|
||||||
readStats: adminProcedure.query(() => {
|
readStats: adminProcedure.query(() => {
|
||||||
const rawConfig = readMonitoringConfig();
|
const rawConfig = readMonitoringConfig();
|
||||||
const processedLogs = processLogs(rawConfig as string);
|
const processedLogs = processLogs(rawConfig as string);
|
||||||
|
|||||||
Reference in New Issue
Block a user