Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Feb 21, 2024
1 parent 8a916c0 commit 76f83fe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
6 changes: 3 additions & 3 deletions web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -756,4 +756,4 @@
"Title": "Laf is ready to update!",
"Description": "Click to update"
}
}
}
25 changes: 23 additions & 2 deletions web/src/apis/v1/api-auto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */;
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/auth/signup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 76f83fe

Please sign in to comment.