-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedicated.server): rbx1 eol banner (#14742)
* feat(dedicated.server): rbx1 eol banner ref: MANAGER-16530 Signed-off-by: Quentin Pavy <[email protected]> * fix(i18n): add missing translations [CDS 3616] Signed-off-by: CDS Translator Agent <[email protected]> * feat(dedicated.server): display rb1x banner for rbx1 not in ct rack ref: MANAGER-16530 Signed-off-by: Quentin Pavy <[email protected]> --------- Signed-off-by: Quentin Pavy <[email protected]> Signed-off-by: CDS Translator Agent <[email protected]> Co-authored-by: Quentin Pavy <[email protected]>
- Loading branch information
Showing
21 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/manager/modules/bm-server-components/src/rbx1-eol-banner/component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import controller from './controller'; | ||
import template from './template.html'; | ||
|
||
export default { | ||
controller, | ||
name: 'ovhManagerBmServerComponentsRbx1EolBanner', | ||
template, | ||
}; |
24 changes: 24 additions & 0 deletions
24
packages/manager/modules/bm-server-components/src/rbx1-eol-banner/constants.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export const GUIDE_LINKS = { | ||
DEFAULT: 'https://www.ovhcloud.com/en-ie/lp/end-service-rbx-1/', | ||
ASIA: 'https://www.ovhcloud.com/asia/lp/end-service-rbx-1/', | ||
AU: 'https://www.ovhcloud.com/en-au/lp/end-service-rbx-1/', | ||
CA: 'https://www.ovhcloud.com/en-ca/lp/end-service-rbx-1/', | ||
DE: 'https://www.ovhcloud.com/de/lp/end-service-rbx-1/', | ||
ES: 'https://www.ovhcloud.com/es-es/lp/end-service-rbx-1/', | ||
FR: 'https://www.ovhcloud.com/fr/lp/end-service-rbx-1/', | ||
GB: 'https://www.ovhcloud.com/en-gb/lp/end-service-rbx-1/', | ||
IE: 'https://www.ovhcloud.com/en-ie/lp/end-service-rbx-1/', | ||
IN: 'https://www.ovhcloud.com/en-in/lp/end-service-rbx-1/', | ||
IT: 'https://www.ovhcloud.com/it/lp/end-service-rbx-1/', | ||
MA: 'https://www.ovhcloud.com/fr-ma/lp/end-service-rbx-1/', | ||
NL: 'https://www.ovhcloud.com/nl/lp/end-service-rbx-1/', | ||
PL: 'https://www.ovhcloud.com/pl/lp/end-service-rbx-1/', | ||
PT: 'https://www.ovhcloud.com/pt/lp/end-service-rbx-1/', | ||
QC: 'https://www.ovhcloud.com/fr-ca/lp/end-service-rbx-1/', | ||
SN: 'https://www.ovhcloud.com/fr-sn/lp/end-service-rbx-1/', | ||
SG: 'https://www.ovhcloud.com/en-sg/lp/end-service-rbx-1/', | ||
TN: 'https://www.ovhcloud.com/fr-tn/lp/end-service-rbx-1/', | ||
US: 'https://www.ovhcloud.com/en/lp/end-service-rbx-1/', | ||
WE: 'https://www.ovhcloud.com/en-ie/lp/end-service-rbx-1/', | ||
WS: 'https://www.ovhcloud.com/es/lp/end-service-rbx-1/', | ||
}; |
9 changes: 9 additions & 0 deletions
9
packages/manager/modules/bm-server-components/src/rbx1-eol-banner/controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { GUIDE_LINKS } from './constants'; | ||
|
||
export default class RbxEolBannerController { | ||
/* @ngInject */ | ||
constructor(coreConfig) { | ||
this.guideLink = | ||
GUIDE_LINKS[coreConfig.getUser().ovhSubsidiary] || GUIDE_LINKS.DEFAULT; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/manager/modules/bm-server-components/src/rbx1-eol-banner/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import angular from 'angular'; | ||
import '@ovh-ux/ng-translate-async-loader'; | ||
import 'angular-translate'; | ||
import '@ovh-ux/ui-kit'; | ||
|
||
import component from './component'; | ||
|
||
const moduleName = 'ovhManagerRbx1EolBanner'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
'oui', | ||
'ngTranslateAsyncLoader', | ||
'pascalprecht.translate', | ||
]) | ||
.component(component.name, component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
6 changes: 6 additions & 0 deletions
6
packages/manager/modules/bm-server-components/src/rbx1-eol-banner/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<oui-message data-type="warning" class="mb-4"> | ||
<p | ||
data-translate="rbx1_eol_banner_title" | ||
data-translate-values="{guideLink: $ctrl.guideLink}" | ||
></p> | ||
</oui-message> |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_de_DE.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "BITTE BEACHTEN SIE: Um Ihnen die Migration Ihrer Dienste von RBX1 zu ermöglichen, das in diesem Jahr modernisiert werden soll, wird der Zeitraum für die Migration der Server bis zum 30. Juni 2025 verlängert. Weitere Informationen finden Sie in der E-Mail, die Sie erhalten haben, sowie in unserer <a href=\"{{guideLink}}\" target=\"_blank\">Migrationsanleitung</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_en_GB.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "IMPORTANT! To enable you to migrate your RBX1 services, which are scheduled to be modernized this year, the server migration period is extended until June 30, 2025. For further details, please refer to the email you have received and refer to our <a href=\"{{guideLink}}\" target=\"_blank\">migration</a> guide." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_es_ES.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "ATENCIÓN: Para asegurarnos de que puede migrar correctamente los servicios de RBX1, cuya modernización está prevista para este año, el período de migración de servidores se amplía hasta el 30 de junio de 2025. Para más información, consulte el correo electrónico recibido y nuestra <a href=\"{{guideLink}}\" target=\"_blank\">guía de migración</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_fr_CA.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "ATTENTION: Pour vous permettre de migrer vos services de RBX1 dont la modernisation est prévue cette année, la période de migration des serveurs est étendue jusqu'au 30 juin 2025. Pour plus de détail, merci de vous référer au mail reçu et de consulter notre <a href=\"{{guideLink}}\" target=\"_blank\">guide de migration</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "ATTENTION: Pour vous permettre de migrer vos services de RBX1 dont la modernisation est prévue cette année, la période de migration des serveurs est étendue jusqu'au 30 juin 2025. Pour plus de détail, merci de vous référer au mail reçu et de consulter notre <a href=\"{{guideLink}}\" target=\"_blank\">guide de migration</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_it_IT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "ATTENZIONE: Per consentirti di trasferire i tuoi servizi da RBX1, la cui modernizzazione è prevista quest'anno, il periodo di migrazione dei server sarà esteso fino al 30 giugno 2025. Per maggiori dettagli, consulta l'email ricevuta e la nostra <a href=\"{{guideLink}}\" target=\"_blank\">guida alla migrazione</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_pl_PL.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "UWAGA! Aby umożliwić migrację usług RBX1, które mają zostać zmodernizowane w tym roku, okres migracji serwerów został przedłużony do 30 czerwca 2025 r. Więcej informacji znajdziesz w e-mailu, który do Ciebie wysłaliśmy oraz w <a href=\"{{guideLink}}\" target=\"_blank\">przewodniku dotyczącym migracji</a>." | ||
} |
3 changes: 3 additions & 0 deletions
3
...manager/modules/bm-server-components/src/rbx1-eol-banner/translations/Messages_pt_PT.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"rbx1_eol_banner_title": "ATENÇÃO: Para lhe permitir migrar os seus serviços de RBX1 cuja modernização está prevista para este ano, o período de migração dos servidores foi alargado até 30 de junho de 2025. Para mais informações, consulte o e-mail recebido e o nosso <a href=\"{{guideLink}}\" target=\"_blank\">guia de migração</a>." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/bm-server-components/src/vmac-unavailable-banner/vmac-unavailable-banner.controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters