chore: dark config

This commit is contained in:
jialin
2025-04-28 10:05:06 +08:00
parent d4d7148f16
commit ce9c31f368
35 changed files with 678 additions and 399 deletions
@@ -6,7 +6,7 @@
display: flex;
justify-content: space-around;
border-radius: var(--ant-border-radius-lg);
border: 1px solid var(--color-border-1);
border: 1px solid var(--ant-color-border);
}
}
+1 -1
View File
@@ -16,7 +16,7 @@ const renderCardItem = (data: {
return (
<Card
bordered={false}
style={{ background: bgColor }}
style={{ background: 'var(--color-white-1)' }}
className={styles['card-body']}
>
<div className={styles.content}>
+5 -2
View File
@@ -1,6 +1,8 @@
import { userAtom } from '@/atoms/user';
import Footer from '@/components/footer';
import useUserSettings from '@/hooks/use-user-settings';
import { useModel } from '@umijs/max';
import { ConfigProvider } from 'antd';
import { useAtom } from 'jotai';
import { useEffect } from 'react';
import LoginForm from './components/login-form';
@@ -9,6 +11,7 @@ import styles from './components/styles.less';
import { checkDefaultPage } from './utils';
const Login = () => {
const { themeData } = useUserSettings();
const [userInfo, setUserInfo] = useAtom(userAtom);
const { initialState, setInitialState } = useModel('@@initialState') || {};
@@ -33,7 +36,7 @@ const Login = () => {
}, []);
return (
<>
<ConfigProvider componentSize="large" theme={themeData}>
<div className="login-wrapper"></div>
<div className={styles.box}>
<div className={styles['login-form-wrapper']}>
@@ -41,7 +44,7 @@ const Login = () => {
</div>
<Footer />
</div>
</>
</ConfigProvider>
);
};
@@ -48,8 +48,6 @@ interface MessageProps {
const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
const { modelList } = props;
const acceptType =
'.txt, .doc, .docx, .xls, .xlsx, .csv, .md, .pdf, .eml, .msg, .ppt, .pptx, .xml, .epub, .html';
const messageId = useRef<number>(0);
const intl = useIntl();
@@ -266,15 +264,6 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
setShow(false);
};
const handleUpdateFileList = (
files: { text: string; name: string; uid: number | string }[]
) => {
console.log('files:', files);
setFileList((preList) => {
return [...preList, ...files];
});
};
const handleScaleOutputSize = (
e: any,
direction: string,
@@ -445,18 +434,6 @@ const GroundEmbedding: React.FC<MessageProps> = forwardRef((props, ref) => {
[]
);
// useHotkeys(
// HotKeys.SUBMIT,
// (e: any) => {
// e.preventDefault();
// handleSendMessage();
// },
// {
// enabled: !loading,
// preventDefault: true
// }
// );
useEffect(() => {
if (scroller.current) {
initialize(scroller.current);
+1 -1
View File
@@ -10,11 +10,11 @@
justify-content: space-between;
padding: 0;
padding-right: 6px;
overflow: hidden;
cursor: pointer;
transition: background-color 0.3s ease;
border-radius: var(--border-radius-base);
border: 1px solid var(--ant-color-border);
background-color: #fff;
.btn-group {
display: none;
-1
View File
@@ -14,7 +14,6 @@
padding-top: 16px;
position: sticky;
top: 0;
background: var(--color-white-1);
z-index: 100;
align-items: center;
}
+1 -1
View File
@@ -6,7 +6,7 @@
display: flex;
justify-content: space-around;
border-radius: var(--ant-border-radius-lg);
border: 1px solid var(--color-border-1);
border: 1px solid var(--ant-color-border);
}
}