Commit graph

24 commits

Author SHA1 Message Date
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