From 83d42d68255a75a4c27c2af52bf951dd8367e3fb Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Tue, 23 Sep 2025 09:20:52 -0400 Subject: [PATCH 1/9] fix: system preference in dark mode error --- static/styles/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/static/styles/main.css b/static/styles/main.css index a4c76b2..8681196 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -18,6 +18,7 @@ @layer base { body { color: var(--rh-color-text-primary); + color-scheme: light dark; } a { From 4363918a406e43a63e0a5ee5733948424c486c21 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 10 Jan 2023 17:23:59 +0100 Subject: [PATCH 2/9] projects: Add github.com/crc-org --- data/projects.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/projects.json b/data/projects.json index 5a46e7d..ddb3b08 100644 --- a/data/projects.json +++ b/data/projects.json @@ -194,6 +194,16 @@ "twitterURL": "", "lowercaseName": "crash" }, + { + "projectName": "CRC", + "projectDescription": "A tool for managing a local OpenShift cluster.", + "projectRepository": "https://github.com/crc-org", + "projectWebsite": "https://crc.dev", + "category": "Development", + "twitterHandle": "", + "twitterURL": "", + "lowercaseName": "crc" + }, { "projectName": "Cryostat", "projectDescription": "JFR management for JVMs in the cloud", From b3ff61e28ef0a78c8e710585edab2278dfaedb75 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 19 Jan 2023 12:08:25 +0100 Subject: [PATCH 3/9] Add Submariner We're the main contributors to the project, and it is shipped as part of Advanced Cluster Management for Kubernetes. Signed-off-by: Stephen Kitt --- data/projects.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/projects.json b/data/projects.json index ddb3b08..2b3d0f6 100644 --- a/data/projects.json +++ b/data/projects.json @@ -1400,6 +1400,16 @@ "twitterURL": "", "lowercaseName": "strimzi" }, + { + "projectName": "Submariner", + "projectDescription": "Submariner enables direct networking between Pods and Services in different Kubernetes clusters, either on-premises or in the cloud.", + "projectRepository": "https://github.com/submariner-io", + "projectWebsite": "https://submariner.io/", + "category": "Middleware", + "twitterHandle": "submarinerio", + "twitterURL": "https://twitter.com/submarinerio", + "lowercaseName": "submariner" + }, { "projectName": "SwitchYard", "projectDescription": "SwitchYard is a component-based development framework focused on building structured, maintainable services and applications", From 85e10bdbb3e4de24a1c098135074995bbe65a1c8 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 19 Jan 2023 12:02:50 +0100 Subject: [PATCH 4/9] Revert "Add OpenDaylight" This reverts commit 284c7c2fb10a68fb342126a361a1aee0a5db1089. We haven't been involved with the project for a few years. Signed-off-by: Stephen Kitt --- data/projects.json | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/data/projects.json b/data/projects.json index 2b3d0f6..c99b42a 100644 --- a/data/projects.json +++ b/data/projects.json @@ -2080,16 +2080,6 @@ "twitterURL": "", "lowercaseName": "okd" }, - { - "projectName": "OpenDaylight", - "projectDescription": "A modular open platform for customizing and automating networks of any size and scale.", - "projectRepository": "https://github.com/opendaylight/", - "projectWebsite": "https://www.opendaylight.org/", - "category": "Operations", - "twitterHandle": "", - "twitterURL": "", - "lowercaseName": "opendaylight" - }, { "projectName": "OpenSCAP", "projectDescription": "Open Source Security Compliance Solution", From f4dcdc5623c8cdbd1466ffc62497d7096287ceba Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Tue, 23 Sep 2025 10:32:16 -0400 Subject: [PATCH 5/9] fix: color-scheme and system prefs improvements --- static/js/rht-picture.js | 42 +++++++++++++++++++++++++++++++++++----- static/styles/main.css | 10 ---------- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/static/js/rht-picture.js b/static/js/rht-picture.js index aad09da..a29ae14 100644 --- a/static/js/rht-picture.js +++ b/static/js/rht-picture.js @@ -1,20 +1,52 @@ document.addEventListener('DOMContentLoaded', function() { - const body = document.querySelector('body'); + const body = document.body; const pictureEls = document.querySelectorAll('rht-picture'); + let prefersDark = false; + const colorScheme = localStorage.getItem('rhdsColorScheme'); + + if (!colorScheme || colorScheme === 'light dark') { + if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { + prefersDark = true; + pictureEls.forEach((art) => { + art.classList.add('dark'); + }); + } + } + + if (colorScheme === 'dark') { + pictureEls.forEach((art) => { + art.classList.add('dark'); + }); + } else if (colorScheme === 'light') { + pictureEls.forEach((art) => { + art.classList.remove('dark'); + }); + } + var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { - if (mutation.type === "attributes") { - let styleAttr = mutation.target.getAttribute('style'); + if (mutation.type === 'attributes' && mutation.attributeName === 'style') { + const styleAttr = body.getAttribute('style'); - if (styleAttr.includes('color-scheme: dark')) { + if (styleAttr === 'color-scheme: dark;') { pictureEls.forEach((art) => { art.classList.add('dark'); }); - } else { + } else if (styleAttr === 'color-scheme: light;') { pictureEls.forEach((art) => { art.classList.remove('dark'); }); + } else { + if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { + pictureEls.forEach((art) => { + art.classList.add('dark'); + }); + } else { + pictureEls.forEach((art) => { + art.classList.remove('dark'); + }); + } } } }); diff --git a/static/styles/main.css b/static/styles/main.css index 8681196..39aa1f9 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -350,16 +350,6 @@ display: none; } } - - @media (prefers-color-scheme: dark) { - .img-on-dark { - display: inline; - } - - .img-on-light { - display: none; - } - } } rht-text-input { From c37fb1279136e3b2e0667dbae6add9271d63a16f Mon Sep 17 00:00:00 2001 From: Ridoy Chandra Dey Date: Thu, 31 Oct 2024 22:35:01 +0600 Subject: [PATCH 6/9] Added InstructLab to the project list --- data/projects.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/projects.json b/data/projects.json index c99b42a..7cf0791 100644 --- a/data/projects.json +++ b/data/projects.json @@ -379,6 +379,16 @@ "twitterURL": "", "lowercaseName": "immutant" }, + { + "projectName": "InstructLab", + "projectDescription": "InstructLab is a model-agnostic open source AI project that facilitates contributions to Large Language Models (LLMs).", + "projectRepository": "https://github.com/instructlab/", + "projectWebsite": "https://instructlab.ai/", + "category": "Development", + "twitterHandle": "", + "twitterURL": "", + "lowercaseName": "instructlab" + }, { "projectName": "IronJacamar", "projectDescription": "An implementation of the Java EE Connector Architecture 1.7 specification", From ebaaaed9ce33d44e0d3c0658b6189dacf68bcb79 Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Thu, 31 Aug 2023 11:09:26 +0530 Subject: [PATCH 7/9] Add Twitter handle for Moby Project issue-:#294 --- data/projects.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/projects.json b/data/projects.json index 7cf0791..0d2ee52 100644 --- a/data/projects.json +++ b/data/projects.json @@ -2019,8 +2019,8 @@ "projectRepository": "https://github.com/moby", "projectWebsite": "https://mobyproject.org/", "category": "Operations", - "twitterHandle": "", - "twitterURL": "", + "twitterHandle": "moby", + "twitterURL": "https://twitter.com/moby", "lowercaseName": "moby project" }, { From 5597ac65a0e9e71968d146bd42c37766443d3d16 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Tue, 23 Sep 2025 13:55:41 -0400 Subject: [PATCH 8/9] fix: switch to RH CDN --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index d073920..f8cb93e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,7 @@ - {# Temporarily using 3rd pary CDN while we fix CORS issue with https://redhatstatic.com/dssf-001/v2/ #} - {% set cdn_base_url = "https://cdn.jsdelivr.net/npm/" %} + {% set cdn_base_url = "https://redhatstatic.com/dssf-001/v2/" %} {% if config.extra.env == "dev" %} {% set cdn_base_url = "https://cdn.jsdelivr.net/npm/" %} {% endif %} From a1c086da891bc938b0ab78a0fdf1bb2fc237fbe1 Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Tue, 23 Sep 2025 14:06:01 -0400 Subject: [PATCH 9/9] fix: refix CDN with www --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index f8cb93e..1f1caa0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,7 @@ - {% set cdn_base_url = "https://redhatstatic.com/dssf-001/v2/" %} + {% set cdn_base_url = "https://www.redhatstatic.com/dssf-001/v2/" %} {% if config.extra.env == "dev" %} {% set cdn_base_url = "https://cdn.jsdelivr.net/npm/" %} {% endif %}