community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1839319 - in /comdev/project-logos/site: images/ai.png images/svg.png js/logofinder.js
Date Mon, 27 Aug 2018 13:26:50 GMT
Author: humbedooh
Date: Mon Aug 27 13:26:50 2018
New Revision: 1839319

URL: http://svn.apache.org/viewvc?rev=1839319&view=rev
Log:
tweak SVG icon, add AI, ease detection of type

Added:
    comdev/project-logos/site/images/ai.png   (with props)
Modified:
    comdev/project-logos/site/images/svg.png
    comdev/project-logos/site/js/logofinder.js

Added: comdev/project-logos/site/images/ai.png
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/images/ai.png?rev=1839319&view=auto
==============================================================================
Binary file - no diff available.

Propchange: comdev/project-logos/site/images/ai.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: comdev/project-logos/site/images/svg.png
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/images/svg.png?rev=1839319&r1=1839318&r2=1839319&view=diff
==============================================================================
Binary files - no diff available.

Modified: comdev/project-logos/site/js/logofinder.js
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/js/logofinder.js?rev=1839319&r1=1839318&r2=1839319&view=diff
==============================================================================
--- comdev/project-logos/site/js/logofinder.js (original)
+++ comdev/project-logos/site/js/logofinder.js Mon Aug 27 13:26:50 2018
@@ -111,8 +111,10 @@ function make_div(key, project) {
         // original:
         let img =imgs[0];
         img.opath = img.opath || 'undef.svg';
+        let ma = img.opath.match(/(eps|svg|ai)/);
+        let oext = ma ? ma[1] : 'svg';
         let arr = [
-                new HTML('img', {src:'images/%s.png'.format(img.opath.match(/eps/) ? 'eps'
: 'svg'), style: {maxWidth: '24px', maxHeight: '24px'}}),
+                new HTML('img', {src:'images/%s.png'.format(oext), style: {maxWidth: '24px',
maxHeight: '24px'}}),
                 new HTML('br'),
                 "Source"
                 ];



Mime
View raw message