diff --git a/web/public/locales/en/translation.json b/web/public/locales/en/translation.json index f9b71192eb..735c5a06b3 100644 --- a/web/public/locales/en/translation.json +++ b/web/public/locales/en/translation.json @@ -412,14 +412,14 @@ "ResetPasswordSuccess": "Reset password successfully", "NewPassword": "New Password", "SignUpSuccess": "Sign up successfully", - "EmailTip": "Please input a valid Email", + "EmailTip": "Please input a valid email", "LoginOrRegister": "Login / Register", "BindGitHub": "Bind GitHub", "BindSuccess": "Bind Successfully", "GitHubLogin": "GitHub Login", "PleaseBindUser": "Please bind your user", "Email": "Email", - "EmailPlaceholder": "Please input your Email", + "EmailPlaceholder": "Please input your email", "EmailLogin": "Email Login" }, "Time": "Time", @@ -756,4 +756,4 @@ "Title": "Laf is ready to update!", "Description": "Click to update" } -} +} \ No newline at end of file diff --git a/web/src/apis/v1/api-auto.d.ts b/web/src/apis/v1/api-auto.d.ts index 6e32c2685f..5d746af438 100644 --- a/web/src/apis/v1/api-auto.d.ts +++ b/web/src/apis/v1/api-auto.d.ts @@ -7,7 +7,19 @@ declare namespace Definitions { tags?: string[]; }; - export type CloudFunction = {}; + export type CloudFunction = { + _id?: string; + appid?: string; + name?: string; + source?: Definitions.CloudFunctionSource; + desc?: string; + tags?: string[]; + methods?: string[]; + params?: {}; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + }; export type UpdateFunctionDto = { newName?: string /* Function name is unique in the application */; @@ -274,8 +286,8 @@ declare namespace Definitions { export type PasswdResetDto = { password?: string /* new password, 8-64 characters */; phone?: string /* phone */; + email?: string /* email */; code?: string /* verify code */; - type?: string /* type */; }; export type PasswdCheckDto = { @@ -458,6 +470,15 @@ declare namespace Definitions { role?: string; }; + export type CloudFunctionSource = { + code?: string; + compiled?: string; + uri?: string; + version?: number; + hash?: string; + lang?: string; + }; + export type CreateAutoscalingDto = { enable?: boolean; minReplicas?: number; diff --git a/web/src/pages/auth/signup/index.tsx b/web/src/pages/auth/signup/index.tsx index a1c55501bf..5dc131f113 100644 --- a/web/src/pages/auth/signup/index.tsx +++ b/web/src/pages/auth/signup/index.tsx @@ -45,7 +45,7 @@ export default function SignUp() { const sendSmsCodeMutation = useSendSmsCodeMutation(); const sendEmailCodeMutation = useSendEmailCodeMutation(); const [isNeedPhone, setIsNeedPhone] = useState(false); - const [isNeedEmail, setIsNeedEmail] = useState(true); + const [isNeedEmail, setIsNeedEmail] = useState(false); const { passwordProvider } = useAuthStore(); const { colorMode } = useColorMode();