You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by je...@apache.org on 2014/12/10 04:33:31 UTC

[08/53] tez git commit: TEZ-1615. Skeleton framework for Tez UI (Prakash Ramachandran via jeagles)

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/dag/index.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/dag/index.hbs b/tez-ui/app/templates/dag/index.hbs
new file mode 100644
index 0000000..08610e1
--- /dev/null
+++ b/tez-ui/app/templates/dag/index.hbs
@@ -0,0 +1,41 @@
+<table style="table-layout:fixed;overflow:hidden;white-space:nowrap;">
+	<thead>
+		<tr>
+			<th style="width:120px;"></th>
+			<th></th>
+		</tr>
+	</thread>
+	<tbody>
+		<tr>
+			<td>{{t common.status}}</td>
+			<td>{{status}}</td>
+		</tr>
+		<tr>
+			<td>{{t common.user}}</td>
+			<td>{{user}}</td>
+		</tr>
+		<tr>
+			<td>{{t common.time.start}}</td>
+			<td>{{formatUnixTimestamp startTime}}</td>
+		</tr>
+		<tr>
+			<td>{{t common.time.end}}</td>
+			<td>{{formatUnixTimestamp endTime}}</td>
+		</tr>
+		<tr>
+			<td>{{t common.time.duration}}</td>
+			<td>{{formatDuration startTime endTime}}</td>
+		</tr>
+	</tbody>
+</table>
+
+<!-- TODO: merge the groups so that we can collapse - treeview? -->
+<div class="margin-small h4">DAG Counters</div>
+<div class='table-container margin-small'>
+  {{table-component
+    hasFooter=false
+    columnsBinding='counterTableColumns'
+    contentBinding='counterContent'
+    forceFillColumns=true
+  }}
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/dag/swimlane.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/dag/swimlane.hbs b/tez-ui/app/templates/dag/swimlane.hbs
new file mode 100644
index 0000000..e2a733f
--- /dev/null
+++ b/tez-ui/app/templates/dag/swimlane.hbs
@@ -0,0 +1 @@
+Placeholder for swimlanes
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/dag/vertex.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/dag/vertex.hbs b/tez-ui/app/templates/dag/vertex.hbs
new file mode 100644
index 0000000..494a609
--- /dev/null
+++ b/tez-ui/app/templates/dag/vertex.hbs
@@ -0,0 +1 @@
+PlaceHolder for vertex
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/dags.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/dags.hbs b/tez-ui/app/templates/dags.hbs
new file mode 100644
index 0000000..86dfca4
--- /dev/null
+++ b/tez-ui/app/templates/dags.hbs
@@ -0,0 +1,58 @@
+{{!
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+}}
+
+{{partial 'utils/pageHeader'}}
+
+{{#unless loading}}
+	<div class='margin-small'>
+		<span class='align-left'>
+			{{page-nav 
+				hasPrev=hasPrev
+				hasNext=hasNext
+				navNext='navigateNext'
+				navPrev='navigatePrev'
+				navFirst='navigateFirst'
+			}}
+		</span>
+		<div class='align-clear'> </div>
+	</div>
+
+	<div class='table-container'>
+	  {{table-component
+	    hasFooter=false
+	    columnsBinding='columns'
+	    contentBinding='sortedContent'
+	    forceFillColumns=true
+	  }}
+	</div>
+
+	<div class='margin-small'>
+		<span class='align-left'>
+			{{page-nav 
+				hasPrev=hasPrev
+				hasNext=hasNext
+				navNext='navigateNext'
+				navPrev='navigatePrev'
+				navFirst='navigateFirst'
+			}}
+		</span>
+		<div class='align-clear'></div>
+	</div>
+{{else}}
+	{{partial 'utils/loadingSpinner'}}	
+{{/unless}}

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/error_.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/error_.hbs b/tez-ui/app/templates/error_.hbs
new file mode 100644
index 0000000..0e3ee97
--- /dev/null
+++ b/tez-ui/app/templates/error_.hbs
@@ -0,0 +1,6 @@
+{{partial "utils/pageHeader" pageTitle='aaa'}}
+
+<div>An error occurred while loading {{err.target}}</div>
+<div>Error was {{err.statusText}}</div>
+<div>details:<br/>{{err.responseText}}</div>
+

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/utils/_loadingSpinner.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/utils/_loadingSpinner.hbs b/tez-ui/app/templates/utils/_loadingSpinner.hbs
new file mode 100644
index 0000000..e4f1dfa
--- /dev/null
+++ b/tez-ui/app/templates/utils/_loadingSpinner.hbs
@@ -0,0 +1,3 @@
+<div style="text-align: center; margin: 50px 0px;">
+	<i class="fa fa-spinner fa-spin fa-5x fa-fw"></i>
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/app/templates/utils/_pageHeader.hbs
----------------------------------------------------------------------
diff --git a/tez-ui/app/templates/utils/_pageHeader.hbs b/tez-ui/app/templates/utils/_pageHeader.hbs
new file mode 100644
index 0000000..632aeb5
--- /dev/null
+++ b/tez-ui/app/templates/utils/_pageHeader.hbs
@@ -0,0 +1,7 @@
+<div style="display:table; width:100%;">
+	<div style="display:table-cell; vertical-align:middle; font-size: 20pt; font-weight: bold;">
+		<span>{{pageTitle}}</span> - <span>{{pageSubTitle}}</span>
+	</div>
+	<img src="img/apache_tez_logo_lowres.png" style="float:right; height: 50px; width: auto;"></img>
+</div>
+<hr style="margin: 5px;" />
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/bower.json
----------------------------------------------------------------------
diff --git a/tez-ui/bower.json b/tez-ui/bower.json
new file mode 100644
index 0000000..108e92b
--- /dev/null
+++ b/tez-ui/bower.json
@@ -0,0 +1,32 @@
+{
+  "name": "tez-ui",
+  "version": "0.0.1",
+  "dependencies": {
+    "ember": "1.7.0",
+    "moment": ">=2.7.0",
+    "ember-data": "1.0.0-beta.10",
+    "ember-i18n": "1.6.*",
+    "bootstrap": "3.0.0",
+    "ember-json-mapper": "master",
+    "jquery-ui": ">=1.11",
+    "d3": "2.10.2",
+    "ember-addons.bs_for_ember": "~0.7.0",
+    "ember-table": "~0.2.2"
+  },
+  "devDependencies": {
+    "ember-mocha-adapter": "0.1.2",
+    "handlebars": "~2.0.0",
+    "jquery-ui": "~1.11.1",
+    "jquery-mousewheel": "~3.1.12",
+    "antiscroll": "*",
+    "font-awesome": "~4.2.0"
+  },
+  "resolutions": {
+    "handlebars": "~1.3.0",
+    "jquery-ui": ">=1.11",
+    "jquery-mousewheel": "~3.1.12",
+    "antiscroll": "fa3f81d3c0",
+    "font-awesome": "~4.2.0",
+    "ember": "1.7.0"
+  }
+}

http://git-wip-us.apache.org/repos/asf/tez/blob/2f2739dd/tez-ui/package.json
----------------------------------------------------------------------
diff --git a/tez-ui/package.json b/tez-ui/package.json
new file mode 100644
index 0000000..ef46e7a
--- /dev/null
+++ b/tez-ui/package.json
@@ -0,0 +1,36 @@
+{
+  "name": "tez-ui",
+  "version": "0.0.1",
+  "dependencies": {},
+  "devDependencies": {
+    "bower": "1.3.8",
+    "grunt": "~0.4.1",
+    "grunt-cli": "~0.1.13",
+    "grunt-contrib-copy": "~0.4.1",
+    "grunt-contrib-concat": "~0.3.0",
+    "grunt-contrib-uglify": "~0.2.0",
+    "grunt-contrib-jshint": "~0.6.3",
+    "grunt-contrib-cssmin": "~0.6.0",
+    "grunt-contrib-connect": "~0.3.0",
+    "grunt-contrib-clean": "~0.5.0",
+    "grunt-contrib-htmlmin": "~0.1.3",
+    "grunt-contrib-watch": "~0.5.2",
+    "grunt-rev": "~0.1.0",
+    "grunt-usemin": "~0.1.12",
+    "grunt-mocha": "~0.4.1",
+    "grunt-open": "~0.2.0",
+    "grunt-svgmin": "~0.2.0",
+    "grunt-concurrent": "~0.3.0",
+    "load-grunt-tasks": "~0.1.0",
+    "connect-livereload": "~0.2.0",
+    "grunt-ember-templates": "0.4.14",
+    "time-grunt": "~0.1.1",
+    "grunt-replace": "~0.4.4",
+    "jshint-stylish": "~0.1.3",
+    "grunt-neuter": "~0.6.0",
+    "grunt-contrib-less": "~0.11"
+  },
+  "engines": {
+    "node": ">=0.8.0"
+  }
+}