Skip to content

Commit

Permalink
fix config.ts not found issue (#205)
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>

Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei authored Jan 12, 2023
1 parent b180af9 commit 535a002
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AppMountParameters } from '../../../src/core/public';
import { MapServices } from './types';
import { MapsDashboardsApp } from './components/app';
import { OpenSearchDashboardsContextProvider } from '../../../src/plugins/opensearch_dashboards_react/public';
import { ConfigSchema } from './config';
import { ConfigSchema } from '../common/config';

export const renderApp = (
{ element }: AppMountParameters,
Expand Down
2 changes: 1 addition & 1 deletion public/components/add_layer_panel/add_layer_panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
NEW_MAP_LAYER_DEFAULT_PREFIX,
} from '../../../common';
import { getLayerConfigMap } from '../../utils/getIntialConfig';
import { ConfigSchema } from '../../config';
import { ConfigSchema } from '../../../common/config';

interface Props {
setIsLayerConfigVisible: Function;
Expand Down
2 changes: 1 addition & 1 deletion public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { MapPage } from './map_page';
import { APP_PATH } from '../../common';
import { useOpenSearchDashboards } from '../../../../src/plugins/opensearch_dashboards_react/public';
import { MapServices } from '../types';
import { ConfigSchema } from '../config';
import { ConfigSchema } from '../../common/config';

interface Props {
mapConfig: ConfigSchema;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
handleReferenceLayerRender,
} from '../../model/layerRenderController';
import { MapState } from '../../model/mapState';
import { ConfigSchema } from '../../config';
import { ConfigSchema } from '../../../common/config';

interface MaplibreRef {
current: Maplibre | null;
Expand Down
2 changes: 1 addition & 1 deletion public/components/map_container/map_container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { createPopup, getPopupLngLat, isTooltipEnabledLayer } from '../tooltip/c
import { handleDataLayerRender } from '../../model/layerRenderController';
import { useOpenSearchDashboards } from '../../../../../src/plugins/opensearch_dashboards_react/public';
import { MapServices } from '../../types';
import { ConfigSchema } from '../../config';
import { ConfigSchema } from '../../../common/config';

interface MapContainerProps {
setLayers: (layers: MapLayerSpecification[]) => void;
Expand Down
2 changes: 1 addition & 1 deletion public/components/map_page/map_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { getLayerConfigMap, getInitialMapState } from '../../utils/getIntialConfig';
import { IndexPattern } from '../../../../../src/plugins/data/public';
import { MapState } from '../../model/mapState';
import { ConfigSchema } from '../../config';
import { ConfigSchema } from '../../../common/config';

interface Props {
mapConfig: ConfigSchema;
Expand Down
2 changes: 1 addition & 1 deletion public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './index.scss';
import { PluginInitializerContext } from '../../../src/core/server';

import { CustomImportMapPlugin } from './plugin';
import { ConfigSchema } from './config';
import { ConfigSchema } from '../common/config';

// This exports static code and TypeScript types,
// as well as, OpenSearch Dashboards Platform `plugin()` initializer.
Expand Down
2 changes: 1 addition & 1 deletion public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
PLUGIN_NAVIGATION_BAR_ID,
PLUGIN_NAVIGATION_BAR_TILE,
} from '../common/constants/shared';
import { ConfigSchema } from './config';
import { ConfigSchema } from '../common/config';

import { AppPluginSetupDependencies } from './types';
import { RegionMapVisualizationDependencies } from '../../../src/plugins/region_map/public';
Expand Down
2 changes: 1 addition & 1 deletion public/utils/getIntialConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
CUSTOM_MAP,
} from '../../common';
import { MapState } from '../model/mapState';
import { ConfigSchema } from '../config';
import { ConfigSchema } from '../../common/config';

export const getLayerConfigMap = (mapConfig: ConfigSchema) => ({
[OPENSEARCH_MAP_LAYER.type]: {
Expand Down
2 changes: 1 addition & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { PluginConfigDescriptor, PluginInitializerContext } from '../../../src/core/server';
import { CustomImportMapPlugin } from './plugin';
import { ConfigSchema, configSchema } from '../public/config';
import { ConfigSchema, configSchema } from '../common/config';
// This exports static code and TypeScript types,
// as well as, OpenSearch Dashboards Platform `plugin()` initializer.

Expand Down

0 comments on commit 535a002

Please sign in to comment.