Skip to content

Commit

Permalink
feat(pci-object-storage): container creation region step
Browse files Browse the repository at this point in the history
ref: DTCORE-2884
Signed-off-by: Florian Renaut <[email protected]>
  • Loading branch information
frenautvh committed Dec 4, 2024
1 parent 42684fb commit 124c845
Show file tree
Hide file tree
Showing 47 changed files with 1,033 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Versionsverwaltung",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatisiert die Erstellung von Objektversionen, um versehentliches Löschen zu vermeiden, oder wenn ein neues Objekt hochgeladen wird.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Deaktivieren",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Aktivieren"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Versioning",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatically saves multiple versions of objects to avoid accidental deletion, or when new objects are uploaded.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Disable",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activate"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Control de versiones",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatiza la creación de versiones de un objeto para subsanar una posible eliminación accidental, o simplemente cuando se carga un nuevo objeto.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Desactivar",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestion des versions",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatise la création de versions d’un objet pour pallier la suppression accidentelle de ce dernier, ou simplement quand un nouvel objet est uploadé.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Désactiver",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestion des versions",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatise la création de versions d’un objet pour pallier la suppression accidentelle de ce dernier, ou simplement quand un nouvel objet est uploadé.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Désactiver",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestione delle versioni",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatizza la creazione di versioni di un oggetto per evitarne la possibile eliminazione accidentale, o semplicemente quando viene caricato un nuovo oggetto.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Disattivare",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Attivare"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Zarządzanie wersjami",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatyzacja tworzenia wersji obiektu zabezpiecza przed przypadkowym usunięciem istniejącego obiektu, ale także uruchamia się za każdym razem, gdy dodawany jest nowy obiekt. ",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Wyłącz",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Włącz"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestão das versões",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatiza a criação de versões de um objeto para compensar a eliminação acidental deste último, ou simplesmente quando um novo objeto é alvo de upload.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Desativar",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Ativar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Datenverschlüsselung",
"pci_projects_project_storages_containers_data_encryption_description": "Die in diesen Container geladenen Daten werden von OVHcloud on the fly verschlüsselt.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Keine Verschlüsselung",
"pci_projects_project_storages_containers_data_encryption_aes256": "Serverseitige Verschlüsselung mit OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Die OVHcloud Managed Keys werden in Ihrem Namen von einem integrierten OVHcloud Dienst mit dem verstärkten KMS von OVHcloud verwaltet und verwendet."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Encrypt your data",
"pci_projects_project_storages_containers_data_encryption_description": "OVHcloud encrypts the data as it flows into the container.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "No encryption",
"pci_projects_project_storages_containers_data_encryption_aes256": "Server-side encryption with OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "OVHcloud Managed Keys are handled and used on your behalf via OVHcloud’s secure KMS-integrated service."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Cifre sus datos",
"pci_projects_project_storages_containers_data_encryption_description": "Los datos introducidos en este contenedor son cifrados de inmediato por OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Sin cifrado",
"pci_projects_project_storages_containers_data_encryption_aes256": "Cifrado del lado del servidor con OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Las OVHcloud Managed Keys son gestionadas y utilizadas en su nombre por un servicio de OVHcloud integrado con el KMS reforzado de OVHcloud"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Chiffrez vos données",
"pci_projects_project_storages_containers_data_encryption_description": "Les données déversées dans ce conteneur sont chiffrées à la volée par OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Pas de chiffrement",
"pci_projects_project_storages_containers_data_encryption_aes256": "Chiffrement côté serveur avec des OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Les OVHcloud Managed Keys sont gérées et utilisées en votre nom par un service OVHcloud intégré avec le KMS renforcé d'OVHcloud"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Chiffrez vos données",
"pci_projects_project_storages_containers_data_encryption_description": "Les données déversées dans ce conteneur sont chiffrées à la volée par OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Pas de chiffrement",
"pci_projects_project_storages_containers_data_encryption_aes256": "Chiffrement côté serveur avec des OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Les OVHcloud Managed Keys sont gérées et utilisées en votre nom par un service OVHcloud intégré avec le KMS renforcé d'OVHcloud"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Cifra i tuoi dati",
"pci_projects_project_storages_containers_data_encryption_description": "I dati inseriti in questo container sono cifrati immediatamente da OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Senza crittografia",
"pci_projects_project_storages_containers_data_encryption_aes256": "Crittografia lato server con OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Le OVHcloud Managed Keys sono gestite e utilizzate a tuo nome da un servizio OVHcloud integrato con il KMS rafforzato di OVHcloud"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Szyfruj dane",
"pci_projects_project_storages_containers_data_encryption_description": "Dane przesyłane do tego kontenera są szyfrowane w locie przez OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Bez szyfrowania",
"pci_projects_project_storages_containers_data_encryption_aes256": "Szyfrowanie po stronie serwera za pomocą OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Klucze OVHcloud Managed Keys są zarządzane i używane w Twoim imieniu przez usługę OVHcloud zintegrowaną z ulepszonym KMS od OVHcloud."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_projects_project_storages_containers_data_encryption_title": "Encripte os seus dados",
"pci_projects_project_storages_containers_data_encryption_description": "Os dados introduzidos neste container são encriptados \"on demand\" pela OVHcloud.",
"pci_projects_project_storages_containers_data_encryption_plaintext": "Sem encriptação",
"pci_projects_project_storages_containers_data_encryption_aes256": "Encriptação do servidor com os OVHcloud Managed Keys (SSE-S3)",
"pci_projects_project_storages_containers_data_encryption_aes256_tooltip": "Os OVHcloud Managed Keys são geridos e utilizados em seu nome por um serviço OVHcloud integrado com o KMS reforçado da OVHcloud"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Versionsverwaltung",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatisiert die Erstellung von Objektversionen, um versehentliches Löschen zu vermeiden, oder wenn ein neues Objekt hochgeladen wird.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Deaktivieren",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Aktivieren"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Versioning",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatically saves multiple versions of objects to avoid accidental deletion, or when new objects are uploaded.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Disable",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activate"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Control de versiones",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatiza la creación de versiones de un objeto para subsanar una posible eliminación accidental, o simplemente cuando se carga un nuevo objeto.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Desactivar",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestion des versions",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatise la création de versions d’un objet pour pallier la suppression accidentelle de ce dernier, ou simplement quand un nouvel objet est uploadé.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Désactiver",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestion des versions",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatise la création de versions d’un objet pour pallier la suppression accidentelle de ce dernier, ou simplement quand un nouvel objet est uploadé.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Désactiver",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Activer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestione delle versioni",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatizza la creazione di versioni di un oggetto per evitarne la possibile eliminazione accidentale, o semplicemente quando viene caricato un nuovo oggetto.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Disattivare",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Attivare"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Zarządzanie wersjami",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatyzacja tworzenia wersji obiektu zabezpiecza przed przypadkowym usunięciem istniejącego obiektu, ale także uruchamia się za każdym razem, gdy dodawany jest nowy obiekt. ",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Wyłącz",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Włącz"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pci_projects_project_storages_containers_bucket_versioning_title": "Gestão das versões",
"pci_projects_project_storages_containers_bucket_versioning_description": "Automatiza a criação de versões de um objeto para compensar a eliminação acidental deste último, ou simplesmente quando um novo objeto é alvo de upload.",
"pci_projects_project_storages_containers_bucket_versioning_disabled": "Desativar",
"pci_projects_project_storages_containers_bucket_versioning_enabled": "Ativar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Alle Standorte",
"pci_project_regions_list_empty": "Kein Standort verfügbar",
"pci_project_regions_list_add": "Bitte aktivieren Sie die letzten Standorte jeder Zone im Bereich <a href=\"{{url}}\" class=\"oui-link\">Standorte</a>.",
"pci_project_regions_list_region": "Standort",
"pci_project_regions_list_quota": "Mein Quota erhöhen"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "All locations",
"pci_project_regions_list_empty": "No locations are available",
"pci_project_regions_list_add": "Please activate the latest locations in each zone in the <a href=\"{{url}}\" class=\"oui-link\">Locations</a> section",
"pci_project_regions_list_region": "Location",
"pci_project_regions_list_quota": "Increase your quota"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Todas las localizaciones",
"pci_project_regions_list_empty": "No hay localizaciones disponibles.",
"pci_project_regions_list_add": "Por favor, active las últimas localizaciones de cada zona en la sección <a href=\"{{url}}\" class=\"oui-link\">Localizaciones</a>.",
"pci_project_regions_list_region": "Localización",
"pci_project_regions_list_quota": "Aumentar los límites de mi cuota"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Toutes les localisations",
"pci_project_regions_list_empty": "Aucune localisation n'est disponible",
"pci_project_regions_list_add": "Nous vous invitons à activer les dernières localisations de chaque zone dans la partie <a href=\"{{url}}\" class=\"oui-link\">Localisations</a>",
"pci_project_regions_list_region": "Localisation",
"pci_project_regions_list_quota": "Augmenter mon quota"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Toutes les localisations",
"pci_project_regions_list_empty": "Aucune localisation n'est disponible",
"pci_project_regions_list_add": "Nous vous invitons à activer les dernières localisations de chaque zone dans la partie <a href=\"{{url}}\" class=\"oui-link\">Localisations</a>",
"pci_project_regions_list_region": "Localisation",
"pci_project_regions_list_quota": "Augmenter mon quota"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Tutte le Region",
"pci_project_regions_list_empty": "Nessuna Region disponibile",
"pci_project_regions_list_add": "Per attivare le ultime localizzazioni disponibili in ogni zona, accedi alla sezione <a href=\"{{url}}\" class=\"oui-link\">Localizzazioni</a>",
"pci_project_regions_list_region": "Localizzazione",
"pci_project_regions_list_quota": "Aumenta la tua quota"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Wszystkie lokalizacje",
"pci_project_regions_list_empty": "Żadna z lokalizacji nie jest dostępna",
"pci_project_regions_list_add": "Włącz najnowsze lokalizacje każdej strefy w sekcji <a href=\"{{url}}\" class=\"oui-link\">Lokalizacje</a>",
"pci_project_regions_list_region": "Lokalizacja",
"pci_project_regions_list_quota": "Zwiększ limit"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"pci_project_regions_list_continent_all": "Todas as localizações",
"pci_project_regions_list_empty": "Nenhuma localização disponível",
"pci_project_regions_list_add": "Pode ativar as últimas localizações de cada zona na secção <a href=\"{{url}}\" class=\"oui-link\">Localizações</a>",
"pci_project_regions_list_region": "Localização",
"pci_project_regions_list_quota": "Aumentar o meu limite"
}
1 change: 1 addition & 0 deletions packages/manager/apps/pci-object-storage/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const PLAN_CODES = {
};

