From 1c39f06ae884f10ca9b14e2e1ca27b776beae61b Mon Sep 17 00:00:00 2001 From: hq1 Date: Thu, 18 Jul 2024 15:30:28 +0200 Subject: [PATCH] Add curl browser icon (#4372) --- assets/js/dashboard/stats/devices/index.js | 1 + priv/repo/seeds.exs | 2 +- priv/static/images/icon/browser/curl.svg | 33 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 priv/static/images/icon/browser/curl.svg diff --git a/assets/js/dashboard/stats/devices/index.js b/assets/js/dashboard/stats/devices/index.js index ebd3580af..45fa71eb4 100644 --- a/assets/js/dashboard/stats/devices/index.js +++ b/assets/js/dashboard/stats/devices/index.js @@ -12,6 +12,7 @@ import { useSiteContext } from '../../site-context'; // Icons copied from https://github.com/alrra/browser-logos const BROWSER_ICONS = { 'Chrome': 'chrome.svg', + 'curl': 'curl.svg', 'Safari': 'safari.png', 'Firefox': 'firefox.svg', 'Microsoft Edge': 'edge.svg', diff --git a/priv/repo/seeds.exs b/priv/repo/seeds.exs index 4ded020db..79fe0fdda 100644 --- a/priv/repo/seeds.exs +++ b/priv/repo/seeds.exs @@ -163,7 +163,7 @@ native_stats_range hostname: Enum.random(["en.dummy.site", "es.dummy.site", "dummy.site"]), timestamp: put_random_time.(date, index), referrer_source: Enum.random(["", "Facebook", "Twitter", "DuckDuckGo", "Google"]), - browser: Enum.random(["Microsoft Edge", "Chrome", "Safari", "Firefox", "Vivaldi"]), + browser: Enum.random(["Microsoft Edge", "Chrome", "curl", "Safari", "Firefox", "Vivaldi"]), browser_version: to_string(Enum.random(0..50)), screen_size: Enum.random(["Mobile", "Tablet", "Desktop", "Laptop"]), operating_system: Enum.random(["Windows", "Mac", "GNU/Linux"]), diff --git a/priv/static/images/icon/browser/curl.svg b/priv/static/images/icon/browser/curl.svg new file mode 100644 index 000000000..a864f342a --- /dev/null +++ b/priv/static/images/icon/browser/curl.svg @@ -0,0 +1,33 @@ + + +curl logo + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + +