Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
f77294f4
Commit
f77294f4
authored
Jul 19, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图形化灰度发布功能
parent
d39f55cc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
+8
-4
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+2
-2
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+2
-2
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/RouterTopology.java
View file @
f77294f4
...
...
@@ -252,12 +252,16 @@ public class RouterTopology extends AbstractTopology {
public
void
execute
(
ActionEvent
e
)
{
String
routerPath
=
textField
.
getText
();
String
serviceId
=
comboBox
.
getSelectedItem
().
toString
();
if
(
StringUtils
.
isNotEmpty
(
routerPath
))
{
routerPath
=
routerPath
+
";"
+
serviceId
;
if
(
StringUtils
.
isEmpty
(
routerPath
))
{
return
;
}
if
(
routerPath
.
contains
(
";"
))
{
routerPath
=
routerPath
.
substring
(
0
,
routerPath
.
lastIndexOf
(
";"
));
}
else
{
routerPath
=
serviceId
;
routerPath
=
""
;
}
textField
.
setText
(
routerPath
);
}
};
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
f77294f4
...
...
@@ -11,8 +11,8 @@ execute_gray_router=执行灰度路由
refresh_gray_state
=
刷新灰度状态
service_list
=
服务列表
add_service
=
添加服务
delete_service
=
添加
服务
add_service
=
添加
一个
服务
delete_service
=
删除一个
服务
execute_router
=
执行路由
clear_router
=
清除路由
router_path_invalid
=
路由路径不能为空
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
f77294f4
...
...
@@ -11,8 +11,8 @@ execute_gray_router=\u6267\u884c\u7070\u5ea6\u8def\u7531
refresh_gray_state
=
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
service_list
=
\u
670d
\u
52a1
\u5217\u8868
add_service
=
\u
6dfb
\u
52a0
\u
670d
\u
52a1
delete_service
=
\u
6dfb
\u
52a0
\u
670d
\u
52a1
add_service
=
\u
6dfb
\u
52a0
\u
4e00
\u
4e2a
\u
670d
\u
52a1
delete_service
=
\u
5220\u9664\u
4e00
\u
4e2a
\u
670d
\u
52a1
execute_router
=
\u6267\u
884c
\u
8def
\u7531
clear_router
=
\u
6e05
\u9664\u
8def
\u7531
router_path_invalid
=
\u
8def
\u7531\u
8def
\u
5f84
\u
4e0d
\u
80fd
\u
4e3a
\u
7a7a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment