mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
feat(ui): resolved dynamic secret merge conflict
This commit is contained in:
@@ -23,7 +23,7 @@ export const createNotification = (
|
|||||||
position: "bottom-right",
|
position: "bottom-right",
|
||||||
...toastProps,
|
...toastProps,
|
||||||
theme: "dark",
|
theme: "dark",
|
||||||
type: myProps?.type || "info"
|
type: myProps?.type || "info",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const NotificationContainer = () => <ToastContainer hideProgressBar />;
|
export const NotificationContainer = () => <ToastContainer hideProgressBar />;
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ html {
|
|||||||
--toastify-color-dark: theme(colors.mineshaft.700);
|
--toastify-color-dark: theme(colors.mineshaft.700);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Toastify__toast {
|
||||||
|
@apply rounded-md;
|
||||||
|
}
|
||||||
|
|
||||||
.rdp-day,
|
.rdp-day,
|
||||||
.rdp-nav_button {
|
.rdp-nav_button {
|
||||||
@apply rounded-md hover:text-mineshaft-500;
|
@apply rounded-md hover:text-mineshaft-500;
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
|
|||||||
import ms from "ms";
|
import ms from "ms";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
|
||||||
import { TtlFormLabel } from "@app/components/features";
|
import { TtlFormLabel } from "@app/components/features";
|
||||||
|
import { createNotification } from "@app/components/notifications";
|
||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
AccordionContent,
|
AccordionContent,
|
||||||
@@ -91,7 +91,7 @@ export const SqlDatabaseInputForm = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
const createDynamicSecret = useCreateDynamicSecret();
|
const createDynamicSecret = useCreateDynamicSecret();
|
||||||
|
|
||||||
const handleCreateDynamicSecret = async ({ name, maxTTL, provider, defaultTTL }: TForm) => {
|
const handleCreateDynamicSecret = async ({ name, maxTTL, provider, defaultTTL }: TForm) => {
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ import { AnimatePresence, motion } from "framer-motion";
|
|||||||
import ms from "ms";
|
import ms from "ms";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
|
||||||
import { TtlFormLabel } from "@app/components/features";
|
import { TtlFormLabel } from "@app/components/features";
|
||||||
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { Button, FormControl, IconButton, Input, SecretInput, Tooltip } from "@app/components/v2";
|
import { Button, FormControl, IconButton, Input, SecretInput, Tooltip } from "@app/components/v2";
|
||||||
import { useTimedReset } from "@app/hooks";
|
import { useTimedReset } from "@app/hooks";
|
||||||
import { useCreateDynamicSecretLease } from "@app/hooks/api";
|
import { useCreateDynamicSecretLease } from "@app/hooks/api";
|
||||||
@@ -102,7 +102,7 @@ export const CreateDynamicSecretLease = ({
|
|||||||
ttl: "1h"
|
ttl: "1h"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
|
|
||||||
const createDynamicSecretLease = useCreateDynamicSecretLease();
|
const createDynamicSecretLease = useCreateDynamicSecretLease();
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -9,7 +9,7 @@ import {
|
|||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { format, formatDistance } from "date-fns";
|
import { format, formatDistance } from "date-fns";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { ProjectPermissionCan } from "@app/components/permissions";
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
@@ -60,7 +60,7 @@ export const DynamicSecretLease = ({
|
|||||||
path: secretPath,
|
path: secretPath,
|
||||||
dynamicSecretName
|
dynamicSecretName
|
||||||
});
|
});
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
|
|
||||||
const deleteDynamicSecretLease = useRevokeDynamicSecretLease();
|
const deleteDynamicSecretLease = useRevokeDynamicSecretLease();
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -7,7 +7,7 @@ import {
|
|||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { ProjectPermissionCan } from "@app/components/permissions";
|
import { ProjectPermissionCan } from "@app/components/permissions";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
@@ -59,7 +59,7 @@ export const DynamicSecretListView = ({
|
|||||||
"deleteDynamicSecret"
|
"deleteDynamicSecret"
|
||||||
] as const);
|
] as const);
|
||||||
|
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
const deleteDynamicSecret = useDeleteDynamicSecret();
|
const deleteDynamicSecret = useDeleteDynamicSecret();
|
||||||
|
|
||||||
const handleDynamicSecretDelete = async () => {
|
const handleDynamicSecretDelete = async () => {
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
|
|||||||
import ms from "ms";
|
import ms from "ms";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
|
||||||
import { TtlFormLabel } from "@app/components/features";
|
import { TtlFormLabel } from "@app/components/features";
|
||||||
|
import { createNotification } from "@app/components/notifications";
|
||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
AccordionContent,
|
AccordionContent,
|
||||||
@@ -94,7 +94,7 @@ export const EditDynamicSecretSqlProviderForm = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
const updateDynamicSecret = useUpdateDynamicSecret();
|
const updateDynamicSecret = useUpdateDynamicSecret();
|
||||||
|
|
||||||
const handleUpdateDynamicSecret = async ({ inputs, maxTTL, defaultTTL, newName }: TForm) => {
|
const handleUpdateDynamicSecret = async ({ inputs, maxTTL, defaultTTL, newName }: TForm) => {
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ import { zodResolver } from "@hookform/resolvers/zod";
|
|||||||
import ms from "ms";
|
import ms from "ms";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
|
|
||||||
import { TtlFormLabel } from "@app/components/features";
|
import { TtlFormLabel } from "@app/components/features";
|
||||||
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { Button, FormControl, Input } from "@app/components/v2";
|
import { Button, FormControl, Input } from "@app/components/v2";
|
||||||
import { useRenewDynamicSecretLease } from "@app/hooks/api";
|
import { useRenewDynamicSecretLease } from "@app/hooks/api";
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ export const RenewDynamicSecretLease = ({
|
|||||||
ttl: "1h"
|
ttl: "1h"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const { createNotification } = useNotificationContext();
|
|
||||||
|
|
||||||
const renewDynamicSecretLease = useRenewDynamicSecretLease();
|
const renewDynamicSecretLease = useRenewDynamicSecretLease();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user