From ba9ab932d3baac5e2f0292ee7738323a5e1acdf7 Mon Sep 17 00:00:00 2001
From: Zoe Wong <34023806+dake0805@users.noreply.github.com>
Date: Sat, 17 Jul 2021 23:06:14 +0800
Subject: [PATCH 1/3] feature: allow create public namespace in many formats
- change front-end and portal service to allow create new namespace in format json/yaml/xml/txt
- can not associating namespace of these formats now
- todo: change some documents on front-end page
---
.../apollo/portal/service/AppNamespaceService.java | 6 +++---
apollo-portal/src/main/resources/static/namespace.html | 2 +-
.../static/scripts/controller/NamespaceController.js | 9 +++++----
3 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
index 2379be02d32..95973ec3a55 100644
--- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
+++ b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
@@ -128,9 +128,9 @@ public AppNamespace createAppNamespaceInLocal(AppNamespace appNamespace, boolean
}
// public namespaces only allow properties format
- if (appNamespace.isPublic()) {
- appNamespace.setFormat(ConfigFileFormat.Properties.getValue());
- }
+// if (appNamespace.isPublic()) {
+// appNamespace.setFormat(ConfigFileFormat.Properties.getValue());
+// }
StringBuilder appNamespaceName = new StringBuilder();
//add prefix postfix
diff --git a/apollo-portal/src/main/resources/static/namespace.html b/apollo-portal/src/main/resources/static/namespace.html
index ce0798f54a6..c90653664c3 100644
--- a/apollo-portal/src/main/resources/static/namespace.html
+++ b/apollo-portal/src/main/resources/static/namespace.html
@@ -123,7 +123,7 @@
-
+
+
+
+
+
+ {{'Component.Namespace.Master.Items.Body.Link.Title' | translate }}
+
+
+
+
+
+
+
{{'Component.Namespace.Master.Items.Body.NoPublished.Title' | translate }}
ng-model="namespace.editText">
+
+
+
+
+
+
+
+
+