Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions workspaces/x2a/.eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
playwright.config.ts
scripts
10 changes: 10 additions & 0 deletions workspaces/x2a/app-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
app:
title: X2Ansible Convertor
baseUrl: http://localhost:3000
extensions:
- 'api:app/app-language':
config:
defaultLanguage: en
availableLanguages:
- en
- de
- es
- fr
- it

organization:
name: Red Hat
Expand Down
2 changes: 1 addition & 1 deletion workspaces/x2a/backstage.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "version": "1.45.3" }
{ "version": "1.49.4" }
34 changes: 23 additions & 11 deletions workspaces/x2a/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"node": "22 || 24"
},
"scripts": {
"dev": "NODE_OPTIONS=--no-node-snapshot ; yarn workspaces foreach -A --include @red-hat-developer-hub/backstage-plugin-x2a --include @red-hat-developer-hub/backstage-plugin-x2a-backend --parallel -v -i run start",
"start": "NODE_OPTIONS=--no-node-snapshot ; backstage-cli repo start",
"dev": "NODE_OPTIONS=--no-node-snapshot yarn workspaces foreach -A --include @red-hat-developer-hub/backstage-plugin-x2a --include @red-hat-developer-hub/backstage-plugin-x2a-backend --parallel -v -i run start",
"start": "NODE_OPTIONS=--no-node-snapshot backstage-cli repo start",
"start:legacy": "NODE_OPTIONS=--no-node-snapshot backstage-cli repo start packages/app-legacy packages/backend",
"build:backend": "yarn workspace backend build",
"build:all": "backstage-cli repo build --all",
"build:api-reports": "yarn tsc:full; yarn build:api-reports:only",
Expand All @@ -30,7 +31,8 @@
"prettier:fix": "prettier --write .",
"chores": "yarn prettier:fix && yarn lint:all --fix && yarn tsc:full && yarn build:api-reports && yarn test:all:pg",
"new": "backstage-cli new --scope @red-hat-developer-hub",
"postinstall": "cd ../../ && yarn install"
"postinstall": "cd ../../ && yarn install",
"enable-in-rhdh-repo": "node scripts/export-to-rhdh-repo.js && node scripts/update-config-in-rhdh-repo.js"
},
"workspaces": {
"packages": [
Expand All @@ -44,11 +46,17 @@
"directory": "workspaces/x2a"
},
"devDependencies": {
"@backstage/cli": "^0.34.5",
"@backstage/e2e-test-utils": "^0.1.1",
"@backstage/repo-tools": "^0.16.0",
"@backstage/cli": "0.36.0",
"@backstage/cli-defaults": "0.1.0",
"@backstage/e2e-test-utils": "^0.1.2",
"@backstage/repo-tools": "^0.17.0",
"@changesets/cli": "^2.27.1",
"@jest/environment-jsdom-abstract": "30.3.0",
"@playwright/test": "1.59.1",
"@types/jest": "30.0.0",
"enquirer": "^2.4.1",
"jest": "30.3.0",
"jsdom": "27.4.0",
"knip": "^5.27.4",
"node-gyp": "^9.0.0",
"prettier": "^3.7.4",
Expand All @@ -58,11 +66,15 @@
"isolated-vm": "^6.0.1",
"@types/react": "^18",
"@types/react-dom": "^18",
"@backstage/backend-plugin-api": "1.5.0",
"@backstage/backend-defaults": "0.13.2",
"@backstage/plugin-auth-node": "0.6.10",
"@backstage/plugin-permission-backend": "0.7.3",
"@backstage/core-app-api": "1.19.2"
"@backstage/cli": "0.36.0",
"@backstage/cli-defaults": "0.1.0",
"@backstage/frontend-plugin-api": "0.15.1",
"@backstage/plugin-catalog": "2.0.1",
"@backstage/plugin-scaffolder": "1.36.1",
"zod@^3.22.4": "3.25.76",
"zod@^3.25.76": "3.25.76",
"zod@^3.25.76 || ^4.0.0": "3.25.76",
"zod@^3.25 || ^4.0": "3.25.76"
},
"prettier": "@backstage/cli/config/prettier",
"lint-staged": {
Expand Down
1 change: 1 addition & 0 deletions workspaces/x2a/packages/app-legacy/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname);
86 changes: 86 additions & 0 deletions workspaces/x2a/packages/app-legacy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"name": "app-legacy",
"version": "0.0.0",
"private": true,
"bundled": true,
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer/rhdh-plugins",
"directory": "workspaces/x2a/packages/app-legacy"
},
"backstage": {
"role": "frontend",
"supported-versions": "1.49.4"
},
"scripts": {
"start": "backstage-cli package start",
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",
"test": "backstage-cli package test",
"lint": "backstage-cli package lint"
},
"dependencies": {
"@backstage/app-defaults": "^1.7.6",
"@backstage/catalog-model": "^1.7.7",
"@backstage/cli": "^0.36.0",
"@backstage/core-app-api": "^1.19.6",
"@backstage/core-components": "^0.18.8",
"@backstage/core-plugin-api": "^1.12.4",
"@backstage/integration-react": "^1.2.16",
"@backstage/plugin-api-docs": "^0.13.5",
"@backstage/plugin-catalog": "^2.0.1",
"@backstage/plugin-catalog-common": "^1.1.8",
"@backstage/plugin-catalog-graph": "^0.6.0",
"@backstage/plugin-catalog-import": "^0.13.11",
"@backstage/plugin-catalog-react": "^2.1.1",
"@backstage/plugin-kubernetes": "^0.12.17",
"@backstage/plugin-notifications": "^0.5.15",
"@backstage/plugin-org": "^0.7.0",
"@backstage/plugin-permission-react": "^0.5.1",
"@backstage/plugin-scaffolder": "^1.36.1",
"@backstage/plugin-scaffolder-react": "^1.20.0",
"@backstage/plugin-search": "^1.7.0",
"@backstage/plugin-search-react": "^1.11.0",
"@backstage/plugin-signals": "^0.0.29",
"@backstage/plugin-techdocs": "^1.17.2",
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.34",
"@backstage/plugin-techdocs-react": "^1.3.9",
"@backstage/plugin-user-settings": "^0.9.1",
"@backstage/theme": "^0.7.2",
"@backstage/ui": "^0.13.2",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@red-hat-developer-hub/backstage-plugin-x2a": "workspace:*",
"react": "^18.0.2",
"react-dom": "^18.0.2",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0"
},
"devDependencies": {
"@backstage/test-utils": "^1.7.16",
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
"@types/react-dom": "*",
"cross-env": "^7.0.0"
},
"peerDependencies": {
"@playwright/test": "^1.32.3"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"files": [
"dist"
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
60 changes: 60 additions & 0 deletions workspaces/x2a/packages/app-legacy/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Backstage is an open source framework for building developer portals"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link
rel="manifest"
href="<%= publicPath %>/manifest.json"
crossorigin="use-credentials"
/>
<link rel="icon" href="<%= publicPath %>/favicon.ico" />
<link rel="shortcut icon" href="<%= publicPath %>/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="<%= publicPath %>/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="<%= publicPath %>/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="<%= publicPath %>/favicon-16x16.png"
/>
<link
rel="mask-icon"
href="<%= publicPath %>/safari-pinned-tab.svg"
color="#5bbad5"
/>
<title><%= config.getOptionalString('app.title') ?? 'Backstage' %></title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `yarn start`.
To create a production bundle, use `yarn build`.
-->
</body>
</html>
15 changes: 15 additions & 0 deletions workspaces/x2a/packages/app-legacy/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Backstage",
"name": "Backstage",
"icons": [
{
"src": "favicon.ico",
"sizes": "48x48",
"type": "image/png"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
2 changes: 2 additions & 0 deletions workspaces/x2a/packages/app-legacy/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading