formatting

This commit is contained in:
Ryan Vazquez
2020-10-26 15:41:13 -04:00
parent 26e69ab1a2
commit 75336fbbd7
4 changed files with 10 additions and 11 deletions
+4 -1
View File
@@ -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({
+2 -6
View File
@@ -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;
+3 -3
View File
@@ -25,9 +25,9 @@ const devPlugin = createPlugin({
createApiFactory({
api: costInsightsApiRef,
deps: {},
factory: () => new ExampleCostInsightsClient()
})
]
factory: () => new ExampleCostInsightsClient(),
}),
],
});
createDevApp().registerPlugin(devPlugin).render();
+1 -1
View File
@@ -42,6 +42,6 @@ export const pluginConfig: PluginConfig = {
router.addRoute(unlabeledDataflowAlertRef, LabelDataflowInstructionsPage);
featureFlags.register('cost-insights-currencies');
},
}
};
export const plugin = createPlugin(pluginConfig);