修正一些单词写错问题

This commit is contained in:
wkj 2025-05-09 15:08:10 +08:00
parent 80509da833
commit 3a2b1dd845
9 changed files with 17 additions and 17 deletions

View File

@ -537,7 +537,7 @@ export async function verifyPassword(params, context) {
}
}, {});
if (!user) {
throw new OakUserException('error::user.passwordUnmath');
throw new OakUserException('error::user.passwordUnmatch');
}
await context.operate('user', {
id: await generateNewIdAsync(),
@ -693,7 +693,7 @@ export async function loginByAccount(params, context) {
return await setupEmail(account, env, context);
}
else {
throw new OakUserException('error::user.emaiUnexists');
throw new OakUserException('error::user.emailUnexists');
}
}
else {
@ -701,7 +701,7 @@ export async function loginByAccount(params, context) {
}
}
default: {
throw new OakUserException('error::user.loginWayDisabled');
throw new OakUserException('error::user.loginWayDisabled');
}
}
}

View File

@ -1,7 +1,7 @@
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "article", false, {
tocClosed: boolean;
tocFixed: boolean;
tocPosition: "left" | "right" | "none";
tocPosition: "none" | "left" | "right";
highlightBgColor: string;
headerTop: number;
className: string;

View File

@ -1,7 +1,7 @@
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, keyof import("../../../oak-app-domain").EntityDict, false, {
tocClosed: boolean;
tocFixed: boolean;
tocPosition: "left" | "right" | "none";
tocPosition: "none" | "left" | "right";
highlightBgColor: string;
headerTop: number;
className: string;

View File

@ -2,7 +2,7 @@ import { EntityDict } from '../../../oak-app-domain';
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "article", false, {
articleMenuId: string;
changeIsEdit: () => void;
tocPosition: "left" | "right" | "none";
tocPosition: "none" | "left" | "right";
highlightBgColor: string;
onArticlePreview: (content?: string, title?: string) => void;
origin: string;

View File

@ -4,7 +4,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
show: "preview" | "edit" | "doc";
articleMenuId: string;
articleId: string;
tocPosition: "left" | "right" | "none";
tocPosition: "none" | "left" | "right";
highlightBgColor: string;
onMenuView: () => void;
onMenuViewById: (articleMenuId: string) => void;

View File

@ -15,7 +15,7 @@ declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends key
type?: ButtonProps['type'] | AmButtonProps['type'];
executeText?: string | undefined;
buttonProps?: (ButtonProps & {
color?: "success" | "default" | "warning" | "primary" | "danger" | undefined;
color?: "default" | "success" | "primary" | "warning" | "danger" | undefined;
fill?: "none" | "solid" | "outline" | undefined;
size?: "small" | "middle" | "large" | "mini" | undefined;
block?: boolean | undefined;
@ -24,10 +24,10 @@ declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends key
loadingIcon?: import("react").ReactNode;
disabled?: boolean | undefined;
onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => unknown) | undefined;
type?: "button" | "reset" | "submit" | undefined;
type?: "button" | "submit" | "reset" | undefined;
shape?: "default" | "rounded" | "rectangular" | undefined;
children?: import("react").ReactNode;
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd"> & {
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseDown" | "onMouseUp" | "onTouchEnd" | "onTouchStart"> & {
className?: string | undefined;
style?: (import("react").CSSProperties & Partial<Record<"--text-color" | "--background-color" | "--border-radius" | "--border-width" | "--border-style" | "--border-color", string>>) | undefined;
tabIndex?: number | undefined;

View File

@ -1,6 +1,6 @@
import { EntityDict } from '../../../oak-app-domain';
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, false, {
type: "bind" | "login";
type: "login" | "bind";
url: string;
size: undefined;
}>) => React.ReactElement;

View File

@ -542,7 +542,7 @@ async function verifyPassword(params, context) {
}
}, {});
if (!user) {
throw new types_1.OakUserException('error::user.passwordUnmath');
throw new types_1.OakUserException('error::user.passwordUnmatch');
}
await context.operate('user', {
id: await (0, uuid_1.generateNewIdAsync)(),
@ -699,7 +699,7 @@ async function loginByAccount(params, context) {
return await setupEmail(account, env, context);
}
else {
throw new types_1.OakUserException('error::user.emaiUnexists');
throw new types_1.OakUserException('error::user.emailUnexists');
}
}
else {
@ -707,7 +707,7 @@ async function loginByAccount(params, context) {
}
}
default: {
throw new types_1.OakUserException('error::user.loginWayDisabled');
throw new types_1.OakUserException('error::user.loginWayDisabled');
}
}
}

View File

@ -729,7 +729,7 @@ export async function verifyPassword<ED extends EntityDict>(
}, { });
if (!user) {
throw new OakUserException('error::user.passwordUnmath');
throw new OakUserException('error::user.passwordUnmatch');
}
await context.operate('user', {
@ -910,14 +910,14 @@ export async function loginByAccount<ED extends EntityDict>(
}
return await setupEmail<ED>(account, env, context);
} else {
throw new OakUserException('error::user.emaiUnexists');
throw new OakUserException('error::user.emailUnexists');
}
} else {
throw new OakUserException('error::user.loginWayDisabled');
}
}
default: {
throw new OakUserException('error::user.loginWayDisabled');
throw new OakUserException('error::user.loginWayDisabled');
}
}
} else if (accountType === 'mobile') {