diff --git a/deepfence_frontend/README.md b/deepfence_frontend/README.md index 7897d6dcae..17a906f949 100644 --- a/deepfence_frontend/README.md +++ b/deepfence_frontend/README.md @@ -28,7 +28,7 @@ This turborepo has some additional tools already setup for you: To build all apps and packages, run the following command: ``` -npm run build +pnpm run build ``` ### Develop @@ -36,7 +36,7 @@ npm run build To develop all apps and packages, run the following command: ``` -npm run dev +pnpm run dev ``` ### Check for code formatting issues @@ -44,7 +44,7 @@ npm run dev To check for code formatting issues, run the following command: ``` -npm run format +pnpm run format ``` ### Fix code formatting issues @@ -52,7 +52,7 @@ npm run format To fix code formatting issues automatically, run the following command: ``` -npm run format:fix +pnpm run format:fix ``` ### Check for linting issues @@ -60,7 +60,7 @@ npm run format:fix To check for lint errors, run the following command: ``` -npm run lint +pnpm run lint ``` ### Fix linting issues @@ -68,5 +68,5 @@ npm run lint To fix linting issues automatically, run the following command: ``` -npm run lint:fix +pnpm run lint:fix ``` diff --git a/deepfence_frontend/apps/dashboard/src/components/SideNavigation.tsx b/deepfence_frontend/apps/dashboard/src/components/SideNavigation.tsx index 048dacdeda..5cc511079c 100644 --- a/deepfence_frontend/apps/dashboard/src/components/SideNavigation.tsx +++ b/deepfence_frontend/apps/dashboard/src/components/SideNavigation.tsx @@ -88,7 +88,7 @@ export function SideNavigation({ expanded }: SideNavigationRootProps) { { />
-
+
diff --git a/deepfence_frontend/apps/dashboard/src/features/registries/pages/Registries.tsx b/deepfence_frontend/apps/dashboard/src/features/registries/pages/Registries.tsx new file mode 100644 index 0000000000..33c2c2353a --- /dev/null +++ b/deepfence_frontend/apps/dashboard/src/features/registries/pages/Registries.tsx @@ -0,0 +1,98 @@ +import { IconContext } from 'react-icons'; +import { FaCloud, FaImages, FaTags } from 'react-icons/fa'; +import { HiArrowSmRight } from 'react-icons/hi'; +import { Button, Card } from 'ui-components'; + +import LogoAzure from '@/assets/logo-azure.svg'; + +export const Registries = () => { + return ( +
+ {Array.from(Array(10).keys()).map((i) => { + return ( + +
+

+ Azure Container Registry +

+
+ +
+
+
+
+ logo +
+
+
+
+ + + + + 23 + +
+ + Total Accounts + +
+
+
+ + + + + 23 + +
+ + Total Images + +
+
+
+ + + + + 23 + +
+ + Total Tags + +
+
+
+
+ ); + })} +
+ ); +}; diff --git a/deepfence_frontend/apps/dashboard/src/routes/private.tsx b/deepfence_frontend/apps/dashboard/src/routes/private.tsx index 4191d5ecbe..a09a6ba292 100644 --- a/deepfence_frontend/apps/dashboard/src/routes/private.tsx +++ b/deepfence_frontend/apps/dashboard/src/routes/private.tsx @@ -33,6 +33,7 @@ import { startVulnerabilityScanAction, VulnerabilityScanConfigure, } from '@/features/onboard/pages/VulnerabilityScanConfigure'; +import { Registries } from '@/features/registries/pages/Registries'; import { CustomRouteObject } from '@/utils/router'; export const privateRoutes: CustomRouteObject[] = [ @@ -149,6 +150,11 @@ export const privateRoutes: CustomRouteObject[] = [ element: , meta: { title: 'Dashboard' }, }, + { + path: 'registries', + element: , + meta: { title: 'Registries' }, + }, ], }, ];