Skip to content

Commit b4897b3

Browse files
authored
Merge pull request #9 from eolinker/feature/simplified_permissions
更新最新版本前端
2 parents 0ca0cfc + 5d36585 commit b4897b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7
-5719
lines changed

frontend/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@
1313
`pnpm install`
1414

1515
## 编译
16-
仅编译管理后台(打包目录为dist):`pnpm run build`
17-
仅编译租户端(打包目录为tenant_dist):`pnpm run build:tenant`
18-
同时编译管理后台和租户端:`pnpm run build:all`
16+
`pnpm run build`

frontend/README.pro.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212

1313
## 编译
1414
### 开源版本
15-
仅编译管理后台(打包目录为dist):`pnpm run build`
16-
仅编译租户端(打包目录为tenant_dist):`pnpm run build:tenant`
17-
同时编译管理后台和租户端:`pnpm run build:all`
15+
`pnpm run build`
1816
### 企业版本
19-
仅编译管理后台(打包目录为dist):`pnpm run build:pro`
20-
仅编译租户端(租户端暂时不区分企业版和开源版,打包目录为tenant_dist):`pnpm run build:tenant`
21-
同时编译管理后台和租户端:`pnpm run build:pro:all`
17+
`pnpm run build:pro`

frontend/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@
88
"description": "",
99
"scripts": {
1010
"test": "jest",
11-
"build:all": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=core --scope=market --stream",
12-
"build:pro:all": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=businessEntry --scope=market --stream",
1311
"build": "set NODE_OPTIONS=--max-old-space-size=4096 && lerna run build --scope=core --stream --verbose ",
1412
"build:pro": "set NODE_OPTIONS=--max-old-space-size=4096 && lerna run build --scope=business-entry --stream --verbose ",
15-
"build:tenant": "set NODE_OPTIONS=--max-old-space-size=16384 && lerna run build --scope=market --stream",
1613
"serve": "lerna run preview --parallel",
1714
"serve:remotes": "lerna run serve --scope=remote --parallel",
1815
"dev": "lerna run dev --scope=core --stream",
1916
"dev:pro": "lerna run dev --scope=business-entry --stream",
20-
"dev:tenant": "lerna run dev --scope=market --stream",
2117
"stop": "kill-port --port 5000,5001"
2218
},
2319
"keywords": [],

frontend/packages/businessEntry/tailwind.config.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

frontend/packages/common/src/components/aoplatform/BasicLayout.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,11 @@ const themeToken = {
3535
const navigator = useNavigate()
3636
const location = useLocation()
3737
const currentUrl = location.pathname
38-
const query =new URLSearchParams(useLocation().search)
39-
const [isServiceHub,setIsServiceHub] = useState<boolean>(false)
40-
const [,setIsRentMng] = useState<boolean>(false)
41-
const [isMng,setIsMng] = useState<boolean>(false)
4238
const { accessData,checkPermission} = useGlobalContext()
4339
const [pathname, setPathname] = useState(currentUrl);
4440
const mainPage = project === 'core' ?'/service/list':'/serviceHub/list'
4541

4642
useEffect(() => {
47-
setIsServiceHub(currentUrl.includes('/serviceHub'))
48-
setIsRentMng(currentUrl.includes('/tenantManagement'))
49-
setIsMng(project === 'core' && !currentUrl.includes('/serviceHub') && !currentUrl.includes('/tenantManagement'))
5043
if(currentUrl === '/'){
5144
navigator(mainPage)
5245
}
@@ -87,20 +80,7 @@ const themeToken = {
8780
// 返回处理后的数据
8881
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)) };
8982
}, [accessData]);
90-
91-
92-
93-
const openServiceHub =()=>{
94-
isMng ? window.open(`/serviceHub/list`,'_blank') : navigator('/serviceHub/list')
95-
}
96-
97-
const backToPage =()=>{
98-
// const backUrl = query.get('callbackUrl')
99-
// navigator(backUrl&& backUrl !== 'null' ?backUrl : '/')
100-
isServiceHub?window.open(`/tenantManagement/list`,'_blank') : navigator('/serviceHub/list')
101-
}
10283

103-
10484
const { modal,message } = App.useApp()
10585
const { dispatch,resetAccess,getGlobalAccessData} = useGlobalContext()
10686
const [userInfo,setUserInfo] = useState<UserInfoType>()

frontend/packages/common/src/components/aoplatform/intelligent-plugin/IntelligentPluginPublish.tsx

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)