Commit d0e935a6 by CaIon

feat: 从本地读取字体 (close #130)

parent 97071929
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"react-telegram-login": "^1.1.2", "react-telegram-login": "^1.1.2",
"react-toastify": "^9.0.8", "react-toastify": "^9.0.8",
"react-turnstile": "^1.0.5", "react-turnstile": "^1.0.5",
"semantic-ui-css": "^2.5.0", "semantic-ui-offline": "^2.5.0",
"semantic-ui-react": "^2.1.3" "semantic-ui-react": "^2.1.3"
}, },
"scripts": { "scripts": {
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"prettier": "2.8.8", "prettier": "2.8.8",
"typescript": "4.4.2", "typescript": "4.4.2",
"vite": "^5.2.0", "vite": "^5.2.0"
"@vitejs/plugin-react": "^4.2.1"
}, },
"prettier": { "prettier": {
"singleQuote": true, "singleQuote": true,
......
...@@ -4,7 +4,7 @@ import {BrowserRouter} from 'react-router-dom'; ...@@ -4,7 +4,7 @@ import {BrowserRouter} from 'react-router-dom';
import App from './App'; import App from './App';
import HeaderBar from './components/HeaderBar'; import HeaderBar from './components/HeaderBar';
import Footer from './components/Footer'; import Footer from './components/Footer';
import 'semantic-ui-css/semantic.min.css'; import 'semantic-ui-offline/semantic.min.css';
import './index.css'; import './index.css';
import {UserProvider} from './context/User'; import {UserProvider} from './context/User';
import {ToastContainer} from 'react-toastify'; import {ToastContainer} from 'react-toastify';
......
...@@ -33,7 +33,7 @@ export default defineConfig({ ...@@ -33,7 +33,7 @@ export default defineConfig({
manualChunks: { manualChunks: {
'react-core': ['react', 'react-dom', 'react-router-dom'], 'react-core': ['react', 'react-dom', 'react-router-dom'],
'semi-ui': ['@douyinfe/semi-icons', '@douyinfe/semi-ui'], 'semi-ui': ['@douyinfe/semi-icons', '@douyinfe/semi-ui'],
'semantic': ['semantic-ui-css', 'semantic-ui-react'], 'semantic': ['semantic-ui-offline', 'semantic-ui-react'],
'visactor': ['@visactor/react-vchart', '@visactor/vchart'], 'visactor': ['@visactor/react-vchart', '@visactor/vchart'],
'tools': ['axios', 'history', 'marked'], 'tools': ['axios', 'history', 'marked'],
'react-components': ['react-dropzone', 'react-fireworks', 'react-telegram-login', 'react-toastify', 'react-turnstile'], 'react-components': ['react-dropzone', 'react-fireworks', 'react-telegram-login', 'react-toastify', 'react-turnstile'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment