forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from spalger/add-styled-components-debug-info
Merged master into elastic#14036
- Loading branch information
Showing
131 changed files
with
5,030 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
|
||
include::migration.asciidoc[] | ||
|
||
include::getting-started.asciidoc[] | ||
|
||
include::discover.asciidoc[] | ||
|
||
include::visualize.asciidoc[] | ||
|
||
include::dashboard.asciidoc[] | ||
|
||
include::timelion.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
[[devtools-kibana]] | ||
= Dev Tools | ||
|
||
[partintro] | ||
-- | ||
The *Dev Tools* page contains development tools that you can use to interact | ||
with your data in Kibana. | ||
-- | ||
include::getting-started.asciidoc[] | ||
|
||
include::console.asciidoc[] | ||
include::discover.asciidoc[] | ||
|
||
include::visualize.asciidoc[] | ||
|
||
include::dashboard.asciidoc[] | ||
|
||
include::timelion.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
|
||
include::management.asciidoc[] | ||
[[devtools-kibana]] | ||
= Dev Tools | ||
|
||
[partintro] | ||
-- | ||
The *Dev Tools* page contains development tools that you can use to interact | ||
with your data in Kibana. | ||
-- | ||
|
||
include::console.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
|
||
include::plugins.asciidoc[] | ||
|
||
include::development.asciidoc[] | ||
|
||
include::limitations.asciidoc[] | ||
|
||
include::release-notes.asciidoc[] | ||
include::management.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
include::plugins.asciidoc[] | ||
|
||
include::development.asciidoc[] | ||
|
||
include::limitations.asciidoc[] | ||
|
||
include::release-notes.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../src/optimize/babel/register'); | ||
require('../src/babel-register'); | ||
require('../src/docs/cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../src/optimize/babel/register'); | ||
require('../src/babel-register'); | ||
require('../src/es_archiver/cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../src/optimize/babel/register'); | ||
require('../src/babel-register'); | ||
require('../src/functional_test_runner/cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../src/optimize/babel/register'); | ||
require('../src/babel-register'); | ||
require('../test/scripts/run_mocha'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = { | ||
presets: [ | ||
require.resolve('babel-preset-react'), | ||
], | ||
plugins: [ | ||
require.resolve('babel-plugin-styled-components'), | ||
require.resolve('babel-plugin-add-module-exports'), | ||
|
||
// stage 3 | ||
require.resolve('babel-plugin-transform-async-generator-functions'), | ||
require.resolve('babel-plugin-transform-object-rest-spread'), | ||
|
||
// the class properties proposal was merged with the private fields proposal | ||
// into the "class fields" proposal. Babel doesn't support this combined | ||
// proposal yet, which includes private field, so this transform is | ||
// TECHNICALLY stage 2, but for all intents and purposes it's stage 3 | ||
// | ||
// See https://github.com/babel/proposals/issues/12 for progress | ||
require.resolve('babel-plugin-transform-class-properties'), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
require.resolve('babel-preset-env'), | ||
{ | ||
targets: { | ||
// only applies the necessary transformations based on the | ||
// current node.js processes version. For example: running | ||
// `nvm install 8 && node ./src/cli` will run kibana in node | ||
// version 8 and babel will stop transpiling async/await | ||
// because they are supported in the "current" version of node | ||
node: 'current', | ||
}, | ||
|
||
// replaces `import "babel-polyfill"` with a list of require statements | ||
// for just the polyfills that the target versions don't already supply | ||
// on their own | ||
useBuiltIns: true, | ||
}, | ||
], | ||
require('./common'), | ||
], | ||
plugins: [ | ||
[ | ||
require.resolve('babel-plugin-transform-define'), | ||
{ | ||
'global.__BUILT_WITH_BABEL__': 'true' | ||
} | ||
] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
require.resolve('babel-preset-env'), | ||
{ | ||
targets: { | ||
browsers: [ | ||
'last 2 versions', | ||
'> 5%', | ||
'Safari 7', // for PhantomJS support | ||
], | ||
}, | ||
useBuiltIns: true, | ||
}, | ||
], | ||
require('./common'), | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// register and polyfill need to happen in this | ||
// order and in separate files. Checkout each file | ||
// for a much more detailed explaination | ||
require('./register'); | ||
require('./polyfill'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// `babel-preset-env` looks for and rewrites the following import | ||
// statement into a list of import statements based on the polyfills | ||
// necessary for our target environment (the current version of node) | ||
// but since it does that during compilation, `import 'babel-polyfill'` | ||
// must be in a file that is loaded with `require()` AFTER `babel-register` | ||
// is configured. | ||
// | ||
// This is why we have this single statement in it's own file and require | ||
// it from ./index.js | ||
import 'babel-polyfill'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const { resolve } = require('path'); | ||
|
||
// this must happen before `require('babel-register')` and can't be changed | ||
// once the module has been loaded | ||
if (!process.env.BABEL_CACHE_PATH) { | ||
process.env.BABEL_CACHE_PATH = resolve(__dirname, '../../optimize/.babelcache.json'); | ||
} | ||
|
||
// paths that babel-register should ignore | ||
const ignore = [ | ||
/[\\\/](node_modules|bower_components)[\\\/]/, | ||
]; | ||
|
||
if (global.__BUILT_WITH_BABEL__) { | ||
// when building the Kibana source we replace the statement | ||
// `global.__BUILT_WITH_BABEL__` with the value `true` so that | ||
// when babel-register is required for the first time by users | ||
// it will exclude kibana's `src` directory. | ||
// | ||
// We still need babel-register for plugins though, we've been | ||
// building their server code at require-time since version 4.2 | ||
// TODO: the plugin install process could transpile plugin server code... | ||
ignore.push(resolve(__dirname, '../../src')); | ||
} | ||
|
||
// modifies all future calls to require() to automatically | ||
// compile the required source with babel | ||
require('babel-register')({ | ||
ignore, | ||
babelrc: false, | ||
presets: [ | ||
require.resolve('../babel-preset/node') | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../optimize/babel/register'); | ||
require('../babel-register'); | ||
require('./cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require('../optimize/babel/register'); | ||
require('../babel-register'); | ||
require('./cli'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 13 additions & 2 deletions
15
src/core_plugins/console/public/src/directives/history.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default function (kibana) { | ||
return new kibana.Plugin({ | ||
uiExports: { | ||
visTypes: [ | ||
'plugins/input_control_vis/register_vis' | ||
] | ||
} | ||
}); | ||
} |
Oops, something went wrong.