You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vs...@apache.org on 2017/06/23 07:02:28 UTC
[19/35] ambari git commit: AMBARI-21330.Remove slider view from
Ambari-3.0.0(Venkata Sairam)
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step2_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step2_view.js b/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step2_view.js
deleted file mode 100644
index bdf718f..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step2_view.js
+++ /dev/null
@@ -1,33 +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.
- */
-
-App.CreateAppWizardStep2View = Ember.View.extend({
-
- /**
- * Message shown in the checkbox popover
- * @type {string}
- */
- checkBoxPopover: Em.I18n.t('wizard.step2.table.popoverCheckbox'),
-
- /**
- * Message shown in the label-input popover
- * @type {string}
- */
- yarnLabelPopover: Em.I18n.t('wizard.step2.table.popoverLabel')
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js b/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js
deleted file mode 100644
index 5d3bd57..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js
+++ /dev/null
@@ -1,25 +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.
- */
-
-App.CreateAppWizardStep3View = Ember.View.extend(App.WithPanels, {
-
- didInsertElement: function () {
- this.get('controller').loadStep();
- this.addCarets();
- }
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step4_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step4_view.js b/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step4_view.js
deleted file mode 100644
index 9034001..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step4_view.js
+++ /dev/null
@@ -1,24 +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.
- */
-
-App.CreateAppWizardStep4View = Ember.View.extend({
-
- didInsertElement: function () {
- this.get('controller').loadStep();
- }
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/create_app_wizard_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/create_app_wizard_view.js b/contrib/views/slider/src/main/resources/ui/app/views/create_app_wizard_view.js
deleted file mode 100644
index a511095..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/create_app_wizard_view.js
+++ /dev/null
@@ -1,80 +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.
- */
-
-App.CreateAppWizardView = Ember.View.extend({
-
- classNames: ['create-app-wizard-wrapper'],
-
- didInsertElement: function(){
- this.setHeight();
- $(window).resize(this.setHeight);
- this.get('controller').loadStep();
- },
-
- isStep1: function () {
- return this.get('controller.currentStep') == 1;
- }.property('controller.currentStep'),
-
- isStep2: function () {
- return this.get('controller.currentStep') == 2;
- }.property('controller.currentStep'),
-
- isStep3: function () {
- return this.get('controller.currentStep') == 3;
- }.property('controller.currentStep'),
-
- isStep4: function () {
- return this.get('controller.currentStep') == 4;
- }.property('controller.currentStep'),
-
- isStep1Disabled: function () {
- return this.get('controller.currentStep') < 1;
- }.property('controller.currentStep'),
-
- isStep2Disabled: function () {
- return this.get('controller.currentStep') < 2;
- }.property('controller.currentStep'),
-
- isStep3Disabled: function () {
- return this.get('controller.currentStep') < 3;
- }.property('controller.currentStep'),
-
- isStep4Disabled: function () {
- return this.get('controller.currentStep') < 4;
- }.property('controller.currentStep'),
-
- actions: {
- hide: function () {
- this.hidePopup();
- },
- finish: function () {
- this.hidePopup();
- }
- },
-
- hidePopup: function () {
- $(this.get('element')).find('.modal').hide();
- this.get('controller').transitionToRoute('slider_apps');
- },
-
- setHeight: function () {
- var height = $(window).height() * 0.8;
- $('.slider-modal-body').css('max-height', height + 'px');
- $('#createAppWizard').css('margin-top', -(height / 2) + 'px');
- }
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/configs_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/configs_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/configs_view.js
deleted file mode 100644
index 5093fb9..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/configs_view.js
+++ /dev/null
@@ -1,57 +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.
- */
-
-App.SliderAppConfigsView = Ember.View.extend(App.WithPanels, {
-
- /**
- * List of configs group by categories
- * @type {Object[]}
- */
- configsByCategories: Em.A([]),
-
- /**
- * Observer for model's configs
- * Updates <code>configsByCategories</code>
- * @method configsObserver
- */
- configsObserver: function() {
- var model = this.get('controller.content'),
- configs = model.get('.configs'),
- configsByCategories = this.get('configsByCategories'),
- hiddenCategories = model.get('hiddenCategories');
- Em.keys(configs).forEach(function (site) {
- if (configsByCategories.mapBy('name').contains(site)) {
- var c = configsByCategories.findBy('name', site);
- c.set('configs', model.mapObject(configs[site]));
- c.set('isVisible', !hiddenCategories.contains(site));
- }
- else {
- configsByCategories.pushObject(Em.Object.create({
- name: site,
- configs: model.mapObject(configs[site]),
- isVisible: !hiddenCategories.contains(site)
- }));
- }
- });
- }.observes('controller.content.configs.@each'),
-
- didInsertElement: function() {
- this.addCarets();
- }
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_modal_footer_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_modal_footer_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_modal_footer_view.js
deleted file mode 100644
index 0bab4ae..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_modal_footer_view.js
+++ /dev/null
@@ -1,41 +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.
- */
-
-App.DestroyAppPopupFooterView = Ember.View.extend({
-
- /**
- * targetObject should be defined for buttons and other components that may set actions
- * @type {Em.Controller}
- */
- targetObjectBinding: 'controller',
-
- templateName: 'slider_app/destroy/destroy_popup_footer',
-
- /**
- * Destroy-button
- * @type {Em.Object}
- */
- destroyButton: Em.Object.create({title: Em.I18n.t('common.destroy'), clicked: "modalConfirmed", type:'success'}),
-
- /**
- * Cancel-button
- * @type {Em.Object}
- */
- cancelButton: Em.Object.create({title: Em.I18n.t('common.cancel'), clicked: "modalCanceled"})
-
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_popup_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_popup_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_popup_view.js
deleted file mode 100644
index f1ce6ba..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/destroy_popup_view.js
+++ /dev/null
@@ -1,37 +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.
- */
-
-App.DestroyAppPopupView = Ember.View.extend({
-
- templateName: 'slider_app/destroy/destroy_popup',
-
- /**
- * targetObject should be defined for buttons and other components that may set actions
- * @type {Em.Controller}
- */
- targetObjectBinding: 'controller',
-
- /**
- * Warning message for dummy user
- * @type {string}
- */
- confirmMessage: function() {
- return Em.I18n.t('sliderApp.destroy.confirm.body2').format(this.get('controller.model.name'));
- }.property()
-
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/app_metric_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/app_metric_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/app_metric_view.js
deleted file mode 100644
index b208baa..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/app_metric_view.js
+++ /dev/null
@@ -1,77 +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.
- */
-
-/**
- * @class
- *
- * This is a view for showing cluster CPU metrics
- *
- * @extends App.ChartView
- * @extends Ember.Object
- * @extends Ember.View
- */
-App.AppMetricView = App.ChartView.extend(App.RunPeriodically, {
-
- app: null,
-
- metricName: null,
-
- id: function () {
- return 'graph_' + this.get('app.id') + this.get('metricName');
- }.property('app.id', 'metricName'),
-
- title: function () {
- return this.get('metricName').humanize();
- }.property('metricName'),
-
- yAxisFormatter: App.ChartView.DefaultFormatter,
-
- renderer: 'line',
-
- ajaxIndex: 'metrics',
-
- getDataForAjaxRequest: function () {
- return {
- id: this.get('app.id'),
- metric: this.get('metricName')
- };
- },
-
- transformToSeries: function (jsonData) {
- var self = this,
- seriesArray = [],
- metricName = this.get('metricName'),
- metrics = Ember.get(jsonData, 'metrics');
- if (!Ember.isNone(metrics)) {
- Ember.keys(metrics).forEach(function () {
- var seriesData = metrics[metricName];
- if (seriesData) {
- var s = self.transformData(seriesData, metricName);
- seriesArray.push(s);
- }
- });
- }
- this.get('parentView.graphs').findBy('metricName', metricName).set('dataExists', !!seriesArray.length);
- return seriesArray;
- },
-
- loadDataErrorCallback: function() {
- this.set('isReady', true);
- this.get('parentView.graphs').findBy('metricName', this.get('metricName')).set('dataExists', false);
- }
-
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric2_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric2_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric2_view.js
deleted file mode 100644
index f9a6487..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric2_view.js
+++ /dev/null
@@ -1,63 +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.
- */
-
-/**
- * @class
- *
- * This is a view for showing cluster CPU metrics
- *
- * @extends App.ChartView
- * @extends Ember.Object
- * @extends Ember.View
- */
-App.Metric2View = App.ChartView.extend({
- id: "service-metrics-hdfs-jvm-threads",
- title: 'jvm Threads',
- renderer: 'line',
-
- ajaxIndex: 'metrics2',
-
- transformToSeries: function (jsonData) {
- var seriesArray = [];
- if (jsonData && jsonData.metrics && jsonData.metrics.jvm) {
- for ( var name in jsonData.metrics.jvm) {
- var displayName;
- var seriesData = jsonData.metrics.jvm[name];
- switch (name) {
- case "threadsBlocked":
- displayName = 'Threads Blocked';
- break;
- case "threadsWaiting":
- displayName = 'Threads Waiting';
- break;
- case "threadsTimedWaiting":
- displayName = 'Threads Timed Waiting';
- break;
- case "threadsRunnable":
- displayName = 'Threads Runnable';
- break;
- default:
- break;
- }
- if (seriesData) {
- seriesArray.push(this.transformData(seriesData, displayName));
- }
- }
- }
- return seriesArray;
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric3_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric3_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric3_view.js
deleted file mode 100644
index b47d8dc..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric3_view.js
+++ /dev/null
@@ -1,61 +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.
- */
-
-/**
- * @class
- *
- * This is a view for showing cluster CPU metrics
- *
- * @extends App.ChartView
- * @extends Ember.Object
- * @extends Ember.View
- */
-App.Metric3View = App.ChartView.extend({
- id: "service-metrics-hdfs-file-operations",
- title: 'File Operations',
- renderer: 'line',
-
- ajaxIndex: 'metrics3',
- yAxisFormatter: App.ChartView.CreateRateFormatter('ops', App.ChartView.DefaultFormatter),
-
- transformToSeries: function (jsonData) {
- var seriesArray = [];
- if (jsonData && jsonData.metrics && jsonData.metrics.dfs && jsonData.metrics.dfs.namenode) {
- for ( var name in jsonData.metrics.dfs.namenode) {
- var displayName;
- var seriesData = jsonData.metrics.dfs.namenode[name];
- switch (name) {
- case "FileInfoOps":
- displayName = 'File Info Ops';
- break;
- case "DeleteFileOps":
- displayName = 'Delete File Ops';
- break;
- case "CreateFileOps":
- displayName = 'Create File Ops';
- break;
- default:
- break;
- }
- if (seriesData) {
- seriesArray.push(this.transformData(seriesData, displayName));
- }
- }
- }
- return seriesArray;
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric4_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric4_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric4_view.js
deleted file mode 100644
index 9897a30..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric4_view.js
+++ /dev/null
@@ -1,54 +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.
- */
-
-/**
- * @class
- *
- * This is a view for showing cluster CPU metrics
- *
- * @extends App.ChartView
- * @extends Ember.Object
- * @extends Ember.View
- */
-App.Metric4View = App.ChartView.extend({
- id: "service-metrics-hdfs-rpc",
- title: 'RPC',
- yAxisFormatter: App.ChartView.TimeElapsedFormatter,
-
- ajaxIndex: 'metrics4',
-
- transformToSeries: function (jsonData) {
- var seriesArray = [];
- if (jsonData && jsonData.metrics && jsonData.metrics.rpc) {
- for ( var name in jsonData.metrics.rpc) {
- var displayName;
- var seriesData = jsonData.metrics.rpc[name];
- switch (name) {
- case "RpcQueueTime_avg_time":
- displayName = 'RPC Queue Time Avg Time';
- break;
- default:
- break;
- }
- if (seriesData) {
- seriesArray.push(this.transformData(seriesData, displayName));
- }
- }
- }
- return seriesArray;
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric_view.js
deleted file mode 100644
index 5f6c671..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/metrics/metric_view.js
+++ /dev/null
@@ -1,70 +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.
- */
-
-/**
- * @class
- *
- * This is a view for showing cluster CPU metrics
- *
- * @extends App.ChartView
- * @extends Ember.Object
- * @extends Ember.View
- */
-App.MetricView = App.ChartView.extend({
-
- id: "service-metrics-hdfs-space-utilization",
-
- title: 'Space Utilization',
-
- yAxisFormatter: App.ChartView.BytesFormatter,
-
- renderer: 'line',
-
- ajaxIndex: 'metrics',
-
- transformToSeries: function (jsonData) {
- var seriesArray = [];
- var GB = Math.pow(2, 30);
- if (jsonData && jsonData.metrics && jsonData.metrics.dfs && jsonData.metrics.dfs.FSNamesystem) {
- for ( var name in jsonData.metrics.dfs.FSNamesystem) {
- var displayName;
- var seriesData = jsonData.metrics.dfs.FSNamesystem[name];
- switch (name) {
- case "CapacityRemainingGB":
- displayName = 'Capacity Remaining GB';
- break;
- case "CapacityUsedGB":
- displayName = 'Capacity Used GB';
- break;
- case "CapacityTotalGB":
- displayName = 'Capacity Total GB';
- break;
- default:
- break;
- }
- if (seriesData) {
- var s = this.transformData(seriesData, displayName);
- for (var i = 0; i < s.data.length; i++) {
- s.data[i].y *= GB;
- }
- seriesArray.push(s);
- }
- }
- }
- return seriesArray;
- }
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app/summary_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/summary_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app/summary_view.js
deleted file mode 100644
index 2c88608..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app/summary_view.js
+++ /dev/null
@@ -1,141 +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.
- */
-
-App.SliderAppSummaryView = Ember.View.extend({
-
- classNames: ['app_summary'],
-
- /**
- * List of graphs shown on page
- * Format:
- * <code>
- * [
- * {
- * id: string,
- * dataExists: bool,
- * metricName: string,
- * view: App.AppMetricView
- * },
- * {
- * id: string,
- * dataExists: bool,
- * metricName: string,
- * view: App.AppMetricView
- * },
- * ....
- * ]
- * </code>
- * @type {{object}[]}
- */
- graphs: [],
-
- /**
- * Determine if at least one graph contains some data to show
- * @type {bool}
- */
- graphsNotEmpty: function () {
- return this.get('graphs').isAny('dataExists', true);
- }.property('graphs.@each.dataExists'),
-
- /**
- * Update <code>graphs</code>-list when <code>model</code> is updated
- * New metrics are pushed to <code>graphs</code> (not set new list to <code>graphs</code>!) to prevent page flickering
- * @method updateGraphs
- */
- updateGraphs: function () {
- var model = this.get('controller.model'),
- existingGraphs = this.get('graphs'),
- graphsBeenChanged = false;
-
- if (model) {
- var currentGraphIds = [],
- supportedMetrics = model.get('supportedMetricNames');
- if (supportedMetrics) {
- var appId = model.get('id');
- supportedMetrics.split(',').forEach(function (metricName) {
- var graphId = metricName + '_' + appId;
- currentGraphIds.push(graphId);
- if (!existingGraphs.isAny('id', graphId)) {
- graphsBeenChanged = true;
- var view = App.AppMetricView.extend({
- app: model,
- metricName: metricName
- });
- existingGraphs.push(Em.Object.create({
- id: graphId,
- view: view,
- dataExists: false,
- metricName: metricName
- }));
- }
- });
- }
- // Delete not existed graphs
- existingGraphs = existingGraphs.filter(function (existingGraph) {
- graphsBeenChanged = graphsBeenChanged || !currentGraphIds.contains(existingGraph.get('id'));
- return currentGraphIds.contains(existingGraph.get('id'));
- });
- if (graphsBeenChanged) {
- this.set('graphs', existingGraphs);
- }
- }
- }.observes('controller.model.supportedMetricNames'),
-
- didInsertElement: function () {
- var self = this;
- Em.run.next(function () {
- self.fitPanels();
- });
- },
-
- /**
- * Set equal height to left (summary) and right (alerts and components) columns basing on higher value
- * @method fitPanels
- */
- fitPanels: function () {
- var panelSummary = this.$('.panel-summary'),
- panelSummaryBody = panelSummary.find('.panel-body'),
- columnRight = this.$('.column-right'),
- panelAlerts = columnRight.find('.panel-alerts'),
- panelComponentsBody = columnRight.find('.panel-components .panel-body'),
- wrapperHeightDiff = columnRight.find('.panel-components').height() - panelComponentsBody.height();
- if (panelSummary.height() < panelSummaryBody.height()) {
- panelSummary.height(panelSummaryBody.height());
- }
- var marginAndBorderHeight = parseInt(panelAlerts.css('margin-bottom')) + 3;
- if (panelSummary.height() > columnRight.height()) {
- panelComponentsBody.height(panelSummary.height() - panelAlerts.height() - marginAndBorderHeight - wrapperHeightDiff);
- }
- else {
- panelSummary.height(columnRight.height() - marginAndBorderHeight);
- }
- },
-
- AlertView: Em.View.extend({
- content: null,
- tagName: 'li',
- tooltip: function () {
- return Ember.Object.create({
- trigger: 'hover',
- content: this.get('content.timeSinceAlertDetails'),
- placement: "bottom"
- });
- }.property('content')
- })
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_app_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_app_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_app_view.js
deleted file mode 100644
index a394493..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_app_view.js
+++ /dev/null
@@ -1,30 +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.
- */
-
-App.SliderAppView = Ember.View.extend({
-
- didInsertElement: function() {
- // Breadcrumbs should be on the one line with Slider Title
- // but title and breadcrumbs are in different templates
- $('.apps-breadcrumbs').css({
- 'margin-top': -28,
- 'margin-left': $('.slider-app-title').width() + 10
- });
- }
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/app/views/slider_apps_view.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/views/slider_apps_view.js b/contrib/views/slider/src/main/resources/ui/app/views/slider_apps_view.js
deleted file mode 100644
index 22f8067..0000000
--- a/contrib/views/slider/src/main/resources/ui/app/views/slider_apps_view.js
+++ /dev/null
@@ -1,175 +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.
- */
-var filters = require('views/common/filter_view');
-var sort = require('views/common/sort_view');
-
-App.SliderAppsView = App.TableView.extend({
-
- statusList: [
- "All Status",
- App.SliderApp.Status.accepted,
- App.SliderApp.Status.failed,
- App.SliderApp.Status.finished,
- App.SliderApp.Status.killed,
- App.SliderApp.Status.new,
- App.SliderApp.Status.new_saving,
- App.SliderApp.Status.running,
- App.SliderApp.Status.submitted,
- App.SliderApp.Status.stopped,
- ],
-
- content: function () {
- return this.get('controller.model');
- }.property('controller.model.length'),
-
- didInsertElement: function () {
- this.set('filteredContent',this.get('content'));
- },
-
- filteredContentInfo: function () {
- return Em.I18n.t('sliderApps.filters.info').format(this.get('filteredContent.length'), this.get('content.length'));
- }.property('content.length', 'filteredContent.length'),
-
- sortView: sort.wrapperView,
- nameSort: sort.fieldView.extend({
- column: 0,
- name:'name',
- displayName: "Name"
- }),
-
- statusSort: sort.fieldView.extend({
- column: 1,
- name:'status',
- displayName: "Status"
- }),
-
- typeSort: sort.fieldView.extend({
- column: 2,
- name:'appType',
- displayName: "Type"
- }),
-
- userSort: sort.fieldView.extend({
- column: 3,
- name:'user',
- displayName: "User"
- }),
-
- startSort: sort.fieldView.extend({
- column: 4,
- name:'started',
- displayName: "Start Time",
- type: "number"
- }),
-
- endSort: sort.fieldView.extend({
- column: 5,
- name:'ended',
- displayName: "End Time",
- type: "number"
- }),
-
- SliderView: Em.View.extend({
- content: null,
- tagName: 'tr',
- popover: function(){
- var template = this.createChildView(App.SliderTooltip, {
- content: this.get('content')
- });
- return Ember.Object.create({
- trigger: 'hover',
- title: this.get('content.data.name'),
- template: template.renderToBuffer().string(),
- placement: "right"
- });
- }.property('content')
- }),
-
- /**
- * Filter view for name column
- * Based on <code>filters</code> library
- */
- nameFilterView: filters.createTextView({
- column: 0,
- fieldType: 'filter-input-width',
- onChangeValue: function(){
- this.get('parentView').updateFilter(this.get('column'), this.get('value'), 'string');
- }
- }),
-
- statusFilterView: filters.createSelectView({
- column: 1,
- defaultValue: "All Status",
- fieldType: 'filter-input-width',
- content: function() {
- return this.get('parentView.statusList');
- }.property('parentView.statusList'),
- onChangeValue: function(){
- this.get('parentView').updateFilter(this.get('column'), this.get('value') == "STOPPED" ? "FROZEN" : this.get('value'), 'string', this.get('defaultValue'));
- },
- emptyValue: 'All Status'
- }),
-
- typeFilterView: filters.createTextView({
- column: 2,
- fieldType: 'filter-input-width',
- onChangeValue: function(){
- this.get('parentView').updateFilter(this.get('column'), this.get('value'), 'string');
- }
- }),
-
- userFilterView: filters.createTextView({
- column: 3,
- fieldType: 'filter-input-width',
- onChangeValue: function(){
- this.get('parentView').updateFilter(this.get('column'), this.get('value'), 'string');
- }
- }),
-
- startFilterView: filters.createSelectView({
- column: 4,
- defaultValue: "All Dates",
- fieldType: 'filter-input-width',
- content: ['All Dates', 'Past 1 hour', 'Past 1 Day', 'Past 2 Days', 'Past 7 Days', 'Past 14 Days', 'Past 30 Days'],
- onChangeValue: function(){
- this.get('parentView').updateFilter(this.get('column'), this.get('value'), 'date', this.get('defaultValue'));
- },
- type: 'number',
- emptyValue: 'All Dates'
- }),
-
- /**
- * associations between host property and column index
- * @type {Array}
- */
- colPropAssoc: function(){
- var associations = [];
- associations[0] = 'name';
- associations[1] = 'status';
- associations[2] = 'appType';
- associations[3] = 'user';
- associations[4] = 'started';
- associations[5] = 'ended';
- return associations;
- }.property()
-
-});
-
-App.SliderTooltip = Em.View.extend({
- templateName: "common/app_tooltip"
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/config.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/config.js b/contrib/views/slider/src/main/resources/ui/config.js
deleted file mode 100755
index dadbcbf..0000000
--- a/contrib/views/slider/src/main/resources/ui/config.js
+++ /dev/null
@@ -1,123 +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.
- */
-
-exports.config = {
- paths: {
- watched: ['app', 'envs', 'vendor', 'test']
- },
- fileListInterval: 500,
- files: {
- javascripts: {
- joinTo: {
- 'javascripts/app.js': /^(app|envs\/development)/,
- 'javascripts/vendor.js': /^(vendor\/scripts\/(common|development)|vendor\\scripts\\(common|development))/,
- 'javascripts/test.js': /^test(\/|\\)(?!vendor)/
- },
- order: {
- before: [
- 'vendor/scripts/common/d3.v2.js',
- 'vendor/scripts/common/tv4.js',
- 'vendor/scripts/common/cubism.v1.js',
- 'vendor/scripts/common/rickshaw.js',
- 'vendor/scripts/common/console-polyfill.js',
- 'vendor/scripts/common/jquery.js',
- 'vendor/scripts/common/jquery.ui.core.js',
- 'vendor/scripts/common/jquery.ui.widget.js',
- 'vendor/scripts/common/jquery.ui.mouse.js',
- 'vendor/scripts/common/jquery.ui.sortable.js',
- 'vendor/scripts/common/jquery.timeago.js',
- 'vendor/scripts/common/handlebars.js',
- 'vendor/scripts/development/ember.js',
- 'vendor/scripts/production/ember-data.js',
- 'vendor/scripts/common/bs-core.min.js',
- 'vendor/scripts/common/bs-nav.min.js',
- 'vendor/scripts/common/bs-basic.min.js',
- 'vendor/scripts/common/bs-button.min.js',
- 'vendor/scripts/common/bs-modal.min.js',
- 'vendor/scripts/common/bs-popover.min.js',
- 'vendor/scripts/common/ember-i18n-1.4.1.js',
- 'vendor/scripts/common/bootstrap.js',
- 'vendor/scripts/common/moment.min.js'
- ]
- }
- },
- stylesheets: {
- joinTo: {
- 'stylesheets/app.css': /^(app|vendor)/
- },
- order: {
- before: [
- 'vendor/styles/cubism.css',
- 'vendor/styles/rickshaw.css',
- 'vendor/styles/bootstrap.css',
- 'vendor/styles/font-awesome.css',
- 'vendor/styles/font-awesome-ie7.css'
- ]
- }
- },
- templates: {
- precompile: true,
- root: 'templates',
- joinTo: {
- 'javascripts/app.js': /^app/
- }
- }
- },
- overrides: {
-
- // Production Settings
- production: {
- files: {
- javascripts: {
- joinTo: {
- 'javascripts/app.js': /^(app|envs\/production)/,
- 'javascripts/vendor.js': /^(vendor\/scripts\/(common|production)|vendor\\scripts\\(common|production))/
- },
- order: {
- before: [
- 'vendor/scripts/common/d3.v2.js',
- 'vendor/scripts/common/cubism.v1.js',
- 'vendor/scripts/common/rickshaw.js',
- 'vendor/scripts/common/console-polyfill.js',
- 'vendor/scripts/common/jquery.js',
- 'vendor/scripts/common/handlebars.js',
- 'vendor/scripts/production/ember.js',
- 'vendor/scripts/production/ember-data.js',
- 'vendor/scripts/common/bs-core.min.js',
- 'vendor/scripts/common/bs-nav.min.js',
- 'vendor/scripts/common/bs-basic.min.js',
- 'vendor/scripts/common/bs-button.min.js',
- 'vendor/scripts/common/bs-modal.min.js',
- 'vendor/scripts/common/bs-popover.min.js',
- 'vendor/scripts/common/ember-i18n-1.4.1.js',
- 'vendor/scripts/common/bootstrap.js',
- 'vendor/scripts/common/moment.min.js'
- ]
- }
- }
- },
- optimize: true,
- sourceMaps: false,
- plugins: {
- autoReload: {
- enabled: false
- }
- }
- }
- }
-};
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/envs/development/env.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/envs/development/env.js b/contrib/views/slider/src/main/resources/ui/envs/development/env.js
deleted file mode 100644
index 0af97c1..0000000
--- a/contrib/views/slider/src/main/resources/ui/envs/development/env.js
+++ /dev/null
@@ -1,21 +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.
- */
-
-'use strict';
-
-module.exports = 'development';
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/envs/production/env.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/envs/production/env.js b/contrib/views/slider/src/main/resources/ui/envs/production/env.js
deleted file mode 100644
index addbc80..0000000
--- a/contrib/views/slider/src/main/resources/ui/envs/production/env.js
+++ /dev/null
@@ -1,21 +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.
- */
-
-'use strict';
-
-module.exports = 'production';
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/arraycontroller.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/arraycontroller.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/arraycontroller.js.hbs
deleted file mode 100644
index 4934e09..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/arraycontroller.js.hbs
+++ /dev/null
@@ -1,23 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{pluralName}}{{/camelize}}Controller = Ember.ArrayController.extend({
- content:[]
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/generator.json b/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/generator.json
deleted file mode 100755
index 1f13804..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/arraycontroller/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "arraycontroller",
- "files": [
- {
- "from": "arraycontroller.js.hbs",
- "to": "app/controllers/{{#camelize}}{{pluralName}}{{/camelize}}Controller.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/component/component.hbs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/component/component.hbs.hbs b/contrib/views/slider/src/main/resources/ui/generators/component/component.hbs.hbs
deleted file mode 100755
index e1667a5..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/component/component.hbs.hbs
+++ /dev/null
@@ -1,19 +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.
-}}
-
-<p>{{#camelize}}{{name}}{{/camelize}}Component</p>
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/component/component.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/component/component.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/component/component.js.hbs
deleted file mode 100755
index 14903e8..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/component/component.js.hbs
+++ /dev/null
@@ -1,23 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{name}}{{/camelize}}Component = Ember.Component.extend({
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/component/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/component/generator.json b/contrib/views/slider/src/main/resources/ui/generators/component/generator.json
deleted file mode 100755
index a9f87b5..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/component/generator.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "component",
- "files": [
- {
- "from": "component.js.hbs",
- "to": "app/components/{{#camelize}}{{name}}{{/camelize}}Component.js"
- },
- {
- "from": "component.hbs.hbs",
- "to": "app/templates/components/{{name}}.hbs"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/controller/controller.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/controller/controller.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/controller/controller.js.hbs
deleted file mode 100755
index 83d0f9e..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/controller/controller.js.hbs
+++ /dev/null
@@ -1,23 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{name}}{{/camelize}}Controller = Ember.ObjectController.extend({
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/controller/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/controller/generator.json b/contrib/views/slider/src/main/resources/ui/generators/controller/generator.json
deleted file mode 100755
index 9f6a1fd..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/controller/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "controller",
- "files": [
- {
- "from": "controller.js.hbs",
- "to": "app/controllers/{{#camelize}}{{name}}{{/camelize}}Controller.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/helper/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/helper/generator.json b/contrib/views/slider/src/main/resources/ui/generators/helper/generator.json
deleted file mode 100755
index 181fc9f..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/helper/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "helper",
- "files": [
- {
- "from": "helper.js.hbs",
- "to": "app/helpers/{{name}}.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/helper/helper.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/helper/helper.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/helper/helper.js.hbs
deleted file mode 100755
index c010966..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/helper/helper.js.hbs
+++ /dev/null
@@ -1,24 +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.
-}}
-
-'use strict';
-
-module.exports = Ember.Handlebars.helper('{{name}}', function(value, options) {
-
-});
-
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/model/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/model/generator.json b/contrib/views/slider/src/main/resources/ui/generators/model/generator.json
deleted file mode 100755
index 268ff5b..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/model/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "model",
- "files": [
- {
- "from": "model.js.hbs",
- "to": "app/models/{{#camelize}}{{name}}{{/camelize}}.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/model/model.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/model/model.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/model/model.js.hbs
deleted file mode 100755
index 1a02716..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/model/model.js.hbs
+++ /dev/null
@@ -1,24 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{name}}{{/camelize}} = DS.Model.extend({
-
-});
-
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/route/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/route/generator.json b/contrib/views/slider/src/main/resources/ui/generators/route/generator.json
deleted file mode 100755
index aa6d3ff..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/route/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "route",
- "files": [
- {
- "from": "route.js.hbs",
- "to": "app/routes/{{#camelize}}{{name}}{{/camelize}}Route.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/route/route.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/route/route.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/route/route.js.hbs
deleted file mode 100755
index b43d238..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/route/route.js.hbs
+++ /dev/null
@@ -1,25 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{name}}{{/camelize}}Route = Ember.Route.extend({
- model: function() {
-
- }
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/template/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/template/generator.json b/contrib/views/slider/src/main/resources/ui/generators/template/generator.json
deleted file mode 100755
index 4a8cf02..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/template/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "template",
- "files": [
- {
- "from": "template.hbs.hbs",
- "to": "app/templates/{{name}}.hbs"
- }
- ],
- "dependencies": []
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/template/template.hbs.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/template/template.hbs.hbs b/contrib/views/slider/src/main/resources/ui/generators/template/template.hbs.hbs
deleted file mode 100755
index 2cd42e4..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/template/template.hbs.hbs
+++ /dev/null
@@ -1,19 +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.
-}}
-
-<p>{{name}} Template</p>
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/view/generator.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/view/generator.json b/contrib/views/slider/src/main/resources/ui/generators/view/generator.json
deleted file mode 100755
index 88267ff..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/view/generator.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "view",
- "files": [
- {
- "from": "view.js.hbs",
- "to": "app/views/{{#camelize}}{{name}}{{/camelize}}View.js"
- }
- ],
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/generators/view/view.js.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/generators/view/view.js.hbs b/contrib/views/slider/src/main/resources/ui/generators/view/view.js.hbs
deleted file mode 100755
index 4c43ecd..0000000
--- a/contrib/views/slider/src/main/resources/ui/generators/view/view.js.hbs
+++ /dev/null
@@ -1,23 +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.
-}}
-
-'use strict';
-
-module.exports = App.{{#camelize}}{{name}}{{/camelize}}View = Ember.View.extend({
- templateName: '{{name}}'
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/karma.conf.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/karma.conf.js b/contrib/views/slider/src/main/resources/ui/karma.conf.js
deleted file mode 100755
index c323a29..0000000
--- a/contrib/views/slider/src/main/resources/ui/karma.conf.js
+++ /dev/null
@@ -1,94 +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.
- */
-
-'use strict';
-
-// Karma configuration
-// Generated on Fri Sep 06 2013 16:44:32 GMT-0400 (AST)
-
-module.exports = function(config) {
- config.set({
-
- // base path, that will be used to resolve files and exclude
- basePath: '',
-
-
- // frameworks to use
- frameworks: ['qunit'],
-
-
- // list of files / patterns to load in the browser
- files: [
- 'public/javascripts/vendor.js',
- 'public/javascripts/app.js',
- 'test/helpers.js',
- 'test/**/*_test.js'
- ],
-
-
- // list of files to exclude
- exclude: [
-
- ],
-
-
- // test results reporter to use
- // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
- reporters: ['progress'],
-
-
- // web server port
- port: 9876,
-
-
- // enable / disable colors in the output (reporters and logs)
- colors: true,
-
-
- // level of logging
- // possible values:
- // config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN ||
- // config.LOG_INFO || config.LOG_DEBUG
- logLevel: config.LOG_INFO,
-
-
- // enable / disable watching file and executing
- // tests whenever any file changes
- autoWatch: true,
-
-
- // Start these browsers, currently available:
- // - Chrome
- // - ChromeCanary
- // - Firefox
- // - Opera
- // - Safari (only Mac)
- // - PhantomJS
- // - IE (only Windows)
- browsers: ['PhantomJS'],
-
-
- // If browser does not capture in given timeout [ms], kill it
- captureTimeout: 60000,
-
-
- // Continuous Integration mode
- // if true, it capture browsers, run tests and exit
- singleRun: false
- });
-};
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/package.json
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/package.json b/contrib/views/slider/src/main/resources/ui/package.json
deleted file mode 100755
index 7658ae7..0000000
--- a/contrib/views/slider/src/main/resources/ui/package.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "author": "Giovanni Collazo",
- "name": "brunch-with-ember-reloaded",
- "description": "A new and up-to-date Brunch skeleton for developing Ember applications",
- "version": "1.2.0",
- "homepage": "https://github.com/gcollazo/brunch-with-ember-reloaded",
- "repository": {
- "type": "git",
- "url": "git://github.com/gcollazo/brunch-with-ember-reloaded.git"
- },
- "engines": {
- "node": "~0.6.10 || 0.8 || 0.9"
- },
- "scripts": {
- "test": "phantomjs runner.js public/tests.html",
- "start": "brunch watch --server",
- "build": "brunch build",
- "build:production": "brunch build --production",
- "update:ember": "node setup.js update:ember",
- "update:skeleton": "node setup.js update:skeleton"
- },
- "dependencies": {
- "clean-css-brunch": ">= 1.0 < 1.8",
- "coffee-script-brunch": ">= 1.0 < 1.8",
- "css-brunch": ">= 1.0 < 1.8",
- "ember-handlebars-brunch": "git://github.com/fuseelements/ember-handlebars-brunch#fix/ember-1.3.0",
- "handlebars": "^4.0.10",
- "javascript-brunch": ">= 1.0 < 1.8",
- "stylus-brunch": ">= 1.0 < 1.8",
- "uglify-js-brunch": ">= 1.0 < 1.8"
- },
- "devDependencies": {
- "karma": "*",
- "karma-phantomjs-launcher": "~0.1.2",
- "karma-qunit": "*",
- "phantomjs": "^1.9.2"
- }
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/runner.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/runner.js b/contrib/views/slider/src/main/resources/ui/runner.js
deleted file mode 100644
index 4fd7894..0000000
--- a/contrib/views/slider/src/main/resources/ui/runner.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- * PhantomJS Runner QUnit Plugin (List Tests) 1.2.0
- *
- * PhantomJS binaries: http://phantomjs.org/download.html
- * Requires PhantomJS 1.6+ (1.7+ recommended)
- *
- * Run with:
- * phantomjs runner-list.js [url-of-your-qunit-testsuite]
- *
- * e.g.
- * phantomjs runner-list.js http://localhost/qunit/test/index.html
- */
-
-/*global phantom:false, require:false, console:false, window:false, QUnit:false */
-
-(function() {
- 'use strict';
-
- var url, page, timeout,
- args = require('system').args;
-
- // arg[0]: scriptName, args[1...]: arguments
- if (args.length < 2 || args.length > 3) {
- console.error('Usage:\n phantomjs runner-list.js [url-of-your-qunit-testsuite] [timeout-in-seconds]');
- phantom.exit(1);
- }
-
- url = args[1];
- page = require('webpage').create();
- if (args[2] !== undefined) {
- timeout = parseInt(args[2], 10);
- }
-
- // Route `console.log()` calls from within the Page context to the main Phantom context (i.e. current `this`)
- page.onConsoleMessage = function(msg) {
- console.log(msg);
- };
-
- page.onInitialized = function() {
- page.evaluate(addLogging);
- };
-
- page.onCallback = function(message) {
- var result,
- failed;
-
- if (message) {
- if (message.name === 'QUnit.done') {
- result = message.data;
- failed = !result || !result.total || result.failed;
-
- if (!result.total) {
- console.error('No tests were executed. Are you loading tests asynchronously?');
- }
-
- phantom.exit(failed ? 1 : 0);
- }
- }
- };
-
- page.open(url, function(status) {
- if (status !== 'success') {
- console.error('Unable to access network: ' + status);
- phantom.exit(1);
- } else {
- // Cannot do this verification with the 'DOMContentLoaded' handler because it
- // will be too late to attach it if a page does not have any script tags.
- var qunitMissing = page.evaluate(function() { return (typeof QUnit === 'undefined' || !QUnit); });
- if (qunitMissing) {
- console.error('The `QUnit` object is not present on this page.');
- phantom.exit(1);
- }
-
- // Set a timeout on the test running, otherwise tests with async problems will hang forever
- if (typeof timeout === 'number') {
- setTimeout(function() {
- console.error('The specified timeout of ' + timeout + ' seconds has expired. Aborting...');
- phantom.exit(1);
- }, timeout * 1000);
- }
-
- // Do nothing... the callback mechanism will handle everything!
- }
- });
-
- function addLogging() {
- window.document.addEventListener('DOMContentLoaded', function() {
- var currentTestAssertions = [];
-
- QUnit.log(function(details) {
- var response;
-
- console.log((details.result ? "? ": "? ") + details.message);
-
- if (!details.result) {
- response = details.message || '';
-
- if (typeof details.expected !== 'undefined') {
- if (response) {
- response += ', ';
- }
-
- response += 'expected: ' + details.expected + ', but was: ' + details.actual;
- }
-
- if (details.source) {
- response += '\n' + details.source;
- }
-
- console.log(' Failed assertion: ' + response);
- }
- });
-
- QUnit.moduleStart(function( details ) {
- if (details.name) {
- console.log('\n' + details.name);
- }
- });
-
- QUnit.testStart(function(result) {
- console.log('\n' + result.name);
- });
-
- QUnit.done(function(result) {
- console.log('\n' + 'Took ' + result.runtime + 'ms to run ' + result.total + ' tests. ' + result.passed + ' passed, ' + result.failed + ' failed.');
-
- if (typeof window.callPhantom === 'function') {
- window.callPhantom({
- 'name': 'QUnit.done',
- 'data': result
- });
- }
- });
- }, false);
- }
-})();
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/setup.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/setup.js b/contrib/views/slider/src/main/resources/ui/setup.js
deleted file mode 100644
index 5287233..0000000
--- a/contrib/views/slider/src/main/resources/ui/setup.js
+++ /dev/null
@@ -1,78 +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.
- */
-
-'use strict';
-
-var command = process.argv[2],
- exec = require('child_process').exec;
-
-
-var skeletonURL = 'https://codeload.github.com/gcollazo/brunch-with-ember-reloaded/zip/master';
-var fileSources = [
- {
- src: 'http://builds.emberjs.com/release/ember.js',
- dest: 'vendor/scripts/development/ember.js'
- },
- {
- src: 'http://builds.emberjs.com.s3.amazonaws.com/ember-data-latest.js',
- dest: 'vendor/scripts/development/ember-data.js'
- },
- {
- src: 'http://builds.emberjs.com/release/ember.prod.js',
- dest: 'vendor/scripts/production/ember.js'
- },
- {
- src: 'http://builds.emberjs.com.s3.amazonaws.com/ember-data-latest.prod.js',
- dest: 'vendor/scripts/production/ember-data.js'
- }
-];
-
-
-switch (command) {
- case 'update:ember':
- console.log('-> Downloading files...');
- fileSources.forEach(function(file) {
- exec('curl ' + file.src + ' > ' + file.dest);
- });
- break;
-
- case 'update:skeleton':
- exec('curl ' + skeletonURL + '> master.zip', function() {
- exec('unzip master.zip', function() {
- exec('cat brunch-with-ember-reloaded-master/config.js > config.js');
- exec('cat brunch-with-ember-reloaded-master/karma.conf.js > karma.conf.js');
- exec('cat brunch-with-ember-reloaded-master/package.json > package.json');
- exec('cat brunch-with-ember-reloaded-master/README.md > README.md');
- exec('cat brunch-with-ember-reloaded-master/setup.js > setup.js');
- exec('rm -rf generators', function() {
- exec('mv brunch-with-ember-reloaded-master/generators/ generators/', function() {
- exec('rm -rf brunch-with-ember-reloaded-master');
- exec('rm -r master.zip');
- });
- });
- });
- });
- break;
-
- default:
- console.log();
- console.log('Usage:');
- console.log('\tnpm run update:ember Updates ember.js an ember-data.js');
- console.log('\tnpm run update:skeleton Updates all skeleton files');
- console.log();
-}
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/test/index.md
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/test/index.md b/contrib/views/slider/src/main/resources/ui/test/index.md
deleted file mode 100644
index 01f4910..0000000
--- a/contrib/views/slider/src/main/resources/ui/test/index.md
+++ /dev/null
@@ -1,28 +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](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.
--->
-
-# Slider UI Unit Tests
-
-Go to slider-ui folder - `/contrib/views/slider/src/main/resources/ui/`
-Execute:
-
-1. `npm i`
-2. `brunch w -s`
-
-Open in browser `http://localhost:3333/tests.html`
-
-OR
-
-Execute in console `node_modules/phantomjs/bin/phantomjs runner.js public/tests.html`
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/test/integration/pages/index_test.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/test/integration/pages/index_test.js b/contrib/views/slider/src/main/resources/ui/test/integration/pages/index_test.js
deleted file mode 100644
index 641a856..0000000
--- a/contrib/views/slider/src/main/resources/ui/test/integration/pages/index_test.js
+++ /dev/null
@@ -1,127 +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.
- */
-
-QUnit.module('integration/pages - index', {
-
- setup: function () {
- sinon.config.useFakeTimers = false;
- App.set('viewEnabled', true);
- App.__container__.lookup('controller:Slider').getViewDisplayParametersSuccessCallback({
- "ViewInstanceInfo": {
- "context_path": "/views/SLIDER/1.0.0/s1",
- "description": "DESCRIPTION",
- "label": "SLIDER LABEL",
- "properties": {
- "slider.user": "admin"
- }
- }
- });
- Ember.run(App, App.advanceReadiness);
- },
-
- teardown: function () {
- App.reset();
- }
-
-});
-
-test('route', function () {
-
- visit('/');
- andThen(function () {
- equal(currentRouteName(), 'slider_apps.index', 'route is valid');
- equal(currentPath(), 'slider_apps.index', 'path is valid');
- equal(currentURL(), '/', 'url is valid');
- });
-
-});
-
-test('sliderConfigs', function () {
-
- visit('/');
- // configs count may be changed by adding new slider-configs
- equal(App.SliderApp.store.all('sliderConfig').content.length, 4, 'slider configs should be set');
-
-});
-
-test('Create-App button', function () {
-
- visit('/');
- click('.create-app a');
-
- andThen(function () {
- equal(currentRouteName(), 'createAppWizard.step1', 'route is valid');
- equal(currentPath(), 'slider_apps.createAppWizard.step1', 'path is valid');
- equal(currentURL(), '/createAppWizard/step1', 'url is valid');
- });
-
-});
-
-test('Create-App button visible/hidden', function () {
-
- Em.run(function () {
- App.__container__.lookup('controller:application').set('hasConfigErrors', true);
- });
-
- visit('/');
- equal(find('.create-app').length, 0, 'Create App button should be hidden if some config errors');
-
-});
-
-test('Slider Title', function () {
-
- visit('/');
- equal(find('.slider-app-title').text(), 'SLIDER LABEL', 'App has valid Slider Title');
-
-});
-
-test('Slider Title Popover', function () {
-
- visit('/');
- triggerEvent('#slider-title', 'mouseenter'); // not hover!
- andThen(function () {
- equal(find('.popover').length, 1, 'popover exists');
- equal(find('.popover-title').text(), 'SLIDER LABEL', 'popover has valid title');
- equal(find('.slider-description').text(), 'DESCRIPTION', 'popover has slider description');
- });
-
-});
-
-test('Clear Filters', function () {
-
- visit('/');
- fillIn('#filter-row input:eq(0)', 'Some val');
- find('#filter-row select:eq(0) :nth-child(1)').attr('selected', 'selected');
- fillIn('#filter-row input:eq(1)', 'Some val');
- fillIn('#filter-row input:eq(2)', 'Some val');
- find('#filter-row select:eq(1) :nth-child(1)').attr('selected', 'selected');
-
- andThen(function () {
- click('.clearFiltersLink');
-
- andThen(function () {
- equal(find('#filter-row input:eq(0)').val(), '');
- equal(find('#filter-row select:eq(0)').val(), 'All Status');
- equal(find('#filter-row input:eq(1)').val(), '');
- equal(find('#filter-row input:eq(2)').val(), '');
- equal(find('#filter-row select:eq(1)').val(), 'All Dates');
-
- });
- });
-
-});
http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8deeba/contrib/views/slider/src/main/resources/ui/test/integration/pages/slider_errors_test.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/test/integration/pages/slider_errors_test.js b/contrib/views/slider/src/main/resources/ui/test/integration/pages/slider_errors_test.js
deleted file mode 100644
index 6ccc89c..0000000
--- a/contrib/views/slider/src/main/resources/ui/test/integration/pages/slider_errors_test.js
+++ /dev/null
@@ -1,63 +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.
- */
-
-QUnit.module('integration/pages - index', {
-
- setup: function () {
- sinon.config.useFakeTimers = false;
- Ember.run(App, App.advanceReadiness);
- Em.run(function () {
- var p = {
- validations: [
- {message: 'Some mythical error'},
- {message: 'Error with DNA'}
- ],
- parameters: {}
- };
- App.__container__.lookup('controller:Slider').getParametersFromViewPropertiesSuccessCallback(p);
- });
- },
-
- teardown: function () {
- App.reset();
- }
-
-});
-
-test('Slider has validation errors', function () {
-
- visit('/');
- equal(find('.error-message').length, 2, 'Error-messages exist on the page');
- ok(find('.create-app a').attr('disabled'), 'Create App button is disabled');
-
-});
-
-test('Slider has no validation errors', function () {
-
- Em.run(function () {
- App.__container__.lookup('controller:Slider').getParametersFromViewPropertiesSuccessCallback({
- validations: [],
- parameters: {}
- });
- });
-
- visit('/');
- equal(find('.error-message').length, 0, 'No error-messages on the page');
- ok(!find('.create-app a').attr('disabled'), 'Create App button is enabled');
-
-});
\ No newline at end of file