@backstage/create-app 0.4.31-next.3 → 0.4.32-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,226 @@
1
1
  # @backstage/create-app
2
2
 
3
+ ## 0.4.32-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 58c2264325: Newly created Backstage repositories now use the stable version 6 of
8
+ `react-router`, just like the main repo does. Please let us know if you find any
9
+ issues with this.
10
+
11
+ Migrating to the stable version of `react-router` is optional for the time
12
+ being. But if you want to do the same for your existing repository, please
13
+ follow [this
14
+ guide](https://backstage.io/docs/tutorials/react-router-stable-migration).
15
+
16
+ - e05e0f021b: Update versions of packages used in the create-app template, to match those in the main repo
17
+ - 52f25858a8: Added `*.session.sql` Visual Studio Code database functionality files to `.gitignore` in the default template. This is optional but potentially helpful if your developers use Visual Studio Code; you can add a line with that exact value to your own root `.gitignore` if you want the same.
18
+ - 6d00e80146: Updated the root `test` scripts to use `backstage-cli repo test`.
19
+
20
+ To apply this change to an existing app, make the following change to the root `package.json`:
21
+
22
+ ```diff
23
+ - "test": "backstage-cli test",
24
+ - "test:all": "lerna run test -- --coverage",
25
+ + "test": "backstage-cli repo test",
26
+ + "test:all": "backstage-cli repo test --coverage",
27
+ ```
28
+
29
+ - Updated dependencies
30
+ - @backstage/cli-common@0.1.10
31
+
32
+ ## 0.4.31
33
+
34
+ ### Patch Changes
35
+
36
+ - 6ff94d60d5: Removed usage of the deprecated `diff` command in the root `package.json`.
37
+
38
+ To make this change in an existing app, make the following change in the root `package.json`:
39
+
40
+ ```diff
41
+ - "diff": "lerna run diff --",
42
+ ```
43
+
44
+ - c1f1a4c760: The Backstage packages and plugins have all been updated to support React Router v6 stable. The `create-app` template has not been migrated yet, but if you want to migrate your own app or plugins, check out the [migration guide](https://backstage.io/docs/tutorials/react-router-stable-migration).
45
+ - e83de28e36: Fix typo in the documentation
46
+ - 7d47def9c4: Removed dependency on `@types/jest`.
47
+ - 208d6780c9: The `packages/backend/Dockerfile` received a couple of updates, it now looks as follows:
48
+
49
+ ```Dockerfile
50
+ FROM node:16-bullseye-slim
51
+
52
+ # Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image,
53
+ # in which case you should also move better-sqlite3 to "devDependencies" in package.json.
54
+ RUN apt-get update && \
55
+ apt-get install -y --no-install-recommends libsqlite3-dev python3 build-essential && \
56
+ rm -rf /var/lib/apt/lists/* && \
57
+ yarn config set python /usr/bin/python3
58
+
59
+ # From here on we use the least-privileged `node` user to run the backend.
60
+ USER node
61
+ WORKDIR /app
62
+
63
+ # This switches many Node.js dependencies to production mode.
64
+ ENV NODE_ENV production
65
+
66
+ # Copy repo skeleton first, to avoid unnecessary docker cache invalidation.
67
+ # The skeleton contains the package.json of each package in the monorepo,
68
+ # and along with yarn.lock and the root package.json, that's enough to run yarn install.
69
+ COPY --chown=node:node yarn.lock package.json packages/backend/dist/skeleton.tar.gz ./
70
+ RUN tar xzf skeleton.tar.gz && rm skeleton.tar.gz
71
+
72
+ RUN yarn install --frozen-lockfile --production --network-timeout 300000 && rm -rf "$(yarn cache dir)"
73
+
74
+ # Then copy the rest of the backend bundle, along with any other files we might want.
75
+ COPY --chown=node:node packages/backend/dist/bundle.tar.gz app-config*.yaml ./
76
+ RUN tar xzf bundle.tar.gz && rm bundle.tar.gz
77
+
78
+ CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.production.yaml"]
79
+ ```
80
+
81
+ The two notable changes are that a `USER node` instruction has been added and the ordering of instructions has been changed accordingly. This means that the app will now be running using the least-privileged `node` user. In order for this to work we now need to make sure that all app files are owned by the `node` user, which we do by adding the `--chown=node:node` option to the `COPY` instructions.
82
+
83
+ The second change is the addition of `ENV NODE_ENV production`, which ensured that all Node.js modules run in production mode. If you apply this change to an existing app, note that one of the more significant changes is that this switches the log formatting to use the default production format, JSON. Rather than your log lines looking like this:
84
+
85
+ ```log
86
+ 2022-08-10T11:36:05.478Z catalog info Performing database migration type=plugin
87
+ ```
88
+
89
+ They will now look like this:
90
+
91
+ ```log
92
+ {"level":"info","message":"Performing database migration","plugin":"catalog","service":"backstage","type":"plugin"}
93
+ ```
94
+
95
+ If you wish to keep the existing format, you can override this change by applying the following change to `packages/backend/src/index.ts`:
96
+
97
+ ```diff
98
+ getRootLogger,
99
+ + setRootLogger,
100
+ + createRootLogger,
101
+ + coloredFormat,
102
+ useHotMemoize,
103
+ ...
104
+ ServerTokenManager,
105
+ } from '@backstage/backend-common';
106
+
107
+ ...
108
+
109
+ async function main() {
110
+ + setRootLogger(createRootLogger({ format: coloredFormat }));
111
+ +
112
+ const config = await loadBackendConfig({
113
+ ```
114
+
115
+ - 49416194e8: Adds `IdentityApi` configuration to `create-app` scaffolding templates.
116
+
117
+ To migrate to the new `IdentityApi`, edit the `packages/backend/src/index.ts` adding the following import:
118
+
119
+ ```typescript
120
+ import { DefaultIdentityClient } from '@backstage/plugin-auth-node';
121
+ ```
122
+
123
+ Use the factory function to create an `IdentityApi` in the `makeCreateEnv` function and return it from the
124
+ function as follows:
125
+
126
+ ```typescript
127
+ function makeCreateEnv(config: Config) {
128
+ ...
129
+ const identity = DefaultIdentityClient.create({
130
+ discovery,
131
+ });
132
+ ...
133
+
134
+ return {
135
+ ...,
136
+ identity
137
+ }
138
+ }
139
+ ```
140
+
141
+ Backend plugins can be upgraded to work with this new `IdentityApi`.
142
+
143
+ Add `identity` to the `RouterOptions` type.
144
+
145
+ ```typescript
146
+ export interface RouterOptions {
147
+ ...
148
+ identity: IdentityApi;
149
+ }
150
+ ```
151
+
152
+ Then you can use the `IdentityApi` from the plugin.
153
+
154
+ ```typescript
155
+ export async function createRouter(
156
+ options: RouterOptions,
157
+ ): Promise<express.Router> {
158
+ const { identity } = options;
159
+
160
+ router.get('/user', async (req, res) => {
161
+ const user = await identity.getIdentity({ request: req });
162
+ ...
163
+ ```
164
+
165
+ - 8d886dd33e: Added `yarn new` as one of the scripts installed by default, which calls `backstage-cli new`. This script replaces `create-plugin`, which you can now remove if you want to. It is kept in the `create-app` template for backwards compatibility.
166
+
167
+ The `remove-plugin` command has been removed, as it has been removed from the Backstage CLI.
168
+
169
+ To apply these changes to an existing app, make the following change to the root `package.json`:
170
+
171
+ ```diff
172
+ - "remove-plugin": "backstage-cli remove-plugin"
173
+ + "new": "backstage-cli new --scope internal"
174
+ ```
175
+
176
+ - c3c90280be: The options part of `DatabaseManager.fromConfig` now accepts an optional logger
177
+ field. You may want to supply that logger in your backend initialization code to
178
+ ensure that you can get relevant logging data when things happen related to the
179
+ connection pool.
180
+
181
+ In `packages/backend/src/index.ts`:
182
+
183
+ ```diff
184
+ function makeCreateEnv(config: Config) {
185
+ const root = getRootLogger();
186
+ ...
187
+ - const databaseManager = DatabaseManager.fromConfig(config);
188
+ + const databaseManager = DatabaseManager.fromConfig(config, { logger: root });
189
+ ```
190
+
191
+ - a578558180: Updated the root `package.json` to use the new `backstage-cli repo clean` command.
192
+
193
+ To apply this change to an existing project, make the following change to the root `package.json`:
194
+
195
+ ```diff
196
+ - "clean": "backstage-cli clean && lerna run clean",
197
+ + "clean": "backstage-cli repo clean",
198
+ ```
199
+
200
+ - c0a08fd08c: Added `EntityLinksCard` to the system `EntityPage`.
201
+
202
+ For an existing installation where you want to display the links card for entity pages of kind `system` you should make the following adjustment to `packages/app/src/components/catalog/EntityPage.tsx`
203
+
204
+ ```diff
205
+ const systemPage = (
206
+ ...
207
+ <Grid item md={6} xs={12}>
208
+ <EntityCatalogGraphCard variant="gridItem" height={400} />
209
+ </Grid>
210
+ + <Grid item md={4} xs={12}>
211
+ + <EntityLinksCard />
212
+ + </Grid>
213
+ - <Grid item md={6}>
214
+ + <Grid item md={8}>
215
+ <EntityHasComponentsCard variant="gridItem" />
216
+ </Grid>
217
+ ...
218
+ );
219
+ ```
220
+
221
+ - Updated dependencies
222
+ - @backstage/cli-common@0.1.10
223
+
3
224
  ## 0.4.31-next.3
4
225
 
5
226
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -57,101 +57,101 @@ ${chalk__default["default"].red(`${error}`)}
57
57
  }
58
58
  }
59
59
 
60
- var version$L = "1.6.0-next.3";
60
+ var version$L = "1.7.0-next.0";
61
61
 
62
- var version$K = "1.0.6-next.2";
62
+ var version$K = "1.0.7-next.0";
63
63
 
64
- var version$J = "0.15.1-next.3";
64
+ var version$J = "0.15.2-next.0";
65
65
 
66
- var version$I = "0.3.5-next.1";
66
+ var version$I = "0.3.6-next.0";
67
67
 
68
- var version$H = "1.1.0-next.2";
68
+ var version$H = "1.1.1-next.0";
69
69
 
70
- var version$G = "1.1.1-next.0";
70
+ var version$G = "1.1.2-next.0";
71
71
 
72
- var version$F = "0.19.0-next.3";
72
+ var version$F = "0.20.0-next.0";
73
73
 
74
- var version$E = "1.0.2-next.0";
74
+ var version$E = "1.0.3-next.0";
75
75
 
76
- var version$D = "1.1.0-next.3";
76
+ var version$D = "1.1.1-next.0";
77
77
 
78
- var version$C = "0.11.1-next.3";
78
+ var version$C = "0.11.2-next.0";
79
79
 
80
- var version$B = "1.0.6-next.3";
80
+ var version$B = "1.0.7-next.0";
81
81
 
