Эх сурвалжийг харах

Deleted unused files from Jobbrowser

Enrico Berti 13 жил өмнө
parent
commit
a8c57a0a8e

BIN
apps/jobbrowser/static/art/beeswax_button.png


BIN
apps/jobbrowser/static/art/failed.png


BIN
apps/jobbrowser/static/art/graph.gif


BIN
apps/jobbrowser/static/art/graph_thumb.gif


BIN
apps/jobbrowser/static/art/icon_huge.png


BIN
apps/jobbrowser/static/art/job_designer_button.png


BIN
apps/jobbrowser/static/art/jobbrowser-small.png


BIN
apps/jobbrowser/static/art/killed.png


BIN
apps/jobbrowser/static/art/mr_stripes.gif


BIN
apps/jobbrowser/static/art/pending.png


BIN
apps/jobbrowser/static/art/running.png


BIN
apps/jobbrowser/static/art/succeeded.png


BIN
apps/jobbrowser/static/art/timeline.gif


BIN
apps/jobbrowser/static/art/welcome.psd


+ 0 - 32
apps/jobbrowser/static/bootstrap.js

@@ -1,32 +0,0 @@
-// Licensed to Cloudera, Inc. under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  Cloudera, Inc. 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.
-Hue.Desktop.register({
-	JobBrowser: {
-		name: 'Job Browser',
-		css: '/jobbrowser/static/css/jobbrowser.css',
-		require: ["jobbrowser/Hue.JobBrowser"],
-		launch: function(path, options){
-			return new Hue.JobBrowser(path, options);
-		},
-		menu: {
-			id: 'hue-jobbrowser-menu',
-			img: {
-				src: '/jobbrowser/static/art/jobbrowser-small.png'
-			}
-		},
-		help: '/help/jobbrowser/'
-	}
-});

+ 0 - 384
apps/jobbrowser/static/css/jobbrowser.css

