fix: filter non-normal gguf files

This commit is contained in:
jialin
2025-08-14 11:03:55 +08:00
parent ccfdb99348
commit d6dce4021d
12 changed files with 107 additions and 51 deletions
+19 -1
View File
@@ -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;