From c433d12fe913921b53e56a7674adb61ade8644f8 Mon Sep 17 00:00:00 2001 From: Vacha Shah Date: Tue, 1 Jun 2021 12:20:52 -0700 Subject: [PATCH] Renaming advanced_settings plugin folder to kebab-case Signed-off-by: Vacha Shah --- .i18nrc.json | 2 +- .../opensearch_dashboards.json | 0 .../__snapshots__/component_registry.test.tsx.snap | 0 .../public/component-registry}/component_registry.test.tsx | 0 .../public/component-registry}/component_registry.ts | 6 +++--- .../public/component-registry}/index.ts | 0 .../page-footer}/__snapshots__/page_footer.test.tsx.snap | 0 .../public/component-registry/page-footer}/index.ts | 0 .../component-registry/page-footer}/page_footer.test.tsx | 0 .../public/component-registry/page-footer}/page_footer.ts | 0 .../__snapshots__/page_subtitle.test.tsx.snap | 0 .../public/component-registry/page-subtitle}/index.ts | 0 .../page-subtitle}/page_subtitle.test.tsx | 0 .../component-registry/page-subtitle}/page_subtitle.ts | 0 .../page-title}/__snapshots__/page_title.test.tsx.snap | 0 .../public/component-registry/page-title}/index.ts | 0 .../component-registry/page-title}/page_title.test.tsx | 0 .../public/component-registry/page-title}/page_title.tsx | 0 .../public/index.ts | 4 ++-- .../public/management-app}/_advanced_settings.scss | 0 .../public/management-app}/advanced_settings.test.tsx | 4 ++-- .../public/management-app}/advanced_settings.tsx | 4 ++-- .../advanced_settings_voice_announcement.test.tsx.snap | 0 .../advanced_settings_voice_announcement.test.tsx | 0 .../advanced_settings_voice_announcement.tsx | 0 .../advanced-settings-voice-announcement}/index.ts | 0 .../call-outs}/__snapshots__/call_outs.test.tsx.snap | 0 .../management-app/components/call-outs}/call_outs.test.tsx | 0 .../management-app/components/call-outs}/call_outs.tsx | 0 .../public/management-app/components/call-outs}/index.ts | 0 .../components/field/__snapshots__/field.test.tsx.snap | 0 .../public/management-app}/components/field/field.test.tsx | 0 .../public/management-app}/components/field/field.tsx | 0 .../public/management-app}/components/field/index.ts | 0 .../components/form/__snapshots__/form.test.tsx.snap | 0 .../public/management-app}/components/form/form.test.tsx | 0 .../public/management-app}/components/form/form.tsx | 0 .../public/management-app}/components/form/index.ts | 0 .../components/search/__snapshots__/search.test.tsx.snap | 0 .../public/management-app}/components/search/index.ts | 0 .../management-app}/components/search/search.test.tsx | 0 .../public/management-app}/components/search/search.tsx | 0 .../public/management-app}/index.scss | 0 .../public/management-app}/lib/default_category.ts | 0 .../public/management-app}/lib/get_aria_name.test.ts | 0 .../public/management-app}/lib/get_aria_name.ts | 0 .../public/management-app}/lib/get_category_name.test.ts | 0 .../public/management-app}/lib/get_category_name.ts | 0 .../public/management-app}/lib/get_val_type.test.ts | 0 .../public/management-app}/lib/get_val_type.ts | 0 .../public/management-app}/lib/index.ts | 0 .../public/management-app}/lib/is_default_value.test.ts | 0 .../public/management-app}/lib/is_default_value.ts | 0 .../public/management-app}/lib/to_editable_config.test.ts | 0 .../public/management-app}/lib/to_editable_config.ts | 0 .../public/management-app}/mount_management_section.tsx | 0 .../public/management-app}/types.ts | 0 .../public/mocks.ts | 2 +- .../public/plugin.ts | 4 ++-- .../public/types.ts | 2 +- .../server/capabilities_provider.ts | 0 .../server/index.ts | 0 .../server/plugin.ts | 0 .../public/components/telemetry_management_section.tsx | 2 +- src/plugins/telemetry_management_section/public/plugin.tsx | 2 +- 65 files changed, 16 insertions(+), 16 deletions(-) rename src/plugins/{advanced_settings => advanced-settings}/opensearch_dashboards.json (100%) rename src/plugins/{advanced_settings/public/component_registry => advanced-settings/public/component-registry}/__snapshots__/component_registry.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/component_registry => advanced-settings/public/component-registry}/component_registry.test.tsx (100%) rename src/plugins/{advanced_settings/public/component_registry => advanced-settings/public/component-registry}/component_registry.ts (96%) rename src/plugins/{advanced_settings/public/component_registry => advanced-settings/public/component-registry}/index.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_footer => advanced-settings/public/component-registry/page-footer}/__snapshots__/page_footer.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/component_registry/page_footer => advanced-settings/public/component-registry/page-footer}/index.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_footer => advanced-settings/public/component-registry/page-footer}/page_footer.test.tsx (100%) rename src/plugins/{advanced_settings/public/component_registry/page_footer => advanced-settings/public/component-registry/page-footer}/page_footer.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_subtitle => advanced-settings/public/component-registry/page-subtitle}/__snapshots__/page_subtitle.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/component_registry/page_subtitle => advanced-settings/public/component-registry/page-subtitle}/index.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_subtitle => advanced-settings/public/component-registry/page-subtitle}/page_subtitle.test.tsx (100%) rename src/plugins/{advanced_settings/public/component_registry/page_subtitle => advanced-settings/public/component-registry/page-subtitle}/page_subtitle.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_title => advanced-settings/public/component-registry/page-title}/__snapshots__/page_title.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/component_registry/page_title => advanced-settings/public/component-registry/page-title}/index.ts (100%) rename src/plugins/{advanced_settings/public/component_registry/page_title => advanced-settings/public/component-registry/page-title}/page_title.test.tsx (100%) rename src/plugins/{advanced_settings/public/component_registry/page_title => advanced-settings/public/component-registry/page-title}/page_title.tsx (100%) rename src/plugins/{advanced_settings => advanced-settings}/public/index.ts (93%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/_advanced_settings.scss (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/advanced_settings.test.tsx (98%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/advanced_settings.tsx (99%) rename src/plugins/{advanced_settings/public/management_app/components/advanced_settings_voice_announcement => advanced-settings/public/management-app/components/advanced-settings-voice-announcement}/__snapshots__/advanced_settings_voice_announcement.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/management_app/components/advanced_settings_voice_announcement => advanced-settings/public/management-app/components/advanced-settings-voice-announcement}/advanced_settings_voice_announcement.test.tsx (100%) rename src/plugins/{advanced_settings/public/management_app/components/advanced_settings_voice_announcement => advanced-settings/public/management-app/components/advanced-settings-voice-announcement}/advanced_settings_voice_announcement.tsx (100%) rename src/plugins/{advanced_settings/public/management_app/components/advanced_settings_voice_announcement => advanced-settings/public/management-app/components/advanced-settings-voice-announcement}/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app/components/call_outs => advanced-settings/public/management-app/components/call-outs}/__snapshots__/call_outs.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/management_app/components/call_outs => advanced-settings/public/management-app/components/call-outs}/call_outs.test.tsx (100%) rename src/plugins/{advanced_settings/public/management_app/components/call_outs => advanced-settings/public/management-app/components/call-outs}/call_outs.tsx (100%) rename src/plugins/{advanced_settings/public/management_app/components/call_outs => advanced-settings/public/management-app/components/call-outs}/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/field/__snapshots__/field.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/field/field.test.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/field/field.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/field/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/form/__snapshots__/form.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/form/form.test.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/form/form.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/form/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/search/__snapshots__/search.test.tsx.snap (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/search/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/search/search.test.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/components/search/search.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/index.scss (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/default_category.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_aria_name.test.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_aria_name.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_category_name.test.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_category_name.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_val_type.test.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/get_val_type.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/index.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/is_default_value.test.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/is_default_value.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/to_editable_config.test.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/lib/to_editable_config.ts (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/mount_management_section.tsx (100%) rename src/plugins/{advanced_settings/public/management_app => advanced-settings/public/management-app}/types.ts (100%) rename src/plugins/{advanced_settings => advanced-settings}/public/mocks.ts (96%) rename src/plugins/{advanced_settings => advanced-settings}/public/plugin.ts (96%) rename src/plugins/{advanced_settings => advanced-settings}/public/types.ts (96%) rename src/plugins/{advanced_settings => advanced-settings}/server/capabilities_provider.ts (100%) rename src/plugins/{advanced_settings => advanced-settings}/server/index.ts (100%) rename src/plugins/{advanced_settings => advanced-settings}/server/plugin.ts (100%) diff --git a/.i18nrc.json b/.i18nrc.json index 71c7970affa4..6ba960c24090 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -28,7 +28,7 @@ ], "maps_legacy": "src/plugins/maps_legacy", "indexPatternManagement": "src/plugins/index_pattern_management", - "advancedSettings": "src/plugins/advanced_settings", + "advancedSettings": "src/plugins/advanced-settings", "opensearch_dashboards_legacy": "src/plugins/opensearch_dashboards_legacy", "opensearchDashboardsOverview": "src/plugins/opensearch_dashboards_overview", "opensearch_dashboards_react": "src/legacy/core_plugins/opensearch_dashboards_react", diff --git a/src/plugins/advanced_settings/opensearch_dashboards.json b/src/plugins/advanced-settings/opensearch_dashboards.json similarity index 100% rename from src/plugins/advanced_settings/opensearch_dashboards.json rename to src/plugins/advanced-settings/opensearch_dashboards.json diff --git a/src/plugins/advanced_settings/public/component_registry/__snapshots__/component_registry.test.tsx.snap b/src/plugins/advanced-settings/public/component-registry/__snapshots__/component_registry.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/__snapshots__/component_registry.test.tsx.snap rename to src/plugins/advanced-settings/public/component-registry/__snapshots__/component_registry.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/component_registry/component_registry.test.tsx b/src/plugins/advanced-settings/public/component-registry/component_registry.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/component_registry.test.tsx rename to src/plugins/advanced-settings/public/component-registry/component_registry.test.tsx diff --git a/src/plugins/advanced_settings/public/component_registry/component_registry.ts b/src/plugins/advanced-settings/public/component-registry/component_registry.ts similarity index 96% rename from src/plugins/advanced_settings/public/component_registry/component_registry.ts rename to src/plugins/advanced-settings/public/component-registry/component_registry.ts index 5bee78ca7ea2..1a5a3c954cf3 100644 --- a/src/plugins/advanced_settings/public/component_registry/component_registry.ts +++ b/src/plugins/advanced-settings/public/component-registry/component_registry.ts @@ -31,9 +31,9 @@ */ import { ComponentType } from 'react'; -import { PageTitle } from './page_title'; -import { PageSubtitle } from './page_subtitle'; -import { PageFooter } from './page_footer'; +import { PageTitle } from './page-title'; +import { PageSubtitle } from './page-subtitle'; +import { PageFooter } from './page-footer'; type Id = | 'advanced_settings_page_title' diff --git a/src/plugins/advanced_settings/public/component_registry/index.ts b/src/plugins/advanced-settings/public/component-registry/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/index.ts rename to src/plugins/advanced-settings/public/component-registry/index.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_footer/__snapshots__/page_footer.test.tsx.snap b/src/plugins/advanced-settings/public/component-registry/page-footer/__snapshots__/page_footer.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_footer/__snapshots__/page_footer.test.tsx.snap rename to src/plugins/advanced-settings/public/component-registry/page-footer/__snapshots__/page_footer.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/component_registry/page_footer/index.ts b/src/plugins/advanced-settings/public/component-registry/page-footer/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_footer/index.ts rename to src/plugins/advanced-settings/public/component-registry/page-footer/index.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_footer/page_footer.test.tsx b/src/plugins/advanced-settings/public/component-registry/page-footer/page_footer.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_footer/page_footer.test.tsx rename to src/plugins/advanced-settings/public/component-registry/page-footer/page_footer.test.tsx diff --git a/src/plugins/advanced_settings/public/component_registry/page_footer/page_footer.ts b/src/plugins/advanced-settings/public/component-registry/page-footer/page_footer.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_footer/page_footer.ts rename to src/plugins/advanced-settings/public/component-registry/page-footer/page_footer.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_subtitle/__snapshots__/page_subtitle.test.tsx.snap b/src/plugins/advanced-settings/public/component-registry/page-subtitle/__snapshots__/page_subtitle.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_subtitle/__snapshots__/page_subtitle.test.tsx.snap rename to src/plugins/advanced-settings/public/component-registry/page-subtitle/__snapshots__/page_subtitle.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/component_registry/page_subtitle/index.ts b/src/plugins/advanced-settings/public/component-registry/page-subtitle/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_subtitle/index.ts rename to src/plugins/advanced-settings/public/component-registry/page-subtitle/index.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_subtitle/page_subtitle.test.tsx b/src/plugins/advanced-settings/public/component-registry/page-subtitle/page_subtitle.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_subtitle/page_subtitle.test.tsx rename to src/plugins/advanced-settings/public/component-registry/page-subtitle/page_subtitle.test.tsx diff --git a/src/plugins/advanced_settings/public/component_registry/page_subtitle/page_subtitle.ts b/src/plugins/advanced-settings/public/component-registry/page-subtitle/page_subtitle.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_subtitle/page_subtitle.ts rename to src/plugins/advanced-settings/public/component-registry/page-subtitle/page_subtitle.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap b/src/plugins/advanced-settings/public/component-registry/page-title/__snapshots__/page_title.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_title/__snapshots__/page_title.test.tsx.snap rename to src/plugins/advanced-settings/public/component-registry/page-title/__snapshots__/page_title.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/index.ts b/src/plugins/advanced-settings/public/component-registry/page-title/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_title/index.ts rename to src/plugins/advanced-settings/public/component-registry/page-title/index.ts diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/page_title.test.tsx b/src/plugins/advanced-settings/public/component-registry/page-title/page_title.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_title/page_title.test.tsx rename to src/plugins/advanced-settings/public/component-registry/page-title/page_title.test.tsx diff --git a/src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx b/src/plugins/advanced-settings/public/component-registry/page-title/page_title.tsx similarity index 100% rename from src/plugins/advanced_settings/public/component_registry/page_title/page_title.tsx rename to src/plugins/advanced-settings/public/component-registry/page-title/page_title.tsx diff --git a/src/plugins/advanced_settings/public/index.ts b/src/plugins/advanced-settings/public/index.ts similarity index 93% rename from src/plugins/advanced_settings/public/index.ts rename to src/plugins/advanced-settings/public/index.ts index a083f76bb548..9bb06798189b 100644 --- a/src/plugins/advanced_settings/public/index.ts +++ b/src/plugins/advanced-settings/public/index.ts @@ -34,14 +34,14 @@ import React from 'react'; import { PluginInitializerContext } from 'opensearch-dashboards/public'; import { AdvancedSettingsPlugin } from './plugin'; export { AdvancedSettingsSetup, AdvancedSettingsStart } from './types'; -export { ComponentRegistry } from './component_registry'; +export { ComponentRegistry } from './component-registry'; /** * Exports the field component as a React.lazy component. We're explicitly naming it lazy here * so any plugin that would import that can clearly see it's lazy loaded and can only be used * inside a suspense context. */ -const LazyField = React.lazy(() => import('./management_app/components/field')); +const LazyField = React.lazy(() => import('./management-app/components/field')); export { LazyField }; export function plugin(initializerContext: PluginInitializerContext) { diff --git a/src/plugins/advanced_settings/public/management_app/_advanced_settings.scss b/src/plugins/advanced-settings/public/management-app/_advanced_settings.scss similarity index 100% rename from src/plugins/advanced_settings/public/management_app/_advanced_settings.scss rename to src/plugins/advanced-settings/public/management-app/_advanced_settings.scss diff --git a/src/plugins/advanced_settings/public/management_app/advanced_settings.test.tsx b/src/plugins/advanced-settings/public/management-app/advanced_settings.test.tsx similarity index 98% rename from src/plugins/advanced_settings/public/management_app/advanced_settings.test.tsx rename to src/plugins/advanced-settings/public/management-app/advanced_settings.test.tsx index dd43e8f7faa0..45cd6c4378fc 100644 --- a/src/plugins/advanced_settings/public/management_app/advanced_settings.test.tsx +++ b/src/plugins/advanced-settings/public/management-app/advanced_settings.test.tsx @@ -43,7 +43,7 @@ import { import { FieldSetting } from './types'; import { AdvancedSettingsComponent } from './advanced_settings'; import { notificationServiceMock, docLinksServiceMock } from '../../../../core/public/mocks'; -import { ComponentRegistry } from '../component_registry'; +import { ComponentRegistry } from '../component-registry'; jest.mock('./components/field', () => ({ Field: () => { @@ -51,7 +51,7 @@ jest.mock('./components/field', () => ({ }, })); -jest.mock('./components/call_outs', () => ({ +jest.mock('./components/call-outs', () => ({ CallOuts: () => { return 'callOuts'; }, diff --git a/src/plugins/advanced_settings/public/management_app/advanced_settings.tsx b/src/plugins/advanced-settings/public/management-app/advanced_settings.tsx similarity index 99% rename from src/plugins/advanced_settings/public/management_app/advanced_settings.tsx rename to src/plugins/advanced-settings/public/management-app/advanced_settings.tsx index 73290d21116e..4db7b1e11287 100644 --- a/src/plugins/advanced_settings/public/management_app/advanced_settings.tsx +++ b/src/plugins/advanced-settings/public/management-app/advanced_settings.tsx @@ -35,10 +35,10 @@ import { Subscription } from 'rxjs'; import { Comparators, EuiFlexGroup, EuiFlexItem, EuiSpacer, Query } from '@elastic/eui'; import { useParams } from 'react-router-dom'; -import { CallOuts } from './components/call_outs'; +import { CallOuts } from './components/call-outs'; import { Search } from './components/search'; import { Form } from './components/form'; -import { AdvancedSettingsVoiceAnnouncement } from './components/advanced_settings_voice_announcement'; +import { AdvancedSettingsVoiceAnnouncement } from './components/advanced-settings-voice-announcement'; import { IUiSettingsClient, DocLinksStart, ToastsStart } from '../../../../core/public/'; import { ComponentRegistry } from '../'; diff --git a/src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/__snapshots__/advanced_settings_voice_announcement.test.tsx.snap b/src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/__snapshots__/advanced_settings_voice_announcement.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/__snapshots__/advanced_settings_voice_announcement.test.tsx.snap rename to src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/__snapshots__/advanced_settings_voice_announcement.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/advanced_settings_voice_announcement.test.tsx b/src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/advanced_settings_voice_announcement.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/advanced_settings_voice_announcement.test.tsx rename to src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/advanced_settings_voice_announcement.test.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/advanced_settings_voice_announcement.tsx b/src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/advanced_settings_voice_announcement.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/advanced_settings_voice_announcement.tsx rename to src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/advanced_settings_voice_announcement.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/index.ts b/src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/advanced_settings_voice_announcement/index.ts rename to src/plugins/advanced-settings/public/management-app/components/advanced-settings-voice-announcement/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/components/call_outs/__snapshots__/call_outs.test.tsx.snap b/src/plugins/advanced-settings/public/management-app/components/call-outs/__snapshots__/call_outs.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/call_outs/__snapshots__/call_outs.test.tsx.snap rename to src/plugins/advanced-settings/public/management-app/components/call-outs/__snapshots__/call_outs.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/management_app/components/call_outs/call_outs.test.tsx b/src/plugins/advanced-settings/public/management-app/components/call-outs/call_outs.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/call_outs/call_outs.test.tsx rename to src/plugins/advanced-settings/public/management-app/components/call-outs/call_outs.test.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/call_outs/call_outs.tsx b/src/plugins/advanced-settings/public/management-app/components/call-outs/call_outs.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/call_outs/call_outs.tsx rename to src/plugins/advanced-settings/public/management-app/components/call-outs/call_outs.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/call_outs/index.ts b/src/plugins/advanced-settings/public/management-app/components/call-outs/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/call_outs/index.ts rename to src/plugins/advanced-settings/public/management-app/components/call-outs/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/components/field/__snapshots__/field.test.tsx.snap b/src/plugins/advanced-settings/public/management-app/components/field/__snapshots__/field.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/field/__snapshots__/field.test.tsx.snap rename to src/plugins/advanced-settings/public/management-app/components/field/__snapshots__/field.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/management_app/components/field/field.test.tsx b/src/plugins/advanced-settings/public/management-app/components/field/field.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/field/field.test.tsx rename to src/plugins/advanced-settings/public/management-app/components/field/field.test.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/field/field.tsx b/src/plugins/advanced-settings/public/management-app/components/field/field.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/field/field.tsx rename to src/plugins/advanced-settings/public/management-app/components/field/field.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/field/index.ts b/src/plugins/advanced-settings/public/management-app/components/field/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/field/index.ts rename to src/plugins/advanced-settings/public/management-app/components/field/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/components/form/__snapshots__/form.test.tsx.snap b/src/plugins/advanced-settings/public/management-app/components/form/__snapshots__/form.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/form/__snapshots__/form.test.tsx.snap rename to src/plugins/advanced-settings/public/management-app/components/form/__snapshots__/form.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/management_app/components/form/form.test.tsx b/src/plugins/advanced-settings/public/management-app/components/form/form.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/form/form.test.tsx rename to src/plugins/advanced-settings/public/management-app/components/form/form.test.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/form/form.tsx b/src/plugins/advanced-settings/public/management-app/components/form/form.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/form/form.tsx rename to src/plugins/advanced-settings/public/management-app/components/form/form.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/form/index.ts b/src/plugins/advanced-settings/public/management-app/components/form/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/form/index.ts rename to src/plugins/advanced-settings/public/management-app/components/form/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/components/search/__snapshots__/search.test.tsx.snap b/src/plugins/advanced-settings/public/management-app/components/search/__snapshots__/search.test.tsx.snap similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/search/__snapshots__/search.test.tsx.snap rename to src/plugins/advanced-settings/public/management-app/components/search/__snapshots__/search.test.tsx.snap diff --git a/src/plugins/advanced_settings/public/management_app/components/search/index.ts b/src/plugins/advanced-settings/public/management-app/components/search/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/search/index.ts rename to src/plugins/advanced-settings/public/management-app/components/search/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/components/search/search.test.tsx b/src/plugins/advanced-settings/public/management-app/components/search/search.test.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/search/search.test.tsx rename to src/plugins/advanced-settings/public/management-app/components/search/search.test.tsx diff --git a/src/plugins/advanced_settings/public/management_app/components/search/search.tsx b/src/plugins/advanced-settings/public/management-app/components/search/search.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/components/search/search.tsx rename to src/plugins/advanced-settings/public/management-app/components/search/search.tsx diff --git a/src/plugins/advanced_settings/public/management_app/index.scss b/src/plugins/advanced-settings/public/management-app/index.scss similarity index 100% rename from src/plugins/advanced_settings/public/management_app/index.scss rename to src/plugins/advanced-settings/public/management-app/index.scss diff --git a/src/plugins/advanced_settings/public/management_app/lib/default_category.ts b/src/plugins/advanced-settings/public/management-app/lib/default_category.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/default_category.ts rename to src/plugins/advanced-settings/public/management-app/lib/default_category.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_aria_name.test.ts b/src/plugins/advanced-settings/public/management-app/lib/get_aria_name.test.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_aria_name.test.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_aria_name.test.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_aria_name.ts b/src/plugins/advanced-settings/public/management-app/lib/get_aria_name.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_aria_name.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_aria_name.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_category_name.test.ts b/src/plugins/advanced-settings/public/management-app/lib/get_category_name.test.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_category_name.test.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_category_name.test.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_category_name.ts b/src/plugins/advanced-settings/public/management-app/lib/get_category_name.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_category_name.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_category_name.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_val_type.test.ts b/src/plugins/advanced-settings/public/management-app/lib/get_val_type.test.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_val_type.test.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_val_type.test.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/get_val_type.ts b/src/plugins/advanced-settings/public/management-app/lib/get_val_type.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/get_val_type.ts rename to src/plugins/advanced-settings/public/management-app/lib/get_val_type.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/index.ts b/src/plugins/advanced-settings/public/management-app/lib/index.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/index.ts rename to src/plugins/advanced-settings/public/management-app/lib/index.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/is_default_value.test.ts b/src/plugins/advanced-settings/public/management-app/lib/is_default_value.test.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/is_default_value.test.ts rename to src/plugins/advanced-settings/public/management-app/lib/is_default_value.test.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/is_default_value.ts b/src/plugins/advanced-settings/public/management-app/lib/is_default_value.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/is_default_value.ts rename to src/plugins/advanced-settings/public/management-app/lib/is_default_value.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/to_editable_config.test.ts b/src/plugins/advanced-settings/public/management-app/lib/to_editable_config.test.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/to_editable_config.test.ts rename to src/plugins/advanced-settings/public/management-app/lib/to_editable_config.test.ts diff --git a/src/plugins/advanced_settings/public/management_app/lib/to_editable_config.ts b/src/plugins/advanced-settings/public/management-app/lib/to_editable_config.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/lib/to_editable_config.ts rename to src/plugins/advanced-settings/public/management-app/lib/to_editable_config.ts diff --git a/src/plugins/advanced_settings/public/management_app/mount_management_section.tsx b/src/plugins/advanced-settings/public/management-app/mount_management_section.tsx similarity index 100% rename from src/plugins/advanced_settings/public/management_app/mount_management_section.tsx rename to src/plugins/advanced-settings/public/management-app/mount_management_section.tsx diff --git a/src/plugins/advanced_settings/public/management_app/types.ts b/src/plugins/advanced-settings/public/management-app/types.ts similarity index 100% rename from src/plugins/advanced_settings/public/management_app/types.ts rename to src/plugins/advanced-settings/public/management-app/types.ts diff --git a/src/plugins/advanced_settings/public/mocks.ts b/src/plugins/advanced-settings/public/mocks.ts similarity index 96% rename from src/plugins/advanced_settings/public/mocks.ts rename to src/plugins/advanced-settings/public/mocks.ts index ef902804d998..898bfca776f8 100644 --- a/src/plugins/advanced_settings/public/mocks.ts +++ b/src/plugins/advanced-settings/public/mocks.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -import { ComponentRegistry } from './component_registry'; +import { ComponentRegistry } from './component-registry'; const register = jest.fn(); const get = jest.fn(); diff --git a/src/plugins/advanced_settings/public/plugin.ts b/src/plugins/advanced-settings/public/plugin.ts similarity index 96% rename from src/plugins/advanced_settings/public/plugin.ts rename to src/plugins/advanced-settings/public/plugin.ts index 105b4902eb4b..6c3d62b68b99 100644 --- a/src/plugins/advanced_settings/public/plugin.ts +++ b/src/plugins/advanced-settings/public/plugin.ts @@ -32,7 +32,7 @@ import { i18n } from '@osd/i18n'; import { CoreSetup, Plugin } from 'opensearch-dashboards/public'; import { FeatureCatalogueCategory } from '../../home/public'; -import { ComponentRegistry } from './component_registry'; +import { ComponentRegistry } from './component-registry'; import { AdvancedSettingsSetup, AdvancedSettingsStart, AdvancedSettingsPluginSetup } from './types'; const component = new ComponentRegistry(); @@ -52,7 +52,7 @@ export class AdvancedSettingsPlugin order: 3, async mount(params) { const { mountManagementSection } = await import( - './management_app/mount_management_section' + './management-app/mount_management_section' ); return mountManagementSection(core.getStartServices, params, component.start); }, diff --git a/src/plugins/advanced_settings/public/types.ts b/src/plugins/advanced-settings/public/types.ts similarity index 96% rename from src/plugins/advanced_settings/public/types.ts rename to src/plugins/advanced-settings/public/types.ts index f731d26cc447..b3e0afdc5419 100644 --- a/src/plugins/advanced_settings/public/types.ts +++ b/src/plugins/advanced-settings/public/types.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -import { ComponentRegistry } from './component_registry'; +import { ComponentRegistry } from './component-registry'; import { HomePublicPluginSetup } from '../../home/public'; import { ManagementSetup } from '../../management/public'; diff --git a/src/plugins/advanced_settings/server/capabilities_provider.ts b/src/plugins/advanced-settings/server/capabilities_provider.ts similarity index 100% rename from src/plugins/advanced_settings/server/capabilities_provider.ts rename to src/plugins/advanced-settings/server/capabilities_provider.ts diff --git a/src/plugins/advanced_settings/server/index.ts b/src/plugins/advanced-settings/server/index.ts similarity index 100% rename from src/plugins/advanced_settings/server/index.ts rename to src/plugins/advanced-settings/server/index.ts diff --git a/src/plugins/advanced_settings/server/plugin.ts b/src/plugins/advanced-settings/server/plugin.ts similarity index 100% rename from src/plugins/advanced_settings/server/plugin.ts rename to src/plugins/advanced-settings/server/plugin.ts diff --git a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx b/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx index 6f0a19ddc365..7be0657859c4 100644 --- a/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx +++ b/src/plugins/telemetry_management_section/public/components/telemetry_management_section.tsx @@ -48,7 +48,7 @@ import { TelemetryPluginSetup } from 'src/plugins/telemetry/public'; import { PRIVACY_STATEMENT_URL } from '../../../telemetry/common/constants'; import { OptInExampleFlyout } from './opt_in_example_flyout'; import { OptInSecurityExampleFlyout } from './opt_in_security_example_flyout'; -import { LazyField } from '../../../advanced_settings/public'; +import { LazyField } from '../../../advanced-settings/public'; import { ToastsStart } from '../../../../core/public'; type TelemetryService = TelemetryPluginSetup['telemetryService']; diff --git a/src/plugins/telemetry_management_section/public/plugin.tsx b/src/plugins/telemetry_management_section/public/plugin.tsx index a4941047c2cb..61efbd784a83 100644 --- a/src/plugins/telemetry_management_section/public/plugin.tsx +++ b/src/plugins/telemetry_management_section/public/plugin.tsx @@ -29,7 +29,7 @@ * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ -import { AdvancedSettingsSetup } from 'src/plugins/advanced_settings/public'; +import { AdvancedSettingsSetup } from 'src/plugins/advanced-settings/public'; import { TelemetryPluginSetup } from 'src/plugins/telemetry/public'; import { Plugin, CoreStart, CoreSetup } from '../../../core/public';