@red-hat-developer-hub/backstage-plugin-dynamic-home-page 1.6.0 → 1.8.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/CustomizableHomePage.esm.js +3 -7
  3. package/dist/components/CustomizableHomePage.esm.js.map +1 -1
  4. package/dist/components/EntitySection/EntitySection.esm.js +18 -13
  5. package/dist/components/EntitySection/EntitySection.esm.js.map +1 -1
  6. package/dist/components/FeaturedDocsCard.esm.js +9 -1
  7. package/dist/components/FeaturedDocsCard.esm.js.map +1 -1
  8. package/dist/components/Header.esm.js +24 -12
  9. package/dist/components/Header.esm.js.map +1 -1
  10. package/dist/components/HomePage.esm.js +4 -8
  11. package/dist/components/HomePage.esm.js.map +1 -1
  12. package/dist/components/OnboardingSection/OnboardingSection.esm.js +5 -3
  13. package/dist/components/OnboardingSection/OnboardingSection.esm.js.map +1 -1
  14. package/dist/components/QuickAccessCard.esm.js +5 -3
  15. package/dist/components/QuickAccessCard.esm.js.map +1 -1
  16. package/dist/components/SearchBar.esm.js +3 -1
  17. package/dist/components/SearchBar.esm.js.map +1 -1
  18. package/dist/components/TemplateSection/TemplateSection.esm.js +16 -12
  19. package/dist/components/TemplateSection/TemplateSection.esm.js.map +1 -1
  20. package/dist/components/Trans.esm.js +9 -0
  21. package/dist/components/Trans.esm.js.map +1 -0
  22. package/dist/hooks/useGreeting.esm.js +12 -8
  23. package/dist/hooks/useGreeting.esm.js.map +1 -1
  24. package/dist/hooks/useLanguage.esm.js +7 -0
  25. package/dist/hooks/useLanguage.esm.js.map +1 -0
  26. package/dist/hooks/useTranslation.esm.js +8 -0
  27. package/dist/hooks/useTranslation.esm.js.map +1 -0
  28. package/dist/index.d.ts +57 -1
  29. package/dist/index.esm.js +2 -0
  30. package/dist/index.esm.js.map +1 -1
  31. package/dist/translations/de.esm.js +52 -0
  32. package/dist/translations/de.esm.js.map +1 -0
  33. package/dist/translations/es.esm.js +52 -0
  34. package/dist/translations/es.esm.js.map +1 -0
  35. package/dist/translations/fr.esm.js +52 -0
  36. package/dist/translations/fr.esm.js.map +1 -0
  37. package/dist/translations/index.esm.js +15 -0
  38. package/dist/translations/index.esm.js.map +1 -0
  39. package/dist/translations/it.esm.js +52 -0
  40. package/dist/translations/it.esm.js.map +1 -0
  41. package/dist/translations/ref.esm.js +76 -0
  42. package/dist/translations/ref.esm.js.map +1 -0
  43. package/dist/utils/constants.esm.js +14 -14
  44. package/dist/utils/constants.esm.js.map +1 -1
  45. package/package.json +15 -15
