init commit
This commit is contained in:
35
plugins/xframework/assets/bower_components/ngclipboard/.bower.json
vendored
Normal file
35
plugins/xframework/assets/bower_components/ngclipboard/.bower.json
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"name": "ngclipboard",
|
||||
"version": "1.1.3",
|
||||
"homepage": "https://github.com/sachinchoolur/ngclipboard",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"Sachin N <sachi77n@gmail.com>"
|
||||
],
|
||||
"description": "Angularjs directive for clipboard.js",
|
||||
"main": "dist/ngclipboard.js",
|
||||
"keywords": [
|
||||
"ngclipboard",
|
||||
"copy",
|
||||
"cut",
|
||||
"clipboard",
|
||||
"angularjs"
|
||||
],
|
||||
"dependencies": {
|
||||
"clipboard": "~1.5.5",
|
||||
"angular": ">=1.2.0"
|
||||
},
|
||||
"ignore": [
|
||||
"README.md",
|
||||
"demo"
|
||||
],
|
||||
"_release": "1.1.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.1.3",
|
||||
"commit": "b8fe8f4d94b1f6167c54d0b5f6f3fa1c4aab5a99"
|
||||
},
|
||||
"_source": "https://github.com/sachinchoolur/ngclipboard.git",
|
||||
"_target": "^1.1.1",
|
||||
"_originalSource": "ngclipboard"
|
||||
}
|
16
plugins/xframework/assets/bower_components/ngclipboard/.editorconfig
vendored
Normal file
16
plugins/xframework/assets/bower_components/ngclipboard/.editorconfig
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[package.json]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
2
plugins/xframework/assets/bower_components/ngclipboard/.gitignore
vendored
Normal file
2
plugins/xframework/assets/bower_components/ngclipboard/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/node_modules/
|
||||
/bower_components/
|
7
plugins/xframework/assets/bower_components/ngclipboard/.jscsrc
vendored
Normal file
7
plugins/xframework/assets/bower_components/ngclipboard/.jscsrc
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"preset": "airbnb",
|
||||
"validateIndentation": 4,
|
||||
"disallowTrailingComma": true,
|
||||
"requireTrailingComma": false,
|
||||
"excludeFiles": ["node_modules/**"]
|
||||
}
|
18
plugins/xframework/assets/bower_components/ngclipboard/.jshintrc
vendored
Normal file
18
plugins/xframework/assets/bower_components/ngclipboard/.jshintrc
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"node": true,
|
||||
"browser": true,
|
||||
"esnext": true,
|
||||
"bitwise": true,
|
||||
"camelcase": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"indent": 2,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"quotmark": "single",
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"strict": true
|
||||
}
|
6
plugins/xframework/assets/bower_components/ngclipboard/.travis.yml
vendored
Normal file
6
plugins/xframework/assets/bower_components/ngclipboard/.travis.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '0.10'
|
||||
before_script:
|
||||
- 'npm install -g bower grunt-cli'
|
||||
- 'bower install'
|
89
plugins/xframework/assets/bower_components/ngclipboard/Gruntfile.js
vendored
Normal file
89
plugins/xframework/assets/bower_components/ngclipboard/Gruntfile.js
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
'use strict';
|
||||
module.exports = function(grunt) {
|
||||
// Load all grunt tasks
|
||||
require('load-grunt-tasks')(grunt);
|
||||
// Show elapsed time at the end
|
||||
require('time-grunt')(grunt);
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
// Metadata.
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
|
||||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
|
||||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
|
||||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
|
||||
' Licensed MIT */\n',
|
||||
// Task configuration.
|
||||
clean: {
|
||||
files: ['dist']
|
||||
},
|
||||
concat: {
|
||||
options: {
|
||||
banner: '<%= banner %>',
|
||||
stripBanners: true
|
||||
},
|
||||
dist: {
|
||||
src: ['src/<%= pkg.name %>.js'],
|
||||
dest: 'dist/<%= pkg.name %>.js'
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '<%= banner %>'
|
||||
},
|
||||
dist: {
|
||||
src: '<%= concat.dist.dest %>',
|
||||
dest: 'dist/<%= pkg.name %>.min.js'
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
reporter: require('jshint-stylish')
|
||||
},
|
||||
gruntfile: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
src: 'Gruntfile.js'
|
||||
},
|
||||
src: {
|
||||
options: {
|
||||
jshintrc: 'src/.jshintrc'
|
||||
},
|
||||
src: ['src/**/*.js']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
gruntfile: {
|
||||
files: '<%= jshint.gruntfile.src %>',
|
||||
tasks: ['jshint:gruntfile']
|
||||
},
|
||||
src: {
|
||||
files: '<%= jshint.src.src %>',
|
||||
tasks: ['jshint:src']
|
||||
},
|
||||
test: {
|
||||
files: '<%= jshint.test.src %>',
|
||||
tasks: ['jshint:test']
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
server: {
|
||||
options: {
|
||||
hostname: '*',
|
||||
port: 9000
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', ['jshint', 'connect', 'clean', 'concat', 'uglify']);
|
||||
grunt.registerTask('server', function() {
|
||||
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
|
||||
grunt.task.run(['serve']);
|
||||
});
|
||||
grunt.registerTask('serve', ['connect', 'watch']);
|
||||
grunt.registerTask('test', ['jshint', 'connect']);
|
||||
};
|
22
plugins/xframework/assets/bower_components/ngclipboard/LICENSE
vendored
Normal file
22
plugins/xframework/assets/bower_components/ngclipboard/LICENSE
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Sachin N
|
||||
|
||||
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.
|
||||
|
26
plugins/xframework/assets/bower_components/ngclipboard/bower.json
vendored
Normal file
26
plugins/xframework/assets/bower_components/ngclipboard/bower.json
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "ngclipboard",
|
||||
"version": "1.1.3",
|
||||
"homepage": "https://github.com/sachinchoolur/ngclipboard",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"Sachin N <sachi77n@gmail.com>"
|
||||
],
|
||||
"description": "Angularjs directive for clipboard.js",
|
||||
"main": "dist/ngclipboard.js",
|
||||
"keywords": [
|
||||
"ngclipboard",
|
||||
"copy",
|
||||
"cut",
|
||||
"clipboard",
|
||||
"angularjs"
|
||||
],
|
||||
"dependencies": {
|
||||
"clipboard": "~1.5.5",
|
||||
"angular": ">=1.2.0"
|
||||
},
|
||||
"ignore": [
|
||||
"README.md",
|
||||
"demo"
|
||||
]
|
||||
}
|
32
plugins/xframework/assets/bower_components/ngclipboard/contributing.md
vendored
Normal file
32
plugins/xframework/assets/bower_components/ngclipboard/contributing.md
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
# Contributing
|
||||
|
||||
## Important notes
|
||||
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!
|
||||
|
||||
### Code style
|
||||
Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.**
|
||||
|
||||
### PhantomJS
|
||||
While Grunt can run the included unit tests via [PhantomJS](http://phantomjs.org/), this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers.
|
||||
|
||||
## Modifying the code
|
||||
First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed.
|
||||
|
||||
Test that Grunt's CLI and Bower are installed by running `grunt --version` and `bower --version`. If the commands aren't found, run `npm install -g grunt-cli bower`. For more information about installing the tools, see the [getting started with Grunt guide](http://gruntjs.com/getting-started) or [bower.io](http://bower.io/) respectively.
|
||||
|
||||
1. Fork and clone the repo.
|
||||
1. Run `npm install` to install all build dependencies (including Grunt).
|
||||
1. Run `bower install` to install the front-end dependencies.
|
||||
1. Run `grunt` to grunt this project.
|
||||
|
||||
Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken.
|
||||
|
||||
## Submitting pull requests
|
||||
|
||||
1. Create a new branch, please don't work in your `master` branch directly.
|
||||
1. Add failing tests for the change you want to make. Run `grunt` to see the tests fail.
|
||||
1. Fix stuff.
|
||||
1. Run `grunt` to see if the tests pass. Repeat steps 2-4 until done.
|
||||
1. Open `test/*.html` unit test file(s) in actual browser to ensure tests pass everywhere.
|
||||
1. Update the documentation to reflect any changes.
|
||||
1. Push to your fork and submit a pull request.
|
52
plugins/xframework/assets/bower_components/ngclipboard/dist/ngclipboard.js
vendored
Normal file
52
plugins/xframework/assets/bower_components/ngclipboard/dist/ngclipboard.js
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/*! ngclipboard - v1.1.3 - 2017-10-31
|
||||
* https://github.com/sachinchoolur/ngclipboard
|
||||
* Copyright (c) 2017 Sachin; Licensed MIT */
|
||||
(function() {
|
||||
'use strict';
|
||||
var MODULE_NAME = 'ngclipboard';
|
||||
var angular, Clipboard;
|
||||
|
||||
// Check for CommonJS support
|
||||
if (typeof module === 'object' && module.exports) {
|
||||
angular = require('angular');
|
||||
Clipboard = require('clipboard');
|
||||
module.exports = MODULE_NAME;
|
||||
} else {
|
||||
angular = window.angular;
|
||||
Clipboard = window.Clipboard;
|
||||
}
|
||||
|
||||
angular.module(MODULE_NAME, []).directive('ngclipboard', function() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope: {
|
||||
ngclipboardSuccess: '&',
|
||||
ngclipboardError: '&'
|
||||
},
|
||||
link: function(scope, element) {
|
||||
var clipboard = new Clipboard(element[0]);
|
||||
|
||||
clipboard.on('success', function(e) {
|
||||
scope.$apply(function () {
|
||||
scope.ngclipboardSuccess({
|
||||
e: e
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
clipboard.on('error', function(e) {
|
||||
scope.$apply(function () {
|
||||
scope.ngclipboardError({
|
||||
e: e
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
element.on('$destroy', function() {
|
||||
clipboard.destroy();
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
})();
|
4
plugins/xframework/assets/bower_components/ngclipboard/dist/ngclipboard.min.js
vendored
Normal file
4
plugins/xframework/assets/bower_components/ngclipboard/dist/ngclipboard.min.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/*! ngclipboard - v1.1.3 - 2017-10-31
|
||||
* https://github.com/sachinchoolur/ngclipboard
|
||||
* Copyright (c) 2017 Sachin; Licensed MIT */
|
||||
!function(){"use strict";var a,b,c="ngclipboard";"object"==typeof module&&module.exports?(a=require("angular"),b=require("clipboard"),module.exports=c):(a=window.angular,b=window.Clipboard),a.module(c,[]).directive("ngclipboard",function(){return{restrict:"A",scope:{ngclipboardSuccess:"&",ngclipboardError:"&"},link:function(a,c){var d=new b(c[0]);d.on("success",function(b){a.$apply(function(){a.ngclipboardSuccess({e:b})})}),d.on("error",function(b){a.$apply(function(){a.ngclipboardError({e:b})})}),c.on("$destroy",function(){d.destroy()})}}})}();
|
51
plugins/xframework/assets/bower_components/ngclipboard/package.json
vendored
Normal file
51
plugins/xframework/assets/bower_components/ngclipboard/package.json
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "ngclipboard",
|
||||
"version": "1.1.3",
|
||||
"description": "Angularjs directive for clipboard.js",
|
||||
"keywords": [
|
||||
"ngclipboard",
|
||||
"copy",
|
||||
"cut",
|
||||
"clipboard",
|
||||
"angularjs"
|
||||
],
|
||||
"homepage": "https://github.com/sachinchoolur/ngclipboard",
|
||||
"bugs": {
|
||||
"url": "https://github.com/sachinchoolur/ngclipboard/issues",
|
||||
"email": "sachi77n@gmail.com"
|
||||
},
|
||||
"author": {
|
||||
"name": "Sachin",
|
||||
"email": "sachi77n@gmail.com",
|
||||
"url": "https://github.com/sachinchoolur"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:sachinchoolur/ngclipboard.git"
|
||||
},
|
||||
"main": "dist/ngclipboard.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "grunt"
|
||||
},
|
||||
"dependencies": {
|
||||
"clipboard": "~1.5.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"angular": ">=1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"angular": ">=1.2.0",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-clean": "^0.6.0",
|
||||
"grunt-contrib-concat": "^0.5.0",
|
||||
"grunt-contrib-connect": "^0.9.0",
|
||||
"grunt-contrib-jshint": "^0.10.0",
|
||||
"grunt-contrib-qunit": "^0.5.1",
|
||||
"grunt-contrib-uglify": "^0.7.0",
|
||||
"grunt-contrib-watch": "^0.6.1",
|
||||
"jshint-stylish": "^1.0.0",
|
||||
"load-grunt-tasks": "^2.0.0",
|
||||
"time-grunt": "^1.0.0"
|
||||
}
|
||||
}
|
20
plugins/xframework/assets/bower_components/ngclipboard/src/.jshintrc
vendored
Normal file
20
plugins/xframework/assets/bower_components/ngclipboard/src/.jshintrc
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"browser": true,
|
||||
"predef": [
|
||||
"angular",
|
||||
"Clipboard",
|
||||
"require",
|
||||
"module"
|
||||
]
|
||||
}
|
49
plugins/xframework/assets/bower_components/ngclipboard/src/ngclipboard.js
vendored
Normal file
49
plugins/xframework/assets/bower_components/ngclipboard/src/ngclipboard.js
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
var MODULE_NAME = 'ngclipboard';
|
||||
var angular, Clipboard;
|
||||
|
||||
// Check for CommonJS support
|
||||
if (typeof module === 'object' && module.exports) {
|
||||
angular = require('angular');
|
||||
Clipboard = require('clipboard');
|
||||
module.exports = MODULE_NAME;
|
||||
} else {
|
||||
angular = window.angular;
|
||||
Clipboard = window.Clipboard;
|
||||
}
|
||||
|
||||
angular.module(MODULE_NAME, []).directive('ngclipboard', function() {
|
||||
return {
|
||||
restrict: 'A',
|
||||
scope: {
|
||||
ngclipboardSuccess: '&',
|
||||
ngclipboardError: '&'
|
||||
},
|
||||
link: function(scope, element) {
|
||||
var clipboard = new Clipboard(element[0]);
|
||||
|
||||
clipboard.on('success', function(e) {
|
||||
scope.$apply(function () {
|
||||
scope.ngclipboardSuccess({
|
||||
e: e
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
clipboard.on('error', function(e) {
|
||||
scope.$apply(function () {
|
||||
scope.ngclipboardError({
|
||||
e: e
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
element.on('$destroy', function() {
|
||||
clipboard.destroy();
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
})();
|
1
plugins/xframework/assets/bower_components/ngclipboard/test/test.js
vendored
Normal file
1
plugins/xframework/assets/bower_components/ngclipboard/test/test.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
|
Reference in New Issue
Block a user