knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-723 Adding html content based filter for main page trailing slash issue
Date Fri, 28 Oct 2016 18:45:58 GMT
Repository: knox
Updated Branches:
  refs/heads/master 4fe30705b -> d5f006586


KNOX-723 Adding html content based filter for main page trailing slash issue


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/d5f00658
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/d5f00658
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/d5f00658

Branch: refs/heads/master
Commit: d5f006586b8b50eb243bda43d2d59232dbd195f8
Parents: 4fe3070
Author: Sumit Gupta <sumit@apache.org>
Authored: Fri Oct 28 14:45:00 2016 -0400
Committer: Sumit Gupta <sumit@apache.org>
Committed: Fri Oct 28 14:45:00 2016 -0400

----------------------------------------------------------------------
 .../services/ambariui/2.2.0/rewrite.xml         | 21 ++++++++++++++++++++
 .../services/ambariui/2.2.0/service.xml         |  1 +
 2 files changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/d5f00658/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
index 7889458..9358ac0 100644
--- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/rewrite.xml
@@ -46,6 +46,19 @@
         <rewrite template="{$frontend[url]}/ambari/img/{**}"/>
     </rule>
 
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/vendorcss">
+        <rewrite template="{$frontend[path]}/ambari/stylesheets/vendor.css"/>
+    </rule>
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/appcss">
+        <rewrite template="{$frontend[path]}/ambari/stylesheets/app.css"/>
+    </rule>
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/vendorjs">
+        <rewrite template="{$frontend[path]}/ambari/javascripts/vendor.js"/>
+    </rule>
+    <rule dir="OUT" name="AMBARIUI/ambari/outbound/appjs">
+        <rewrite template="{$frontend[path]}/ambari/javascripts/app.js"/>
+    </rule>
+
     <filter name="AMBARIUI/ambari/outbound/proxyroot">
         <content type="*/x-javascript">
             <apply path="\{proxy_root\}" rule="AMBARIUI/ambari/outbound/sitepath"/>
@@ -99,4 +112,12 @@
         <content type="*/html">
         </content>
     </filter>
+    <filter name="AMBARIUI/ambari/outbound/mainpage">
+        <content type="*/html">
+            <apply path="stylesheets/vendor.css" rule="AMBARIUI/ambari/outbound/vendorcss"
/>
+            <apply path="stylesheets/app.css" rule="AMBARIUI/ambari/outbound/appcss" />
+            <apply path="javascripts/vendor.js" rule="AMBARIUI/ambari/outbound/vendorjs"
/>
+            <apply path="javascripts/app.js" rule="AMBARIUI/ambari/outbound/appjs" />
+        </content>
+    </filter>
 </rules>

http://git-wip-us.apache.org/repos/asf/knox/blob/d5f00658/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
index 64fec60..87078ef 100644
--- a/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/ambariui/2.2.0/service.xml
@@ -24,6 +24,7 @@
     <routes>
         <route path="/ambari">
             <rewrite apply="AMBARIUI/ambari/inbound/root" to="request.url"/>
+            <rewrite apply="AMBARIUI/ambari/outbound/mainpage" to="response.body"/>
         </route>
         <route path="/ambari/**">
             <rewrite apply="AMBARIUI/ambari/inbound/path" to="request.url"/>


Mime
View raw message