82
- var version$A = "1.1.1-next.0";
82
+ var version$A = "1.1.2-next.0";
83
83
 
84
- var version$z = "1.1.4-next.2";
84
+ var version$z = "1.1.5-next.0";
85
85
 
86
- var version$y = "1.2.0-next.3";
86
+ var version$y = "1.2.1-next.0";
87
87
 
88
88
  var version$x = "0.2.16";
89
89
 
90
- var version$w = "0.8.9-next.3";
90
+ var version$w = "0.8.10-next.0";
91
91
 
92
- var version$v = "0.3.36-next.3";
92
+ var version$v = "0.3.37-next.0";
93
93
 
94
- var version$u = "0.16.0-next.3";
94
+ var version$u = "0.17.0-next.0";
95
95
 
96
- var version$t = "0.2.5-next.3";
96
+ var version$t = "0.2.6-next.0";
97
97
 
98
- var version$s = "1.5.1-next.3";
98
+ var version$s = "1.5.2-next.0";
99
99
 
100
- var version$r = "1.0.6-next.0";
100
+ var version$r = "1.0.7-next.0";
101
101
 
102
- var version$q = "1.1.4-next.2";
102
+ var version$q = "1.1.5-next.0";
103
103
 
104
- var version$p = "1.4.0-next.3";
104
+ var version$p = "1.4.1-next.0";
105
105
 
