+
Skip to content

前端更新 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"devDependencies": {
"@ant-design/cssinjs": "^1.18.2",
"@antv/g6": "^4.8.24",
"@iconify/react": "^5.0.2",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@testing-library/react-hooks": "^8.0.1",
Expand All @@ -60,7 +61,7 @@
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitejs/plugin-react": "^4.2.0",
"antd": "^5.17.0",
"antd": "^5.19.4",
"babel-jest": "^29.7.0",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down
7 changes: 1 addition & 6 deletions frontend/packages/businessEntry/.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
###
# @Date: 2024-07-12 13:53:03
# @LastEditors: maggieyyy
# @LastEditTime: 2024-07-12 18:26:34
# @FilePath: \frontend\packages\core\.env.business
###

// .env.pro
VITE_APP_MODE=pro
VITE_APP_TITLE=My Production App
Expand Down
6 changes: 0 additions & 6 deletions frontend/packages/businessEntry/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<!--
* @Date: 2023-11-27 17:18:27
* @LastEditors: maggieyyy
* @LastEditTime: 2024-05-31 18:53:41
* @FilePath: \frontend\packages\core\index.html
-->
<!doctype html>
<html lang="en">
<head>
Expand Down
33 changes: 19 additions & 14 deletions frontend/packages/businessEntry/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
/*
* @Date: 2023-11-27 17:18:27
* @LastEditors: maggieyyy
* @LastEditTime: 2024-07-12 19:54:26
* @FilePath: \frontend\packages\businessEntry\src\App.tsx
*/
import '@core/App.css'
import { ConfigProvider } from 'antd';
import RenderRoutes from '@businessEntry/components/aoplatform/RenderRoutes';
import {BreadcrumbProvider} from "@common/contexts/BreadcrumbContext.tsx";
import { StyleProvider } from '@ant-design/cssinjs';
import zhCN from 'antd/locale/zh_CN';
import useInitializeMonaco from "@common/hooks/useInitializeMonaco";
import ThemeSwitcher from '@common/components/aoplatform/ThemeSwitcher'

const antdComponentThemeToken = {
token: {
Expand Down Expand Up @@ -43,13 +38,12 @@ const antdComponentThemeToken = {
optionHoverBg:'#EBEEF2'
},
Layout: {
bodyBg: '#fff',
headerBg: '#fff',
bodyBg: 'linear-gradient(107.97deg, rgba(32,41,117,1) 4.41%,rgba(16,13,27,1) 86.11%);',
headerBg: 'transparent',
headerColor: '#333',
headerHeight: 50,
headerPadding: '10 20px',
lightSiderBg: '#fff',
siderBg: '#fff',
lightSiderBg: 'transparent',
siderBg: 'transparent',
},
Breadcrumb:{
itemColor:'#666',
Expand Down Expand Up @@ -116,6 +110,16 @@ const antdComponentThemeToken = {
// itemSelectedColor:'#333',
// itemSelectedBg:'#EBEEF2',
// itemHoverBg:'#EBEEF2'
// itemHeight:'72px',
// darkItemBg:'transparent',
// itemBg:'transparent',
// itemSelectedBg:'transparent',
// darkItemSelectedBg:'transparent',
// subMenuItemBg:'transparent',
// itemActiveBg:'transparent',
// darkSubMenuItemBg:'transparent',
// activeBarHeight:'2px',
// activeBarBorderWidth:2
},
List:{
itemPadding:'8px 0'
Expand All @@ -142,9 +146,10 @@ function App() {
locale={zhCN}
wave={{disabled:true}}
theme={antdComponentThemeToken}>
<BreadcrumbProvider>
<RenderRoutes />
</BreadcrumbProvider>
<ThemeSwitcher />
<BreadcrumbProvider>
<RenderRoutes />
</BreadcrumbProvider>
</ConfigProvider>
</StyleProvider>
);
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载