-
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(hycu): add product HYCU for OVHCloud (#13244)
ref: MANAGER-14488 Signed-off-by: Thibault Barske <[email protected]> Co-authored-by: David Arsène <[email protected]>
- Loading branch information
Showing
112 changed files
with
2,492 additions
and
42 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
12 changes: 12 additions & 0 deletions
12
packages/manager/apps/container/src/assets/images/sidebar/hycu-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+919 Bytes
packages/manager/apps/container/src/assets/images/sidebar/infinity-cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import React, { | ||
import { | ||
Suspense, | ||
useContext, | ||
useEffect, | ||
|
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: 0 additions & 2 deletions
2
packages/manager/apps/container/src/container/legacy/server-sidebar/universe/GetIcon.tsx
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
e2e/reports | ||
e2e/coverage |
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 @@ | ||
# @ovh-ux/manager-hycu-app | ||
|
||
> Backup HYCU for OVHcloud |
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,20 @@ | ||
const isCI = process.env.CI; | ||
|
||
module.exports = { | ||
default: { | ||
paths: ['e2e/features/**/*.feature'], | ||
require: [ | ||
'../../../../playwright-helpers/bdd-setup.ts', | ||
'e2e/**/*.step.ts', | ||
], | ||
requireModule: ['ts-node/register'], | ||
format: [ | ||
'summary', | ||
isCI ? 'progress' : 'progress-bar', | ||
!isCI && ['html', 'e2e/reports/cucumber-results-report.html'], | ||
!isCI && ['usage-json', 'e2e/reports/cucumber-usage-report.json'], | ||
].filter(Boolean), | ||
formatOptions: { snippetInterface: 'async-await' }, | ||
retry: 1, | ||
}, | ||
}; |
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,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="mobile-web-app-capable" content="yes" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>OVHcloud</title> | ||
<link rel="shortcut icon" href="images/favicon.png" /> | ||
<link rel="apple-touch-icon" href="images/touchicon-180.png" /> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong> | ||
We're sorry but this application doesn't work properly without | ||
JavaScript enabled. Please enable it to continue. | ||
</strong> | ||
</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="./src/index.tsx"></script> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
packages/manager/apps/hycu/mocks/example/example-data.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,11 @@ | ||
[ | ||
{ | ||
"id": 20374 | ||
}, | ||
{ | ||
"id": 20375 | ||
}, | ||
{ | ||
"id": 20379 | ||
} | ||
] |
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,30 @@ | ||
import { Handler } from '../../../../../../playwright-helpers'; | ||
import exampleList from './example-data.json'; | ||
|
||
export type GetExampleMocksParams = { isKo?: boolean; nb?: number }; | ||
|
||
export const getExampleMocks = ({ | ||
isKo, | ||
nb = Number.POSITIVE_INFINITY, | ||
}: GetExampleMocksParams): Handler[] => [ | ||
{ | ||
url: '*', | ||
response: isKo | ||
? { | ||
message: 'Example error', | ||
} | ||
: exampleList.slice(0, nb), | ||
status: isKo ? 500 : 200, | ||
api: 'v6', | ||
}, | ||
{ | ||
url: '*', | ||
response: isKo | ||
? { | ||
message: 'Example error', | ||
} | ||
: exampleList.slice(0, nb), | ||
status: isKo ? 500 : 200, | ||
api: 'v2', | ||
}, | ||
]; |
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 @@ | ||
export * from './example/example'; |
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,66 @@ | ||
{ | ||
"name": "@ovh-ux/manager-hycu-app", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "Backup HYCU for OVHcloud", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ovh/manager.git", | ||
"directory": "packages/manager/apps/hycu" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"author": "OVH SAS", | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
"dev": "tsc && vite", | ||
"start": "lerna exec --stream --scope='@ovh-ux/manager-hycu-app' --include-dependencies -- npm run build --if-present", | ||
"start:dev": "lerna exec --stream --scope='@ovh-ux/manager-hycu-app' --include-dependencies -- npm run dev --if-present", | ||
"start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/manager-hycu-app' --include-dependencies -- npm run dev:watch --if-present", | ||
"test": "vitest run" | ||
}, | ||
"dependencies": { | ||
"@ovh-ux/manager-config": "*", | ||
"@ovh-ux/manager-core-api": "*", | ||
"@ovh-ux/manager-core-utils": "*", | ||
"@ovh-ux/manager-react-components": "*", | ||
"@ovh-ux/manager-react-core-application": "*", | ||
"@ovh-ux/manager-react-shell-client": "*", | ||
"@ovh-ux/manager-tailwind-config": "*", | ||
"@ovh-ux/request-tagger": "*", | ||
"@ovhcloud/ods-common-core": "17.2.1", | ||
"@ovhcloud/ods-common-theming": "17.2.1", | ||
"@ovhcloud/ods-components": "17.2.1", | ||
"@ovhcloud/ods-theme-blue-jeans": "17.2.1", | ||
"@tanstack/react-query": "^5.51.21", | ||
"@tanstack/react-query-devtools": "^5.51.21", | ||
"axios": "^1.1.2", | ||
"clsx": "^1.2.1", | ||
"i18next": "^23.8.2", | ||
"i18next-http-backend": "^2.4.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-i18next": "^14.0.5", | ||
"react-router-dom": "^6.3.0", | ||
"tailwindcss": "^3.4.4" | ||
}, | ||
"devDependencies": { | ||
"@cucumber/cucumber": "^10.3.1", | ||
"@ovh-ux/manager-vite-config": "*", | ||
"@testing-library/jest-dom": "^6.5.0", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/jest": "^29.5.13", | ||
"@vitejs/plugin-react": "^4.3.2", | ||
"element-internals-polyfill": "^1.3.12", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"msw": "2.1.7", | ||
"typescript": "^5.1.6", | ||
"vite": "^5.2.13", | ||
"vitest": "^2.1.2" | ||
}, | ||
"regions": [ | ||
"CA", | ||
"EU", | ||
"US" | ||
] | ||
} |
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 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
7 changes: 7 additions & 0 deletions
7
packages/manager/apps/hycu/public/translations/dashboard/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,7 @@ | ||
{ | ||
"title": "Dashboard-Seite", | ||
"error_service": "Unsere Info-Dienstleistungen", | ||
"general_informations": "Allgemeine Informationen", | ||
"tab2": "TAB 2", | ||
"back_link": "Zurück zur Liste" | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/manager/apps/hycu/public/translations/dashboard/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,7 @@ | ||
{ | ||
"title": "Dashboard page", | ||
"error_service": "Our info services", | ||
"general_informations": "General information", | ||
"tab2": "Tab 2", | ||
"back_link": "Back to list" | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/manager/apps/hycu/public/translations/dashboard/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,7 @@ | ||
{ | ||
"title": "Dashboard page", | ||
"error_service": "No services info", | ||
"general_informations": "Datos generales", | ||
"tab2": "Tabulador 2", | ||
"back_link": "Volver a la lista" | ||
} |
Oops, something went wrong.