Skip to content

Commit

Permalink
feat(billing): move code to the new app
Browse files Browse the repository at this point in the history
ref: MANAGER-15025

Signed-off-by: Maxime Bajeux <[email protected]>
  • Loading branch information
Maxime Bajeux committed Dec 3, 2024
1 parent 77aca6f commit 552567b
Show file tree
Hide file tree
Showing 1,380 changed files with 47,542 additions and 11 deletions.
21 changes: 20 additions & 1 deletion packages/manager/apps/billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,35 @@
"start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/manager-billing-app' --include-dependencies -- npm run dev:watch --if-present"
},
"dependencies": {
"@ovh-ux/manager-advices": "^1.8.1",
"@ovh-ux/manager-at-internet-configuration": "^1.5.0",
"@ovh-ux/manager-billing": "^0.22.0",
"@ovh-ux/manager-config": "^8.0.0",
"@ovh-ux/manager-core": "^13.0.0",
"@ovh-ux/manager-error-page": "^2.4.1",
"@ovh-ux/manager-exchange": "^4.10.0",
"@ovh-ux/manager-models": "^2.1.0",
"@ovh-ux/manager-new-billing": "^0.23.0",
"@ovh-ux/manager-ng-layout-helpers": "^2.9.1",
"@ovh-ux/ng-at-internet": "^6.0.0",
"@ovh-ux/ng-at-internet-ui-router-plugin": "^3.5.0",
"@ovh-ux/ng-ovh-api-wrappers": "^5.1.0",
"@ovh-ux/ng-ovh-chart": "^1.2.0",
"@ovh-ux/ng-ovh-contacts": "^5.3.1",
"@ovh-ux/ng-ovh-export-csv": "^2.1.1",
"@ovh-ux/ng-ovh-feature-flipping": "^1.1.2",
"@ovh-ux/ng-ovh-http": "^5.1.1",
"@ovh-ux/ng-ovh-order-tracking": "^2.5.1",
"@ovh-ux/ng-ovh-payment-method": "^9.16.5",
"@ovh-ux/ng-ovh-proxy-request": "^2.1.1",
"@ovh-ux/ng-ovh-request-tagger": "^2.0.0",
"@ovh-ux/ng-ovh-sso-auth": "^4.8.1",
"@ovh-ux/ng-ovh-swimming-poll": "^5.1.1",
"@ovh-ux/ng-ovh-user-pref": "2.1.1",
"@ovh-ux/ng-ovh-utils": "^14.4.1",
"@ovh-ux/ng-shell-tracking": "^0.6.0",
"@ovh-ux/ng-translate-async-loader": "^2.2.1",
"@ovh-ux/ng-ui-router-breadcrumb": "^1.3.1",
"@ovh-ux/ng-ui-router-layout": "^4.3.1",
"@ovh-ux/request-tagger": "^0.4.0",
"@ovh-ux/shell": "^4.0.1",
"@ovh-ux/ui-kit": "^6.10.5",
Expand All @@ -48,12 +61,18 @@
"angular-sanitize": "^1.7.8",
"angular-translate": "^2.18.1",
"angular-translate-loader-pluggable": "^1.3.1",
"angular-ui-bootstrap": "1.3.3",
"angular-ui-utils": "angular-ui/ui-utils#0.2.3",
"angular-ui-validate": "angular-ui/ui-validate#~1.2.2",
"core-js": "^3.6.5",
"flatpickr": "~4.6.3",
"jquery": "^2.1.3",
"jsurl": "^0.1.4",
"lodash-es": "^4.17.15",
"moment": "^2.24.0",
"oclazyload": "^1.1.0",
"ovh-api-services": "^17.0.0",
"ovh-ui-kit-bs": "^4.2.0",
"regenerator-runtime": "^0.13.7",
"whatwg-fetch": "^3.5.0"
},
Expand Down
60 changes: 60 additions & 0 deletions packages/manager/apps/billing/src/app.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// @rem-base: rem-base(10px);

@import 'css/source.less';

.ovh-manager-dedicated-app {
&.in-container .sidebar-menu {
top: -2px !important;
}

#nprogress {
.peg {
box-shadow: none;
}
}

.word-break-normal {
word-break: normal;
}

.ip-clipboard {
min-width: rem-calc(200);
max-width: rem-calc(350);
margin: 0;
}

// Could be removed with the next version of UI Kit
.font-inherit {
font-size: inherit;
}

ola-step-checker {
display: block;

@media (min-width: 992px) {
.oui-tile {
display: flex;
flex-direction: column;
}

.oui-tile__body {
flex: 1;

.row {
height: 100%;
}

.oui-list,
.oui-progress-tracker {
height: 100%;
margin: 0;
border-right: 1px solid #eaeaea;
}
}
}
}

#licenseOrderBlockFilters {
cursor: pointer;
}
}
10 changes: 7 additions & 3 deletions packages/manager/apps/billing/src/app.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ import ovhManagerAtInternetConfiguration from '@ovh-ux/manager-at-internet-confi
import { registerAtInternet } from '@ovh-ux/ng-shell-tracking';
// TODO: Change to '@ovh-ux/manager-billing' when module is deployed
// import Billing from '@ovh-ux/manager-billing';
import Billing from '../../../modules/billing/src';
import Billing from '../../../modules/new-billing/src';
import errorPage from './error';

import dedicatedUniverseComponents from '../../../modules/account/src/dedicatedUniverseComponents';
import TRACKING from './tracking/at-internet.constants';
import '@ovh-ux/ui-kit/dist/css/oui.css';
import './app.less';
import './css/source.scss';

