chore: updates

This commit is contained in:
Tristan Yang
2024-03-28 21:56:40 +08:00
parent fafd367bfb
commit dae054f673
6 changed files with 1070 additions and 1005 deletions
+3
View File
@@ -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;
}
+1
View File
@@ -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;
+1 -2
View File
@@ -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 (
<>
+1 -1
View File
@@ -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);