http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/attempt-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/attempt-am.js b/tez-ui2/src/main/webapp/app/serializers/attempt-am.js deleted file mode 100644 index 277a0d5..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/attempt-am.js +++ /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. - */ - -import AMSerializer from './am'; - -export default AMSerializer.extend({ - payloadNamespace: "attempts" -});
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/attempt.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/attempt.js b/tez-ui2/src/main/webapp/app/serializers/attempt.js deleted file mode 100644 index 09b82e6..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/attempt.js +++ /dev/null @@ -1,44 +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. - */ - -import Ember from 'ember'; - -import TimelineSerializer from './timeline'; - -function createLogURL(source) { - var logURL = Ember.get(source, 'otherinfo.inProgressLogsURL'), - attemptID = Ember.get(source, 'entity'), - yarnProtocol = this.get('env.app.yarnProtocol'); - - if(logURL) { - return `${yarnProtocol}://${logURL}/syslog_${attemptID}`; - } -} - -export default TimelineSerializer.extend({ - maps: { - taskID: 'primaryfilters.TEZ_TASK_ID.0', - vertexID: 'primaryfilters.TEZ_VERTEX_ID.0', - dagID: 'primaryfilters.TEZ_DAG_ID.0', - - containerID: 'otherinfo.containerId', - nodeID: 'otherinfo.nodeId', - - logURL: createLogURL - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/dag-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/dag-am.js b/tez-ui2/src/main/webapp/app/serializers/dag-am.js deleted file mode 100644 index 510d6f1..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/dag-am.js +++ /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 - * - * 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. - */ - -import AMSerializer from './am'; - -export default AMSerializer.extend({ - extractSinglePayload: function (rawPayload) { - return rawPayload.dag; - }, - extractArrayPayload: function(rawPayload) { - return rawPayload.dag; - }, -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/dag.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/dag.js b/tez-ui2/src/main/webapp/app/serializers/dag.js deleted file mode 100644 index b5cc42c..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/dag.js +++ /dev/null @@ -1,151 +0,0 @@ -/*global more*/ -/** - * 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. - */ - -import Ember from 'ember'; - -import TimelineSerializer from './timeline'; - -var MoreObject = more.Object; - -function getStatus(source) { - var status = Ember.get(source, 'otherinfo.status') || Ember.get(source, 'primaryfilters.status.0'), - event = source.events; - - if(!status && event) { - if(event.findBy('eventtype', 'DAG_STARTED')) { - status = 'RUNNING'; - } - } - - return status; -} - -function getStartTime(source) { - var time = Ember.get(source, 'otherinfo.startTime'), - event = source.events; - - if(!time && event) { - event = event.findBy('eventtype', 'DAG_STARTED'); - if(event) { - time = event.timestamp; - } - } - - return time; -} - -function getEndTime(source) { - var time = Ember.get(source, 'otherinfo.endTime'), - event = source.events; - - if(!time && event) { - event = event.findBy('eventtype', 'DAG_FINISHED'); - if(event) { - time = event.timestamp; - } - } - - return time; -} - -function getContainerLogs(source) { - var containerLogs = [], - otherinfo = Ember.get(source, 'otherinfo'); - - if(!otherinfo) { - return undefined; - } - - for (var key in otherinfo) { - if (key.indexOf('inProgressLogsURL_') === 0) { - let logs = Ember.get(source, 'otherinfo.' + key); - if (logs.indexOf('http') !== 0) { - logs = 'http://' + logs; - } - let attemptID = key.substring(18); - containerLogs.push({ - text : attemptID, - href: logs - }); - } - } - - return containerLogs; -} - -function getIdNameMap(source) { - var nameIdMap = Ember.get(source, 'otherinfo.vertexNameIdMapping'), - idNameMap = {}; - - if(nameIdMap) { - MoreObject.forEach(nameIdMap, function (name, id) { - idNameMap[id] = name; - }); - } - - return idNameMap; -} - -export default TimelineSerializer.extend({ - maps: { - name: 'primaryfilters.dagName.0', - - submitter: 'primaryfilters.user.0', - - atsStatus: getStatus, - // progress - - startTime: getStartTime, - endTime: getEndTime, - // duration - - vertices: 'otherinfo.dagPlan.vertices', - edges: 'otherinfo.dagPlan.edges', - vertexGroups: 'otherinfo.dagPlan.vertexGroups', - - // appID - domain: 'domain', - // queue - containerLogs: getContainerLogs, - - vertexIdNameMap: getIdNameMap, - - callerID: 'primaryfilters.callerId.0', - callerType: 'callerType', - callerInfo: 'callerInfo', - }, - - extractAttributes: function (modelClass, resourceHash) { - var data = resourceHash.data, - dagInfo = Ember.get(resourceHash, "data.otherinfo.dagPlan.dagInfo"); - - if(dagInfo) { - let infoObj = {}; - try{ - infoObj = JSON.parse(dagInfo); - }catch(e){} - - data.callerType = Ember.get(infoObj, "context"); - data.callerInfo = Ember.get(infoObj, "description") || Ember.get(dagInfo, "blob") || dagInfo; - } - - return this._super(modelClass, resourceHash); - }, - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/loader.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/loader.js b/tez-ui2/src/main/webapp/app/serializers/loader.js deleted file mode 100644 index b227d83..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/loader.js +++ /dev/null @@ -1,93 +0,0 @@ -/*global more*/ -/** - * 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. - */ - -import Ember from 'ember'; -import DS from 'ember-data'; - -var MoreObject = more.Object; - -// TODO - Move to more js -function mapObject(hash, map, thisArg) { - var mappedObject = Ember.Object.create(); - MoreObject.forEach(map, function (key, value) { - if(MoreObject.isString(value)) { - mappedObject.set(key, Ember.get(hash, value)); - } - else if (MoreObject.isFunction(value)) { - mappedObject.set(key, value.call(thisArg, hash)); - } - else { - Ember.assert("Unknown mapping value"); - } - }); - return mappedObject; -} - -export default DS.JSONSerializer.extend({ - _isLoader: true, - - mergedProperties: ["maps"], - maps: null, - - extractId: function (modelClass, resourceHash) { - var id = this._super(modelClass, resourceHash.data), - nameSpace = resourceHash.nameSpace; - - if(nameSpace) { - return nameSpace + ":" + id; - } - return id; - }, - extractAttributes: function (modelClass, resourceHash) { - var maps = this.get('maps'), - data = resourceHash.data; - return this._super(modelClass, maps ? mapObject(data, maps, this) : data); - }, - extractRelationships: function (modelClass, resourceHash) { - return this._super(modelClass, resourceHash.data); - }, - - extractSinglePayload: function (payload) { - return payload; - }, - extractArrayPayload: function (payload) { - return payload; - }, - - normalizeSingleResponse: function (store, primaryModelClass, payload, id, requestType) { - payload.data = this.extractSinglePayload(payload.data); - return this._super(store, primaryModelClass, payload, id, requestType); - }, - - normalizeArrayResponse: function (store, primaryModelClass, payload, id, requestType) { - var nameSpace = payload.nameSpace; - - // convert into a _normalizeResponse friendly format - payload = this.extractArrayPayload(payload.data); - Ember.assert("Loader expects an array in return for a query", Array.isArray(payload)); - payload = payload.map(function (item) { - return { - nameSpace: nameSpace, - data: item - }; - }); - - return this._super(store, primaryModelClass, payload, id, requestType); - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/rm.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/rm.js b/tez-ui2/src/main/webapp/app/serializers/rm.js deleted file mode 100644 index fbb91c3..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/rm.js +++ /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 - * - * 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. - */ - -import LoaderSerializer from './loader'; - -export default LoaderSerializer.extend({ - primaryKey: 'id', - - maps: { - entityID: 'id', - status: 'state', - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/task-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/task-am.js b/tez-ui2/src/main/webapp/app/serializers/task-am.js deleted file mode 100644 index 129f5e0..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/task-am.js +++ /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. - */ - -import AMSerializer from './am'; - -export default AMSerializer.extend({ - payloadNamespace: "tasks" -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/task.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/task.js b/tez-ui2/src/main/webapp/app/serializers/task.js deleted file mode 100644 index 3c57be2..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/task.js +++ /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 - * - * 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. - */ - -import TimelineSerializer from './timeline'; - -export default TimelineSerializer.extend({ - maps: { - vertexID: 'primaryfilters.TEZ_VERTEX_ID.0', - dagID: 'primaryfilters.TEZ_DAG_ID.0', - - failedTaskAttempts: 'otherinfo.numFailedTaskAttempts' - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/timeline.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/timeline.js b/tez-ui2/src/main/webapp/app/serializers/timeline.js deleted file mode 100644 index ba5614e..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/timeline.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. - */ - -import Ember from 'ember'; - -import LoaderSerializer from './loader'; - -function getDiagnostics(source) { - var diagnostics = Ember.get(source, 'otherinfo.diagnostics') || ""; - - diagnostics = diagnostics.replace(/\t/g, "  "); - diagnostics = diagnostics.replace(/\[/g, "<div>» "); - diagnostics = diagnostics.replace(/\]/g, "</div>"); - - return diagnostics; -} - -export default LoaderSerializer.extend({ - primaryKey: 'entity', - - extractArrayPayload: function (payload) { - return payload.entities; - }, - - maps: { - entityID: 'entity', - - atsStatus: 'otherinfo.status', - - startTime: 'otherinfo.startTime', - endTime: 'otherinfo.endTime', - - diagnostics: getDiagnostics, - - events: 'events', - - _counterGroups: 'otherinfo.counters.counterGroups' - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/vertex-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/vertex-am.js b/tez-ui2/src/main/webapp/app/serializers/vertex-am.js deleted file mode 100644 index 3cf7a7e..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/vertex-am.js +++ /dev/null @@ -1,36 +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. - */ - -import AMSerializer from './am'; - -export default AMSerializer.extend({ - payloadNamespace: "vertices", - - maps: { - succeededTasks: "succeededTasks", - runningTasks: "runningTasks", - failedTaskAttempts: "failedTaskAttempts", - killedTaskAttempts: "killedTaskAttempts", - - initTime: "initTime", - startTime: "startTime", - endTime: "finishTime", - firstTaskStartTime: "firstTaskStartTime", - lastTaskFinishTime: "lastTaskFinishTime", - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/serializers/vertex.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/serializers/vertex.js b/tez-ui2/src/main/webapp/app/serializers/vertex.js deleted file mode 100644 index a3cb22f..0000000 --- a/tez-ui2/src/main/webapp/app/serializers/vertex.js +++ /dev/null @@ -1,59 +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. - */ - -import Ember from 'ember'; - -import TimelineSerializer from './timeline'; - -function getProcessorClass(source) { - var name = Ember.get(source, 'otherinfo.processorClassName') || ""; - return name.substr(name.lastIndexOf('.') + 1); -} - -export default TimelineSerializer.extend({ - maps: { - name: 'otherinfo.vertexName', - - _initTime: 'otherinfo.initTime', - _startTime: 'otherinfo.startTime', - _endTime: 'otherinfo.endTime', - _firstTaskStartTime: 'otherinfo.stats.firstTaskStartTime', - _lastTaskFinishTime: 'otherinfo.stats.lastTaskFinishTime', - - totalTasks: 'otherinfo.numTasks', - _failedTasks: 'otherinfo.numFailedTasks', - _succeededTasks: 'otherinfo.numSucceededTasks', - _killedTasks: 'otherinfo.numKilledTasks', - - _failedTaskAttempts: 'otherinfo.numFailedTaskAttempts', - _killedTaskAttempts: 'otherinfo.numKilledTaskAttempts', - - minDuration: 'otherinfo.stats.minTaskDuration', - maxDuration: 'otherinfo.stats.maxTaskDuration', - avgDuration: 'otherinfo.stats.avgTaskDuration', - - firstTasksToStart: 'otherinfo.stats.firstTasksToStart', - lastTasksToFinish: 'otherinfo.stats.lastTasksToFinish', - shortestDurationTasks: 'otherinfo.stats.shortestDurationTasks', - longestDurationTasks: 'otherinfo.stats.longestDurationTasks', - - processorClassName: getProcessorClass, - - dagID: 'primaryfilters.TEZ_DAG_ID.0', - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/services/env.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/services/env.js b/tez-ui2/src/main/webapp/app/services/env.js deleted file mode 100644 index 23fff96..0000000 --- a/tez-ui2/src/main/webapp/app/services/env.js +++ /dev/null @@ -1,63 +0,0 @@ -/*global more*/ -/** - * 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. - */ - -import Ember from 'ember'; - -import environment from '../config/environment'; - -var MoreObject = more.Object; - -export default Ember.Service.extend({ - ENV: null, - - init: function () { - this.collateConfigs(); - }, - - collateConfigs: function () { - var collatedENV = { - APP: {} - }, - ENV = window.ENV; - - MoreObject.merge(collatedENV, environment); - - if(ENV) { - MoreObject.merge(collatedENV.APP, ENV); - } - - this.setComputedENVs(collatedENV); - - this.set("ENV", collatedENV); - }, - - setComputedENVs: function (env) { - var navigator = window.navigator; - env.isIE = navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; - - if(!env.APP.yarnProtocol) { - let rmHost = Ember.get(env, "hosts.rm") || ""; - env.APP.yarnProtocol = rmHost.substr(0, rmHost.indexOf("://")) || window.location.protocol.slice(0, -1); - } - }, - - app: Ember.computed("ENV.APP", function () { - return this.get("ENV.APP"); - }) -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/services/hosts.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/services/hosts.js b/tez-ui2/src/main/webapp/app/services/hosts.js deleted file mode 100644 index c9e7d25..0000000 --- a/tez-ui2/src/main/webapp/app/services/hosts.js +++ /dev/null @@ -1,71 +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. - */ - -import Ember from 'ember'; - -export default Ember.Service.extend({ - - env: Ember.inject.service("env"), - - correctProtocol: function (url, localProto) { - var urlProto; - - localProto = localProto || window.location.protocol; - - if(url.match("://")) { - urlProto = url.substr(0, url.indexOf("//")); - } - - if(localProto === "file:") { - urlProto = urlProto || "http:"; - } - else { - urlProto = localProto; - } - - if(url.match("://")) { - url = url.substr(url.indexOf("://") + 3); - } - - return urlProto + "//" + url; - }, - - normalizeURL: function (url) { - url = this.correctProtocol(url); - - // Remove trailing slash - if(url && url.charAt(url.length - 1) === '/') { - url = url.slice(0, -1); - } - return url; - }, - - timeline: Ember.computed(function () { - return this.normalizeURL(this.get("env.app.hosts.timeline")); - }), - - rm: Ember.computed(function () { - return this.normalizeURL(this.get("env.app.hosts.rm")); - }), - - am: Ember.computed(function () { - var url = this.get("env.app.hosts.rmProxy") || this.get("env.app.hosts.rm"); - return this.normalizeURL(url); - }), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/services/loader.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/services/loader.js b/tez-ui2/src/main/webapp/app/services/loader.js deleted file mode 100644 index c72289a..0000000 --- a/tez-ui2/src/main/webapp/app/services/loader.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. - */ - -import Ember from 'ember'; - -export default Ember.Service.extend({ - - nameSpace: '', - store: Ember.inject.service('store'), - cache: null, - - _setOptions: function (options) { - var nameSpace = options.nameSpace; - if(nameSpace) { - // We need to validate only if nameSpace is passed. Else it would be stored in the global space - Ember.assert(`Invalid nameSpace. Please pass a string instead of ${Ember.inspect(nameSpace)}`, typeof nameSpace === 'string'); - this.set("nameSpace", nameSpace); - } - }, - - init: function (options) { - this._super(); - this._setOptions(options || {}); - this.set("cache", Ember.Object.create()); - }, - - checkRequisite: function (type) { - var store = this.get("store"), - adapter = store.adapterFor(type), - serializer = store.serializerFor(type); - - Ember.assert( - `No loader adapter found for type ${type}. Either extend loader and create a custom adapter or extend ApplicationAdapter from loader.`, - adapter && adapter._isLoader - ); - Ember.assert( - `No loader serializer found for type ${type}. Either extend loader and create a custom serializer or extend ApplicationSerializer from loader.`, - serializer && serializer._isLoader - ); - }, - - lookup: function (type, name, options) { - name = Ember.String.dasherize(name); - return this.get("container").lookup(type + ":" + name, options); - }, - - entityFor: function (entityName) { - var entity = this.lookup("entitie", entityName); - if(!entity) { - entity = this.lookup("entitie", "entity", { singleton: false }); - entity.set("name", entityName); - } - return entity; - }, - - getCacheKey: function (type, query, id) { - var parts = [type]; - - if(id) { - parts.push(id); - } - if(query) { - parts.push(JSON.stringify(query)); - } - - return parts.join(":").replace(/\./g, ":"); - }, - - loadNeed: function (record, needName, options, queryParams, urlParams) { - var entity = this.entityFor(record.get("constructor.modelName")); - return entity.loadNeed(this, record, needName, options, queryParams, urlParams); - }, - - normalizeOptions: function (options) { - options = options || {}; - - if(!options.cache){ - options = Ember.$.extend({}, options); - options.cache = options.reload ? Ember.Object.create() : this.get("cache"); - } - - return options; - }, - - queryRecord: function(type, id, options, query, urlParams) { - var entity = this.entityFor(type), - cacheKey = this.getCacheKey(type, query, id), - record; - - this.checkRequisite(type); - - options = this.normalizeOptions(options); - - record = options.cache.get(cacheKey); - if(record) { - return record; - } - - record = entity.queryRecord(this, id, options, query, urlParams); - options.cache.set(cacheKey, record); - - return record; - }, - query: function(type, query, options, urlParams) { - var entity = this.entityFor(type), - cacheKey = this.getCacheKey(type, query), - records; - - this.checkRequisite(type); - - options = this.normalizeOptions(options); - - records = options.cache.get(cacheKey); - if(records) { - return records; - } - - records = entity.query(this, query, options, urlParams); - options.cache.set(cacheKey, records); - - return records; - }, - - unloadAll: function (type, skipID) { - var store = this.get("store"), - loaderNS = this.get("nameSpace"); - - store.peekAll(type).forEach(function (record) { - var id = record.get("id"); - - if(id.substr(0, id.indexOf(":")) === loaderNS && record.get("entityID") !== skipID) { - store.unloadRecord(record); - } - }); - }, -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/services/local-storage.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/services/local-storage.js b/tez-ui2/src/main/webapp/app/services/local-storage.js deleted file mode 100644 index d25ef9d..0000000 --- a/tez-ui2/src/main/webapp/app/services/local-storage.js +++ /dev/null @@ -1,39 +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. - */ - -import Ember from 'ember'; - -export default Ember.Service.extend({ - getStoreKey: function (key) { - return "tez-ui:" + key; - }, - set: function (key, value) { - try { - localStorage.setItem(this.getStoreKey(key) , JSON.stringify(value)); - }catch(e){ - return e; - } - return value; - }, - get: function (key) { - try { - return JSON.parse(localStorage.getItem(this.getStoreKey(key))); - }catch(e){} - return undefined; - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/services/pollster.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/services/pollster.js b/tez-ui2/src/main/webapp/app/services/pollster.js deleted file mode 100644 index 7e41fa1..0000000 --- a/tez-ui2/src/main/webapp/app/services/pollster.js +++ /dev/null @@ -1,110 +0,0 @@ -/*global more*/ -/** - * 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. - */ - -import Ember from 'ember'; - -const STATE_STORAGE_KEY = "pollingIsActive", - DEFAULT_LABEL = "default_label"; - -var MoreObject = more.Object; - -export default Ember.Service.extend({ - localStorage: Ember.inject.service("localStorage"), - env: Ember.inject.service("env"), - - interval: Ember.computed.oneWay("env.app.pollingInterval"), - - active: false, - isPolling: false, - scheduleID: null, - - polls: {}, - pollCount: 0, - - initState: Ember.on("init", function () { - var state = this.get("localStorage").get(STATE_STORAGE_KEY); - - if(state === undefined || state === null) { - state = true; - } - Ember.run.later(this, function () { - this.set("active", state); - }); - }), - stateObserver: Ember.observer("active", function () { - this.get("localStorage").set(STATE_STORAGE_KEY, this.get("active")); - this.callPoll(); - }), - - isReady: Ember.computed("active", "pollCount", function () { - return !!(this.get("active") && this.get("pollCount")); - }), - - callPoll: function () { - var that = this; - this.unSchedulePoll(); - if(this.get("isReady") && !this.get("isPolling")) { - var pollsPromises = []; - - this.set("isPolling", true); - - MoreObject.forEach(this.get("polls"), function (label, pollDef) { - pollsPromises.push(pollDef.callback.call(pollDef.context)); - }); - - Ember.RSVP.allSettled(pollsPromises).finally(function () { - that.set("isPolling", false); - that.schedulePoll(); - }); - } - }, - - schedulePoll: function () { - this.set("scheduleID", setTimeout(this.callPoll.bind(this), this.get("interval"))); - }, - unSchedulePoll: function () { - clearTimeout(this.get("scheduleID")); - }, - - setPoll: function (pollFunction, context, label) { - var polls = this.get("polls"), - pollCount; - - label = label || DEFAULT_LABEL; - polls[label] = { - context: context, - callback: pollFunction, - }; - this.set("pollCount", pollCount = Object.keys(polls).length); - - this.callPoll(); - }, - resetPoll: function (label) { - var polls = this.get("polls"), - pollCount; - - label = label || DEFAULT_LABEL; - delete polls[label]; - this.set("pollCount", pollCount = Object.keys(polls).length); - - if(!pollCount) { - this.unSchedulePoll(); - } - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/app.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/app.less b/tez-ui2/src/main/webapp/app/styles/app.less deleted file mode 100644 index c881553..0000000 --- a/tez-ui2/src/main/webapp/app/styles/app.less +++ /dev/null @@ -1,52 +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. - */ - -@import "bower_components/bootstrap/less/bootstrap"; -@import "bower_components/font-awesome/less/font-awesome"; - -@import "bower_components/snippet-ss/less/force"; -@import "bower_components/snippet-ss/less/effects"; -@import "bower_components/snippet-ss/less/no"; -@import "bower_components/snippet-ss/less/background"; - -// Prerequisites -@import "colors"; -@import "shared"; - -@import "tooltip"; - -// Components -@import "tab-n-refresh"; -@import "dags-page-search"; -@import "table-controls"; -@import "error-bar"; -@import "caller-info"; -@import "date-formatter"; -@import "em-swimlane"; -@import "em-tooltip"; -@import "em-swimlane-vertex-name"; -@import "em-table-status-cell"; - -// Modals -@import "column-selector"; -@import "zip-download-modal"; - -// Pages -@import "page-layout"; -@import "details-page"; -@import "swimlane-page"; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/caller-info.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/caller-info.less b/tez-ui2/src/main/webapp/app/styles/caller-info.less deleted file mode 100644 index 2dc78f1..0000000 --- a/tez-ui2/src/main/webapp/app/styles/caller-info.less +++ /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. - */ - -.caller-info { - .panel-info { - overflow: hidden; - } - .CodeMirror { - height: auto; - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/colors.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/colors.less b/tez-ui2/src/main/webapp/app/styles/colors.less deleted file mode 100644 index af470ff..0000000 --- a/tez-ui2/src/main/webapp/app/styles/colors.less +++ /dev/null @@ -1,44 +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. - */ - -// Colors -@logo-orange: #D27A22; - -@bg-lite: #f5f5f5; -@bg-liter: #f5f5f5; -@bg-red-light: #FFE6E6; - -@bg-grey: #f0f0f0; - -@border-lite: #e5e5e5; -@border-color: #dcdcdc; - -@white: #fff; - -@text-color: rgb(70, 70, 70); -@text-red: red; -@text-light: #BBBBBB; -@text-green: green; - -@top-nav-bg-color-from: #d5d5d5; -@top-nav-bg-color-to: #f0f0f0; - -@success-color: limegreen; -@error-color: crimson; -@warning-color: orange; -@unknown-color: crimson; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/column-selector.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/column-selector.less b/tez-ui2/src/main/webapp/app/styles/column-selector.less deleted file mode 100644 index 747ed48..0000000 --- a/tez-ui2/src/main/webapp/app/styles/column-selector.less +++ /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. - */ - -.column-selector { - .message { - position: absolute; - font-size: 12px; - padding: 1px; - left: 15px; - } - - .highlight { - background-color: @bg-lite; - } - .per-io { - color: @text-green; - } - - .selection-list { - border-bottom: 1px solid @border-color; - - .options { - .force-scrollbar; - - max-height: 450px; - overflow: auto; - } - - .select-option, .filter-option { - border-top: 1px dotted @border-color; - padding: 5px 15px; - - .checkbox { - display: inline-block; - - margin-right: 10px; - float: left; - vertical-align: middle; - } - } - .filter-option { - border: none; - - .form-group { - display: inline-block; - - width: 100%; - margin: 0px; - } - - .select-all { - display: inline-block; - - height: 15px; - margin-top: 3px; - } - } - } -} -.form-actions { - padding: 10px; - text-align: right; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/dags-page-search.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/dags-page-search.less b/tez-ui2/src/main/webapp/app/styles/dags-page-search.less deleted file mode 100644 index d38ce09..0000000 --- a/tez-ui2/src/main/webapp/app/styles/dags-page-search.less +++ /dev/null @@ -1,85 +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. - */ - -.dags-page-search { - text-align: justify; - - position: relative; - - width: 100%; - height: 65px; - - .form-group { - position: absolute; - left: 0px; - right: 35px; - } - - button { - position: absolute; - right: 0px; - top: 22px; - width: 30px; - height: 30px; - padding: 4px; - } - - .search-element { - display: inline-block; - width: 16.66%; - - padding-left: 3px; - - label { - margin-bottom: 2px; - } - - select { - top: -1px; - position: relative; - } - } - - .dag-name { - padding-left: 0px; - } -} - -.all-dags-table { - .pagination-ui, .table-controls { - margin-top: -5px; - margin-bottom: 5px; - } -} - -@media screen and (min-width: 1300px) { - .dags-page-search{ - float: left; - width: 70%; - - .form-group { - margin-bottom: 0px; - } - } - - .all-dags-table { - .pagination-ui, .table-controls { - margin-top: 21px; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/date-formatter.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/date-formatter.less b/tez-ui2/src/main/webapp/app/styles/date-formatter.less deleted file mode 100644 index a817bec..0000000 --- a/tez-ui2/src/main/webapp/app/styles/date-formatter.less +++ /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. - */ - -.date-formatter { - display: inline; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/details-page.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/details-page.less b/tez-ui2/src/main/webapp/app/styles/details-page.less deleted file mode 100644 index 75d5e11..0000000 --- a/tez-ui2/src/main/webapp/app/styles/details-page.less +++ /dev/null @@ -1,58 +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. - */ - -.detail-list { - display: inline-block; - vertical-align: top; - - margin: 0 10px 10px 0; - - table-layout: fixed; - - .progress { - margin-bottom: 0px; - } - - tr { - margin: 0px 0px 0px 15px; - overflow: hidden; - } - - thead { - background-color: @bg-lite; - font-weight: bold; - } - - td { - padding: 0px 20px 0px 0px; - white-space: nowrap; - - .ember-view { - display: inline; - } - } - - td:first-child { - width:120px; - } - - th, td { - border: 1px solid @border-lite; - padding: 5px; - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/em-swimlane-vertex-name.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/em-swimlane-vertex-name.less b/tez-ui2/src/main/webapp/app/styles/em-swimlane-vertex-name.less deleted file mode 100644 index 249a8f1..0000000 --- a/tez-ui2/src/main/webapp/app/styles/em-swimlane-vertex-name.less +++ /dev/null @@ -1,65 +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. - */ - -.em-swimlane-vertex-name { - - cursor: pointer; - - direction: rtl; - text-align: right; - - padding: 5px 5px 0px 0px; - white-space: nowrap; - - height: 30px; - - .name-text { - display: inline-block; - vertical-align: baseline; - - &.ellipsis:after { - content:"\2026"; - margin-right: -4px; - } - } - - .em-table-status-cell { - display: inline-block; - vertical-align: text-top; - - direction: ltr; - - .status { - display: inline-block; - - padding: 2px; - - width: 16px; - height: 16px; - overflow: hidden; - border-radius: 10px; - } - - .status-icon { - display: inline-block; - width: 12px; - margin-top: 2px; - } - } - -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/em-swimlane.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/em-swimlane.less b/tez-ui2/src/main/webapp/app/styles/em-swimlane.less deleted file mode 100644 index 77ea646..0000000 --- a/tez-ui2/src/main/webapp/app/styles/em-swimlane.less +++ /dev/null @@ -1,246 +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. - */ - -@process-height: 30px; -@event-anim-duration: .2s; - -.em-swimlane { - position: relative; - - margin: 5px 0px 40px 0px; - - .process-names { - width: 100px; - border-right: 1px solid @border-color; - - .consolidated-view-label { - margin-top: 20px; - padding-bottom: 10px; - } - } - .process-visuals { - .force-scrollbar; - - position: absolute; - left: 100px; - right: 0px; - top: 0px; - overflow: auto; - - .consolidated-view { - position: relative; - margin: 20px 10px 2px 10px; - height: 20px; - border: 1px solid @border-color; - border-radius: 2px; - } - } - - .em-swimlane-ruler { - margin: 9px 10px 5px 10px; - - .ruler-line { - margin: 0px -10px 0px -10px; - border-top: 1px solid @border-color; - } - - .unit-text { - display: inline-block; - position: relative; - transition: left .5sec ease-out; - } - - .mark-container { - overflow: hidden; - font-size: 0; - overflow: hidden; - white-space: nowrap; - - .ruler-mark { - display: inline-block; - border-left: 1px solid @border-color; - - margin-right: -1px; - margin-bottom: -2px; - - font-size: 12px; - - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - - .sub-marks { - display: block; - padding: 0px; - - margin-bottom: -8px; - - li { - vertical-align: top; - display: inline-block; - width: 10%; - height: 5px; - border-left: 1px solid @border-lite; - - &:first-child { - border-left: none; - } - - &:nth-child(2n) { - height: 8px; - } - &:nth-child(6) { - height: 12px; - } - } - } - } - } - - } -} - -.em-swimlane-consolidated-process { - position: absolute; - cursor: pointer; - - top: 0px; - bottom: 0px; - border: 1px solid white; - - transition: top .2s; - &.focused { - top: -10px; - border-top-left-radius: 5px; - border-top-right-radius: 5px; - } -} - -.em-swimlane-process-name { - text-align: right; - padding-right: 5px; - padding-top: 5px; - - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - - height: 30px; -} - -.em-swimlane-process-visual { - position: relative; - height: 30px; - - // Gives a mouse sensitive margin to the left and right, - // so that event lines appear with a padding - border-left: 10px solid transparent; - border-right: 10px solid transparent; - - .process-line, .event-bar, .event-bubble { - cursor: pointer; - } - .base-line { - position: relative; - height: 1px; - margin: 0px -10px; - top: unit(unit(@process-height) * 0.5, get-unit(@process-height)); - border-top: 1px dotted @border-color; - } - - .process-line, .event-bar, .em-swimlane-event, .em-swimlane-blocking-event { - position: absolute; - } - - .process-line { - top: unit(unit(@process-height) * 0.5 - 1, get-unit(@process-height)); - height: 3px; - - left: 0%; - right: 100%; - transition: left @event-anim-duration ease-out, right @event-anim-duration ease-out; - } - - .event-bar { - top: unit((unit(@process-height) * 0.5) - 10, get-unit(@process-height)); - height: 20px; - background-color: @border-lite; - border-radius: 2px; - border: 1px solid; - margin-right: -1px; - - left: 0%; - right: 100%; - transition: left @event-anim-duration ease-out, right @event-anim-duration ease-out; - } - - .em-swimlane-event { - top: unit(unit(@process-height) * 0.5, get-unit(@process-height)); - - left: 0%; - transition: left @event-anim-duration ease-out; - - .event-line { - position: absolute; - top: -9px; - height: 18px; - border-left: 1px solid; - } - - .event-bubble { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - - -webkit-transition: top .2s, right .2s, bottom .2s, left .2s, border-width .2s; /* Safari */ - transition: top .2s, right .2s, bottom .2s, left .2s, border-width .2s; - transition-timing-function: cubic-bezier(1.44); - - border-radius: 7px; - border: 0px solid; - background-color: white; - } - } - - .em-swimlane-blocking-event { - top: unit(unit(@process-height) * 0.5, get-unit(@process-height)); - - left: 0%; - height: 0; - transition: left @event-anim-duration ease-out, height @event-anim-duration ease-out; - - .event-line { - position: absolute; - top: 0px; - border-left: 1px solid; - } - } - - &:hover { - .event-bubble { - top: -7px; - right: -8px; - bottom: -8px; - left: -7px; - - border: 2px solid; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/em-table-status-cell.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/em-table-status-cell.less b/tez-ui2/src/main/webapp/app/styles/em-table-status-cell.less deleted file mode 100644 index 4586da7..0000000 --- a/tez-ui2/src/main/webapp/app/styles/em-table-status-cell.less +++ /dev/null @@ -1,99 +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. - */ - -.fa-icon(@name) { - @content: "fa-var-@{name}"; - &:before {content: @@content} -} - -.em-table-status-cell { - overflow: visible !important; - - .status { - .label; - .label-default; - } - .status-icon { - .fa; - .fa-icon(exclamation); - } - - .status-new, .status-inited { - .status-icon { - .fa-icon(plus); - } - } - - .status-initializing, .status-scheduled, .status-start-wait { - .label-primary; - .status-icon { - .fa-icon(history); - } - } - - .status-running { - .diagonal-stripes-bg; - .animate; - .label-info; - .status-icon { - .fa-icon(spinner); - } - } - - .status-committing { - .label-info; - .status-icon { - .fa-icon(save); - } - } - - .status-finished, .status-succeeded, .status-succeeded-with-failures { - .label-success; - .status-icon { - .fa-icon(check); - } - } - .status-succeeded-with-failures { - .label-warning; - } - - .status-terminating { - .label-warning; - .status-icon { - .fa-icon(exclamation-triangle); - } - } - - .status-failed, .status-fail-in-progress { - .label-warning; - .status-icon { - .fa-icon(exclamation); - } - } - - .status-kill-wait, .status-kill-in-progress, .status-killed, .status-error { - .label-warning; - .status-icon { - .fa-icon(ban); - } - } - .status-killed, .status-error { - .label-danger; - } - -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/em-tooltip.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/em-tooltip.less b/tez-ui2/src/main/webapp/app/styles/em-tooltip.less deleted file mode 100644 index 3f7ed87..0000000 --- a/tez-ui2/src/main/webapp/app/styles/em-tooltip.less +++ /dev/null @@ -1,119 +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. - */ - -.em-tooltip { - .no-select; - .no-mouse; - - z-index: 9007199254740991; - - position: fixed; - width: 820px; //2 * (td width + padding) - - top: 10px; - left: 20px; - - .bubble-container { - margin-bottom: 5px; - - .bubble { - display: inline-block; - max-width: 820px; - margin-left: -11px; // Border radius + arrow margin-left - - position: relative; - padding: 10px; - - font-family: helvetica; - background: rgba(0, 0, 0, 0.8); - color: #fff; - border-radius: 5px; - - .tip-title, .tip-desc, .tip-props { - border-top: 1px solid rgba(255, 255, 255, 0.4); - text-align: center; - - padding: 0px 2px; - - &:first-child { - border-top: none; - } - } - - .tip-title { - font-size: 1.1em; - } - - .tip-props { - table { - display: inline; - table-layout:fixed; - - td { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - max-width: 400px; - - text-align: right; - } - td:nth-child(1) { - padding-right: 10px; - text-align: left; - } - td:nth-child(2) { - text-align: right; - padding-left: 10px; - border-left: 1px solid rgba(255, 255, 255, 0.4); - } - } - } - } - } - - &.below:after, &.above:before { - display: block; - box-sizing: border-box; - - font-size: 12px; - line-height: 9px; - - color: rgba(0, 0, 0, 0.8); - margin-left: -6px; // Half of font size - } - - &.above { - margin-top: 20px; - - &:before { - margin-bottom: -2px; - content: "\25B2"; - } - } - - &.below { - .bubble-container { - margin-top: 5px; - margin-bottom: 0px; - } - - &:after { - content: "\25BC"; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/error-bar.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/error-bar.less b/tez-ui2/src/main/webapp/app/styles/error-bar.less deleted file mode 100644 index dec2100..0000000 --- a/tez-ui2/src/main/webapp/app/styles/error-bar.less +++ /dev/null @@ -1,102 +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. - */ - -.error-bar { - position: fixed; - z-index: 1000; - - padding: 9px 30px; - min-height: 50px; - width: 100%; - - bottom: -50px; - opacity: 0; - height: 50px; - - &.visible { - bottom: -10px; - opacity: 1; - height: auto; - } - - transition: all .2s cubic-bezier(0.175, 0.885, 0.320, 1.275); - transition-property: bottom, opacity, height; - -webkit-transition: all .2s cubic-bezier(0.175, 0.885, 0.320, 1.275); - -webkit-transition-property: bottom, opacity, height; - - border-top: 1px @border-lite solid; - background-color: #F5F5DC; - color: @text-red; - - .message, .details { - overflow: scroll; - max-height: 100px; - - text-align: left; - } - - .details { - display: none; - visibility: hidden; - - margin-bottom: 10px; - - border-top: 1px @border-lite solid; - - .force-scrollbar; - white-space: pre-line; - - &.visible { - display: block; - } - } - - .close-button, .show-details { - position: absolute; - top: 12px; - - color: @text-color; - opacity: .7; - - &:hover { - cursor: pointer; - opacity: 1; - } - } - - .close-button { - right: 30px; - } - - .show-details { - right: 45px; - visibility: hidden; - } - - &.details-available { - .message { - cursor: pointer; - } - .details { - visibility: visible; - } - .show-details { - visibility: visible; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/page-layout.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/page-layout.less b/tez-ui2/src/main/webapp/app/styles/page-layout.less deleted file mode 100644 index 6dab69f..0000000 --- a/tez-ui2/src/main/webapp/app/styles/page-layout.less +++ /dev/null @@ -1,154 +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. - */ - -body, html, body > .ember-view { - height: 100%; - overflow: visible; - color: @text-color; -} -body, html { - min-width: 1024px; -} - -// Styles used in both standalone and wrapped modes -.standalone, .wrapped { - - .lr-margin { - margin: 0px 30px; - } - - .header, .footer { - .content { - position: relative; - - .breadcrumb-container { - position: absolute; - left: 70px; - right: 20px; - top: 6px; - - .breadcrumb { - .no-border; - - font-size: 1.2em; - - background-color: transparent; - margin-bottom: 0px; - - .active { - } - } - } - - .ui-info { - position: absolute; - right: 0px; - top: 0px; - height: 27px; - - span { - .left-delim; - } - span:first-child { - .no-border; - } - } - } - } - - .header { - background-color: @bg-lite; - - height: 40px; - border-bottom: 1px @border-color solid; - margin-bottom: 10px; - - a.logo { - img { - margin-top: 2px; - height: 34px; - width: 70px; - } - &:hover { - text-decoration: none; - } - } - - .ui-info { - background-color: @bg-lite; - margin-top: 10px; - - .fa::before { - font-size: 20px; - } - } - } - - .footer { - background-color: @white; - color: @text-color; - - padding: 10px 0px; - margin: 0px; - - border-top: 1px @border-color solid; - - font-size: .9em; - - .ui-info { - background-color: @white; - } - } -} - -// TEZ UI in stand alone mode -.standalone { - height: 100%; - - a, .pagination > li > a, .clickable { - color: @logo-orange; - } - - .footer-frame { - height: 60px; - } - .footer { - height: 40px; - } - - .footer-pusher { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -40px; // Must be same as footer & footer-frame - } -} - -// TEZ UI wrapped in a host like Ambari -.wrapped { - .header { - border: 1px @border-lite solid; - border-radius: 5px; - } - .footer { - display: none; - } -} - - - http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/shared.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/shared.less b/tez-ui2/src/main/webapp/app/styles/shared.less deleted file mode 100644 index 0fa7309..0000000 --- a/tez-ui2/src/main/webapp/app/styles/shared.less +++ /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. - */ - -b { - font-weight: bold; -} -.horizontal-half { - width: 50%; -} - -.display-block { - display: block; -} - -.left-delim { - border-left: 1px solid @border-color; - margin-left: 10px; - padding-left: 10px; -} - -.align-checknradio { - input[type=checkbox], input[type=radio] { - vertical-align: middle; - position: relative; - bottom: .2em; - } -} - -.diagnostics { - padding: 10px; - white-space: pre-line; - - div { - padding-left: 20px; - } -} - -.em-table { - .em-progress-container { - padding-top: 1px; - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/swimlane-page.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/swimlane-page.less b/tez-ui2/src/main/webapp/app/styles/swimlane-page.less deleted file mode 100644 index 3f14b39..0000000 --- a/tez-ui2/src/main/webapp/app/styles/swimlane-page.less +++ /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. - */ - -.swimlane-page { - - .button-panel { - .no-select; - - text-align: right; - - height: 30px; - - .fa { - font-size: 20px; - - border-radius: 5px; - - cursor: pointer; - - border-color: @border-lite; - background-color: @bg-lite; - - &:hover { - color: @bg-lite; - background-color: @text-color; - } - } - } - - .zoom-range { - .no-wrap; - display: inline-block; - width: 300px; - - margin-right: 5px; - padding-right: 5px; - border-right: 1px solid @border-color; - - input { - width: 200px; - display: inline-block; - margin-top: 5px; - vertical-align: text-bottom; - } - } - - .fa-compress { - display: none; - } - - .fullscreen { - height: 100%; - width: 100%; - - overflow: auto; - - padding: 10px; - - .fa-compress { - display: inline-block; - } - .fa-expand { - .no-display; - } - } - - &:-webkit-full-screen { - .fullscreen; - } - &:fullscreen { - .fullscreen; - } - &:-moz-full-screen { - .fullscreen; - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/tab-n-refresh.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/tab-n-refresh.less b/tez-ui2/src/main/webapp/app/styles/tab-n-refresh.less deleted file mode 100644 index 97acff0..0000000 --- a/tez-ui2/src/main/webapp/app/styles/tab-n-refresh.less +++ /dev/null @@ -1,42 +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. - */ - -.tab-n-refresh { - margin-bottom: 10px; - position: relative; - - height: 42px; - - .refresh-ui { - position: absolute; - right: 0px; - top: -10px; - - .text-elements { - display: inline-block; - position: relative; - - line-height: 18px; - top: 11px; - text-align: right; - font-size: .95em; - - .align-checknradio; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/table-controls.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/table-controls.less b/tez-ui2/src/main/webapp/app/styles/table-controls.less deleted file mode 100644 index 2f0371f..0000000 --- a/tez-ui2/src/main/webapp/app/styles/table-controls.less +++ /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. - */ - -.table-controls { - .left-delim; - - cursor: pointer; - - float: right; - font-size: 24px; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/tooltip.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/tooltip.less b/tez-ui2/src/main/webapp/app/styles/tooltip.less deleted file mode 100644 index 8a21537..0000000 --- a/tez-ui2/src/main/webapp/app/styles/tooltip.less +++ /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. - */ - -.generic-tooltip { - padding: 3px 5px !important; - background: rgba(0,0,0,.8) !important; - color: white !important; - border: none !important; -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/styles/zip-download-modal.less ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/styles/zip-download-modal.less b/tez-ui2/src/main/webapp/app/styles/zip-download-modal.less deleted file mode 100644 index 4ed0fd2..0000000 --- a/tez-ui2/src/main/webapp/app/styles/zip-download-modal.less +++ /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. - */ - -.zip-download-modal { - .message { - padding: 10px 15px; - - .fa-spinner { - color: green; - } - .fa-exclamation-circle { - color: red; - } - } -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/templates/app.hbs ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/templates/app.hbs b/tez-ui2/src/main/webapp/app/templates/app.hbs deleted file mode 100644 index 8906371..0000000 --- a/tez-ui2/src/main/webapp/app/templates/app.hbs +++ /dev/null @@ -1,20 +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. -}} - -{{tab-n-refresh tabs=tabs loadTime=loadTime autoRefreshEnabled=polling.active}} -{{outlet}} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/templates/app/configs.hbs ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/templates/app/configs.hbs b/tez-ui2/src/main/webapp/app/templates/app/configs.hbs deleted file mode 100644 index 62010e9..0000000 --- a/tez-ui2/src/main/webapp/app/templates/app/configs.hbs +++ /dev/null @@ -1,34 +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. -}} - -{{#if loaded}} - {{em-table - columns=columns - rows=configs - - rowCount=configs.length - definition=definition - - enablePagination=false - - searchAction="searchChanged" - sortAction="sortChanged" - }} -{{else}} - {{partial "loading"}} -{{/if}} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/templates/app/dags.hbs ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/templates/app/dags.hbs b/tez-ui2/src/main/webapp/app/templates/app/dags.hbs deleted file mode 100644 index d36678a..0000000 --- a/tez-ui2/src/main/webapp/app/templates/app/dags.hbs +++ /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. -}} - -{{#if loaded}} - {{em-table - columns=visibleColumns - rows=model - - headerComponentNames=headerComponentNames - - definition=definition - - searchAction="searchChanged" - sortAction="sortChanged" - rowAction="rowCountChanged" - pageAction="pageChanged" - - rowsChanged="rowsChanged" - }} -{{else}} - {{partial "loading"}} -{{/if}} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/templates/app/index.hbs ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/templates/app/index.hbs b/tez-ui2/src/main/webapp/app/templates/app/index.hbs deleted file mode 100644 index 2c04d2c..0000000 --- a/tez-ui2/src/main/webapp/app/templates/app/index.hbs +++ /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. -}} - -{{#if loaded}} - {{#if model.app}} - <table class='detail-list'> - <thead> - <tr> - <th colspan=2>YARN App Details</th> - </tr> - </thead> - <tbody> - <tr> - <td>Status</td> - <td>{{em-table-status-cell content=model.app.status}}</td> - </tr> - <tr> - <td>Final Status</td> - <td>{{em-table-status-cell content=model.app.finalStatus}}</td> - </tr> - <tr> - <td>Start Time</td> - <td>{{date-formatter content=model.app.startTime}}</td> - </tr> - <tr> - <td>End Time</td> - <td>{{date-formatter content=model.app.endTime}}</td> - </tr> - <tr> - <td>Duration</td> - <td>{{txt model.app.duration type="duration"}}</td> - </tr> - </tbody> - </table> - - <table class='detail-list'> - <thead> - <tr> - <th colspan=2>YARN App Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>Application Tracking URL</td> - <td><a href={{trackingURL}} target="_blank">{{model.app.entityID}}</a></td> - </tr> - <tr> - <td>Application Name</td> - <td>{{model.app.name}}</td> - </tr> - <tr> - <td>Queue</td> - <td>{{model.app.queue}}</td> - </tr> - <tr> - <td>Application Type</td> - <td>{{model.app.type}}</td> - </tr> - <tr> - <td>User</td> - <td>{{model.app.user}}</td> - </tr> - </tbody> - </table> - {{/if}} - - <table class='detail-list'> - <thead> - <tr> - <th colspan=2>Tez Details</th> - </tr> - </thead> - <tbody> - <tr> - <td>Entity ID</td> - <td>{{model.entityID}}</td> - </tr> - <tr> - <td>Domain</td> - <td>{{model.domain}}</td> - </tr> - <tr> - <td>User</td> - <td>{{model.user}}</td> - </tr> - </tbody> - </table> - - <table class='detail-list'> - <thead> - <tr> - <th colspan=2>Version Details</th> - </tr> - </thead> - <tbody> - <tr> - <td>Build Version</td> - <td>{{model.tezVersion}}</td> - </tr> - <tr> - <td>Build Revision</td> - <td>{{model.tezRevision}}</td> - </tr> - <tr> - <td>Build Time</td> - <td>{{model.buildTime}}</td> - </tr> - </tbody> - </table> -{{else}} - {{partial "loading"}} -{{/if}}
