Merge branch 'master' into 21777-bump-score-card-0.8.0
Signed-off-by: jvilimek <jvilimek@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,82 @@
|
||||
# example-app
|
||||
|
||||
## 0.2.92-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-import@0.10.6-next.0
|
||||
- @backstage/plugin-catalog-graph@0.3.4-next.0
|
||||
- @backstage/plugin-catalog-react@1.9.4-next.0
|
||||
- @backstage/plugin-catalog@1.17.0-next.0
|
||||
- @backstage/plugin-adr@0.6.13-next.0
|
||||
- @backstage/app-defaults@1.4.8-next.0
|
||||
- @backstage/frontend-app-api@0.6.0-next.0
|
||||
- @backstage/plugin-scaffolder-react@1.8.0-next.0
|
||||
- @backstage/plugin-scaffolder@1.18.0-next.0
|
||||
- @backstage/plugin-devtools@0.1.9-next.0
|
||||
- @backstage/plugin-user-settings@0.8.1-next.0
|
||||
- @backstage/plugin-tech-radar@0.6.13-next.0
|
||||
- @backstage/plugin-graphiql@0.3.3-next.0
|
||||
- @backstage/plugin-techdocs@1.9.4-next.0
|
||||
- @backstage/plugin-search@1.4.6-next.0
|
||||
- @backstage/plugin-api-docs@0.10.4-next.0
|
||||
- @backstage/cli@0.25.2-next.0
|
||||
- @backstage/plugin-stack-overflow@0.1.25-next.0
|
||||
- @backstage/plugin-signals@0.0.1-next.0
|
||||
- @backstage/plugin-home@0.6.2-next.0
|
||||
- @backstage/plugin-cloudbuild@0.4.0-next.0
|
||||
- @backstage/plugin-techdocs-module-addons-contrib@1.1.5-next.0
|
||||
- @backstage/plugin-azure-devops@0.3.12-next.0
|
||||
- @backstage/plugin-linguist@0.1.15-next.0
|
||||
- @backstage/plugin-airbrake@0.3.30-next.0
|
||||
- @backstage/plugin-azure-sites@0.1.19-next.0
|
||||
- @backstage/plugin-badges@0.2.54-next.0
|
||||
- @backstage/plugin-code-coverage@0.2.23-next.0
|
||||
- @backstage/plugin-cost-insights@0.12.19-next.0
|
||||
- @backstage/plugin-dynatrace@8.0.4-next.0
|
||||
- @backstage/plugin-entity-feedback@0.2.13-next.0
|
||||
- @backstage/plugin-explore@0.4.16-next.0
|
||||
- @backstage/plugin-github-actions@0.6.11-next.0
|
||||
- @backstage/plugin-gocd@0.1.36-next.0
|
||||
- @backstage/plugin-jenkins@0.9.5-next.0
|
||||
- @backstage/plugin-kafka@0.3.30-next.0
|
||||
- @backstage/plugin-kubernetes@0.11.5-next.0
|
||||
- @backstage/plugin-kubernetes-cluster@0.0.6-next.0
|
||||
- @backstage/plugin-lighthouse@0.4.15-next.0
|
||||
- @backstage/plugin-newrelic-dashboard@0.3.5-next.0
|
||||
- @backstage/plugin-nomad@0.1.11-next.0
|
||||
- @backstage/plugin-octopus-deploy@0.2.12-next.0
|
||||
- @backstage/plugin-org@0.6.20-next.0
|
||||
- @backstage/plugin-pagerduty@0.7.2-next.0
|
||||
- @backstage/plugin-playlist@0.2.4-next.0
|
||||
- @backstage/plugin-puppetdb@0.1.13-next.0
|
||||
- @backstage/plugin-rollbar@0.4.30-next.0
|
||||
- @backstage/plugin-sentry@0.5.15-next.0
|
||||
- @backstage/plugin-tech-insights@0.3.22-next.0
|
||||
- @backstage/plugin-todo@0.2.34-next.0
|
||||
- @backstage/core-components@0.13.10
|
||||
- @backstage/plugin-search-react@1.7.6-next.0
|
||||
- @backstage/catalog-model@1.4.3
|
||||
- @backstage/config@1.1.1
|
||||
- @backstage/core-app-api@1.11.3
|
||||
- @backstage/core-plugin-api@1.8.2
|
||||
- @backstage/integration-react@1.1.23
|
||||
- @backstage/theme@0.5.0
|
||||
- @backstage/plugin-apache-airflow@0.2.19
|
||||
- @backstage/plugin-catalog-common@1.0.20
|
||||
- @backstage/plugin-catalog-unprocessed-entities@0.1.7
|
||||
- @backstage/plugin-gcalendar@0.3.22
|
||||
- @backstage/plugin-gcp-projects@0.3.45
|
||||
- @backstage/plugin-linguist-common@0.1.2
|
||||
- @backstage/plugin-microsoft-calendar@0.1.11
|
||||
- @backstage/plugin-newrelic@0.3.44
|
||||
- @backstage/plugin-permission-react@0.4.19
|
||||
- @backstage/plugin-search-common@1.2.10
|
||||
- @backstage/plugin-shortcuts@0.3.18
|
||||
- @backstage/plugin-stackstorm@0.1.10
|
||||
- @backstage/plugin-techdocs-react@1.1.15
|
||||
|
||||
## 0.2.91
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "example-app",
|
||||
"version": "0.2.91",
|
||||
"version": "0.2.92-next.0",
|
||||
"private": true,
|
||||
"backstage": {
|
||||
"role": "frontend"
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2020 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.
|
||||
*/
|
||||
|
||||
import { createApp } from '@backstage/app-defaults';
|
||||
import { AppRouter } from '@backstage/core-app-api';
|
||||
import {
|
||||
AlertDisplay,
|
||||
OAuthRequestDialog,
|
||||
SignInPage,
|
||||
} from '@backstage/core-components';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { providers } from '../src/identityProviders';
|
||||
import {
|
||||
configApiRef,
|
||||
createApiFactory,
|
||||
discoveryApiRef,
|
||||
useApi,
|
||||
} from '@backstage/core-plugin-api';
|
||||
import { AuthProxyDiscoveryApi } from '../src/AuthProxyDiscoveryApi';
|
||||
|
||||
// TODO(Rugvip): make this available via some util, or maybe Utility API?
|
||||
function readBasePath(configApi: typeof configApiRef.T) {
|
||||
let { pathname } = new URL(
|
||||
configApi.getOptionalString('app.baseUrl') ?? '/',
|
||||
'http://sample.dev', // baseUrl can be specified as just a path
|
||||
);
|
||||
pathname = pathname.replace(/\/*$/, '');
|
||||
return pathname;
|
||||
}
|
||||
|
||||
const app = createApp({
|
||||
apis: [
|
||||
createApiFactory({
|
||||
api: discoveryApiRef,
|
||||
deps: { configApi: configApiRef },
|
||||
factory: ({ configApi }) => AuthProxyDiscoveryApi.fromConfig(configApi),
|
||||
}),
|
||||
],
|
||||
components: {
|
||||
SignInPage: props => {
|
||||
return (
|
||||
<SignInPage
|
||||
{...props}
|
||||
providers={['guest', 'custom', ...providers]}
|
||||
title="Select a sign-in method"
|
||||
align="center"
|
||||
/>
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
function RedirectToRoot() {
|
||||
window.location.pathname = readBasePath(useApi(configApiRef));
|
||||
return <div />;
|
||||
}
|
||||
|
||||
const App = app.createRoot(
|
||||
<>
|
||||
<AlertDisplay transientTimeoutMs={2500} />
|
||||
<OAuthRequestDialog />
|
||||
<AppRouter>
|
||||
<RedirectToRoot />
|
||||
</AppRouter>
|
||||
</>,
|
||||
);
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
|
||||
Reference in New Issue
Block a user