@@ -1,384 +0,0 @@
-img.jt_icon {
-	width: 54px;
-	height: 55px;
-	position: absolute;
-	top: 27px;
-	left: 3px;
-}
-/* welcome screen */
-div.jt-welcome {
-	background: url(../art/icon_huge.png) no-repeat top left;
-	width: 500px;
-	height: 168px;
-	margin: 20px auto;
-	padding-left: 130px;
-}
-div.jt-welcome h2 {
-	font-size: 28px;
-	margin: 0px 0px 5px 17px;
-	position: relative;
-	padding-top: 10px;
-}
-div.jt-welcome p {
-	margin-left: 17px;
-}
-div.jt-welcome a {
-	float: left;
-	display: block;
-	width: 239px;
-	height: 75px;
-	overflow: hidden;
-	text-indent: -240px;
-	margin-top: 10px;
-}
-div.jt-welcome a.jt-jobdesigner-button {
-	margin-right: 10px;
-	margin-left: 5px;
-	background: url(../art/job_designer_button.png) no-repeat;
-}
-div.jt-welcome a.jt-beeswax-button {
-	background: url(../art/beeswax_button.png) no-repeat;
-}
-div.jt-show_trackers {
-	text-align: right;
-	margin: 10px;
-}
-div.jt-show_trackers a {
-	color: #777;;
-}
-/* job list filters */
-ul.jt_filters {
-	bottom: 6px;
-	margin:	 0;
-	padding: 6px;
-	position: absolute;
-	right: 12px;
-	text-align: right;
-	top: 49px;
-}
-ul.jt_filters li {
-	list-style: none;
-	padding: 0px 4px 0px 0px;
-	margin: 0px;
-}
-ul.jt_filters li select {
-	width: 150px;
-	margin: 0px 4px;
-}
-ul.jt_filters li input {
-	width: 150px;
-}
-
-.jobbrowser td .status_link {
-	width: 16px;
-	height: 16px;
-	display: block;
-	overflow: hidden;
-	text-indent: 20px;
-	margin: 0 auto;
-}
-.jobbrowser .failed {
-	background: url(/jobbrowser/static/art/failed.png);
-}
-.jobbrowser .killed {
-	background: url(/jobbrowser/static/art/killed.png);
-}
-.jobbrowser .pending {
-	background: url(/jobbrowser/static/art/pending.png);
-}
-.jobbrowser .running {
-	background: url(/jobbrowser/static/art/running.png);
-}
-.jobbrowser .succeeded {
-	background: url(/jobbrowser/static/art/succeeded.png);
-}
-
-.jobbrowser .task_tracker_link {
-	background: url(/static/art/icons/computer.png) no-repeat;
-	width: 16px;
-	height: 16px;
-	display: block;
-	overflow: hidden;
-	text-indent: 20px;
-	margin: 0 auto;
-}
-
-.job_browser_list table[data-filters*=HtmlTable] {
-	border-bottom: 1px solid #B2B2B2;
-}
-.job_browser_list td div.jt_jobid {
-	color: #999;
-	font-size: 9px;
-}
-
-/* maps/reduces display */
-.job_browser_list div.jt_mr_display {
-	width: 156px;
-}
-div.jt_mr_display {
-	background: #fff;
-	border: 1px solid #5a5a5a;
-	color: #fff;
-	height: 14px;
-	padding: 0 1px;
-	margin: 2px 0;
-}
-div.jt_mr_display .jt_maps {
-	position: relative;
-	text-align: left;
-	height: 14px;
-	background: url(/jobbrowser/static/art/mr_stripes.gif);
-	width: 48%;
-	border-right: 1px dotted #5a5a5a;
-	float: left;
-	overflow: hidden;
-}
-div.jt_mr_display .jt_reduces {
-	text-align: left;
-	height: 14px;
-	background: url(/jobbrowser/static/art/mr_stripes.gif) 0px 42px;
-	width: 80px;
-	float: left;
-	overflow: hidden;
-}
-div.jt_mr_display span {
-	overflow: visible;
-	display:block;
-	font-size: 8px;
-	line-height: 15px;
-	height: 14px;
-	padding-left: 2px;
-	white-space:nowrap;
-}
-div.jt_mr_display .jt_reduces span.jt_reduces_complete {
-	background: url(/jobbrowser/static/art/mr_stripes.gif) 0px 56px;
-	border-left: 1px solid #fff;
-	width: 0%;
-}
-div.jt_mr_display .jt_maps span.jt_maps_complete {
-	background: url(/jobbrowser/static/art/mr_stripes.gif) 0px 70px;
-	width: 0%;
-}
-span.jt_white_border {
-	height: 14px;
-	display:block;
-	position: absolute;
-	right: -2px;
-	top: 0px;
-	border-left: 1px solid #fff;
-	margin: 0;
-	padding: 0;
-}
-td.jt_slider img.jt_slide_right {
-	position: relative;
-	top: 3px;
-}
-.job_browser_list td.jt_mrs {
-	width: 160px;
-	text-align: center;
-}
-
-
-.jobbrowser a.jt_kill {
-	display: block;
-	width: 16px;
-	height: 16px;
-	text-indent: 20px;
-	overflow: hidden;
-	background: url(/static/art/icons/stop.png) no-repeat;
-}
-
-.jobbrowser .jt_slide_right {
-	background: url(/static/art/slide_right_shadowed.png) no-repeat;
-	display: block;
-	width: 16px;
-	height: 16px;
-	text-indent: 20px;
-	overflow: hidden;
-}
-
-div.job_browser_job .jtv_meta_top dl {
-	float: left;
-	width: 235px;
-}
-div.job_browser_job ul.tab_sections>li {
-	overflow: auto;
-}
-div.job_browser_job dt {
-	font-weight: bold;
-	float: left;
-	clear:both;
-	width: 65px;
-}
-div.job_browser_job dd {
-	margin: 0px 0px 3px;
-}
-div.job_browser_job a.jt-output_dir {
-	display: inline-block;
-	background: url(/static/art/icons/folder_go.png) no-repeat 0px -1px;
-	height: 18px;
-	padding-left: 18px;
-}
-span.jtv_jid {
-	font-size: 12px;
-	font-weight: normal;
-}
-div.job_browser_job div.jt_mr_display {
-	border: none;
-	margin: 8px 0px 0px;
-	padding: none;
-	height: auto;
-}
-div.job_browser_job dl.jtv_graph dt {
-	color: #000;
-}
-div.job_browser_job div.jt_mr_display .jt_maps, div.job_browser_job div.jt_mr_display .jt_reduces {
-	float: none;
-	border: 1px solid #000;
-	margin: 2px;
-	width: auto;
-}
-div.job_browser_job span.jt_reduces_complete, div.job_browser_job span.jt_maps_complete {
-	border-left: 1px solid #fff;
-}
-div.job_browser_job ul.tab_sections {
-	border-top: 1px solid #666;
-}
-div.job_browser_job ul.tab_sections [data-filters*=HtmlTable] {
-	border-top: none;
-}
-div.job_browser_job .task_table_type {
-	width: 100px;
-}
-div.job_browser_job .jt_task_list_container {
-	border: 1px solid #666; 
-}
-div.job_browser_job .jtask_view_col {
-	width: 30px;
-}
-div.job_browser_job .task_table_id {
-	padding-left: 25px;
-}
-div.job_browser_job .jt_failed_tasks .task_table_id {
-	background-image: url(/jobbrowser/static/art/failed.png);
-	background-repeat: no-repeat;
-	background-position: 4px 2px;
-}
-div.job_browser_job .jt_task_list {
-	vertical-align: top;
-}
-div.job_browser_job .jt_task_list h3 {
-	font-weight: bold;
-	margin: 4px 0px 2px;
-}
-
-table.jt_counter_table td.jt_counter_maps_total, table.jt_counter_table td.jt_counter_reduces_total, table.jt_counter_table td.jt_counter_total {
-	text-align: right;
-}
-table.jt_counter_table td.jt_counter_group_name {
-	font-weight: bold;
-	text-align: left;
-}
-table.jt_counter_table td.jt_counter_display_name {
-	padding-left: 20px;
-}
-table.jt_counter_table, table.jt_meta_table {
-	border: 1px solid #aaa;
-}
-
-.jtv-pagination {
-	padding: 0px 10px;
-	position: relative;
-	background: #999; 
-	height: 30px
-}
-.jtv-pagination_count {
-	line-height: 30px;
-}
-.jtv_offset_controls {
-	position: absolute;
-	right: 20px;
-	top: 0px;
-	line-height: 30px;
-}
-.jtv_offset_controls div {
-	float: left;
-}
-.jtv_offset_controls a {
-	display: block;
-	width: 20px;
-	height: 30px;
-	cursor: pointer;
-	float: left;
-	background: url(/filebrowser/static/art/fb_offset_begin.png) no-repeat center center;
-	outline: 0;
-	overflow: hidden;
-	text-indent: -100px;
-}
-
-.jtv_nav {
-	position: absolute;
-	left: 63px;
-	top: 52px;
-}
-.jtv_nav_pages {
-	padding: 0px 3px; 
-	line-height: 28px;
-}
-
-.jtv_offset_controls a.jtv_offset_begin {
-	/*background-image: url(/filebrowser/static/art/fb_offset_begin.png);*/
-}
-
-.jtv_offset_controls a.jtv_offset_previous {
-	background-image: url(/filebrowser/static/art/fb_offset_previous.png);
-}
-
-.jtv_offset_controls a.jtv_offset_next {
-	background-image: url(/filebrowser/static/art/fb_offset_next.png);
-}
-
-.jtv_offset_controls a.jtv_offset_end {
-	background-image: url(/filebrowser/static/art/fb_offset_end.png);
-}
-
-.job_browser_tracker h1, .job_browser_tracker h2 {
-	font-weight: bold;
-	font-size: 16px;
-	padding: 6px 8px;
-	background: #444;
-	color: #fff;
-}
-.job_browser_tracker h2 {
-	background: #777;
-	font-size: 14px;
-}
-.job_browser_tracker dl.tracker_meta dt {
-	float: left;
-	width: 200px;
-	clear: both;
-	font-weight: bold;
-}
-.jt-logs h2 {
-	text-shadow: 1px 1px #D0E6F7;
-	background: #ccc;
-	padding: 4px 8px;
-	border-radius: 2px 2px 0px 0px;
-	-moz-border-radius: 2px 2px 0px 0px;
-	-webkit-border-radius: 2px 2px 0px 0px;
-	text-align:right;
-	color: #666;
-	font-size: 12px;
-	margin: 8px 0px 0px;
-}
-.jt-logs pre {
-	border: 1px solid #ccc;
-	border-radius: 0px 0px 2px 2px;
-	-moz-border-radius: 0px 0px 2px 2px;
-	-webkit-border-radius: 0px 0px 2px 2px;
-	padding: 8px;
-	overflow: auto;
-}
-.jobbrowser table[data-filters*=HtmlTable] .jt-raw_delimiter {
-	background: #bbb;
-}

