mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Compare commits
11 Commits
v0.21.4
...
1619-docke
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c470b8ba7 | ||
|
|
692864ced1 | ||
|
|
9ca61476d2 | ||
|
|
773a610be1 | ||
|
|
37f9e073f0 | ||
|
|
d335a9515d | ||
|
|
7a5a3de43d | ||
|
|
ee6ad07c0a | ||
|
|
48fe26b204 | ||
|
|
3ede89fe8a | ||
|
|
fa698d173e |
@@ -298,7 +298,11 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
refetch();
|
refetch();
|
||||||
toast.success("Preview deployments enabled");
|
toast.success(
|
||||||
|
checked
|
||||||
|
? "Preview deployments enabled"
|
||||||
|
: "Preview deployments disabled",
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
toast.error(error.message);
|
toast.error(error.message);
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ const randomImages = [
|
|||||||
export const ProfileForm = () => {
|
export const ProfileForm = () => {
|
||||||
const _utils = api.useUtils();
|
const _utils = api.useUtils();
|
||||||
const { data, refetch, isLoading } = api.user.get.useQuery();
|
const { data, refetch, isLoading } = api.user.get.useQuery();
|
||||||
|
|
||||||
|
console.log(data);
|
||||||
const {
|
const {
|
||||||
mutateAsync,
|
mutateAsync,
|
||||||
isLoading: isUpdating,
|
isLoading: isUpdating,
|
||||||
@@ -84,12 +86,17 @@ export const ProfileForm = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (data) {
|
if (data) {
|
||||||
form.reset({
|
form.reset(
|
||||||
email: data?.user?.email || "",
|
{
|
||||||
password: "",
|
email: data?.user?.email || "",
|
||||||
image: data?.user?.image || "",
|
password: form.getValues("password") || "",
|
||||||
currentPassword: "",
|
image: data?.user?.image || "",
|
||||||
});
|
currentPassword: form.getValues("currentPassword") || "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
keepValues: true,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
if (data.user.email) {
|
if (data.user.email) {
|
||||||
generateSHA256Hash(data.user.email).then((hash) => {
|
generateSHA256Hash(data.user.email).then((hash) => {
|
||||||
@@ -97,8 +104,7 @@ export const ProfileForm = () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
form.reset();
|
}, [form, data]);
|
||||||
}, [form, form.reset, data]);
|
|
||||||
|
|
||||||
const onSubmit = async (values: Profile) => {
|
const onSubmit = async (values: Profile) => {
|
||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
@@ -110,7 +116,12 @@ export const ProfileForm = () => {
|
|||||||
.then(async () => {
|
.then(async () => {
|
||||||
await refetch();
|
await refetch();
|
||||||
toast.success("Profile Updated");
|
toast.success("Profile Updated");
|
||||||
form.reset();
|
form.reset({
|
||||||
|
email: values.email,
|
||||||
|
password: "",
|
||||||
|
image: values.image,
|
||||||
|
currentPassword: "",
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
toast.error("Error updating the profile");
|
toast.error("Error updating the profile");
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.21.4",
|
"version": "v0.21.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -365,7 +365,9 @@ const Project = (
|
|||||||
|
|
||||||
switch (service.type) {
|
switch (service.type) {
|
||||||
case "application":
|
case "application":
|
||||||
await applicationActions.start.mutateAsync({ applicationId: serviceId });
|
await applicationActions.start.mutateAsync({
|
||||||
|
applicationId: serviceId,
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case "compose":
|
case "compose":
|
||||||
await composeActions.start.mutateAsync({ composeId: serviceId });
|
await composeActions.start.mutateAsync({ composeId: serviceId });
|
||||||
@@ -410,7 +412,9 @@ const Project = (
|
|||||||
|
|
||||||
switch (service.type) {
|
switch (service.type) {
|
||||||
case "application":
|
case "application":
|
||||||
await applicationActions.stop.mutateAsync({ applicationId: serviceId });
|
await applicationActions.stop.mutateAsync({
|
||||||
|
applicationId: serviceId,
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case "compose":
|
case "compose":
|
||||||
await composeActions.stop.mutateAsync({ composeId: serviceId });
|
await composeActions.stop.mutateAsync({ composeId: serviceId });
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export const buildRailpack = async (
|
|||||||
for (const envVar of envVariables) {
|
for (const envVar of envVariables) {
|
||||||
const [key, value] = envVar.split("=");
|
const [key, value] = envVar.split("=");
|
||||||
if (key && value) {
|
if (key && value) {
|
||||||
buildArgs.push("--secret", `id=${key},env=${key}`);
|
buildArgs.push("--secret", `id=${key},env='${key}'`);
|
||||||
env[key] = value;
|
env[key] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -132,7 +132,7 @@ export const getRailpackCommand = (
|
|||||||
];
|
];
|
||||||
|
|
||||||
for (const env of envVariables) {
|
for (const env of envVariables) {
|
||||||
prepareArgs.push("--env", env);
|
prepareArgs.push("--env", `'${env}'`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate secrets hash for layer invalidation
|
// Calculate secrets hash for layer invalidation
|
||||||
@@ -164,7 +164,7 @@ export const getRailpackCommand = (
|
|||||||
for (const envVar of envVariables) {
|
for (const envVar of envVariables) {
|
||||||
const [key, value] = envVar.split("=");
|
const [key, value] = envVar.split("=");
|
||||||
if (key && value) {
|
if (key && value) {
|
||||||
buildArgs.push("--secret", `id=${key},env=${key}`);
|
buildArgs.push("--secret", `id=${key},env='${key}'`);
|
||||||
exportEnvs.push(`export ${key}=${value}`);
|
exportEnvs.push(`export ${key}=${value}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,9 +37,9 @@ export const updateServerTraefik = (
|
|||||||
servers: [
|
servers: [
|
||||||
{
|
{
|
||||||
url: `http://dokploy:${process.env.PORT || 3000}`,
|
url: `http://dokploy:${process.env.PORT || 3000}`,
|
||||||
passHostHeader: true,
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
passHostHeader: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user