-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(portal-web): 门户系统去除默认集群选择功能,新增集群选择排序以及记录上次选择集群功能 (#767)
## 现状 1. 目前门户系统的集群选择无法决定下拉框展示的顺序,对于大量集群的情况下,用户很难找到自己常用的集群,也无法指定某些集群优先展示。 2. 默认集群功能不完善,无法实现保存用户选择的集群作为下次的默认集群。 ## 改动 1. 每个集群配置文件新增配置priority(number类型). 用户给不同的集群配置不同的priority,数字越小,优先级越高,在下拉框以及导航栏中越优先展示。如果没有配置该参数,则默认优先级最低;如果优先级一致则按照displayName的字母排序。 ```yaml # 集群显示名称 displayName: hpc02 adapterUrl: "192.168.88.101:8972" # 新增 priority: 1 loginNodes: # 登录节点展示名称 - name: login # 登录节点的IP或者域名 # 如果设置的是域名,请确认此节点的/etc/hosts中包含了域名到IP的解析信息 address: 192.168.88.102 ``` 2. 去除门户系统右上角的默认集群选择。 ![image](https://github.com/PKUHPC/SCOW/assets/130351655/b558b2fe-8dd3-4b95-8930-54d24f8b92b9) 3. 改造默认集群以及集群选择下拉框。将用户上次选择的集群保存在浏览器的LocalStorage中, key值为``SCOW_DEFAULT_CLUSTER_ID``。如果该值在本地不存在,则取集群优先级最高的集群作为默认集群。 ![image](https://github.com/PKUHPC/SCOW/assets/130351655/55b9dc43-bd49-4ab6-8b6d-0a6a34ce8e29) ![image](https://github.com/PKUHPC/SCOW/assets/130351655/5478b975-6bea-4a10-8eca-157926dca71f) 当用户在以下功能中选择集群时,将会修改该值,且作为默认集群在整个门户系统中使用 - 作业模块下的所有集群选择下拉框 - shell 页面的导航栏点击,包括二级路由及三级路由,且点击一级路由会导航至默认集群下的shell页面 - 桌面页面的集群选择下拉框 - 交互式应用页面的导航栏点击,包括二级路由及三级路由,且点击一级路由会导航至默认集群下的交互式应用页面
- Loading branch information
1 parent
4b12bed
commit 9f70e21
Showing
19 changed files
with
123 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/config": patch | ||
--- | ||
|
||
集群配置文件新增 priority,提供集群显示排序功能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@scow/portal-web": patch | ||
"@scow/lib-web": patch | ||
"@scow/docs": patch | ||
--- | ||
|
||
门户系统去除默认集群选择功能,新增集群选择排序以及记录上次选择集群功能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.