diff --git a/packages/app/package.json b/packages/app/package.json index fca15815e4..9a296a913c 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -9,7 +9,6 @@ "@backstage/plugin-circleci": "^0.1.1-alpha.8", "@backstage/plugin-explore": "^0.1.1-alpha.8", "@backstage/plugin-gitops-profiles": "^0.1.1-alpha.8", - "@backstage/plugin-home-page": "^0.1.1-alpha.8", "@backstage/plugin-lighthouse": "^0.1.1-alpha.8", "@backstage/plugin-register-component": "^0.1.1-alpha.8", "@backstage/plugin-scaffolder": "^0.1.1-alpha.8", diff --git a/packages/app/src/plugins.ts b/packages/app/src/plugins.ts index 2cf2bde9d5..a6485835f7 100644 --- a/packages/app/src/plugins.ts +++ b/packages/app/src/plugins.ts @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export { plugin as HomePagePlugin } from '@backstage/plugin-home-page'; export { plugin as WelcomePlugin } from '@backstage/plugin-welcome'; export { plugin as LighthousePlugin } from '@backstage/plugin-lighthouse'; export { plugin as CatalogPlugin } from '@backstage/plugin-catalog'; diff --git a/plugins/home-page/.eslintrc.js b/plugins/home-page/.eslintrc.js deleted file mode 100644 index 13573efa9c..0000000000 --- a/plugins/home-page/.eslintrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: [require.resolve('@backstage/cli/config/eslint')], -}; diff --git a/plugins/home-page/README.md b/plugins/home-page/README.md deleted file mode 100644 index ecac8aad72..0000000000 --- a/plugins/home-page/README.md +++ /dev/null @@ -1 +0,0 @@ -Welcome to your home-page plugin! diff --git a/plugins/home-page/dev/index.tsx b/plugins/home-page/dev/index.tsx deleted file mode 100644 index 812a5585d4..0000000000 --- a/plugins/home-page/dev/index.tsx +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 { createDevApp } from '@backstage/dev-utils'; -import { plugin } from '../src/plugin'; - -createDevApp().registerPlugin(plugin).render(); diff --git a/plugins/home-page/package.json b/plugins/home-page/package.json deleted file mode 100644 index 4a22dde3c8..0000000000 --- a/plugins/home-page/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "@backstage/plugin-home-page", - "version": "0.1.1-alpha.8", - "main": "dist/index.esm.js", - "main:src": "src/index.ts", - "types": "src/index.ts", - "license": "Apache-2.0", - "private": true, - "publishConfig": { - "access": "public", - "main": "dist/index.esm.js", - "types": "dist/index.d.ts" - }, - "scripts": { - "build": "backstage-cli plugin:build", - "start": "backstage-cli plugin:serve", - "lint": "backstage-cli lint", - "test": "backstage-cli test", - "diff": "backstage-cli plugin:diff", - "prepack": "backstage-cli prepack", - "postpack": "backstage-cli postpack", - "clean": "backstage-cli clean" - }, - "dependencies": { - "@backstage/core": "^0.1.1-alpha.8", - "@backstage/theme": "^0.1.1-alpha.8", - "@material-ui/core": "^4.9.1", - "@material-ui/icons": "^4.9.1", - "@material-ui/lab": "4.0.0-alpha.45", - "react": "^16.13.1", - "react-dom": "^16.13.1", - "react-use": "^14.2.0" - }, - "devDependencies": { - "@backstage/cli": "^0.1.1-alpha.8", - "@backstage/dev-utils": "^0.1.1-alpha.8", - "@testing-library/jest-dom": "^5.7.0", - "@testing-library/react": "^9.3.2", - "@testing-library/user-event": "^10.2.4", - "@types/jest": "^25.2.2", - "@types/node": "^12.0.0", - "@types/testing-library__jest-dom": "^5.0.4", - "jest-fetch-mock": "^3.0.3", - "react-router-dom": "6.0.0-alpha.5" - }, - "files": [ - "dist/**/*.{js,d.ts}" - ] -} diff --git a/plugins/home-page/src/components/HomePage/HomePage.test.tsx b/plugins/home-page/src/components/HomePage/HomePage.test.tsx deleted file mode 100644 index e7df794a00..0000000000 --- a/plugins/home-page/src/components/HomePage/HomePage.test.tsx +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 React from 'react'; -import { render } from '@testing-library/react'; -import HomePage from './HomePage'; -import { ThemeProvider } from '@material-ui/core'; -import { lightTheme } from '@backstage/theme'; - -describe('HomePage', () => { - it('should render', () => { - const rendered = render( - - - , - ); - expect(rendered.baseElement).toBeInTheDocument(); - }); -}); diff --git a/plugins/home-page/src/components/HomePage/HomePage.tsx b/plugins/home-page/src/components/HomePage/HomePage.tsx deleted file mode 100644 index 0da5d77bd5..0000000000 --- a/plugins/home-page/src/components/HomePage/HomePage.tsx +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 React, { FC } from 'react'; -import { Typography, Link, Grid } from '@material-ui/core'; -import { - Content, - InfoCard, - Header, - HomepageTimer, - Page, - pageTheme, -} from '@backstage/core'; -import SquadTechHealth from './SquadTechHealth'; -import Table from '@material-ui/core/Table'; -import TableBody from '@material-ui/core/TableBody'; -import TableCell from '@material-ui/core/TableCell'; -import TableContainer from '@material-ui/core/TableContainer'; -import TableHead from '@material-ui/core/TableHead'; -import TableRow from '@material-ui/core/TableRow'; - -const STATIC_DATA = [ - { id: 'backstage', kind: 'service' }, - { id: 'backstage-microsite', kind: 'website' }, -]; - -const HomePage: FC<{}> = () => { - const data = STATIC_DATA.map(({ id, kind }) => { - return { - id, - entity: ( - - {id} - - ), - kind: {kind}, - }; - }); - - const profile = { givenName: 'Suzy' }; - - return ( - -
- -
- - - - Things you own - - - - - - ID - Kind - - - - {data.map(d => ( - - {d.entity} - {d.kind} - - ))} - -
-
-
-
- - - -
-
-
- ); -}; - -export default HomePage; diff --git a/plugins/home-page/src/components/HomePage/SquadTechHealth.tsx b/plugins/home-page/src/components/HomePage/SquadTechHealth.tsx deleted file mode 100644 index c4e55c4dd5..0000000000 --- a/plugins/home-page/src/components/HomePage/SquadTechHealth.tsx +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 React, { FC } from 'react'; -import { Grid, Typography } from '@material-ui/core'; - -import { HorizontalScrollGrid, ProgressCard } from '@backstage/core'; - -const SquadTechHealth: FC<{}> = () => { - return ( - <> - Team Metrics - - - - - - - - - - ); -}; - -export default SquadTechHealth; diff --git a/plugins/home-page/src/components/HomePage/index.ts b/plugins/home-page/src/components/HomePage/index.ts deleted file mode 100644 index c5a0dcd139..0000000000 --- a/plugins/home-page/src/components/HomePage/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 { default } from './HomePage'; diff --git a/plugins/home-page/src/index.ts b/plugins/home-page/src/index.ts deleted file mode 100644 index 3a0a0fe2d3..0000000000 --- a/plugins/home-page/src/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 { plugin } from './plugin'; diff --git a/plugins/home-page/src/plugin.test.ts b/plugins/home-page/src/plugin.test.ts deleted file mode 100644 index aea6b90d2a..0000000000 --- a/plugins/home-page/src/plugin.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 { plugin } from './plugin'; - -describe('home-page', () => { - it('should export plugin', () => { - expect(plugin).toBeDefined(); - }); -}); diff --git a/plugins/home-page/src/plugin.ts b/plugins/home-page/src/plugin.ts deleted file mode 100644 index 182d43b9b8..0000000000 --- a/plugins/home-page/src/plugin.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 { createPlugin } from '@backstage/core'; -import HomePage from './components/HomePage'; - -export const plugin = createPlugin({ - id: 'home-page', - register({ router }) { - router.registerRoute('/home', HomePage); - }, -}); diff --git a/plugins/home-page/src/setupTests.ts b/plugins/home-page/src/setupTests.ts deleted file mode 100644 index 825bcd4115..0000000000 --- a/plugins/home-page/src/setupTests.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright 2020 Spotify AB - * - * 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 '@testing-library/jest-dom';