Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish 4 new icons and 2 updated icons #3265

Merged
merged 9 commits into from Jun 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 18 additions & 9 deletions .github/ISSUE_TEMPLATE/icon_request.md
Expand Up @@ -4,17 +4,26 @@ about: Request a new icon for SimpleIcons
labels: new icon
---

<!-- Before opening a new issue search for duplicate or closed issues -->
<!--
We won't add non-brand icons or anything related to illegal services.
If in doubt, open an issue and we'll have a look.

Before opening a new issue please search for duplicate or closed
issues or PRs. If you find one for the brand your requesting then
leave a comment on it or add a reaction to the original post.

<!-- When requesting a new icon we need information such as: -->
When requesting a new icon please provide the following information:
-->
**Name:**
**Website:**
**Official resources for icon and color:**
<!-- for example media kits, brand guidelines, SVG files, ...) -->

**Alexa rank:**
<!-- The Alexa rank can be retrieved at https://www.alexa.com/siteinfo/
Please see our contributing guidelines for more details on how we
assess a brand's popularity. -->

<!--
We won't add non-brand icons or anything related to illegal services.
If in doubt open an issue and we'll have a look.
-->
**Official resources for icon and color:**
<!-- for example media kits, brand guidelines, SVG files, etc. -->

<!-- For more details on our processes please see our contributing
guidelines, which can be found at
https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md -->
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -7,6 +7,10 @@ https://petershaggynoble.github.io/MDI-Sandbox/simpleicons/preview/
-->

**Issue:**
**Alexa rank:**
<!-- The Alexa rank can be retrieved at https://www.alexa.com/siteinfo/
Please see our contributing guidelines for more details on how we
assess a brand's popularity. -->

### Checklist
- [ ] I updated the JSON data in `_data/simple-icons.json`
Expand Down
10 changes: 10 additions & 0 deletions .svglintrc.js
Expand Up @@ -3,6 +3,8 @@ const { htmlFriendlyToTitle } = require("./scripts/utils.js");
const getBounds = require("svg-path-bounding-box");

const titleRegexp = /(.+) icon$/;
const svgRegexp = /^<svg.*<\/svg>\r?\n?$/;

