File tree 21 files changed +132
-262
lines changed
packages/manager/core/generator/app
21 files changed +132
-262
lines changed Original file line number Diff line number Diff line change 3
3
"plugins" : [" stylelint-scss" ],
4
4
"rules" : {
5
5
"at-rule-no-unknown" : null ,
6
+ "scss/at-rule-no-unknown" : [
7
+ true ,
8
+ {
9
+ "ignoreAtRules" : [" tailwind" ]
10
+ }
11
+ ],
6
12
"function-calc-no-invalid" : null ,
7
13
"prettier/prettier" : true ,
8
- "scss/at-rule-no-unknown" : true ,
9
14
"selector-type-no-unknown" : [
10
15
true ,
11
16
{
Original file line number Diff line number Diff line change 1
1
import React , { lazy } from 'react' ;
2
2
import { MscBillingTile } from '@ovhcloud/msc-react-billing-tile' ;
3
- import { useParams , } from 'react-router-dom' ;
3
+ import { useParams } from 'react-router-dom' ;
4
4
import { useEnvironment } from '@ovh-ux/manager-react-core-application' ;
5
5
import { Locale } from '@ovhcloud/msc-utils' ;
6
6
@@ -10,8 +10,20 @@ function Tabs1() {
10
10
const { serviceName } = useParams ( ) ;
11
11
12
12
return (
13
- < div className = "dashboard-section pt-4" >
14
- < div >
13
+ < div className = "grid xs:grid-cols-1 sm:grid-cols-2 md:grid-cols-3 py-6" >
14
+ < div className = "p-3" >
15
+ < MscBillingTile
16
+ servicePath = { `{{this.apiPath}}/${ serviceName } ` }
17
+ locale = { locale }
18
+ />
19
+ </ div >
20
+ < div className = "p-3" >
21
+ < MscBillingTile
22
+ servicePath = { `{{this.apiPath}}/${ serviceName } ` }
23
+ locale = { locale }
24
+ />
25
+ </ div >
26
+ < div className = "p-3" >
15
27
< MscBillingTile
16
28
servicePath = { `{{this.apiPath}}/${ serviceName } ` }
17
29
locale = { locale }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { Locale } from '@ovhcloud/msc-utils';
10
10
import useGuideUtils from '@/components/GuideLink/guide-utils';
11
11
import { OnboardingLayout } from '@/components/layout-helpers/Onboarding';
12
12
import onboardingImgSrc from './onboarding-img.png';
13
- import './index.scss';
14
13
15
14
export default function Onboarding() {
16
15
const { t } = useTranslation('{{ appName }} /onboarding');
@@ -56,7 +55,7 @@ export default function Onboarding() {
56
55
moreInfoButtonLabel = {t(' moreInfoButtonLabel' )}
57
56
moreInfoHref = {t(' moreInfoButtonLink' )}
58
57
>
59
- <aside className =" tile- grid" >
58
+ <aside className =" grid grid-cols-1 sm: grid-cols-2 md:grid-cols-3 gap-8 pt-12 " >
60
59
{tileList.map((tile) => (
61
60
<MscTile
62
61
key = {tile.tileTitle}
Original file line number Diff line number Diff line change 31
31
"@ovhcloud/ods-common-theming": "^16.0.1",
32
32
"@ovhcloud/ods-theme-blue-jeans": "^16.0.1",
33
33
"@tanstack/react-query": "^4.29.3",
34
- "bootstrap": "^5.3.0",
35
34
"@tanstack/react-query-devtools": "^4.9.0",
36
35
"clsx": "^1.2.1",
37
36
"react": "^18.2.0",
38
37
"react-i18next": "^11.18.1",
39
38
"react-router-dom": "^6.3.0",
40
- "i18next": "^20.4.0"
39
+ "i18next": "^20.4.0",
40
+ "tailwindcss": "^3.3.3"
41
41
},
42
42
"devDependencies": {
43
43
"@ovh-ux/manager-vite-config": "*",
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ plugins : {
3
+ tailwindcss : { } ,
4
+ autoprefixer : { } ,
5
+ } ,
6
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
ODS_BUTTON_VARIANT ,
8
8
} from '@ovhcloud/ods-components/button' ;
9
9
import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming' ;
10
- import './ButtonTooltip.scss' ;
11
10
12
11
interface TooltipItem {
13
12
label : string ;
@@ -62,10 +61,12 @@ const ButtonTooltip: React.FC<ButtonTooltipProps> = (props) => {
62
61
/>
63
62
</ OsdsButton >
64
63
{ showTooltip && (
65
- < div ref = { tooltipRef } className = "tooltip " >
66
- < div className = "tooltip- text" >
64
+ < div ref = { tooltipRef } className = "relative inline-block left-[-80%] " >
65
+ < div className = "absolute bg-white rounded whitespace-nowrap mt-[-4px] right-[-100%] border-2 border-gray-300 text-left z-50 " >
67
66
{ tooltipContent . map ( ( item : TooltipItem ) => (
68
- < div key = { item . label } > { item . label } </ div >
67
+ < div key = { item . label } className = "px-10 py-20 cursor-pointer" >
68
+ { item . label }
69
+ </ div >
69
70
) ) }
70
71
</ div >
71
72
</ div >
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import { ODS_BUTTON_VARIANT } from '@ovhcloud/ods-components/button';
11
11
import { useShell } from '@ovh-ux/manager-react-core-application' ;
12
12
13
13
import OOPS from '../../assets/error-banner-oops.png' ;
14
- import './error.scss' ;
15
14
16
15
export const TRACKING_LABELS = {
17
16
SERVICE_NOT_FOUND : 'service_not_found' ,
@@ -62,8 +61,8 @@ const ErrorBanner: React.FC<ErrorObject> = ({ error }) => {
62
61
} , [ ] ) ;
63
62
64
63
return (
65
- < div className = "manager-error-page p-5" >
66
- < div className = "manager-error-page-image " >
64
+ < div className = "mx-auto w-full max-w-[600px] grid h-full overflow-hidden p-5" >
65
+ < div className = "w-full " >
67
66
< img src = { OOPS } alt = "OOPS" />
68
67
</ div >
69
68
@@ -91,7 +90,7 @@ const ErrorBanner: React.FC<ErrorObject> = ({ error }) => {
91
90
</ OsdsMessage >
92
91
</ div >
93
92
94
- < div className = "manager-error-page-footer py-2" >
93
+ < div className = "text-right overflow-hidden py-2" >
95
94
< OsdsButton
96
95
color = { ODS_THEME_COLOR_INTENT . primary }
97
96
variant = { ODS_BUTTON_VARIANT . ghost }
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
import { ODS_TEXT_LEVEL , ODS_TEXT_SIZE } from '@ovhcloud/ods-components/text' ;
10
10
import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming' ;
11
11
12
- import './Dashboard.scss' ;
13
-
14
12
export type DashboardTabItemProps = {
15
13
name : string ;
16
14
title : string ;
@@ -37,8 +35,8 @@ const Dashboard: React.FC<DashboardLayoutProps> = ({ tabs }) => {
37
35
} , [ location . pathname ] ) ;
38
36
39
37
return (
40
- < div className = "dashboard-layout-helpers" >
41
- < div className = "dashboard-layout-subtitle py-4" >
38
+ < >
39
+ < div className = "py-4" >
42
40
< OsdsText
43
41
level = { ODS_TEXT_LEVEL . heading }
44
42
color = { ODS_THEME_COLOR_INTENT . text }
@@ -51,13 +49,15 @@ const Dashboard: React.FC<DashboardLayoutProps> = ({ tabs }) => {
51
49
< OsdsTabBar slot = "top" >
52
50
{ tabs . map ( ( tab : DashboardTabItemProps , key : number ) => (
53
51
< OsdsTabBarItem key = { `osds-tab-bar-item-${ key } ` } panel = { tab . name } >
54
- < NavLink to = { tab . to } > { tab . title } </ NavLink >
52
+ < NavLink to = { tab . to } className = "no-underline" >
53
+ { tab . title }
54
+ </ NavLink >
55
55
</ OsdsTabBarItem >
56
56
) ) }
57
57
</ OsdsTabBar >
58
58
</ OsdsTabs >
59
59
< Outlet />
60
- </ div >
60
+ </ >
61
61
) ;
62
62
} ;
63
63
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments