Skip to content

Commit 7d0841a

Browse files
feat(translations): Add NFS support
Signed-off-by: rohitratannagar <rohitratannagar2003@gmail.com>
1 parent 12b0c0b commit 7d0841a

56 files changed

Lines changed: 1978 additions & 2387 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-translations': minor
3+
---
4+
5+
Add NFS (New Frontend System) support and graduate to stable. NFS extensions include PageBlueprint, ApiBlueprint, TranslationBlueprint, and AppRootWrapperBlueprint. OFS exports are now available at `./legacy`.

workspaces/translations/app-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
app:
22
title: Scaffolded Backstage App
33
baseUrl: http://localhost:3000
4+
extensions:
5+
- app/routes:
6+
config:
7+
redirects:
8+
- from: /
9+
to: /catalog
10+
- api:app/app-language:
11+
config:
12+
availableLanguages: [en, de, es, fr, it, ja]
413

514
organization:
615
name: My Company

workspaces/translations/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"scripts": {
99
"start": "backstage-cli repo start",
10+
"start:legacy": "yarn workspace app-legacy start",
1011
"start-backend": "yarn workspace backend start",
1112
"build:backend": "yarn workspace backend build",
1213
"tsc": "tsc",
@@ -46,6 +47,7 @@
4647
"@changesets/cli": "^2.27.1",
4748
"@jest/environment-jsdom-abstract": "^30.3.0",
4849
"@playwright/test": "1.60.0",
50+
"@react-stately/layout": "^4.7.1",
4951
"@types/jest": "^30.0.0",
5052
"@types/jsdom": "^27.0.0",
5153
"jest": "^30.3.0",

workspaces/translations/packages/app/.eslintignore renamed to workspaces/translations/packages/app-legacy/.eslintignore

File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright Red Hat, Inc.
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+
// eslint-disable-next-line @backstage/no-relative-monorepo-imports -- workspace ESLint shared config
18+
module.exports = require('../../eslint.frontend-shared.cjs')(__dirname);

workspaces/translations/packages/app/e2e-tests/app.test.ts renamed to workspaces/translations/packages/app-legacy/e2e-tests/app.test.ts

File renamed without changes.

workspaces/translations/packages/app/knip-report.md renamed to workspaces/translations/packages/app-legacy/knip-report.md

File renamed without changes.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"name": "app-legacy",
3+
"version": "0.0.0",
4+
"private": true,
5+
"bundled": true,
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/redhat-developer/rhdh-plugins",
9+
"directory": "workspaces/translations/packages/app-legacy"
10+
},
11+
"backstage": {
12+
"role": "frontend"
13+
},
14+
"scripts": {
15+
"start": "backstage-cli package start",
16+
"build": "backstage-cli package build",
17+
"clean": "backstage-cli package clean",
18+
"test": "backstage-cli package test",
19+
"lint": "backstage-cli package lint"
20+
},
21+
"dependencies": {
22+
"@backstage/app-defaults": "^1.7.6",
23+
"@backstage/catalog-model": "^1.7.7",
24+
"@backstage/cli": "^0.36.0",
25+
"@backstage/core-app-api": "^1.19.6",
26+
"@backstage/core-components": "^0.18.8",
27+
"@backstage/core-plugin-api": "^1.12.4",
28+
"@backstage/integration-react": "^1.2.16",
29+
"@backstage/plugin-api-docs": "^0.13.5",
30+
"@backstage/plugin-catalog": "^2.0.1",
31+
"@backstage/plugin-catalog-common": "^1.1.8",
32+
"@backstage/plugin-catalog-graph": "^0.6.0",
33+
"@backstage/plugin-catalog-import": "^0.13.11",
34+
"@backstage/plugin-catalog-react": "^2.1.1",
35+
"@backstage/plugin-kubernetes": "^0.12.17",
36+
"@backstage/plugin-notifications": "^0.5.15",
37+
"@backstage/plugin-org": "^0.7.0",
38+
"@backstage/plugin-permission-react": "^0.4.41",
39+
"@backstage/plugin-scaffolder": "^1.36.1",
40+
"@backstage/plugin-search": "^1.7.0",
41+
"@backstage/plugin-search-react": "^1.11.0",
42+
"@backstage/plugin-signals": "^0.0.29",
43+
"@backstage/plugin-techdocs": "^1.17.2",
44+
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.34",
45+
"@backstage/plugin-techdocs-react": "^1.3.9",
46+
"@backstage/plugin-user-settings": "^0.9.1",
47+
"@backstage/theme": "^0.7.2",
48+
"@backstage/ui": "^0.13.2",
49+
"@mui/icons-material": "^5.18.0",
50+
"@mui/material": "^5.18.0",
51+
"@red-hat-developer-hub/backstage-plugin-theme": "^0.14.0",
52+
"@red-hat-developer-hub/backstage-plugin-translations": "workspace:^",
53+
"@red-hat-developer-hub/backstage-plugin-translations-test": "workspace:^",
54+
"react": "^18.0.2",
55+
"react-dom": "^18.0.2",
56+
"react-router": "^6.30.4",
57+
"react-router-dom": "^6.3.0"
58+
},
59+
"devDependencies": {
60+
"@backstage/test-utils": "^1.7.16",
61+
"@playwright/test": "1.60.0",
62+
"@testing-library/dom": "^9.0.0",
63+
"@testing-library/jest-dom": "^6.0.0",
64+
"@testing-library/react": "^14.0.0",
65+
"@testing-library/user-event": "^14.0.0",
66+
"@types/react-dom": "*",
67+
"cross-env": "^7.0.0"
68+
},
69+
"browserslist": {
70+
"production": [
71+
">0.2%",
72+
"not dead",
73+
"not op_mini all"
74+
],
75+
"development": [
76+
"last 1 chrome version",
77+
"last 1 firefox version",
78+
"last 1 safari version"
79+
]
80+
},
81+
"files": [
82+
"dist"
83+
]
84+
}

workspaces/translations/packages/app/public/android-chrome-192x192.png renamed to workspaces/translations/packages/app-legacy/public/android-chrome-192x192.png

File renamed without changes.

workspaces/translations/packages/app/public/apple-touch-icon.png renamed to workspaces/translations/packages/app-legacy/public/apple-touch-icon.png

File renamed without changes.

0 commit comments

Comments
 (0)