From d793fdeee529213af33d5b8fabcda06188daa740 Mon Sep 17 00:00:00 2001
From: Kilian PAQUIER
Date: Wed, 13 Jul 2022 12:37:01 +0200
Subject: [PATCH 1/7] new feature: icons number - fix #1218
---
README.md | 3 +++
docs/assets/css/style.css | 17 ++++++++++++++---
docs/assets/js/script.js | 8 ++++++++
docs/index.html | 9 ++++++++-
4 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 90c04be6d..b1fc5b62b 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,9 @@
+
+
+
diff --git a/docs/assets/css/style.css b/docs/assets/css/style.css
index b16c1d0e3..7e7687096 100644
--- a/docs/assets/css/style.css
+++ b/docs/assets/css/style.css
@@ -415,11 +415,22 @@ input[type='color']:hover {
.main {
margin: 0 0 0 480px; }
+.result {
+ max-width: 75px;
+}
+
+.computed-data {
+ margin-bottom: 1rem;
+ color: var(--primaryColor);
+ font-weight: bold;
+ text-align: center;
+}
+
.search {
- text-align: center; }
+ text-align: center;
+ margin: 4rem 0 1rem 0; }
+
.search input {
- width: 300px;
- margin: 4rem;
padding: .5rem 1rem;
border: 0;
border-bottom: 2px solid var(--primaryColor);
diff --git a/docs/assets/js/script.js b/docs/assets/js/script.js
index 2fb5cd5bd..9d1a35ec8 100644
--- a/docs/assets/js/script.js
+++ b/docs/assets/js/script.js
@@ -38,6 +38,9 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
$scope.icons = [];
$scope.selectedIcon = {};
+ // Miscellaneous stuff
+ $scope.totalFonts = 0; // Total fonts and SVGs combined
+
// background color related stuff
// default is the default site background color
$scope.DEFAULT_BACKGROUND = "#3D9561";
@@ -61,6 +64,8 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
main: ""
};
+ $scope.totalFonts += devicon.versions.font.length + devicon.versions.svg.length;
+
// Loop through devicon.json icons
for (var i = 0; i < devicon.versions.font.length; i++) {
@@ -96,6 +101,9 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
$scope.selectedFontIndex = 0;
$scope.selectedSvgIndex = 0;
+ // Computes miscellaneous data
+ $scope.avgFonts = ($scope.totalFonts / $scope.icons.length).toFixed(2); // Avg number of fonts and SVGs combined
+
/*------ End of "Re-format devicon.json" ------*/
});
diff --git a/docs/index.html b/docs/index.html
index 6b3b645ed..148e2957a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -203,10 +203,17 @@
If you have any legal concerns regarding copyrights or want to report an abu
+
+
+
+
+ Total icons = {{ icons.length }},
+ Total versions = {{ totalFonts }},
+ Average versions per icon = {{ avgFonts }}
-
- Total icons = {{ icons.length }},
- Total versions = {{ totalFonts }},
- Average versions per icon = {{ avgFonts }}
-
+
+ - Total logos = {{ icons.length }}
+ - Total icons = {{ totalFonts }}
+ - Average icons per logo = {{ avgFonts }}
+
-
From 50c2fcca8e2f58421cac76f4fc59dd52e9b8ddf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rgen=20Kalsnes=20Hagen?=
<43886029+Snailedlt@users.noreply.github.com>
Date: Mon, 31 Oct 2022 17:14:37 +0100
Subject: [PATCH 3/7] Change shield link to https://devicon.dev
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fa89f6859..118f59dbf 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@
-
+
From 7de4e4a2009cd27656aa0699d9e948656f41674c Mon Sep 17 00:00:00 2001
From: Snailedlt <43886029+Snailedlt@users.noreply.github.com>
Date: Mon, 12 Dec 2022 00:04:05 +0100
Subject: [PATCH 4/7] add titles and rename logos & icons to icons &
icon-versions
---
docs/index.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/index.html b/docs/index.html
index 1cd45292f..63c296a63 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -203,13 +203,13 @@ If you have any legal concerns regarding copyrights or want to report an abu
-
+
- - Total logos = {{ icons.length }}
- - Total icons = {{ totalFonts }}
- - Average icons per logo = {{ avgFonts }}
+ - Total icons = {{ icons.length }}
+ - Total icon version = {{ totalFonts }}
+ - Average icon versions per icon = {{ avgFonts }}
From 1ccbf18d9d9cb7eebd8a6a9e6ee31d8ed0b8df33 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rgen=20Kalsnes=20Hagen?=
<43886029+Snailedlt@users.noreply.github.com>
Date: Mon, 12 Dec 2022 15:57:18 +0100
Subject: [PATCH 5/7] replace = with :
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com>
---
docs/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/index.html b/docs/index.html
index 63c296a63..3639d0301 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -207,9 +207,9 @@ If you have any legal concerns regarding copyrights or want to report an abu
- - Total icons = {{ icons.length }}
- - Total icon version = {{ totalFonts }}
- - Average icon versions per icon = {{ avgFonts }}
+ - Total icons: {{ icons.length }}
+ - Total icon version: {{ totalFonts }}
+ - Average icon versions per icon: {{ avgFonts }}
From d055b506bbe37cedc2787d439ae3e8a43a78e474 Mon Sep 17 00:00:00 2001
From: Kilian PAQUIER
Date: Fri, 10 Mar 2023 18:20:55 +0100
Subject: [PATCH 6/7] fixed avg fonts number to integer and added float in
title
---
docs/assets/js/script.js | 2 +-
docs/index.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/assets/js/script.js b/docs/assets/js/script.js
index 9d1a35ec8..6986daeaa 100644
--- a/docs/assets/js/script.js
+++ b/docs/assets/js/script.js
@@ -102,7 +102,7 @@ devicon.controller('IconListCtrl', function($scope, $http, $compile) {
$scope.selectedSvgIndex = 0;
// Computes miscellaneous data
- $scope.avgFonts = ($scope.totalFonts / $scope.icons.length).toFixed(2); // Avg number of fonts and SVGs combined
+ $scope.avgFonts = $scope.totalFonts / $scope.icons.length // Avg number of fonts and SVGs combined
/*------ End of "Re-format devicon.json" ------*/
});
diff --git a/docs/index.html b/docs/index.html
index 3639d0301..174b6c371 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -209,7 +209,7 @@ If you have any legal concerns regarding copyrights or want to report an abu
- Total icons: {{ icons.length }}
- Total icon version: {{ totalFonts }}
- - Average icon versions per icon: {{ avgFonts }}
+ - Average icon versions per icon: {{ avgFonts.toFixed(0) }}
From 0fa185a032f16545ccfbc7bd21e83bd2db8b9cb8 Mon Sep 17 00:00:00 2001
From: kilianpaquier
Date: Sun, 12 Mar 2023 09:01:27 +0100
Subject: [PATCH 7/7] Update docs/index.html
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Josélio Júnior <76992016+lunatic-fox@users.noreply.github.com>
---
docs/index.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/index.html b/docs/index.html
index 174b6c371..d980be20a 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -207,9 +207,9 @@ If you have any legal concerns regarding copyrights or want to report an abu
- - Total icons: {{ icons.length }}
- - Total icon version: {{ totalFonts }}
- - Average icon versions per icon: {{ avgFonts.toFixed(0) }}
+ - Total icons: {{ icons.length }}
+ - Total icon version: {{ totalFonts }}
+ - Average icon versions per icon: {{ avgFonts.toFixed(0) }}