chore: added all the app extensions to the app plugin

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Signed-off-by: blam <ben@blam.sh>
 You are currently bisecting, started from branch 'master'.
This commit is contained in:
blam
2024-08-26 13:43:57 +02:00
parent 1deb3f8948
commit 175201bdf0
2 changed files with 80 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { App } from './App';
export { AppLanguageApi } from './AppLanguageApi';
export { AppLayout } from './AppLayout';
export { AppNav } from './AppNav';
export { AppRoot } from './AppRoot';
export { AppRoutes } from './AppRoutes';
export { AppThemeApi } from './AppThemeApi';
export { ComponentsApi } from './ComponentsApi';
export { IconsApi } from './IconsApi';
export { FeatureFlagsApi } from './FeatureFlagsApi';
export { TranslationsApi } from './TranslationsApi';
export {
DefaultProgressComponent,
DefaultErrorBoundaryComponent,
DefaultNotFoundErrorPageComponent,
} from './components';
export {
oauthRequestDialogAppRootElement,
alertDisplayAppRootElement,
} from './elements';
+45 -2
View File
@@ -13,9 +13,52 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
import {
App,
AppLanguageApi,
AppLayout,
AppNav,
AppRoot,
AppRoutes,
AppThemeApi,
DarkTheme,
LightTheme,
ComponentsApi,
IconsApi,
FeatureFlagsApi,
TranslationsApi,
DefaultProgressComponent,
DefaultNotFoundErrorPageComponent,
DefaultErrorBoundaryComponent,
oauthRequestDialogAppRootElement,
alertDisplayAppRootElement,
} from './extensions';
import { apis } from './defaultApis';
/** @public */
export const appPlugin = createFrontendPlugin({
id: 'app',
extensions: [],
extensions: [
...apis,
App,
AppLanguageApi,
AppLayout,
AppNav,
AppRoot,
AppRoutes,
AppThemeApi,
DarkTheme,
LightTheme,
ComponentsApi,
IconsApi,
FeatureFlagsApi,
TranslationsApi,
DefaultProgressComponent,
DefaultNotFoundErrorPageComponent,
DefaultErrorBoundaryComponent,
oauthRequestDialogAppRootElement,
alertDisplayAppRootElement,
],
});