http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/resources/META-INF/LICENSE.txt ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/resources/META-INF/LICENSE.txt b/tez-ui2/src/main/resources/META-INF/LICENSE.txt deleted file mode 100644 index 708d33f..0000000 --- a/tez-ui2/src/main/resources/META-INF/LICENSE.txt +++ /dev/null @@ -1,402 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - -======================================================================= -Apache Tez Subcomponents: - -The Apache Tez project contains subcomponents with separate copyright -notices and license terms. Your use of the source code for the these -subcomponents is subject to the terms and conditions of the following -licenses. - ------------------------------------------------------------------------ - The MIT License ------------------------------------------------------------------------ - -The Apache TEZ tez-ui bundles the following files under the MIT License: - - - ember v2.2.0 (http://emberjs.com/) - Copyright (c) 2014 Yehuda Katz, Tom Dale and Ember.js contributors - - ember-data v2.1.0 (https://github.com/emberjs/data) - Copyright (C) 2011-2014 Tilde, Inc. and contributors, Portions Copyright (C) 2011 LivingSocial Inc. - - ember-resolver v2.0.3 (https://github.com/ember-cli/ember-resolver) - Copyright (c) 2013 Stefan Penner and Ember App Kit Contributors - - ember-load-initializers v0.1.7 (https://github.com/ember-cli/ember-load-initializers) - Copyright (c) 2014 ember-cli Contributors - - bootstrap v3.3.6 (http://getbootstrap.com) - Copyright (c) 2011-2014 Twitter, Inc - - jquery v2.1.4 (http://jquery.org) - Copyright 2005, 2014 jQuery Foundation and other contributors - - jquery-ui v1.11.4 (http://jqueryui.com/) - Copyright 2014 jQuery Foundation and other contributors - - jquery-mousewheel v3.1.13 (https://github.com/jquery/jquery-mousewheel) - Copyright 2006, 2014 jQuery Foundation and other contributors, https://jquery.org/ - - CodeMirror 5.11.0 (https://codemirror.net/) - Copyright (C) 2015 by Marijn Haverbeke <[email protected]> and others - - FileSaver.js master branch #24b303f49213b905ec9062b708f7cd43d56a5dde (https://github.com/eligrey/FileSaver.js) - Authored by Eli Grey - - moment v2.12.0 (http://momentjs.com/) - Copyright (c) 2011-2015 Tim Wood, Iskren Chernev, Moment.js contributors - - moment-timezone v0.5.0 (http://momentjs.com/timezone/) - Copyright (c) 2014 Tim Wood - - font-awesome css/less files v4.5.0 (http://fontawesome.io/) - Created by Dave Gandy - - ember-bootstrap v0.5.1 (https://github.com/kaliber5/ember-bootstrap) - Copyright 2015 kaliber5 GmbH. - - more-js v0.8.2 (https://github.com/sreenaths/snippet-ss) - - snippet-ss v1.11.0 (https://github.com/sreenaths/snippet-ss) - - em-tgraph v0.0.4 (https://github.com/sreenaths/em-tgraph) - - em-table v0.3.12 (https://github.com/sreenaths/em-table) - - em-helpers v0.5.8 (https://github.com/sreenaths/em-helpers) - - ember-cli-app-version v1.0.0 (https://github.com/EmberSherpa/ember-cli-app-version) - Authored by Taras Mankovski <[email protected]> - - ember-cli-auto-register v1.1.0 (https://github.com/williamsbdev/ember-cli-auto-register) - Copyright © 2015 Brandon Williams http://williamsbdev.com - - ember-cli-content-security-policy v0.4.0 (https://github.com/rwjblue/ember-cli-content-security-policy) - - ember-cli-d3 v1.1.2 (https://github.com/ming-codes/ember-cli-d3) - Authored by Ming Liu - - ember-cli-font-awesome v1.4.0 (https://github.com/martndemus/ember-cli-font-awesome) - Authored by Marten Schilstra <[email protected]> - - ember-cli-jquery-ui 0.0.20 (https://github.com/gaurav0/ember-cli-jquery-ui) - Authored by Gaurav Munjal - - ember-wormhole v2.10.1 (https://github.com/yapplabs/ember-wormhole) - Copyright (c) 2015 - - normalize.css v3.0.3 (github.com/necolas/normalize.css) - By Nicolas Gallagher & Jonathan Neal - - numeral v1.5.3 (https://github.com/adamwdraper/Numeral-js) - Copyright (c) 2012 Adam Draper - - loader.js v3.3.0 (https://github.com/ember-cli/loader.js) - Copyright (c) 2014 Yehuda Katz, Stefan Penner, and contributors - - ember-cli-shims v0.0.6 (https://github.com/ember-cli/ember-cli-shims) - Copyright (c) 2014 Stefan Penner and ember-cli Contributors - - ember-qunit v0.4.16 (https://github.com/rwjblue/ember-qunit) - Copyright (c) 2014 Ryan Florence - -All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------------------------------------------------------------------------ - BSD-style Licenses ------------------------------------------------------------------------ - -The Apache Tez tez-ui bundles the following files under BSD licenses: - -(3-clause BSD license) - - D3 v3.5.16 (http://d3js.org/) - Copyright (c) 2010-2014, Michael Bostock - - zip.js master branch #bfd76c66293305faaf9fcbb65b5ff7fe2dbe621a (https://github.com/gildas-lormeau/zip.js) - Copyright (c) 2013 Gildas Lormeau - -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list - of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors may - be used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - ------------------------------------------------------------------------ - The Open Font License ------------------------------------------------------------------------ - -The Apache Tez tez-ui bundles the following fonts under the -SIL Open Font License v1.1 (OFT) - http://scripts.sil.org/OFL - - - font-awesome fonts v4.5.0 (http://fontawesome.io/) - Created by Dave Gandy - -SIL OPEN FONT LICENSE - -Version 1.1 - 26 February 2007 - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting â in part or in whole â any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. -
http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/resources/META-INF/NOTICE.txt ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/resources/META-INF/NOTICE.txt b/tez-ui2/src/main/resources/META-INF/NOTICE.txt deleted file mode 100644 index 9a6feaf..0000000 --- a/tez-ui2/src/main/resources/META-INF/NOTICE.txt +++ /dev/null @@ -1,10 +0,0 @@ -Apache Tez -Copyright (c) 2015 The Apache Software Foundation - -This product includes software developed at -The Apache Software Foundation (http://www.apache.org/). - -This tez-ui bundle includes fonts protected under the Open Font License. -These fonts can only be distributed as part of a piece of software, but -not individually. See the license for details. http://scripts.sil.org/OFL. -More information on included fonts can be found in the LICENSE file. http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.bowerrc ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.bowerrc b/tez-ui2/src/main/webapp/.bowerrc deleted file mode 100644 index 959e169..0000000 --- a/tez-ui2/src/main/webapp/.bowerrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "directory": "bower_components", - "analytics": false -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.editorconfig ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.editorconfig b/tez-ui2/src/main/webapp/.editorconfig deleted file mode 100644 index 47c5438..0000000 --- a/tez-ui2/src/main/webapp/.editorconfig +++ /dev/null @@ -1,34 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - - -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true -indent_style = space -indent_size = 2 - -[*.js] -indent_style = space -indent_size = 2 - -[*.hbs] -insert_final_newline = false -indent_style = space -indent_size = 2 - -[*.css] -indent_style = space -indent_size = 2 - -[*.html] -indent_style = space -indent_size = 2 - -[*.{diff,md}] -trim_trailing_whitespace = false http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.ember-cli ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.ember-cli b/tez-ui2/src/main/webapp/.ember-cli deleted file mode 100644 index ee64cfe..0000000 --- a/tez-ui2/src/main/webapp/.ember-cli +++ /dev/null @@ -1,9 +0,0 @@ -{ - /** - Ember CLI sends analytics information by default. The data is completely - anonymous, but there are times when you might want to disable this behavior. - - Setting `disableAnalytics` to true will prevent any data from being sent. - */ - "disableAnalytics": false -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.gitignore ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.gitignore b/tez-ui2/src/main/webapp/.gitignore deleted file mode 100644 index 8470f82..0000000 --- a/tez-ui2/src/main/webapp/.gitignore +++ /dev/null @@ -1,18 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/tmp - -# dependencies -/node -/node_modules -/bower_components - -# misc -/.sass-cache -/connect.lock -/coverage/* -/libpeerconnection.log -npm-debug.log -testem.log http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.jshintrc ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.jshintrc b/tez-ui2/src/main/webapp/.jshintrc deleted file mode 100644 index 08096ef..0000000 --- a/tez-ui2/src/main/webapp/.jshintrc +++ /dev/null @@ -1,32 +0,0 @@ -{ - "predef": [ - "document", - "window", - "-Promise" - ], - "browser": true, - "boss": true, - "curly": true, - "debug": false, - "devel": true, - "eqeqeq": true, - "evil": true, - "forin": false, - "immed": false, - "laxbreak": false, - "newcap": true, - "noarg": true, - "noempty": false, - "nonew": false, - "nomen": false, - "onevar": false, - "plusplus": false, - "regexp": false, - "undef": true, - "sub": true, - "strict": false, - "white": false, - "eqnull": true, - "esnext": true, - "unused": true -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.travis.yml ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.travis.yml b/tez-ui2/src/main/webapp/.travis.yml deleted file mode 100644 index 66dd107..0000000 --- a/tez-ui2/src/main/webapp/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -language: node_js -node_js: - - "0.12" - -sudo: false - -cache: - directories: - - node_modules - -before_install: - - export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH - - "npm config set spin false" - - "npm install -g npm@^2" - -install: - - npm install -g bower - - npm install - - bower install - -script: - - npm test http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/.watchmanconfig ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/.watchmanconfig b/tez-ui2/src/main/webapp/.watchmanconfig deleted file mode 100644 index e7834e3..0000000 --- a/tez-ui2/src/main/webapp/.watchmanconfig +++ /dev/null @@ -1,3 +0,0 @@ -{ - "ignore_dirs": ["tmp", "dist"] -} http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/README.md ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/README.md b/tez-ui2/src/main/webapp/README.md deleted file mode 100644 index 997752c..0000000 --- a/tez-ui2/src/main/webapp/README.md +++ /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. ---> - -# Tez-ui - -The Tez UI is an ember based web-app that provides visualization of Tez applications running on the Apache Hadoop YARN framework. - -For more information on Tez and the Tez UI - Check the [Tez homepage](http://tez.apache.org/ "Apache Tez Homepage"). - -## Configurations - -* By default timeline is expected at localhost:8188 & RM at localhost:8088 -* You can point the UI to custom locations by setting the environment variables in `src/main/webapp/config/configs.env` - -## Development - -All the following commands must be run inside `src/main/webapp`. - -### Prerequisites - -You will need the following things properly installed on your computer. - -* Install [Node.js](http://nodejs.org/) (with NPM) -* Install [Bower](http://bower.io/) -* Install all dependencies by running `npm install` & `bower install` - -### Running UI - -* `npm start` -* Visit your app at [http://localhost:4200](http://localhost:4200). - -### Running Tests - -* `npm test` - -### Building - -* `npm run build` (production) -* Files would be stored in "dist/" - -### Adding new routes (pages), controllers, components etc. - -* Use ember-cli blueprint generator - [Ember CLI](http://ember-cli.com/extending/#generators-and-blueprints) http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/WEB-INF/web.xml b/tez-ui2/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 62bfe31..0000000 --- a/tez-ui2/src/main/webapp/WEB-INF/web.xml +++ /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. ---> - -<!DOCTYPE web-app PUBLIC - "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" - "http://java.sun.com/dtd/web-app_2_3.dtd" > - -<web-app> - <display-name>TEZ UI</display-name> -</web-app> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/WEB-INF/wro.xml ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/WEB-INF/wro.xml b/tez-ui2/src/main/webapp/WEB-INF/wro.xml deleted file mode 100644 index 2709c6f..0000000 --- a/tez-ui2/src/main/webapp/WEB-INF/wro.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<groups xmlns="http://www.isdc.ro/wro"> - <group name='vendor'> - <js>/vendor.js</js> - </group> - <group name='tez-ui'> - <js>/tez-ui.js</js> - </group> -</groups> http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/abstract.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/abstract.js b/tez-ui2/src/main/webapp/app/adapters/abstract.js deleted file mode 100644 index 121d4ee..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/abstract.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. - */ - -import Ember from 'ember'; - -import LoaderAdapter from './loader'; - -export default LoaderAdapter.extend({ - serverName: null, //Must be set by inheriting classes - - host: Ember.computed("serverName", function () { - var serverName = this.get("serverName"); - return this.get(`hosts.${serverName}`); - }), - namespace: Ember.computed("serverName", function () { - var serverName = this.get("serverName"); - return this.get(`env.app.namespaces.webService.${serverName}`); - }), - pathTypeHash: Ember.computed("serverName", function () { - var serverName = this.get("serverName"); - return this.get(`env.app.paths.${serverName}`); - }), - - ajaxOptions: function(url, method, options) { - options = options || {}; - options.crossDomain = true; - options.xhrFields = { - withCredentials: true - }; - options.targetServer = this.get('serverName'); - return this._super(url, method, options); - }, - - pathForType: function(type) { - var serverName = this.get("serverName"), - path = this.get("pathTypeHash")[type]; - Ember.assert(`Path not found for type:${type} to server:${serverName}`, path); - return path; - }, - - normalizeErrorResponse: function(status, headers, payload) { - var response; - - if(payload && payload.exception && !payload.errors) { - payload = `${payload.exception}\n${payload.message}\n${payload.javaClassName}`; - response = this._super(status, headers, payload); - } - else { - response = this._super(status, headers, payload); - Ember.set(response, '0.title', this.get("outOfReachMessage")); - } - - return response; - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/ahs-app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/ahs-app.js b/tez-ui2/src/main/webapp/app/adapters/ahs-app.js deleted file mode 100644 index 0e7556a..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/ahs-app.js +++ /dev/null @@ -1,27 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ - namespace: Ember.computed.alias("env.app.namespaces.webService.appHistory"), - pathForType: function() { - return "apps"; - }, -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/am.js b/tez-ui2/src/main/webapp/app/adapters/am.js deleted file mode 100644 index c4cb75d..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/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 AbstractAdapter from './abstract'; - -export default AbstractAdapter.extend({ - serverName: "am", - outOfReachMessage: "Application Master (AM) is out of reach. Either it's down, or CORS is not enabled for YARN ResourceManager.", - - queryRecord: function(store, type, query) { - return this.query(store, type, query); - }, -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/app-rm.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/app-rm.js b/tez-ui2/src/main/webapp/app/adapters/app-rm.js deleted file mode 100644 index b61e391..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/app-rm.js +++ /dev/null @@ -1,22 +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 RMAdapter from './rm'; - -export default RMAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/app.js b/tez-ui2/src/main/webapp/app/adapters/app.js deleted file mode 100644 index b47e05f..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/app.js +++ /dev/null @@ -1,22 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/attempt-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/attempt-am.js b/tez-ui2/src/main/webapp/app/adapters/attempt-am.js deleted file mode 100644 index 39cd2a4..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/attempt-am.js +++ /dev/null @@ -1,22 +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 AMAdapter from './am'; - -export default AMAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/attempt.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/attempt.js b/tez-ui2/src/main/webapp/app/adapters/attempt.js deleted file mode 100644 index b47e05f..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/attempt.js +++ /dev/null @@ -1,22 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/dag-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/dag-am.js b/tez-ui2/src/main/webapp/app/adapters/dag-am.js deleted file mode 100644 index 39cd2a4..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/dag-am.js +++ /dev/null @@ -1,22 +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 AMAdapter from './am'; - -export default AMAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/dag.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/dag.js b/tez-ui2/src/main/webapp/app/adapters/dag.js deleted file mode 100644 index b47e05f..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/dag.js +++ /dev/null @@ -1,22 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/loader.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/loader.js b/tez-ui2/src/main/webapp/app/adapters/loader.js deleted file mode 100644 index f63bd07..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/loader.js +++ /dev/null @@ -1,58 +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 DS from 'ember-data'; - -var MoreString = more.String; - -export default DS.RESTAdapter.extend({ - _isLoader: true, - - buildURL: function(modelName, id, snapshot, requestType, query, params) { - var url = this._super(modelName, id, snapshot, requestType, query); - return params ? MoreString.fmt(url, params) : url; - }, - - _loaderAjax: function (url, queryParams, nameSpace) { - if (this.sortQueryParams && queryParams) { - queryParams = this.sortQueryParams(queryParams); - } - - // Inject nameSpace - return this.ajax(url, 'GET', { data: queryParams }).then(function (data) { - return { - nameSpace: nameSpace, - data: data - }; - }); - }, - - queryRecord: function(store, type, query) { - var queryParams = query.params, - url = this.buildURL(type.modelName, query.id, null, null, queryParams, query.urlParams); - return this._loaderAjax(url, queryParams, query.nameSpace); - }, - - query: function (store, type, query/*, recordArray*/) { - var queryParams = query.params, - url = this.buildURL(type.modelName, null, null, 'query', queryParams, query.urlParams); - return this._loaderAjax(url, queryParams, query.nameSpace); - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/rm.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/rm.js b/tez-ui2/src/main/webapp/app/adapters/rm.js deleted file mode 100644 index 252affb..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/rm.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import AbstractAdapter from './abstract'; - -export default AbstractAdapter.extend({ - serverName: "rm", - outOfReachMessage: "Resource Manager (RM) is out of reach. Either it's down, or CORS is not enabled.", - - // Any rm specific adapter changes must be added here -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/task-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/task-am.js b/tez-ui2/src/main/webapp/app/adapters/task-am.js deleted file mode 100644 index 39cd2a4..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/task-am.js +++ /dev/null @@ -1,22 +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 AMAdapter from './am'; - -export default AMAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/task.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/task.js b/tez-ui2/src/main/webapp/app/adapters/task.js deleted file mode 100644 index b47e05f..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/task.js +++ /dev/null @@ -1,22 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/timeline.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/timeline.js b/tez-ui2/src/main/webapp/app/adapters/timeline.js deleted file mode 100644 index 1a341f7..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/timeline.js +++ /dev/null @@ -1,106 +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 AbstractAdapter from './abstract'; - -var MoreObject = more.Object; - -export default AbstractAdapter.extend({ - serverName: "timeline", - outOfReachMessage: "Timeline server (ATS) is out of reach. Either it's down, or CORS is not enabled.", - - filters: { - dagID: 'TEZ_DAG_ID', - vertexID: 'TEZ_VERTEX_ID', - taskID: 'TEZ_TASK_ID', - attemptID: 'TEZ_TASK_ATTEMPT_ID', - hiveQueryID: 'HIVE_QUERY_ID', - appID: 'applicationId', - - dagName: 'dagName', - user: "user", - status: "status", - callerID: "callerId" - }, - - stringifyFilters: function (filters) { - var filterStrs = []; - - MoreObject.forEach(filters, function (key, value) { - filterStrs.push(`${key}:${value}`); - }); - - return filterStrs.join(","); - }, - - normalizeQuery: function(query) { - var primaryFilter = null, // Primary must have just one single filter - secondaryFilters = {}, - normalQuery = {}, - filterStr; - - MoreObject.forEach(query, function (key, value) { - var filter = this.get(`filters.${key}`); - - if(filter) { - if(!primaryFilter) { - primaryFilter = {}; - primaryFilter[filter] = value; - } - else { - secondaryFilters[filter] = value; - } - } - else { - normalQuery[key] = value; - } - }, this); - - // primaryFilter - if(primaryFilter) { - filterStr = this.stringifyFilters(primaryFilter); - } - if(filterStr) { - normalQuery.primaryFilter = filterStr; - } - - // secondaryFilters - filterStr = this.stringifyFilters(secondaryFilters); - if(filterStr) { - normalQuery.secondaryFilter = filterStr; - } - - // Limit - normalQuery.limit = normalQuery.limit || this.get("env.app.rowLoadLimit"); - - return normalQuery; - }, - - query: function (store, type, query/*, recordArray*/) { - var queryParams = query.params, - url = this.buildURL(type.modelName, null, null, 'query', queryParams, query.urlParams); - - if(query) { - queryParams = this.normalizeQuery(queryParams); - } - - return this._loaderAjax(url, queryParams, query.nameSpace); - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/vertex-am.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/vertex-am.js b/tez-ui2/src/main/webapp/app/adapters/vertex-am.js deleted file mode 100644 index 39cd2a4..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/vertex-am.js +++ /dev/null @@ -1,22 +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 AMAdapter from './am'; - -export default AMAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/adapters/vertex.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/adapters/vertex.js b/tez-ui2/src/main/webapp/app/adapters/vertex.js deleted file mode 100644 index b47e05f..0000000 --- a/tez-ui2/src/main/webapp/app/adapters/vertex.js +++ /dev/null @@ -1,22 +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 TimelineAdapter from './timeline'; - -export default TimelineAdapter.extend({ -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/app.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/app.js b/tez-ui2/src/main/webapp/app/app.js deleted file mode 100644 index fb4695c..0000000 --- a/tez-ui2/src/main/webapp/app/app.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 Ember from 'ember'; -import Resolver from 'ember-resolver'; -import loadInitializers from 'ember/load-initializers'; -import config from './config/environment'; - -let App; - -Ember.MODEL_FACTORY_INJECTIONS = true; - -App = Ember.Application.extend({ - modulePrefix: config.modulePrefix, - podModulePrefix: config.podModulePrefix, - Resolver -}); - -loadInitializers(App, config.modulePrefix); - -export default App; http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/caller-info.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/caller-info.js b/tez-ui2/src/main/webapp/app/components/caller-info.js deleted file mode 100644 index ece33ac..0000000 --- a/tez-ui2/src/main/webapp/app/components/caller-info.js +++ /dev/null @@ -1,78 +0,0 @@ -/*global CodeMirror*/ -/** - * 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. - */ - -// Must be convert into an ember addon - -import Ember from 'ember'; - -export default Ember.Component.extend({ - - type: null, - info: null, - - codeMirror: null, - - classNames: ['caller-info'], - - mode: Ember.computed("type", function () { - switch(this.get("type")) { - case 'Hive': - return 'text/x-hive'; - case 'Pig': - return 'text/x-pig'; - default: - return 'text/x-sql'; - } - }), - - _init: Ember.on('didInsertElement', function() { - var element = Ember.$(this.get('element')).find('textarea')[0], - codeMirror = CodeMirror.fromTextArea(element, { - theme: 'default', - indentUnit: 2, - smartIndent: true, - tabSize: 4, - electricChars: true, - lineWrapping: true, - lineNumbers: true, - readOnly: true, - autofocus: false, - dragDrop: false, - }); - - this.set('codeMirror', codeMirror); - - this._modeChanged(); - this._infoChanged(); - }), - - _modeChanged: Ember.observer("mode", function() { - this.get('codeMirror').setOption("mode", this.get("mode")); - }), - - _infoChanged: Ember.observer("info", function() { - var codeMirror = this.get('codeMirror'), - info = this.get('info') || ''; - - if (this.get('codeMirror').getValue() !== info) { - codeMirror.setValue(info); - } - }) - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/column-selector.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/column-selector.js b/tez-ui2/src/main/webapp/app/components/column-selector.js deleted file mode 100644 index 8f9ac13..0000000 --- a/tez-ui2/src/main/webapp/app/components/column-selector.js +++ /dev/null @@ -1,104 +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 isIOCounter from '../utils/misc'; - -export default Ember.Component.extend({ - - classNames: ['column-selector'], - - searchText: "", - selectAll: false, - - content: null, - - options: Ember.computed("content.columns", "content.visibleColumnIDs", function () { - var group, - highlight = false, - visibleColumnIDs = this.get('content.visibleColumnIDs') || {}; - - return this.get('content.columns').map(function (definition) { - var css = ''; - - highlight = highlight ^ (Ember.get(definition, "counterGroupName") !== group); - group = Ember.get(definition, "counterGroupName"); - - if(highlight) { - css += ' highlight'; - } - if(group && isIOCounter(group)) { - css += ' per-io'; - } - - return Ember.Object.create({ - id: Ember.get(definition, "id"), - displayText: Ember.get(definition, "headerTitle"), - css: css, - selected: visibleColumnIDs[Ember.get(definition, "id")] - }); - }); - }), - - filteredOptions: Ember.computed("options", "searchText", function () { - var options = this.get('options'), - searchText = this.get('searchText'); - - if (!searchText) { - return options; - } - - return options.filter(function (option) { - return option.get('displayText').match(searchText); - }); - }), - - selectedColumnIDs: Ember.computed("options", function () { - var columnIds = {}; - this.get('options').forEach(function (option) { - columnIds[option.get("id")] = option.get('selected'); - }); - - return columnIds; - }), - - _selectObserver: Ember.observer('[email protected]', function () { - var selectedCount = 0; - this.get('filteredOptions').forEach(function (option) { - if(Ember.get(option, 'selected')) { - selectedCount++; - } - }); - this.set('selectAll', selectedCount > 0 && selectedCount === this.get('filteredOptions.length')); - }), - - actions: { - selectAll: function (checked) { - this.get('filteredOptions').forEach(function (option) { - Ember.set(option, 'selected', checked); - }); - }, - closeModal: function () { - this.get("targetObject").send("closeModal"); - }, - ok: function () { - this.get("targetObject").send("columnsSelected", this.get("selectedColumnIDs")); - } - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/dags-page-search.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/dags-page-search.js b/tez-ui2/src/main/webapp/app/components/dags-page-search.js deleted file mode 100644 index f1cc71b..0000000 --- a/tez-ui2/src/main/webapp/app/components/dags-page-search.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; - -export default Ember.Component.extend({ - classNames: ['dags-page-search'], - - dagName: Ember.computed.oneWay("tableDefinition.dagName"), - dagID: Ember.computed.oneWay("tableDefinition.dagID"), - submitter: Ember.computed.oneWay("tableDefinition.submitter"), - status: Ember.computed.oneWay("tableDefinition.status"), - appID: Ember.computed.oneWay("tableDefinition.appID"), - callerID: Ember.computed.oneWay("tableDefinition.callerID"), - - sendSearch: function () { - this.get('parentView').sendAction('search', { - dagName: this.get("dagName"), - dagID: this.get("dagID"), - submitter: this.get("submitter"), - status: this.get("status"), - appID: this.get("appID"), - callerID: this.get("callerID"), - }); - }, - - actions: { - statusChanged: function (value) { - this.set("status", value); - }, - statusKeyPress: function () { - this.sendSearch(); - }, - search: function () { - this.sendSearch(); - } - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/dags-pagination-ui.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/dags-pagination-ui.js b/tez-ui2/src/main/webapp/app/components/dags-pagination-ui.js deleted file mode 100644 index 8d88b45..0000000 --- a/tez-ui2/src/main/webapp/app/components/dags-pagination-ui.js +++ /dev/null @@ -1,106 +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.Component.extend({ - tableDefinition: null, - dataProcessor: null, - - classNames: ['pagination-ui'], - isVisible: Ember.computed.alias('tableDefinition.enablePagination'), - - atFirst: Ember.computed('tableDefinition.pageNum', function () { - return this.get('tableDefinition.pageNum') === 1; - }), - - rowCountOptions: Ember.computed('tableDefinition.rowCountOptions', 'tableDefinition.rowCount', function () { - var options = this.get('tableDefinition.rowCountOptions'), - rowCount = this.get('tableDefinition.rowCount'); - - return options.map(function (option) { - return { - value: option, - selected: option === rowCount - }; - }); - }), - - _possiblePages: Ember.computed('tableDefinition.pageNum', - 'tableDefinition.moreAvailable', - 'dataProcessor.totalPages', function () { - var pageNum = this.get('tableDefinition.pageNum'), - totalPages = this.get('dataProcessor.totalPages'), - possiblePages = [], - startPage = 1, - endPage = totalPages, - delta = 0; - - if(this.get('tableDefinition.moreAvailable')) { - totalPages++; - } - - if(totalPages > 1) { - startPage = pageNum - 1; - endPage = pageNum + 1; - - if(startPage < 1) { - delta = 1 - startPage; - } - else if(endPage > totalPages) { - delta = totalPages - endPage; - } - - startPage += delta; - endPage += delta; - } - - startPage = Math.max(startPage, 1); - endPage = Math.min(endPage, totalPages); - - while(startPage <= endPage) { - possiblePages.push({ - isCurrent: startPage === pageNum, - isLoadPage: startPage === totalPages, - pageNum: startPage++, - }); - } - - return possiblePages; - }), - - actions: { - rowSelected: function (value) { - value = parseInt(value); - if(this.get('tableDefinition.rowCount') !== value) { - this.get('parentView').send('rowChanged', value); - } - }, - changePage: function (value) { - if(value === 1) { - this.get('parentView').sendAction('reload'); - } - else if(this.get('dataProcessor.totalPages') < value) { - this.get('parentView').sendAction('loadPage', value); - } - else { - this.get('parentView').send('pageChanged', value); - } - }, - } -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/date-formatter.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/date-formatter.js b/tez-ui2/src/main/webapp/app/components/date-formatter.js deleted file mode 100644 index da21383..0000000 --- a/tez-ui2/src/main/webapp/app/components/date-formatter.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. - */ - -import Ember from 'ember'; - -export default Ember.Component.extend({ - - classNames: ["date-formatter"], - - content: null, - - env: Ember.inject.service('env'), - timeZone: Ember.computed.oneWay('env.app.timeZone'), - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/em-swimlane-blocking-event.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/em-swimlane-blocking-event.js b/tez-ui2/src/main/webapp/app/components/em-swimlane-blocking-event.js deleted file mode 100644 index a487699..0000000 --- a/tez-ui2/src/main/webapp/app/components/em-swimlane-blocking-event.js +++ /dev/null @@ -1,75 +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.Component.extend({ - - process: null, - blocking: null, - - processor: null, - - classNames: ["em-swimlane-blocking-event"], - - blockingEvent: Ember.computed("process.blockingEventName", - "[email protected]", function () { - var events = this.get("process.events"), - blockingEventName = this.get("process.blockingEventName"); - - return events.find(function (event) { - return event.name === blockingEventName; - }); - }), - - didInsertElement: Ember.observer("blockingEvent.time", "processor.timeWindow", function () { - var blockTime = this.get("blockingEvent.time"), - blockerEventHeight; - - if(blockTime && this.get("blocking.endEvent.time") >= blockTime) { - blockerEventHeight = (this.get("blocking.index") - this.get("process.index")) * 30; - - Ember.run.later(this, function () { - this.$().css({ - "left": this.get("processor").timeToPositionPercent(blockTime) + "%" - }); - this.$(".event-line").css({ - "height": `${blockerEventHeight}px`, - "border-color": this.get("process").getColor() - }); - }); - } - }), - - sendMouseAction: function (name, mouseEvent) { - this.sendAction(name, "blocking-event", this.get("process"), { - mouseEvent: mouseEvent, - blocking: this.get("blocking"), - blockingEvent: this.get("blockingEvent") - }); - }, - - mouseEnter: function (mouseEvent) { - this.sendMouseAction("showTooltip", mouseEvent); - }, - - mouseLeave: function (mouseEvent) { - this.sendMouseAction("hideTooltip", mouseEvent); - }, - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/em-swimlane-consolidated-process.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/em-swimlane-consolidated-process.js b/tez-ui2/src/main/webapp/app/components/em-swimlane-consolidated-process.js deleted file mode 100644 index 67186dd..0000000 --- a/tez-ui2/src/main/webapp/app/components/em-swimlane-consolidated-process.js +++ /dev/null @@ -1,89 +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.Component.extend({ - - process: null, - processor: null, - focusedProcess: null, - - classNames: ["em-swimlane-consolidated-process"], - classNameBindings: ['focused'], - - focused: Ember.computed("process", "focusedProcess", function () { - return this.get("process") === this.get("focusedProcess"); - }), - - fromPos: Ember.computed("process.consolidateStartTime", "processor.timeWindow", function () { - var time = this.get("process.consolidateStartTime"); - if(time) { - return this.get("processor").timeToPositionPercent(time); - } - }), - - toPos: Ember.computed("process.consolidateEndTime", "processor.timeWindow", function () { - var time = this.get("process.consolidateEndTime"); - if(time) { - return this.get("processor").timeToPositionPercent(time); - } - }), - - didInsertElement: Ember.observer("fromPos", "toPos", function () { - var fromPos = this.get("fromPos"), - toPos = this.get("toPos"), - thisElement = this.$(); - - if(fromPos && toPos) { - thisElement.show(); - thisElement.css({ - left: fromPos + "%", - right: (100 - toPos) + "%", - "background-color": this.get("process").getConsolidateColor(), - "z-index": parseInt(toPos - fromPos) - }); - } - else { - thisElement.hide(); - } - }), - - sendMouseAction: function (name, mouseEvent) { - var fromPos = this.get("fromPos") || 0, - toPos = this.get("toPos") || 0; - - this.sendAction(name, "consolidated-process", this.get("process"), { - mouseEvent: mouseEvent, - contribution: parseInt(toPos - fromPos) - }); - }, - - mouseEnter: function (mouseEvent) { - this.sendMouseAction("showTooltip", mouseEvent); - }, - - mouseLeave: function (mouseEvent) { - this.sendMouseAction("hideTooltip", mouseEvent); - }, - - mouseUp: function (mouseEvent) { - this.sendMouseAction("click", mouseEvent); - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/em-swimlane-event-bar.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/em-swimlane-event-bar.js b/tez-ui2/src/main/webapp/app/components/em-swimlane-event-bar.js deleted file mode 100644 index 224489b..0000000 --- a/tez-ui2/src/main/webapp/app/components/em-swimlane-event-bar.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import Ember from 'ember'; - -export default Ember.Component.extend({ - - bar: null, - barIndex: 0, - - process: null, - processor: null, - - classNames: ["em-swimlane-event-bar"], - - fromEvent: Ember.computed("[email protected]", "bar.fromEvent", function () { - var events = this.get("process.events"), - fromEventName = this.get("bar.fromEvent"); - return events.find(function (event) { - return event.name === fromEventName; - }); - }), - toEvent: Ember.computed("[email protected]", "bar.toEvent", function () { - var events = this.get("process.events"), - toEventName = this.get("bar.toEvent"); - return events.find(function (event) { - return event.name === toEventName; - }); - }), - - didInsertElement: Ember.observer("fromEvent.time", "toEvent.time", - "barIndex", "processor.timeWindow", function () { - - var processor = this.get("processor"), - fromEventPos = processor.timeToPositionPercent(this.get("fromEvent.time")), - toEventPos = processor.timeToPositionPercent(this.get("toEvent.time")), - color = this.get("bar.color") || this.get("process").getBarColor(this.get("barIndex")); - - if(fromEventPos && toEventPos) { - Ember.run.later(this, function () { - this.$().show(); - this.$(".event-bar").css({ - left: fromEventPos + "%", - right: (100 - toEventPos) + "%", - "background-color": color, - "border-color": this.get("process").getColor() - }); - }); - } - else { - this.$().hide(); - } - }), - - sendMouseAction: function (name, mouseEvent) { - this.sendAction(name, "event-bar", this.get("process"), { - mouseEvent: mouseEvent, - bar: this.get("bar"), - fromEvent: this.get("fromEvent"), - toEvent: this.get("toEvent") - }); - }, - - mouseEnter: function (mouseEvent) { - this.sendMouseAction("showTooltip", mouseEvent); - }, - - mouseLeave: function (mouseEvent) { - this.sendMouseAction("hideTooltip", mouseEvent); - }, - - mouseUp: function (mouseEvent) { - this.sendMouseAction("click", mouseEvent); - } - -}); http://git-wip-us.apache.org/repos/asf/tez/blob/13132ec7/tez-ui2/src/main/webapp/app/components/em-swimlane-event.js ---------------------------------------------------------------------- diff --git a/tez-ui2/src/main/webapp/app/components/em-swimlane-event.js b/tez-ui2/src/main/webapp/app/components/em-swimlane-event.js deleted file mode 100644 index 4eef7f0..0000000 --- a/tez-ui2/src/main/webapp/app/components/em-swimlane-event.js +++ /dev/null @@ -1,62 +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.Component.extend({ - - process: null, - event: null, - - processor: null, - - classNames: ["em-swimlane-event"], - - didInsertElement: Ember.observer("event.time", "processor.timeWindow", function () { - var color = this.get("process").getColor(); - - this.$(".event-line").css("border-color", color); - this.$(".event-bubble").css("border-color", color); - - Ember.run.later(this, function () { - this.$().css({ - "left": this.get("processor").timeToPositionPercent(this.get("event.time")) + "%" - }); - }); - }), - - sendMouseAction: function (name, mouseEvent) { - this.sendAction(name, "event", this.get("process"), { - mouseEvent: mouseEvent, - events: [this.get("event")] - }); - }, - - mouseEnter: function (mouseEvent) { - this.sendMouseAction("showTooltip", mouseEvent); - }, - - mouseLeave: function (mouseEvent) { - this.sendMouseAction("hideTooltip", mouseEvent); - }, - - mouseUp: function (mouseEvent) { - this.sendMouseAction("click", mouseEvent); - } - -});
