fix: filter non-normal gguf files
This commit is contained in:
@@ -2,9 +2,27 @@ import langConfigMap from '@/locales/lang-config-map';
|
||||
import { GlobalOutlined } from '@ant-design/icons';
|
||||
import { getAllLocales, setLocale } from '@umijs/max';
|
||||
import { Dropdown } from 'antd';
|
||||
import { createStyles } from 'antd-style';
|
||||
import { get } from 'lodash';
|
||||
|
||||
const useStyles = createStyles(({ token, css }) => ({
|
||||
button: css`
|
||||
color: ${token.colorText};
|
||||
padding: 0 12px;
|
||||
cursor: pointer;
|
||||
.anticon {
|
||||
color: ${token.colorText};
|
||||
}
|
||||
&:hover {
|
||||
.anticon {
|
||||
color: ${token.colorTextTertiary};
|
||||
}
|
||||
}
|
||||
`
|
||||
}));
|
||||
|
||||
const LangSelect = () => {
|
||||
const { styles } = useStyles();
|
||||
const allLocals = getAllLocales();
|
||||
const items = allLocals.map((key) => {
|
||||
return {
|
||||
@@ -25,7 +43,7 @@ const LangSelect = () => {
|
||||
|
||||
return (
|
||||
<Dropdown menu={{ items }}>
|
||||
<span style={{ padding: '0 12px', cursor: 'pointer' }}>
|
||||
<span className={styles.button}>
|
||||
<GlobalOutlined />
|
||||
</span>
|
||||
</Dropdown>
|
||||
|
||||
@@ -15,9 +15,13 @@ const useStyles = createStyles(({ token, css }) => ({
|
||||
padding: 0 8px;
|
||||
&:hover {
|
||||
color: ${token.colorTextTertiary};
|
||||
.anticon {
|
||||
color: ${token.colorTextTertiary};
|
||||
}
|
||||
}
|
||||
.anticon {
|
||||
font-size: 16px;
|
||||
color: ${token.colorText};
|
||||
}
|
||||
.icon-auto {
|
||||
font-size: 20px;
|
||||
|
||||
Reference in New Issue
Block a user