diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
index d363636ba76..74ae9e13c2d 100644
--- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
+++ b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/ctrip/CtripSsoHeartbeatHandler.java
@@ -11,6 +11,7 @@
* @author Jason Song(song_s@ctrip.com)
*/
public class CtripSsoHeartbeatHandler implements SsoHeartbeatHandler {
+
@Override
public void doHeartbeat(HttpServletRequest request, HttpServletResponse response) {
try {
@@ -18,4 +19,5 @@ public void doHeartbeat(HttpServletRequest request, HttpServletResponse response
} catch (IOException e) {
}
}
+
}
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
index 31613516c32..8a5a781c497 100644
--- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
+++ b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/defaultimpl/DefaultSsoHeartbeatHandler.java
@@ -11,12 +11,13 @@
* @author Jason Song(song_s@ctrip.com)
*/
public class DefaultSsoHeartbeatHandler implements SsoHeartbeatHandler {
+
@Override
public void doHeartbeat(HttpServletRequest request, HttpServletResponse response) {
try {
- response.setContentType("text/plain;charset=utf-8");
- response.getWriter().write("default sso heartbeat handler");
+ response.sendRedirect("default_sso_heartbeat.html");
} catch (IOException e) {
}
}
+
}
diff --git a/apollo-portal/src/main/resources/static/app.html b/apollo-portal/src/main/resources/static/app.html
index 1ff019e9b49..5beab0274d3 100644
--- a/apollo-portal/src/main/resources/static/app.html
+++ b/apollo-portal/src/main/resources/static/app.html
@@ -119,10 +119,11 @@
-
+
-
+
+
diff --git a/apollo-portal/src/main/resources/static/app/setting.html b/apollo-portal/src/main/resources/static/app/setting.html
index e7b191112ad..da108402abc 100644
--- a/apollo-portal/src/main/resources/static/app/setting.html
+++ b/apollo-portal/src/main/resources/static/app/setting.html
@@ -189,6 +189,7 @@
您没有权限操作,请找 [{{admins.join(',')}}] 开通权限
+
diff --git a/apollo-portal/src/main/resources/static/cluster.html b/apollo-portal/src/main/resources/static/cluster.html
index 6db6bf13dca..3c94a30b115 100644
--- a/apollo-portal/src/main/resources/static/cluster.html
+++ b/apollo-portal/src/main/resources/static/cluster.html
@@ -131,6 +131,7 @@ 创建成功!
+
diff --git a/apollo-portal/src/main/resources/static/config/history.html b/apollo-portal/src/main/resources/static/config/history.html
index 6ecc561d2e8..4c553ac4029 100644
--- a/apollo-portal/src/main/resources/static/config/history.html
+++ b/apollo-portal/src/main/resources/static/config/history.html
@@ -270,6 +270,7 @@ 无发布历史信息
+
diff --git a/apollo-portal/src/main/resources/static/config/sync.html b/apollo-portal/src/main/resources/static/config/sync.html
index 56323cf6b7f..01c10ab3d2c 100644
--- a/apollo-portal/src/main/resources/static/config/sync.html
+++ b/apollo-portal/src/main/resources/static/config/sync.html
@@ -235,6 +235,8 @@ 同步失败!
+
+
diff --git a/apollo-portal/src/main/resources/static/default_sso_heartbeat.html b/apollo-portal/src/main/resources/static/default_sso_heartbeat.html
new file mode 100644
index 00000000000..94e85e68e07
--- /dev/null
+++ b/apollo-portal/src/main/resources/static/default_sso_heartbeat.html
@@ -0,0 +1,19 @@
+
+
+
+
+ SSO Heartbeat
+
+
+
+
+
diff --git a/apollo-portal/src/main/resources/static/index.html b/apollo-portal/src/main/resources/static/index.html
index fe6e37a40ea..a1a4cdd8fff 100644
--- a/apollo-portal/src/main/resources/static/index.html
+++ b/apollo-portal/src/main/resources/static/index.html
@@ -81,7 +81,7 @@ 加载更多
-
您还没有收藏过任何项目,在项目主页可以收藏项目哟~
+ 您还没有收藏过任何项目,在项目主页可以收藏项目哟~
@@ -128,6 +128,7 @@
+
diff --git a/apollo-portal/src/main/resources/static/scripts/directive/directive.js b/apollo-portal/src/main/resources/static/scripts/directive/directive.js
index 8494514db92..2c7a1b640c7 100644
--- a/apollo-portal/src/main/resources/static/scripts/directive/directive.js
+++ b/apollo-portal/src/main/resources/static/scripts/directive/directive.js
@@ -1,6 +1,7 @@
/** navbar */
directive_module.directive('apollonav',
- function ($compile, $window, toastr, AppUtil, AppService, EnvService, UserService, CommonService) {
+ function ($compile, $window, toastr, AppUtil, AppService, EnvService,
+ UserService, CommonService, PermissionService) {
return {
restrict: 'E',
templateUrl: '../../views/common/nav.html',
@@ -82,7 +83,7 @@ directive_module.directive('apollonav',
}
//强制刷新
scope.$apply(function () {
- scope.copyedApps = scope.copyedApps;
+ scope.copiedApps = scope.copiedApps;
});
});
@@ -97,7 +98,7 @@ directive_module.directive('apollonav',
});
function clearAppsSelectedStatus() {
- scope.copyedApps.forEach(function (app) {
+ scope.copiedApps.forEach(function (app) {
app.selected = false;
})
@@ -117,6 +118,10 @@ directive_module.directive('apollonav',
}, function (result) {
});
+
+ PermissionService.has_root_permission().then(function(result) {
+ scope.hasRootPermission = result.hasPermission;
+ })
}
}
diff --git a/apollo-portal/src/main/resources/static/server_config.html b/apollo-portal/src/main/resources/static/server_config.html
index 64b279268ed..53428d63784 100644
--- a/apollo-portal/src/main/resources/static/server_config.html
+++ b/apollo-portal/src/main/resources/static/server_config.html
@@ -21,6 +21,7 @@
应用配置
+ (维护ServerConfig表数据,如果已存在配置项则会覆盖,否则会创建配置项。配置更新后,一分钟后自动生效)
@@ -53,7 +54,7 @@
@@ -86,6 +87,7 @@
+