Skip to content

Commit

Permalink
feat(pci.ai-notebooks): initializing ai notebooks apps
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Bullet <[email protected]>
  • Loading branch information
abullet33 committed Jul 4, 2024
1 parent 1a9d072 commit e193b2b
Show file tree
Hide file tree
Showing 117 changed files with 6,390 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ vue/src
packages/manager/core/generator
packages/components/ovh-at-internet/src/ovh-at-internet.ts
packages/manager/apps/container
packages/manager/apps/pci-ai-notebooks/src/components/ui
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ custom-elements
loader
react
vue
packages/manager/apps/pci-ai-notebooks/src/components/ui
packages/manager/apps/pci-ai-notebooks/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export const features = [
'public-cloud:project-settings',
'ai-dashboard',
'data-platform',
'ai-endpoints'
'ai-endpoints',
'pci-ai-notebooks'
];

export function getPciProjectMenu(
Expand Down Expand Up @@ -297,8 +298,8 @@ export function getPciProjectMenu(
{
id: 'notebooks',
title: 'AI Notebooks',
feature: 'notebooks',
href: getURL('public-cloud', `#/pci/projects/${projectId}/notebooks`),
feature: 'pci-ai-notebooks',
href: getURL('public-cloud', `#/pci/projects/${projectId}/ai/notebooks`),
},
{
id: 'training',
Expand Down
2 changes: 2 additions & 0 deletions packages/manager/apps/pci-ai-notebooks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
yarn-error.log
3 changes: 3 additions & 0 deletions packages/manager/apps/pci-ai-notebooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @ovh-ux/manager-pci-ai-notebooks-app

> pci-ai-notebooks project
17 changes: 17 additions & 0 deletions packages/manager/apps/pci-ai-notebooks/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/global.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
127 changes: 127 additions & 0 deletions packages/manager/apps/pci-ai-notebooks/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"name": "@ovh-ux/manager-pci-ai-notebooks-app",
"version": "1.0.0",
"private": true,
"description": "pci-ai-notebooks",
"repository": {
"type": "git",
"url": "git+https://github.com/ovh/manager.git",
"directory": "packages/manager/apps/pci-ai-notebooks"
},
"license": "BSD-3-Clause",
"author": "OVH SAS",
"type": "module",
"scripts": {
"build": "tsc --project tsconfig.build.json && vite build",
"coverage": "vitest run --coverage",
"dev": "tsc && vite",
"start": "lerna exec --stream --scope='@ovh-ux/manager-pci-ai-notebooks-app' --include-dependencies -- npm run build --if-present",
"start:dev": "lerna exec --stream --scope='@ovh-ux/manager-pci-ai-notebooks-app' --include-dependencies -- npm run dev --if-present",
"start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/manager-pci-ai-notebooks-app' --include-dependencies -- npm run dev:watch --if-present",
"test": "vitest",
"test-ui": "vitest --ui --coverage.enabled=true"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^3.3.4",
"@ovh-ux/manager-config": "*",
"@ovh-ux/manager-core-api": "*",
"@ovh-ux/manager-react-core-application": "*",
"@ovh-ux/manager-react-shell-client": "*",
"@ovh-ux/shell": "*",
"@ovhcloud/manager-components": "^1.3.0",
"@ovhcloud/ods-common-core": "^17.1.0",
"@ovhcloud/ods-common-theming": "^17.1.0",
"@ovhcloud/ods-components": "^17.1.0",
"@ovhcloud/ods-theme-blue-jeans": "^17.1.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-progress": "^1.0.3",
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-slider": "^1.1.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@tanstack/react-query": "^5.8.3",
"@tanstack/react-table": "^8.12.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^18.0.0",
"chart.js": "^4.4.2",
"chartjs-adapter-date-fns": "^3.0.0",
"chartjs-plugin-zoom": "^2.0.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^0.2.1",
"date-fns": "^3.4.0",
"duration-fns": "^3.0.2",
"i18next": "^23.10.0",
"i18next-http-backend": "^2.4.2",
"lucide-react": "^0.334.0",
"next-themes": "^0.2.1",
"qs": "^6.11.2",
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
"react-day-picker": "^8.10.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.1",
"react-i18next": "^14.0.5",
"react-router": "^6.21.3",
"react-router-dom": "^6.3.0",
"sonner": "^1.4.0",
"tailwind-merge": "^2.2.1",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"turbo": "^1.4.3",
"zod": "^3.22.4"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@jest/globals": "^29.7.0",
"@ovh-ux/manager-vite-config": "*",
"@tanstack/react-query-devtools": "^5.8.3",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.2.0",
"@vitest/ui": "^1.4.0",
"autoprefixer": "^10.4.16",
"babel-plugin-transform-import-meta": "^2.2.1",
"element-internals-polyfill": "^1.3.10",
"eslint": "^8.56.0",
"jest-environment-jsdom": "^29.7.0",
"knip": "^3.10.0",
"postcss": "^8.4.32",
"rollup": "^4.4.0",
"tailwindcss": "^3.4.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vite": "4.3.1",
"vitest": "^1.4.0"
},
"regions": [
"CA",
"EU"
]
}
6 changes: 6 additions & 0 deletions packages/manager/apps/pci-ai-notebooks/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "B",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "Byte",
"unitLong-B_other": "Byte",
"unitLong-KB_one": "Kilobyte",
"unitLong-KB_other": "Kilobyte",
"unitLong-MB_one": "Megabyte",
"unitLong-MB_other": "Megabyte",
"unitLong-GB_one": "Gigabyte",
"unitLong-GB_other": "Gigabyte",
"unitLong-TB_one": "Terabyte",
"unitLong-TB_other": "Terabyte",
"unitLong-PB_one": "Petabyte",
"unitLong-PB_other": "Petabyte"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "B",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "byte",
"unitLong-B_other": "bytes",
"unitLong-KB_one": "kilobyte",
"unitLong-KB_other": "kilobytes",
"unitLong-MB_one": "megabyte",
"unitLong-MB_other": "megabytes",
"unitLong-GB_one": "gigabyte",
"unitLong-GB_other": "gigabytes",
"unitLong-TB_one": "terabyte",
"unitLong-TB_other": "terabytes",
"unitLong-PB_one": "petabyte",
"unitLong-PB_other": "petabytes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "B",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "byte",
"unitLong-B_other": "bytes",
"unitLong-KB_one": "kilobyte",
"unitLong-KB_other": "kilobytes",
"unitLong-MB_one": "megabyte",
"unitLong-MB_other": "megabytes",
"unitLong-GB_one": "gigabyte",
"unitLong-GB_other": "gigabytes",
"unitLong-TB_one": "terabyte",
"unitLong-TB_other": "terabytes",
"unitLong-PB_one": "petabyte",
"unitLong-PB_other": "petabytes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "o",
"unitShort-KB": "Ko",
"unitShort-MB": "Mo",
"unitShort-GB": "Go",
"unitShort-TB": "To",
"unitShort-PB": "Po",
"unitLong-B_one": "octet",
"unitLong-B_other": "octets",
"unitLong-KB_one": "kilooctet",
"unitLong-KB_other": "kilooctets",
"unitLong-MB_one": "mégaoctet",
"unitLong-MB_other": "mégaoctets",
"unitLong-GB_one": "gigaoctet",
"unitLong-GB_other": "gigaoctets",
"unitLong-TB_one": "téraoctet",
"unitLong-TB_other": "téraoctets",
"unitLong-PB_one": "pétaoctet",
"unitLong-PB_other": "pétaoctets"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "o",
"unitShort-KB": "Ko",
"unitShort-MB": "Mo",
"unitShort-GB": "Go",
"unitShort-TB": "To",
"unitShort-PB": "Po",
"unitLong-B_one": "octet",
"unitLong-B_other": "octets",
"unitLong-KB_one": "kilooctet",
"unitLong-KB_other": "kilooctets",
"unitLong-MB_one": "mégaoctet",
"unitLong-MB_other": "mégaoctets",
"unitLong-GB_one": "gigaoctet",
"unitLong-GB_other": "gigaoctets",
"unitLong-TB_one": "téraoctet",
"unitLong-TB_other": "téraoctets",
"unitLong-PB_one": "pétaoctet",
"unitLong-PB_other": "pétaoctets"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "b",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "byte",
"unitLong-B_other": "byte",
"unitLong-KB_one": "kilobyte",
"unitLong-KB_other": "kilobyte",
"unitLong-MB_one": "megabyte",
"unitLong-MB_other": "megabyte",
"unitLong-GB_one": "gigabyte",
"unitLong-GB_other": "gigabyte",
"unitLong-TB_one": "terabyte",
"unitLong-TB_other": "terabyte",
"unitLong-PB_one": "petabyte",
"unitLong-PB_other": "petabyte"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "B",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "bajt",
"unitLong-B_other": "bajty",
"unitLong-KB_one": "kilobajt",
"unitLong-KB_other": "kilobajty",
"unitLong-MB_one": "megabajt",
"unitLong-MB_other": "megabajty",
"unitLong-GB_one": "gigabajt",
"unitLong-GB_other": "gigabajty",
"unitLong-TB_one": "terabajt",
"unitLong-TB_other": "terabajty",
"unitLong-PB_one": "petabajt",
"unitLong-PB_other": "petabajty"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"unitShort-B": "B",
"unitShort-KB": "KB",
"unitShort-MB": "MB",
"unitShort-GB": "GB",
"unitShort-TB": "TB",
"unitShort-PB": "PB",
"unitLong-B_one": "byte",
"unitLong-B_other": "bytes",
"unitLong-KB_one": "kilobyte",
"unitLong-KB_other": "kilobytes",
"unitLong-MB_one": "megabyte",
"unitLong-MB_other": "megabytes",
"unitLong-GB_one": "gigabyte",
"unitLong-GB_other": "gigabytes",
"unitLong-TB_one": "terabyte",
"unitLong-TB_other": "terabytes",
"unitLong-PB_one": "petabyte",
"unitLong-PB_other": "petabytes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"manager_error_page_title": "Hoppla!",
"manager_error_page_button_cancel": "Abbrechen",
"manager_error_page_detail_code": "Fehlercode: ",
"manager_error_page_action_reload_label": "Erneut versuchen",
"manager_error_page_action_home_label": "Zurück zur Startseite",
"manager_error_page_default": "Beim Laden der Seite ist ein Fehler aufgetreten."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"manager_error_page_title": "Oops!",
"manager_error_page_button_cancel": "Cancel",
"manager_error_page_detail_code": "Error code: ",
"manager_error_page_action_reload_label": "Try again",
"manager_error_page_action_home_label": "Back to homepage",
"manager_error_page_default": "An error has occurred loading the page."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"manager_error_page_title": "¡Vaya!",
"manager_error_page_button_cancel": "Cancelar",
"manager_error_page_detail_code": "Código de error: ",
"manager_error_page_action_reload_label": "Volver a intentarlo",
"manager_error_page_action_home_label": "Volver a la página de inicio",
"manager_error_page_default": "Se ha producido un error al cargar la página."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"manager_error_page_title": "Oops …!",
"manager_error_page_button_cancel": "Annuler",
"manager_error_page_detail_code": "Code d'erreur : ",
"manager_error_page_action_reload_label": "Réessayer",
"manager_error_page_action_home_label": "Retour à la page d'accueil",
"manager_error_page_default": "Une erreur est survenue lors du chargement de la page."
}
Loading

0 comments on commit e193b2b

Please sign in to comment.