@@ -0,0 +1,52 @@
1
+ import { createTranslationMessages } from '@backstage/core-plugin-api/alpha';
2
+ import { homepageTranslationRef } from './ref.esm.js';
3
+
4
+ const homepageTranslationIt = createTranslationMessages({
5
+ ref: homepageTranslationRef,
6
+ messages: {
7
+ "header.welcome": "Bentornato!",
8
+ "header.welcomePersonalized": "Bentornato, {{name}}!",
9
+ "header.local": "Locale",
10
+ "homePage.empty": "Nessuna scheda della homepage (punti di montaggio) configurata o trovata.",
11
+ "search.placeholder": "Cerca",
12
+ "quickAccess.title": "Accesso rapido",
13
+ "quickAccess.fetchError": "Impossibile recuperare i dati.",
14
+ "quickAccess.error": "Errore sconosciuto",
15
+ "featuredDocs.learnMore": " Scopri di pi\xF9",
16
+ "templates.title": "Esplora modelli",
17
+ "templates.fetchError": "Impossibile recuperare i dati.",
18
+ "templates.error": "Errore sconosciuto",
19
+ "templates.empty": "Nessun modello aggiunto ancora",
20
+ "templates.emptyDescription": "Una volta aggiunti i modelli, questo spazio mostrer\xE0 contenuti rilevanti personalizzati per la tua esperienza.",
21
+ "templates.register": "Registra un modello",
22
+ "templates.viewAll": "Visualizza tutti i {{count}} modelli",
23
+ "onboarding.greeting.goodMorning": "Buongiorno",
24
+ "onboarding.greeting.goodAfternoon": "Buon pomeriggio",
25
+ "onboarding.greeting.goodEvening": "Buonasera",
26
+ "onboarding.guest": "Ospite",
27
+ "onboarding.getStarted.title": "Inizia",
28
+ "onboarding.getStarted.description": "Scopri Red Hat Developer Hub.",
29
+ "onboarding.getStarted.buttonText": "Leggi la documentazione",
30
+ "onboarding.getStarted.ariaLabel": "Leggi la documentazione (si apre in una nuova scheda)",
31
+ "onboarding.explore.title": "Esplora",
32
+ "onboarding.explore.description": "Esplora componenti, API e modelli.",
33
+ "onboarding.explore.buttonText": "Vai al catalogo",
34
+ "onboarding.explore.ariaLabel": "Vai al catalogo",
35
+ "onboarding.learn.title": "Impara",
36
+ "onboarding.learn.description": "Esplora e sviluppa nuove competenze.",
37
+ "onboarding.learn.buttonText": "Vai ai percorsi di apprendimento",
38
+ "onboarding.learn.ariaLabel": "Vai ai percorsi di apprendimento",
39
+ "entities.title": "Esplora il tuo catalogo software",
40
+ "entities.fetchError": "Impossibile recuperare i dati.",
41
+ "entities.error": "Errore sconosciuto",
42
+ "entities.description": "Sfoglia i sistemi, componenti, risorse e API disponibili nella tua organizzazione.",
43
+ "entities.close": "chiudi",
44
+ "entities.empty": "Nessun catalogo software aggiunto ancora",
45
+ "entities.emptyDescription": "Una volta aggiunti i cataloghi software, questo spazio mostrer\xE0 contenuti rilevanti personalizzati per la tua esperienza.",
46
+ "entities.register": "Registra un componente",
47
+ "entities.viewAll": "Visualizza tutte le {{count}} entit\xE0 del catalogo"
48
+ }
49
+ });
50
+
51
+ export { homepageTranslationIt as default };
52
+ //# sourceMappingURL=it.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"it.esm.js","sources":["../../src/translations/it.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationMessages } from '@backstage/core-plugin-api/alpha';\nimport { homepageTranslationRef } from './ref';\n\n/**\n * Italian translation for Homepage.\n * @public\n */\nconst homepageTranslationIt = createTranslationMessages({\n ref: homepageTranslationRef,\n messages: {\n 'header.welcome': 'Bentornato!',\n 'header.welcomePersonalized': 'Bentornato, {{name}}!',\n 'header.local': 'Locale',\n 'homePage.empty':\n 'Nessuna scheda della homepage (punti di montaggio) configurata o trovata.',\n 'search.placeholder': 'Cerca',\n 'quickAccess.title': 'Accesso rapido',\n 'quickAccess.fetchError': 'Impossibile recuperare i dati.',\n 'quickAccess.error': 'Errore sconosciuto',\n 'featuredDocs.learnMore': ' Scopri di più',\n 'templates.title': 'Esplora modelli',\n 'templates.fetchError': 'Impossibile recuperare i dati.',\n 'templates.error': 'Errore sconosciuto',\n 'templates.empty': 'Nessun modello aggiunto ancora',\n 'templates.emptyDescription':\n 'Una volta aggiunti i modelli, questo spazio mostrerà contenuti rilevanti personalizzati per la tua esperienza.',\n 'templates.register': 'Registra un modello',\n 'templates.viewAll': 'Visualizza tutti i {{count}} modelli',\n 'onboarding.greeting.goodMorning': 'Buongiorno',\n 'onboarding.greeting.goodAfternoon': 'Buon pomeriggio',\n 'onboarding.greeting.goodEvening': 'Buonasera',\n 'onboarding.guest': 'Ospite',\n 'onboarding.getStarted.title': 'Inizia',\n 'onboarding.getStarted.description': 'Scopri Red Hat Developer Hub.',\n 'onboarding.getStarted.buttonText': 'Leggi la documentazione',\n 'onboarding.getStarted.ariaLabel':\n 'Leggi la documentazione (si apre in una nuova scheda)',\n 'onboarding.explore.title': 'Esplora',\n 'onboarding.explore.description': 'Esplora componenti, API e modelli.',\n 'onboarding.explore.buttonText': 'Vai al catalogo',\n 'onboarding.explore.ariaLabel': 'Vai al catalogo',\n 'onboarding.learn.title': 'Impara',\n 'onboarding.learn.description': 'Esplora e sviluppa nuove competenze.',\n 'onboarding.learn.buttonText': 'Vai ai percorsi di apprendimento',\n 'onboarding.learn.ariaLabel': 'Vai ai percorsi di apprendimento',\n 'entities.title': 'Esplora il tuo catalogo software',\n 'entities.fetchError': 'Impossibile recuperare i dati.',\n 'entities.error': 'Errore sconosciuto',\n 'entities.description':\n 'Sfoglia i sistemi, componenti, risorse e API disponibili nella tua organizzazione.',\n 'entities.close': 'chiudi',\n 'entities.empty': 'Nessun catalogo software aggiunto ancora',\n 'entities.emptyDescription':\n 'Una volta aggiunti i cataloghi software, questo spazio mostrerà contenuti rilevanti personalizzati per la tua esperienza.',\n 'entities.register': 'Registra un componente',\n 'entities.viewAll': 'Visualizza tutte le {{count}} entità del catalogo',\n },\n});\n\nexport default homepageTranslationIt;\n"],"names":[],"mappings":";;;AAuBA,MAAM,wBAAwB,yBAA0B,CAAA;AAAA,EACtD,GAAK,EAAA,sBAAA;AAAA,EACL,QAAU,EAAA;AAAA,IACR,gBAAkB,EAAA,aAAA;AAAA,IAClB,4BAA8B,EAAA,uBAAA;AAAA,IAC9B,cAAgB,EAAA,QAAA;AAAA,IAChB,gBACE,EAAA,2EAAA;AAAA,IACF,oBAAsB,EAAA,OAAA;AAAA,IACtB,mBAAqB,EAAA,gBAAA;AAAA,IACrB,wBAA0B,EAAA,gCAAA;AAAA,IAC1B,mBAAqB,EAAA,oBAAA;AAAA,IACrB,wBAA0B,EAAA,mBAAA;AAAA,IAC1B,iBAAmB,EAAA,iBAAA;AAAA,IACnB,sBAAwB,EAAA,gCAAA;AAAA,IACxB,iBAAmB,EAAA,oBAAA;AAAA,IACnB,iBAAmB,EAAA,gCAAA;AAAA,IACnB,4BACE,EAAA,mHAAA;AAAA,IACF,oBAAsB,EAAA,qBAAA;AAAA,IACtB,mBAAqB,EAAA,sCAAA;AAAA,IACrB,iCAAmC,EAAA,YAAA;AAAA,IACnC,mCAAqC,EAAA,iBAAA;AAAA,IACrC,iCAAmC,EAAA,WAAA;AAAA,IACnC,kBAAoB,EAAA,QAAA;AAAA,IACpB,6BAA+B,EAAA,QAAA;AAAA,IAC/B,mCAAqC,EAAA,+BAAA;AAAA,IACrC,kCAAoC,EAAA,yBAAA;AAAA,IACpC,iCACE,EAAA,uDAAA;AAAA,IACF,0BAA4B,EAAA,SAAA;AAAA,IAC5B,gCAAkC,EAAA,oCAAA;AAAA,IAClC,+BAAiC,EAAA,iBAAA;AAAA,IACjC,8BAAgC,EAAA,iBAAA;AAAA,IAChC,wBAA0B,EAAA,QAAA;AAAA,IAC1B,8BAAgC,EAAA,sCAAA;AAAA,IAChC,6BAA+B,EAAA,kCAAA;AAAA,IAC/B,4BAA8B,EAAA,kCAAA;AAAA,IAC9B,gBAAkB,EAAA,kCAAA;AAAA,IAClB,qBAAuB,EAAA,gCAAA;AAAA,IACvB,gBAAkB,EAAA,oBAAA;AAAA,IAClB,sBACE,EAAA,oFAAA;AAAA,IACF,gBAAkB,EAAA,QAAA;AAAA,IAClB,gBAAkB,EAAA,0CAAA;AAAA,IAClB,2BACE,EAAA,8HAAA;AAAA,IACF,mBAAqB,EAAA,wBAAA;AAAA,IACrB,kBAAoB,EAAA;AAAA;AAExB,CAAC;;;;"}
@@ -0,0 +1,76 @@
1
+ import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
2
+
3
+ const homepageMessages = {
4
+ header: {
5
+ welcome: "Welcome back!",
6
+ welcomePersonalized: "Welcome back, {{name}}!",
7
+ local: "Local"
8
+ },
9
+ homePage: {
10
+ empty: "No home page cards (mount points) configured or found."
11
+ },
12
+ search: {
13
+ placeholder: "Search"
14
+ },
15
+ quickAccess: {
16
+ title: "Quick Access",
17
+ fetchError: "Could not fetch data.",
18
+ error: "Unknown error"
19
+ },
20
+ featuredDocs: {
21
+ learnMore: " Learn more"
22
+ },
23
+ templates: {
24
+ title: "Explore Templates",
25
+ fetchError: "Could not fetch data.",
26
+ error: "Unknown error",
27
+ empty: "No templates added yet",
28
+ emptyDescription: "Once templates are added, this space will showcase relevant content tailored to your experience.",
29
+ register: "Register a template",
30
+ viewAll: "View all {{count}} templates"
31
+ },
32
+ onboarding: {
33
+ greeting: {
34
+ goodMorning: "Good morning",
35
+ goodAfternoon: "Good afternoon",
36
+ goodEvening: "Good evening"
37
+ },
38
+ guest: "Guest",
39
+ getStarted: {
40
+ title: "Get started",
41
+ description: "Learn about Red Hat Developer Hub.",
42
+ buttonText: "Read documentation",
43
+ ariaLabel: "Read documentation (opens in a new tab)"
44
+ },
45
+ explore: {
46
+ title: "Explore",
47
+ description: "Explore components, APIs and templates.",
48
+ buttonText: "Go to Catalog",
49
+ ariaLabel: "Go to Catalog"
50
+ },
51
+ learn: {
52
+ title: "Learn",
53
+ description: "Explore and develop new skills.",
54
+ buttonText: "Go to Learning Paths",
55
+ ariaLabel: "Go to Learning Paths"
56
+ }
57
+ },
58
+ entities: {
59
+ title: "Explore Your Software Catalog",
60
+ fetchError: "Could not fetch data.",
61
+ error: "Unknown error",
62
+ description: "Browse the Systems, Components, Resources, and APIs that are available in your organization.",
63
+ close: "close",
64
+ empty: "No software catalog added yet",
65
+ emptyDescription: "Once software catalogs are added, this space will showcase relevant content tailored to your experience.",
66
+ register: "Register a component",
67
+ viewAll: "View all {{count}} catalog entities"
68
+ }
69
+ };
70
+ const homepageTranslationRef = createTranslationRef({
71
+ id: "plugin.homepage",
72
+ messages: homepageMessages
73
+ });
74
+
75
+ export { homepageMessages, homepageTranslationRef };
76
+ //# sourceMappingURL=ref.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref.esm.js","sources":["../../src/translations/ref.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Messages object containing all English translations.\n * This is our single source of truth for translations.\n * @public\n */\nexport const homepageMessages = {\n header: {\n welcome: 'Welcome back!',\n welcomePersonalized: 'Welcome back, {{name}}!',\n local: 'Local',\n },\n homePage: {\n empty: 'No home page cards (mount points) configured or found.',\n },\n search: {\n placeholder: 'Search',\n },\n quickAccess: {\n title: 'Quick Access',\n fetchError: 'Could not fetch data.',\n error: 'Unknown error',\n },\n featuredDocs: {\n learnMore: ' Learn more',\n },\n templates: {\n title: 'Explore Templates',\n fetchError: 'Could not fetch data.',\n error: 'Unknown error',\n empty: 'No templates added yet',\n emptyDescription:\n 'Once templates are added, this space will showcase relevant content tailored to your experience.',\n register: 'Register a template',\n viewAll: 'View all {{count}} templates',\n },\n onboarding: {\n greeting: {\n goodMorning: 'Good morning',\n goodAfternoon: 'Good afternoon',\n goodEvening: 'Good evening',\n },\n guest: 'Guest',\n getStarted: {\n title: 'Get started',\n description: 'Learn about Red Hat Developer Hub.',\n buttonText: 'Read documentation',\n ariaLabel: 'Read documentation (opens in a new tab)',\n },\n explore: {\n title: 'Explore',\n description: 'Explore components, APIs and templates.',\n buttonText: 'Go to Catalog',\n ariaLabel: 'Go to Catalog',\n },\n learn: {\n title: 'Learn',\n description: 'Explore and develop new skills.',\n buttonText: 'Go to Learning Paths',\n ariaLabel: 'Go to Learning Paths',\n },\n },\n entities: {\n title: 'Explore Your Software Catalog',\n fetchError: 'Could not fetch data.',\n error: 'Unknown error',\n description:\n 'Browse the Systems, Components, Resources, and APIs that are available in your organization.',\n close: 'close',\n empty: 'No software catalog added yet',\n emptyDescription:\n 'Once software catalogs are added, this space will showcase relevant content tailored to your experience.',\n register: 'Register a component',\n viewAll: 'View all {{count}} catalog entities',\n },\n};\n\n/**\n * Reference translation for Homepage.\n * Defines all the translation keys used in the plugin.\n * @public\n */\nexport const homepageTranslationRef = createTranslationRef({\n id: 'plugin.homepage',\n messages: homepageMessages,\n});\n"],"names":[],"mappings":";;AAuBO,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAQ,EAAA;AAAA,IACN,OAAS,EAAA,eAAA;AAAA,IACT,mBAAqB,EAAA,yBAAA;AAAA,IACrB,KAAO,EAAA;AAAA,GACT;AAAA,EACA,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,GACT;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA;AAAA,GACf;AAAA,EACA,WAAa,EAAA;AAAA,IACX,KAAO,EAAA,cAAA;AAAA,IACP,UAAY,EAAA,uBAAA;AAAA,IACZ,KAAO,EAAA;AAAA,GACT;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,SAAW,EAAA;AAAA,GACb;AAAA,EACA,SAAW,EAAA;AAAA,IACT,KAAO,EAAA,mBAAA;AAAA,IACP,UAAY,EAAA,uBAAA;AAAA,IACZ,KAAO,EAAA,eAAA;AAAA,IACP,KAAO,EAAA,wBAAA;AAAA,IACP,gBACE,EAAA,kGAAA;AAAA,IACF,QAAU,EAAA,qBAAA;AAAA,IACV,OAAS,EAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,QAAU,EAAA;AAAA,MACR,WAAa,EAAA,cAAA;AAAA,MACb,aAAe,EAAA,gBAAA;AAAA,MACf,WAAa,EAAA;AAAA,KACf;AAAA,IACA,KAAO,EAAA,OAAA;AAAA,IACP,UAAY,EAAA;AAAA,MACV,KAAO,EAAA,aAAA;AAAA,MACP,WAAa,EAAA,oCAAA;AAAA,MACb,UAAY,EAAA,oBAAA;AAAA,MACZ,SAAW,EAAA;AAAA,KACb;AAAA,IACA,OAAS,EAAA;AAAA,MACP,KAAO,EAAA,SAAA;AAAA,MACP,WAAa,EAAA,yCAAA;AAAA,MACb,UAAY,EAAA,eAAA;AAAA,MACZ,SAAW,EAAA;AAAA,KACb;AAAA,IACA,KAAO,EAAA;AAAA,MACL,KAAO,EAAA,OAAA;AAAA,MACP,WAAa,EAAA,iCAAA;AAAA,MACb,UAAY,EAAA,sBAAA;AAAA,MACZ,SAAW,EAAA;AAAA;AACb,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,KAAO,EAAA,+BAAA;AAAA,IACP,UAAY,EAAA,uBAAA;AAAA,IACZ,KAAO,EAAA,eAAA;AAAA,IACP,WACE,EAAA,8FAAA;AAAA,IACF,KAAO,EAAA,OAAA;AAAA,IACP,KAAO,EAAA,+BAAA;AAAA,IACP,gBACE,EAAA,0GAAA;AAAA,IACF,QAAU,EAAA,sBAAA;AAAA,IACV,OAAS,EAAA;AAAA;AAEb;AAOO,MAAM,yBAAyB,oBAAqB,CAAA;AAAA,EACzD,EAAI,EAAA,iBAAA;AAAA,EACJ,QAAU,EAAA;AACZ,CAAC;;;;"}
@@ -1,32 +1,32 @@
1
1
  import OpenInNewIcon from '@mui/icons-material/OpenInNew';
