-
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.
Merge pull request #12244 from ovh/release/components-w28
* fix(i18n): add missing translations [CDS 3119] Signed-off-by: CDS Translator Agent <[email protected]> * fix(i18n): add missing translations [CDS 3120] Signed-off-by: CDS Translator Agent <[email protected]> * fix(i18n): add missing translations [CDS 3122] Signed-off-by: CDS Translator Agent <[email protected]> * fix: remove unused translations [CDS] Signed-off-by: CDS <[email protected]> * fix(i18n): add missing translations [CDS 3123] Signed-off-by: CDS Translator Agent <[email protected]> * refactor(key-management-service): apply new folder structure (#12117) ref: MANAGER-14283 Signed-off-by: Vincent BONMARCHAND <[email protected]> * fix(pci-rancher): create rancher api standardisation (#12194) Move data to targetSpec and remove ipRestrictions ref: TAPC-1053 Signed-off-by: Lionel Bueno <[email protected]> * fix(i18n): add missing translations [CDS 3125] Signed-off-by: CDS Translator Agent <[email protected]> * feat(pci.project): edit project delete messages (#11739) ref: TAPC-520 Signed-off-by: Rafik Adiche <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]> * refactor(pci-rancher): format edit modal template (#12171) Signed-off-by: Lionel Bueno <[email protected]> * build(deps): same ODS version on all apps (#12119) ref: MANAGER-14262 Signed-off-by: Nicolas Pierre-charles <[email protected]> * fix(i18n): add missing translations [CDS 3133] Signed-off-by: CDS Translator Agent <[email protected]> * feat(manager-components): dashboard template update (#12090) ref: MANAGER-14379 Signed-off-by: Nicolas Pierre-charles <[email protected]> * fix(dedicated): consider ipblock while fetching info (#12203) ref: INC0052140 Signed-off-by: Sachin Ramesh <[email protected]> * feat(dedicated.order): update cloud project link in server sidebar (#11818) ref: TAPC-645 Signed-off-by: Rafik Adiche <[email protected]> * fix(i18n): add missing translations [CDS 3127] (#12224) ref: TAPC-1135 Signed-off-by: CDS Translator Agent <[email protected]> * fix(access.statistics): initialize graph data before adding new (#12128) fix: UXCT-603 Signed-off-by: Stephanie Moallic <[email protected]> * fix(i18n): add missing translations [CDS 3088] (#12052) ref: MANAGER-14503 Signed-off-by: CDS Translator Agent <[email protected]> * feat(manager-components.notifications): add text style for notification (#11738) ref: PRB0041095 Signed-off-by: Quentin Pavy <[email protected]> --------- Signed-off-by: CDS Translator Agent <[email protected]> Signed-off-by: CDS <[email protected]> Signed-off-by: Vincent BONMARCHAND <[email protected]> Signed-off-by: Lionel Bueno <[email protected]> Signed-off-by: Rafik Adiche <[email protected]> Signed-off-by: Nicolas Pierre-charles <[email protected]> Signed-off-by: David Arsène <[email protected]> Signed-off-by: Sachin Ramesh <[email protected]> Signed-off-by: Stephanie Moallic <[email protected]> Signed-off-by: Quentin Pavy <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]> Co-authored-by: ovh ux cds <[email protected]> Co-authored-by: vovh <[email protected]> Co-authored-by: Lio B <[email protected]> Co-authored-by: brofik <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]> Co-authored-by: Nicode <[email protected]> Co-authored-by: David Arsène <[email protected]> Co-authored-by: JacquesLarique <[email protected]> Co-authored-by: Sachin Ramesh <[email protected]> Co-authored-by: selm3n <[email protected]> Co-authored-by: Stéphanie MOALLIC <[email protected]> Co-authored-by: qpavy <[email protected]>
- Loading branch information
Showing
211 changed files
with
1,606 additions
and
1,612 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
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
66 changes: 35 additions & 31 deletions
66
packages/manager-components/src/components/templates/dashboard/dashboard.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,51 @@ | ||
import React from 'react'; | ||
|
||
import { Headers, HeadersProps } from '../../content'; | ||
|
||
import { Links, LinksProps } from '../../typography'; | ||
import { Description, LinkType, Links, Subtitle } from '../../typography'; | ||
import { PageLayout } from '../layout/layout.component'; | ||
|
||
export interface DashboardLayoutProps { | ||
breadcrumb?: React.ReactElement; | ||
content?: React.ReactElement; | ||
header?: HeadersProps; | ||
linkProps?: LinksProps; | ||
message?: React.ReactElement; | ||
description?: string; | ||
subtitle?: string; | ||
subdescription?: string; | ||
backLinkLabel?: string; | ||
tabs?: React.ReactElement; | ||
onClickReturn?: () => void; | ||
} | ||
|
||
export const DashboardLayout = ({ | ||
linkProps, | ||
backLinkLabel, | ||
onClickReturn, | ||
breadcrumb, | ||
description, | ||
subtitle, | ||
subdescription, | ||
message, | ||
content, | ||
onClickReturn, | ||
header, | ||
tabs, | ||
}: DashboardLayoutProps) => { | ||
return ( | ||
<PageLayout> | ||
<div className="mb-3">{breadcrumb}</div> | ||
{header && ( | ||
<Headers | ||
title={header.title} | ||
description={header.description} | ||
headerButton={header.headerButton} | ||
/> | ||
)} | ||
{linkProps && ( | ||
<Links | ||
onClickReturn={onClickReturn} | ||
href={linkProps.href} | ||
label={linkProps.label} | ||
target={linkProps.target} | ||
type={linkProps.type} | ||
/> | ||
)} | ||
<div>{tabs}</div> | ||
<div className="mt-8">{content}</div> | ||
</PageLayout> | ||
); | ||
}; | ||
}: DashboardLayoutProps) => ( | ||
<PageLayout> | ||
<div className="mb-6">{breadcrumb}</div> | ||
{header && <Headers {...header} />} | ||
{backLinkLabel && onClickReturn && ( | ||
<Links | ||
className="mb-8" | ||
onClickReturn={onClickReturn} | ||
label={backLinkLabel} | ||
type={LinkType.back} | ||
/> | ||
)} | ||
{description && <Description className="mb-8">{description}</Description>} | ||
{message && <div className="mb-8">{message}</div>} | ||
{subtitle && <Subtitle className="block mb-6">{subtitle}</Subtitle>} | ||
{subdescription && ( | ||
<Description className="mb-8">{subdescription}</Description> | ||
)} | ||
<div className="mb-6">{tabs}</div> | ||
<div>{content}</div> | ||
</PageLayout> | ||
); |
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
3 changes: 3 additions & 0 deletions
3
packages/manager-components/src/components/templates/dashboard/dashboard.stories.css
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 @@ | ||
body { | ||
padding: 0 !important; | ||
} |
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
16 changes: 13 additions & 3 deletions
16
packages/manager-components/src/components/templates/layout/layout.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
import React from 'react'; | ||
|
||
export const PageLayout: React.FC<React.PropsWithChildren> = ({ children }) => { | ||
return <div className="m-10">{children}</div>; | ||
}; | ||
export const PageLayout: React.FC<React.PropsWithChildren> = ({ children }) => ( | ||
<div className="py-8 px-4 md:py-9 md:px-10 md:mt-2">{children}</div> | ||
); | ||
|
||
export const DashboardGridLayout: React.FC<React.PropsWithChildren> = ({ | ||
children, | ||
}) => ( | ||
<div className="w-full block"> | ||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6"> | ||
{children} | ||
</div> | ||
</div> | ||
); |
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
Oops, something went wrong.