106
- var version$o = "0.2.21-next.2";
106
+ var version$o = "0.2.22-next.0";
107
107
 
108
- var version$n = "0.8.12-next.3";
108
+ var version$n = "0.8.13-next.0";
109
109
 
110
- var version$m = "0.3.9-next.3";
110
+ var version$m = "0.3.10-next.0";
111
111
 
112
- var version$l = "0.3.40-next.3";
112
+ var version$l = "0.3.41-next.0";
113
113
 
114
- var version$k = "0.5.9-next.3";
114
+ var version$k = "0.5.10-next.0";
115
115
 
116
- var version$j = "0.3.9-next.3";
116
+ var version$j = "0.3.10-next.0";
117
117
 
118
- var version$i = "0.5.9-next.3";
118
+ var version$i = "0.5.10-next.0";
119
119
 
120
- var version$h = "0.6.4-next.2";
120
+ var version$h = "0.6.5-next.0";
121
121
 
122
- var version$g = "0.4.5-next.2";
122
+ var version$g = "0.4.6-next.0";
123
123
 
124
- var version$f = "0.6.5-next.3";
124
+ var version$f = "0.6.6-next.0";
125
125
 
126
- var version$e = "0.2.30-next.2";
126
+ var version$e = "0.2.31-next.0";
127
127
 
128
- var version$d = "0.1.33-next.3";
128
+ var version$d = "0.1.34-next.0";
129
129
 
130
- var version$c = "1.6.0-next.3";
130
+ var version$c = "1.7.0-next.0";
131
131
 
132
- var version$b = "1.6.0-next.3";
132
+ var version$b = "1.7.0-next.0";
133
133
 
134
- var version$a = "1.0.2-next.3";
134
+ var version$a = "1.0.3-next.0";
135
135
 
136
- var version$9 = "1.1.0-next.2";
136
+ var version$9 = "1.1.1-next.0";
137
137
 
138
- var version$8 = "1.0.2-next.1";
138
+ var version$8 = "1.0.3-next.0";
139
139
 
140
- var version$7 = "0.4.0-next.2";
140
+ var version$7 = "0.4.1-next.0";
141
141
 
142
- var version$6 = "1.0.2-next.2";
142
+ var version$6 = "1.0.3-next.0";
143
143
 
144
- var version$5 = "0.5.16-next.3";
144
+ var version$5 = "0.5.17-next.0";
145
145
 
146
- var version$4 = "1.3.2-next.3";
146
+ var version$4 = "1.3.3-next.0";
147
147
 
148
- var version$3 = "1.0.4-next.2";
148
+ var version$3 = "1.0.5-next.0";
149
149
 
150
- var version$2 = "1.0.4-next.2";
150
+ var version$2 = "1.0.5-next.0";
151
151
 
152
- var version$1 = "1.3.0-next.2";
152
+ var version$1 = "1.3.1-next.0";
153
153
 
154
- var version = "0.4.8-next.3";
154
+ var version = "0.5.0-next.0";
155
155
 
