mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Adding Topbar extension registries (#2997)
* Move topbars to cluster manager Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Adding topBar extension registries Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * topbar test clean up Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Removing unused class Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Expanding CSS Module typings Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fixing welcomeURL path Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Remove unused import Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix TopBarRegistry references Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fixing topbar test Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Init missing registry Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
6f6ad9cc12
commit
d14a3e4a6d
16 files changed
+263
-60
No files matched your search
@@ -28,6 +28,7 @@ import { LensExtension } from "./lens-extension";
|
||||
import { getExtensionPageUrl } from "./registries/page-registry";
|
||||
import type { CommandRegistration } from "./registries/command-registry";
|
||||
import type { EntitySettingRegistration } from "./registries/entity-setting-registry";
|
||||
import type { TopBarRegistration } from "./registries/topbar-registry";
|
||||
|
||||
export class LensRendererExtension extends LensExtension {
|
||||
globalPages: PageRegistration[] = [];
|
||||
@@ -44,6 +45,7 @@ export class LensRendererExtension extends LensExtension {
|
||||
commands: CommandRegistration[] = [];
|
||||
welcomeMenus: WelcomeMenuRegistration[] = [];
|
||||
catalogEntityDetailItems: CatalogEntityDetailRegistration[] = [];
|
||||
topBarItems: TopBarRegistration[] = [];
|
||||
|
||||
async navigate<P extends object>(pageId?: string, params?: P) {
|
||||
const { navigate } = await import("../renderer/navigation");
|
||||
|
||||
Reference in new issue
Block a user