From f96fdc2970fe408ca3d671f38b1db25e4959858e Mon Sep 17 00:00:00 2001 From: KVOJJJin Date: Thu, 12 Dec 2024 10:09:48 +0800 Subject: [PATCH] Feat: dark mode for logs and annotations (#11575) --- .../app/(appDetailLayout)/[appId]/layout.tsx | 4 +- .../add-annotation-modal/edit-item/index.tsx | 6 +- .../annotation/add-annotation-modal/index.tsx | 5 +- .../csv-downloader.tsx | 16 +- .../csv-uploader.tsx | 18 +- .../batch-add-annotation-modal/index.tsx | 7 +- .../edit-annotation-modal/edit-item/index.tsx | 26 +- .../edit-annotation-modal/index.tsx | 2 +- .../app/annotation/header-opts/index.tsx | 45 ++- .../annotation/header-opts/style.module.css | 38 --- web/app/components/app/annotation/index.tsx | 29 +- web/app/components/app/annotation/list.tsx | 26 +- .../hit-history-no-data.tsx | 8 +- .../view-annotation-modal/index.tsx | 48 +-- .../view-annotation-modal/style.module.css | 9 - .../components/app/log-annotation/index.tsx | 2 +- web/app/components/app/log/list.tsx | 303 +++++++----------- web/app/components/app/log/model-info.tsx | 107 +++++++ web/app/components/app/log/var-panel.tsx | 24 +- .../app/text-generate/item/index.tsx | 2 +- .../base/chat/chat/answer/index.tsx | 8 +- .../components/base/checkbox/assets/check.svg | 3 - .../components/base/checkbox/index.module.css | 14 - web/app/components/base/checkbox/index.tsx | 28 +- web/app/components/base/copy-icon/index.tsx | 4 +- web/app/components/base/drawer-plus/index.tsx | 10 +- web/app/components/base/drawer/index.tsx | 2 +- .../annotation-reply/config-param-modal.tsx | 4 +- .../annotation-reply/config-param.tsx | 6 +- .../score-slider/base-slider/index.tsx | 2 +- .../annotation-reply/score-slider/index.tsx | 6 +- web/app/components/base/modal/index.css | 2 +- web/app/components/base/modal/index.tsx | 12 +- web/app/components/base/popover/index.tsx | 17 +- .../components/base/popover/style.module.css | 9 - .../base/tab-slider-plain/index.tsx | 12 +- web/app/components/base/tooltip/index.tsx | 2 +- .../model-provider-page/model-badge/index.tsx | 2 +- .../model-provider-page/model-name/index.tsx | 13 +- web/app/components/header/tools-nav/index.tsx | 7 +- .../nodes/_base/components/editor/base.tsx | 8 +- web/i18n/en-US/app-log.ts | 1 + web/i18n/zh-Hans/app-log.ts | 1 + 43 files changed, 426 insertions(+), 472 deletions(-) delete mode 100644 web/app/components/app/annotation/header-opts/style.module.css delete mode 100644 web/app/components/app/annotation/view-annotation-modal/style.module.css create mode 100644 web/app/components/app/log/model-info.tsx delete mode 100644 web/app/components/base/checkbox/assets/check.svg delete mode 100644 web/app/components/base/checkbox/index.module.css delete mode 100644 web/app/components/base/popover/style.module.css diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx index 96ee874d53caff..7a5347c7d54eed 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/layout.tsx @@ -141,7 +141,7 @@ const AppDetailLayout: FC = (props) => { if (!appDetail) { return ( -
+
) @@ -152,7 +152,7 @@ const AppDetailLayout: FC = (props) => { {appDetail && ( )} -
+
{children}
diff --git a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx index 4da6b7cac4d0b4..032e4b83576adf 100644 --- a/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx +++ b/web/app/components/app/annotation/add-annotation-modal/edit-item/index.tsx @@ -2,7 +2,7 @@ import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' -import Textarea from 'rc-textarea' +import Textarea from '@/app/components/base/textarea' import { Robot, User } from '@/app/components/base/icons/src/public/avatar' export enum EditItemType { @@ -31,12 +31,10 @@ const EditItem: FC = ({ {avatar}
-
{name}
+
{name}