formatting
This commit is contained in:
@@ -35,7 +35,10 @@ import {
|
||||
githubPullRequestsApiRef,
|
||||
} from '@roadiehq/backstage-plugin-github-pull-requests';
|
||||
|
||||
import { costInsightsApiRef, ExampleCostInsightsClient } from '@backstage/plugin-cost-insights';
|
||||
import {
|
||||
costInsightsApiRef,
|
||||
ExampleCostInsightsClient,
|
||||
} from '@backstage/plugin-cost-insights';
|
||||
|
||||
export const apis = [
|
||||
createApiFactory({
|
||||
|
||||
@@ -14,18 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
PluginConfig,
|
||||
PluginOutput,
|
||||
BackstagePlugin,
|
||||
} from './types';
|
||||
import { PluginConfig, PluginOutput, BackstagePlugin } from './types';
|
||||
import { validateBrowserCompat, validateFlagName } from '../app/FeatureFlags';
|
||||
import { AnyApiFactory } from '../apis';
|
||||
|
||||
export class PluginImpl {
|
||||
private storedOutput?: PluginOutput[];
|
||||
|
||||
constructor(private readonly config: PluginConfig) { }
|
||||
constructor(private readonly config: PluginConfig) {}
|
||||
|
||||
getId(): string {
|
||||
return this.config.id;
|
||||
|
||||
@@ -25,9 +25,9 @@ const devPlugin = createPlugin({
|
||||
createApiFactory({
|
||||
api: costInsightsApiRef,
|
||||
deps: {},
|
||||
factory: () => new ExampleCostInsightsClient()
|
||||
})
|
||||
]
|
||||
factory: () => new ExampleCostInsightsClient(),
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
createDevApp().registerPlugin(devPlugin).render();
|
||||
|
||||
@@ -42,6 +42,6 @@ export const pluginConfig: PluginConfig = {
|
||||
router.addRoute(unlabeledDataflowAlertRef, LabelDataflowInstructionsPage);
|
||||
featureFlags.register('cost-insights-currencies');
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
export const plugin = createPlugin(pluginConfig);
|
||||
|
||||
Reference in New Issue
Block a user