Skip to content

Commit

Permalink
Merge pull request #6624 from spalger/es6ify/autoModuleTransform
Browse files Browse the repository at this point in the history
[es6ify] re-apply automatic module transformer
  • Loading branch information
Matt Bargar committed Mar 23, 2016
2 parents 123ed24 + 7815c4e commit a6607c5
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/fixtures/agg_resp/range.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
"took": 35,
"timed_out": false,
"_shards": {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dev_mode/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = (kibana) => {
export default (kibana) => {
if (!kibana.config.get('env.dev')) return;
return new kibana.Plugin({
uiExports: {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/elasticsearch/lib/get_basic_auth_realm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function getBasicAuthRealm(message) {
export default function getBasicAuthRealm(message) {
if (!message || typeof message !== 'string') return null;

const parts = message.match(/Basic\ realm=\\"(.*)\\"/);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/kbn_doc_views/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {

return new kibana.Plugin({

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/kbn_vislib_vis_types/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {

return new kibana.Plugin({

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/markdown_vis/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {

return new kibana.Plugin({

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/metric_vis/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {

return new kibana.Plugin({

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spy_modes/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {
return new kibana.Plugin({
uiExports: {
spyModes: [
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/status_page/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {
return new kibana.Plugin({
uiExports: {
app: {
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/status_page/public/status_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import $ from 'jquery';
import 'ui/autoload/styles';
import 'plugins/status_page/status_page_metric';
import 'plugins/status_page/status_page.less';
import uiModules from 'ui/modules';


const chrome = require('ui/chrome')
Expand Down Expand Up @@ -48,7 +49,7 @@ const chrome = require('ui/chrome')
ui.refresh();
});

require('ui/modules').get('kibana')
uiModules.get('kibana')
.config(function (appSwitcherEnsureNavigationProvider) {
appSwitcherEnsureNavigationProvider.forceNavigation(true);
});
2 changes: 1 addition & 1 deletion src/plugins/table_vis/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kibana) {
export default function (kibana) {

return new kibana.Plugin({
uiExports: {
Expand Down
2 changes: 1 addition & 1 deletion src/server/config/complete.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (kbnServer, server, config) {
export default function (kbnServer, server, config) {

server.decorate('server', 'config', function () {
return kbnServer.config;
Expand Down
2 changes: 1 addition & 1 deletion src/server/lib/commander_extensions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (program) {
export default function (program) {
function isCommand(val) {
return typeof val === 'object' && val._name;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/agg_types/buckets/range_key.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function () {
export default function () {

const id = Symbol('id');

Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/dom_location.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function DomLocationProvider($window) {
export default function DomLocationProvider($window) {
return {
reload: function (forceFetch) {
$window.location.reload(forceFetch);
Expand Down
9 changes: 4 additions & 5 deletions src/ui/public/registry/settings_sections.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
define(function (require) {
return require('ui/registry/_registry')({
name: 'settingsSections',
order: ['order']
});
import uiRegistry from 'ui/registry/_registry';
export default uiRegistry({
name: 'settingsSections',
order: ['order']
});

0 comments on commit a6607c5

Please sign in to comment.