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
@@ -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);