-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Issue: #2039 * changes js code to ts and use the updated client Signed-off-by: Shivam Dhar <[email protected]> (cherry picked from commit 45324d3) Co-authored-by: Shivam Dhar <[email protected]>
- Loading branch information
1 parent
88f6c07
commit 06a5338
Showing
6 changed files
with
115 additions
and
138 deletions.
There are no files selected for viewing
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,38 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { | ||
PluginInitializerContext, | ||
CoreSetup, | ||
CoreStart, | ||
Plugin, | ||
Logger, | ||
} from 'opensearch-dashboards/server'; | ||
import { registerGeospatialRoutes } from '../server/routes'; | ||
import { getUiSettings } from './ui_settings'; | ||
import { RegionMapPluginSetup, RegionMapPluginStart } from './types'; | ||
|
||
export class RegionMapPlugin implements Plugin<RegionMapPluginSetup, RegionMapPluginStart> { | ||
private readonly logger: Logger; | ||
|
||
constructor(initializerContext: PluginInitializerContext) { | ||
this.logger = initializerContext.logger.get(); | ||
} | ||
|
||
public setup(core: CoreSetup) { | ||
this.logger.debug('RegionMap: Setup'); | ||
const router = core.http.createRouter(); | ||
core.uiSettings.register(getUiSettings()); | ||
registerGeospatialRoutes(router); | ||
return {}; | ||
} | ||
|
||
public start(_core: CoreStart) { | ||
this.logger.debug('RegionMap: Started'); | ||
return {}; | ||
} | ||
|
||
public stop() {} | ||
} |
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
This file was deleted.
Oops, something went wrong.
88 changes: 0 additions & 88 deletions
88
src/plugins/region_map/server/services/opensearch_service.js
This file was deleted.
Oops, something went wrong.