Skip to content

Commit

Permalink
Add: logo for VM
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Sep 30, 2024
1 parent 830cc44 commit 1f78c72
Show file tree
Hide file tree
Showing 8 changed files with 190 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/web/components/icon/GreenboneApplianceLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import Enterprise600Svg from 'web/components/icon/svg/Enterprise_600.svg';
import Enterprise650Svg from 'web/components/icon/svg/Enterprise_650.svg';
import Enterprise5400Svg from 'web/components/icon/svg/Enterprise_5400.svg';
import Enterprise6500Svg from 'web/components/icon/svg/Enterprise_6500.svg';
import EnterpriseCenoSvg from 'web/components/icon/svg/Enterprise_CENO.svg';
import EnterpriseDecaSvg from 'web/components/icon/svg/Enterprise_DECA.svg';
import EnterpriseExaSvg from 'web/components/icon/svg/Enterprise_EXA.svg';
import EnterprisePetaSvg from 'web/components/icon/svg/Enterprise_PETA.svg';
import EnterpriseTeraSvg from 'web/components/icon/svg/Enterprise_TERA.svg';

const createEnterpriseComponent = Component => () => (
<SvgIconWrapper size={['150px', '150px']} component={Component} />
Expand All @@ -23,3 +28,8 @@ export const Enterprise600 = createEnterpriseComponent(Enterprise600Svg);
export const Enterprise650 = createEnterpriseComponent(Enterprise650Svg);
export const Enterprise5400 = createEnterpriseComponent(Enterprise5400Svg);
export const Enterprise6500 = createEnterpriseComponent(Enterprise6500Svg);
export const EnterpriseCeno = createEnterpriseComponent(EnterpriseCenoSvg);
export const EnterpriseDeca = createEnterpriseComponent(EnterpriseDecaSvg);
export const EnterpriseExa = createEnterpriseComponent(EnterpriseExaSvg);
export const EnterprisePeta = createEnterpriseComponent(EnterprisePetaSvg);
export const EnterpriseTera = createEnterpriseComponent(EnterpriseTeraSvg);
32 changes: 32 additions & 0 deletions src/web/components/icon/svg/Enterprise_CENO.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/web/components/icon/svg/Enterprise_DECA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/web/components/icon/svg/Enterprise_EXA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/web/components/icon/svg/Enterprise_PETA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/web/components/icon/svg/Enterprise_TERA.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/web/components/structure/__tests__/getLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ describe('getLogo', () => {
['gsm-650r2_label.svg', 'Enterprise650'],
['gsm-5400_label.svg', 'Enterprise5400'],
['gsm-6500_label.svg', 'Enterprise6500'],
['gsm-ceno_label.svg', 'EnterpriseCeno'],
['gsm-deca_label.svg', 'EnterpriseDeca'],
['gsm-exa_label.svg', 'EnterpriseExa'],
['gsm-peta_label.svg', 'EnterprisePeta'],
['gsm-tera_label.svg', 'EnterpriseTera'],
];

test.each(testCases)('returns %s for %s', (model, expectedTestId) => {
Expand Down
15 changes: 15 additions & 0 deletions src/web/components/structure/getLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ import {
Enterprise650,
Enterprise5400,
Enterprise6500,
EnterpriseCeno,
EnterpriseDeca,
EnterpriseExa,
EnterprisePeta,
EnterpriseTera,
} from 'web/components/icon/GreenboneApplianceLogo';

const APPLIANCE_MODELS = {
Expand All @@ -26,6 +31,11 @@ const APPLIANCE_MODELS = {
'gsm-650r2_label.svg': Enterprise650,
'gsm-5400_label.svg': Enterprise5400,
'gsm-6500_label.svg': Enterprise6500,
'gsm-ceno_label.svg': EnterpriseCeno,
'gsm-deca_label.svg': EnterpriseDeca,
'gsm-exa_label.svg': EnterpriseExa,
'gsm-peta_label.svg': EnterprisePeta,
'gsm-tera_label.svg': EnterpriseTera,
};

const getLogo = model => {
Expand All @@ -46,6 +56,11 @@ getLogo.propTypes = {
'gsm-650r2_label.svg',
'gsm-5400_label.svg',
'gsm-6500_label.svg',
'gsm-ceno_label.svg',
'gsm-deca_label.svg',
'gsm-exa_label.svg',
'gsm-peta_label.svg',
'gsm-tera_label.svg',
]),
};

Expand Down

0 comments on commit 1f78c72

Please sign in to comment.