add base setup as well as catalog for gitea
This commit is contained in:
@@ -28,10 +28,11 @@
|
||||
"@backstage/plugin-search-react": "^0.2.1",
|
||||
"@backstage/plugin-tech-radar": "^0.5.13",
|
||||
"@backstage/plugin-techdocs": "^1.2.0",
|
||||
"@backstage/plugin-techdocs-react": "^1.0.1",
|
||||
"@backstage/plugin-techdocs-module-addons-contrib": "^1.0.1",
|
||||
"@backstage/plugin-techdocs-react": "^1.0.1",
|
||||
"@backstage/plugin-user-settings": "^0.4.5",
|
||||
"@backstage/theme": "^0.2.15",
|
||||
"@internal/plugin-catalog-backend-module-gitea": "^0.1.0",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"history": "^5.0.0",
|
||||
|
@@ -27,15 +27,35 @@ import { entityPage } from './components/catalog/EntityPage';
|
||||
import { searchPage } from './components/search/SearchPage';
|
||||
import { Root } from './components/Root';
|
||||
|
||||
import { AlertDisplay, OAuthRequestDialog } from '@backstage/core-components';
|
||||
import {
|
||||
AlertDisplay,
|
||||
OAuthRequestDialog,
|
||||
SignInPage,
|
||||
} from '@backstage/core-components';
|
||||
import { createApp } from '@backstage/app-defaults';
|
||||
import { FlatRoutes } from '@backstage/core-app-api';
|
||||
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
|
||||
import { PermissionedRoute } from '@backstage/plugin-permission-react';
|
||||
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
|
||||
import { githubAuthApiRef } from '@backstage/core-plugin-api';
|
||||
import { CatalogBackendModuleGiteaPage } from '@internal/plugin-catalog-backend-module-gitea';
|
||||
|
||||
const app = createApp({
|
||||
apis,
|
||||
components: {
|
||||
SignInPage: props => (
|
||||
<SignInPage
|
||||
{...props}
|
||||
auto
|
||||
provider={{
|
||||
id: 'github-auth-provider',
|
||||
title: 'github',
|
||||
message: 'Sign in using GitHub',
|
||||
apiRef: githubAuthApiRef,
|
||||
}}
|
||||
/>
|
||||
),
|
||||
},
|
||||
bindRoutes({ bind }) {
|
||||
bind(catalogPlugin.externalRoutes, {
|
||||
createComponent: scaffolderPlugin.routes.root,
|
||||
@@ -91,6 +111,7 @@ const routes = (
|
||||
</Route>
|
||||
<Route path="/settings" element={<UserSettingsPage />} />
|
||||
<Route path="/catalog-graph" element={<CatalogGraphPage />} />
|
||||
<Route path="/catalog-backend-module-gitea" element={<CatalogBackendModuleGiteaPage />}/>
|
||||
</FlatRoutes>
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user