-
Notifications
You must be signed in to change notification settings - Fork 1
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 crob611/master
Switch to legacy plugin
- Loading branch information
Showing
6 changed files
with
5,549 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,19 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
export default function(kibana) { | ||
return new kibana.Plugin({ | ||
// Tell Kibana that this plugin needs canvas and the Kibana interpreter | ||
require: ['interpreter', 'canvas'], | ||
|
||
// The name of your plugin. Make this whatever you want. | ||
name: 'canvas_multi_filter', | ||
|
||
name: 'canvas-multi-filter', | ||
uiExports: { | ||
// Tell Kibana that the files in `/public` should be loaded into the | ||
// browser only when the user is in the Canvas app. | ||
canvas: ['plugins/canvas_multi_filter'], | ||
canvas: ['plugins/canvas-multi-filter'], | ||
}, | ||
|
||
// Enable the plugin by default | ||
config(Joi) { | ||
console.log('REGISTERING CANVAS MULTI FILTER'); | ||
return Joi.object({ | ||
enabled: Joi.boolean().default(true), | ||
}).default(); | ||
}, | ||
|
||
init(server) {}, | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
{ | ||
"name": "canvas-multi-filter", | ||
"version": "0.0.0", | ||
"description": "Enables a MultiFilter component for Canvas", | ||
"main": "index.js", | ||
"kibana": { | ||
"version": "8.0.0", | ||
"templateVersion": "1.0.0" | ||
}, | ||
"scripts": { | ||
"preinstall": "node ../../preinstall_check", | ||
"kbn": "node ../../scripts/kbn", | ||
"es": "node ../../scripts/es", | ||
"lint": "eslint .", | ||
"start": "plugin-helpers start", | ||
"test:server": "plugin-helpers test:server", | ||
"test:browser": "plugin-helpers test:browser", | ||
"build": "plugin-helpers build" | ||
}, | ||
"devDependencies": { | ||
"@elastic/eslint-config-kibana": "link:../../packages/eslint-config-kibana", | ||
"@elastic/eslint-import-resolver-kibana": "link:../../packages/kbn-eslint-import-resolver-kibana", | ||
"@kbn/expect": "link:../../packages/kbn-expect", | ||
"@kbn/plugin-helpers": "link:../../packages/kbn-plugin-helpers", | ||
"babel-eslint": "^10.0.1", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-jest": "^22.4.1", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-mocha": "^5.3.0", | ||
"eslint-plugin-no-unsanitized": "^3.0.2", | ||
"eslint-plugin-prefer-object-spread": "^1.2.1", | ||
"eslint-plugin-react": "^7.12.4" | ||
} | ||
} |
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
Oops, something went wrong.