2
2
  import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
3
3
 
4
- const LEARNING_SECTION_ITEMS = [
4
+ const getLearningItems = (t) => [
5
5
  {
6
- title: "Get started",
7
- description: "Learn about Red Hat Developer Hub.",
8
- buttonText: "Read documentation",
6
+ title: t("onboarding.getStarted.title"),
7
+ description: t("onboarding.getStarted.description"),
8
+ buttonText: t("onboarding.getStarted.buttonText"),
9
9
  buttonLink: "https://docs.redhat.com/en/documentation/red_hat_developer_hub/",
10
10
  target: "_blank",
11
- ariaLabel: "Read documentation (opens in a new tab)",
11
+ ariaLabel: t("onboarding.getStarted.ariaLabel"),
12
12
  endIcon: OpenInNewIcon
13
13
  },
14
14
  {
15
- title: "Explore",
16
- description: "Explore components, APIs and templates.",
17
- buttonText: "Go to Catalog",
15
+ title: t("onboarding.explore.title"),
16
+ description: t("onboarding.explore.description"),
17
+ buttonText: t("onboarding.explore.buttonText"),
18
18
  buttonLink: "/catalog",
19
19
  target: undefined,
20
- ariaLabel: "Go to Catalog",
20
+ ariaLabel: t("onboarding.explore.ariaLabel"),
21
21
  endIcon: ArrowForwardIcon
22
22
  },
23
23
  {
24
- title: "Learn",
25
- description: "Explore and develop new skills.",
26
- buttonText: "Go to Learning Paths",
24
+ title: t("onboarding.learn.title"),
25
+ description: t("onboarding.learn.description"),
26
+ buttonText: t("onboarding.learn.buttonText"),
27
27
  buttonLink: "/learning-paths",
28
28
  target: undefined,
29
- ariaLabel: "Go to Learning Paths",
29
+ ariaLabel: t("onboarding.learn.ariaLabel"),
30
30
  endIcon: ArrowForwardIcon
31
31
  }
32
32
  ];
@@ -49,5 +49,5 @@ const KINDS = {
49
49
  }
50
50
  };