export const STORAGE_STANDARD_PLANCODE = 'storage-standard.consumption';
export const STORAGE_STANDARD_REGION_PLANCODE = 'storage-standard';

export const OBJECT_CONTAINER_OFFERS = [
OBJECT_CONTAINER_OFFER_STORAGE_STANDARD,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ import { useTranslation } from 'react-i18next';
import { useContext } from 'react';
import { ShellContext } from '@ovh-ux/manager-react-shell-client';
import {
OBJECT_CONTAINER_MODE_LOCAL_ZONE,
OBJECT_CONTAINER_OFFER_STORAGE_STANDARD,
OBJECT_CONTAINER_OFFER_SWIFT,
STORAGE_PRICES_LINK,
} from '@/constants';
import { SolutionStepComponent } from './step/SolutionStep.component';
import { DeploymentModeStep } from './step/DeploymentModeStep.component';
import { useContainerCreationStore } from './useContainerCreationStore';
import { RegionStep } from './step/RegionStep.component';
import { ContainerType } from './step/ContainerTypeStep.component';
import { ContainerNameStep } from './step/ContainerNameStep.component';
import { LinkUserStep } from './step/LinkUserStep.component';
import { VersioningStep } from './step/VersioningStep.component';
import { EncryptionStep } from './step/EncryptionStep.component';

export default function ContainerNewPage() {
const { t } = useTranslation('containers/add');
Expand Down Expand Up @@ -89,6 +97,17 @@ export default function ContainerNewPage() {
{form.offer === OBJECT_CONTAINER_OFFER_STORAGE_STANDARD && (
<DeploymentModeStep />
)}
<RegionStep />
{form.offer === OBJECT_CONTAINER_OFFER_SWIFT && <ContainerType />}
{form.offer === OBJECT_CONTAINER_OFFER_STORAGE_STANDARD &&
form.deploymentMode !== OBJECT_CONTAINER_MODE_LOCAL_ZONE && (
<>
<LinkUserStep />
<VersioningStep />
<EncryptionStep />
</>
)}
<ContainerNameStep />
</div>
</>
);
Expand Down
Loading

0 comments on commit 124c845

Please sign in to comment.