Skip to content

Commit 1e91437

Browse files
authored
Merge pull request #49 from risdenk/7.16.2
Upgrade plugin to work with Kibana 7.10+
2 parents 08ace1d + 3aeb265 commit 1e91437

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+464
-434
lines changed

.eslintrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@elastic/eslint-config-kibana', 'plugin:@elastic/eui/recommended'],
4+
rules: {
5+
'@kbn/eslint/require-license-header': 'off',
6+
},
7+
};

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
npm-debug.log*
22
node_modules
3-
/build/
3+
/build
4+
/target
45
.idea
56
*.iml
67
.DS_store

.kibana-plugin-helpers.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,17 @@ The latest stable version is for kibana 7.6.2.
7878

7979
---
8080

81-
## development
81+
## Development
8282

83-
See the [kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) for instructions setting up your development environment. Once you have completed that, use the following npm tasks.
83+
See the [kibana contributing guide](https://github.com/elastic/kibana/blob/main/CONTRIBUTING.md) for instructions setting up your development environment.
8484

85-
- `npm start`
85+
## Scripts
8686

87-
Start kibana and have it include this plugin
87+
<dl>
88+
<dt><code>yarn kbn bootstrap</code></dt>
89+
<dd>Execute this to install node_modules and setup the dependencies in your plugin and in Kibana</dd>
8890

89-
- `npm start -- --config kibana.yml`
91+
<dt><code>yarn plugin-helpers build</code></dt>
92+
<dd>Execute this to create a distributable version of this plugin that can be installed in Kibana</dd>
93+
</dl>
9094

91-
You can pass any argument that you would normally send to `bin/kibana` by putting them after `--` when running `npm start`
92-
93-
- `npm run build`
94-
95-
Build a distributable archive
96-
97-
- `npm run test:browser`
98-
99-
Run the browser tests in a real web browser
100-
101-
- `npm run test:server`
102-
103-
Run the server tests using mocha
104-
105-
For more information about any of these commands run `npm run ${task} -- --help`.

common/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const PLUGIN_ID = 'analyzeApiUi';
2+
export const PLUGIN_NAME = 'analyze-api-ui';

index.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

kibana.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"id": "analyzeApiUi",
3+
"version": "7.16.2",
4+
"kibanaVersion": "kibana",
5+
"owner": {
6+
"name": "johtani"
7+
},
8+
"description": "UI for elasticsearch analyze API",
9+
"server": true,
10+
"ui": true,
11+
"requiredPlugins": ["navigation"],
12+
"optionalPlugins": []
13+
}

package.json

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,10 @@
11
{
22
"name": "analyze_api_ui",
3-
"version": "7.6.2",
4-
"description": "UI for elasticsearch analyze API",
5-
"main": "index.js",
6-
"kibana": {
7-
"version": "7.6.2",
8-
"templateVersion": "1.0.0"
9-
},
3+
"version": "7.16.2",
4+
"private": true,
105
"scripts": {
11-
"preinstall": "node ../../kibana/preinstall_check",
12-
"kbn": "node ../../kibana/scripts/kbn",
13-
"es": "node ../../kibana/scripts/es",
14-
"lint": "eslint .",
15-
"start": "plugin-helpers start",
16-
"test:server": "plugin-helpers test:server",
17-
"test:browser": "plugin-helpers test:browser",
18-
"build": "plugin-helpers build"
19-
},
20-
"devDependencies": {
21-
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
22-
"@elastic/eslint-import-resolver-kibana": "link:../../kibana/packages/kbn-eslint-import-resolver-kibana",
23-
"@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers",
24-
"babel-eslint": "^9.0.0",
25-
"eslint": "^5.6.0",
26-
"eslint-plugin-babel": "^5.2.0",
27-
"eslint-plugin-import": "^2.14.0",
28-
"eslint-plugin-jest": "^21.26.2",
29-
"eslint-plugin-jsx-a11y": "^6.1.2",
30-
"eslint-plugin-mocha": "^5.2.0",
31-
"eslint-plugin-no-unsanitized": "^3.0.2",
32-
"eslint-plugin-prefer-object-spread": "^1.2.1",
33-
"eslint-plugin-react": "^7.11.1",
34-
"expect.js": "^0.3.1"
6+
"build": "yarn plugin-helpers build",
7+
"plugin-helpers": "node ../../scripts/plugin_helpers",
8+
"kbn": "node ../../scripts/kbn"
359
}
3610
}

public/app.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)