51
51
 
52
- export { KINDS, LEARNING_SECTION_ITEMS };
52
+ export { KINDS, getLearningItems };
53
53
  //# sourceMappingURL=constants.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.esm.js","sources":["../../src/utils/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport OpenInNewIcon from '@mui/icons-material/OpenInNew';\nimport ArrowForwardIcon from '@mui/icons-material/ArrowForward';\n\nimport { LearningSectionItem } from '../types';\n\nexport const LEARNING_SECTION_ITEMS: LearningSectionItem[] = [\n {\n title: 'Get started',\n description: 'Learn about Red Hat Developer Hub.',\n buttonText: 'Read documentation',\n buttonLink:\n 'https://docs.redhat.com/en/documentation/red_hat_developer_hub/',\n target: '_blank',\n ariaLabel: 'Read documentation (opens in a new tab)',\n endIcon: OpenInNewIcon,\n },\n {\n title: 'Explore',\n description: 'Explore components, APIs and templates.',\n buttonText: 'Go to Catalog',\n buttonLink: '/catalog',\n target: undefined,\n ariaLabel: 'Go to Catalog',\n endIcon: ArrowForwardIcon,\n },\n {\n title: 'Learn',\n description: 'Explore and develop new skills.',\n buttonText: 'Go to Learning Paths',\n buttonLink: '/learning-paths',\n target: undefined,\n ariaLabel: 'Go to Learning Paths',\n endIcon: ArrowForwardIcon,\n },\n];\n\nexport const KINDS = {\n COMPONENT: {\n label: 'Component',\n fill: '#FFE082',\n },\n API: {\n label: 'API',\n fill: '#FFAB91',\n },\n RESOURCE: {\n label: 'Resource',\n fill: '#FFD180',\n },\n SYSTEM: {\n label: 'System',\n fill: '#FF9E80',\n },\n};\n"],"names":[],"mappings":";;;AAqBO,MAAM,sBAAgD,GAAA;AAAA,EAC3D;AAAA,IACE,KAAO,EAAA,aAAA;AAAA,IACP,WAAa,EAAA,oCAAA;AAAA,IACb,UAAY,EAAA,oBAAA;AAAA,IACZ,UACE,EAAA,iEAAA;AAAA,IACF,MAAQ,EAAA,QAAA;AAAA,IACR,SAAW,EAAA,yCAAA;AAAA,IACX,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,KAAO,EAAA,SAAA;AAAA,IACP,WAAa,EAAA,yCAAA;AAAA,IACb,UAAY,EAAA,eAAA;AAAA,IACZ,UAAY,EAAA,UAAA;AAAA,IACZ,MAAQ,EAAA,SAAA;AAAA,IACR,SAAW,EAAA,eAAA;AAAA,IACX,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,KAAO,EAAA,OAAA;AAAA,IACP,WAAa,EAAA,iCAAA;AAAA,IACb,UAAY,EAAA,sBAAA;AAAA,IACZ,UAAY,EAAA,iBAAA;AAAA,IACZ,MAAQ,EAAA,SAAA;AAAA,IACR,SAAW,EAAA,sBAAA;AAAA,IACX,OAAS,EAAA;AAAA;AAEb;AAEO,MAAM,KAAQ,GAAA;AAAA,EACnB,SAAW,EAAA;AAAA,IACT,KAAO,EAAA,WAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,GAAK,EAAA;AAAA,IACH,KAAO,EAAA,KAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,KAAO,EAAA,UAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,QAAA;AAAA,IACP,IAAM,EAAA;AAAA;AAEV;;;;"}
