+
Skip to content

更新最新版本前端 #9

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
4 changes: 1 addition & 3 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@
`pnpm install`

## 编译
仅编译管理后台(打包目录为dist):`pnpm run build`
仅编译租户端(打包目录为tenant_dist):`pnpm run build:tenant`
同时编译管理后台和租户端:`pnpm run build:all`
`pnpm run build`
8 changes: 2 additions & 6 deletions frontend/README.pro.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

## 编译
### 开源版本
仅编译管理后台(打包目录为dist):`pnpm run build`
仅编译租户端(打包目录为tenant_dist):`pnpm run build:tenant`
同时编译管理后台和租户端:`pnpm run build:all`
`pnpm run build`
### 企业版本
仅编译管理后台(打包目录为dist):`pnpm run build:pro`
仅编译租户端(租户端暂时不区分企业版和开源版,打包目录为tenant_dist):`pnpm run build:tenant`
同时编译管理后台和租户端:`pnpm run build:pro:all`
`pnpm run build:pro`
4 changes: 0 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
"description": "",
"scripts": {
"test": "jest",
"build:all": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=core --scope=market --stream",
"build:pro:all": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=businessEntry --scope=market --stream",
"build": "set NODE_OPTIONS=--max-old-space-size=4096 && lerna run build --scope=core --stream --verbose ",
"build:pro": "set NODE_OPTIONS=--max-old-space-size=4096 && lerna run build --scope=business-entry --stream --verbose ",
"build:tenant": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=market --stream",
"serve": "lerna run preview --parallel",
"serve:remotes": "lerna run serve --scope=remote --parallel",
"dev": "lerna run dev --scope=core --stream",
"dev:pro": "lerna run dev --scope=business-entry --stream",
"dev:tenant": "lerna run dev --scope=market --stream",
"stop": "kill-port --port 5000,5001"
},
"keywords": [],
Expand Down
87 changes: 0 additions & 87 deletions frontend/packages/businessEntry/tailwind.config.js

This file was deleted.

20 changes: 0 additions & 20 deletions frontend/packages/common/src/components/aoplatform/BasicLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,11 @@ const themeToken = {
const navigator = useNavigate()
const location = useLocation()
const currentUrl = location.pathname
const query =new URLSearchParams(useLocation().search)
const [isServiceHub,setIsServiceHub] = useState<boolean>(false)
const [,setIsRentMng] = useState<boolean>(false)
const [isMng,setIsMng] = useState<boolean>(false)
const { accessData,checkPermission} = useGlobalContext()
const [pathname, setPathname] = useState(currentUrl);
const mainPage = project === 'core' ?'/service/list':'/serviceHub/list'

useEffect(() => {
setIsServiceHub(currentUrl.includes('/serviceHub'))
setIsRentMng(currentUrl.includes('/tenantManagement'))
setIsMng(project === 'core' && !currentUrl.includes('/serviceHub') && !currentUrl.includes('/tenantManagement'))
if(currentUrl === '/'){
navigator(mainPage)
}
Expand Down Expand Up @@ -87,20 +80,7 @@ const themeToken = {
// 返回处理后的数据
return { path: '/', routes: res.map(x=> ({...x, routes: x.routes?.filter(x=> (x.access || x.routes?.length > 0))})).filter(x=> (x.access || x.routes?.length > 0)) };
}, [accessData]);



const openServiceHub =()=>{
isMng ? window.open(`/serviceHub/list`,'_blank') : navigator('/serviceHub/list')
}

const backToPage =()=>{
// const backUrl = query.get('callbackUrl')
// navigator(backUrl&& backUrl !== 'null' ?backUrl : '/')
isServiceHub?window.open(`/tenantManagement/list`,'_blank') : navigator('/serviceHub/list')
}


const { modal,message } = App.useApp()
const { dispatch,resetAccess,getGlobalAccessData} = useGlobalContext()
const [userInfo,setUserInfo] = useState<UserInfoType>()
Expand Down

This file was deleted.

Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载