156
156
  const packageVersions = {
157
157
  root: version$L,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/create-app",
3
3
  "description": "A CLI that helps you create your own Backstage app",
4
- "version": "0.4.31-next.3",
4
+ "version": "0.4.32-next.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,10 +29,10 @@
29
29
  "clean": "backstage-cli package clean",
30
30
  "prepack": "node scripts/prepack.js",
31
31
  "postpack": "node scripts/postpack.js",
32
- "start": "nodemon --"
32
+ "start": "yarn nodemon --"
33
33
  },
34
34
  "dependencies": {
35
- "@backstage/cli-common": "^0.1.10-next.0",
35
+ "@backstage/cli-common": "^0.1.10",
36
36
  "chalk": "^4.0.0",
37
37
  "commander": "^9.1.0",
38
38
  "fs-extra": "10.1.0",
@@ -42,12 +42,13 @@
42
42
  "recursive-readdir": "^2.2.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@backstage/cli": "^0.19.0-next.3",
45
+ "@backstage/cli": "^0.20.0-next.0",
46
46
  "@types/fs-extra": "^9.0.1",
47
47
  "@types/inquirer": "^8.1.3",
48
48
  "@types/node": "^16.11.26",
49
49
  "@types/recursive-readdir": "^2.2.0",
50
50
  "mock-fs": "^5.1.1",
51
+ "nodemon": "^2.0.2",
51
52
  "ts-node": "^10.0.0"
52
53
  },
53
54
  "nodemonConfig": {
@@ -59,6 +60,5 @@
59
60
  "bin",
60
61
  "dist",
61
62
  "templates"
62
- ],
63
- "gitHead": "2f458448f850dc68a711e2f31d14a91f96cf175d"
64
- }
63
+ ]
64
+ }
@@ -46,3 +46,6 @@ site
46
46
 
47
47
  # Sensitive credentials
48
48
  *-credentials.yaml
49
+
50
+ # vscode database functionality support files
51
+ *.session.sql
@@ -14,8 +14,8 @@
14
14
  "tsc": "tsc",
15
15
  "tsc:full": "tsc --skipLibCheck false --incremental false",
16
16
  "clean": "backstage-cli repo clean",
17
- "test": "backstage-cli test",
18
- "test:all": "lerna run test -- --coverage",
17
+ "test": "backstage-cli repo test",
18
+ "test:all": "backstage-cli repo test --coverage",
19
19
  "lint": "backstage-cli repo lint --since origin/master",
20
20
  "lint:all": "backstage-cli repo lint",
21
21
  "prettier:check": "prettier --check .",
@@ -6,6 +6,17 @@
6
6
  "backstage": {
7
7
  "role": "frontend"
8
8
  },
9
+ "scripts": {
10
+ "start": "backstage-cli package start",
11
+ "build": "backstage-cli package build",
12
+ "clean": "backstage-cli package clean",
13
+ "test": "backstage-cli package test",
14
+ "lint": "backstage-cli package lint",
15
+ "test:e2e": "cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:dev",
16
+ "test:e2e:ci": "cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:run",
17
+ "cy:dev": "cypress open",
18
+ "cy:run": "cypress run --browser chrome"
19
+ },
9
20
  "dependencies": {
10
21
  "@backstage/app-defaults": "^{{version '@backstage/app-defaults'}}",
11
22
  "@backstage/catalog-model": "^{{version '@backstage/catalog-model'}}",
@@ -37,33 +48,22 @@
37
48
  "history": "^5.0.0",
38
49
  "react": "^17.0.2",
39
50
  "react-dom": "^17.0.2",
40
- "react-router": "6.0.0-beta.0",
41
- "react-router-dom": "6.0.0-beta.0",
42
- "react-use": "^15.3.3"
51
+ "react-router": "^6.3.0",
52
+ "react-router-dom": "^6.3.0",
53
+ "react-use": "^17.2.4"
43
54
  },
