瀏覽代碼

AMBARI-5673. Small Files view cleanup. (sposetti via yusaku)

Yusaku Sako 11 年之前
父節點
當前提交
f091c6fb6b

+ 2 - 2
contrib/views/files/pom.xml

@@ -20,11 +20,11 @@
     <groupId>org.apache.ambari.view</groupId>
     <artifactId>files</artifactId>
     <version>0.0.1-SNAPSHOT</version>
-    <name>Filebrowser</name>
+    <name>Files</name>
     
     <parent>
         <groupId>org.apache.ambari.views</groupId>
-        <artifactId>ambari-views-poc</artifactId>
+        <artifactId>ambari-views</artifactId>
         <version>0.1.0-SNAPSHOT</version>
     </parent>
     

+ 1 - 1
contrib/views/files/src/main/resources/ui/app/adapter.js

@@ -149,7 +149,7 @@ Ember.Inflector.inflector.uncountable('upload');
 
 App.Store = DS.Store.extend({
   adapter: DS.RESTAdapter.extend({
-    namespace:'api/v1/views/FILE_BROWSER/instances/FILEBROWSER_1/resources/filebrowser',
+    namespace:'api/v1/views/FILES/instances/FILES_1/resources/files',
     headers: {
       'X-Requested-By': 'ambari'
     },

+ 4 - 0
contrib/views/files/src/main/resources/ui/app/styles/application.less

@@ -24,6 +24,8 @@
   .panel-heading {
     height: 41px;
     padding: 5px 10px;
+    border-radius: 0px;
+    border: 1px solid #DDDDDD;
 
     .breadcrumb {
       margin-bottom: 0;
@@ -277,3 +279,5 @@
 .dropdown-confirm {
   margin: -4px 0;
 }
+
+

+ 1 - 1
contrib/views/files/src/main/resources/ui/app/templates/files.hbs

@@ -16,7 +16,7 @@
    limitations under the License.
 }}
 
-<div class="panel panel-default panel-files">
+<div class="panel-default panel-files">
   <div class="panel-heading">
     {{!-- BREADCRUMBS --}}  
     {{view view.breadcrumbsView}}

+ 6 - 6
contrib/views/files/src/main/resources/view.xml

@@ -15,9 +15,9 @@
    limitations under the License.
 -->
 <view>
-    <name>FILE_BROWSER</name>
-    <label>File browser</label>
-    <version>1.0.0</version>
+    <name>FILES</name>
+    <label>Files</label>
+    <version>0.1.0</version>
 
     <parameter>
         <name>dataworker.defaultFs</name>
@@ -27,15 +27,15 @@
 
     
     <resource>
-        <name>filebrowser</name>
+        <name>files</name>
         <service-class>org.apache.ambari.view.filebrowser.FileBrowserService</service-class>
     </resource>
  
     <instance>
-        <name>FILEBROWSER_1</name>
+        <name>FILES_1</name>
         <property>
             <key>dataworker.defaultFs</key>
-            <value>hdfs://sandbox.hortonworks.com:8020</value>
+            <value>hdfs://c6401.ambari.apache.org:8020</value>
         </property>
     </instance>
   

+ 1 - 1
contrib/views/pig/pom.xml

@@ -24,7 +24,7 @@
 
   <parent>
     <groupId>org.apache.ambari.views</groupId>
-    <artifactId>ambari-views-poc</artifactId>
+    <artifactId>ambari-views</artifactId>
     <version>0.1.0-SNAPSHOT</version>
   </parent>
 

+ 2 - 2
contrib/views/pom.xml

@@ -18,10 +18,10 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.ambari.views</groupId>
-  <artifactId>ambari-views-poc</artifactId>
+  <artifactId>ambari-views</artifactId>
   <packaging>pom</packaging>
   <version>0.1.0-SNAPSHOT</version>
-  <name>Ambari Views Proof of Concept</name>
+  <name>Ambari Views</name>
   <modules>
     <module>files</module>
     <module>pig</module>