diff --git a/zeppelin-distribution/src/bin_license/LICENSE b/zeppelin-distribution/src/bin_license/LICENSE index 8b79486f414..de3c8174551 100644 --- a/zeppelin-distribution/src/bin_license/LICENSE +++ b/zeppelin-distribution/src/bin_license/LICENSE @@ -266,6 +266,7 @@ The text of each license is also included at licenses/LICENSE-[project]-[version (The MIT License) Java String Similarity 0.12 (info.debatty:java-string-similarity:0.12 - https://github.com/tdebatty/java-string-similarity) (The MIT License) Java LSH 0.10 (info.debatty:java-lsh:0.10 - https://github.com/tdebatty/java-LSH) (The MIT License) JSoup 1.6.1 (org.jsoup:jsoup:1.6.1 - https://github.com/jhy/jsoup/) + (The MIT License) ngclipboard v1.1.1 (https://github.com/sachinchoolur/ngclipboard) - https://github.com/sachinchoolur/ngclipboard/blob/1.1.1/LICENSE) ======================================================================== BSD-style licenses diff --git a/zeppelin-web/Gruntfile.js b/zeppelin-web/Gruntfile.js index 3aa07c00343..eeb4c6059bd 100644 --- a/zeppelin-web/Gruntfile.js +++ b/zeppelin-web/Gruntfile.js @@ -493,6 +493,11 @@ module.exports = function(grunt) { cwd: 'bower_components/jquery-ui/themes/base/images', src: '{,*/}*.{png,jpg,jpeg,gif}', dest: '.tmp/styles/images' + }, { + expand: true, + cwd: 'bower_components/ngclipboard', + src: 'dist/**', + dest: '.tmp' }, { expand: true, cwd: 'bower_components/MathJax', @@ -546,6 +551,11 @@ module.exports = function(grunt) { cwd: 'bower_components/jquery-ui/themes/base/images', src: '{,*/}*.{png,jpg,jpeg,gif}', dest: '<%= yeoman.dist %>/styles/images' + }, { + expand: true, + cwd: 'bower_components/ngclipboard', + src: 'dist/**', + dest: '<%= yeoman.dist %>' }, { expand: true, cwd: 'bower_components/MathJax', diff --git a/zeppelin-web/bower.json b/zeppelin-web/bower.json index 06d01451b8f..7c70110d0b1 100644 --- a/zeppelin-web/bower.json +++ b/zeppelin-web/bower.json @@ -34,7 +34,8 @@ "moment-duration-format": "^1.3.0", "select2": "^4.0.3", "github-markdown-css": "^2.4.0", - "MathJax": "2.7.0" + "MathJax": "2.7.0", + "ngclipboard": "^1.1.1" }, "devDependencies": { "angular-mocks": "1.5.0" diff --git a/zeppelin-web/src/app/app.js b/zeppelin-web/src/app/app.js index c1a73c746dc..11456fd3d30 100644 --- a/zeppelin-web/src/app/app.js +++ b/zeppelin-web/src/app/app.js @@ -33,7 +33,8 @@ 'xeditable', 'ngToast', 'focus-if', - 'ngResource' + 'ngResource', + 'ngclipboard' ]) .filter('breakFilter', function() { return function(text) { diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph-control.html b/zeppelin-web/src/app/notebook/paragraph/paragraph-control.html index 699ef4ceca3..40fe0061819 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph-control.html +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph-control.html @@ -39,8 +39,15 @@ type="button">