You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mr...@apache.org on 2017/09/11 04:38:43 UTC

[13/94] [abbrv] [partial] ambari git commit: AMBARI-21870. Integrate LogSearch new UI with the server and get rid of the old one (oleewere)

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGraphInfo.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGraphInfo.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGraphInfo.js
deleted file mode 100644
index 272e557..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGraphInfo.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VGraphInfoBase',
-	'utils/Enums'
-],function(require,VGraphInfoBase,Enums){
-	'use strict';	
-
-	var VGraphInfo = VGraphInfoBase.extend(
-	/** @lends VLog.prototype */
-	{
-		/**
-		 * VLogBase initialize method
-		 * @augments FSBaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VGraphInfo';
-			this.bindErrorEvents();
-		},
-
-		/** This models toString() */
-		toString : function(){
-			return this.get('name');
-		}
-
-	}, {
-		// static class members
-	});
-
-    return VGraphInfo;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGroup.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGroup.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGroup.js
deleted file mode 100644
index ffcb273..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VGroup.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VGroupBase',
-	'utils/Enums'
-],function(require,VGroupBase,Enums){
-	'use strict';	
-
-	var VGroup = VGroupBase.extend(
-	/** @lends VGroup.prototype */
-	{
-		/**
-		 * VGroupBase initialize method
-		 * @augments BaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VGroup';
-			this.bindErrorEvents();
-		},
-
-		/** This models toString() */
-		toString : function(){
-			return this.get('message');
-		}
-
-	}, {
-		// static class members
-	});
-
-    return VGroup;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLog.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLog.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLog.js
deleted file mode 100644
index c929c3b..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLog.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VLogBase',
-	'utils/Enums'
-],function(require,VLogBase,Enums){	
-	'use strict';	
-
-	var VLog = VLogBase.extend(
-	/** @lends VLog.prototype */
-	{
-		/**
-		 * VLogBase initialize method
-		 * @augments FSBaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VLog';
-			this.bindErrorEvents();
-			this.toView();
-		},
-
-		toView : function(){
-			if(!_.isUndefined(this.get('isVisible'))){
-				var visible = (this.get('isVisible') == Enums.VisibilityStatus.STATUS_VISIBLE.value);
-				this.set('isVisible', visible);
-			}
-		},
-
-		toServer : function(){
-			var visible = this.get('isVisible') ? Enums.VisibilityStatus.STATUS_VISIBLE.value : Enums.VisibilityStatus.STATUS_HIDDEN.value;
-			this.set('isVisible', visible);
-		},
-		
-		/** This models toString() */
-		toString : function(){
-			return this.get('name');
-		}
-
-	}, {
-		// static class members
-	});
-
-    return VLog;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLogLevel.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLogLevel.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLogLevel.js
deleted file mode 100644
index 1498920..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VLogLevel.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VLogLevelBase',
-	'utils/Enums'
-],function(require,VLogLevelBase,Enums){
-	'use strict';	
-
-	var VLogLevel = VLogLevelBase.extend(
-	/** @lends VLogLevel.prototype */
-	{
-		/**
-		 * VLogLevelBase initialize method
-		 * @augments FSBaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VLogLevel';
-			this.bindErrorEvents();
-		},
-	}, {
-		// static class members
-	});
-
-    return VLogLevel;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNameValue.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNameValue.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNameValue.js
deleted file mode 100644
index 6739bfc..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNameValue.js
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VNameValueBase',
-	'utils/Enums'
-],function(require,VNameValueBase,Enums){
-	'use strict';	
-
-	var VNameValue = VNameValueBase.extend(
-	/** @lends VNameValue.prototype */
-	{
-		/**
-		 * VNameValueBase initialize method
-		 * @augments BaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VNameValue';
-			this.bindErrorEvents();
-		}
-	}, {
-		// static class members
-	});
-
-    return VNameValue;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNode.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNode.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNode.js
deleted file mode 100644
index 7d8c2ad..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VNode.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * 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.
- */
-
- 
-define(['require',
-	'model_bases/VNodeBase',
-	'utils/Enums'
-],function(require,VNodeBase,Enums){
-	'use strict';	
-
-
-	var VNode = VNodeBase.extend(
-	/** @lends VNodel.prototype */
-	{
-		/**
-		 * VNodeBase initialize method
-		 * @augments FSBaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VNode';
-			this.bindErrorEvents();
-		},
-	}, {
-		// static class members
-	});
-
-    return VNode;
-	
-});
-
-

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VUserFilter.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VUserFilter.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VUserFilter.js
deleted file mode 100644
index fec6e8c..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/models/VUserFilter.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
- */
-
-
-define(['require',
-	'model_bases/VUserFilterBase',
-	'utils/Enums'
-],function(require,VUserFilterBase,Enums){
-	'use strict';
-
-	var VUserFilter = VUserFilterBase.extend(
-	/** @lends VUserFilter.prototype */
-	{
-		/**
-		 * VUserFilterBase initialize method
-		 * @augments BaseModel
-		 * @constructs
-		 */
-		initialize: function() {
-			this.modelName = 'VUserFilter';
-			this.bindErrorEvents();
-		},
-
-		/** This models toString() */
-		toString : function(){
-			return this.get('message');
-		}
-
-	}, {
-		// static class members
-	});
-
-    return VUserFilter;
-
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Overrides.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Overrides.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Overrides.js
deleted file mode 100644
index 1675934..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Overrides.js
+++ /dev/null
@@ -1,234 +0,0 @@
-/**
- * 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.
- */
-define(['require',
- 	'App',
- 	'backgrid',
- ],function(require,App){
-	
-	/**********************************************************************
-	 *                      Backgrid related                              *
-	 **********************************************************************/
-	/*
-	 * HtmlCell renders any html code
-	 * @class Backgrid.HtmlCell
-	 * @extends Backgrid.Cell
-	*/
-	var HtmlCell = Backgrid.HtmlCell = Backgrid.Cell.extend({
-    /** @lends Backgrid.HtmlCell */
-		 className: "html-cell",
-
-		 render: function () {
-		     this.$el.empty();
-		     var rawValue = this.model.get(this.column.get("name"));
-		     var formattedValue = this.formatter.fromRaw(rawValue, this.model);
-		     this.$el.append(formattedValue);
-		     this.delegateEvents();
-		     return this;
-		 }
-	});
-	/*
-	 * Overriding Cell for adding custom className to Cell i.e <td>
-	 */
-	var cellInit = Backgrid.Cell.prototype.initialize;
-	Backgrid.Cell.prototype.initialize = function () {
-	  cellInit.apply(this, arguments);
-	  var className = this.column.get('className');
-	  if (className) this.$el.addClass(className);
-	}
-	
-	Backgrid.HeaderRow = Backgrid.HeaderRow.extend({
-	    render: function() {
-	      var that = this;
-	      Backgrid.HeaderRow.__super__.render.apply(this, arguments);
-	      _.each(this.columns.models, function(modelValue) {
-	        if (modelValue.get('width')) that.$el.find('.' + modelValue.get('name')).css('width', modelValue.get('width') + '%')
-	        if (modelValue.get('toolTip')) that.$el.find('.' + modelValue.get('name')).attr('title', modelValue.get('toolTip'))
-	      });
-	      return this;
-	    }
-	  });
-	
-	
-	$(function(){
-		$("#content").on('click', '.expand-link', function (e) {
-			var body = $('body');
-			e.preventDefault();
-			var box = $(this).closest('div.box');
-			var button = $(this).find('i');
-			button.toggleClass('fa-expand').toggleClass('fa-compress');
-			box.toggleClass('expanded');
-			body.toggleClass('body-expanded');
-			var timeout = 0;
-			if (body.hasClass('body-expanded')) {
-				timeout = 100;
-			}
-			setTimeout(function () {
-				box.toggleClass('expanded-padding');
-			}, timeout);
-			setTimeout(function () {
-				box.resize();
-				box.find('[id^=map-]').resize();
-			}, timeout + 50);
-		})
-		.on('click', '.collapse-link', function (e) {
-			e.preventDefault();
-			var box = $(this).closest('div.box');
-			var button = $(this).find('i');
-			var content = box.find('div.box-content');
-			content.slideToggle('fast');
-			button.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down');
-			setTimeout(function () {
-				box.resize();
-				box.find('[id^=map-]').resize();
-			}, 50);
-		});
-		
-		//
-		// Swap 2 elements on page. Used by WinMove function
-		//
-		jQuery.fn.swap = function(b){
-			b = jQuery(b)[0];
-			var a = this[0];
-			var t = a.parentNode.insertBefore(document.createTextNode(''), a);
-			b.parentNode.insertBefore(a, b);
-			t.parentNode.insertBefore(b, t);
-			t.parentNode.removeChild(t);
-			return this;
-		}; 
-	})
-	/**
-	 * Highlighting text in a particular div
-	 */
-
-		jQuery.fn.highlight = function(pat,semi_highlight,elem) {
-		var i=1;
-		function innerHighlight(node, pat) {
-			var skip = 0;
-			if (node.nodeType == 3) {
-				var pos = node.data.toUpperCase().indexOf(pat);
-				if (pos >= 0) {
-					var spannode = document.createElement('span');
-					if(semi_highlight)
-						spannode.className = 'semi-highlight';
-					else
-						spannode.className = 'highlight';
-					spannode.setAttribute("data-count",i);
-					i++;
-					var middlebit = node.splitText(pos);
-					var endbit = middlebit.splitText(pat.length);
-					var middleclone = middlebit.cloneNode(true);
-					spannode.appendChild(middleclone);
-					middlebit.parentNode.replaceChild(spannode, middlebit);
-					skip = 1;
-				}
-			} else if (node.nodeType == 1 && node.childNodes
-					&& !/(script|style)/i.test(node.tagName)) {
-				for (var i = 0; i < node.childNodes.length; ++i) {
-					i += innerHighlight(node.childNodes[i], pat);
-				}
-			}
-			return skip;
-		}
-		return this.length && pat && pat.length ? this.each(function(i) {
-			/*
-			 * Excluding the clicked element for just highlighting the selection
-			 */
-			if(semi_highlight){
-				if(elem && (! $(this).is($(elem))) ){
-					innerHighlight(this, pat.toUpperCase());
-				}
-			}else
-				innerHighlight(this, pat.toUpperCase());
-				
-		}) : this;
-	};
-
-	jQuery.fn.removeHighlight = function(isSemiHighlight) {
-		if(isSemiHighlight){
-			return this.find("span.semi-highlight").each(function() {		
-			this.parentNode.firstChild.nodeName;
-			with (this.parentNode) {
-				replaceChild(this.firstChild, this);
-				normalize();
-			}
-		}).end();
-		}else{
-			return this.find("span.highlight").each(function() {		
-			this.parentNode.firstChild.nodeName;
-			with (this.parentNode) {
-				replaceChild(this.firstChild, this);
-				normalize();
-			}
-		}).end();
-		}
-		
-	};
-	
-	
-	jQuery.fn.visible = function() {
-	    return this.css('visibility', 'visible');
-	};
-
-	jQuery.fn.invisible = function() {
-	    return this.css('visibility', 'hidden');
-	};
-
-	jQuery.fn.visibilityToggle = function() {
-	    return this.css('visibility', function(i, visibility) {
-	        return (visibility == 'visible') ? 'hidden' : 'visible';
-	    });
-	};
-	//hide the context menu when clicked on window's element
-	$('body').on("mouseup",function(e){
-		if(! $(".contextMenuBody").is(":hidden")){
-			if(! $(e.target).parents(".contextMenuBody").length > 0){
-				$(".contextMenuBody").hide();
-			}
-		}
-		if(! $(".contextMenu").is(":hidden")){
-			if(! $(e.target).parents(".contextMenu").length > 0){
-				$(".contextMenu").hide();
-				//Remove highlighted text when user clicks somewhere on the screen
-				$('body').removeHighlight(true);
-			}
-		}
-	})
-	
-//	String.prototype.capitalizeFirstLetter = function() {
-//	    return this.charAt(0).toUpperCase() + this.slice(1);
-//	}
-	$('body').on("mouseenter",'.topLevelFilter.fixed',function(e){
-		$(this).find('.fixedSearchBox').removeClass('hiddeBox')
-	});
-	$('body').on("mouseleave",'.topLevelFilter.fixed',function(e){
-		if($(this).find('.fixedSearchBox .select2-container.select2-dropdown-open').length 
-			|| $(this).find('.VS-focus').length
-			|| $(this).find('.advanceSearchActive').length){
-			$(this).find('.fixedSearchBox').removeClass('hiddeBox')
-		}else{
-			$(this).find('.fixedSearchBox').addClass('hiddeBox')
-		}	
-	});
-
-	require(["nv"],function(){
-    	nv.dispatch.on("render_end",function(){
-    		$('.nvtooltip').css('opacity', '0');
-    	});
-    });
-	
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Vent.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Vent.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Vent.js
deleted file mode 100644
index ee24cd8..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/Vent.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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.
- */
-
- 
-define([
-    'backbone.wreqr'
-], function(Wreqr) {
-    "use strict";
-    return new Wreqr.EventAggregator();
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/globalize/message/en.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/globalize/message/en.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/globalize/message/en.js
deleted file mode 100644
index 841b2c1..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/modules/globalize/message/en.js
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * 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.
- */
-define(['require','globalize'],function(require,Globalize) {
-	'use strict';
-
-	Globalize.addCultureInfo( "en", {
-        messages:                  {
-        	// Form labels, Table headers etc
-			lbl : {
-				// Common
-				// Accounts
-				// MSLinks
-				/*
-				 * Menu related
-				 */
-				home 						: 'Home',
-				name 						: 'Name',
-				password					: 'Password',
-				passwordConfirm				: 'Password Confirm',
-			},
-			btn : {
-				add							: 'Add',
-				save						: 'Save',
-				cancel 						: 'Cancel',
-				addMore						: 'Add More..',
-				stayOnPage					: 'Stay on this page',
-				leavePage					: 'Leave this page',
-				setVisibility               : 'Set Visibility' 
-				
-			},
-			// h1, h2, h3, fieldset, title
-			h : {
-				welcome						: 'Welcome',
-				logout 						: 'Logout',
-	
-				// Menu
-				dashboard					: 'Dashboard',
-			},
-			msg : {
-				noRecordsFound			  : 'No Records Found',
-			},
-			plcHldr : {
-				search 						:'Search',
-			},
-			dialogMsg :{
-			},	
-			validationMessages : {
-				required 					: "* This field is required",
-				onlyLetterNumberUnderscore :'* Only Alpha Numeric and underscore characters are allowed',
-				alphaNumericUnderscoreDotComma :'* Only Alpha Numeric,underscore,comma,hypen,dot and space characters are allowed',
-				oldPasswordError :'Your password does not match. Please try again with proper password',
-				oldPasswordRepeatError :'You can not use old password.',
-				newPasswordError :'Invalid Password.Minimum 8 characters with min one alphabet and one numeric.',
-				emailIdError				: 'Please enter valid email address.',
-				enterValidName				: 'Please enter valid name.',
-				passwordError	            :'Invalid Password.Minimum 8 characters with min one alphabet and one numeric.'
-			},
-			serverMsg : {
-			}
-			
-
-        }
-    });
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/prelogin/Prelogin.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/prelogin/Prelogin.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/prelogin/Prelogin.js
deleted file mode 100644
index 3d33d86..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/prelogin/Prelogin.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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.
- */
-
- 
-//Define indexOf for IE
-if (!Array.indexOf) {
-	Array.prototype.indexOf = function(obj, start) {
-		for ( var i = (start || 0); i < this.length; i++) {
-			if (this[i] == obj) {
-				return i;
-			}
-		}
-		return -1;
-	};
-}
-
-
-function doLogin() {
-	
-	if ($("#username").val() === '' || $('#password').val() === '') {
-		$('#errorBox').show();
-		$('#signInLoading').hide();
-		$('#signIn').removeAttr('disabled');
-		$('#errorBox .errorMsg').text("The username or password you entered is incorrect..");
-		return false;
-	}
-	var userName = $('#username').val().trim();
-	var passwd = $('#password').val().trim();
-
-	var regexEmail = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
-	var regexPlain = /^([a-zA-Z0-9_\.\-\+])+$/;
-	if(!regexPlain.test(userName)){
-		if(!regexEmail.test(userName)){
-			$('#errorBox').show();
-			return false;
-		}
-	}	
-	var baseUrl = getBaseUrl();
-	if (baseUrl.lastIndexOf('/') != (baseUrl.length - 1)) {
-		if (baseUrl) {
-			baseUrl = baseUrl + '/';
-		} else {
-			baseUrl = '/';
-		}
-	}
-	var url = baseUrl + 'j_spring_security_check';
-
-	$.ajax({
-		data : {
-			j_username : userName,
-			j_password : passwd
-		},
-		url : url,
-		type : 'POST',
-		headers : {
-			"cache-control" : "no-cache"
-		},
-		success : function() {
-			if(location.hash.length > 2)
-				window.location.replace('index.html'+location.hash);
-			else
-				window.location.replace('index.html');
-		},
-		error : function(jqXHR, textStatus, err ) {
-			$('#signIn').removeAttr('disabled');
-			$('#signInLoading').css("visibility", "hidden");
-
-			if(jqXHR.status && jqXHR.status == 412){
-				$('#errorBox').hide();
-				$('#errorBoxUnsynced').show();
-			} else {
-				var resp = JSON.parse(jqXHR.responseText);
-				$('#errorBox .errorMsg').text(resp.msgDesc);
-				$('#errorBox').show();
-				$('#errorBoxUnsynced').hide();
-			}
-		}
-		
-	});
-
-}
-function getBaseUrl(){
-	if(!window.location.origin){
-		window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
-	}
-	return window.location.origin
-	+ window.location.pathname.substring(window.location.pathname
-			.indexOf('/', 2) + 1, 0);
-}
-$(function() {
-  	// register handlers
-	$('#signIn').on('click', function() {
-		$('#signIn').attr('disabled',true);
-		$('#signInLoading').css("visibility", "visible");
-		doLogin();
-		return false;
-	});
-	$('#loginForm').each(function() {
-		$('input').keypress(function(e) {
-			// Enter pressed?
-			if (e.which == 10 || e.which == 13) {
-				doLogin();
-			}
-		});
-	});
-	
-	$('#loginForm  li[class^=control-group] > input').on('change',function(e){
-		if(e.target.value === ''){
-			$(e.target).parent().addClass('error');
-		}else{
-			$(e.target).parent().removeClass('error');
-		}
-	});
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Enums.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Enums.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Enums.js
deleted file mode 100644
index 0c7a8d5..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Enums.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
-* 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.
-*/
-
-define(['require','jquery'],function(require,$) {
-
-	var XAEnums = {};
-	mergeParams = function(defaults, params) {
-		if (!params) {
-			return defaults;
-		}
-		defaults || (defaults = {});
-		$.extend(true, defaults, params);
-		return defaults;
-	};
-	
-	return XAEnums;
-});
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Globals.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Globals.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Globals.js
deleted file mode 100644
index 8356b9c..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Globals.js
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * 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.
- */
-
-define(['require', 'collections/SchemaFieldList'], function (require, SchemaFieldList) {
-  'use strict';
-
-  var Globals = {};
-
-  Globals.settings = {};
-  Globals.settings.PAGE_SIZE = 25;
-  Globals.settings.uploadDefaultOpts = {
-    disableImageResize: false,
-    maxFileSize: 5000000,
-    autoUpload: false
-  };
-  Globals.settings.MAX_VALUE = 2147483647;
-
-  Globals.keys = {};
-  Globals.keys.ENTER_KEY = 13;
-  Globals.keys.ESC_KEY = 27;
-
-  Globals.EventHistory = {
-    totalCount: 50
-  };
-
-  Globals.baseURL = '../api/v1/';
-
-  Globals.AppTabs = {
-    DASHBOARD: {value: 1, valStr: 'Dashboard'},
-    MAINVIEW: {value: 2, valStr: 'Main View'}
-  };
-
-  Globals.BooleanValue = {
-    BOOL_TRUE: {value: "true", label: 'True'},
-    BOOL_FALSE: {value: "false", label: 'False'}
-  };
-  Globals.paramsNameMapping = {
-    q: {label: 'Query'},
-    from: {label: 'From'},
-    to: {label: 'To'},
-    unit: {label: 'Unit'},
-    level: {label: 'Level'},
-    mustNot: {label: 'Exclude Component'},
-    mustBe: {label: 'Include Component'},
-    iMessage: {label: 'Include Message'},
-    eMessage: {label: 'Exclude Message'},
-    time: {label: ''},
-    includeQuery: {label: "Include Column"},
-    excludeQuery: {label: "Exclude Column"},
-    dateRangeLabel: {label: "Date Range"}
-  };
-
-  Globals.graphType = {
-    MULTILINE: {value: 1},
-    HISTOGRAM: {value: 2},
-    PIE: {value: 3},
-    TABLE: {value: 4}
-  };
-
-  Globals.dateFormat = "YYYY-MM-DD HH:mm:ss.SSS";
-  Globals.splitToken = "|i::e|";
-  Globals.eventName = {
-    serviceLogsIncludeColumns: "search:serviceLogs:include",
-    serviceLogsExcludeColumns: "search:serviceLogs:exclude"
-  };
-  Globals.serviceLogsColumns = [];
-  Globals.schemaFields = new SchemaFieldList().fetch({async: false}).responseJSON;
-  Globals.defaultServiceLogMappings = Globals.schemaFields.serviceLogMappings;
-  Globals.defaultServiceLogExcludes = Globals.schemaFields.serviceLogExcludes;
-  Globals.defaultAuditLogMappings = Globals.schemaFields.auditLogMappings;
-  Globals.defaultAuditLogExcludes = Globals.schemaFields.auditLogExcludes;
-  Globals.invertedServiceLogMappings = _.invert(Globals.defaultServiceLogMappings);
-  Globals.invertedAuditLogMappings = _.invert(Globals.defaultAuditLogMappings);
-
-  return Globals;
-});

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/LangSupport.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/LangSupport.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/LangSupport.js
deleted file mode 100644
index a445d7f..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/LangSupport.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * 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.
- */
-
- /**
- * 
- * Loads different languages as required.Uses Globalize plugin   
- */
-
-define(['require','modules/Vent','globalize','modules/globalize/message/en'],function(require,vent){
-
-    var localization ={};
-
-    function setCulture(culture){
-        if(typeof culture !== 'undefined'){
-            localization.culture =culture;
-        }else{
-            localization.culture ="en";
-        }
-        Globalize.culture(localization.culture);
-    }
-
-	localization.setDefaultCulture = function(){
-		setCulture();
-	}
-    localization.tt = function(label){
-        var ret = label;
-  
-        var str = localization.localize(label, localization.culture);
-        if(typeof str !== 'undefined'){
-        	return str;
-        }
-        
-        if(localization.culture !== 'en' ){
-        	if(typeof localization.culture !== 'undefined')
-        		ret = (typeof localization.localize(label,"en") === 'undefined') ? label : localization.localize(label,"en");
-        	else{
-        		 ret = localization.localize(label,"en");
-        	}
-        }
-        return ret;
-    },
-    localization.localize = function(key , culture){
-    	return localization.byString(Globalize.findClosestCulture( culture ).messages, key ) || Globalize.cultures[ "default" ].messages[ key ];
-    }
-    
-    localization.byString = function(o, s) {
-        s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
-        s = s.replace(/^\./, '');           // strip a leading dot
-        var a = s.split('.');
-        while (a.length) {
-            var n = a.shift();
-            if (n in o) {
-                o = o[n];
-            } else {
-                return;
-            }
-        }
-        return o;
-    }
-    
-    localization.getMonthsAbbr = function(){
-		return Globalize.culture().calendars.standard.months.namesAbbr;
-    }
-
-    localization.getDaysOfWeek = function(label){
-		return Globalize.culture().calendars.standard.days.namesAbbr;
-    }
-
-    localization.chooseCulture = function(culture){
-		var dfd = $.Deferred();
-		dfd.done(function(validationMessages){
-			require([ 'validationEngine'],function(){
-				setCulture(culture);
-				validationMessages.setupMessages();
-				vent.trigger('Layouts:rerender');
-			});
-		});
-        switch(culture){
-            case "pt-BR" : 
-                 require(['gblMessages/message/pt-BR'], function() {
-					 require([ 'validationEngineEn' ],function(validationMessages){
-						 dfd.resolve(validationMessages);
-						 console.log('Language Changed to pt-BR');
-					 });
-					 $.fn.datepicker.dates['pt-BR'] = {
-								days: ["Domingo", "Segunda", "Ter��a", "Quarta", "Quinta", "Sexta", "S��bado", "Domingo"],
-								daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "S��b", "Dom"],
-								daysMin: ["Do", "Se", "Te", "Qu", "Qu", "Se", "Sa", "Do"],
-								months: ["Janeiro", "Fevereiro", "Mar��o", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
-								monthsShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
-								today: "Hoje",
-								clear: "Limpar"
-					};
-					bootbox.setLocale('pt-BR'); 
-                });
-                break;
-			case "es" : 
-                 require(['gblMessages/message/es'], function() {
-					 require([ 'validationEngineEn' ],function(validationMessages){
-						 dfd.resolve(validationMessages);
-						 console.log('Language Changed to es');
-					 });
-					 $.fn.datepicker.dates['es'] = {
-								days: ["Domingo", "Lunes", "Martes", "Mi��rcoles", "Jueves", "Viernes", "S��bado", "Domingo"],
-								daysShort: ["Dom", "Lun", "Mar", "Mi��", "Jue", "Vie", "S��b", "Dom"],
-								daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa", "Do"],
-								months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
-								monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
-								today: "Hoy"
-					};
-					bootbox.setLocale('es'); 
-                });
-                break;
-            default : 
-                 require(['gblMessages/message/en'], function() {
-					 require([ 'validationEngineEn' ],function(validationMessages){
-						 dfd.resolve(validationMessages);
-						 console.log('Language Changed to en');
-					 });
-					 bootbox.setLocale('en');
-                });
-                break;
-        }
-    }
-    
-    localization.formatDate = function(val,format){
-    	if(!val) return "";
-		var Util = require('utils/Utils');
-		var valDate = Util.DBToDateObj(val);
-    	return Globalize.format( valDate,format,localization.culture);
-    }
-    
-	//window.localization = localization;
-    return localization;
-})

http://git-wip-us.apache.org/repos/asf/ambari/blob/02360dd5/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Tour.js
----------------------------------------------------------------------
diff --git a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Tour.js b/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Tour.js
deleted file mode 100644
index f9d093b..0000000
--- a/ambari-logsearch/ambari-logsearch-web/src/main/webapp/scripts/utils/Tour.js
+++ /dev/null
@@ -1,461 +0,0 @@
-/**
- * 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.
- */
-
-define(['require', 'tour'], function (require, TourJs) {
-  'use strict';
-
-  var TourJs = {};
-  var tour = '';
-  TourJs.Start = function () {
-    var getTourElement = function () {
-      return tour._options.steps[tour._current].element;
-    };
-    tour = new Tour({
-      name: "tour",
-      steps: [{
-        element: $('[data-id="troubleshoot"]').get(0),
-        content: "Welcome to Log Search!  Choose Troubleshooting to display high-level log and usage aggregates for all services and components in your cluster.",
-        placement: "right"
-      }, {
-        element: $('#troubleShootHeader').get(0),
-        content: "Choose a Service to display high-level information about that service. Optionally, filter by components and apply a specific diagnostic time frame.",
-        placement: "bottom"
-      }, {
-        element: $('div[data-id="dateRange"] .selectDateRange').get(0),
-        content: "Click the Date-Time picker and choose a pre-defined time slot or specify date and time values.",
-        placement: "top"
-      }, {
-        element: $("#showServicelog").get(0),
-        content: "Choose Go To Logs to further refine your examination of Service Logs for a selected service.",
-        placement: "top"
-      }, {
-        element: $('[data-id="hierarchy"]').get(0),
-        content: "Service Logs displays a high-level history of logs generated by a selected service and allows you to filter logs by component. You control your view of log data per component and host, Choose to view aggregate Service Logs or drill into details of each log message.",
-        placement: "right"
-      }, {
-        element: $("#searchIncludeExclude").get(0),
-        content: "This filter allows you to query the log data column wise(log_message, level, host etc). Include Search is basically \"or\" condition and Exclude Search is \"and\" condition between multiple input.",
-        placement: "bottom"
-      }, {
-        element: $("#compInculdeExculde").get(0),
-        content: "This filter allows you to filter the log data depending upon the component selection. Include Component is again \"or\" condition and Exclude Component is \"and\" condition between multiple selection.",
-        placement: "bottom"
-      }, {
-        element: $('[data-id="startStop"]').get(0),
-        content: "Snapshot helps you quickly see all logs generated while you reproduce an issue. Click start, reproduce your issue, click stop and we'll load all logs that were produced during that time frame.",
-        placement: "bottom"
-      }, {
-        element: $('#r_Histogram').get(0),
-        content: "Histogram displays comparative ratios of log severity during the currently defined time filter.",
-        placement: "top"
-      }, {
-        element: document.querySelectorAll('#r_BubbleTable')[1],
-        content: "The Log Data default view displays consolidated for all hosts.",
-        placement: "top",
-      }, {
-        element: document.querySelectorAll('#r_BubbleTable')[1],
-        content: "Expand the Log Data tree view and choose components to further refine your diagnostics.",
-        placement: "top",
-      }, {
-        element: $(document.querySelectorAll('#r_BubbleTable')[1]).find('.box-content')[1],
-        content: "Choose the blue arrow icon to view logs for a specific component on a new tab.",
-        placement: "right",
-      }, {
-        element: document.querySelectorAll('#r_BubbleTable')[1],
-        content: "Choose Service Logs to show a column-separated view of actual log entries.",
-        placement: "top",
-      }, {
-        element: $(document.querySelectorAll('#r_BubbleTable')[1]).find('td.logTime:first').get(0),
-        content: "The Log Time column lists a consolidated view of filtered log entries for the selected service.",
-        placement: "top"
-      }, {
-        element: $('li[data-id="audit"]').get(0),
-        content: "The Access Logs tab displays access information across services and their components. You can create different views and aggregations and apply filters for viewing access log details.",
-        placement: "right"
-      }, {
-        element: $('#r_AuditLine').get(0),
-        content: "The Line section shows component access during a specific time frame.",
-        placement: "bottom"
-      }, {
-        element: $('#AuditSearch').get(0),
-        content: "This filter allows you to query Access log data column- wise (Access Enforcer, Access type etc). Include Search applies the \"or\" condition and Exclude Search the \"and\" condition between multiple inputs.",
-        placement: "top"
-      }, {
-        element: $('li[data-id="createFilters"]').get(0),
-        content: "The Log Feeder Filter feature supports limiting data handled by LogSearch. For example, you can limit logs tracked by LogSearch to only those logs with level ERROR or FATAL.",
-        placement: "left"
-      }],
-      container: "body",
-      smartPlacement: true,
-      keyboard: true,
-      storage: false,
-      debug: false,
-      backdrop: true,
-      backdropContainer: 'body',
-      backdropPadding: 0,
-      redirect: true,
-      orphan: false,
-      duration: false,
-      delay: false,
-      basePath: "",
-      template: "<div class='popover tour'>" +
-      "<div class='arrow'></div>" +
-      "<h3 class='popover-title'></h3>" +
-      "<div class='popover-content'></div>" +
-      "<div class='popover-navigation'>" +
-      "<button class='btn btn-default' data-role='next'>Next »</button>" +
-      "<button class='btn btn-default' data-role='end'>Close</button>" +
-      "</div>" +
-      "</div>",
-      afterGetState: function (key, value) {
-      },
-      afterSetState: function (key, value) {
-      },
-      afterRemoveState: function (key, value) {
-      },
-      onShow: function (tour) {
-      },
-      onShown: function (tour) {
-        var stepElement = getTourElement(tour);
-        $(stepElement).after($('.tour-step-background'));
-        $(stepElement).before($('.tour-backdrop'));
-
-        if (tour._state.current_step == 1) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 2) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 3) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 4) {
-        } else if (tour._state.current_step == 5) {
-        } else if (tour._state.current_step == 6) {
-        } else if (tour._state.current_step == 7) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 9) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 10) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 11) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 12) {
-          appendFingerAndOverlayDiv(tour._options.showFinger[tour._state.current_step]);
-        } else if (tour._state.current_step == 13) {
-          $('[data-id="r_tableList"]').find('table thead tr').css({'display': '-webkit-box'});
-          $('[data-id="r_tableList"]').find('table tbody tr').css({'display': '-webkit-box'});
-          $('[data-id="r_tableList"]').find('table thead tr').css({'display': '-moz-box'});
-          $('[data-id="r_tableList"]').find('table tbody tr').css({'display': '-moz-box'});
-        } else if (tour._state.current_step == 14) {
-          console.log("14")
-        }
-
-        var count = $('body').find('.finger');
-        if (count.length > 1) {
-          $('body').find('.finger:first').remove();
-        }
-      }
-
-    }),
-      TourJs.bindEvent(tour),
-      tour.start();
-
-    //add all animation and overlay div
-    function appendFingerAndOverlayDiv(options) {
-      $('.tour-step-backdrop:first').append('<div class="animated infinite finger ' + options.handClass + '"><i class="fa fa-hand-o-' + options.handDirection + ' fa-2x"></i></div>');
-      $('.tour-step-backdrop:first').find('.finger').css(options.css);
-    };
-
-    var overlay = document.createElement('div');
-    overlay.setAttribute('class', 'overlayIntro');
-    $('body').append(overlay);
-  };
-
-  TourJs.bindEvent = function (tour) {
-    var that = this;
-    var tourCallBack = tour._options;
-
-    var optionSet = {
-      0: {
-        css: {
-          'top': '0px',
-          'left': '98px'
-        },
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      1: {
-        css: {
-          'top': '0px',
-          'left': '98px'
-        },
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      2: {
-        css: {
-          'top': '0',
-          'right': '95px'
-        },
-        handDirection: 'left',
-        handClass: "left-right"
-      },
-      3: {
-        css: {
-          'top': '0',
-          'left': '40px'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      },
-      4: {
-        css: {
-          'top': '0px',
-          'left': '98px'
-        },
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      5: {
-        css: {
-          'top': '10px',
-          'left': '10px'
-        },
-        handDirection: 'right',
-        handClass: "right-left"
-      },
-      // 6: {
-      //     css: {
-      //         'top': '10px',
-      //         'left': '10px'
-      //     },
-      //     handDirection: 'right',
-      //     handClass: "right-left"
-      // },
-      7: {
-        css: {
-          'top': '5px',
-          'left': '100px'
-        },
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      8: {
-        css: {
-          'top': '30px',
-          'left': '309px'
-        },
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      9: {
-        css: {
-          'top': '45px',
-          'left': '122px'
-        },
-        handDirection: 'up',
-        handClass: "up-down"
-      },
-      10: {
-        css: {
-          'top': '45px',
-          'left': '100px'
-        },
-        appendIndex: 0,
-        handDirection: 'down',
-        handClass: "up-down"
-      },
-      11: {
-        css: {
-          'top': '45px',
-          'right': '80px'
-        },
-        appendIndex: 1,
-        handDirection: 'right',
-        handText: "Components",
-        handClass: "left-right"
-
-      },
-      12: {
-        css: {
-          'top': '30px',
-          'left': '309px'
-        },
-        appendIndex: 0,
-        handDirection: 'left',
-        handClass: "left-right"
-      },
-      13: {
-        css: {
-          'top': '50px',
-          'left': '0px'
-        },
-        appendIndex: 0,
-        handDirection: 'up',
-        handClass: "up-down"
-      },
-      14: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        appendIndex: 0,
-        handDirection: 'up',
-        handClass: "up-down"
-      },
-      15: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      },
-      16: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      },
-      17: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      },
-      18: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      },
-      19: {
-        css: {
-          'top': '0',
-          'left': '0'
-        },
-        handDirection: 'right',
-        handClass: "left-right"
-      }
-    };
-
-    $.extend(tour._options, {"showFinger": optionSet});
-
-    // on tour start
-    tourCallBack.onStart = function (tour) {
-      $('.ui-dialog').fadeOut();
-      $('.ui-widget-overlay').fadeOut();
-      $('.compare').fadeOut();
-      that.dataAttribute = $('div[role="tabpanel"]').find('.nav-tabs .active').attr('data-id');
-      if (that.dataAttribute != "troubleshoot") {
-        $('div[role="tabpanel"]').find('.nav-tabs [data-id="troubleshoot"] a').click();
-      }
-    };
-
-    // on the Next button click
-    tourCallBack.onNext = function (tour) {
-      if (tour._state.current_step == 0) {
-      } else if (tour._state.current_step == 1) {
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 2) {
-        $("#showServicelog").css('z-index', '');
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 3) {
-        $('div[role="tabpanel"]').find('.nav-tabs [data-id="hierarchy"] a').click();
-        $("#showServicelog").css('z-index', 1);
-      } else if (tour._state.current_step == 4) {
-      } else if (tour._state.current_step == 5) {
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 6) {
-        ($('[id="r_Histogram"]').find('.collapse-link').first().find('i').hasClass('fa-chevron-down')) ? $('[id="r_Histogram"]').find('.collapse-link').first().find('i').click() : '';
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 7) {
-        ($('#r_BubbleTable a.collapse-link').first().find('i').hasClass('fa-chevron-down')) ? $('#r_BubbleTable a.collapse-link').first().find('i').click() : '';
-        $('#r_BubbleTable li[data-parent="true"]').first().find('span[data-state="expand"]').first().click();
-        $('#r_BubbleTable input[value="H"]').click();
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 8) {
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 9) {
-        $('#r_BubbleTable li[data-parent="true"]').first().find('span[data-state="collapse"]').first().click();
-        $('#r_BubbleTable li[data-parent="true"]').first().find('a[data-type="C"]').first().removeClass('hidden');
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 10) {
-        $('#r_BubbleTable li[data-parent="true"]').first().find('a[data-type="C"]').first().removeClass('hidden');
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 11) {
-        $('#r_BubbleTable input[value="T"]').click();
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 12) {
-        setTimeout(function () {
-          $('#rLogTable').find('.btn-quickMenu').first().click();
-        }, 300);
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 13) {
-        $('[data-id="r_tableList"]').find('table thead tr').css({'display': ''});
-        $('[data-id="r_tableList"]').find('table tbody tr').css({'display': ''});
-        $('div[role="tabpanel"]').find('.nav-tabs [data-id="audit"] a').click();
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 14) {
-        ($('#r_AuditLine a.collapse-link').first().find('i').hasClass('fa-chevron-down')) ? $('#r_AuditLine a.collapse-link').first().find('i').click() : '';
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 15) {
-        ($('#AuditSearch a.collapse-link').first().find('i').hasClass('fa-chevron-down')) ? $('#AuditSearch a.collapse-link').first().find('i').click() : '';
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 16) {
-        removeFingerAndOverlayDiv();
-      } else if (tour._state.current_step == 17) {
-      }
-
-    };
-
-    // on tour Ends
-    tourCallBack.onEnd = function (tour) {
-      tabClick();
-      $('body').find('.overlayIntro').remove();
-      $('.ui-dialog').fadeIn();
-      $('.ui-widget-overlay').fadeIn();
-      $('.compare').fadeIn();
-      removeFingerAndOverlayDiv();
-      $('[data-id="r_tableList"]').find('table thead tr').css({'display': ''});
-      $('[data-id="r_tableList"]').find('table tbody tr').css({'display': ''});
-    };
-
-    function tabClick() {
-      if (!that.dataAttribute) {
-        $('div[role="tabpanel"]').find('.nav-tabs [data-id="troubleshoot"] a').click();
-      } else {
-        $('div[role="tabpanel"]').find('.nav-tabs [data-id=' + that.dataAttribute + '] a').click();
-      }
-      window.scrollTo(0, 0);
-    };
-
-    //remove all animation and overlay div
-    function removeFingerAndOverlayDiv() {
-      $('body').find('.finger').remove();
-    };
-
-  }
-
-
-  return TourJs;
-});
\ No newline at end of file