chore: updates
This commit is contained in:
@@ -252,6 +252,9 @@ html.dark ::-webkit-scrollbar-thumb {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
#MARKDOWN_CONTAINER .toastui-editor-contents p {
|
||||
white-space: break-spaces;
|
||||
}
|
||||
#MARKDOWN_CONTAINER .toastui-editor-contents iframe {
|
||||
width: 640px;
|
||||
}
|
||||
|
||||
@@ -449,6 +449,7 @@ export default function useStreaming() {
|
||||
} else {
|
||||
const elapsedTime = (new Date().getTime() - hiddenTime) / 1000;
|
||||
// 大于 1 天
|
||||
// const timeSpan = 60;
|
||||
const timeSpan = 24 * 60 * 60;
|
||||
// const timeSpan = 5;
|
||||
const canReconnect = elapsedTime > timeSpan || !SSE;
|
||||
|
||||
@@ -9,7 +9,6 @@ import useGithubAuthConfig from "@/hooks/useGithubAuthConfig";
|
||||
import useGoogleAuthConfig from "@/hooks/useGoogleAuthConfig";
|
||||
import { useLoginMutation } from "../../app/services/auth";
|
||||
import { AuthType } from "../../types/common";
|
||||
import { LoginConfig } from "../../types/server";
|
||||
import MetamaskLoginButton from "./MetamaskLoginButton";
|
||||
import OidcLoginButton from "./OidcLoginButton";
|
||||
|
||||
@@ -36,7 +35,7 @@ const SocialLoginButtons = ({ type = "login" }: Props) => {
|
||||
google: enableGoogleLogin,
|
||||
metamask: enableMetamaskLogin,
|
||||
oidc = []
|
||||
} = loginConfig as LoginConfig;
|
||||
} = loginConfig;
|
||||
const googleLogin = enableGoogleLogin && !!clientId;
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -27,7 +27,7 @@ export default function LoginPage() {
|
||||
const { t } = useTranslation("auth");
|
||||
const { t: ct } = useTranslation();
|
||||
const { data: enableSMTP, isLoading: loadingSMTPStatus } = useGetSMTPStatusQuery();
|
||||
const [login, { isSuccess, isLoading, error }] = useLoginMutation();
|
||||
const [login, { isSuccess, isLoading }] = useLoginMutation();
|
||||
const { data: loginConfig, isSuccess: loginConfigSuccess } = useGetLoginConfigQuery();
|
||||
const [emailInputted, setEmailInputted] = useState(false);
|
||||
const [input, setInput] = useState(defaultInput);
|
||||
|
||||
Reference in New Issue
Block a user