Skip to content

Commit

Permalink
Merge branch 'master' into 10731-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Dec 31, 2024
2 parents bd83ea3 + 7108e08 commit d0e314b
Show file tree
Hide file tree
Showing 15 changed files with 1,547 additions and 536 deletions.
81 changes: 81 additions & 0 deletions frontend/blog/2024-12-27-simpleicons14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
slug: simple-icons-14
title: Simple Icons 14
authors:
name: jNullj
title: Shields.io Core Team
url: https://github.com/jNullj
image_url: https://avatars.githubusercontent.com/u/15849761
tags: []
---

Logos on Shields.io are provided by SimpleIcons. We've recently upgraded to SimpleIcons 14. This release removes 53 icons and renames 6:

Renames:

- D3.js to D3
- Tencent QQ to QQ
- T-Mobile to Deutsche Telekom
- Nuxt.js to Nuxt
- smash.gg start.gg
- Tutanota to Tuta

Removals:

- Adobe
- Adobe Acrobat Reader
- Adobe After Effects
- Adobe Audition
- Adobe Creative Cloud
- Adobe Dreamweaver
- Adobe Fonts
- Adobe Illustrator
- Adobe InDesign
- Adobe Lightroom
- Adobe Lightroom Classic
- Adobe Photoshop
- Adobe Premiere Pro
- Adobe XD
- ASKfm
- Caffeine
- CKEditor 4
- Cliqz
- Coil
- del.icio.us
- El Jueves
- Ello
- FeatHub
- Fluxus
- Foursquare City Guide
- Funimation
- Game & Watch
- Géant
- Katacoda
- LinkedIn
- Magento
- Marketo
- Microgenetics
- Nintendo
- Nintendo 3DS
- Nintendo DS
- Nintendo GameCube
- Nintendo Switch
- Oracle
- Pokémon
- RadioPublic
- Realm
- Revue
- Skyrock
- Spinrilla
- StackPath
- Stitcher
- Studyverse
- Tableau
- Uptobox
- Wii
- Wii U
- Zerply

More detail can be found in the [release notes](https://github.com/simple-icons/simple-icons/releases/tag/14.0.0)

Please remember that we are just consumers of SimpleIcons. Decisions about changes and removals are made by the [SimpleIcons](https://github.com/simple-icons/simple-icons) project.
7 changes: 5 additions & 2 deletions lib/logos.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ function getSimpleIcon({ name, color, style, size }) {
if (size === 'auto') {
const { width: iconWidth, height: iconHeight } = getIconSize(key)

if (iconWidth > iconHeight) {
if (iconWidth !== iconHeight) {
const path = resetIconPosition(simpleIcons[key].path)
iconSvg = iconSvg
.replace('viewBox="0 0 24 24"', `viewBox="0 0 24 ${iconHeight}"`)
.replace(
'viewBox="0 0 24 24"',
`viewBox="0 0 ${iconWidth} ${iconHeight}"`,
)
.replace(/<path d=".*"\/>/, `<path d="${path}"/>`)
}
}
Expand Down
Loading

0 comments on commit d0e314b

Please sign in to comment.