修正一些单词写错问题
This commit is contained in:
parent
80509da833
commit
3a2b1dd845
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue