style: dashboard style

This commit is contained in:
jialin
2024-06-19 18:58:49 +08:00
parent 9f34452c68
commit 8c402e88fb
24 changed files with 266 additions and 189 deletions
-20
View File
@@ -1,8 +1,5 @@
import { defineConfig } from '@umijs/max';
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CompressionWebpackPlugin = require('compression-webpack-plugin');
const DeleteCssPlugin = require('./plugins/delete-css-plugin');
import proxy from './proxy';
import routes from './routes';
@@ -17,23 +14,6 @@ export default defineConfig({
base: process.env.npm_config_base || '/',
...(isProduction
? {
// extraBabelPlugins: [
// [
// 'babel-plugin-named-asset-import',
// {
// loaderMap: {
// css: {
// loader: 'css-loader',
// options: {
// modules: {
// localIdentName: 'css/[name]__[local]___[hash:base64:5]'
// }
// }
// }
// }
// }
// ]
// ],
scripts: [
{
src: `/js/umi.${t}.js`
+7 -7
View File
@@ -7,14 +7,14 @@ export default [
redirect: '/dashboard'
},
{
name: 'dashboard',
name: 'Dashboard',
path: '/dashboard',
key: 'dashboard',
icon: 'home',
component: './dashboard'
},
{
name: 'playground',
name: 'Playground',
title: 'Playground',
path: '/playground',
key: 'playground',
@@ -22,14 +22,14 @@ export default [
component: './playground'
},
{
name: 'models',
name: 'Models',
path: '/models',
key: 'models',
icon: 'Block',
component: './llmodels'
},
{
name: 'resources',
name: 'Resources',
path: '/resources',
key: 'resources',
icon: 'CloudServer',
@@ -43,14 +43,14 @@ export default [
component: './api-keys'
},
{
name: 'users',
name: 'Users',
path: '/users',
key: 'users',
icon: 'Team',
component: './users'
},
{
name: 'profile',
name: 'Profile',
path: '/profile',
key: 'profile',
hideInMenu: true,
@@ -58,7 +58,7 @@ export default [
icon: 'User'
},
{
name: 'login',
name: 'Login',
path: '/login',
key: 'login',
layout: false,