Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
1a1ea212
Commit
1a1ea212
authored
Sep 28, 2016
by
Jason Song
Committed by
GitHub
Sep 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #417 from lepdou/bugfix_0928
add create tips
parents
bd234984
dd87fe14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
1 deletion
+43
-1
app.html
apollo-portal/src/main/resources/static/app.html
+1
-0
cluster.html
apollo-portal/src/main/resources/static/cluster.html
+13
-0
sync.html
apollo-portal/src/main/resources/static/config/sync.html
+7
-0
namespace.html
apollo-portal/src/main/resources/static/namespace.html
+22
-1
No files found.
apollo-portal/src/main/resources/static/app.html
View file @
1a1ea212
...
...
@@ -62,6 +62,7 @@
应用负责人
</label>
<div
class=
"col-sm-6"
>
<apollouserselector
apollo-id=
"userSelectWidgetId"
></apollouserselector>
<br>
<small>
(负责人具有项目管理的最高权限,比如分配配置的修改权,发布权等)
</small>
</div>
</div>
...
...
apollo-portal/src/main/resources/static/cluster.html
View file @
1a1ea212
...
...
@@ -34,6 +34,19 @@
</header>
<div
class=
"panel-body"
>
<div
class=
"alert alert-info"
role=
"alert"
>
<strong>
Tips:
</strong>
<ul>
<li>
通过添加集群,可以使同一份程序在不同的集群(如不同的数据中心)使用不同的配置
</li>
<li>
Apollo默认会读取机器上/opt/settings/server.properties(linux)或C:\opt\settings\server.properties(windows)文件中的idc属性作为集群名字,
如SHAJQ(金桥数据中心)、SHAOY(欧阳数据中心)
</li>
<li>
在这里创建的集群名字需要和机器上server.properties中的idc属性一致
</li>
</ul>
</div>
<form
class=
"form-horizontal"
name=
"clusterForm"
valdr-type=
"Cluster"
ng-show=
"step == 1"
ng-submit=
"create()"
>
<div
class=
"form-group"
>
...
...
apollo-portal/src/main/resources/static/config/sync.html
View file @
1a1ea212
...
...
@@ -43,6 +43,13 @@
</header>
<div
class=
"panel-body"
>
<div
class=
"row"
ng-show=
"syncItemStep == 1"
>
<div
class=
"alert-info alert"
>
<strong>
Tips:
</strong>
<ul>
<li>
通过同步配置功能,可以使多个环境、集群间的配置保持一致
</li>
<li>
需要注意的是,同步完之后需要发布后才会对应用生效
</li>
</ul>
</div>
<div
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
同步的Namespace
</label>
...
...
apollo-portal/src/main/resources/static/namespace.html
View file @
1a1ea212
...
...
@@ -34,6 +34,25 @@
<div
class=
"panel-body"
>
<div
class=
"alert alert-info"
role=
"alert"
ng-show=
"type == 'link'"
>
<strong>
Tips:
</strong>
<ul>
<li>
公共namespace所属的应用通过关联公共namespace来配置公共部分的配置
</li>
<li>
其它应用可以通过关联公共namespace来覆盖公共部分的配置
</li>
<li>
如果其它应用不需要覆盖公共部分的配置,那么无需关联公共namespace
</li>
</ul>
</div>
<div
class=
"alert alert-info"
ng-show=
"type == 'create'"
>
<strong>
Tips:
</strong>
<ul>
<li>
通过创建一个公共的namespace可以实现公共组件的配置,或多个应用共享同一份配置的需求
</li>
<li>
创建完公共的namespace且关联到当前应用后,就可以配置公共部分的配置了
</li>
<li>
如果其它应用需要覆盖公共部分的配置,可以在其它应用那里关联公共的namespace,然后在关联的namespace里面配置需要覆盖的配置即可
</li>
<li>
如果其它应用不需要覆盖公共部分的配置,那么就不需要在其它应用那里关联公共的namespace
</li>
</ul>
</div>
<div
class=
"row text-right"
style=
"padding-right: 20px;"
>
<div
class=
"btn-group btn-group-sm"
role=
"group"
aria-label=
"..."
>
<button
type=
"button"
class=
"btn btn-default"
ng-class=
"{active:type=='link'}"
...
...
@@ -45,6 +64,7 @@
</div>
</div>
<form
class=
"form-horizontal"
name=
"namespaceForm"
valdr-type=
"AppNamespace"
style=
"margin-top: 30px;"
ng-show=
"step == 1"
ng-submit=
"createNamespace()"
>
<div
class=
"form-group"
>
...
...
@@ -122,7 +142,8 @@
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-3 col-sm-10"
>
<button
type=
"submit"
class=
"btn btn-primary"
ng-disabled=
"(type == 'create' && namespaceForm.$invalid) || submitBtnDisabled"
>
提交
ng-disabled=
"(type == 'create' && namespaceForm.$invalid) || submitBtnDisabled"
>
提交
</button>
</div>
</div>
...
...
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