export default async (containerEl, shellClient) => {
const moduleName = 'BillingApp';

const routingConfig = /* @ngInject */ ($urlRouterProvider) => {
$urlRouterProvider.otherwise('/billing');
$urlRouterProvider.otherwise('/');
};

const trackingConfig = /* @ngInject */ (atInternetConfigurationProvider) => {
Expand Down Expand Up @@ -98,6 +100,7 @@ export default async (containerEl, shellClient) => {

const defaultErrorHandler = /* @ngInject */ ($state) => {
$state.defaultErrorHandler((error) => {
console.log(error);
if (error.type === RejectType.ERROR) {
$state.go(
'error',
Expand Down Expand Up @@ -126,6 +129,7 @@ export default async (containerEl, shellClient) => {
ngUiRouterBreadcrumb,
'oui',
uiRouter,
dedicatedUniverseComponents,
errorPage,
Billing,
...get(__NG_APP_INJECTIONS__, environment.getRegion(), []),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Zurück zur Startseite",
"menu_previous": "Zurück zur vorherigen Seite ",
"menu_unpaid": "Meine Verbindlichkeiten",
"menu_orders": "Meine Bestellungen",
"menu_statements": "Meine Aufstellungen",
"menu_history": "Meine Rechnungen",
"menu_payments": "Zahlungsverfolgung",
"menu_credits": "Meine Guthaben",
"menu_services": "Meine Dienstleistungen",
"menu_services_management": "Meine Dienste verwalten",
"menu_refunds": "Meine Gutschriften",
"menu_sla": "Meine SLA-Gutschriften",
"menu_conso": "Meine Verbrauchserfassung",
"menu_means": "Meine Zahlungsarten",
"menu_ovhaccount": "Mein Prepaid-Account",
"menu_ovhaccount_old_name": "(früher OVH Manager)",
"menu_fidelity": "Mein Treuebereich",
"menu_vouchers": "Meine Gutscheine",
"menu_bills": "Meine Rechnungen",
"menu_support": "Meine Support-Anfragen",
"menu_payment_methods": "Zahlungsarten",
"menu_subscriptions": "Meine Abos",
"menu_ssh": "Meine SSH Keys",
"menu_infos": "Mein Profil",
"menu_advanced": "Erweiterte Einstellungen",
"menu_account_title": "Mein Account",
"menu_security": "Sicherheit",
"menu_users_management": "Verwaltung der Benutzer",
"menu_emails": "Empfangene E-Mails",
"menu_contacts": "Meine Kontakte",
"menu_agreements": "Meine Verträge",
"menu_iam": "Identity and Access (IAM)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Back to home page",
"menu_previous": "Back to previous page",
"menu_unpaid": "My outstanding invoices",
"menu_orders": "My orders ",
"menu_statements": "My payments",
"menu_history": "My bills",
"menu_payments": "Payment tracking",
"menu_credits": "My credits",
"menu_services": "My services",
"menu_services_management": "Manage my services ",
"menu_refunds": "My credit notes",
"menu_sla": "My compensation ",
"menu_conso": "My usage summary",
"menu_means": "My payment methods",
"menu_ovhaccount": "My prepaid account ",
"menu_ovhaccount_old_name": "(formerly known as my OVH account)",
"menu_fidelity": "My Loyalty control panel",
"menu_vouchers": "My vouchers",
"menu_bills": "My bills",
"menu_support": "My support tickets ",
"menu_payment_methods": "Payment method",
"menu_subscriptions": "My subscriptions",
"menu_ssh": "My SSH keys",
"menu_infos": "My profile ",
"menu_advanced": "Advanced settings",
"menu_account_title": "My account",
"menu_security": "Security",
"menu_users_management": "User management",
"menu_emails": "Emails received",
"menu_contacts": "My contacts",
"menu_agreements": "My contracts",
"menu_iam": "Identity and Access Management (IAM)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Volver al inicio",
"menu_previous": "Volver a la página anterior",
"menu_unpaid": "Mi saldo actual",
"menu_orders": "Mis pedidos ",
"menu_statements": "Mis extractos",
"menu_history": "Mis facturas",
"menu_payments": "Seguimiento de los pagos",
"menu_credits": "Mi crédito",
"menu_services": "Mis servicios",
"menu_services_management": "Administrar mis servicios",
"menu_refunds": "Mis devoluciones",
"menu_sla": "Compensaciones",
"menu_conso": "Mi consumo",
"menu_means": "Mis formas de pago",
"menu_ovhaccount": "Mi cuenta de prepago",
"menu_ovhaccount_old_name": "(antigua cuenta de OVH)",
"menu_fidelity": "Área de fidelidad",
"menu_vouchers": "Códigos promocionales",
"menu_bills": "Mis facturas",
"menu_support": "Mis solicitudes de asistencia",
"menu_payment_methods": "Formas de pago",
"menu_subscriptions": "Mis suscripciones",
"menu_ssh": "Mis llaves SSH",
"menu_infos": "Mi perfil",
"menu_advanced": "Parámetros avanzados",
"menu_account_title": "Mi cuenta",
"menu_security": "Seguridad",
"menu_users_management": "Gestión de los usuarios",
"menu_emails": "Mensajes recibidos",
"menu_contacts": "Mis contactos",
"menu_agreements": "Mis contratos",
"menu_iam": "Identidades y acceso (IAM)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Retour à l'accueil",
"menu_previous": "Retour à la page précédente",
"menu_unpaid": "Mon encours",
"menu_orders": "Mes commandes",
"menu_statements": "Mes relevés",
"menu_history": "Mes factures",
"menu_payments": "Suivi des paiements",
"menu_credits": "Mes crédits",
"menu_services": "Mes services",
"menu_services_management": "Gérer mes services",
"menu_refunds": "Mes avoirs",
"menu_sla": "Mes compensations",
"menu_conso": "Mon suivi conso",
"menu_means": "Mes moyens de paiement",
"menu_ovhaccount": "Mon compte prépayé",
"menu_ovhaccount_old_name": "(anciennement mon compte OVH)",
"menu_fidelity": "Mon espace fidélité",
"menu_vouchers": "Mes vouchers",
"menu_bills": "Mes factures",
"menu_support": "Mes demandes d'assistance",
"menu_payment_methods": "Moyens de paiement",
"menu_subscriptions": "Mes abonnements",
"menu_ssh": "Mes clés SSH",
"menu_infos": "Mon profil",
"menu_advanced": "Paramètres avancés",
"menu_account_title": "Mon compte",
"menu_security": "Sécurité",
"menu_users_management": "Gestion des utilisateurs",
"menu_emails": "Emails reçus",
"menu_contacts": "Mes contacts",
"menu_agreements": "Mes contrats",
"menu_iam": "Identités et accès (IAM)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Retour à l'accueil",
"menu_previous": "Retour à la page précédente",
"menu_unpaid": "Mon encours",
"menu_orders": "Mes commandes",
"menu_statements": "Mes relevés",
"menu_history": "Mes factures",
"menu_payments": "Suivi des paiements",
"menu_credits": "Mes crédits",
"menu_services": "Mes services",
"menu_services_management": "Gérer mes services",
"menu_refunds": "Mes avoirs",
"menu_sla": "Mes compensations",
"menu_conso": "Mon suivi conso",
"menu_means": "Mes moyens de paiement",
"menu_ovhaccount": "Mon compte prépayé",
"menu_ovhaccount_old_name": "(anciennement mon compte OVH)",
"menu_fidelity": "Mon espace fidélité",
"menu_vouchers": "Mes vouchers",
"menu_bills": "Mes factures",
"menu_support": "Mes demandes d'assistance",
"menu_payment_methods": "Moyens de paiement",
"menu_subscriptions": "Mes abonnements",
"menu_ssh": "Mes clés SSH",
"menu_infos": "Mon profil",
"menu_advanced": "Paramètres avancés",
"menu_account_title": "Mon compte",
"menu_security": "Sécurité",
"menu_users_management": "Gestion des utilisateurs",
"menu_emails": "Emails reçus",
"menu_contacts": "Mes contacts",
"menu_agreements": "Mes contrats",
"menu_iam": "Identités et accès (IAM)"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"menu_back": "Torna alla home",
"menu_previous": "Ritorna alla pagina precedente",
"menu_unpaid": "Il tuo saldo",
"menu_orders": "I tuoi ordini",
"menu_statements": "Storico pagamenti",
"menu_history": "Le tue fatture",
"menu_payments": "Controllo dei pagamenti",
"menu_credits": "I tuoi crediti",
"menu_services": "I tuoi servizi",
"menu_services_management": "Gestisci i tuoi servizi",
"menu_refunds": "Il tuo credito",
"menu_sla": "I tuoi rimborsi",
"menu_conso": "I tuoi consumi",
"menu_means": "I tuoi metodi di pagamento",
"menu_ovhaccount": "Il tuo conto prepagato",
"menu_ovhaccount_old_name": "(precedentemente conto OVH)",
"menu_fidelity": "Il tuo spazio fedeltà",
"menu_vouchers": "I tuoi voucher",
"menu_bills": "Le tue fatture",
"menu_support": "Le tue richieste di assistenza",
"menu_payment_methods": "Modalità di pagamento",
"menu_subscriptions": "I tuoi abbonamenti",
"menu_ssh": "Le tue chiavi SSH",
"menu_infos": "Il tuo profilo",
"menu_advanced": "Opzioni avanzate",
"menu_account_title": "Il tuo account",
"menu_security": "Sicurezza",
"menu_users_management": "Gestione utenti",
"menu_emails": "Email ricevute",
"menu_contacts": "I tuoi contatti",
"menu_agreements": "I tuoi contratti ",
"menu_iam": "Identità e accessi (IAM)"
}
Loading

0 comments on commit 552567b

Please sign in to comment.