Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge remote-tracking branch 'upstream/main' into feat/39

이강준5910bfbb4d5a
diff --cc frontend/components/basic/Layout.tsx
index c348888003,4a40fdef08..6edb7ede5d
--- a/frontend/components/basic/Layout.tsx
+++ b/frontend/components/basic/Layout.tsx
@@@ -113,27 -130,25 +133,25 @@@ export default function Layout({ childr
const menuItems = [
{
href:
- "/dashboard/" + workspaceMapping[workspaceSelected] + "?Development",
+ "/dashboard/" +
+ workspaceMapping[workspaceSelected as any] +
+ "?Development",
- title: "Secrets",
+ title: t("nav:menu.secrets"),
emoji: <FontAwesomeIcon icon={faKey} />,
},
{
- href: "/users/" + workspaceMapping[workspaceSelected],
+ href: "/users/" + workspaceMapping[workspaceSelected as any],
- title: "Members",
+ title: t("nav:menu.members"),
emoji: <FontAwesomeIcon icon={faUser} />,
},
{
- href: "/integrations/" + workspaceMapping[workspaceSelected],
+ href: "/integrations/" + workspaceMapping[workspaceSelected as any],
- title: "Integrations",
+ title: t("nav:menu.integrations"),
emoji: <FontAwesomeIcon icon={faPlug} />,
},
{
- href: "/settings/project/" + workspaceMapping[workspaceSelected],
+ href: "/settings/project/" + workspaceMapping[workspaceSelected as any],
- title: "Project Settings",
+ title: t("nav:menu.project-settings"),
emoji: <FontAwesomeIcon icon={faGear} />,
},
];
@@@ -221,9 -246,9 +249,9 @@@
<nav className="flex flex-col justify-between items-between h-full">
{/* <div className="py-6"></div> */}
<div>
- <div className="flex justify-center w-full mt-[4.5rem] mb-6 bg-bunker-600 w-full h-20 flex flex-col items-center px-4">
+ <div className="flex justify-center w-full mt-[4.5rem] mb-6 bg-bunker-600 h-20 flex-col items-center px-4">
<div className="text-gray-400 self-start ml-1 mb-1 text-xs font-semibold tracking-wide">
- PROJECT
+ {t("nav:menu.project")}
</div>
{workspaceList.length > 0 ? (
<Listbox
diff --cc frontend/pages/dashboard/[id].js
index a4dc9c7820,bec6849ad6..c4aa8f5e26
--- a/frontend/pages/dashboard/[id].js
+++ b/frontend/pages/dashboard/[id].js
@@@ -61,10 -61,9 +62,10 @@@ const KeyPair = (
modifyValue,
modifyVisibility,
isBlurred,
- duplicates
+ duplicates,
}) => {
const [randomStringLength, setRandomStringLength] = useState(32);
+ const { t } = useTranslation();
return (
<div className="px-1 flex flex-col items-center ml-1">
@@@ -231,8 -228,8 +232,10 @@@ export default function Dashboard()
const [checkDocsPopUpVisible, setCheckDocsPopUpVisible] = useState(false);
const [hasUserEverPushed, setHasUserEverPushed] = useState(false);
+ const { t } = useTranslation();
+
+ const { createNotification } = useNotificationContext();
+
// #TODO: fix save message for changing reroutes
// const beforeRouteHandler = (url) => {
// const warningText =
diff --cc frontend/pages/signup.tsx
index 06632014eb,cdfb46665c..561775dd93
--- a/frontend/pages/signup.tsx
+++ b/frontend/pages/signup.tsx
@@@ -19,10 -20,8 +20,10 @@@ import checkEmailVerificationCode from
import completeAccountInformationSignup from "./api/auth/CompleteAccountInformationSignup";
import sendVerificationEmail from "./api/auth/SendVerificationEmail";
import getWorkspaces from "./api/workspace/getWorkspaces";
+import useTranslation from "next-translate/useTranslation";
+import Trans from "next-translate/Trans";
- const ReactCodeInput = dynamic(import("react-code-input"));
+ // const ReactCodeInput = dynamic(import("react-code-input"));
const nacl = require("tweetnacl");
const jsrp = require("jsrp");
nacl.util = require("tweetnacl-util");
@@@ -87,17 -86,16 +88,18 @@@ export default function SignUp()
const [verificationToken, setVerificationToken] = useState();
const [backupKeyIssued, setBackupKeyIssued] = useState(false);
+ const { t } = useTranslation();
+
- useEffect(async () => {
- let userWorkspace;
- try {
- const userWorkspaces = await getWorkspaces();
- userWorkspace = userWorkspaces[0]._id;
- router.push("/dashboard/" + userWorkspace);
- } catch (error) {
- console.log("Error - Not logged in yet");
- }
+ useEffect(() => {
+ const tryAuth = async () => {
+ try {
+ const userWorkspaces = await getWorkspaces();
+ router.push("/dashboard/" + userWorkspaces[0]._id);
+ } catch (error) {
+ console.log("Error - Not logged in yet");
+ }
+ };
+ tryAuth();
}, []);
/**
@@@ -295,19 -293,16 +300,21 @@@
// Step 2 of the signup process (enter the email verification code)
const step2 = (
<div className="bg-bunker w-max mx-auto h-7/12 pt-10 pb-4 px-8 rounded-xl drop-shadow-xl mb-64 md:mb-16">
- <p className="text-l flex justify-center text-gray-400">
- {"We've"} sent a verification email to{" "}
- </p>
- <p className="text-l flex justify-center font-semibold my-2 text-gray-400">
- {email}{" "}
- </p>
+ <Trans
+ i18nKey="signup:step2-message"
+ components={{
+ wrapper: <p className="text-l flex justify-center text-gray-400" />,
+ email: (
+ <p className="text-l flex justify-center font-semibold my-2 text-gray-400" />
+ ),
+ }}
+ values={{ email }}
+ />
+
<div className="hidden md:block">
<ReactCodeInput
+ name=""
+ inputMode="tel"
type="text"
fields={6}
onChange={setCode}
@@@ -381,10 -372,10 +390,10 @@@
</div>
<div className="mt-2 flex flex-col items-center justify-center w-full md:p-2 rounded-lg max-h-60">
<InputField
- label="Password"
+ label={t("form-password:password")}
- onChangeHandler={(password) => {
+ onChangeHandler={(password: string) => {
setPassword(password);
- passwordCheck(
+ passwordCheck({
password,
setPasswordErrorLength,
setPasswordErrorNumber,