Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Jul 24, 2024
1 parent 37f6f08 commit 94e5374
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 2,418,725 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"test-staged"
],
"dependencies": {
"@elastic/elasticsearch": "^8.13.1",
"@hello-pangea/dnd": "^16.6.0",
"@types/lodash": "^4.14.202",
"@types/numeral": "^2.0.5",
Expand All @@ -76,7 +75,6 @@
"react-focus-on": "^3.9.1",
"react-is": "^17.0.2",
"react-remove-scroll-bar": "^2.3.4",
"react-scanner": "^1.1.0",
"react-virtualized-auto-sizer": "^1.0.24",
"react-window": "^1.8.10",
"refractor": "^3.6.0",
Expand Down Expand Up @@ -113,6 +111,7 @@
"@cypress/webpack-dev-server": "^1.7.0",
"@elastic/charts": "^64.1.0",
"@elastic/datemath": "^5.0.3",
"@elastic/elasticsearch": "^8.14.0",
"@emotion/babel-preset-css-prop": "^11.11.0",
"@emotion/cache": "^11.11.0",
"@emotion/css": "^11.11.0",
Expand Down Expand Up @@ -231,6 +230,7 @@
"react-redux": "^7.2.1",
"react-refresh": "^0.11.0",
"react-router-dom": "^5.3.4",
"react-scanner": "^1.1.0",
"react-view": "^2.3.2",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
Expand Down
10,855 changes: 0 additions & 10,855 deletions scripts/scanner/_upload.ndjson

This file was deleted.

16 changes: 8 additions & 8 deletions scripts/scanner/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Run this command from directly in this folder.
*
* This command scan file in the kibana repository with react-scanner, analyzing all component usage, and upload that usage
* This command scans file in the kibana repository with react-scanner, analyzing all component usage, and upload that usage
* to an Elastic instance.
*
* To run this, you need to have this repository (the eui repository) checked out side by side.
Expand All @@ -15,21 +15,21 @@

const { scan } = require('./scan');

const { Client } = require('@elastic/elasticsearch')
const { Client } = require('@elastic/elasticsearch');
const client = new Client({
cloud: {
id: process.env.CLOUD_ID
},
auth: {
apiKey: process.env.AUTH_APIKEY
}
})
});

const run = async () => {
const result = await scan();
const operations = result.flatMap(doc => [{ index: { _index: 'eui_components' } }, doc])
const response = await client.bulk({ refresh: true, operations })
console.log(response)
}
const operations = result.flatMap(doc => [{ index: { _index: 'eui_components' } }, doc]);
const response = await client.bulk({ refresh: true, operations });
console.log(response);
};

run().catch((e) => console.error(e))
run().catch((e) => console.error(e));
109 changes: 0 additions & 109 deletions scripts/scanner/index2.js

This file was deleted.

Loading

0 comments on commit 94e5374

Please sign in to comment.