1
+ {"version":3,"file":"constants.esm.js","sources":["../../src/utils/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport OpenInNewIcon from '@mui/icons-material/OpenInNew';\nimport ArrowForwardIcon from '@mui/icons-material/ArrowForward';\nimport { TranslationFunction } from '@backstage/core-plugin-api/alpha';\n\nimport { LearningSectionItem } from '../types';\nimport { homepageTranslationRef } from '../translations';\n\nexport const getLearningItems = (\n t: TranslationFunction<typeof homepageTranslationRef.T>,\n): LearningSectionItem[] => [\n {\n title: t('onboarding.getStarted.title'),\n description: t('onboarding.getStarted.description'),\n buttonText: t('onboarding.getStarted.buttonText'),\n buttonLink:\n 'https://docs.redhat.com/en/documentation/red_hat_developer_hub/',\n target: '_blank',\n ariaLabel: t('onboarding.getStarted.ariaLabel'),\n endIcon: OpenInNewIcon,\n },\n {\n title: t('onboarding.explore.title'),\n description: t('onboarding.explore.description'),\n buttonText: t('onboarding.explore.buttonText'),\n buttonLink: '/catalog',\n target: undefined,\n ariaLabel: t('onboarding.explore.ariaLabel'),\n endIcon: ArrowForwardIcon,\n },\n {\n title: t('onboarding.learn.title'),\n description: t('onboarding.learn.description'),\n buttonText: t('onboarding.learn.buttonText'),\n buttonLink: '/learning-paths',\n target: undefined,\n ariaLabel: t('onboarding.learn.ariaLabel'),\n endIcon: ArrowForwardIcon,\n },\n];\n\n// Keep the original for backwards compatibility or fallback\nexport const LEARNING_SECTION_ITEMS: LearningSectionItem[] = [\n {\n title: 'Get started',\n description: 'Learn about Red Hat Developer Hub.',\n buttonText: 'Read documentation',\n buttonLink:\n 'https://docs.redhat.com/en/documentation/red_hat_developer_hub/',\n target: '_blank',\n ariaLabel: 'Read documentation (opens in a new tab)',\n endIcon: OpenInNewIcon,\n },\n {\n title: 'Explore',\n description: 'Explore components, APIs and templates.',\n buttonText: 'Go to Catalog',\n buttonLink: '/catalog',\n target: undefined,\n ariaLabel: 'Go to Catalog',\n endIcon: ArrowForwardIcon,\n },\n {\n title: 'Learn',\n description: 'Explore and develop new skills.',\n buttonText: 'Go to Learning Paths',\n buttonLink: '/learning-paths',\n target: undefined,\n ariaLabel: 'Go to Learning Paths',\n endIcon: ArrowForwardIcon,\n },\n];\n\n// Backstage technical terms should not be translated\n// Keep as English domain-specific vocabulary\nexport const KINDS = {\n COMPONENT: {\n label: 'Component',\n fill: '#FFE082',\n },\n API: {\n label: 'API',\n fill: '#FFAB91',\n },\n RESOURCE: {\n label: 'Resource',\n fill: '#FFD180',\n },\n SYSTEM: {\n label: 'System',\n fill: '#FF9E80',\n },\n};\n"],"names":[],"mappings":";;;AAuBa,MAAA,gBAAA,GAAmB,CAC9B,CAC0B,KAAA;AAAA,EAC1B;AAAA,IACE,KAAA,EAAO,EAAE,6BAA6B,CAAA;AAAA,IACtC,WAAA,EAAa,EAAE,mCAAmC,CAAA;AAAA,IAClD,UAAA,EAAY,EAAE,kCAAkC,CAAA;AAAA,IAChD,UACE,EAAA,iEAAA;AAAA,IACF,MAAQ,EAAA,QAAA;AAAA,IACR,SAAA,EAAW,EAAE,iCAAiC,CAAA;AAAA,IAC9C,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,KAAA,EAAO,EAAE,0BAA0B,CAAA;AAAA,IACnC,WAAA,EAAa,EAAE,gCAAgC,CAAA;AAAA,IAC/C,UAAA,EAAY,EAAE,+BAA+B,CAAA;AAAA,IAC7C,UAAY,EAAA,UAAA;AAAA,IACZ,MAAQ,EAAA,SAAA;AAAA,IACR,SAAA,EAAW,EAAE,8BAA8B,CAAA;AAAA,IAC3C,OAAS,EAAA;AAAA,GACX;AAAA,EACA;AAAA,IACE,KAAA,EAAO,EAAE,wBAAwB,CAAA;AAAA,IACjC,WAAA,EAAa,EAAE,8BAA8B,CAAA;AAAA,IAC7C,UAAA,EAAY,EAAE,6BAA6B,CAAA;AAAA,IAC3C,UAAY,EAAA,iBAAA;AAAA,IACZ,MAAQ,EAAA,SAAA;AAAA,IACR,SAAA,EAAW,EAAE,4BAA4B,CAAA;AAAA,IACzC,OAAS,EAAA;AAAA;AAEb;AAoCO,MAAM,KAAQ,GAAA;AAAA,EACnB,SAAW,EAAA;AAAA,IACT,KAAO,EAAA,WAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,GAAK,EAAA;AAAA,IACH,KAAO,EAAA,KAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,QAAU,EAAA;AAAA,IACR,KAAO,EAAA,UAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,QAAA;AAAA,IACP,IAAM,EAAA;AAAA;AAEV;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-dynamic-home-page",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -32,16 +32,16 @@
32
32
  "postpack": "backstage-cli package postpack"
33
33
  },
