From 71fa2280135f11a5ffbf7725c285cb259681d12b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Sat, 21 Mar 2026 22:11:13 +0100 Subject: [PATCH] refactor: remove gh/GitHub references from tokens, classes, and component names Rename all --color-gh-* CSS tokens to --color-*, update Tailwind class names (bg-gh-*, text-gh-*, border-gh-*, etc.) across all TSX/TS files, rename GhButton component and file to Button, and remove trivial descriptive comments. --- src/app/globals.css | 48 ++++++------ src/app/layout.tsx | 2 +- .../configuration/AssistRulesEditor.tsx | 10 +-- .../configuration/ConfigurationEditor.tsx | 18 ++--- .../configuration/EventConfigEditor.tsx | 56 +++++++------- .../configuration/EventRulesEditor.tsx | 16 ++-- .../configuration/ServerSettingsEditor.tsx | 24 +++--- .../leaderboard/LeaderboardManager.tsx | 18 ++--- src/components/login/LoginForm.tsx | 18 ++--- src/components/membership/CreateUserModal.tsx | 22 +++--- src/components/membership/DeleteUserModal.tsx | 18 ++--- .../membership/UserManagementTable.tsx | 55 +++++++------- src/components/server/CreateServerModal.tsx | 14 ++-- src/components/server/DeleteServerModal.tsx | 16 ++-- src/components/server/ServerCard.tsx | 28 +++---- .../server/ServerConfigurationTabs.tsx | 6 +- src/components/server/ServerHeader.tsx | 26 +++---- .../server/ServerListWithActions.tsx | 15 ++-- src/components/server/ServerRow.tsx | 20 ++--- src/components/statistics/RecentSessions.tsx | 30 ++++---- .../statistics/SessionTypesChart.tsx | 8 +- src/components/statistics/StatCard.tsx | 6 +- .../statistics/StatisticsDashboard.tsx | 23 +++--- src/components/ui/AppShell.tsx | 2 +- src/components/ui/Badge.tsx | 10 +-- src/components/ui/Button.tsx | 73 ++++++++++--------- src/components/ui/GhButton.tsx | 47 ------------ src/components/ui/Modal.tsx | 6 +- src/components/ui/Sidebar.tsx | 21 ++---- src/components/ui/StatusDot.tsx | 14 ++-- src/components/ui/SteamCMDNotification.tsx | 10 +-- 31 files changed, 308 insertions(+), 372 deletions(-) mode change 100755 => 100644 src/components/ui/Button.tsx delete mode 100644 src/components/ui/GhButton.tsx diff --git a/src/app/globals.css b/src/app/globals.css index 843a1ad..638aa11 100755 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,35 +1,35 @@ @import "tailwindcss"; @theme { - --color-gh-base: #0d1117; - --color-gh-canvas: #161b22; - --color-gh-overlay: #21262d; - --color-gh-sidebar: #010409; - --color-gh-border: #30363d; - --color-gh-border-muted: #21262d; - --color-gh-hover: #1c2128; - --color-gh-primary: #e6edf3; - --color-gh-secondary: #c9d1d9; - --color-gh-muted: #8b949e; - --color-gh-subtle: #6e7681; - --color-gh-blue: #58a6ff; - --color-gh-blue-bg: #1f6feb33; - --color-gh-green: #3fb950; - --color-gh-green-bg: #3fb95022; - --color-gh-yellow: #d29922; - --color-gh-yellow-bg: #d2992220; - --color-gh-red: #f85149; - --color-gh-red-bg: #f8514920; - --color-gh-orange: #f78166; - --color-gh-btn-green: #238636; - --color-gh-btn-green-hover: #2ea043; + --color-base: #0d1117; + --color-canvas: #161b22; + --color-overlay: #21262d; + --color-sidebar: #010409; + --color-border: #30363d; + --color-border-muted: #21262d; + --color-hover: #1c2128; + --color-primary: #e6edf3; + --color-secondary: #c9d1d9; + --color-muted: #8b949e; + --color-subtle: #6e7681; + --color-blue: #58a6ff; + --color-blue-bg: #1f6feb33; + --color-green: #3fb950; + --color-green-bg: #3fb95022; + --color-yellow: #d29922; + --color-yellow-bg: #d2992220; + --color-red: #f85149; + --color-red-bg: #f8514920; + --color-orange: #f78166; + --color-btn-green: #238636; + --color-btn-green-hover: #2ea043; } @layer components { .form-input { - @apply block w-full rounded-md border border-gh-border bg-gh-overlay px-3 py-2 text-sm text-gh-primary placeholder-gh-subtle focus:border-gh-blue focus:outline-none focus:ring-1 focus:ring-gh-blue; + @apply block w-full rounded-md border border-border bg-overlay px-3 py-2 text-sm text-primary placeholder-subtle focus:border-blue focus:outline-none focus:ring-1 focus:ring-blue; } .form-select { - @apply block w-full rounded-md border border-gh-border bg-gh-overlay px-3 py-2 text-sm text-gh-primary focus:border-gh-blue focus:outline-none focus:ring-1 focus:ring-gh-blue; + @apply block w-full rounded-md border border-border bg-overlay px-3 py-2 text-sm text-primary focus:border-blue focus:outline-none focus:ring-1 focus:ring-blue; } } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 201da29..6618931 100755 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -13,7 +13,7 @@ export default function RootLayout({ }>) { return ( - {children} + {children} ); } diff --git a/src/components/configuration/AssistRulesEditor.tsx b/src/components/configuration/AssistRulesEditor.tsx index a6574a2..f2c2445 100755 --- a/src/components/configuration/AssistRulesEditor.tsx +++ b/src/components/configuration/AssistRulesEditor.tsx @@ -96,7 +96,7 @@ export function AssistRulesEditor({ serverId, config }: AssistRulesEditorProps)
{assistFields.map(({ key, label, type }) => (
- + {type === 'number' ? ( -
-