feat: replace legacy Python CLI with GUI app

This commit is contained in:
Tickbase
2025-05-19 03:41:04 +02:00
parent e55f91a66d
commit 1e2cb52f6f
22 changed files with 118 additions and 222 deletions
+3 -2
View File
@@ -4,17 +4,18 @@ export interface DialogHeaderProps {
children: ReactNode
className?: string
onClose?: () => void
hideCloseButton?: boolean;
}
/**
* Header component for dialogs
* Contains the title and optional close button
*/
const DialogHeader = ({ children, className = '', onClose }: DialogHeaderProps) => {
const DialogHeader = ({ children, className = '', onClose, hideCloseButton = false }: DialogHeaderProps) => {
return (
<div className={`dialog-header ${className}`}>
{children}
{onClose && (
{onClose && !hideCloseButton && (
<button className="dialog-close-button" onClick={onClose} aria-label="Close dialog">
×
</button>
@@ -141,7 +141,7 @@ const DlcSelectionDialog = ({
return (
<Dialog visible={visible} onClose={onClose} size="large" preventBackdropClose={isLoading}>
<DialogHeader onClose={onClose}>
<DialogHeader onClose={onClose} hideCloseButton={true}>
<h3>{dialogTitle}</h3>
<div className="dlc-game-info">
<span className="game-title">{gameTitle}</span>
+1 -1
View File
@@ -123,7 +123,7 @@ const ProgressDialog = ({
size="medium"
preventBackdropClose={!isCloseButtonEnabled}
>
<DialogHeader>
<DialogHeader onClose={onClose} hideCloseButton={true}>
<h3>{title}</h3>
</DialogHeader>