Skip to content

Commit

Permalink
closes #7 ; added MillionJS
Browse files Browse the repository at this point in the history
  • Loading branch information
LelouchFR committed May 6, 2024
1 parent a212815 commit 26d65cf
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ Here's a list of all the icons currently supported. Feel free to open an issue t
| `matplotlib` | <img src="./assets/matplotlib-dark.svg" width="48"> |
| `maven` | <img src="./assets/maven-dark.svg" width="48"> |
| `me` | <img src="./assets/mediaencoder.svg" width="48"> |
| `million` | <img src="./assets/millionjs-dark.svg" width="48"> |
| `mint` | <img src="./assets/mint-dark.svg" width="48"> |
| `misskey` | <img src="./assets/misskey-dark.svg" width="48"> |
| `mjml` | <img src="./assets/mjml-dark.svg" width="48"> |
Expand Down
4 changes: 1 addition & 3 deletions api/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ var icons map[string]string = make(map[string]string)
var iconNameList []string
var themedIcons []string



var shortNames = map[string]string{
"js": "javascript",
"ts": "typescript",
Expand Down Expand Up @@ -83,6 +81,7 @@ var shortNames = map[string]string{
"st": "stock",
"be": "behance",
"br": "bridge",
"million": "millionjs",
}

var (
Expand Down Expand Up @@ -117,7 +116,6 @@ func generateSvg(iconNames []string, perLine int, hasTitlesEnabled bool) string
title = fmt.Sprintf("<title>%s</title>", i)
}


x := (index % perLine) * 300
y := (index / perLine) * 300
svg += fmt.Sprintf(`
Expand Down
25 changes: 25 additions & 0 deletions assets/millionjs-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions assets/millionjs-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26d65cf

Please sign in to comment.