34
34
  "dependencies": {
35
- "@backstage/catalog-client": "^1.10.2",
35
+ "@backstage/catalog-client": "^1.11.0",
36
36
  "@backstage/catalog-model": "^1.7.5",
37
- "@backstage/core-components": "^0.17.4",
37
+ "@backstage/core-components": "^0.17.5",
38
38
  "@backstage/core-plugin-api": "^1.10.9",
39
- "@backstage/plugin-catalog-react": "^1.19.1",
40
- "@backstage/plugin-home": "^0.8.10",
41
- "@backstage/plugin-home-react": "^0.1.28",
42
- "@backstage/plugin-search-react": "^1.9.2",
43
- "@backstage/plugin-user-settings": "^0.8.24",
44
- "@backstage/theme": "^0.6.7",
39
+ "@backstage/plugin-catalog-react": "^1.20.1",
40
+ "@backstage/plugin-home": "^0.8.11",
41
+ "@backstage/plugin-home-react": "^0.1.29",
42
+ "@backstage/plugin-search-react": "^1.9.3",
43
+ "@backstage/plugin-user-settings": "^0.8.25",
44
+ "@backstage/theme": "^0.6.8",
45
45
  "@mui/icons-material": "5.18.0",
46
46
  "@mui/material": "5.18.0",
47
47
  "@mui/styles": "5.18.0",
@@ -55,14 +55,14 @@
55
55
  "react-router-dom": "6.30.1"
56
56
  },
57
57
  "devDependencies": {
58
- "@backstage/cli": "^0.33.1",
58
+ "@backstage/cli": "^0.34.1",
59
59
  "@backstage/core-app-api": "^1.18.0",
60
- "@backstage/dev-utils": "^1.1.12",
61
- "@backstage/plugin-catalog": "^1.31.1",
62
- "@backstage/test-utils": "^1.7.10",
60
+ "@backstage/dev-utils": "^1.1.13",
61
+ "@backstage/plugin-catalog": "^1.31.2",
62
+ "@backstage/test-utils": "^1.7.11",
63
63
  "@openshift/dynamic-plugin-sdk": "5.0.1",
64
- "@red-hat-developer-hub/backstage-plugin-theme": "^0.9.0",
65
- "@testing-library/jest-dom": "6.7.0",
64
+ "@red-hat-developer-hub/backstage-plugin-theme": "^0.10.0",
65
+ "@testing-library/jest-dom": "6.8.0",
66
66
  "@testing-library/react": "14.3.1",
67
67
  "@testing-library/user-event": "14.6.1",
68
68
  "@types/react-grid-layout": "1.3.5",