+ 0 - 73
apps/jobbrowser/static/js/Source/JobBrowser/Hue.JobBrowser.Poller.js

@@ -1,73 +0,0 @@
-// Licensed to Cloudera, Inc. under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  Cloudera, Inc. 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.
-/*
----
-description: Adds polling functionality to the dock for JobBrowser
-provides: [Hue.JobBrowser.Poller]
-requires: [hue-shared/Hue.Dock, Core/Request.HTML, clientcide/dbug, Core/Element.Event, Core/Cookie]
-script: Hue.JobBrowser.Poller.js
-
-...
-*/
-
-if (!Hue.Dock) {
-	dbug.warn('could not set up the jobs poller; Hue.Dock is not defined');
-} else {
-	//adding a hidden ability to toggle the job poller
-	//the console statements for the ajax requests are distracting
-	$('hue-dock-status').addEvent('dblclick', function(){
-		Hue.Dock[Hue.Dock.pollingJobs ? 'stopJobsPoll' : 'startJobsPoll']();
-		Cookie.write('activateJobsPoller', Hue.Dock.pollingJobs);
-		if (!Hue.Dock.pollingJobs) Hue.Dock.statusContent.set('html', 'poller paused');
-	});
-	//poll for new jobs from the job tracker
-	//when the status notes are clicked, launch a Job Browser instance with that view
-	Hue.Dock.statusContent.addEvents({
-		'click:relay(a)': function(e, a){
-			e.preventDefault();
-			Hue.Desktop.launch(a.get('target'), [a.get('href')]);
-		}
-	});
-	
-
-	$extend(Hue.Dock, {
-		/*
-			loads the job data into the dock
-		*/
-		loadJobs: function(){
-			if (Hue.Dock.pollingJobs) {
-				Hue.Dock.statusContent.set('load', {
-					onHueError: Hue.Dock.stopJobsPoll,
-					onFailure: Hue.Dock.stopJobsPoll,
-					onSuccess: Hue.Dock.loadJobs.delay(5000),
-					url: '/status_bar/'
-				}).load();
-			}
-		},
-		startJobsPoll: function(){
-			dbug.log('starting job poller');
-			Hue.Dock.pollingJobs = true;
-			Hue.Dock.loadJobs();
-		},
-		stopJobsPoll: function(){
-			dbug.log('stopping job poller');
-			Hue.Dock.statusContent.set('html', 'poller paused');
-			Hue.Dock.pollingJobs = false;
-		}	
-	});
-	//whenever our poller gets an error, just stop polling
-	Hue.Dock.statusContent.get('load').addEvent('hueError', Hue.Dock.stopJobsPoll);
-}

