Skip to content

Commit

Permalink
Merge pull request elastic#7994 from rashidkpc/migrate/timelion
Browse files Browse the repository at this point in the history
Add timelion to kibana core
  • Loading branch information
Rashid Khan committed Sep 2, 2016
2 parents d94ab0b + 9517745 commit 6aa8ca4
Show file tree
Hide file tree
Showing 379 changed files with 71,034 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

/src/core_plugins/timelion/bower_components
/src/core_plugins/timelion/vendor_components
test/fixtures/scenarios
optimize
test/fixtures/scenarios
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module.exports = function (grunt) {
'<%= root %>/test/**/*.js',
'<%= src %>/**/*.js',
'!<%= src %>/ui/public/angular-bootstrap/**/*.js',
'!<%= src %>/core_plugins/timelion/bower_components/**/*.js',
'!<%= src %>/core_plugins/timelion/vendor_components/**/*.js',
'!<%= src %>/fixtures/**/*.js',
'!<%= root %>/test/fixtures/scenarios/**/*.js'
],
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,20 @@
"webpack": "1.12.1",
"webpack-directory-name-as-main": "1.0.0",
"whatwg-fetch": "0.9.0",
"wreck": "6.2.0"
"wreck": "6.2.0",
"body-parser": "1.12.0",
"glob": "5.0.13",
"node-fetch": "1.3.2",
"pegjs": "0.9.0",
"tinygradient": "0.3.0"
},
"devDependencies": {
"@elastic/eslint-config-kibana": "0.0.3",
"Nonsense": "0.1.2",
"angular-mocks": "1.4.7",
"auto-release-sinon": "1.0.3",
"babel-eslint": "4.1.8",
"chai": "3.5.0",
"chokidar": "1.6.0",
"chromedriver": "2.22.1",
"elasticdump": "2.1.1",
Expand Down Expand Up @@ -200,6 +206,7 @@
"nock": "2.10.0",
"npm": "3.10.3",
"portscanner": "1.0.0",
"proxyquire": "1.7.10",
"simple-git": "1.37.0",
"sinon": "1.17.2",
"source-map": "0.5.6",
Expand Down
14 changes: 14 additions & 0 deletions src/core_plugins/timelion/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false
68 changes: 68 additions & 0 deletions src/core_plugins/timelion/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
parser: babel-eslint

env:
es6: true
amd: true
node: true
browser: true
jasmine: true

rules:
block-scoped-var: 2
camelcase: [ 2, { properties: never } ]
comma-dangle: 0
comma-style: [ 2, last ]
consistent-return: 0
curly: [ 2, multi-line ]
dot-location: [ 2, property ]
dot-notation: [ 2, { allowKeywords: true } ]
eqeqeq: [ 2, allow-null ]
guard-for-in: 2
indent: [ 2, 2, { SwitchCase: 1 } ]
key-spacing: [ 0, { align: value } ]
max-len: [ 2, 140, 2, { ignoreComments: true, ignoreUrls: true } ]
new-cap: [ 2, { capIsNewExceptions: [ Private ] } ]
no-bitwise: 0
no-caller: 2
no-cond-assign: 0
no-debugger: 2
no-empty: 2
no-eval: 2
no-extend-native: 2
no-extra-parens: 0
no-irregular-whitespace: 2
no-iterator: 2
no-loop-func: 2
no-multi-spaces: 0
no-multi-str: 2
no-nested-ternary: 2
no-new: 0
no-path-concat: 0
no-proto: 2
no-return-assign: 0
no-script-url: 2
no-sequences: 2
no-shadow: 0
no-trailing-spaces: 2
no-undef: 2
no-underscore-dangle: 0
no-unused-expressions: 0
no-unused-vars: 0
no-use-before-define: [ 2, nofunc ]
no-with: 2
one-var: [ 2, never ]
quotes: [ 2, single ]
semi-spacing: [ 2, { before: false, after: true } ]
semi: [ 2, always ]
space-after-keywords: [ 2, always ]
space-before-blocks: [ 2, always ]
space-before-function-paren: [ 2, { anonymous: always, named: never } ]
space-in-parens: [ 2, never ]
space-infix-ops: [ 2, { int32Hint: false } ]
space-return-throw-case: [ 2 ]
space-unary-ops: [ 2 ]
strict: [ 2, never ]
valid-typeof: 2
wrap-iife: [ 2, outside ]
yoda: 0
8 changes: 8 additions & 0 deletions src/core_plugins/timelion/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "timelion",
"version": "0.0.0",
"dependencies": {
"flot": "~0.8.3",
"angular-sortable-view": "~0.0.13"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "angular-sortable-view",
"version": "0.0.13",
"homepage": "http://kamilkp.github.io/angular-sortable-view/",
"authors": [
"Kamil Pękala <[email protected]>"
],
"description": "Fully declarative (multi)sortable for AngularJS",
"main": "./src/angular-sortable-view.js",
"keywords": [
"angularjs",
"sortable",
"ui-sortable",
"sort",
"sorting",
"declarative"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
"lib"
],
"_release": "0.0.13",
"_resolution": {
"type": "version",
"tag": "v0.0.13",
"commit": "187250cb1cfbd25096185049bded7bcedeab4dbd"
},
"_source": "git://github.com/kamilkp/angular-sortable-view.git",
"_target": "~0.0.13",
"_originalSource": "angular-sortable-view",
"_direct": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
Version 0.0.13 - 2015/01/13
================

* bug fixes

Version 0.0.12 - 2014/12/09
================

* bug fixes

Version 0.0.11 - 2014/11/28
================

* touch support

Version 0.0.9 - 2014/09/11
================

* fixed a bug where `$digest` hasn't been called after `sv-on-start` handler
* added a `sv-on-stop` optional attribute. Function bound there will be called when dragging ended regardless of the fact whether elements have been reordered or not

Version 0.0.8 - 2014/07/15
================

* fixed a bug where nothing within an element without handle could have been clicked


Version 0.0.7 - 2014/07/02
================

You can now use these optional attributes on the element with `sv-root`:
* `sv-on-sort` - The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like: `sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"` where:
<ul>
<li>`$item` is the item in model which has been moved</li>
<li>`$partFrom` is the part from which the $item originated</li>
<li>`$partTo` is the part to which the $item has been moved</li>
<li>`$indexFrom` is the previous index of the $item in $partFrom</li>
<li>`$indedTo` is the index of the $item in $partTo</li>
</ul>
</li>
* `sv-on-start` - The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like: `sv-on-start="bar($item, $part, $index, $helper)"` where:
<ul>
<li>`$item` is the item in model which started being moved</li>
<li>`$part` is the part from which the $item originates</li>
<li>`$index` is the index of the $item in $part</li>
<li>`$helper` is the jqLite/jQuery object of an element that is being dragged around</li>
</ul>
</li>

Version 0.0.6 - 2014/07/01
================

* You can now listen for resorting. An `sv-on-sort` attribute can be now placed on an element with `sv-root`. The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting.

Version 0.0.5 - 2014/06/26
================

* source element for sorting is now detached from DOM instead of giving him `display: none`

Version 0.0.4 - 2014/06/25
================

* Fixed the issue with helper styles
* Dropped the need for the browser to support pointer-events CSS property
* Added the project to the bower registy, it is available to download via `bower install angular-sortable-view`

Version 0.0.3 - 2014/06/11
================

* Added support for custom placeholders
* Better containment handling
* Bug fixes
* BREAKING CHANGE: the module name is now `angular-sortable-view`

Version 0.0.2 - 2014/06/11
================

* Added support for empty lists
* Added support for custom helpers

Version 0.0.1
================

* Support for setting a containment
* Support for multiple sortable lists connected with each other
* Support for specifying a handle element
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = function(grunt){
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
// grunt.loadNpmTasks('grunt-karma');

grunt.initConfig({
uglify: {
target: {
files: {
'src/angular-sortable-view.min.js': ['src/angular-sortable-view.js']
}
},
options: {
banner: '/*\n\tCopyright Kamil Pękala http://github.com/kamilkp\n' +
'\tangular-sortable-view v0.0.13 2015/01/13\n*/\n'
}
},
jshint: {
all: [
'src/angular-sortable-view.js',
'Gruntfile.js'
]
}//,
// karma: {
// unit: {
// configFile: 'karma.conf.js',
// singleRun: true,
// },
// travis: {
// configFile: 'karma.conf.js',
// singleRun: true,
// browsers: [
// 'Firefox'
// ]
// }
// }
});

grunt.registerTask('min', 'Minify javascript source code', 'uglify');
// grunt.registerTask('test', 'Run unit tests', ['jshint', 'min', 'karma:unit']);
// grunt.registerTask('default', ['test']);
// grunt.registerTask('travis', ['jshint', 'min', 'karma:travis']);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 kamilkp

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.
Loading

0 comments on commit 6aa8ca4

Please sign in to comment.