44
55
  "devDependencies": {
45
56
  "@backstage/test-utils": "^{{version '@backstage/test-utils'}}",
46
57
  "@testing-library/jest-dom": "^5.10.1",
47
58
  "@testing-library/react": "^12.1.3",
48
- "@testing-library/user-event": "^12.0.7",
49
- "@types/node": "^14.14.32",
59
+ "@testing-library/user-event": "^14.0.0",
60
+ "@types/node": "^16.11.26",
50
61
  "@types/react-dom": "*",
51
62
  "cross-env": "^7.0.0",
52
63
  "cypress": "^9.7.0",
53
64
  "eslint-plugin-cypress": "^2.10.3",
54
65
  "start-server-and-test": "^1.10.11"
55
66
  },
56
- "scripts": {
57
- "start": "backstage-cli package start",
58
- "build": "backstage-cli package build",
59
- "clean": "backstage-cli package clean",
60
- "test": "backstage-cli package test",
61
- "lint": "backstage-cli package lint",
62
- "test:e2e": "cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:dev",
63
- "test:e2e:ci": "cross-env PORT=3001 start-server-and-test start http://localhost:3001 cy:run",
64
- "cy:dev": "cypress open",
65
- "cy:run": "cypress run --browser chrome"
66
- },
67
67
  "browserslist": {
68
68
  "production": [
69
69
  ">0.2%",
@@ -31,7 +31,7 @@ import { AlertDisplay, OAuthRequestDialog } from '@backstage/core-components';
31
31
  import { createApp } from '@backstage/app-defaults';
32
32
  import { FlatRoutes } from '@backstage/core-app-api';
33
33
  import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
34
- import { PermissionedRoute } from '@backstage/plugin-permission-react';
34
+ import { RequirePermission } from '@backstage/plugin-permission-react';
35
35
  import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
36
36
 
37
37
  const app = createApp({
@@ -58,7 +58,7 @@ const AppRouter = app.getRouter();
58
58
 
59
59
  const routes = (
60
60
  <FlatRoutes>
61
- <Navigate key="/" to="catalog" />
61
+ <Route path="/" element={<Navigate to="/catalog" />} />
62
62
  <Route path="/catalog" element={<CatalogIndexPage />} />
63
63
  <Route
64
64
  path="/catalog/:namespace/:kind/:name"
@@ -81,10 +81,13 @@ const routes = (
81
81
  path="/tech-radar"
82
82
  element={<TechRadarPage width={1500} height={800} />}
83
83
  />
84
- <PermissionedRoute
84
+ <Route
85
85
  path="/catalog-import"
86
- permission={catalogEntityCreatePermission}
87
- element={<CatalogImportPage />}
86
+ element={
87
+ <RequirePermission permission={catalogEntityCreatePermission}>
88
+ <CatalogImportPage />
89
+ </RequirePermission>
90
+ }
88
91
  />
89
92
  <Route path="/search" element={<SearchPage />}>
90
93
  {searchPage}
@@ -1,19 +1,3 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
1
  import React from 'react';
18
2
  import { makeStyles } from '@material-ui/core';
19
3
 
@@ -1,19 +1,3 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
1
  import React from 'react';
18
2
  import { makeStyles } from '@material-ui/core';
19
3
 
@@ -1,19 +1,3 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
1
  import React, { PropsWithChildren } from 'react';
18
2
  import { Link, makeStyles } from '@material-ui/core';
19
3
  import HomeIcon from '@material-ui/icons/Home';
@@ -1,17 +1 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
1
  export { Root } from './Root';
@@ -1,18 +1,3 @@
1
- /*
2
- * Copyright 2020 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
1
  import React from 'react';
17
2
  import { Button, Grid } from '@material-ui/core';
18
3
  import {
@@ -0,0 +1 @@
1
+ # intentionally left empty
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright 2020 The Backstage Authors
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.