+ 0 - 43
apps/jobbrowser/static/js/Source/JobBrowser/Hue.JobBrowser.js

@@ -1,43 +0,0 @@
-// Licensed to Cloudera, Inc. under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  Cloudera, Inc. 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.
-/*
----
-description: Job Browser core
-provides: [Hue.JobBrowser]
-requires: [JFrame/JFrame.Browser]
-script: Hue.JobBrowser.js
-
-...
-*/
-ART.Sheet.define('window.browser.jobbrowser', {
-	'min-width': 620,
-	'min-height': 108
-});
-
-Hue.JobBrowser = new Class({
-
-	Extends: Hue.JBrowser,
-
-	options: {
-		className: 'art browser jobbrowser logo_header',
-		height: 350
-	},
-
-	initialize: function(url, options){
-		this.parent(url || '/jobbrowser/jobs/', options);
-	}
-
-});

+ 0 - 32
apps/jobbrowser/static/js/libs.json

@@ -1,32 +0,0 @@
-{
-	"mootools-core": {
-		"scripts": "/static/js/ThirdParty/mootools-core/Source"
-	},
-	"mootools-more": {
-		"scripts": "/static/js/ThirdParty/mootools-more/Source"
-	},
-	"clientcide": {
-		"scripts": "/static/js/ThirdParty/clientcide/Source"
-	},
-	"hue-shared": {
-		"scripts": "/static/js/Source"
-	},
-	"subtletemplates": {
-		"scripts": "/subtletemplates/static/js/Source"
-	},
-	"mootools-art": {
-		"scripts": "/static/js/ThirdParty/art/Source"
-	},
-	"mootools-color": {
-		"scripts": "/mootools-color/static/js/Source"
-	},
-	"mootools-touch": {
-		"scripts": "/mootools-touch/static/js/Source"
-	},
-	"slick": {
-		"scripts": "/static/js/ThirdParty/art/assets/slick/Source"
-	},	
-	"jobbrowser": {
-		"scripts": "/jobbrowser/static/js/Source"
-	}
-}

+ 0 - 5
apps/jobbrowser/static/js/package.yml

@@ -1,5 +0,0 @@
-copyright: Apache License v2.0
-version: 0.9
-description: Job Browser
-name: jobbrowser
-sources: [Source/JobBrowser/Hue.JobBrowser.js, Source/JobBrowser/Hue.JobBrowser.Poller.js]