From 6535986484abe66c8f989c811e4e815d2c8e0728 Mon Sep 17 00:00:00 2001 From: Algorithm5838 <108630393+Algorithm5838@users.noreply.github.com> Date: Fri, 15 Sep 2023 06:06:34 +0300 Subject: [PATCH 1/4] Update markdown.tsx --- app/components/markdown.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index e7a35b802..1a1fbf416 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -151,6 +151,7 @@ export function Markdown( ref={mdRef} onContextMenu={props.onContextMenu} onDoubleClickCapture={props.onDoubleClickCapture} + dir="auto" > {props.loading ? ( From bd69116df2ccaf70e6948514f381cc8375fd507e Mon Sep 17 00:00:00 2001 From: Amor Zara <132665015+a6z6@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:21:42 +0800 Subject: [PATCH 2/4] Update route.ts Correct typo error and make warning more specific. --- app/api/config/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/config/route.ts b/app/api/config/route.ts index 7749e6e9e..0bfc955bf 100644 --- a/app/api/config/route.ts +++ b/app/api/config/route.ts @@ -4,7 +4,7 @@ import { getServerSideConfig } from "../../config/server"; const serverConfig = getServerSideConfig(); -// Danger! Don not write any secret value here! +// Danger! Do not hard code any secret value here! // 警告!不要在这里写入任何敏感信息! const DANGER_CONFIG = { needCode: serverConfig.needCode, From 2c92f75c861c07d8d787cca4b81c7445ba72ce27 Mon Sep 17 00:00:00 2001 From: Amor Zara <132665015+a6z6@users.noreply.github.com> Date: Sun, 17 Sep 2023 17:32:42 +0800 Subject: [PATCH 3/4] Update .env.template --- .env.template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.env.template b/.env.template index 0f4bf0e7c..1ff575f11 100644 --- a/.env.template +++ b/.env.template @@ -15,7 +15,6 @@ BASE_URL= # Specify OpenAI organization ID.(optional) # Default: Empty -# If you do not want users to input their own API key, set this value to 1. OPENAI_ORG_ID= # (optional) @@ -31,4 +30,4 @@ DISABLE_GPT4= # (optional) # Default: Empty # If you do not want users to query balance, set this value to 1. -HIDE_BALANCE_QUERY= \ No newline at end of file +HIDE_BALANCE_QUERY= From c900459f73602a2589bdc6ca4ca2b93e2cd8c508 Mon Sep 17 00:00:00 2001 From: Gerhard Tan Date: Mon, 18 Sep 2023 09:37:19 +0800 Subject: [PATCH 4/4] Encode google font url --- app/components/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 745298d56..285ca0f58 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -115,7 +115,7 @@ const loadAsyncGoogleFont = () => { getClientConfig()?.buildMode === "export" ? remoteFontUrl : proxyFontUrl; linkEl.rel = "stylesheet"; linkEl.href = - googleFontUrl + "/css2?family=Noto+Sans:wght@300;400;700;900&display=swap"; + googleFontUrl + "/css2?family=" + encodeURIComponent("Noto Sans:wght@300;400;700;900") + "&display=swap"; document.head.appendChild(linkEl); };