Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Added copyright and fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesca Paoletti committed Jun 25, 2019
1 parent 730e195 commit 796f189
Show file tree
Hide file tree
Showing 42 changed files with 907 additions and 649 deletions.
10 changes: 0 additions & 10 deletions KibanaSQLConsolePlugin/public/ace-themes/sql_console.js

This file was deleted.

202 changes: 0 additions & 202 deletions KibanaSQLConsolePlugin/public/app.css

This file was deleted.

13 changes: 0 additions & 13 deletions KibanaSQLConsolePlugin/public/components/header/Header.tsx

This file was deleted.

1 change: 0 additions & 1 deletion KibanaSQLConsolePlugin/public/components/main/index.ts

This file was deleted.

28 changes: 0 additions & 28 deletions KibanaSQLConsolePlugin/public/components/utils/utils.ts

This file was deleted.

7 changes: 0 additions & 7 deletions KibanaSQLConsolePlugin/public/hack.js

This file was deleted.

4 changes: 0 additions & 4 deletions KibanaSQLConsolePlugin/public/less/main.less

This file was deleted.

7 changes: 0 additions & 7 deletions KibanaSQLConsolePlugin/server/__tests__/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions KibanaSQLConsolePlugin/server/routes/query.ts

This file was deleted.

10 changes: 0 additions & 10 deletions KibanaSQLConsolePlugin/server/routes/translate.ts

This file was deleted.

25 changes: 0 additions & 25 deletions KibanaSQLConsolePlugin/server/services/translate-service.ts

This file was deleted.

16 changes: 0 additions & 16 deletions KibanaSQLConsolePlugin/server/services/utils/constants.ts

This file was deleted.

26 changes: 16 additions & 10 deletions KibanaSQLConsolePlugin/index.js → index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file 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.
*/

import query from './server/routes/query';
import translate from './server/routes/translate';
import QueryService from './server/services/query-service';
Expand Down Expand Up @@ -29,17 +44,8 @@ export default function (kibana) {
init(server, options) { // eslint-disable-line no-unused-vars
// Create Clusters
createSqlCluster(server);

// const config = server.config();
// const [
// schemeExtensionsSymbol,
// configValuesSymbol,
// joiSchemaSymbol,
// ] = Object.getOwnPropertySymbols(config);
// const configValues = config[configValuesSymbol];
// const { elasticsearch: elasticsearchConfig } = configValues;

const client = server.plugins.elasticsearch;

// Add server routes and initialize the plugin here
query(server, new QueryService(client));
translate(server, new TranslateService(client));
Expand Down
Loading

0 comments on commit 796f189

Please sign in to comment.