diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 07de37f3..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve. Write in English, please -title: "[BUG]" -labels: bug -assignees: "" ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** - -- OS: [Windows 11/Linux Distro/Steam Deck] -- Hydra Version: -- Additional information and context of your problem: diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 00000000..88467f6a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,58 @@ +name: Bug Report +description: Create a report to help us improve. Write in English, please. +title: "[BUG] " +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thank you for creating a bug report to help us improve! + - type: textarea + id: bug-description + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. + validations: + required: true + - type: textarea + id: bug-reproduce + attributes: + label: Steps to Reproduce + description: Steps to reproduce the behavior. For example, "1. Go to '...', 2. Click on '...', 3. See error" + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: If applicable, add screenshots to help explain your problem. + validations: + required: false + - type: input + id: OS + attributes: + label: Operating System + description: Which operating system are you using (e.g., Windows 11/Linux Distro/Steam Deck)? + validations: + required: true + - type: input + id: hydra-version + attributes: + label: Hydra Version + description: Please provide the version of Hydra you are using. + validations: + required: true + - type: textarea + id: additional-info + attributes: + label: Additional Information + description: Please provide any additional information and context about your problem. + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 1a651d9f..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for Hydra. Write in English, please -title: "[REQUEST]" -labels: enhancement -assignees: "" ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 00000000..295cee45 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,37 @@ +name: Feature Request +description: Request a new feature. +title: "[REQUEST] " +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Thank you for taking the time to suggest a new feature! + - type: textarea + id: problem-related + attributes: + label: Is your feature request related to a problem? Please describe. + description: A clear and concise description of what the problem is. + validations: + required: true + - type: textarea + id: solution + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Describe alternatives you've considered + description: A clear and concise description of any alternative solutions or features you've considered. + validations: + required: false + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. + validations: + required: false diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index af4cbae7..2612e737 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,3 +26,6 @@ jobs: - name: Lint run: yarn lint + + - name: Format check + run: yarn format-check diff --git a/package.json b/package.json index 7ef10aad..14e953f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hydra", - "version": "1.2.0", + "version": "1.2.1", "description": "Hydra", "main": "./out/main/index.js", "author": "Los Broxas", @@ -12,6 +12,7 @@ "type": "module", "scripts": { "format": "prettier --write .", + "format-check": "prettier --check .", "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json index f9eea8f5..eeb9e103 100644 --- a/src/locales/es/translation.json +++ b/src/locales/es/translation.json @@ -24,12 +24,12 @@ "github": "Contribuye en GitHub" }, "header": { - "search": "Buscar", + "search": "Buscar juegos", + "home": "Inicio", "catalogue": "Catálogo", "downloads": "Descargas", "search_results": "Resultados de búsqueda", - "settings": "Ajustes", - "home": "Inicio" + "settings": "Ajustes" }, "bottom_panel": { "no_downloads_in_progress": "Sin descargas en progreso", @@ -37,12 +37,17 @@ "checking_files": "Analizando archivos de {{title}} - ({{percentage}} completado)", "downloading": "Descargando {{title}}… ({{percentage}} completado) - Finalizando {{eta}} - {{speed}}" }, + "catalogue": { + "next_page": "Siguiente página", + "previous_page": "Pagina anterior" + }, "game_details": { "open_download_options": "Ver opciones de descargas", "download_options_zero": "No hay opciones de descargas disponibles", "download_options_one": "{{count}} opción de descarga", "download_options_other": "{{count}} opciones de descargas", "updated_at": "Actualizado el {{updated_at}}", + "install": "Instalar", "resume": "Continuar", "pause": "Pausa", "cancel": "Cancelar", @@ -52,7 +57,7 @@ "eta": "Finalizando en {{eta}}", "downloading_metadata": "Descargando metadatos…", "checking_files": "Analizando archivos…", - "filter": "Filtrar repacks", + "filter": "Buscar repacks", "requirements": "Requisitos del Sistema", "minimum": "Mínimos", "recommended": "Recomendados", @@ -71,20 +76,17 @@ "add_to_library": "Agregar a la biblioteca", "remove_from_library": "Eliminar de la biblioteca", "no_downloads": "No hay descargas disponibles", - "next_suggestion": "Siguiente sugerencia", "play_time": "Jugado por {{amount}}", - "install": "Instalar", - "play": "Jugar", - "not_played_yet": "Aún no has jugado a {{title}}", - "close": "Cerrar", - "deleting": "Eliminando instalador…", - "playing_now": "Jugando ahora", "last_time_played": "Jugado por última vez {{period}}", - "got_it": "Entendido", + "not_played_yet": "Aún no has jugado a {{title}}", + "next_suggestion": "Siguiente sugerencia", + "play": "Jugar", + "deleting": "Eliminando instalador…", + "close": "Cerrar", + "playing_now": "Jugando ahora", "change": "Cambiar", "repacks_modal_description": "Selecciona el repack que quieres descargar", - "downloads_path": "Ruta de descarga", - "select_folder_hint": "Para cambiar la carpeta predeterminada, accede a", + "select_folder_hint": "Para cambiar la carpeta predeterminada, ve a <0>Ajustes", "download_now": "Descargar ahora", "installation_instructions": "Instrucciones de instalación", "installation_instructions_description": "Se requieren de pasos adicionales para instalar este juego", @@ -94,7 +96,15 @@ "copy_to_clipboard": "Copiar", "copied_to_clipboard": "Copiado", "multi_language": "Multi Idioma", - "multiplayer": "Multijugador" + "multiplayer": "Multijugador", + "got_it": "Entendido", + "no_shop_details": "No se pudieron obtener detalles de la tienda.", + "download_options": "Opciones de descarga", + "download_path": "Ruta de descarga", + "previous_screenshot": "Anterior captura", + "next_screenshot": "Siguiente captura", + "screenshot": "Captura {{number}}", + "open_screenshot": "Abrir captura {{number}}" }, "activation": { "title": "Activar Hydra", @@ -120,12 +130,14 @@ "downloading_metadata": "Descargando metadatos…", "checking_files": "Verificando archivos…", "starting_download": "Iniciando descarga…", - "remove_from_list": "Eliminar", - "delete": "Eliminar instalador", - "delete_modal_description": "Esto eliminará todos los archivos de instalación de tu computadora.", - "delete_modal_title": "¿Estás seguro?", "deleting": "Eliminando instalador…", - "install": "Instalar" + "delete": "Eliminar instalador", + "remove_from_list": "Eliminar", + "delete_modal_title": "¿Estás seguro?", + "delete_modal_description": "Esto eliminará todos los archivos de instalación de tu computadora.", + "install": "Instalar", + "real_debrid": "Real Debrid", + "torrent": "Torrent" }, "settings": { "downloads_path": "Ruta de descarga", @@ -134,7 +146,16 @@ "enable_download_notifications": "Cuando se completa una descarga", "enable_repack_list_notifications": "Cuando se añade un repack nuevo", "telemetry": "Telemetría", - "telemetry_description": "Habilitar recopilación de datos de manera anónima" + "telemetry_description": "Habilitar recopilación de datos de manera anónima", + "real_debrid_api_token_label": "Token API de Real Debrid", + "quit_app_instead_hiding": "Salir de Hydra en vez de minimizar en la bandeja del sistema", + "launch_with_system": "Iniciar Hydra al inicio del sistema", + "general": "General", + "behavior": "Otros", + "enable_real_debrid": "Activar Real Debrid", + "real_debrid": "Real Debrid", + "real_debrid_api_token_hint": "Puedes obtener tu clave de API <0>aquí.", + "save_changes": "Guardar cambios" }, "notifications": { "download_complete": "Descarga completada", @@ -157,9 +178,5 @@ }, "modal": { "close": "Botón de cierre" - }, - "catalogue": { - "next_page": "Siguiente página", - "previous_page": "Pagina anterior" } } diff --git a/src/main/index.ts b/src/main/index.ts index c6738960..343caeed 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -19,6 +19,8 @@ autoUpdater.setFeedURL({ const gotTheLock = app.requestSingleInstanceLock(); if (!gotTheLock) app.quit(); +app.disableHardwareAcceleration(); + i18n.init({ resources, lng: "en", diff --git a/src/main/services/repack-tracker/online-fix.ts b/src/main/services/repack-tracker/online-fix.ts index 70373876..68f8d214 100644 --- a/src/main/services/repack-tracker/online-fix.ts +++ b/src/main/services/repack-tracker/online-fix.ts @@ -146,6 +146,8 @@ export const getNewRepacksFromOnlineFix = async ( ); worker.once("message", (torrent) => { + if (!torrent) return; + repacks.push({ fileSize: formatBytes(torrent.length ?? 0), magnet: toMagnetURI(torrent),