From eef90317cfb90ef74a3ebdcbcda57c96df39a24b Mon Sep 17 00:00:00 2001 From: chenxv399 Date: Sun, 12 Jan 2025 12:29:28 +0800 Subject: [PATCH] =?UTF-8?q?branding(ClientApi):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=B6=88=E6=81=AF=E5=92=8C=E5=93=81=E7=89=8C?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改分享消息,增加 UtopiAI 和 NextChat-U 链接 - 更新存储键名为 "utopiai" - 调整主题颜色方案 --- app/client/api.ts | 4 +--- app/constant.ts | 7 ++----- app/styles/globals.scss | 8 ++++---- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/app/client/api.ts b/app/client/api.ts index 8f263763b..3790ee010 100644 --- a/app/client/api.ts +++ b/app/client/api.ts @@ -185,11 +185,9 @@ export class ClientApi { { from: "human", value: - "Share from [NextChat]: https://github.com/Yidadaa/ChatGPT-Next-Web", + "Share from [UtopiAI]: https://code.utopias.site/chenxv399/NextChat-U | Powered By [NextChat]: https://github.com/Yidadaa/ChatGPT-Next-Web", }, ]); - // 敬告二开开发者们,为了开源大模型的发展,请不要修改上述消息,此消息用于后续数据清洗使用 - // Please do not modify this message console.log("[Share]", messages, msgs); const clientConfig = getClientConfig(); diff --git a/app/constant.ts b/app/constant.ts index 29a6f6ae3..3f70185a2 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -105,7 +105,7 @@ export const ACCESS_CODE_PREFIX = "nk-"; export const LAST_INPUT_KEY = "last-input"; export const UNFINISHED_INPUT = (id: string) => "unfinished-input-" + id; -export const STORAGE_KEY = "chatgpt-next-web"; +export const STORAGE_KEY = "utopiai"; export const REQUEST_TIMEOUT_MS = 60000; @@ -630,7 +630,4 @@ export const CHAT_PAGE_SIZE = 15; export const MAX_RENDER_MSG_COUNT = 45; // some famous webdav endpoints -export const internalAllowedWebDavEndpoints = [ - "https://dav.example.com/dav/", -]; - +export const internalAllowedWebDavEndpoints = ["https://dav.example.com/dav/"]; diff --git a/app/styles/globals.scss b/app/styles/globals.scss index e8c10de3f..90e6633b3 100644 --- a/app/styles/globals.scss +++ b/app/styles/globals.scss @@ -8,8 +8,8 @@ --white: white; --black: rgb(48, 48, 48); --gray: rgb(250, 250, 250); - --primary: rgb(29, 147, 171); - --second: rgb(231, 248, 255); + --primary: #769fcd; + --second: #d6e6f2; --hover-color: #f3f3f3; --bar-color: rgba(0, 0, 0, 0.1); --theme-color: var(--gray); @@ -29,8 +29,8 @@ --white: rgb(30, 30, 30); --black: rgb(187, 187, 187); --gray: rgb(21, 21, 21); - --primary: rgb(29, 147, 171); - --second: rgb(27 38 42); + --primary: #769fcd; + --second: rgb(8, 35, 57); --hover-color: #323232; --bar-color: rgba(255, 255, 255, 0.1);