diff --git a/cockpit/webpack.config.ts b/cockpit/webpack.config.ts index 00a170fdb..3603d604a 100644 --- a/cockpit/webpack.config.ts +++ b/cockpit/webpack.config.ts @@ -77,6 +77,10 @@ module.exports = { test: /\.scss$/, use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'], }, + { + test: /\.(png|jpe?g|gif|svg)$/i, + type: 'asset/resource', // Handles image files + }, ], }, }; diff --git a/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx b/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx index 481159637..577e815b4 100644 --- a/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx +++ b/src/Components/CreateImageWizard/steps/ImageOutput/TargetEnvironment.tsx @@ -13,6 +13,10 @@ import { } from '@patternfly/react-core'; import { HelpIcon } from '@patternfly/react-icons'; +import awsIcon from '../../../../assets/aws.svg'; +import gcpIcon from '../../../../assets/google-cloud-short.svg'; +import azureIcon from '../../../../assets/microsoft-azure-short.svg'; +import oracleIcon from '../../../../assets/oracle-short.svg'; import { useGetArchitecturesQuery } from '../../../../store/backendApi'; import { useAppSelector, useAppDispatch } from '../../../../store/hooks'; import { ImageTypes } from '../../../../store/imageBuilderApi'; @@ -102,7 +106,11 @@ const TargetEnvironment = () => { icon={ Amazon Web Services logo } @@ -125,7 +133,9 @@ const TargetEnvironment = () => { Google Cloud Platform logo @@ -149,7 +159,9 @@ const TargetEnvironment = () => { Microsoft Azure logo @@ -172,7 +184,11 @@ const TargetEnvironment = () => { icon={ Oracle Cloud Infrastructure logo } diff --git a/src/assets/aws.svg b/src/assets/aws.svg new file mode 100644 index 000000000..4715937ff --- /dev/null +++ b/src/assets/aws.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + diff --git a/src/assets/google-cloud-short.svg b/src/assets/google-cloud-short.svg new file mode 100644 index 000000000..76af270e6 --- /dev/null +++ b/src/assets/google-cloud-short.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + diff --git a/src/assets/index.d.ts b/src/assets/index.d.ts new file mode 100644 index 000000000..8f376029b --- /dev/null +++ b/src/assets/index.d.ts @@ -0,0 +1,6 @@ +// this is a bit hacky, but we need it +// to be able to import the images +declare module '*.svg' { + const value: string; + export default value; +} diff --git a/src/assets/microsoft-azure-short.svg b/src/assets/microsoft-azure-short.svg new file mode 100644 index 000000000..ff5dfa5c1 --- /dev/null +++ b/src/assets/microsoft-azure-short.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/oracle-short.svg b/src/assets/oracle-short.svg new file mode 100644 index 000000000..b13eab270 --- /dev/null +++ b/src/assets/oracle-short.svg @@ -0,0 +1,13 @@ + + + + + + + +