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
8b430bfe
Commit
8b430bfe
authored
Aug 09, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改界面
parent
15c7d8cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
+7
-7
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
+4
-0
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
+4
-0
No files found.
discovery-console-desktop/src/main/java/com/nepxion/discovery/console/desktop/workspace/ServiceTopology.java
View file @
8b430bfe
...
...
@@ -726,7 +726,7 @@ public class ServiceTopology extends AbstractTopology {
globalGrayPanel
.
setFilters
(
globalFilterVector
);
JBasicOptionPane
.
showOptionDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
globalGrayPanel
,
ConsoleLocale
.
getString
(
"
execute_gray_router
"
),
JBasicOptionPane
.
DEFAULT_OPTION
,
JBasicOptionPane
.
PLAIN_MESSAGE
,
ConsoleIconFactory
.
getSwingIcon
(
"banner/navigator.png"
),
new
Object
[]
{
SwingLocale
.
getString
(
"close"
)
},
null
,
true
);
JBasicOptionPane
.
showOptionDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
globalGrayPanel
,
ConsoleLocale
.
getString
(
"
push_global_config
"
),
JBasicOptionPane
.
DEFAULT_OPTION
,
JBasicOptionPane
.
PLAIN_MESSAGE
,
ConsoleIconFactory
.
getSwingIcon
(
"banner/navigator.png"
),
new
Object
[]
{
SwingLocale
.
getString
(
"close"
)
},
null
,
true
);
}
};
...
...
@@ -809,15 +809,15 @@ public class ServiceTopology extends AbstractTopology {
JDockable
dockable
=
(
JDockable
)
getDockableContainer
().
getContentPane
();
JDockableView
filterView
=
(
JDockableView
)
dockable
.
getPaneAt
(
0
);
filterView
.
setTitle
(
"服务集群组"
);
filterView
.
setTitle
(
ConsoleLocale
.
getString
(
"global_group"
)
);
filterView
.
setIcon
(
ConsoleIconFactory
.
getSwingIcon
(
"netbean/stack_16.png"
));
filterView
.
setToolTipText
(
"服务集群组"
);
filterView
.
setToolTipText
(
ConsoleLocale
.
getString
(
"global_group"
)
);
filterView
.
add
(
filterPanel
);
JDockableView
ruleView
=
(
JDockableView
)
dockable
.
getPaneAt
(
1
);
ruleView
.
setTitle
(
"全局规则"
);
ruleView
.
setTitle
(
ConsoleLocale
.
getString
(
"global_rule"
)
);
ruleView
.
setIcon
(
ConsoleIconFactory
.
getSwingIcon
(
"netbean/custom_node_16.png"
));
ruleView
.
setToolTipText
(
"全局规则"
);
ruleView
.
setToolTipText
(
ConsoleLocale
.
getString
(
"global_rule"
)
);
ruleView
.
add
(
rulePanel
);
}
...
...
@@ -834,7 +834,7 @@ public class ServiceTopology extends AbstractTopology {
public
void
execute
(
ActionEvent
e
)
{
int
selectedRow
=
filterList
.
getSelectedIndex
();
if
(
selectedRow
<
0
)
{
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
"请选择一个服务集群组"
,
SwingLocale
.
getString
(
"warning"
),
JBasicOptionPane
.
WARNING_MESSAGE
);
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
ConsoleLocale
.
getString
(
"select_a_global_group"
)
,
SwingLocale
.
getString
(
"warning"
),
JBasicOptionPane
.
WARNING_MESSAGE
);
return
;
}
...
...
@@ -871,7 +871,7 @@ public class ServiceTopology extends AbstractTopology {
public
void
execute
(
ActionEvent
e
)
{
int
selectedRow
=
filterList
.
getSelectedIndex
();
if
(
selectedRow
<
0
)
{
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
"请选择一个服务集群组"
,
SwingLocale
.
getString
(
"warning"
),
JBasicOptionPane
.
WARNING_MESSAGE
);
JBasicOptionPane
.
showMessageDialog
(
HandleManager
.
getFrame
(
ServiceTopology
.
this
),
ConsoleLocale
.
getString
(
"select_a_global_group"
)
,
SwingLocale
.
getString
(
"warning"
),
JBasicOptionPane
.
WARNING_MESSAGE
);
return
;
}
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale.properties
View file @
8b430bfe
...
...
@@ -29,6 +29,9 @@ execute_router=执行路由
clear_router
=
清除路由
router_path_invalid
=
路由路径不能为空
global_group
=
服务集群组
global_rule
=
全局规则
title_gray_version_operation
=
灰度版本操作 - 支持推送到服务(不持久化)
title_gray_rule_operation
=
灰度规则操作 - 支持推送到服务(不持久化),支持推送到远程配置中心(持久化)
label_dynamic_version
=
灰度(动态)版本
...
...
@@ -59,6 +62,7 @@ node_not_for_gray_router=该服务不能执行执行灰度路由
group_not_for_refresh_gray_state
=
该服务集群不能刷新灰度状态
node_not_for_refresh_gray_state
=
该服务不能刷新灰度状态
select_a_global_group
=
请选择一个服务集群组
select_a_group
=
请选择一个服务集群
select_a_node
=
请选择一个服务
select_a_group_or_node
=
请选择一个服务或者服务集群
...
...
discovery-console-desktop/src/main/resources/com/nepxion/discovery/console/desktop/locale/Locale_zh_CN.properties
View file @
8b430bfe
...
...
@@ -29,6 +29,9 @@ execute_router=\u6267\u884c\u8def\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
global_group
=
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u
7ec4
global_rule
=
\u5168\u
5c40
\u
89c4
\u5219
title_gray_version_operation
=
\u7070\u
5ea6
\u7248\u
672c
\u
64cd
\u
4f5c -
\u
652f
\u6301\u
63a8
\u9001\u5230\u
670d
\u
52a1
\u
ff08
\u
4e0d
\u6301\u
4e45
\u5316\u
ff09
title_gray_rule_operation
=
\u7070\u
5ea6
\u
89c4
\u5219\u
64cd
\u
4f5c -
\u
652f
\u6301\u
63a8
\u9001\u5230\u
670d
\u
52a1
\u
ff08
\u
4e0d
\u6301\u
4e45
\u5316\u
ff09
\u
ff0c
\u
652f
\u6301\u
63a8
\u9001\u5230\u
8fdc
\u
7a0b
\u
914d
\u
7f6e
\u
4e2d
\u
5fc3
\u
ff08
\u6301\u
4e45
\u5316\u
ff09
label_dynamic_version
=
\u7070\u
5ea6
\u
ff08
\u
52a8
\u6001\u
ff09
\u7248\u
672c
...
...
@@ -59,6 +62,7 @@ node_not_for_gray_router=\u8be5\u670d\u52a1\u4e0d\u80fd\u6267\u884c\u6267\u884c\
group_not_for_refresh_gray_state
=
\u
8be5
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u
4e0d
\u
80fd
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
node_not_for_refresh_gray_state
=
\u
8be5
\u
670d
\u
52a1
\u
4e0d
\u
80fd
\u5237\u
65b0
\u7070\u
5ea6
\u
72b6
\u6001
select_a_global_group
=
\u
8bf7
\u9009\u
62e9
\u
4e00
\u
4e2a
\u
670d
\u
52a1
\u
96c6
\u
7fa4
\u
7ec4
select_a_group
=
\u
8bf7
\u9009\u
62e9
\u
4e00
\u
4e2a
\u
670d
\u
52a1
\u
96c6
\u
7fa4
select_a_node
=
\u
8bf7
\u9009\u
62e9
\u
4e00
\u
4e2a
\u
670d
\u
52a1
select_a_group_or_node
=
\u
8bf7
\u9009\u
62e9
\u
4e00
\u
4e2a
\u
670d
\u
52a1
\u6216\u8005\u
670d
\u
52a1
\u
96c6
\u
7fa4
...
...
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