mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
format: fix formatting
This commit is contained in:
@@ -44,7 +44,7 @@ export const DeleteApplication = ({ applicationId }: Props) => {
|
|||||||
const { mutateAsync, isLoading } = api.application.delete.useMutation();
|
const { mutateAsync, isLoading } = api.application.delete.useMutation();
|
||||||
const { data } = api.application.one.useQuery(
|
const { data } = api.application.one.useQuery(
|
||||||
{ applicationId },
|
{ applicationId },
|
||||||
{ enabled: !!applicationId }
|
{ enabled: !!applicationId },
|
||||||
);
|
);
|
||||||
const { push } = useRouter();
|
const { push } = useRouter();
|
||||||
const form = useForm<DeleteApplication>({
|
const form = useForm<DeleteApplication>({
|
||||||
@@ -112,7 +112,7 @@ export const DeleteApplication = ({ applicationId }: Props) => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (data?.name && data?.appName) {
|
if (data?.name && data?.appName) {
|
||||||
navigator.clipboard.writeText(
|
navigator.clipboard.writeText(
|
||||||
`${data.name}/${data.appName}`
|
`${data.name}/${data.appName}`,
|
||||||
);
|
);
|
||||||
toast.success("Copied to clipboard. Be careful!");
|
toast.success("Copied to clipboard. Be careful!");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
await checkServiceAccess(
|
await checkServiceAccess(
|
||||||
ctx.user.authId,
|
ctx.user.authId,
|
||||||
input.applicationId,
|
input.applicationId,
|
||||||
"access"
|
"access",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const application = await findApplicationById(input.applicationId);
|
const application = await findApplicationById(input.applicationId);
|
||||||
@@ -148,7 +148,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
await checkServiceAccess(
|
await checkServiceAccess(
|
||||||
ctx.user.authId,
|
ctx.user.authId,
|
||||||
input.applicationId,
|
input.applicationId,
|
||||||
"delete"
|
"delete",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const application = await findApplicationById(input.applicationId);
|
const application = await findApplicationById(input.applicationId);
|
||||||
@@ -173,7 +173,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
async () =>
|
async () =>
|
||||||
await removeMonitoringDirectory(
|
await removeMonitoringDirectory(
|
||||||
application.appName,
|
application.appName,
|
||||||
application.serverId
|
application.serverId,
|
||||||
),
|
),
|
||||||
async () =>
|
async () =>
|
||||||
await removeTraefikConfig(application.appName, application.serverId),
|
await removeTraefikConfig(application.appName, application.serverId),
|
||||||
@@ -261,7 +261,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
{
|
{
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true,
|
removeOnFail: true,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
saveEnvironment: protectedProcedure
|
saveEnvironment: protectedProcedure
|
||||||
@@ -492,7 +492,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
{
|
{
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true,
|
removeOnFail: true,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@@ -524,7 +524,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
if (application.serverId) {
|
if (application.serverId) {
|
||||||
traefikConfig = await readRemoteConfig(
|
traefikConfig = await readRemoteConfig(
|
||||||
application.serverId,
|
application.serverId,
|
||||||
application.appName
|
application.appName,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
traefikConfig = readConfig(application.appName);
|
traefikConfig = readConfig(application.appName);
|
||||||
@@ -581,7 +581,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
{
|
{
|
||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true,
|
removeOnFail: true,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
@@ -601,7 +601,7 @@ export const applicationRouter = createTRPCRouter({
|
|||||||
await writeConfigRemote(
|
await writeConfigRemote(
|
||||||
application.serverId,
|
application.serverId,
|
||||||
application.appName,
|
application.appName,
|
||||||
input.traefikConfig
|
input.traefikConfig,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
writeConfig(application.appName, input.traefikConfig);
|
writeConfig(application.appName, input.traefikConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user