File tree Expand file tree Collapse file tree 3 files changed +64
-5
lines changed
Expand file tree Collapse file tree 3 files changed +64
-5
lines changed Original file line number Diff line number Diff line change 336336 }
337337
338338 if (isDark .value && envStore .getEnvLogoDarkPath .trim ().length > 0 ) {
339- return logoFolder + envStore .getEnvLogoDarkPath ;
339+ return validURL (envStore .getEnvLogoDarkPath )
340+ ? envStore .getEnvLogoDarkPath
341+ : logoFolder + envStore .getEnvLogoDarkPath ;
340342 } else {
341- return logoFolder + envStore .getEnvLogoLightPath ;
343+ return validURL (envStore .getEnvLogoLightPath )
344+ ? envStore .getEnvLogoLightPath
345+ : logoFolder + envStore .getEnvLogoLightPath ;
342346 }
343347 });
344348 const showMobileMenu = computed (() => isMobile .value && ! mainMenu .value );
416420 infrastructureMenu .value = false ;
417421 infrastructureManagementDialog .value = true ;
418422 }
423+
424+ function validURL(str : string ) {
425+ var pattern = new RegExp (
426+ ' ^(https?:\\ /\\ /)?' + // protocol
427+ ' ((([a-z\\ d]([a-z\\ d-]*[a-z\\ d])*)\\ .)+[a-z]{2,}|' + // domain name
428+ ' ((\\ d{1,3}\\ .){3}\\ d{1,3}))' + // OR ip (v4) address
429+ ' (\\ :\\ d+)?(\\ /[-a-z\\ d%_.~+]*)*' + // port and path
430+ ' (\\ ?[;&a-z\\ d%_.~+=-]*)?' + // query string
431+ ' (\\ #[-a-z\\ d_]*)?$' ,
432+ ' i'
433+ ); // fragment locator
434+ return !! pattern .test (str );
435+ }
419436 </script >
Original file line number Diff line number Diff line change 164164 import IDTALogo from ' @/assets/Companies/IDTA_Logo.png' ;
165165 import IESELogoDark from ' @/assets/Companies/IESE_Logo_dark.svg' ;
166166 import IESELogoLight from ' @/assets/Companies/IESE_Logo_light.svg' ;
167+ import RocheLogo from ' @/assets/Companies/Roche_Logo.svg' ; // Logo only for AAS UI permitted
167168 // Import contributor images
168169 import Buettner from ' @/assets/Contributors/Buettner.jpg' ;
169170 import Eicke from ' @/assets/Contributors/Eicke.jpg' ;
236237 srcLight: ARENA2036LogoLight ,
237238 altText: ' ARENA2036 Logo' ,
238239 },
240+ {
241+ href: ' https://www.roche.com/' ,
242+ isDynamic: false ,
243+ srcStatic: RocheLogo ,
244+ altText: ' Roche Logo' ,
245+ },
239246 ]);
240247
241248 // Array of contributor objects with imported images
265272 linkedin_link: ' https://www.linkedin.com/in/fiona-helena-buettner' ,
266273 },
267274 {
268- name: ' Rene Pascal Fischer' ,
269- company: ' Fraunhofer IESE ' ,
270- email: ' Rene-Pascal.Fischer@iese.fraunhofer.de ' ,
275+ name: ' Rene- Pascal Fischer' ,
276+ company: ' F. Hoffmann-La Roche AG ' ,
277+ email: ' Rene-Pascal.Fischer@roche.com ' ,
271278 image: Fischer ,
272279 github_link: ' https://github.com/FischerRene' ,
273280 linkedin_link: ' https://www.linkedin.com/in/fischer-rene' ,
You can’t perform that action at this time.
0 commit comments