style: dashboard style
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user