ATLAS-731 Remove dashboard module in Atlas, replaced by dashboardv2 (kevalbhatt18 via sumasai)
Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/a05f752d Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/a05f752d Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/a05f752d Branch: refs/heads/master Commit: a05f752d251544be8f06adffc5ae8f6f551ee18d Parents: b15aa40 Author: Suma Shivaprasad <[email protected]> Authored: Wed Jun 1 13:00:53 2016 -0700 Committer: Suma Shivaprasad <[email protected]> Committed: Wed Jun 1 13:00:53 2016 -0700 ---------------------------------------------------------------------- dashboard/.bowerrc | 8 - dashboard/.gitignore | 28 - dashboard/.jshintignore | 19 - dashboard/.jshintrc | 65 -- dashboard/README.md | 37 - dashboard/bower.json | 26 - dashboard/gruntfile.js | 191 ----- dashboard/package.json | 62 -- dashboard/pom.xml | 145 ---- dashboard/public/css/common.css | 392 ---------- dashboard/public/css/d3tip.css | 46 -- dashboard/public/css/details.css | 66 -- dashboard/public/css/lineage.css | 61 -- dashboard/public/css/login.css | 293 ------- dashboard/public/css/sticky-footer-navbar.css | 37 - dashboard/public/css/tags.css | 122 --- dashboard/public/img/ApacheAtlasLogo.png | Bin 3115 -> 0 bytes dashboard/public/img/addTag.png | Bin 724 -> 0 bytes dashboard/public/img/favicon.ico | Bin 3638 -> 0 bytes dashboard/public/img/loader.gif | Bin 9315 -> 0 bytes dashboard/public/img/logo-green.png | Bin 7271 -> 0 bytes dashboard/public/img/process.png | Bin 3204 -> 0 bytes dashboard/public/img/process1.png | Bin 2906 -> 0 bytes dashboard/public/img/refresh.png | Bin 1759 -> 0 bytes dashboard/public/img/select_arrow_img.png | Bin 423 -> 0 bytes dashboard/public/img/spinner.gif | Bin 8275 -> 0 bytes dashboard/public/img/tableicon.png | Bin 478 -> 0 bytes dashboard/public/img/tableicon1.png | Bin 1267 -> 0 bytes dashboard/public/index.html | 76 -- dashboard/public/js/app.js | 110 --- dashboard/public/js/config.js | 48 -- dashboard/public/js/init.js | 29 - dashboard/public/js/routes.js | 28 - .../public/modules/about/aboutController.js | 27 - dashboard/public/modules/about/aboutModule.js | 21 - dashboard/public/modules/about/aboutResource.js | 23 - dashboard/public/modules/about/views/about.html | 39 - .../public/modules/details/detailsController.js | 124 --- .../public/modules/details/detailsModule.js | 21 - .../public/modules/details/detailsResource.js | 54 -- .../public/modules/details/detailsRoutes.js | 51 -- .../public/modules/details/views/attribute.html | 23 - .../public/modules/details/views/details.html | 93 --- .../public/modules/details/views/schema.html | 48 -- .../public/modules/home/headerController.js | 41 - dashboard/public/modules/home/homeModule.js | 21 - dashboard/public/modules/home/views/header.html | 50 -- dashboard/public/modules/home/views/home.html | 21 - .../public/modules/lineage/lineageModule.js | 21 - .../public/modules/lineage/lineageResource.js | 23 - .../modules/lineage/lineage_ioController.js | 784 ------------------- .../public/modules/lineage/views/lineage.html | 30 - .../modules/lineage/views/lineage_io.html | 32 - .../modules/navigation/navigationController.js | 56 -- .../modules/navigation/navigationModule.js | 21 - .../modules/navigation/navigationResource.js | 37 - .../modules/navigation/views/navigation.html | 35 - .../notification/notificationController.js | 30 - .../modules/notification/notificationModule.js | 30 - .../modules/notification/notificationService.js | 61 -- .../notification/views/notifications.html | 23 - .../public/modules/search/searchController.js | 317 -------- .../public/modules/search/searchDirective.js | 34 - dashboard/public/modules/search/searchModule.js | 21 - .../public/modules/search/searchResource.js | 32 - dashboard/public/modules/search/searchRoutes.js | 51 -- .../public/modules/search/views/search.html | 117 --- .../modules/search/views/searchResult.html | 43 - .../modules/search/views/types/column.html | 21 - .../public/modules/search/views/types/db.html | 22 - .../public/modules/search/views/types/guid.html | 21 - .../modules/search/views/types/hiveLineage.html | 19 - .../modules/search/views/types/hive_table.html | 19 - .../modules/search/views/types/loadprocess.html | 22 - .../modules/search/views/types/storagedesc.html | 21 - .../modules/search/views/types/table.html | 22 - .../public/modules/search/views/types/view.html | 21 - .../tags/definition/definitionTagsController.js | 80 -- .../tags/definition/definitionTagsModule.js | 21 - .../tags/definition/tagAttributeDefinition.js | 33 - .../modules/tags/definition/views/add.html | 146 ---- .../tags/instance/createTagController.js | 96 --- .../tags/instance/instanceTagsController.js | 98 --- .../modules/tags/instance/instanceTagsModule.js | 21 - .../modules/tags/instance/views/createTag.html | 64 -- .../modules/tags/instance/views/tags.html | 66 -- dashboard/public/modules/tags/tagClasses.js | 88 --- dashboard/public/modules/tags/tagsModule.js | 21 - dashboard/public/modules/tags/tagsResource.js | 41 - dashboard/public/modules/tags/tagsRoutes.js | 49 -- pom.xml | 8 - release-log.txt | 1 + webapp/pom.xml | 13 +- webapp/src/main/webapp/index.html | 34 - 94 files changed, 2 insertions(+), 5410 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/.bowerrc ---------------------------------------------------------------------- diff --git a/dashboard/.bowerrc b/dashboard/.bowerrc deleted file mode 100644 index 1d30a36..0000000 --- a/dashboard/.bowerrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "directory": "dist/lib/", - "storage": { - "packages": ".bower-cache", - "registry": ".bower-registry" - }, - "tmp": ".bower-tmp" -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/.gitignore ---------------------------------------------------------------------- diff --git a/dashboard/.gitignore b/dashboard/.gitignore deleted file mode 100644 index e5ee796..0000000 --- a/dashboard/.gitignore +++ /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. - -.DS_Store -.bower-*/ -.idea/ -node_modules/ -lib/ -public/lib -public/dist -*.log -*.tgz -node/ -dist/ -**/app.min.js \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/.jshintignore ---------------------------------------------------------------------- diff --git a/dashboard/.jshintignore b/dashboard/.jshintignore deleted file mode 100644 index efd063f..0000000 --- a/dashboard/.jshintignore +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -test/coverage/** \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/.jshintrc ---------------------------------------------------------------------- diff --git a/dashboard/.jshintrc b/dashboard/.jshintrc deleted file mode 100644 index d0c794d..0000000 --- a/dashboard/.jshintrc +++ /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. - */ - -{ - "browser": true, // Standard browser globals e.g. `window`, `document`. - "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). - "camelcase": false, // Permit only camelcase for `var` and `object indexes`. - "curly": false, // Require {} for every new block or scope. - "devel": true, // Allow development statements e.g. `console.log();`. - "esnext": true, // Allow ES.next specific features such as `const` and `let`. - "eqeqeq": true, // Require triple equals i.e. `===`. - "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` - "indent": false, // Specify indentation spacing - "latedef": true, // Prohibit variable use before definition. - "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. - "newcap": false, // Require capitalization of all constructor functions e.g. `new F()`. - "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. - "noempty": true, // Prohibit use of empty blocks. - "quotmark": false, // Define quotes to string values. - "regexp": true, // Prohibit `.` and `[^...]` in regular expressions. - "strict": true, // Require `use strict` pragma in every file. - "smarttabs": false, // Suppresses warnings about mixed tabs and spaces - "trailing": true, // Prohibit trailing whitespaces. - "undef": true, // Require all non-global variables be declared before they are used. - "unused": true, // Warn unused variables. - "globals": { // Globals variables. - "angular": true, - "$": false, - "baseUrl":true - }, - "predef": [ // Extra globals. - "define", - "require", - "exports", - "module", - "spyOn", - "describe", - "xdescribe", - "before", - "beforeEach", - "after", - "afterEach", - "jasmine", - "it", - "xit", - "inject", - "expect", - "ngGridFlexibleHeightPlugin" - ] -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/README.md ---------------------------------------------------------------------- diff --git a/dashboard/README.md b/dashboard/README.md deleted file mode 100644 index 5285e19..0000000 --- a/dashboard/README.md +++ /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. - */ - -# Apache Atlas - -## Instructions - -### Prerequisite -1. Nodejs (http://nodejs.org/download/) -2. ```npm install -g grunt-cli``` - -### Setup: - -``` -git clone $git-repo-url -git checkout master -cd dashboard/v2 -npm install -grunt server -``` -Server will start at: -<http://localhost:3010/> http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/bower.json ---------------------------------------------------------------------- diff --git a/dashboard/bower.json b/dashboard/bower.json deleted file mode 100644 index ef21c9b..0000000 --- a/dashboard/bower.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "atlas-metadata", - "description": "Apache Atlas", - "version": "1.0.0-SNAPSHOT", - "devDependencies": { - "angular": "~1.2.15", - "angular-resource": "~1.2.15", - "angular-cookies": "~1.2.15", - "angular-route": "~1.2.15", - "angular-sanitize": "~1.2.15", - "bootstrap": "~3.1.1", - "angular-bootstrap": "~0.12.0", - "angular-ui-router": "~0.2.13", - "d3": "~3.5.3", - "d3-tip": "~0.6.6", - "lodash": "~3.0.0", - "angular-ui-utils": "~0.1.1", - "font-awesome": "~4.2.0", - "closure-compiler": "https://dl.google.com/closure-compiler/compiler-20140814.zip", - "ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.3/assets/ng-closure-runner.zip", - "jquery-ui": "1.10.4" - }, - "resolutions": { - "d3": "~3.5.3" - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/gruntfile.js ---------------------------------------------------------------------- diff --git a/dashboard/gruntfile.js b/dashboard/gruntfile.js deleted file mode 100644 index ffe4767..0000000 --- a/dashboard/gruntfile.js +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -'use strict'; - -var git = require('git-rev'); - -module.exports = function(grunt) { - var classPathSep = (process.platform === "win32") ? ';' : ':', - gitHash = '', - pkg = grunt.file.readJSON('package.json'), - distPath = 'dist', - isDashboardDirectory = grunt.file.isDir('public'), - modulesPath = 'public/'; - if (!isDashboardDirectory) - modulesPath = '../public/' - - grunt.initConfig({ - watch: { - options: { - livereload: 35729 - }, - js: { - files: ['public/**/*.js', '!public/lib/**', '!public/dist/**', '!public/js/app.min.js'], - tasks: ['shell'] - }, - html: { - files: ['public/**/*.html'], - tasks: ['copy:dist'] - }, - css: { - files: ['public/**/*.css'], - tasks: ['copy:dist'] - }, - image: { - files: ['public/**/*.{ico,gif,png}'], - tasks: ['copy:dist'] - } - }, - jshint: { - all: { - src: ['gruntfile.js', 'package.json', 'server.js', 'server/**/*.js', 'public/**/*.js', '!public/lib/**', '!public/dist/**', '!public/**/app.min.js'], - options: { - jshintrc: true - } - } - }, - concurrent: { - tasks: ['watch', 'proxitserver'], - options: { - logConcurrentOutput: true - } - }, - jsbeautifier: { - 'default': { - src: ['<%= jshint.all.src %>', 'bower.json'], - options: { - js: { - preserveNewlines: true, - maxPreserveNewlines: 2 - } - } - }, - 'build': { - src: '<%= jsbeautifier.default.src %>', - options: { - mode: 'VERIFY_ONLY', - js: '<%= jsbeautifier.default.options.js%>' - } - } - }, - bower: { - install: { - options: { - verbose: true, - targetDir: '.bower-components' - } - } - }, - dist: distPath + '/js/app.min.js', - modules: grunt.file.expand( - modulesPath + 'js/app.js', - modulesPath + 'js/config.js', - modulesPath + 'js/routes.js', - modulesPath + 'modules/**/*Module.js', - modulesPath + 'modules/**/*.js', - modulesPath + 'js/init.js' - ).join(' '), - shell: { - min: { - command: 'java ' + - '-cp ' + distPath + '/lib/closure-compiler/compiler.jar' + classPathSep + - '' + distPath + '/lib/ng-closure-runner/ngcompiler.jar ' + - 'org.angularjs.closurerunner.NgClosureRunner ' + - '--compilation_level SIMPLE_OPTIMIZATIONS ' + - //'--formatting PRETTY_PRINT ' + - '--language_in ECMASCRIPT5_STRICT ' + - '--angular_pass ' + - '--manage_closure_dependencies ' + - '--js <%= modules %> ' + - '--js_output_file <%= dist %>' - } - }, - devUpdate: { - main: { - options: { - updateType: 'force' - } - } - }, - compress: { - release: { - options: { - archive: function() { - return [pkg.name, pkg.version, gitHash].join('_') + '.tgz'; - } - }, - src: ['node_modules/**', 'package.json', 'server.js', 'server/**', 'public/**', '!public/js/**', '!public/modules/**/*.js'] - } - }, - copy: { - dist: { - expand: true, - cwd: modulesPath, - src: ['**', '!js/**/*.js', '!modules/**/*.js'], - dest: distPath - } - }, - clean: { - build: [distPath], - options: { - force: true - } - }, - proxit: { - dev: { - options: { - 'port': 3010, - 'verbose': true, - 'hosts': [{ - 'hostnames': ['*'], - 'routes': { - '/': distPath - } - }] - } - } - } - }); - - require('load-grunt-tasks')(grunt); - grunt.registerTask('default', ['devUpdate', 'bower', 'jshint', 'jsbeautifier:default']); - - grunt.registerTask('server', ['jshint', 'clean', 'bower', 'copy:dist', 'minify', 'concurrent']); - grunt.registerTask('build', ['copy:dist', 'minify']); - - grunt.registerTask('minify', 'Minify the all js', function() { - var done = this.async(); - grunt.task.run(['shell:min']); - done(); - }); - grunt.loadNpmTasks('proxit'); - grunt.registerTask('proxitserver', 'Proxit', function() { - var done = this.async(); - grunt.task.run(['proxit:dev']); - done(); - }); - grunt.registerTask('release', 'Create release package', function() { - var done = this.async(); - git.short(function(str) { - gitHash = str; - grunt.task.run(['minify', 'compress:release']); - done(); - }); - }); -}; http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/package.json ---------------------------------------------------------------------- diff --git a/dashboard/package.json b/dashboard/package.json deleted file mode 100644 index 3772654..0000000 --- a/dashboard/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "atlas-metadata", - "description": "Apache Atlas", - "version": "0.5.0-incubating", - "private": true, - "repository": { - "type": "git", - "url": "https://git-wip-us.apache.org/repos/asf/incubator-atlas.git" - }, - "engines": { - "node": "0.10.x", - "npm": "1.3.x" - }, - "keywords": [ - "Apache", - "Atlas", - "HortonWorks" - ], - "dependencies": { - "body-parser": "^1.2.0", - "bower": "~1.3.1", - "compression": "^1.0.2", - "consolidate": "~0.10.0", - "cookie-parser": "^1.0.1", - "cookies": "~0.4.0", - "express": "~4.2.0", - "express-load": "^1.1.14", - "forever": "~0.11.1", - "lodash": "~2.4.1", - "method-override": "^1.0.0", - "morgan": "^1.0.1", - "path-extra": "~0.1.1", - "proxit": "^0.6.0", - "q": "~1.0.1", - "rc": "~0.3.4", - "serve-favicon": "^2.0.0", - "static-favicon": "^2.0.0-alpha", - "superagent": "^0.20.0", - "swig": "~1.3.2", - "view-helpers": "~0.1.4", - "grunt-contrib-clean": "~0.6.0" - }, - "devDependencies": { - "git-rev": "^0.2.1", - "grunt": "~0.4.2", - "grunt-bower-task": "~0.4.0", - "grunt-cli": "~0.1.11", - "grunt-concurrent": "^1.0.0", - "grunt-contrib-compress": "^0.13.0", - "grunt-contrib-jshint": "^0.11.0", - "grunt-contrib-watch": "^0.6.0", - "grunt-dev-update": "^1.0.2", - "grunt-jsbeautifier": "^0.2.6", - "grunt-nodemon": "^0.4.0", - "grunt-shell": "^1.1.1", - "load-grunt-tasks": "^3.1.0", - "grunt-nginx": "~0.2.2", - "grunt-contrib-copy": "~0.8.0", - "grunt-contrib-clean": "~0.6.0", - "proxit": "~0.6.4" - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/pom.xml ---------------------------------------------------------------------- diff --git a/dashboard/pom.xml b/dashboard/pom.xml deleted file mode 100644 index dea74b4..0000000 --- a/dashboard/pom.xml +++ /dev/null @@ -1,145 +0,0 @@ -<?xml version="1.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. - --> - -<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" - xmlns="http://maven.apache.org/POM/4.0.0"> - - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.atlas</groupId> - <artifactId>apache-atlas</artifactId> - <version>0.7-incubating-SNAPSHOT</version> - </parent> - - <artifactId>atlas-dashboard</artifactId> - <description>Apache Atlas UI Application</description> - <name>Apache Atlas UI</name> - <packaging>war</packaging> - <url>http://atlas.incubator.apache.org</url> - - - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>com.github.eirslett</groupId> - <artifactId>frontend-maven-plugin</artifactId> - <configuration> - <phase>validate</phase> - <workingDirectory>${project.build.directory}</workingDirectory> - </configuration> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-war-plugin</artifactId> - <configuration> - <failOnMissingWebXml>false</failOnMissingWebXml> - <webResources> - <resource> - <directory>${project.build.directory}/dist</directory> - </resource> - </webResources> - </configuration> - </plugin> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <version>2.7</version> - <executions> - <execution> - <id>copy-resources</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>validate</phase> - <configuration> - <outputDirectory>${basedir}/target/</outputDirectory> - <resources> - <resource> - <directory>${basedir}</directory> - <includes> - <include>package.json</include> - <include>.bowerrc</include> - <include>bower.json</include> - <include>gruntfile.js</include> - </includes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>com.github.eirslett</groupId> - <artifactId>frontend-maven-plugin</artifactId> - <executions> - <execution> - <id>install node and npm</id> - <goals> - <goal>install-node-and-npm</goal> - </goals> - <configuration> - <nodeVersion>${node.version}</nodeVersion> - <npmVersion>1.4.3</npmVersion> - </configuration> - </execution> - <execution> - <id>npm install</id> - <goals> - <goal>npm</goal> - </goals> - <configuration> - <arguments>install</arguments> - </configuration> - </execution> - <execution> - <id>install bower</id> - <goals> - <goal>grunt</goal> - </goals> - <configuration> - <arguments>bower</arguments> - </configuration> - </execution> - <execution> - <id>npm remaining</id> - <goals> - <goal>npm</goal> - </goals> - <configuration> - <arguments>install --ignore-scripts</arguments> - </configuration> - </execution> - <execution> - <id>grunt dist</id> - <goals> - <goal>grunt</goal> - </goals> - <configuration> - <arguments>build</arguments> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/common.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/common.css b/dashboard/public/css/common.css deleted file mode 100644 index e545ad1..0000000 --- a/dashboard/public/css/common.css +++ /dev/null @@ -1,392 +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. - */ - -div.separator { - position: relative; - font-size: 18px; - color: #aaa; - margin-top: 10px; - margin-bottom: 10px; - padding-top: 10px; - padding-bottom: 10px; -} -.breadcrumb{ - padding: 8px !important; - margin-bottom: 10px !important; - border-radius: 0 !important; - background-color: #f5f5f5 !important; - border: 1px solid #e3e3e3; -} -.pointer{ - cursor: pointer; -} -.alert{ - border-radius: 0 !important; -} -span.separator { - display: block; - position: absolute; - left: 50%; - top: -2px; - margin-left: -25px; - background-color: #fff; - width: 50px; - text-align: center; -} - -hr.separator { - background-color: #cdcdcd; - height: 1px; - margin-top: 0px !important; - margin-bottom: 0px !important; -} - -.popover{ - max-width: none !important; -} -.pointer { - cursor: pointer; -} - -.form-control { - border-color: #5cbb5a; - border-width: 2px; -} - -.small-txt { - color: #999999; - padding-left: 14px; -} -.mB20{ - margin-bottom: 20px; -} -.padding0{ - padding: 0 !important; -} -.paddingR0{ - padding-right: 0 !important; -} -/* Header background */ -header.navbar-top { - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#333333)); - background-image: -webkit-linear-gradient(top, #555555, #333333); - background-image: -o-linear-gradient(top, #555555, #333333); - background-image: linear-gradient(to bottom, #555555, #333333); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#555555, endColorstr=#333333); - -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); - -moz-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.1); - max-height: 40px; - min-height: 40px; -} - - -header a.main-logo{ - color: #ffffff; - font-size: 16px; - line-height: 40px; - padding: 2px 5px 0 15px; - text-shadow: 0 1px 0 #555555; -} -header a.main-logo:hover,header a.main-logo:focus{ - text-decoration: none; -} - -header ul.menu-bar li a{ - line-height: 10px; - color: #c3c3c3; -} -header ul.menu-bar li a>i { - margin-right: 3px; - font-size: 12px; -} -header ul.menu-bar li a:hover{ - color: #fff; - background: transparent; -} -header ul.menu-bar li a:focus{ - background: transparent; -} -header ul.menu-bar li.active a{ - color: #333333; - background-color: #ffffff; - -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); - -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); -} -/* Footer */ -footer.navbar-bottom { - background-color: #fafafa; - border-top: solid 4px #444; -} - -footer.navbar-bottom p { - color: #333333; - margin: 23px 10px 10px; -} - -footer.navbar-bottom img { - padding-left: 5px; - margin-top: -21px; -} - -/*======================================================================================= -Search Bar design -=======================================================================================*/ -.main-search input{ - height: 50px; - border-radius: 0px; - border: 1px solid #e3e3e3; - color: #414141; - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; - box-shadow: none; -} -.main-search .input-group-btn button{ - border-radius: 0; - border-radius: 0; - padding: 14px 20px; -} - -.main-search .search-type-large { - width: 95px!important; -} - -.main-search select { - height: 50px!important; - padding-right: 0px; - margin-right: 0px; - width: 83px; - font-weight:bold; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - cursor:pointer; - background: url('../img/select_arrow_img.png') no-repeat; - background-size: 22px 22px; - background-position: 54px 13px!important; -} - -.search-type-large .form-control:focus { - border-color: #ccc; - box-shadow: none; - outline: 0 none; -} - -/*======================================================================================= -Tags on Home Page design -=======================================================================================*/ -.main-tags{ - min-height: 20px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; - border-radius: 0px; -} -.main-tags a{ - background: transparent; - border: none; - padding:5px 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - color: #0088cc !important; - border-radius: 0 !important; -} -.main-tags a:hover{ - color: #005580 !important; - background: #eeeeee !important; -} -.main-tags h4{ - padding:0 10px; -} -.main-tags i{ - font-size: 12px; - margin-right: 3px; -} -.main-tags .list-group-item.limit-size{ - overflow: hidden; - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - white-space: nowrap; - text-transform: capitalize;y -} - -/*======================================================================================= -Search Bar design -=======================================================================================*/ -.main-search input{ - height: 50px; - border-radius: 2px; - border: 1px solid #e3e3e3; - color: #414141; - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; - box-shadow: none; -} -.main-search .input-group-btn button{ - border-top-left-radius: 0; - border-bottom-left-radius: 0; - padding: 14px 20px; -} -/*======================================================================================= -Tags on Home Page design -=======================================================================================*/ -.main-tags{ - min-height: 20px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid #e3e3e3; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; - border-radius: 0px; -} -.main-tags a{ - background: transparent; - border: none; - padding:5px 10px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - color: #0088cc !important; - border-radius: 0 !important; -} -.main-tags a:hover{ - color: #005580 !important; - background: #eeeeee !important; -} -.main-tags h4{ - padding:0 10px; -} -.main-tags i{ - font-size: 12px; - margin-right: 3px; -} - -.pdLft15px -{ - padding-left: 15px; -} - -.mt10px { - margin-top: 10px; -} - -.mt20px { - margin-top: 20px; -} -.search-spinner { - text-align: center; -} -.menu-link{ - padding-left: 10px; - padding-right: 10px; -} - -.btn-toggle -{ - border: 1px solid #CCCCCC; - padding: 5px; -} - -.word-break { - word-break: break-word; -} - -.tab-search-tags { - max-width: 100px; - display: list-item; - overflow: hidden; - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - white-space: nowrap; - text-transform: capitalize; - float: left; - - background: lightblue !important; - color: black !important; - margin: 4px !important; - padding-left: 7px !important; - padding-right: 7px !important; -} - -.tabsearch-result { - max-width: 93%; - display: list-item; - overflow: hidden; - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - white-space: nowrap; - text-transform: capitalize; -} -.search-resultcount { - max-width: 500px; - display: list-item; - overflow: hidden; - text-overflow: ellipsis; - -o-text-overflow: ellipsis; - text-transform: capitalize; -} - -.maxwidth125px { - max-width: 125px !important; -} - -.anchor-absolute { - position: absolute; - right: 4px; -} - -.add-tag{ - margin-top: -35px; -} - -.tag-align{ - text-align: center; -} - -.h160 { - height: 160px !important; -} -.tag-attr{ - font-weight:bold; -} -.zoom-buttons{ - width:63px !important; -} -.graph{ - overflow: hidden!important; - -} -.notifier{ - margin-right: 15px; - margin-left: -15px; -} -.main-tags .list-tag{ - height: 640px; - overflow-y: scroll; -} -.filter-tag{ - width: 95%; - padding: 3px; - margin-left: 6px; - margin-top: 3px; - margin-bottom: 3px; -} -.see-more { - font-weight: bold; - font-size: 16px; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/d3tip.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/d3tip.css b/dashboard/public/css/d3tip.css deleted file mode 100644 index 11e12b2..0000000 --- a/dashboard/public/css/d3tip.css +++ /dev/null @@ -1,46 +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. - */ - -.d3-tip { - line-height: 1; - font-weight: bold; - padding: 12px; - background: rgba(0, 0, 0, 0.8); - color: #fff; - border-radius: 2px; -} - -/* Creates a small triangle extender for the tooltip */ -.d3-tip:after { - box-sizing: border-box; - display: inline; - font-size: 10px; - width: 100%; - line-height: 1; - color: rgba(0, 0, 0, 0.8); - content: "\25BC"; - position: absolute; - text-align: center; -} - -/* Style northward tooltips differently */ -.d3-tip.n:after { - margin: -1px 0 0 0; - top: 100%; - left: 0; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/details.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/details.css b/dashboard/public/css/details.css deleted file mode 100644 index 59209de..0000000 --- a/dashboard/public/css/details.css +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.tab-content .table-bordered { - border-top: none; -} - -.details-page .nav-tabs>li.active>a, -.details-page .nav-tabs>li.active>a:focus, -.details-page .nav-tabs>li.active>a:hover, -.details-page .nav-tabs>li>a:hover { - border-radius: 0; -} -.details-page .nav-tabs>li.active>a, -.details-page .nav-tabs>li.active>a:focus{ - border-radius: 0; - background: #F8F8F8; -} - -.details-page .nav-tabs>li>a { - margin-right: 0px; - -} - -.details-page .table>thead:first-child>tr:first-child>th { - border-bottom-width: 1px; -} -.details-page .table td{ - padding-left: 15px; -} -.details-page .table tr:nth-child(even) td{ - padding-left: 15px; - background: #f9f9f9; -} -.details-page .table tr td:first-child{ - font-weight: bold; -} -.details-page .table th{ - padding-left: 15px; - background: #f8f8f8; -} -.details-page .lineage{ - position: absolute; - width: 100%; - margin-top: 10px; - text-align: center; - z-index: -1; -} -.details-page .black{ - color: #555; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/lineage.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/lineage.css b/dashboard/public/css/lineage.css deleted file mode 100644 index ad7bf75..0000000 --- a/dashboard/public/css/lineage.css +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.link { - fill: none; - stroke: green; - stroke-width: 2px; - -} - -g text { - pointer-events: none; - text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff; - text-align: center; -} - -.d3-tip pre { - max-width: 400px; -} - -div.lineage { - border-bottom: 2px solid #006600; - -} -.edge-path path { - stroke: #333; - fill: #333; - stroke-width: 1.5px; -} -.lineage-viz { - margin: 0 auto; - overflow: hidden; -} -.lineage-viz button{ - margin: 5px; - border-radius: 2px -} - -.title-font{ - font-size:12px!important; -} -.align-lineage{ - text-align: center; - margin-top: 100px; - font-size: 24px; -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/login.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/login.css b/dashboard/public/css/login.css deleted file mode 100644 index 89ebe41..0000000 --- a/dashboard/public/css/login.css +++ /dev/null @@ -1,293 +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 */ -body { - font-family: 'Raleway', sans-serif; - background-color: #f6f7fb; - color: #686868; -} - -a { - color: #359f89; -} - -header { - background-color: #fff; - border-bottom: 1px #e7e8ed solid; -} - -textarea:focus, button:focus { - outline: none !important; -} - -textarea { - resize: none; -} - -/* Bootstrap Extended */ -.form-control:focus { - box-shadow: none; -} - -.breadcrumb { - padding: 8px 25px; - background-color: transparent; - margin-bottom: 0px; - font-weight: 600; - line-height: 44px; -} - -.breadcrumb>li+li:before { - padding: 0 10px; - font-family: FontAwesome; - color: #686868; - content: "\f105"; -} - -.well { - background-color: #f6f7fa; - border: 1px solid #e8e9ef; -} - -/* Header */ -.main-search .form-control { - border: none; - border-left: 1px #e7e8ed solid; - border-radius: 0px; - box-shadow: none; - height: 60px; - font-size: 18px; - font-style: italic; - -webkit-font-smoothing: antialiased; -} - -.main-search .input-group-addon { - font-size: 20px; - color: #b5b9bc; - background: none; - border: none; -} - -.page-title { - background-color: #fff; - padding: 50px; -} - -.page-title h1 { - margin-top: 0px; - margin-bottom: 20px; - font-weight: 600; - -webkit-font-smoothing: antialiased; -} - -.page-title h1 small { - position: relative; - bottom: 5px; - margin-left: 15px; - padding-left: 15px; - border-left: 1px #e8e9ef solid; - color: #b4b7bc; - font-size: 40%; - font-weight: 600; - text-transform: uppercase; -} - -.page-title .sub-title { - margin-bottom: 40px; -} - -/* Atlas Specific */ -.atlast-tabbable { - margin: 50px 0px; -} - -.atlast-tabbable .nav-tabs { - border-bottom: 1px solid #e8e9ee; -} - -.atlast-tabbable .nav-tabs>li>a { - padding: 15px 30px; - text-transform: uppercase; - letter-spacing: 1px; - border-radius: 2px 2px 0 0; -} - -.atlast-tabbable .nav-tabs>li.active>a, .atlast-tabbable .nav-tabs>li.active>a:focus, - .atlast-tabbable .nav-tabs>li.active>a:hover { - border: 1px solid #e8e9ee; - border-bottom-color: transparent; -} - -.atlast-tabbable .tab-content { - background-color: #fff; - padding: 35px; - border: 1px solid #e8e9ee; - border-top: none; -} - -.btn-atlas { - padding: 10px 20px; - background-color: #fff; - color: #37bb9b; - border: 1px #37bb9b solid; - border-radius: 4px; - -webkit-transition: all .3s ease; - -moz-transition: all .3s ease; - transition: all .3s ease; -} - -.btn-atlas:hover { - background-color: #37bb9b; - color: #fff; -} - -.atlas-tag { - padding: 6px 12px; - background-color: #4a90e2; - color: #fff; - font-size: 12px; - text-transform: uppercase; - border-radius: 4px; -} - -.atlas-tag i.fa { - position: relative; - right: -5px; - cursor: pointer; -} - -.btn-tag { - color: #4a90e2; - border: 1px #4a90e2 solid; - background-color: #fff; - border-radius: 4px; - -webkit-transition: all .3s ease; - -moz-transition: all .3s ease; - transition: all .3s ease; -} -/* Login Page */ -.login-pane { - margin-top: 50px; - background: #323544; - color: #eee; - padding: 15px; - border-radius: 5px; -} - -.login-pane h2 { - margin-bottom: 40px; -} - -.login-pane .input-group { - margin: 20px 0px; -} - -.login-pane .form-control, .login-pane .input-group-addon { - background-color: transparent; - border-radius: 0px; -} - -.login-pane .form-control { - border-left: none; - color: #eee; -} - -.login-pane .form-control:focus { - border-color: #CCC; -} - -.login-pane .input-group-addon { - border-right: none; - color: #ccc; -} - -.login-pane .form-control:focus+.input-group-addon { - border-color: #66afe9; -} - -.login-pane .btn-atlas { - background-color: #37bb9b; - color: #fff; -} - -.btn-tag:hover { - color: #fff; - background-color: #4a90e2; -} - -/* Login Page */ -.login-pane { - margin-top: 35%; - background: #323544; - color: #eee; - padding: 15px; - border-radius: 5px; -} - -.login-pane h2 { - margin-bottom: 40px; -} - -.login-pane .input-group { - margin: 20px 0px; -} - -.login-pane .form-control, .login-pane .input-group-addon { - background-color: transparent; - border-radius: 0px; -} - -.login-pane .form-control { - border-left: none; - color: #eee; -} - -.login-pane .form-control:focus { - border-color: #CCC; -} - -.login-pane .input-group-addon { - border-right: none; - color: #ccc; -} - -.login-pane .form-control:focus+.input-group-addon { - border-color: #66afe9; -} - -.login-pane .btn-atlas { - background-color: #37bb9b; - color: #fff; -} - -.errorBox { - position: absolute; - right: 36px; - display: none; - top: 26px; - width: 251px; -} - -.errorBox .alert { - box-shadow: 4px 3px 8px -2px gray; -} - -.close { - padding: 6px; - font-size: 15px; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/sticky-footer-navbar.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/sticky-footer-navbar.css b/dashboard/public/css/sticky-footer-navbar.css deleted file mode 100644 index 2bab521..0000000 --- a/dashboard/public/css/sticky-footer-navbar.css +++ /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. - */ - -html { - position: relative; - min-height: 100%; -} -body { - margin-bottom: 60px; -} - -.content { - padding-bottom: 90px; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - height: 60px; - background-color: #f5f5f5; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/css/tags.css ---------------------------------------------------------------------- diff --git a/dashboard/public/css/tags.css b/dashboard/public/css/tags.css deleted file mode 100644 index 1d55592..0000000 --- a/dashboard/public/css/tags.css +++ /dev/null @@ -1,122 +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. - */ - -.add-tag { - margin-top: -50px; -} -.inputs input { - height: 50px; - border-radius: 0px; - border: 1px solid #e3e3e3; - color: #414141; - box-shadow: none; -} -.inputs .control-label { - padding: 15px; - padding-top: 15px !important; -} -.inputs button.addAttr, -.inputs button.saveAttr { - height: 40px; - border-radius: 4px; - border: 1px solid #FFFFFF; - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - font-weight: bold; -} -.inputs button.addAttr { - background-color: #ff8e00; -} -.inputs pre { - border: 0; - border-top: 1px solid #ddd; - border-radius: 0; - margin-bottom: 0; - background-color: #dff0d8; - border-color: #d6e9c6; -} -.inputs button.remove { - position: absolute; - right: 28px; - bottom: 12px; - color: #FFFFFF; - border: 0; - border-radius: 4px; - background-color: #a94442; -} -.app-form .panel { - border-radius: 0 !important; -} -.app-form .panel-footer { - margin-bottom: 0; -} -.app-form .panel-body { - padding-bottom: 0; -} -.input-spacing { - padding-bottom: 10px!important; -} -.create-tag-entity .modal-footer { - border-top: 0; -} -.tag-list { - border: 1px solid #ddd; - padding: 10px; - background-color: #F5F5F5; -} -.tag-list ul { - padding-left: 0px; -} -.error { - color: red; -} -.tag-list ul li { - display: inline; - line-height: 30px; - border: none; - padding: 2px; - background-color: inherit; - padding-right: 20px !important; -} -.add-tag { - text-align: center; -} -.add-tag img { - cursor: pointer; -} -.search-results td { - border: 0; -} -.tag-align { - margin-top: 14px; -} -.tags-added { - display: inline; -} -.no-tags { - font-size: 24px; - font-weight: bold; - text-align: center; -} - -.mtop3 { - margin-top: 3px; -} -.mrt-8 { - margin-right: -8px; -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/ApacheAtlasLogo.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/ApacheAtlasLogo.png b/dashboard/public/img/ApacheAtlasLogo.png deleted file mode 100644 index 50c0ffd..0000000 Binary files a/dashboard/public/img/ApacheAtlasLogo.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/addTag.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/addTag.png b/dashboard/public/img/addTag.png deleted file mode 100644 index 5b012d5..0000000 Binary files a/dashboard/public/img/addTag.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/favicon.ico ---------------------------------------------------------------------- diff --git a/dashboard/public/img/favicon.ico b/dashboard/public/img/favicon.ico deleted file mode 100644 index f0c22ad..0000000 Binary files a/dashboard/public/img/favicon.ico and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/loader.gif ---------------------------------------------------------------------- diff --git a/dashboard/public/img/loader.gif b/dashboard/public/img/loader.gif deleted file mode 100644 index 72a9b35..0000000 Binary files a/dashboard/public/img/loader.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/logo-green.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/logo-green.png b/dashboard/public/img/logo-green.png deleted file mode 100644 index fc3f234..0000000 Binary files a/dashboard/public/img/logo-green.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/process.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/process.png b/dashboard/public/img/process.png deleted file mode 100644 index ec841af..0000000 Binary files a/dashboard/public/img/process.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/process1.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/process1.png b/dashboard/public/img/process1.png deleted file mode 100644 index aeb123e..0000000 Binary files a/dashboard/public/img/process1.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/refresh.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/refresh.png b/dashboard/public/img/refresh.png deleted file mode 100644 index 52ab75e..0000000 Binary files a/dashboard/public/img/refresh.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/select_arrow_img.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/select_arrow_img.png b/dashboard/public/img/select_arrow_img.png deleted file mode 100644 index af272e6..0000000 Binary files a/dashboard/public/img/select_arrow_img.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/spinner.gif ---------------------------------------------------------------------- diff --git a/dashboard/public/img/spinner.gif b/dashboard/public/img/spinner.gif deleted file mode 100644 index 06fec2a..0000000 Binary files a/dashboard/public/img/spinner.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/tableicon.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/tableicon.png b/dashboard/public/img/tableicon.png deleted file mode 100644 index d56d328..0000000 Binary files a/dashboard/public/img/tableicon.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/img/tableicon1.png ---------------------------------------------------------------------- diff --git a/dashboard/public/img/tableicon1.png b/dashboard/public/img/tableicon1.png deleted file mode 100644 index 6c9a966..0000000 Binary files a/dashboard/public/img/tableicon1.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/index.html ---------------------------------------------------------------------- diff --git a/dashboard/public/index.html b/dashboard/public/index.html deleted file mode 100644 index cfd4e6d..0000000 --- a/dashboard/public/index.html +++ /dev/null @@ -1,76 +0,0 @@ -<!doctype html> -<!-- - ~ 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. - --> - -<html lang="en" xmlns="http://www.w3.org/1999/xhtml" itemscope="itemscope" itemtype="http://schema.org/Product"> -<head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta name="viewport" content="width=device-width,initial-scale=1"> - - <title>Apache Atlas</title> - <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> - - - <link href="/img/favicon.ico" rel="shortcut icon" type="image/x-icon"> - - <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css"> - <link rel="stylesheet" href="/css/sticky-footer-navbar.css"> - <link rel="stylesheet" href="/css/common.css"> - <link rel="stylesheet" href="/css/details.css"> - <link rel="stylesheet" href="/css/lineage.css"> - <link rel="stylesheet" href="/css/tags.css"> - <link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.css"> - <link rel="stylesheet" href="/lib/jquery-ui/themes/ui-lightness/jquery-ui.css"> - </head> - - -<link href="img/favicon.ico" rel="shortcut icon" type="image/x-icon"> -<body> -<header class="navbar navbar-static-top navbar-top" data-role="navigation"> - <div class="container" data-ng-include="'/modules/home/views/header.html'"></div> -</header> -<div class="content container"> - <div data-ng-include="'/modules/notification/views/notifications.html'"></div> - <div class="col-lg-2 padding0" data-ng-include="'/modules/navigation/views/navigation.html'" ng-class="leftNav ? 'hide' : ''" ></div> - <div data-ui-view class="ngView"></div> -</div> -<footer class="footer navbar-bottom"> - <div class="container"> - <p align="right">Powered by<img src="../img/logo-green.png"></p> - </div> -</footer> - -<script src="/lib/jquery/dist/jquery.js"></script> -<script src="/lib/angular/angular.js"></script> -<script src="/lib/bootstrap/dist/js/bootstrap.js"></script> -<script src="/lib/angular-bootstrap/ui-bootstrap-tpls.js"></script> -<script src="/lib/angular-cookies/angular-cookies.js"></script> -<script src="/lib/angular-resource/angular-resource.js"></script> -<script src="/lib/angular-route/angular-route.js"></script> -<script src="/lib/angular-sanitize/angular-sanitize.js"></script> -<script src="/lib/angular-ui-router/release/angular-ui-router.js"></script> -<script src="/lib/angular-ui-utils/ui-utils.js"></script> -<script src="/lib/lodash/lodash.js"></script> -<script src="/lib/d3/d3.js"></script> -<script src="/lib/d3-tip/index.js"></script> -<script src="/lib/jquery-ui/ui/jquery-ui.js"></script> - -<script src="/js/app.min.js"></script> -</body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/js/app.js ---------------------------------------------------------------------- diff --git a/dashboard/public/js/app.js b/dashboard/public/js/app.js deleted file mode 100644 index 713952e..0000000 --- a/dashboard/public/js/app.js +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -'use strict'; - -angular.module('dgc', ['ngCookies', - 'ngResource', - 'ui.bootstrap', - 'ui.router', - 'dgc.system', - 'dgc.home', - 'dgc.about', - 'dgc.search', - 'dgc.navigation', - 'dgc.tags', - 'dgc.tags.instance', - 'dgc.tags.definition' -]); - -angular.module('dgc.system', ['dgc.system.notification']); - -angular.module('dgc').factory('lodash', ['$window', - function($window) { - return $window._; - } -]).factory('d3', ['$window', - function($window) { - return $window.d3; - } -]).factory('global', ['$window', '$location', - function($window, $location) { - return { - user: $location.search()['user.name'], - authenticated: !!$window.user, - renderErrors: $window.renderErrors - }; - } -]).factory('httpInterceptor', ['global', function(global) { - return { - 'request': function(config) { - if (config.url && (config.url.indexOf(baseUrl) === 0 || config.url.indexOf(baseUrl) === 0)) { - config.params = config.params || {}; - config.params['user.name'] = global.user; - } - return config; - } - }; -}]).config(['$httpProvider', function($httpProvider) { - $httpProvider.interceptors.push('httpInterceptor'); -}]).run(['$rootScope', 'global', 'notificationService', 'lodash', 'd3', function($rootScope, global, notificationService, lodash, d3) { - var errors = global.renderErrors; - if (angular.isArray(errors) || angular.isObject(errors)) { - lodash.forEach(errors, function(err) { - err = angular.isObject(err) ? err : { - message: err - }; - err.timeout = false; - notificationService.error(err); - }); - } else { - if (errors) { - errors.timeout = false; - notificationService.error(errors); - } - } - $rootScope.$on('$stateChangeStart', function() { - d3.selectAll('.d3-tip').remove(); - }); - - $rootScope.updateTags = function(added, obj) { - if (added) { - $rootScope.$broadcast('add_Tag', obj); - } - }; - - $rootScope.loadTraits = function() { - $rootScope.$broadcast('load_Traits'); - }; - - $rootScope.$on('$stateChangeSuccess', function(evt, to, toParams, from) { - if (from.name !== '' && to.name === 'search' && to.name !== from.name && typeof to.parent === 'undefined' && typeof from.parent === 'undefined') { - $rootScope.loadTraits(); - } else if (from.name === '' && to.name === 'search') { - $rootScope.loadTraits(); - } - - if (typeof to.parent === 'undefined') { - if (to.name !== 'search') { - $rootScope.leftNav = true; - } else { - $rootScope.leftNav = false; - } - } - }); - -}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/js/config.js ---------------------------------------------------------------------- diff --git a/dashboard/public/js/config.js b/dashboard/public/js/config.js deleted file mode 100644 index 6c66c7f..0000000 --- a/dashboard/public/js/config.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -'use strict'; -var host = '', - port = '', - baseUrl = '/api/atlas/', - apiHost = (host !== '') ? host + ':' + port + baseUrl : baseUrl; - -angular.module('dgc').constant('atlasConfig', { - API_ENDPOINTS: { - ABOUT: apiHost + 'admin/version', - GET_ENTITY: apiHost + 'entities', - ATTACH_DETACH_TRAITS: 'traits', - SCHEMA_LINEAGE_PREPEND: apiHost + 'lineage/hive/table', - SCHEMA_APPEND: 'schema', - GRAPH: 'graph', - TRAITS_LIST: apiHost + 'types?type=TRAIT', - SEARCH: apiHost + 'discovery/search/', - CREATE_TRAIT: apiHost + 'types' - }, - SEARCH_TYPE: { - dsl: { - value: 'dsl', - displayText: 'DSL', - placeholder: 'Search using a DSL query: e.g. DataSet where name="sales_fact"' - }, - fulltext: { - value: 'fulltext', - displayText: 'Text', - placeholder: 'Search using a query string: e.g. sales_fact' - } - } -}); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/js/init.js ---------------------------------------------------------------------- diff --git a/dashboard/public/js/init.js b/dashboard/public/js/init.js deleted file mode 100644 index aa99935..0000000 --- a/dashboard/public/js/init.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -'use strict'; - -angular.element(document).ready(function() { - /* Fixing facebook bug with redirect */ - if (window.location.hash === '#_=_') window.location.hash = '#!'; - - //Then init the app - angular.bootstrap(document, ['dgc'], { - strictDi: true - }); -}); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/js/routes.js ---------------------------------------------------------------------- diff --git a/dashboard/public/js/routes.js b/dashboard/public/js/routes.js deleted file mode 100644 index 8d0a3ac..0000000 --- a/dashboard/public/js/routes.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. - */ - -'use strict'; - -//Setting up route -angular.module('dgc').config(['$locationProvider', '$urlRouterProvider', - function($locationProvider, $urlRouterProvider) { - $locationProvider.hashPrefix('!'); - // For unmatched routes: - $urlRouterProvider.otherwise('/search'); - } -]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/about/aboutController.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/about/aboutController.js b/dashboard/public/modules/about/aboutController.js deleted file mode 100644 index 30ecaea..0000000 --- a/dashboard/public/modules/about/aboutController.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. - */ - -'use strict'; - -angular.module('dgc.about').controller('aboutController', ['$scope', 'aboutResource', function($scope, aboutResource) { - - aboutResource.get(function(data) { - $scope.versionInfo = data; - }); - -}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/about/aboutModule.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/about/aboutModule.js b/dashboard/public/modules/about/aboutModule.js deleted file mode 100644 index 690994b..0000000 --- a/dashboard/public/modules/about/aboutModule.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -'use strict'; - -angular.module('dgc.about', []); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/about/aboutResource.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/about/aboutResource.js b/dashboard/public/modules/about/aboutResource.js deleted file mode 100644 index ec3fdd8..0000000 --- a/dashboard/public/modules/about/aboutResource.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. - */ - -'use strict'; - -angular.module('dgc.about').factory('aboutResource', ['$resource', 'atlasConfig', function($resource, atlasConfig) { - return $resource(atlasConfig.API_ENDPOINTS.ABOUT, {}); -}]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/about/views/about.html ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/about/views/about.html b/dashboard/public/modules/about/views/about.html deleted file mode 100644 index 2915b35..0000000 --- a/dashboard/public/modules/about/views/about.html +++ /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. - --> - - -<div class="modal-header"> - <h3 class="modal-title title-bold">About</h3> -</div> -<div class="modal-body"> - <div class="row"> - <div class="col-md-4"> - <img src="../img/ApacheAtlasLogo.png" class="img-responsive"> - </div> - <div class="col-md-8"> - <h2 class="title-bold">Apache Atlas</h2> - <p><b>Version : </b> {{versionInfo.Version}}</p> - </br> - <p class="text-info">Get involved!</p> - <p class="text-info"><a href="http://apache.org/licenses/LICENSE-2.0" target="_blank">Licensed under the Apache License Version 2.0</a></p> - </div> - </div> -</div> -<div class="modal-footer"> - <button class="btn btn-success" ng-click="$dismiss()">OK</button> -</div> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/details/detailsController.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/details/detailsController.js b/dashboard/public/modules/details/detailsController.js deleted file mode 100644 index 0c09cd2..0000000 --- a/dashboard/public/modules/details/detailsController.js +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -'use strict'; - -angular.module('dgc.details').controller('detailsController', ['$window', '$scope', '$state', '$stateParams', 'detailsResource', 'schemaResource', - function($window, $scope, $state, $stateParams, detailsResource, schemaResource) { - - $scope.tableName = false; - $scope.isTable = false; - $scope.isLineage = false; - - detailsResource.get({ - id: $stateParams.id - - }, function(data) { - - $scope.tableName = data.values.name; - $scope.onActivate('io'); - $scope.isTags = (typeof data.traits !== 'undefined' && typeof data.traits === 'object') ? true : false; - - if (data && data.values) { - var getName = function(aaa, attr) { - detailsResource.get({ - id: attr.id - }, function(data1) { - if (data1.values && data1.values.name) { - attr.name = data1.values.name; - } - }); - }; - - for (var aaa in data.values) { - if (typeof data.values[aaa] === 'object' && data.values[aaa] !== null && data.values[aaa].id && typeof data.values[aaa].id === 'string') { - data.values[aaa].name = data.values[aaa].id; - getName(aaa, data.values[aaa]); - } - if (typeof data.values[aaa] === 'object' && data.values[aaa] !== null && data.values[aaa].id && typeof data.values[aaa].id === 'object') { - data.values[aaa].id.name = data.values[aaa].id.id; - getName(aaa, data.values[aaa].id); - } - if (typeof data.values[aaa] === 'object' && angular.isArray(data.values[aaa]) === true) { - var arrObj = data.values[aaa]; - for (var a = 0; a < arrObj.length; a++) { - if (typeof arrObj[a].id === 'string') { - arrObj[a].name = arrObj[a].id; - getName(arrObj[a], arrObj[a]); - } - } - } - } - } - - $scope.details = data; - if (data && data.values && data.values.name && data.values.name !== "") { - schemaResource.get({ - tableName: data.values.name - }, function(data1) { - if (data1.results) { - $scope.schema = data1.results.rows; - $scope.isSchema = (data1.results.rows && data1.results.rows.length > 0) ? true : false; - for (var t = 0; t < data1.results.rows.length; t++) { - if (data1.results.rows[t].$id$) { - $scope.isTraitId = true; - } - if (data1.results.rows[t].type) { - $scope.isHiveSchema = true; - } - if ($scope.isTraitId && $scope.isHiveSchema) { - break; - } - } - } - }); - } - }); - - $scope.$on('show_lineage', function() { - $scope.isLineage = true; - }); - - $scope.isNumber = angular.isNumber; - $scope.isObject = angular.isObject; - $scope.isString = angular.isString; - $scope.isArray = angular.isArray; - $scope.onActivate = function tabActivate(tabname) { - $scope.$broadcast('render-lineage', { - type: tabname, - tableName: $scope.tableName, - guid: $stateParams.id - }); - }; - - $scope.openAddTagHome = function(traitId) { - $state.go('addTagDetails', { - tId: traitId - }); - }; - - $scope.goDetails = function(id) { - $state.go("details", { - id: id - }); - }; - - $scope.goBack = function() { - $window.history.back(); - }; - } -]); http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/a05f752d/dashboard/public/modules/details/detailsModule.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/details/detailsModule.js b/dashboard/public/modules/details/detailsModule.js deleted file mode 100644 index 987750a..0000000 --- a/dashboard/public/modules/details/detailsModule.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -'use strict'; - -angular.module('dgc.details', ['dgc.lineage']);
