Commit graph

36 commits

Author SHA1 Message Date
Nathan Reese 7c11bd4526
add polyfill for ChildNode remove (#21797) (#21894)
* add polyfill for ChildNode remove

* call polyfill function

* add files as suggested by jbudz

* remove checks around polyfill

* just use polyfill that mozilla recommends

* add MIT license to file

* suffix file with polyfill, update copyright and link to repo

* update notice.txt
2018-08-10 17:20:16 -06:00
Spencer 4f29b323bf
Backport/19383/6.x (#19487)
* [eslint][tslint] require Apache 2.0 license headers

(cherry picked from commit 337fea30b9)

* [kbn-eslint-plugin-license-header] don't try to fix files with hashbangs

(cherry picked from commit db79f1501e)

* [eslint][tslint] autofix license headers
2018-05-28 20:24:23 -07:00
Jenkins CI bc5b51554d Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
Kim Joar Bekkelund a77293f210
Get rid of Lodash mixins (#17737) (#17762)
* Get rid of _.class mixin

* Get rid of _.flattenWith

* Get rid of _.isNumeric

* Get rid of _.toggleInOut

* Get rid of _.onceWithCb

* Get rid of _.callEach

* Get rid of _.organizeBy, _.pushAll, _.move

* Delete Lodash webpackShim
2018-04-18 08:18:38 +02:00
Kim Joar Bekkelund f5b3b46170
Prettier + ESLint setup (#16514) (#16528)
* Move .eslintrc (yaml) to .eslintrc.js (js)

* Add Prettier setup to ESLint

* Run Prettier on @kbn/build

* Update style guide with Prettier
2018-02-05 20:00:01 +01:00
Court Ewing 9f76635fdf
Remove angular-translate (#13066) (#16015)
* remove angular translate

* remove angular-translate deps from yarn.lock
2018-01-27 10:47:35 -08:00
Spencer 98a1c5a0f1
[6.x] Upgrade to eslint 4 (#14862) (#14951)
* [eslint] upgrade to 4.10.0

* [eslint-config-kibana] limit jest config to jest test files

* [ui_framework] remove trailing comma from rest-spreads

* [dashboard/tests] tag jest helpers with .test.js suffix

* explicitly import expect.js where used

* [eslint] apply auto-fixes

* [eslint] manually add/wrap some parens for compliance

* [npm] point to local packages for testing/review

* [jest] remove .test extension from jest helpers

* [ui_framework] fix trailing comma removal from 3bc661a1c8

* [packages] upgrade eslint packages
2017-11-14 20:20:37 -07:00
Spencer 4a5ba237df
[6.x] Upgrade to webpack 3 (#14315) (#14824)
* [timelion] remove last remaining amd modules

* [eslint-config-kibana] remove env.amd

* [webpack] use absolute loader names

* [webpack] remove absolute node_modules/ imports

* [webpack] upgrade to webpack 3

* [uiFramework] make webpack build compatible with v3

* [eslint-import-resolver] use https://github.com/elastic/eslint-import-resolver-kibana/pull/21

* [baseOptimizer] don't break when pkg has no dependencies

* [optimize] remove unnecessary json-loader

* [optimize] remove local references to webpack vars

* [eslint] upgrade to eslint-import-resolver-kibana 0.9.0

* [baseOptimizer] comment tweaks

* [baseOptimizer] remove loader pinning

In webpack 1 the loaders defined here were resolved relative to the file they were going to load, which meant that plugins in other projects could accidentally overwrite the loaders Kibana was trying to use, which is why the aliases were used to enforce proper resolution.

In webpack 2 loaders are now resolved relative to the webpackConfig.context, which is set to the root of the Kibana repo. See https://webpack.js.org/configuration/module/#useentry

* [webpack] rely on kibana webpack shims before checking node_modules

(cherry picked from commit f60639fccb)
2017-11-07 15:54:48 -07:00
Stacey Gammon b2ffeb71d2 Replace gridster with react-grid-layout (#13853) (#14242)
* Initial check-in to replace gridster with react-grid-layout and reactify panels

* # This is a combination of 3 commits.
# This is the 1st commit message:
Add margin of error to test determining panel widths

# This is the commit message #2:

use real kibana version when creating panel data. Will make future conversions easier.

# This is the commit message #3:

Fix lint errors

* Add margin of error to test determining panel widths

use real kibana version when creating panel data. Will make future conversions easier.

Move default height and width to dashboard_constants so those that need it don't end up including extra stuff like ui/chrome

* Remove unnecessary _.once when creating react directives in dashboard.js

* Remove unnecessary constructors

* Use componentDidMount instead of componentWillMount bc of async calls, and handle case where destroyEmbeddable is not defined.

* Remove unnecessary null in classNames

* Use loads defaultsDeep instead of Object.assign

* use render* instead of get* for functions returning an element

* use relative css paths

* Use local import path

* Switch to local imports and remove need for plugins path in jest tests

* Improve accessibility of max/min panel toggle icon

* remove unused css

Had to implement this via code

* disable eslint rule for setState in componentDidMount

Am not aware of a better way to handle this, aside from switching to
redux, since it’s recommended not to put async calls in
componentWillMount.  Since I plan to investigate redux next, disabling
for now. Open to other’s opinions on the matter.

* Use native map instead of lodash

* Have the grid handle setting the z-indexes of the right reactgriditem

* Make the draggable handle the title, not the whole heading

Otherwise the drag event often takes over click events when trying to
open the panel options menu and it gets really annoying.

* Change from click to mouse down detector in KuiOutsideClickDector so drags also close pop ups.

* Fix mistaken commit

Code from the redux PR snuck into this one.

* Run getEditPath and getTitle async calls in parallel - no need to wait on the return value of one before starting the others.

* Fix tests: update snapshots, add promise returns.

* version being added to panelData in the wrong spot caused isDirty flag to be true when it shouldn't be

* Fix unmounting/mounting problem with panels due to view/edit mode switch

* Fix bug where panels get squashed to one side when view mode is changed while a panel is expanded.

* Update snapshots to match wrong view mode comparison

* Improve naming of a variable

* Fix issue with pop over hiding behind tile maps

* Previous panel.js included ui/doc_table and ui/visualize - needed to include them in the chain for Dash only mode but not in that file.

* Fix bad merge: remove baseline screenshots
2017-10-02 11:45:36 -04:00
Tyler Smalley 854f79561d Removes webpack-directory-name-as-main dependency (#13584)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-25 13:05:27 -07:00
Nathan Reese f8f25d999b Upgrade kibana to leaflet 1.x (#12367) (#13688)
* upgrade leaflet modules to 1.x latest

* fix css for leaflet controls

* update draw options so it is easier to see polygon when drawing

* fix chrome touch issues with closing polygon in leaflet draw

* use canvas renderer

* use leaflet-responsive-popup to avoid tooltip cutoff

* remove radius configuration from leaflet heatmap

* make blur a factor of radius. Set maxZoom to map zoom since new values are calculated per precision

* use _.get to avoid error, cannot read property of undefined

* add cluster size slider

* experiments with image differences

* onload not onLoad

* use canvas dimensions

* compare map canvas to stored PNG of map canvas

* remove pixelmatch from project dependecies

* fix broken test - rounding error

* add expected image tests for geohash layers shaded circles and geohash grids

* bump z-index of vis-spy

* update functional test expected data

* update to leaflet 1.2.0

* revert to leaflet 1.0.3 and update expected data set for map functional tests

* test geohash_layer heatmap in unit test

* update region_map functional test since it can not longer pluck map vectors from DOM

* update documentation
2017-08-24 11:47:39 -06:00
Spencer 3a876eae54 [npm] move personal forks into elastic org (#13410)
(cherry picked from commit 7e16d19249)
2017-08-09 12:39:42 -07:00
Spencer fab90fab59 Refactor commaList filter logic into common util (#12553)
* [utils] extract _.commaSeparatedList mixin to common utils

* [utils] test current version of parseCommaSeparatedList()

* [utils] remove mutation in parseCommaSeparatedList()

* [utils] extract commaList filter to util

* [utils] add tests for formatListAsProse()

* [utils] refactor formatListAsProse(), add oxford comma

* [commaList] add oxford comma to commaList output

* [utils/prose] remove pointless condition

* address PR feedback

* 💥 the stringification thingy
2017-06-29 12:00:27 -07:00
Joe Fleming 262bcb411a Use es6 exports, replace module.exports (#12084)
* use es6 exports in fixtures

* use es6 exports in test_utils

* use es6 exports in src/ui

* use es6 exports in src/utils

* use es6 exports in src/server

* use es6 exports in timelion

* use es6 exports in core plugins, but not console

* use es6 exports in console

* use es6 exports in src/cli

* use eslint --fix for no-extra-semi rule

* selectively disable kibana-custom/no-default-export

* replace define() with exports

* clean up some object exports

in these cases, named exports are the better replacement

* use es6 exports in src/optimize, where possible

* fix uses of named exports

* fix some imports in console

* revert postcss optimizer to module.exports

* [timelion] put shared code in common directory

* fix url module export

don't export as default, rely on the named export

* convert define modules in src to export

* convert ui-bootstrap to cjs module

* lint webpackShims

no reason not to, they pass when the no-var rule is disabled

* fix new code not using es6 exports

* fix some straggling exports
2017-06-06 10:11:59 -07:00
Brandon Kobel f72e7269dc Removing the destructuring and const from webpackShims (#11370) 2017-04-21 15:48:10 -04:00
Stacey Gammon 9c37e6c4c1 Remaining default to named conversions in ui/public (#11323)
* use named ui-modules

* x-pack conversion is checked in so no need for the default uiModules export

* Final removal of all export default in ui/public

And turned on the eslint rule for that folder.

* Moe import to top of file
2017-04-20 14:10:06 -04:00
Lukas Olson d15f52c525 Use ui-select for index pattern selector (#10144)
* Replace index pattern selector with ui-select

* Show index patterns in alphabetical order

* Add highlighting to select
2017-03-31 11:37:10 -07:00
Martin Hickey 3aa5938daa Kibana Globalization - Phase 2 (#8766)
* Integrate angular-translate globalization framework with i18n engine
* Provide template for enabling translations in an AngularJS view by translating a view
* Verification tool for translation keys used in angular-translate
* Documentation
2017-03-20 14:09:06 -04:00
Spencer 9bdbc260c6 [webpack] upgrade to @elastic/webpack-directory-name-as-main v2 (#9601)
* [webpack] upgrade to @elastic/webpack-directory-name-as-main v2

* bump @elastic/webpack-directory-name-as-main

* import browser mocha with webpackShim

`import 'mocha'` will resolve to `mocha/index.js`, which points to
`mocha/lib/mocha.js`, the node version of mocha. This will not work in
the browser.

Since ng_mock is browser code, we need the mocha build for the browser,
which lives at `mocha/mocha.js`. This isn't referenced at all in the
package.json file, but is references in the bower.json file. Webpack,
however, doesn't observe the bower config, so we need to specifically
reach into the mocha package and point to the `mocha/mocha.js` file.
2016-12-22 09:32:03 -07:00
CJ Cenizal b08f016cc6 Replace compiled angular-bootstrap file with original HTML and JS source files. 2016-07-05 12:27:20 -07:00
CJ Cenizal b556ccc0e2 Use ui alias to require ui-bootstrap in the webpackShim. 2016-07-05 12:27:20 -07:00
CJ Cenizal 08f5061247 Remove angular-bootstrap dependency. Copy required code into src/ui/public/angular-bootstrap directory for future refactoring and deprecation. 2016-07-05 12:27:20 -07:00
spalger af9ebba958 [rename] hunt down remaining non-snake path refs 2016-02-24 14:18:21 -08:00
spalger 811991b58b [webpack] enforce using elasticsearch-browser 2016-02-05 10:23:07 -07:00
Kim Joar Bekkelund e766e0e03e Be explicit about starting to route 2015-11-24 09:32:04 -08:00
Rashid Khan e547cd3965 Merge pull request #4223 from panda01/angularUpgrade
Angular upgrade
2015-10-29 10:35:15 -07:00
Khalah Jones-Golden 8a3aed8382 [nvd3] Removing nvd3 2015-10-19 09:31:15 -04:00
Jonathan Budzenski 95714696fb Add support for global timezones. Closes #1600 2015-10-16 17:52:06 -05:00
Khalah Jones-Golden 8f4fe637a7 [Angular] Upgraded angular to 1.4.7, and removed occurences of bind once 2015-10-15 09:52:12 -04:00
Jonathan Budzenski f74eafe5f7 Merge pull request #5025 from w33ble/farewell-zeroclipboard-and-thanks-for-all-the-fish
Remove ng-clip and zeroclipboard
2015-09-23 15:58:51 -05:00
Joe Fleming d75bd51171 purge kibana of ng-clip and zeroclipboard 2015-09-23 13:24:26 -07:00
spalger 203f145ebe [jquery] always attach the findTestSubject mixin 2015-09-23 12:33:39 -07:00
spalger 3eecf6a2c6 [numeral] actually export shimmed module 2015-09-18 18:29:18 -07:00
spalger 1db49d9162 [numeral] replace with fork to fix #4857 2015-09-18 14:03:18 -07:00
spalger 323c879f07 [npm] remove github deps, since they conflict with shrinkwrap goals 2015-08-26 18:52:32 -07:00
spalger e1b395004c [webpackShims] support contextual module overrides in the webpack build 2015-08-17 23:23:26 -07:00