From 8dca04649542d396f975ab0e2dd9868b4d71c985 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 20 Oct 2022 08:20:57 +0300 Subject: [PATCH] Move code under a feature Signed-off-by: Janne Savolainen --- src/extensions/common-api/registrations.ts | 2 +- src/extensions/lens-renderer-extension.ts | 4 ++-- .../app-preference-registration.ts | 0 .../app-preference-tab-registration.ts | 0 .../extension-preference-block.tsx | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/{renderer/components/+preferences/app-preferences => features/preferences/renderer/compliance-for-legacy-extension-api}/app-preference-registration.ts (100%) rename src/{renderer/components/+preferences/app-preference-tab => features/preferences/renderer/compliance-for-legacy-extension-api}/app-preference-tab-registration.ts (100%) diff --git a/src/extensions/common-api/registrations.ts b/src/extensions/common-api/registrations.ts index 5f19ec495d..4bfda25170 100644 --- a/src/extensions/common-api/registrations.ts +++ b/src/extensions/common-api/registrations.ts @@ -4,7 +4,7 @@ */ export type { StatusBarRegistration } from "../../renderer/components/status-bar/status-bar-registration"; export type { KubeObjectMenuRegistration, KubeObjectMenuComponents } from "../../renderer/components/kube-object-menu/kube-object-menu-registration"; -export type { AppPreferenceRegistration, AppPreferenceComponents } from "../../renderer/components/+preferences/app-preferences/app-preference-registration"; +export type { AppPreferenceRegistration, AppPreferenceComponents } from "../../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-registration"; export type { KubeObjectDetailRegistration, KubeObjectDetailComponents } from "../../renderer/components/kube-object-details/kube-object-detail-registration"; export type { KubeObjectStatusRegistration } from "../../renderer/components/kube-object-status-icon/kube-object-status-registration"; export type { PageRegistration, RegisteredPage, PageParams, PageComponentProps, PageComponents, PageTarget } from "../registries/page-registry"; diff --git a/src/extensions/lens-renderer-extension.ts b/src/extensions/lens-renderer-extension.ts index d744d261d4..12203cc932 100644 --- a/src/extensions/lens-renderer-extension.ts +++ b/src/extensions/lens-renderer-extension.ts @@ -14,7 +14,7 @@ import type { KubernetesCluster } from "../common/catalog-entities"; import type { WelcomeMenuRegistration } from "../renderer/components/+welcome/welcome-menu-items/welcome-menu-registration"; import type { WelcomeBannerRegistration } from "../renderer/components/+welcome/welcome-banner-items/welcome-banner-registration"; import type { CommandRegistration } from "../renderer/components/command-palette/registered-commands/commands"; -import type { AppPreferenceRegistration } from "../renderer/components/+preferences/app-preferences/app-preference-registration"; +import type { AppPreferenceRegistration } from "../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-registration"; import type { AdditionalCategoryColumnRegistration } from "../renderer/components/+catalog/custom-category-columns"; import type { CustomCategoryViewRegistration } from "../renderer/components/+catalog/custom-views"; import type { StatusBarRegistration } from "../renderer/components/status-bar/status-bar-registration"; @@ -26,7 +26,7 @@ import { pipeline } from "@ogre-tools/fp"; import { getExtensionRoutePath } from "../renderer/routes/for-extension"; import type { LensRendererExtensionDependencies } from "./lens-extension-set-dependencies"; import type { KubeObjectHandlerRegistration } from "../renderer/kube-object/handler"; -import type { AppPreferenceTabRegistration } from "../renderer/components/+preferences/app-preference-tab/app-preference-tab-registration"; +import type { AppPreferenceTabRegistration } from "../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration"; import type { KubeObjectDetailRegistration } from "../renderer/components/kube-object-details/kube-object-detail-registration"; export class LensRendererExtension extends LensExtension { diff --git a/src/renderer/components/+preferences/app-preferences/app-preference-registration.ts b/src/features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-registration.ts similarity index 100% rename from src/renderer/components/+preferences/app-preferences/app-preference-registration.ts rename to src/features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-registration.ts diff --git a/src/renderer/components/+preferences/app-preference-tab/app-preference-tab-registration.ts b/src/features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration.ts similarity index 100% rename from src/renderer/components/+preferences/app-preference-tab/app-preference-tab-registration.ts rename to src/features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration.ts diff --git a/src/features/preferences/renderer/compliance-for-legacy-extension-api/extension-preference-block.tsx b/src/features/preferences/renderer/compliance-for-legacy-extension-api/extension-preference-block.tsx index c2648e5993..4eb72fe029 100644 --- a/src/features/preferences/renderer/compliance-for-legacy-extension-api/extension-preference-block.tsx +++ b/src/features/preferences/renderer/compliance-for-legacy-extension-api/extension-preference-block.tsx @@ -3,7 +3,7 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import { SubTitle } from "../../../../renderer/components/layout/sub-title"; -import type { AppPreferenceRegistration } from "../../../../renderer/components/+preferences/app-preferences/app-preference-registration"; +import type { AppPreferenceRegistration } from "./app-preference-registration"; import React from "react"; export interface ExtensionSettingsProps {