mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { ReactComponent as FileIcon } from '@/assets/svg/file-management.svg';
|
||||
import { ReactComponent as GraphIcon } from '@/assets/svg/graph.svg';
|
||||
import { ReactComponent as KnowledgeBaseIcon } from '@/assets/svg/knowledge-base.svg';
|
||||
import { useTranslate } from '@/hooks/commonHooks';
|
||||
import { useNavigateWithFromState } from '@/hooks/routeHook';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { useNavigateWithFromState } from '@/hooks/route-hook';
|
||||
import { Flex, Layout, Radio, Space, theme } from 'antd';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { useLocation } from 'umi';
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { useTranslate } from '@/hooks/commonHooks';
|
||||
import { useTranslate } from '@/hooks/common-hooks';
|
||||
import { DownOutlined, GithubOutlined } from '@ant-design/icons';
|
||||
import { Dropdown, MenuProps, Space } from 'antd';
|
||||
import camelCase from 'lodash/camelCase';
|
||||
|
||||
@ -1,30 +1,33 @@
|
||||
import { useFetchUserInfo, useSelectUserInfo } from '@/hooks/userSettingHook';
|
||||
import { Avatar } from 'antd';
|
||||
import React from 'react';
|
||||
import { history } from 'umi';
|
||||
|
||||
import styles from '../../index.less';
|
||||
|
||||
const App: React.FC = () => {
|
||||
const userInfo = useSelectUserInfo();
|
||||
|
||||
const toSetting = () => {
|
||||
history.push('/user-setting');
|
||||
};
|
||||
|
||||
useFetchUserInfo();
|
||||
|
||||
return (
|
||||
<Avatar
|
||||
size={32}
|
||||
onClick={toSetting}
|
||||
className={styles.clickAvailable}
|
||||
src={
|
||||
userInfo.avatar ??
|
||||
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
import {
|
||||
useFetchUserInfo,
|
||||
useSelectUserInfo,
|
||||
} from '@/hooks/user-setting-hooks';
|
||||
import { Avatar } from 'antd';
|
||||
import React from 'react';
|
||||
import { history } from 'umi';
|
||||
|
||||
import styles from '../../index.less';
|
||||
|
||||
const App: React.FC = () => {
|
||||
const userInfo = useSelectUserInfo();
|
||||
|
||||
const toSetting = () => {
|
||||
history.push('/user-setting');
|
||||
};
|
||||
|
||||
useFetchUserInfo();
|
||||
|
||||
return (
|
||||
<Avatar
|
||||
size={32}
|
||||
onClick={toSetting}
|
||||
className={styles.clickAvailable}
|
||||
src={
|
||||
userInfo.avatar ??
|
||||
'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png'
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user