const iconSize = 24;
const iconFloatPrecision = 3;
const iconIgnored = require("./.svglint-ignored.json");
Expand Down Expand Up @@ -70,6 +72,14 @@ module.exports = {
reporter.error(`Size of <path> must be exactly ${iconSize} in one dimension; the size is currently ${width} x ${height}`);
}
},
function(reporter, $, ast) {
reporter.name = "extraneous";

const rawSVG = $.html();
if (!svgRegexp.test(rawSVG)) {
reporter.error("Unexpected character(s) detected outside the opening and/or closing <svg> tags");
}
},
]
}
};
24 changes: 22 additions & 2 deletions _data/simple-icons.json
Expand Up @@ -1425,6 +1425,11 @@
"hex": "073551",
"source": "https://curl.haxx.se/logo/"
},
{
"title": "Cypress",
"hex": "17202C",
"source": "https://cypress.io"
},
{
"title": "D3.js",
"hex": "F9A03C",
Expand Down Expand Up @@ -2967,8 +2972,8 @@
},
{
"title": "Intercom",
"hex": "1F8DED",
"source": "https://www.intercom.io"
"hex": "6AFDEF",
"source": "https://www.intercom.com/press"
},
{
"title": "Internet Archive",
Expand Down Expand Up @@ -4030,6 +4035,11 @@
"hex": "57A143",
"source": "https://github.com/neovim/neovim.github.io/tree/master/logos"
},
{
"title": "NestJS",
"hex": "E0234E",
"source": "https://nestjs.com/"
},
{
"title": "NetApp",
"hex": "0067C5",
Expand Down Expand Up @@ -4820,6 +4830,11 @@
"hex": "FF8C00",
"source": "https://qiwi.com/"
},
{
"title": "Qt",
"hex": "41CD52",
"source": "https://qt-brandbook.webflow.io/design"
},
{
"title": "Qualcomm",
"hex": "3253DC",
Expand Down Expand Up @@ -5225,6 +5240,11 @@
"hex": "86BC40",
"source": "http://design.sencha.com/"
},
{
"title": "Sennheiser",
"hex": "000000",
"source": "https://sennheiser.com"
},
{
"title": "Sensu",
"hex": "89C967",
Expand Down
2 changes: 1 addition & 1 deletion icons/bmcsoftware.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/cypress.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/nestjs.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/qt.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/sennheiser.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 12 additions & 14 deletions index.html
Expand Up @@ -29,10 +29,6 @@
{% endif %}

{% assign filename = filename | downcase %}
{% assign filename = filename | replace: "+", "plus" %}
{% assign filename = filename | replace: ".", "-dot-" %}
{% assign filename = filename | replace: "&", "-and-" %}
{% assign filename = filename | replace: " ", "" | replace: "!", "" | replace: ":", "" | replace: "’", "" | replace: "'", "" %}
{% assign filename = filename | replace: "à", "a" | replace: "á", "a" | replace: "â", "a" | replace: "ã", "a" | replace: "ä", "a" %}
{% assign filename = filename | replace: "ç", "c" | replace: "č", "c" | replace: "ć", "c" %}
{% assign filename = filename | replace: "è", "e" | replace: "é", "e" | replace: "ê", "e" | replace: "ë", "e" %}
Expand All @@ -44,6 +40,12 @@
{% assign filename = filename | replace: "ý", "y" | replace: "ÿ", "y" %}
{% assign filename = filename | replace: "ž", "z" | replace: "ź", "z" %}

{% assign searchTerm = filename %}
{% assign filename = filename | replace: "+", "plus" %}
{% assign filename = filename | replace: ".", "-dot-" %}
{% assign filename = filename | replace: "&", "-and-" %}
{% assign filename = filename | replace: " ", "" | replace: "!", "" | replace: ":", "" | replace: "’", "" | replace: "'", "" %}

{% assign hex = icon.hex %}
{% assign hex = icon.hex %}
{% assign hexCharacter1 = hex | slice: 0, 1 %}
Expand Down Expand Up @@ -136,10 +138,10 @@

{% if hslSaturation < 10 %}
{% assign hslLuminance = hslLuminance | round: 0 | prepend: "000" | slice: -3, 3 %}
{% capture greyscaleIconsUnsortedString %}{{ greyscaleIconsUnsortedString }}{{ hslLuminance }},{{ filename }},{{ hslHue }},{{ hslSaturation }},{{ hex }},{{ title }},{{ class }},{{ forloop.index }}{% unless forloop.last %};{% endunless %}{% endcapture %}
{% capture greyscaleIconsUnsortedString %}{{ greyscaleIconsUnsortedString }}{{ hslLuminance }},{{ filename }},{{ hslHue }},{{ hslSaturation }},{{ hex }},{{ title }},{{ class }},{{ searchTerm }},{{ forloop.index }}{% unless forloop.last %};{% endunless %}{% endcapture %}
{% else %}
{% assign hslHue = hslHue | round: 0 | prepend: "000" | slice: -3, 3 %}
{% capture iconsUnsortedString %}{{ iconsUnsortedString }}{{ hslHue }},{{ hslSaturation }},{{ hslLuminance }},{{ filename }},{{ hex }},{{ title }},{{ class }},{{ forloop.index }}{% unless forloop.last %};{% endunless %}{% endcapture %}
{% capture iconsUnsortedString %}{{ iconsUnsortedString }}{{ hslHue }},{{ hslSaturation }},{{ hslLuminance }},{{ filename }},{{ hex }},{{ title }},{{ class }},{{ searchTerm }},{{ forloop.index }}{% unless forloop.last %};{% endunless %}{% endcapture %}
{% endif %}
{% endfor %}

Expand All @@ -149,11 +151,11 @@
{% assign allIconNames = "" %}
{% for icon in iconsArray %}
{% assign iconArray = icon | split: "," %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[5] }}",{% endcapture %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[7] }}",{% endcapture %}
{% endfor %}
{% for icon in greyscaleIconsArray %}
{% assign iconArray = icon | split: "," %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[5] }}"{% unless forloop.last %},{% endunless %}{% endcapture %}
{% capture allIconNames %}{{ allIconNames }}"{{ iconArray[7] }}"{% unless forloop.last %},{% endunless %}{% endcapture %}
{% endfor %}

<!doctype html>
Expand Down Expand Up @@ -191,12 +193,8 @@

ga('create', 'UA-100751516-2', 'auto');
ga('send', 'pageview');
</script>
<script>
function normalizeSearchTerm(value) {
return value.toLowerCase();
}
var icons = [{{ allIconNames }}].map(normalizeSearchTerm);

var icons = [{{ allIconNames }}];
</script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "simple-icons",
"version": "2.17.1",
"version": "2.18.0",
"description": "SVG icons for popular brands https://simpleicons.org",
"homepage": "https://www.simpleicons.org",
"keywords": [
Expand Down
14 changes: 14 additions & 0 deletions site_script.js
Expand Up @@ -65,6 +65,20 @@
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
}

function normalizeSearchTerm(value) {
return value.toLowerCase().toLowerCase()
.replace(/à|á|â|ã|ä/g, "a")
.replace(/ç|č|ć/g, "c")
.replace(/è|é|ê|ë/g, "e")
.replace(/ì|í|î|ï/g, "i")
.replace(/ñ|ň|ń/g, "n")
.replace(/ò|ó|ô|õ|ö/g, "o")
.replace(/š|ś/g, "s")
.replace(/ù|ú|û|ü/g, "u")
.replace(/ý|ÿ/g, "y")
.replace(/ž|ź/g, "z");
}

function search(value) {
var query = normalizeSearchTerm(value)
queryLetters = query.split('');
Expand Down