feat: add explore-backend plugin
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
This commit is contained in:
@@ -4,23 +4,17 @@
|
||||
|
||||
```ts
|
||||
import { ApiRef } from '@backstage/core-plugin-api';
|
||||
import * as common from '@backstage/plugin-explore-common';
|
||||
|
||||
// @public (undocumented)
|
||||
export type ExploreTool = {
|
||||
title: string;
|
||||
description?: string;
|
||||
url: string;
|
||||
image: string;
|
||||
tags?: string[];
|
||||
lifecycle?: string;
|
||||
};
|
||||
// @public @deprecated (undocumented)
|
||||
export type ExploreTool = common.ExploreTool;
|
||||
|
||||
// @public (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export interface ExploreToolsConfig {
|
||||
// (undocumented)
|
||||
getTools: () => Promise<ExploreTool[]>;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
// @public @deprecated (undocumented)
|
||||
export const exploreToolsConfigRef: ApiRef<ExploreToolsConfig>;
|
||||
```
|
||||
|
||||
@@ -32,7 +32,8 @@
|
||||
"start": "backstage-cli package start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/core-plugin-api": "workspace:^"
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/plugin-explore-common": "workspace:^"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^",
|
||||
|
||||
@@ -16,22 +16,29 @@
|
||||
|
||||
import { createApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
/** @public */
|
||||
/**
|
||||
* Deprecated types moved to `@backstage/plugin-explore-common`
|
||||
*/
|
||||
import * as common from '@backstage/plugin-explore-common';
|
||||
|
||||
/**
|
||||
* @deprecated Use ExploreTool from `@backstage/plugin-explore-common`
|
||||
* @public
|
||||
*/
|
||||
export type ExploreTool = common.ExploreTool;
|
||||
|
||||
/**
|
||||
* @deprecated Use exploreApiRef from `@backstage/plugin-explore` & the `@backstage/plugin-explore-backend`
|
||||
* @public
|
||||
*/
|
||||
export const exploreToolsConfigRef = createApiRef<ExploreToolsConfig>({
|
||||
id: 'plugin.explore.toolsconfig',
|
||||
});
|
||||
|
||||
/** @public */
|
||||
export type ExploreTool = {
|
||||
title: string;
|
||||
description?: string;
|
||||
url: string;
|
||||
image: string;
|
||||
tags?: string[];
|
||||
lifecycle?: string;
|
||||
};
|
||||
|
||||
/** @public */
|
||||
/**
|
||||
* @deprecated Use ExploreApi from `@backstage/plugin-explore` & the `@backstage/plugin-explore-backend`
|
||||
* @public
|
||||
*/
|
||||
export interface ExploreToolsConfig {
|
||||
getTools: () => Promise<ExploreTool[]>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user