mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 08:25:47 +01:00
v0.10.6 : Reworks and QOL
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
export const REPO_URL = 'ajnart/homarr';
|
export const REPO_URL = 'ajnart/homarr';
|
||||||
export const CURRENT_VERSION = 'v0.10.5';
|
export const CURRENT_VERSION = 'v0.10.6';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homarr",
|
"name": "homarr",
|
||||||
"version": "0.10.5",
|
"version": "0.10.6",
|
||||||
"description": "Homarr - A homepage for your server.",
|
"description": "Homarr - A homepage for your server.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Søg på nettet..."
|
"placeholder": "Søg på nettet..."
|
||||||
|
},
|
||||||
|
"switched-to": "Skiftet til",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "Web",
|
||||||
|
"description": "Søg ved hjælp af din søgemaskine (defineret i indstillinger)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "YouTube",
|
||||||
|
"description": "Søg på YouTube"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "Torrents",
|
||||||
|
"description": "Søg efter torrents"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "Søg efter film og tv-serier ved hjælp af Overseerr (modul skal være aktiveret)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "Du kan vælge søgefeltet med genvejen ",
|
||||||
|
"switchedSearchEngine": "Skiftede til søgning med {{searchEngine}}"
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Giver dig mulighed for at se din usenet (Sabnzbd eller NZBGet) kø og historik, pause og genoptage downloads"
|
"description": "Tillader dig at se din usenet (Sabnzbd eller NZBGet) kø og historie, pause og genoptage downloads"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Das Internet durchsuchen..."
|
"placeholder": "Das Internet durchsuchen..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "",
|
||||||
"description": "Ermöglicht es Ihnen, Ihre Usenet-Warteschlange (Sabnzbd oder NZBGet) und den Verlauf anzuzeigen, Downloads anzuhalten und fortzusetzen"
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Search the web..."
|
"placeholder": "Search the web..."
|
||||||
|
},
|
||||||
|
"switched-to": "Switched to",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "Web",
|
||||||
|
"description": "Search using your search engine (defined in settings)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "Youtube",
|
||||||
|
"description": "Search on Youtube"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "Torrents",
|
||||||
|
"description": "Search for Torrents"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "Search for Movies and TV Shows using Overseerr (module must be enabled)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "You can select the search bar with the shortcut ",
|
||||||
|
"switchedSearchEngine": "Switched to searching with {{searchEngine}}"
|
||||||
}
|
}
|
||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Buscar en Internet..."
|
"placeholder": "Buscar en Internet..."
|
||||||
|
},
|
||||||
|
"switched-to": "Cambiado a",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "Web",
|
||||||
|
"description": "Buscar usando tu motor de búsqueda (definido en ajustes)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "Youtube",
|
||||||
|
"description": "Buscar en Youtube"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "Torrents",
|
||||||
|
"description": "Buscar Torrents"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "Buscar Películas y Series TV usando Overseerr (el módulo debe esta activado)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "Puedes seleccionar la barra de búsqueda con el atajo ",
|
||||||
|
"switchedSearchEngine": "Cambiado a buscando con {{searchEngine}}"
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Le permite ver la cola y el historial de usenet (Sabnzbd o NZBGet), pausar y reanudar las descargas"
|
"description": "Te permite ver la cola e historial de tu usenet (Sabnzbd or NZBGet), pausar y reanudar descargas"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"accordions": {
|
"accordions": {
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"text": "Vos téléchargements",
|
"text": "Vos téléchargements",
|
||||||
"torrents": "",
|
"torrents": "Vos téléchargements Torrents",
|
||||||
"usenet": ""
|
"usenet": "Vos téléchargements Usenet"
|
||||||
},
|
},
|
||||||
"others": {
|
"others": {
|
||||||
"text": "Autres"
|
"text": "Autres"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Docker",
|
"name": "Docker",
|
||||||
"description": ""
|
"description": "Vous permet de gérer facilement vos conteneurs docker"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Recherche par nom de conteneur ou d'image"
|
"placeholder": "Recherche par nom de conteneur ou d'image"
|
||||||
@@ -49,20 +49,20 @@
|
|||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"start": {
|
"start": {
|
||||||
"start": "",
|
"start": "Démarrage en cours",
|
||||||
"end": ""
|
"end": "Démarré"
|
||||||
},
|
},
|
||||||
"stop": {
|
"stop": {
|
||||||
"start": "",
|
"start": "Arrêt en cours",
|
||||||
"end": "Arrêté"
|
"end": "Arrêté"
|
||||||
},
|
},
|
||||||
"restart": {
|
"restart": {
|
||||||
"start": "",
|
"start": "Redémarrage en cours",
|
||||||
"end": ""
|
"end": "Redémarré"
|
||||||
},
|
},
|
||||||
"remove": {
|
"remove": {
|
||||||
"start": "",
|
"start": "Suppression en cours",
|
||||||
"end": ""
|
"end": "Supprimé"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Cherchez sur le web..."
|
"placeholder": "Cherchez sur le web..."
|
||||||
|
},
|
||||||
|
"switched-to": "Basculé vers",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "Web",
|
||||||
|
"description": "Recherche à l'aide de votre moteur de recherche (défini dans les paramètres)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "YouTube",
|
||||||
|
"description": "Cherchez sur YouTube"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "Torrents",
|
||||||
|
"description": "Chercher des torrents"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "Chercher des films et séries TV avec Overseerr (le module doit-être activé)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "Vous pouvez sélectionner la barre de recherche avec le raccourci ",
|
||||||
|
"switchedSearchEngine": "Basculer vers la recherche avec {{searchEngine}}"
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Vous permet de voir votre file d'attente et votre historique Usenet (Sabnzbd ou NZBGet), de mettre en pause et de reprendre les téléchargements"
|
"description": "Permet de voir la file d'attente et l'historique de vos téléchargements usenet (Sabnzbd ou NZBGet), de mettre en pause et de reprendre les téléchargements"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -9,6 +9,6 @@
|
|||||||
"placeholder": "URL de requête personnalisée"
|
"placeholder": "URL de requête personnalisée"
|
||||||
},
|
},
|
||||||
"searchNewTab": {
|
"searchNewTab": {
|
||||||
"label": ""
|
"label": "Ouvrir les résultats de la recherche dans un nouvel onglet"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
},
|
},
|
||||||
"lineChart": {
|
"lineChart": {
|
||||||
"title": "מהירות הורדה נוכחית",
|
"title": "מהירות הורדה נוכחית",
|
||||||
"download": "הורדה ממתינה",
|
"download": "הורדה",
|
||||||
"upload": "העלאה ממתינה",
|
"upload": "העלאה",
|
||||||
"timeSpan": "לפני שניות",
|
"timeSpan": "לפני שניות",
|
||||||
"totalDownload": "הורדה ממתינה",
|
"totalDownload": "הורדה ממתינה",
|
||||||
"totalUpload": "העלאה ממתינה"
|
"totalUpload": "העלאה ממתינה"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"table": {
|
"table": {
|
||||||
"header": {
|
"header": {
|
||||||
"name": "שם",
|
"name": "שם",
|
||||||
"image": "תמונה",
|
"image": "קובץ תמונה",
|
||||||
"ports": "יציאות",
|
"ports": "יציאות",
|
||||||
"state": "מצב"
|
"state": "מצב"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "זמן תגובה",
|
"name": "פינג",
|
||||||
"description": "מאפשר בדיקה אם השירות פעיל או מחזיר קוד ספציפי של HTTP"
|
"description": "מאפשר בדיקה אם השירות פעיל או מחזיר קוד ספציפי של HTTP"
|
||||||
},
|
},
|
||||||
"states": {
|
"states": {
|
||||||
"online": "מקון",
|
"online": "מקוון",
|
||||||
"offline": "לא מקון",
|
"offline": "לא מקוון",
|
||||||
"loading": "טוען..."
|
"loading": "טוען..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "חפש באינטרנט..."
|
"placeholder": "חפש באינטרנט..."
|
||||||
|
},
|
||||||
|
"switched-to": "להחליף ל",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "אינטרנט",
|
||||||
|
"description": "חיפוש באמצעות מנוע החיפוש שלך (מוגדר בהגדרות)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "יוטיוב",
|
||||||
|
"description": "חפש ביוטיוב"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "טורנטים",
|
||||||
|
"description": "חיפוש אחר טורנטים"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "חיפוש סרטים ותוכניות טלוויזיה באמצעות Overseerr (המודול חייב להיות מאופשר)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "באפשרותך לבחור את סרגל החיפוש באמצעות קיצור הדרך",
|
||||||
|
"switchedSearchEngine": "עבור לחיפוש עם"
|
||||||
}
|
}
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
},
|
},
|
||||||
"lineChart": {
|
"lineChart": {
|
||||||
"title": "מהירות הורדה נוכחית",
|
"title": "מהירות הורדה נוכחית",
|
||||||
"download": "הורדה ממתינה",
|
"download": "הורדה",
|
||||||
"upload": "העלאה ממתינה",
|
"upload": "העלאה",
|
||||||
"timeSpan": "לפני שניות",
|
"timeSpan": "לפני שניות",
|
||||||
"totalDownload": "הורדה ממתינה",
|
"totalDownload": "הורדה ממתינה",
|
||||||
"totalUpload": "העלאה ממתינה"
|
"totalUpload": "העלאה ממתינה"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Sabnzbd",
|
"name": "קבוצת דיון",
|
||||||
"description": "מאמאפשר לך לראות את התור וההיסטוריה של usenet (Sabnzbd או NZBGet), להשהות ולחדש הורדות"
|
"description": "מאפשר צפייה בהיסטוריה, תור ההורדות, עצירה וחידוש הורדות בקבוצות הדיון (Sabnzbd או NZBGet)"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"title": "Bentornato!",
|
"title": "Bentornati!",
|
||||||
"text": "Inserisci la password",
|
"text": "Inserisci la password",
|
||||||
"form": {
|
"form": {
|
||||||
"fields": {
|
"fields": {
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"title": "Password corretta, reindirizzamento..."
|
"title": "Password corretta, reindirizzamento..."
|
||||||
},
|
},
|
||||||
"wrong": {
|
"wrong": {
|
||||||
"title": "Password errata. Per favore, prova di nuovo."
|
"title": "Password errata. Per favore riprova."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"actionIcon": {
|
"actionIcon": {
|
||||||
"tooltip": "Aggiungere un servizio"
|
"tooltip": "Aggiungi un servizio"
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"title": "Aggiungi servizio",
|
"title": "Aggiungi servizio",
|
||||||
"form": {
|
"form": {
|
||||||
"validation": {
|
"validation": {
|
||||||
"invalidUrl": "Inserire un URL valido",
|
"invalidUrl": "Inserire un URL valido",
|
||||||
"noStatusCodeSelected": "Selezionare un codice di stato"
|
"noStatusCodeSelected": "Scegliere uno status code"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tabs": {
|
"tabs": {
|
||||||
@@ -15,28 +15,28 @@
|
|||||||
"title": "Opzioni",
|
"title": "Opzioni",
|
||||||
"form": {
|
"form": {
|
||||||
"serviceName": {
|
"serviceName": {
|
||||||
"label": "Nome del servizio",
|
"label": "Nome servizio",
|
||||||
"placeholder": "Plex"
|
"placeholder": "Plex"
|
||||||
},
|
},
|
||||||
"iconUrl": {
|
"iconUrl": {
|
||||||
"label": "Icona URL"
|
"label": "URL dell'icona"
|
||||||
},
|
},
|
||||||
"serviceUrl": {
|
"serviceUrl": {
|
||||||
"label": "URL del servizio"
|
"label": "URL servizio"
|
||||||
},
|
},
|
||||||
"onClickUrl": {
|
"onClickUrl": {
|
||||||
"label": "URL di destinatione"
|
"label": "URL di destinazione"
|
||||||
},
|
},
|
||||||
"serviceType": {
|
"serviceType": {
|
||||||
"label": "Tipo di servizio",
|
"label": "Tipologia servizio",
|
||||||
"defaultValue": "Altro",
|
"defaultValue": "Altro",
|
||||||
"placeholder": "Scegli Uno"
|
"placeholder": "Sceglierne uno"
|
||||||
},
|
},
|
||||||
"category": {
|
"category": {
|
||||||
"label": "Categoria",
|
"label": "Categoria",
|
||||||
"placeholder": "Selezionare una categoria o crearne una nuova",
|
"placeholder": "Seleziona una categoria o creane una nuova",
|
||||||
"nothingFound": "Non è stato trovato nulla",
|
"nothingFound": "Nessun risultato",
|
||||||
"createLabel": "+ Creare {{query}}"
|
"createLabel": "+ Crea {{query}}"
|
||||||
},
|
},
|
||||||
"integrations": {
|
"integrations": {
|
||||||
"apiKey": {
|
"apiKey": {
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
"noKey": "Chiave non valida"
|
"noKey": "Chiave non valida"
|
||||||
},
|
},
|
||||||
"tip": {
|
"tip": {
|
||||||
"text": "Ottenere la chiave API",
|
"text": "Ottieni la tua chiave API",
|
||||||
"link": "qui."
|
"link": "qui."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -111,16 +111,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"advancedOptions": {
|
"advancedOptions": {
|
||||||
"title": "Opzioni avanzate",
|
"title": "Impostazioni avanzate",
|
||||||
"form": {
|
"form": {
|
||||||
"httpStatusCodes": {
|
"httpStatusCodes": {
|
||||||
"label": "Codici di stato HTTP",
|
"label": "Status Codes HTTP",
|
||||||
"placeholder": "Selezionare i codici di stato validi",
|
"placeholder": "Selezionare status codes validi",
|
||||||
"clearButtonLabel": "Cancella la selezione",
|
"clearButtonLabel": "Elimina selezione",
|
||||||
"nothingFound": "Non è stato trovato nulla"
|
"nothingFound": "Nessun risultato"
|
||||||
},
|
},
|
||||||
"openServiceInNewTab": {
|
"openServiceInNewTab": {
|
||||||
"label": "Aprire il servizio in una nuova scheda"
|
"label": "Apri servizio in una nuova scheda"
|
||||||
},
|
},
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"submit": {
|
"submit": {
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
{
|
{
|
||||||
"modal": {
|
"modal": {
|
||||||
"title": "Modificare un servizio",
|
"title": "Modifica un servizio",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"save": "Salvataggio del servizio"
|
"save": "Salva servizio"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"labels": {
|
"labels": {
|
||||||
"settings": "Impostazioni",
|
"settings": "Impostazioni",
|
||||||
"dangerZone": "Zona di pericolo"
|
"dangerZone": "Danger zone"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"edit": "Modifica",
|
"edit": "Modifica",
|
||||||
"delete": "Cancella"
|
"delete": "Elimina"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
"accordions": {
|
"accordions": {
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"text": "I tuoi download",
|
"text": "I tuoi download",
|
||||||
"torrents": "Scaricamenti di Torrent",
|
"torrents": "I tuoi torrent",
|
||||||
"usenet": "I tuoi scaricamenti di Usenet"
|
"usenet": "I tuoi download di Usenet"
|
||||||
},
|
},
|
||||||
"others": {
|
"others": {
|
||||||
"text": "Altri"
|
"text": "Altri"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Calendario",
|
"name": "Calendario",
|
||||||
"description": "Un calendario per la visualizzazione dei prossimi rilasci. Interagisce con le API di Sonarr e Radarr.",
|
"description": "Un calendario per la visualizzazione delle prossime uscite. Può comunicare con le API di Sonarr e Radarr.",
|
||||||
"settings": {
|
"settings": {
|
||||||
"sundayStart": {
|
"sundayStart": {
|
||||||
"label": "Inizio settimana di domenica"
|
"label": "Inizia la settimana di domenica"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"play": "Avvia",
|
"play": "Riproduci",
|
||||||
"request": "Richiedi"
|
"request": "Richiesta"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Dash.",
|
"name": "Dash.",
|
||||||
"description": "Un modulo per visualizzare i grafici dell'istanza di Dash in esecuzione.",
|
"description": "Un modulo per visualizzare i grafici dell'istanza di Dash. in esecuzione.",
|
||||||
"settings": {
|
"settings": {
|
||||||
"cpuMultiView": {
|
"cpuMultiView": {
|
||||||
"label": "Vista CPU Multi-Core"
|
"label": "Vista CPU Multi-Core"
|
||||||
},
|
},
|
||||||
"storageMultiView": {
|
"storageMultiView": {
|
||||||
"label": "Visualizzazione dell'unità multipla di archiviazione"
|
"label": "Visualizzazione archiviazione Multi-Drive"
|
||||||
},
|
},
|
||||||
"useCompactView": {
|
"useCompactView": {
|
||||||
"label": "Visualizzazione compatta"
|
"label": "Visualizzazione compatta"
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
"card": {
|
"card": {
|
||||||
"title": "Dash.",
|
"title": "Dash.",
|
||||||
"errors": {
|
"errors": {
|
||||||
"noService": "Nessun servizio Dash. trovato. Aggiungerne uno alla dashboard di Homarr o impostare un Dash. nelle opzioni del modulo",
|
"noService": "Nessun servizio Dash. trovato. Aggiungine uno alla dashboard di Homarr o imposta un URL nelle impostazioni del modulo",
|
||||||
"noInformation": "Impossibile acquisire informazioni da dash. - state eseguendo l'ultima versione?"
|
"noInformation": "Impossibile reperire informazioni da dash. - è in esecuzione l'ultima versione?"
|
||||||
},
|
},
|
||||||
"graphs": {
|
"graphs": {
|
||||||
"storage": {
|
"storage": {
|
||||||
@@ -35,8 +35,8 @@
|
|||||||
"title": "Rete",
|
"title": "Rete",
|
||||||
"label": "Rete:",
|
"label": "Rete:",
|
||||||
"metrics": {
|
"metrics": {
|
||||||
"download": "In basso",
|
"download": "Down",
|
||||||
"upload": "Su"
|
"upload": "Up"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "Mostra l'ora e la data corrente in una scheda",
|
"description": "Mostra l'ora e la data corrente in una scheda",
|
||||||
"settings": {
|
"settings": {
|
||||||
"display24HourFormat": {
|
"display24HourFormat": {
|
||||||
"label": "Visualizzazione a tempo pieno (24 ore)"
|
"label": "Visualizza formato 24 ore"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Velocità Di Download",
|
"name": "Velocità Di Download",
|
||||||
"description": "Mostra la velocità di download attuale dei servizi supportati"
|
"description": "Mostra la velocità di download corrente dei servizi supportati"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"table": {
|
"table": {
|
||||||
"header": {
|
"header": {
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"size": "Dimensione",
|
"size": "Dimensione",
|
||||||
"download": "In basso",
|
"download": "Down",
|
||||||
"upload": "Su",
|
"upload": "Up",
|
||||||
"estimatedTimeOfArrival": "ETA",
|
"estimatedTimeOfArrival": "ETA",
|
||||||
"progress": "Avanzamento"
|
"progress": "Avanzamento"
|
||||||
},
|
},
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lineChart": {
|
"lineChart": {
|
||||||
"title": "Velocità di download attuale",
|
"title": "Velocità di download",
|
||||||
"download": "Download: {{download}}",
|
"download": "Download: {{download}}",
|
||||||
"upload": "Upload: {{upload}}",
|
"upload": "Upload: {{upload}}",
|
||||||
"timeSpan": "{{seconds}} secondi fa",
|
"timeSpan": "{{seconds}} secondi fa",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"errors": {
|
"errors": {
|
||||||
"noDownloadClients": {
|
"noDownloadClients": {
|
||||||
"title": "Nessun client di download supportato trovato!",
|
"title": "Nessun client di download supportato trovato!",
|
||||||
"text": "Aggiungere un servizio di download per visualizzare i download correnti"
|
"text": "Aggiungi un servizio di download per visualizzare i tuoi download attuali"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Docker",
|
"name": "Docker",
|
||||||
"description": "Ti permette di gestire facilmente i tuoi container docker"
|
"description": "Gestisci facilmente i tuoi container di docker"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"placeholder": "Ricerca per contenitore o nome dell'immagine"
|
"placeholder": "Ricerca per container nome immagine"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"header": {
|
"header": {
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"state": "Stato"
|
"state": "Stato"
|
||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"portCollapse": "{{ports}} di più"
|
"portCollapse": "{{ports}} altro"
|
||||||
},
|
},
|
||||||
"states": {
|
"states": {
|
||||||
"running": "In esecuzione",
|
"running": "In esecuzione",
|
||||||
@@ -38,13 +38,13 @@
|
|||||||
"title": "Avvia"
|
"title": "Avvia"
|
||||||
},
|
},
|
||||||
"refreshData": {
|
"refreshData": {
|
||||||
"title": "Aggiornare i dati"
|
"title": "Aggiorna dati"
|
||||||
},
|
},
|
||||||
"remove": {
|
"remove": {
|
||||||
"title": "Rimuovi"
|
"title": "Rimuovi"
|
||||||
},
|
},
|
||||||
"addToHomarr": {
|
"addToHomarr": {
|
||||||
"title": "Aggiungi a Homarr"
|
"title": "Aggiungi ad Homarr"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
@@ -61,13 +61,13 @@
|
|||||||
"end": "Riavviato"
|
"end": "Riavviato"
|
||||||
},
|
},
|
||||||
"remove": {
|
"remove": {
|
||||||
"start": "Rimozione",
|
"start": "Rimozione in corso",
|
||||||
"end": "Rimosso"
|
"end": "Rimosso"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"integrationFailed": {
|
"integrationFailed": {
|
||||||
"title": "Integrazione di Docker fallita",
|
"title": "Integrazione Docker fallita",
|
||||||
"message": "Hai dimenticato di montare il socket di docker?"
|
"message": "Hai dimenticato di montare il socket di docker?"
|
||||||
},
|
},
|
||||||
"unknownError": {
|
"unknownError": {
|
||||||
|
|||||||
@@ -8,17 +8,17 @@
|
|||||||
"buttons": {
|
"buttons": {
|
||||||
"askFor": "Richiedi {{title}}",
|
"askFor": "Richiedi {{title}}",
|
||||||
"cancel": "Annulla",
|
"cancel": "Annulla",
|
||||||
"request": "Richiedi"
|
"request": "Richiesta"
|
||||||
},
|
},
|
||||||
"alerts": {
|
"alerts": {
|
||||||
"automaticApproval": {
|
"automaticApproval": {
|
||||||
"title": "Utilizzo della chiave API",
|
"title": "Chiave API in uso",
|
||||||
"text": "Questa richiesta verrà approvata automaticamente"
|
"text": "Questa richiesta verrà approvata automaticamente"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"seasonSelector": {
|
"seasonSelector": {
|
||||||
"caption": "Spuntare le stagioni che si desidera scaricare.",
|
"caption": "Seleziona le stagioni che desideri scaricare",
|
||||||
"table": {
|
"table": {
|
||||||
"header": {
|
"header": {
|
||||||
"season": "Stagione",
|
"season": "Stagione",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Ping",
|
"name": "Ping",
|
||||||
"description": "Consente di verificare se il servizio è attivo o se restituisce un codice di stato HTTP specifico."
|
"description": "Consente di controllare se il servizio è attivo o restituisce uno specifico status code HTTP."
|
||||||
},
|
},
|
||||||
"states": {
|
"states": {
|
||||||
"online": "Online {{response}}",
|
"online": "Online {{response}}",
|
||||||
"offline": "Offline {{response}}",
|
"offline": "Offline {{response}}",
|
||||||
"loading": "Caricamento..."
|
"loading": "Caricamento in corso..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,30 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Barra di ricerca",
|
"name": "Barra di ricerca",
|
||||||
"description": "Barra di ricerca per cercare sul web, su Youtube, su Torrents o su Overseerr"
|
"description": "Barra di ricerca per cercare sul web, Youtube, Torrent o Overseerr"
|
||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Cerca sul web..."
|
"placeholder": "Cerca sul web..."
|
||||||
|
},
|
||||||
|
"switched-to": "Impostato su",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "Web",
|
||||||
|
"description": "Cerca usando il tuo motore di ricerca (definito nelle impostazioni)"
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "Youtube",
|
||||||
|
"description": "Cerca su YouTube"
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "Torrents",
|
||||||
|
"description": "Cerca Torrents"
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": "Cerca film e serie TV con Overseerr (il modulo deve essere abilitato)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "Puoi selezionare la barra di ricerca con la scorciatoia ",
|
||||||
|
"switchedSearchEngine": "Ricerca cambiata con {{searchEngine}}"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Torrent",
|
"name": "Torrent",
|
||||||
"description": "Mostra la velocità di download attuale dei servizi supportati",
|
"description": "Mostra la velocità di download corrente dei servizi supportati",
|
||||||
"settings": {
|
"settings": {
|
||||||
"hideComplete": {
|
"hideComplete": {
|
||||||
"label": "Nascondere i torrent completati"
|
"label": "Nascondi torrent completati"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"header": {
|
"header": {
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"size": "Dimensione",
|
"size": "Dimensione",
|
||||||
"download": "In basso",
|
"download": "Down",
|
||||||
"upload": "Su",
|
"upload": "Up",
|
||||||
"estimatedTimeOfArrival": "ETA",
|
"estimatedTimeOfArrival": "ETA",
|
||||||
"progress": "Avanzamento"
|
"progress": "Avanzamento"
|
||||||
},
|
},
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lineChart": {
|
"lineChart": {
|
||||||
"title": "Velocità di download attuale",
|
"title": "Velocità di download",
|
||||||
"download": "Download: {{download}}",
|
"download": "Download: {{download}}",
|
||||||
"upload": "Upload: {{upload}}",
|
"upload": "Upload: {{upload}}",
|
||||||
"timeSpan": "{{seconds}} secondi fa",
|
"timeSpan": "{{seconds}} secondi fa",
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"errors": {
|
"errors": {
|
||||||
"noDownloadClients": {
|
"noDownloadClients": {
|
||||||
"title": "Nessun client di download supportato trovato!",
|
"title": "Nessun client di download supportato trovato!",
|
||||||
"text": "Aggiungere un servizio di download per visualizzare i download correnti"
|
"text": "Aggiungi un servizio di download per visualizzare i tuoi download attuali"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Ti consente di vedere la coda e la cronologia di usenet (Sabnzbd o NZBGet), mettere in pausa e riprendere i download."
|
"description": "Permette di vedere la coda e la cronologia di usenet (Sabnzbd o NZBGet), di mettere in pausa e riprendere i download"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
"noDownloadClients": {
|
"noDownloadClients": {
|
||||||
"title": "Nessun client di download supportato trovato!",
|
"title": "Nessun client di download supportato trovato!",
|
||||||
"text": "Aggiungere un servizio di download per visualizzare i download correnti"
|
"text": "Aggiungi un servizio di download per visualizzare i tuoi download attuali"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,26 +4,26 @@
|
|||||||
"description": "Consulta il meteo attuale della propria località",
|
"description": "Consulta il meteo attuale della propria località",
|
||||||
"settings": {
|
"settings": {
|
||||||
"displayInFahrenheit": {
|
"displayInFahrenheit": {
|
||||||
"label": "Visualizzazione in Fahrenheit"
|
"label": "Mostra in Fahrenheit"
|
||||||
},
|
},
|
||||||
"location": {
|
"location": {
|
||||||
"label": "Posizione meteo"
|
"label": "Località meteo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"weatherDescriptions": {
|
"weatherDescriptions": {
|
||||||
"clear": "Cancella",
|
"clear": "Sereno",
|
||||||
"mainlyClear": "Sereno",
|
"mainlyClear": "Per lo più sereno",
|
||||||
"fog": "Nebbia",
|
"fog": "Nebbia",
|
||||||
"drizzle": "Pioggerella",
|
"drizzle": "Pioggia leggera",
|
||||||
"freezingDrizzle": "Pioggia gelata",
|
"freezingDrizzle": "Pioggia leggera gelata",
|
||||||
"rain": "Pioggia",
|
"rain": "Pioggia",
|
||||||
"freezingRain": "Pioggia gelata",
|
"freezingRain": "Pioggia gelata",
|
||||||
"snowFall": "Caduta della neve",
|
"snowFall": "Neve",
|
||||||
"snowGrains": "Granelli di neve",
|
"snowGrains": "Neve tonda",
|
||||||
"rainShowers": "Piogge a catinelle",
|
"rainShowers": "Rovesci",
|
||||||
"snowShowers": "Piogge di neve",
|
"snowShowers": "Forti nevicate",
|
||||||
"thunderstorm": "Temporale",
|
"thunderstorm": "Temporale",
|
||||||
"thunderstormWithHail": "Temporale con grandine",
|
"thunderstormWithHail": "Temporale con grandine",
|
||||||
"unknown": "Sconosciuto"
|
"unknown": "Sconosciuto"
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
"title": "Impostazioni",
|
"title": "Impostazioni",
|
||||||
"tooltip": "Impostazioni",
|
"tooltip": "Impostazioni",
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"common": "Comune",
|
"common": "Generale",
|
||||||
"customizations": "Personalizzazioni"
|
"customizations": "Personalizza"
|
||||||
},
|
},
|
||||||
"tips": {
|
"tips": {
|
||||||
"configTip": "Caricate il vostro file di configurazione trascinandolo sulla pagina!"
|
"configTip": "Carica il file di configurazione trascinandolo e rilasciandolo sulla pagina!"
|
||||||
},
|
},
|
||||||
"credits": {
|
"credits": {
|
||||||
"madeWithLove": "Realizzato con ❤️ da @"
|
"madeWithLove": "Realizzato con ❤️ da @"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"label": "Larghezza dell'applicazione"
|
"label": "Larghezza App"
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"label": "Opacità dell'applicazione"
|
"label": "Opacità App"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pageTitle": {
|
"pageTitle": {
|
||||||
"label": "Titolo della pagina",
|
"label": "Titolo pagina",
|
||||||
"placeholder": "Homarr 🦞"
|
"placeholder": "Homarr 🦞"
|
||||||
},
|
},
|
||||||
"logo": {
|
"logo": {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"label": "Ombreggiatura"
|
"label": "Tonalità"
|
||||||
}
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"configSelect": {
|
"configSelect": {
|
||||||
"label": "Caricatore di configurazione"
|
"label": "Carica configurazione"
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"title": "Scegliere il nome della nuova configurazione",
|
"title": "Scegli il nome della nuova configurazione",
|
||||||
"form": {
|
"form": {
|
||||||
"configName": {
|
"configName": {
|
||||||
"label": "Nome della configurazione",
|
"label": "Nome configurazione",
|
||||||
"placeholder": "Il nome della nuova configurazione"
|
"placeholder": "Nuovo nome configurazione"
|
||||||
},
|
},
|
||||||
"submitButton": "Conferma"
|
"submitButton": "Conferma"
|
||||||
},
|
},
|
||||||
@@ -19,21 +19,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"download": "Scarica la configurazione",
|
"download": "Download configurazione",
|
||||||
"delete": {
|
"delete": {
|
||||||
"text": "Cancellare la configurazione",
|
"text": "Elimina configurazione",
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"deleted": {
|
"deleted": {
|
||||||
"title": "Configurazione cancellata",
|
"title": "Configurazione eliminata",
|
||||||
"message": "Configurazione cancellata"
|
"message": "Configurazione eliminata"
|
||||||
},
|
},
|
||||||
"deleteFailed": {
|
"deleteFailed": {
|
||||||
"title": "Cancellazione configurazione fallita",
|
"title": "Eliminazione configurazione fallita",
|
||||||
"message": "Cancellazione configurazione fallita"
|
"message": "Eliminazione configurazione fallita"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"saveCopy": "Salvare una copia"
|
"saveCopy": "Salva una copia"
|
||||||
},
|
},
|
||||||
"dropzone": {
|
"dropzone": {
|
||||||
"notifications": {
|
"notifications": {
|
||||||
@@ -46,10 +46,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"accept": {
|
"accept": {
|
||||||
"text": "Trascinare i file qui per caricare una configurazione. Supporto solo per JSON."
|
"text": "Trascina qui i file per caricare una configurazione. Solo file JSON supportati."
|
||||||
},
|
},
|
||||||
"reject": {
|
"reject": {
|
||||||
"text": "Questo formato di file non è supportato. Caricare solo JSON."
|
"text": "Formato file non supportato. Caricare solo file JSON."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"title": "Modulo abilitatore"
|
"title": "Abilitatore moduli"
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"title": "Motore di ricerca",
|
"title": "Motore di ricerca",
|
||||||
"tips": {
|
"tips": {
|
||||||
"generalTip": "Utilizzate i prefissi !yt e !t davanti alla vostra ricerca per cercare rispettivamente su YouTube o su un Torrent.",
|
"generalTip": "Usa i prefissi !yt e !t di fronte alla tua ricerca per cercare rispettivamente su YouTube o un Torrent.",
|
||||||
"placeholderTip": "%s può essere usato come segnaposto per la ricerca."
|
"placeholderTip": "%s può essere usato come segnaposto per la ricerca."
|
||||||
},
|
},
|
||||||
"customEngine": {
|
"customEngine": {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"label": "Posizionare i widget a sinistra"
|
"label": "Posiziona widget a sinistra"
|
||||||
}
|
}
|
||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "ウェブで検索..."
|
"placeholder": "ウェブで検索..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "オーバーホール",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "ユースネット",
|
"name": "",
|
||||||
"description": "Usenet (Sabnzbd または NZBGet) のキューと履歴を表示し、ダウンロードを一時停止および再開できます。"
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"label": "ロゴマーク"
|
"label": "ロゴマーク"
|
||||||
},
|
},
|
||||||
"favicon": {
|
"favicon": {
|
||||||
"label": "Favicon"
|
"label": "ファビコン"
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"label": "背景"
|
"label": "背景"
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "웹에서 검색..."
|
"placeholder": "웹에서 검색..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "ユースネット",
|
"name": "",
|
||||||
"description": "유즈넷(Sabnzbd 또는 NZBGet) 대기열 및 기록을 보고 다운로드를 일시 중지 및 재개할 수 있습니다."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"label": "로고"
|
"label": "로고"
|
||||||
},
|
},
|
||||||
"favicon": {
|
"favicon": {
|
||||||
"label": "Favicon"
|
"label": "파비콘"
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"label": "배경"
|
"label": "배경"
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Search teh web..."
|
"placeholder": "Search teh web..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "",
|
||||||
"description": "Allowz u 2 c ur usenet (Sabnzbd & NZBGet) queue an histowee, paues an resuem downloadz"
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Doorzoek het web..."
|
"placeholder": "Doorzoek het web..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "",
|
||||||
"description": "Hiermee kunt u uw usenet (Sabnzbd of NZBGet) wachtrij en geschiedenis bekijken, downloads pauzeren en hervatten."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Szukaj w internecie..."
|
"placeholder": "Szukaj w internecie..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Pozwala zobaczyć kolejkę i historię usenetu (Sabnzbd lub NZBGet), wstrzymywać i wznawiać pobieranie."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Pesquisar na Internet..."
|
"placeholder": "Pesquisar na Internet..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "",
|
||||||
"description": "Permite que você veja sua fila e histórico de usenet (Sabnzbd ou NZBGet), pausar e retomar downloads."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Искать в интернете..."
|
"placeholder": "Искать в интернете..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Юнет",
|
"name": "",
|
||||||
"description": "Позволяет просматривать очередь и историю Usenet (Sabnzbd или NZBGet), приостанавливать и возобновлять загрузки."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Preišči splet..."
|
"placeholder": "Preišči splet..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "",
|
||||||
"description": "Omogoča ogled vaše čakalne vrste in zgodovine usenet (Sabnzbd ali NZBGet), zaustavitev in nadaljevanje prenosov."
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Sök på webben..."
|
"placeholder": "Sök på webben..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Usenet",
|
"name": "Usenet",
|
||||||
"description": "Låter dig se din usenet (Sabnzbd eller NZBGet) kö och historik, pausa och återuppta nedladdningar."
|
"description": "Låter dig se din usenet (Sabnzbd eller NZBGet) kö och historik, pausa och återuppta nedladdningar"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Пошук в Інтернеті..."
|
"placeholder": "Пошук в Інтернеті..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Sabnzbd",
|
"name": "Usenet",
|
||||||
"description": "Дозволяє переглядати чергу та історію usenet (Sabnzbd або NZBGet), призупиняти та відновлювати завантаження."
|
"description": "Дозволяє вам бачити вашу чергу та історію в usenet (Sabnzbd або NZBGet), керувати завантаженнями"
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
},
|
},
|
||||||
"favicon": {
|
"favicon": {
|
||||||
"label": "Іконка"
|
"label": "Іконка"
|
||||||
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"label": "Фон"
|
"label": "Фон"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "Tìm kiếm trên web..."
|
"placeholder": "Tìm kiếm trên web..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
"configTip": "Tải tệp cấu hình của bạn lên chỉ bằng cách kéo và thả tệp vào trong trang!"
|
"configTip": "Tải tệp cấu hình của bạn lên chỉ bằng cách kéo và thả tệp vào trong trang!"
|
||||||
},
|
},
|
||||||
"credits": {
|
"credits": {
|
||||||
"madeWithLove": "Được tạo bằng ❤️ bởi @"
|
"madeWithLove": "From @ with ❤️"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"download": "Tải cấu hình xuống",
|
"download": "Tải cấu hình",
|
||||||
"delete": {
|
"delete": {
|
||||||
"text": "Xóa cấu hình",
|
"text": "Xóa cấu hình",
|
||||||
"notifications": {
|
"notifications": {
|
||||||
|
|||||||
@@ -5,5 +5,26 @@
|
|||||||
},
|
},
|
||||||
"input": {
|
"input": {
|
||||||
"placeholder": "在网上搜索..."
|
"placeholder": "在网上搜索..."
|
||||||
|
},
|
||||||
|
"switched-to": "",
|
||||||
|
"searchEngines": {
|
||||||
|
"search": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"youtube": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"torrents": {
|
||||||
|
"name": "",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"overseerr": {
|
||||||
|
"name": "Overseerr",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"tip": "",
|
||||||
|
"switchedSearchEngine": ""
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "用户网",
|
"name": "",
|
||||||
"description": "允许您查看您的用户网(Sabnzbd 或 NZBGet)队列和历史记录,暂停和恢复下载。"
|
"description": ""
|
||||||
},
|
},
|
||||||
"card": {
|
"card": {
|
||||||
"errors": {
|
"errors": {
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"history": "历史"
|
"history": "历史"
|
||||||
},
|
},
|
||||||
"info": {
|
"info": {
|
||||||
"sizeLeft": "左侧大小",
|
"sizeLeft": "左侧尺寸调整",
|
||||||
"paused": "暂停使用"
|
"paused": "暂停使用"
|
||||||
},
|
},
|
||||||
"queue": {
|
"queue": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Accordion, Grid, Paper, Stack, Text, useMantineColorScheme } from '@mantine/core';
|
import { Accordion, Grid, Stack, Title, useMantineColorScheme } from '@mantine/core';
|
||||||
import {
|
import {
|
||||||
closestCenter,
|
closestCenter,
|
||||||
DndContext,
|
DndContext,
|
||||||
@@ -9,16 +9,16 @@ import {
|
|||||||
useSensor,
|
useSensor,
|
||||||
useSensors,
|
useSensors,
|
||||||
} from '@dnd-kit/core';
|
} from '@dnd-kit/core';
|
||||||
|
|
||||||
import { arrayMove, SortableContext } from '@dnd-kit/sortable';
|
import { arrayMove, SortableContext } from '@dnd-kit/sortable';
|
||||||
import { useLocalStorage } from '@mantine/hooks';
|
import { useLocalStorage } from '@mantine/hooks';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
|
import * as Modules from '../../modules';
|
||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
|
|
||||||
import { SortableAppShelfItem, AppShelfItem } from './AppShelfItem';
|
import { AppShelfItem, SortableItem } from './AppShelfItem';
|
||||||
import { ModuleMenu, ModuleWrapper } from '../../modules/moduleWrapper';
|
import { ModuleWrapper } from '../../modules/moduleWrapper';
|
||||||
import { UsenetModule, TorrentsModule } from '../../modules';
|
import { UsenetModule, TorrentsModule } from '../../modules';
|
||||||
import TorrentsComponent from '../../modules/torrents/TorrentsModule';
|
|
||||||
import { UsenetComponent } from '../../modules/usenet/UsenetModule';
|
|
||||||
|
|
||||||
const AppShelf = (props: any) => {
|
const AppShelf = (props: any) => {
|
||||||
const { config, setConfig } = useConfig();
|
const { config, setConfig } = useConfig();
|
||||||
@@ -79,13 +79,14 @@ const AppShelf = (props: any) => {
|
|||||||
const getItems = (filter?: string) => {
|
const getItems = (filter?: string) => {
|
||||||
// If filter is not set, return all the services without a category or a null category
|
// If filter is not set, return all the services without a category or a null category
|
||||||
let filtered = config.services;
|
let filtered = config.services;
|
||||||
|
const modules = Object.values(Modules).map((module) => module);
|
||||||
|
|
||||||
if (!filter) {
|
if (!filter) {
|
||||||
filtered = config.services.filter((e) => !e.category || e.category === null);
|
filtered = config.services.filter((e) => !e.category || e.category === null);
|
||||||
}
|
}
|
||||||
if (filter) {
|
if (filter) {
|
||||||
filtered = config.services.filter((e) => e.category === filter);
|
filtered = config.services.filter((e) => e.category === filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DndContext
|
<DndContext
|
||||||
sensors={sensors}
|
sensors={sensors}
|
||||||
@@ -94,17 +95,12 @@ const AppShelf = (props: any) => {
|
|||||||
onDragEnd={handleDragEnd}
|
onDragEnd={handleDragEnd}
|
||||||
>
|
>
|
||||||
<SortableContext items={config.services}>
|
<SortableContext items={config.services}>
|
||||||
<Grid gutter="xl" align="center">
|
<Grid gutter="lg" align="center">
|
||||||
{filtered.map((service) => (
|
{filtered.map((service) => (
|
||||||
<Grid.Col
|
<Grid.Col key={service.id} span="content">
|
||||||
key={service.id}
|
<SortableItem service={service} key={service.id} id={service.id}>
|
||||||
span={6}
|
<AppShelfItem service={service} />
|
||||||
xl={config.settings.appCardWidth || 2}
|
</SortableItem>
|
||||||
xs={4}
|
|
||||||
sm={3}
|
|
||||||
md={3}
|
|
||||||
>
|
|
||||||
<SortableAppShelfItem service={service} key={service.id} id={service.id} />
|
|
||||||
</Grid.Col>
|
</Grid.Col>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -123,18 +119,7 @@ const AppShelf = (props: any) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (categoryList.length > 0) {
|
|
||||||
const noCategory = config.services.filter(
|
|
||||||
(e) => e.category === undefined || e.category === null
|
|
||||||
);
|
|
||||||
|
|
||||||
const torrentEnabled = config.modules?.[TorrentsModule.id]?.enabled ?? false;
|
|
||||||
const usenetEnabled = config.modules?.[UsenetModule.id]?.enabled ?? false;
|
|
||||||
|
|
||||||
const downloadEnabled = usenetEnabled || torrentEnabled;
|
|
||||||
// Create an item with 0: true, 1: true, 2: true... For each category
|
|
||||||
return (
|
return (
|
||||||
// TODO: Style accordion so that the bar is transparent to the user settings
|
|
||||||
<Stack>
|
<Stack>
|
||||||
<Accordion
|
<Accordion
|
||||||
variant="separated"
|
variant="separated"
|
||||||
@@ -157,66 +142,13 @@ const AppShelf = (props: any) => {
|
|||||||
key={category}
|
key={category}
|
||||||
value={idx.toString()}
|
value={idx.toString()}
|
||||||
>
|
>
|
||||||
<Accordion.Control>{category}</Accordion.Control>
|
<Accordion.Control>
|
||||||
|
<Title order={5}>{category}</Title>
|
||||||
|
</Accordion.Control>
|
||||||
<Accordion.Panel>{getItems(category)}</Accordion.Panel>
|
<Accordion.Panel>{getItems(category)}</Accordion.Panel>
|
||||||
</Accordion.Item>
|
</Accordion.Item>
|
||||||
))}
|
))}
|
||||||
{/* Return the item for all services without category */}
|
|
||||||
{noCategory && noCategory.length > 0 ? (
|
|
||||||
<Accordion.Item
|
|
||||||
style={{
|
|
||||||
background: `rgba(${colorScheme === 'dark' ? '32, 33, 35,' : '255, 255, 255,'} \
|
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
|
||||||
borderColor: `rgba(${colorScheme === 'dark' ? '32, 33, 35,' : '233, 236, 239,'} \
|
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
|
||||||
}}
|
|
||||||
key="Other"
|
|
||||||
value="Other"
|
|
||||||
>
|
|
||||||
<Accordion.Control>{t('accordions.others.text')}</Accordion.Control>
|
|
||||||
<Accordion.Panel>{getItems()}</Accordion.Panel>
|
|
||||||
</Accordion.Item>
|
|
||||||
) : null}
|
|
||||||
{downloadEnabled ? (
|
|
||||||
<Accordion.Item
|
|
||||||
style={{
|
|
||||||
color: `rgba(${colorScheme === 'dark' ? '32, 33, 35,' : '255, 255, 255,'} \
|
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
|
||||||
background: `rgba(${colorScheme === 'dark' ? '32, 33, 35,' : '255, 255, 255,'} \
|
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
|
||||||
borderColor: `rgba(${colorScheme === 'dark' ? '32, 33, 35,' : '233, 236, 239,'} \
|
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
|
||||||
}}
|
|
||||||
key="Downloads"
|
|
||||||
value="Your downloads"
|
|
||||||
>
|
|
||||||
<Accordion.Control>{t('accordions.downloads.text')}</Accordion.Control>
|
|
||||||
<Accordion.Panel>
|
|
||||||
<Paper radius="lg" style={{ position: 'relative' }}>
|
|
||||||
{torrentEnabled && (
|
|
||||||
<>
|
|
||||||
<Text>{t('accordions.downloads.torrents')}</Text>
|
|
||||||
<ModuleMenu module={TorrentsModule} hovered />
|
|
||||||
<TorrentsComponent />
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{usenetEnabled && (
|
|
||||||
<>
|
|
||||||
<Text mt="md">{t('accordions.downloads.usenet')}</Text>
|
|
||||||
<ModuleMenu module={UsenetModule} hovered />
|
|
||||||
<UsenetComponent />
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Paper>
|
|
||||||
</Accordion.Panel>
|
|
||||||
</Accordion.Item>
|
|
||||||
) : null}
|
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</Stack>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return (
|
|
||||||
<Stack>
|
|
||||||
{getItems()}
|
{getItems()}
|
||||||
<ModuleWrapper mt="xl" module={TorrentsModule} />
|
<ModuleWrapper mt="xl" module={TorrentsModule} />
|
||||||
<ModuleWrapper mt="xl" module={UsenetModule} />
|
<ModuleWrapper mt="xl" module={UsenetModule} />
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const useStyles = createStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export function SortableAppShelfItem(props: any) {
|
export function SortableItem(props: any) {
|
||||||
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
|
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
|
||||||
id: props.id,
|
id: props.id,
|
||||||
});
|
});
|
||||||
@@ -43,7 +43,7 @@ export function SortableAppShelfItem(props: any) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={setNodeRef} style={style} {...attributes} {...listeners}>
|
<div ref={setNodeRef} style={style} {...attributes} {...listeners}>
|
||||||
<AppShelfItem service={props.service} />
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -75,6 +75,8 @@ export function AppShelfItem(props: any) {
|
|||||||
shadow="md"
|
shadow="md"
|
||||||
className={classes.item}
|
className={classes.item}
|
||||||
style={{
|
style={{
|
||||||
|
// Use the grab cursor when hovering over the card
|
||||||
|
cursor: hovering ? 'grab' : 'auto',
|
||||||
background: `rgba(${colorScheme === 'dark' ? '37, 38, 43,' : '255, 255, 255,'} \
|
background: `rgba(${colorScheme === 'dark' ? '37, 38, 43,' : '255, 255, 255,'} \
|
||||||
${(config.settings.appOpacity || 100) / 100}`,
|
${(config.settings.appOpacity || 100) / 100}`,
|
||||||
borderColor: `rgba(${colorScheme === 'dark' ? '37, 38, 43,' : '233, 236, 239,'} \
|
borderColor: `rgba(${colorScheme === 'dark' ? '37, 38, 43,' : '233, 236, 239,'} \
|
||||||
@@ -105,14 +107,14 @@ export function AppShelfItem(props: any) {
|
|||||||
<AppShelfMenu service={service} />
|
<AppShelfMenu service={service} />
|
||||||
</motion.div>
|
</motion.div>
|
||||||
</Card.Section>
|
</Card.Section>
|
||||||
<Center>
|
|
||||||
<Card.Section>
|
<Card.Section>
|
||||||
|
<Center>
|
||||||
<AspectRatio
|
<AspectRatio
|
||||||
ratio={3 / 5}
|
ratio={3 / 5}
|
||||||
m="xl"
|
m="lg"
|
||||||
style={{
|
style={{
|
||||||
width: 150,
|
height: 75 * ((config.settings.appCardWidth ?? 1) * 1.2),
|
||||||
height: 90,
|
width: 75 * ((config.settings.appCardWidth ?? 1) * 2),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<motion.i
|
<motion.i
|
||||||
@@ -126,8 +128,8 @@ export function AppShelfItem(props: any) {
|
|||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
styles={{ root: { cursor: 'pointer' } }}
|
styles={{ root: { cursor: 'pointer' } }}
|
||||||
width={80}
|
width={75 * ((config.settings.appCardWidth ?? 1) * 1.2)}
|
||||||
height={80}
|
height={75 * ((config.settings.appCardWidth ?? 1) * 1.2)}
|
||||||
src={service.icon}
|
src={service.icon}
|
||||||
fit="contain"
|
fit="contain"
|
||||||
/>
|
/>
|
||||||
@@ -135,8 +137,8 @@ export function AppShelfItem(props: any) {
|
|||||||
</motion.i>
|
</motion.i>
|
||||||
</AspectRatio>
|
</AspectRatio>
|
||||||
{service.ping !== false && <PingComponent url={service.url} status={service.status} />}
|
{service.ping !== false && <PingComponent url={service.url} status={service.status} />}
|
||||||
</Card.Section>
|
|
||||||
</Center>
|
</Center>
|
||||||
|
</Card.Section>
|
||||||
</Card>
|
</Card>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,11 +21,11 @@ export function AppCardWidthSelector() {
|
|||||||
<Stack spacing="xs">
|
<Stack spacing="xs">
|
||||||
<Text>{t('label')}</Text>
|
<Text>{t('label')}</Text>
|
||||||
<Slider
|
<Slider
|
||||||
label={null}
|
label={config.settings.appCardWidth?.toFixed(1)}
|
||||||
defaultValue={config.settings.appCardWidth}
|
defaultValue={config.settings.appCardWidth ?? 0.7}
|
||||||
step={0.2}
|
step={0.1}
|
||||||
min={0.8}
|
min={0.3}
|
||||||
max={2}
|
max={1.2}
|
||||||
styles={{ markLabel: { fontSize: 'xx-small' } }}
|
styles={{ markLabel: { fontSize: 'xx-small' } }}
|
||||||
onChange={(value) => setappCardWidth(value)}
|
onChange={(value) => setappCardWidth(value)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export function Logo({ style, withoutText }: any) {
|
|||||||
const { primaryColor, secondaryColor } = useColorTheme();
|
const { primaryColor, secondaryColor } = useColorTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Group spacing="xs">
|
<Group spacing="xs" noWrap>
|
||||||
<Image
|
<Image
|
||||||
width={50}
|
width={50}
|
||||||
src={config.settings.logo || '/imgs/logo/logo.png'}
|
src={config.settings.logo || '/imgs/logo/logo.png'}
|
||||||
@@ -18,13 +18,6 @@ export function Logo({ style, withoutText }: any) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{withoutText ? null : (
|
{withoutText ? null : (
|
||||||
<NextLink
|
|
||||||
href="/"
|
|
||||||
style={{
|
|
||||||
textDecoration: 'none',
|
|
||||||
position: 'relative',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Text
|
<Text
|
||||||
sx={style}
|
sx={style}
|
||||||
weight="bold"
|
weight="bold"
|
||||||
@@ -37,7 +30,6 @@ export function Logo({ style, withoutText }: any) {
|
|||||||
>
|
>
|
||||||
{config.settings.title || 'Homarr'}
|
{config.settings.title || 'Homarr'}
|
||||||
</Text>
|
</Text>
|
||||||
</NextLink>
|
|
||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,27 +1,16 @@
|
|||||||
import { Box, createStyles, Group, Header as Head, useMantineColorScheme } from '@mantine/core';
|
import { Group, Header as Head, useMantineColorScheme, useMantineTheme } from '@mantine/core';
|
||||||
|
import { useViewportSize } from '@mantine/hooks';
|
||||||
import { AddItemShelfButton } from '../../AppShelf/AddAppShelfItem';
|
import { AddItemShelfButton } from '../../AppShelf/AddAppShelfItem';
|
||||||
|
|
||||||
import DockerMenuButton from '../../../modules/docker/DockerModule';
|
import DockerMenuButton from '../../../modules/docker/DockerModule';
|
||||||
import SearchBar from '../../../modules/search/SearchModule';
|
|
||||||
import { SettingsMenuButton } from '../../Settings/SettingsMenu';
|
import { SettingsMenuButton } from '../../Settings/SettingsMenu';
|
||||||
import { Logo } from '../Logo';
|
import { Logo } from '../Logo';
|
||||||
import { useConfig } from '../../../tools/state';
|
import { useConfig } from '../../../tools/state';
|
||||||
|
import { SearchModuleComponent } from '../../../modules/search/SearchModule';
|
||||||
const useStyles = createStyles((theme) => ({
|
|
||||||
hide: {
|
|
||||||
[theme.fn.smallerThan('xs')]: {
|
|
||||||
display: 'none',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
burger: {
|
|
||||||
[theme.fn.largerThan('sm')]: {
|
|
||||||
display: 'none',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
export function Header(props: any) {
|
export function Header(props: any) {
|
||||||
const { classes } = useStyles();
|
const { width } = useViewportSize();
|
||||||
|
const MIN_WIDTH_MOBILE = useMantineTheme().breakpoints.xs;
|
||||||
const { config } = useConfig();
|
const { config } = useConfig();
|
||||||
const { colorScheme } = useMantineColorScheme();
|
const { colorScheme } = useMantineColorScheme();
|
||||||
|
|
||||||
@@ -35,12 +24,10 @@ export function Header(props: any) {
|
|||||||
${(config.settings.appOpacity || 100) / 100}`,
|
${(config.settings.appOpacity || 100) / 100}`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Group p="xs" position="apart">
|
<Group p="xs" noWrap grow>
|
||||||
<Box className={classes.hide}>
|
{width > MIN_WIDTH_MOBILE && <Logo style={{ fontSize: 22 }} />}
|
||||||
<Logo style={{ fontSize: 22 }} />
|
<Group position="right" noWrap>
|
||||||
</Box>
|
<SearchModuleComponent />
|
||||||
<Group noWrap>
|
|
||||||
<SearchBar />
|
|
||||||
<DockerMenuButton />
|
<DockerMenuButton />
|
||||||
<SettingsMenuButton />
|
<SettingsMenuButton />
|
||||||
<AddItemShelfButton />
|
<AddItemShelfButton />
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import {
|
|||||||
ScrollArea,
|
ScrollArea,
|
||||||
createStyles,
|
createStyles,
|
||||||
useMantineTheme,
|
useMantineTheme,
|
||||||
|
Space,
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Calendar } from '@mantine/dates';
|
import { Calendar } from '@mantine/dates';
|
||||||
@@ -143,12 +144,6 @@ export default function CalendarComponent(props: any) {
|
|||||||
margin: 1,
|
margin: 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
styles={{
|
|
||||||
calendarHeader: {
|
|
||||||
marginRight: 40,
|
|
||||||
marginLeft: 40,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
allowLevelChange={false}
|
allowLevelChange={false}
|
||||||
dayClassName={(date, modifiers) => cx({ [classes.weekend]: modifiers.weekend })}
|
dayClassName={(date, modifiers) => cx({ [classes.weekend]: modifiers.weekend })}
|
||||||
renderDay={(renderdate) => (
|
renderDay={(renderdate) => (
|
||||||
@@ -278,10 +273,11 @@ function DayComponent(props: any) {
|
|||||||
scrollbarSize={5}
|
scrollbarSize={5}
|
||||||
style={{
|
style={{
|
||||||
height:
|
height:
|
||||||
totalFiltered.slice(0, 2).length > 1 ? totalFiltered.slice(0, 2).length * 150 : 200,
|
totalFiltered.slice(0, 2).length > 1 ? totalFiltered.slice(0, 2).length * 150 : 220,
|
||||||
width: 400,
|
width: 400,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Space mt={5} />
|
||||||
{sonarrFiltered.map((media: any, index: number) => (
|
{sonarrFiltered.map((media: any, index: number) => (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<SonarrMediaDisplay media={media} />
|
<SonarrMediaDisplay media={media} />
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export function MediaDisplay({ media }: { media: IMedia }) {
|
|||||||
const { t } = useTranslation('modules/common-media-cards');
|
const { t } = useTranslation('modules/common-media-cards');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Group mr="xs" align="stretch" noWrap style={{ maxHeight: 200 }}>
|
<Group mr="xs" align="stretch" noWrap style={{ maxHeight: 200 }} spacing="xs">
|
||||||
<Image src={media.poster} height={200} width={150} radius="md" fit="cover" />
|
<Image src={media.poster} height={200} width={150} radius="md" fit="cover" />
|
||||||
<Stack justify="space-around">
|
<Stack justify="space-around">
|
||||||
<Stack spacing="sm">
|
<Stack spacing="sm">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const DashdotModule = asModule({
|
|||||||
id: 'dashdot',
|
id: 'dashdot',
|
||||||
});
|
});
|
||||||
|
|
||||||
const useStyles = createStyles((theme, _params) => ({
|
const useStyles = createStyles((theme, _params, getRef) => ({
|
||||||
heading: {
|
heading: {
|
||||||
marginTop: 0,
|
marginTop: 0,
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
@@ -70,6 +70,21 @@ const useStyles = createStyles((theme, _params) => ({
|
|||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
height: '140px',
|
height: '140px',
|
||||||
borderRadius: theme.radius.lg,
|
borderRadius: theme.radius.lg,
|
||||||
|
border: 'none',
|
||||||
|
colorScheme: 'none',
|
||||||
|
},
|
||||||
|
graphTitle: {
|
||||||
|
ref: getRef('graphTitle'),
|
||||||
|
position: 'absolute',
|
||||||
|
right: 0,
|
||||||
|
opacity: 0,
|
||||||
|
transition: 'opacity .1s ease-in-out',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
},
|
||||||
|
graphStack: {
|
||||||
|
[`&:hover .${getRef('graphTitle')}`]: {
|
||||||
|
opacity: 0.5,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -221,6 +236,7 @@ export function DashdotComponent() {
|
|||||||
|
|
||||||
{graphs.map((graph) => (
|
{graphs.map((graph) => (
|
||||||
<Stack
|
<Stack
|
||||||
|
className={classes.graphStack}
|
||||||
style={
|
style={
|
||||||
isCompact
|
isCompact
|
||||||
? {
|
? {
|
||||||
@@ -230,7 +246,7 @@ export function DashdotComponent() {
|
|||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Title style={{ position: 'absolute', right: 0 }} order={4} mt={10} mr={25}>
|
<Title className={classes.graphTitle} order={4} mt={10} mr={25}>
|
||||||
{graph.name}
|
{graph.name}
|
||||||
</Title>
|
</Title>
|
||||||
<iframe
|
<iframe
|
||||||
@@ -248,7 +264,7 @@ export function DashdotComponent() {
|
|||||||
.join('&')}`
|
.join('&')}`
|
||||||
: ''
|
: ''
|
||||||
}`}
|
}`}
|
||||||
frameBorder="0"
|
allowTransparency
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||||
import { Button, Group, TextInput, Title } from '@mantine/core';
|
import { Button, Group } from '@mantine/core';
|
||||||
import { closeAllModals, closeModal, openModal } from '@mantine/modals';
|
import { closeModal, openModal } from '@mantine/modals';
|
||||||
import { showNotification, updateNotification } from '@mantine/notifications';
|
import { showNotification, updateNotification } from '@mantine/notifications';
|
||||||
import {
|
import {
|
||||||
IconCheck,
|
IconCheck,
|
||||||
@@ -72,7 +72,7 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction
|
|||||||
const { config, setConfig } = useConfig();
|
const { config, setConfig } = useConfig();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Group>
|
<Group spacing="xs">
|
||||||
<Button
|
<Button
|
||||||
leftIcon={<IconRefresh />}
|
leftIcon={<IconRefresh />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Table, Checkbox, Group, Badge, createStyles, ScrollArea, TextInput } from '@mantine/core';
|
import { Table, Checkbox, Group, Badge, createStyles, ScrollArea, TextInput, useMantineTheme } from '@mantine/core';
|
||||||
|
import { useElementSize } from '@mantine/hooks';
|
||||||
import { IconSearch } from '@tabler/icons';
|
import { IconSearch } from '@tabler/icons';
|
||||||
import Dockerode from 'dockerode';
|
import Dockerode from 'dockerode';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
@@ -23,9 +24,11 @@ export default function DockerTable({
|
|||||||
containers: Dockerode.ContainerInfo[];
|
containers: Dockerode.ContainerInfo[];
|
||||||
selection: Dockerode.ContainerInfo[];
|
selection: Dockerode.ContainerInfo[];
|
||||||
}) {
|
}) {
|
||||||
|
const MIN_WIDTH_MOBILE = useMantineTheme().breakpoints.xs;
|
||||||
const [usedContainers, setContainers] = useState<Dockerode.ContainerInfo[]>(containers);
|
const [usedContainers, setContainers] = useState<Dockerode.ContainerInfo[]>(containers);
|
||||||
const { classes, cx } = useStyles();
|
const { classes, cx } = useStyles();
|
||||||
const [search, setSearch] = useState('');
|
const [search, setSearch] = useState('');
|
||||||
|
const { ref, width, height } = useElementSize();
|
||||||
|
|
||||||
const { t } = useTranslation('modules/docker');
|
const { t } = useTranslation('modules/docker');
|
||||||
|
|
||||||
@@ -67,7 +70,8 @@ export default function DockerTable({
|
|||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td>{element.Names[0].replace('/', '')}</td>
|
<td>{element.Names[0].replace('/', '')}</td>
|
||||||
<td>{element.Image}</td>
|
{width > MIN_WIDTH_MOBILE && <td>{element.Image}</td>}
|
||||||
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
<td>
|
<td>
|
||||||
<Group>
|
<Group>
|
||||||
{element.Ports.sort((a, b) => a.PrivatePort - b.PrivatePort)
|
{element.Ports.sort((a, b) => a.PrivatePort - b.PrivatePort)
|
||||||
@@ -89,6 +93,7 @@ export default function DockerTable({
|
|||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
</td>
|
</td>
|
||||||
|
)}
|
||||||
<td>
|
<td>
|
||||||
<ContainerState state={element.State} />
|
<ContainerState state={element.State} />
|
||||||
</td>
|
</td>
|
||||||
@@ -106,7 +111,7 @@ export default function DockerTable({
|
|||||||
onChange={handleSearchChange}
|
onChange={handleSearchChange}
|
||||||
disabled={usedContainers.length === 0}
|
disabled={usedContainers.length === 0}
|
||||||
/>
|
/>
|
||||||
<Table captionSide="bottom" highlightOnHover sx={{ minWidth: 800 }} verticalSpacing="sm">
|
<Table ref={ref} captionSide="bottom" highlightOnHover verticalSpacing="sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style={{ width: 40 }}>
|
<th style={{ width: 40 }}>
|
||||||
@@ -119,8 +124,8 @@ export default function DockerTable({
|
|||||||
/>
|
/>
|
||||||
</th>
|
</th>
|
||||||
<th>{t('table.header.name')}</th>
|
<th>{t('table.header.name')}</th>
|
||||||
<th>{t('table.header.image')}</th>
|
{width > MIN_WIDTH_MOBILE ? <th>{t('table.header.image')}</th> : null}
|
||||||
<th>{t('table.header.ports')}</th>
|
{width > MIN_WIDTH_MOBILE ? <th>{t('table.header.ports')}</th> : null}
|
||||||
<th>{t('table.header.state')}</th>
|
<th>{t('table.header.state')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ export function TvRequestModal({
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>{rows}</tbody>
|
<tbody>{rows}</tbody>
|
||||||
</Table>
|
</Table>
|
||||||
<Group>
|
<Group position="center">
|
||||||
<Button variant="outline" color="gray" onClick={() => setOpened(false)}>
|
<Button variant="outline" color="gray" onClick={() => setOpened(false)}>
|
||||||
{t('popup.item.buttons.cancel')}
|
{t('popup.item.buttons.cancel')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,236 +1,159 @@
|
|||||||
import { Kbd, createStyles, Autocomplete, Popover, ScrollArea, Divider } from '@mantine/core';
|
|
||||||
import { useClickOutside, useDebouncedValue, useHotkeys } from '@mantine/hooks';
|
|
||||||
import { useForm } from '@mantine/form';
|
|
||||||
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
||||||
import {
|
import {
|
||||||
IconSearch as Search,
|
ActionIcon,
|
||||||
IconBrandYoutube as BrandYoutube,
|
Box,
|
||||||
IconDownload as Download,
|
createStyles,
|
||||||
IconMovie,
|
Divider,
|
||||||
} from '@tabler/icons';
|
Kbd,
|
||||||
|
Menu,
|
||||||
|
Popover,
|
||||||
|
ScrollArea,
|
||||||
|
TextInput,
|
||||||
|
Tooltip,
|
||||||
|
} from '@mantine/core';
|
||||||
|
import { IconSearch, IconBrandYoutube, IconDownload, IconMovie } from '@tabler/icons';
|
||||||
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
|
import { useDebouncedValue, useHotkeys } from '@mantine/hooks';
|
||||||
|
import { showNotification } from '@mantine/notifications';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { showNotification } from '@mantine/notifications';
|
|
||||||
import { useConfig } from '../../tools/state';
|
|
||||||
import { IModule } from '../ModuleTypes';
|
import { IModule } from '../ModuleTypes';
|
||||||
|
import { useConfig } from '../../tools/state';
|
||||||
import { OverseerrModule } from '../overseerr';
|
import { OverseerrModule } from '../overseerr';
|
||||||
|
import Tip from '../../components/layout/Tip';
|
||||||
import { OverseerrMediaDisplay } from '../common';
|
import { OverseerrMediaDisplay } from '../common';
|
||||||
import SmallServiceItem from '../../components/AppShelf/SmallServiceItem';
|
|
||||||
|
|
||||||
const useStyles = createStyles((theme) => ({
|
|
||||||
hide: {
|
|
||||||
[theme.fn.smallerThan('sm')]: {
|
|
||||||
display: 'none',
|
|
||||||
},
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
export const SearchModule: IModule = {
|
export const SearchModule: IModule = {
|
||||||
title: 'Search',
|
title: 'Search',
|
||||||
icon: Search,
|
icon: IconSearch,
|
||||||
component: SearchBar,
|
component: SearchModuleComponent,
|
||||||
id: 'search',
|
id: 'search',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function SearchBar(props: any) {
|
interface ItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
||||||
const { classes, cx } = useStyles();
|
label: string;
|
||||||
// Config
|
disabled: boolean;
|
||||||
|
value: string;
|
||||||
|
description: string;
|
||||||
|
icon: React.ReactNode;
|
||||||
|
url: string;
|
||||||
|
shortcut: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const useStyles = createStyles((theme) => ({
|
||||||
|
item: {
|
||||||
|
'&[data-hovered]': {
|
||||||
|
backgroundColor: theme.colors[theme.primaryColor][theme.fn.primaryShade()],
|
||||||
|
color: theme.white,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
export function SearchModuleComponent() {
|
||||||
const { config } = useConfig();
|
const { config } = useConfig();
|
||||||
const isModuleEnabled = config.modules?.[SearchModule.id]?.enabled ?? false;
|
const { t } = useTranslation('modules/search');
|
||||||
|
const [searchQuery, setSearchQuery] = useState('');
|
||||||
|
const [debounced, cancel] = useDebouncedValue(searchQuery, 250);
|
||||||
|
const queryUrl = config.settings.searchUrl;
|
||||||
const isOverseerrEnabled = config.modules?.[OverseerrModule.id]?.enabled ?? false;
|
const isOverseerrEnabled = config.modules?.[OverseerrModule.id]?.enabled ?? false;
|
||||||
const OverseerrService = config.services.find(
|
const OverseerrService = config.services.find(
|
||||||
(service) => service.type === 'Overseerr' || service.type === 'Jellyseerr'
|
(service) => service.type === 'Overseerr' || service.type === 'Jellyseerr'
|
||||||
);
|
);
|
||||||
const queryUrl = config.settings.searchUrl ?? 'https://www.google.com/search?q=';
|
|
||||||
|
|
||||||
const [OverseerrResults, setOverseerrResults] = useState<any[]>([]);
|
const searchEnginesList: ItemProps[] = [
|
||||||
const [loading, setLoading] = useState<boolean>(false);
|
{
|
||||||
const [icon, setIcon] = useState(<Search />);
|
icon: <IconSearch />,
|
||||||
const [results, setResults] = useState<any[]>([]);
|
disabled: false,
|
||||||
const [opened, setOpened] = useState(false);
|
label: t('searchEngines.search.name'),
|
||||||
const ref = useClickOutside(() => setOpened(false));
|
value: 'search',
|
||||||
|
description: t('searchEngines.search.description'),
|
||||||
const textInput = useRef<HTMLInputElement>();
|
url: queryUrl,
|
||||||
useHotkeys([['ctrl+K', () => textInput.current && textInput.current.focus()]]);
|
shortcut: 's',
|
||||||
|
|
||||||
const form = useForm({
|
|
||||||
initialValues: {
|
|
||||||
query: '',
|
|
||||||
},
|
},
|
||||||
});
|
{
|
||||||
const [debounced, cancel] = useDebouncedValue(form.values.query, 250);
|
icon: <IconDownload />,
|
||||||
const { t } = useTranslation('modules/search');
|
disabled: false,
|
||||||
|
label: t('searchEngines.torrents.name'),
|
||||||
|
value: 'torrents',
|
||||||
|
description: t('searchEngines.torrents.description'),
|
||||||
|
url: 'https://www.torrentdownloads.me/search/?search=',
|
||||||
|
shortcut: 't',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: <IconBrandYoutube />,
|
||||||
|
disabled: false,
|
||||||
|
label: t('searchEngines.youtube.name'),
|
||||||
|
value: 'youtube',
|
||||||
|
description: t('searchEngines.youtube.description'),
|
||||||
|
url: 'https://www.youtube.com/results?search_query=',
|
||||||
|
shortcut: 'y',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: <IconMovie />,
|
||||||
|
disabled: !(isOverseerrEnabled === true && OverseerrService !== undefined),
|
||||||
|
label: t('searchEngines.overseerr.name'),
|
||||||
|
value: 'overseerr',
|
||||||
|
description: t('searchEngines.overseerr.description'),
|
||||||
|
url: `${OverseerrService?.url}search?query=`,
|
||||||
|
shortcut: 'm',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const [selectedSearchEngine, setSearchEngine] = useState<ItemProps>(searchEnginesList[0]);
|
||||||
|
const textInput = useRef<HTMLInputElement>(null);
|
||||||
|
useHotkeys([['mod+K', () => textInput.current && textInput.current.focus()]]);
|
||||||
|
const { classes } = useStyles();
|
||||||
|
const openInNewTab = config.settings.searchNewTab ? '_blank' : '_self';
|
||||||
|
const [OverseerrResults, setOverseerrResults] = useState<any[]>([]);
|
||||||
|
const [opened, setOpened] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (OverseerrService === undefined && isOverseerrEnabled) {
|
if (debounced !== '' && selectedSearchEngine.value === 'overseerr' && searchQuery.length > 3) {
|
||||||
showNotification({
|
axios.get(`/api/modules/overseerr?query=${searchQuery}`).then((res) => {
|
||||||
title: 'Overseerr integration',
|
|
||||||
message:
|
|
||||||
'Module enabled but no service is configured with the type "Overseerr" / "Jellyseerr"',
|
|
||||||
color: 'red',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, [OverseerrService, isOverseerrEnabled]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (
|
|
||||||
form.values.query !== debounced ||
|
|
||||||
form.values.query === '' ||
|
|
||||||
(form.values.query.startsWith('!') && !form.values.query.startsWith('!os'))
|
|
||||||
) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (form.values.query.startsWith('!os')) {
|
|
||||||
axios
|
|
||||||
.get(`/api/modules/overseerr?query=${form.values.query.replace('!os', '').trim()}`)
|
|
||||||
.then((res) => {
|
|
||||||
setOverseerrResults(res.data.results ?? []);
|
setOverseerrResults(res.data.results ?? []);
|
||||||
setLoading(false);
|
|
||||||
});
|
});
|
||||||
setLoading(true);
|
|
||||||
} else {
|
|
||||||
setOverseerrResults([]);
|
|
||||||
axios
|
|
||||||
.get(`/api/modules/search?q=${form.values.query}`)
|
|
||||||
.then((res) => setResults(res.data ?? []));
|
|
||||||
}
|
}
|
||||||
}, [debounced]);
|
}, [debounced]);
|
||||||
|
|
||||||
|
const isModuleEnabled = config.modules?.[SearchModule.id]?.enabled ?? false;
|
||||||
if (!isModuleEnabled) {
|
if (!isModuleEnabled) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// Match all the services that contain the query in their name if the query is not empty
|
//TODO: Fix the bug where clicking anything inside the Modal to ask for a movie
|
||||||
const matchingServices = config.services.filter((service) => {
|
// will close it (Because it closes the underlying Popover)
|
||||||
if (form.values.query === '' || form.values.query === undefined) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return service.name.toLowerCase().includes(form.values.query.toLowerCase());
|
|
||||||
});
|
|
||||||
const autocompleteData = matchingServices.map((service) => ({
|
|
||||||
label: service.name,
|
|
||||||
value: service.name,
|
|
||||||
icon: service.icon,
|
|
||||||
url: service.openedUrl ?? service.url,
|
|
||||||
}));
|
|
||||||
// Append the matching results to the autocomplete data
|
|
||||||
const autoCompleteResults = results.map((result) => ({
|
|
||||||
label: result.phrase,
|
|
||||||
value: result.phrase,
|
|
||||||
icon: result.icon,
|
|
||||||
url: result.url,
|
|
||||||
}));
|
|
||||||
autocompleteData.push(...autoCompleteResults);
|
|
||||||
|
|
||||||
const AutoCompleteItem = forwardRef<HTMLDivElement, any>(
|
|
||||||
({ label, value, icon, url, ...others }: any, ref) => (
|
|
||||||
<div ref={ref} {...others}>
|
|
||||||
<SmallServiceItem service={{ label, value, icon, url }} />
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form
|
<Box style={{ width: '100%', maxWidth: 400, minWidth: 300 }}>
|
||||||
onChange={() => {
|
|
||||||
// If query contains !yt or !t add "Searching on YouTube" or "Searching torrent"
|
|
||||||
const query = form.values.query.trim();
|
|
||||||
switch (query.substring(0, 3)) {
|
|
||||||
case '!yt':
|
|
||||||
setIcon(<BrandYoutube />);
|
|
||||||
break;
|
|
||||||
case '!t ':
|
|
||||||
setIcon(<Download />);
|
|
||||||
break;
|
|
||||||
case '!os':
|
|
||||||
setIcon(<IconMovie />);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
setIcon(<Search />);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
onSubmit={form.onSubmit((values) => {
|
|
||||||
const query = values.query.trim();
|
|
||||||
const open_in = config.settings.searchNewTab ? '_blank' : '_self';
|
|
||||||
setTimeout(() => {
|
|
||||||
form.setValues({ query: '' });
|
|
||||||
switch (query.substring(0, 3)) {
|
|
||||||
case '!yt':
|
|
||||||
window.open(
|
|
||||||
`https://www.youtube.com/results?search_query=${query.substring(3)}`,
|
|
||||||
open_in
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
case '!t ':
|
|
||||||
window.open(
|
|
||||||
`https://www.torrentdownloads.me/search/?search=${query.substring(3)}`,
|
|
||||||
open_in
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
case '!os':
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
window.open(
|
|
||||||
`${
|
|
||||||
queryUrl.includes('%s') ? queryUrl.replace('%s', query) : `${queryUrl}${query}`
|
|
||||||
}`,
|
|
||||||
open_in
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
<Popover
|
<Popover
|
||||||
opened={OverseerrResults.length > 0 && opened}
|
opened={OverseerrResults.length > 0 && opened && searchQuery.length > 3}
|
||||||
position="bottom"
|
position="bottom"
|
||||||
withArrow
|
|
||||||
withinPortal
|
withinPortal
|
||||||
shadow="md"
|
shadow="md"
|
||||||
radius="md"
|
radius="md"
|
||||||
zIndex={100}
|
zIndex={100}
|
||||||
trapFocus
|
|
||||||
transition="pop-top-right"
|
transition="pop-top-right"
|
||||||
>
|
>
|
||||||
<Popover.Target>
|
<Popover.Target>
|
||||||
<Autocomplete
|
<TextInput
|
||||||
|
ref={textInput}
|
||||||
onFocusCapture={() => setOpened(true)}
|
onFocusCapture={() => setOpened(true)}
|
||||||
autoFocus
|
autoFocus
|
||||||
variant="filled"
|
rightSection={<SearchModuleMenu />}
|
||||||
itemComponent={AutoCompleteItem}
|
placeholder={t(`searchEngines.${selectedSearchEngine.value}.description`)}
|
||||||
onItemSubmit={(item) => {
|
value={searchQuery}
|
||||||
setOpened(false);
|
onChange={(event) => tryMatchSearchEngine(event.currentTarget.value, setSearchQuery)}
|
||||||
if (item.url) {
|
// Replace %s if it is in selectedSearchEngine.url with searchQuery, otherwise append searchQuery at the end of it
|
||||||
results.splice(0, autocompleteData.length);
|
onKeyDown={(event) => {
|
||||||
form.reset();
|
if (event.key === 'Enter' && searchQuery.length > 0) {
|
||||||
window.open(item.url);
|
if (selectedSearchEngine.url.includes('%s')) {
|
||||||
|
window.open(selectedSearchEngine.url.replace('%s', searchQuery), openInNewTab);
|
||||||
|
} else {
|
||||||
|
window.open(selectedSearchEngine.url + searchQuery, openInNewTab);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
data={autocompleteData}
|
|
||||||
icon={icon}
|
|
||||||
ref={textInput}
|
|
||||||
rightSectionWidth={90}
|
|
||||||
rightSection={
|
|
||||||
<div className={classes.hide}>
|
|
||||||
<Kbd>Ctrl</Kbd>
|
|
||||||
<span style={{ margin: '0 5px' }}>+</span>
|
|
||||||
<Kbd>K</Kbd>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
radius="md"
|
|
||||||
size="md"
|
|
||||||
styles={{ rightSection: { pointerEvents: 'none' } }}
|
|
||||||
placeholder={t('input.placeholder')}
|
|
||||||
{...props}
|
|
||||||
{...form.getInputProps('query')}
|
|
||||||
/>
|
/>
|
||||||
</Popover.Target>
|
</Popover.Target>
|
||||||
|
|
||||||
<Popover.Dropdown>
|
<Popover.Dropdown>
|
||||||
<div ref={ref}>
|
<div>
|
||||||
<ScrollArea style={{ height: 400, width: 400 }} offsetScrollbars>
|
<ScrollArea style={{ height: 400, width: 420 }} offsetScrollbars>
|
||||||
{OverseerrResults.slice(0, 5).map((result, index) => (
|
{OverseerrResults.slice(0, 5).map((result, index) => (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<OverseerrMediaDisplay key={result.id} media={result} />
|
<OverseerrMediaDisplay key={result.id} media={result} />
|
||||||
@@ -241,6 +164,71 @@ export default function SearchBar(props: any) {
|
|||||||
</div>
|
</div>
|
||||||
</Popover.Dropdown>
|
</Popover.Dropdown>
|
||||||
</Popover>
|
</Popover>
|
||||||
</form>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function tryMatchSearchEngine(query: string, setSearchQuery: (value: string) => void) {
|
||||||
|
const foundSearchEngine = searchEnginesList.find(
|
||||||
|
(engine) => query.includes(`!${engine.shortcut}`) && !engine.disabled
|
||||||
|
);
|
||||||
|
if (foundSearchEngine) {
|
||||||
|
setSearchQuery(query.replace(`!${foundSearchEngine.shortcut}`, ''));
|
||||||
|
changeSearchEngine(foundSearchEngine);
|
||||||
|
} else {
|
||||||
|
setSearchQuery(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function SearchModuleMenu() {
|
||||||
|
return (
|
||||||
|
<Menu shadow="md" width={200} withinPortal classNames={classes}>
|
||||||
|
<Menu.Target>
|
||||||
|
<ActionIcon>{selectedSearchEngine.icon}</ActionIcon>
|
||||||
|
</Menu.Target>
|
||||||
|
|
||||||
|
<Menu.Dropdown>
|
||||||
|
{searchEnginesList.map((item) => (
|
||||||
|
<Tooltip
|
||||||
|
multiline
|
||||||
|
label={item.description}
|
||||||
|
withinPortal
|
||||||
|
width={200}
|
||||||
|
position="left"
|
||||||
|
key={item.value}
|
||||||
|
>
|
||||||
|
<Menu.Item
|
||||||
|
key={item.value}
|
||||||
|
icon={item.icon}
|
||||||
|
rightSection={<Kbd>!{item.shortcut}</Kbd>}
|
||||||
|
disabled={item.disabled}
|
||||||
|
onClick={() => {
|
||||||
|
changeSearchEngine(item);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{item.label}
|
||||||
|
</Menu.Item>
|
||||||
|
</Tooltip>
|
||||||
|
))}
|
||||||
|
<Menu.Divider />
|
||||||
|
<Menu.Label>
|
||||||
|
<Tip>
|
||||||
|
{t('tip')} <Kbd>mod+k</Kbd>{' '}
|
||||||
|
</Tip>
|
||||||
|
</Menu.Label>
|
||||||
|
</Menu.Dropdown>
|
||||||
|
</Menu>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeSearchEngine(item: ItemProps) {
|
||||||
|
setSearchEngine(item);
|
||||||
|
showNotification({
|
||||||
|
radius: 'lg',
|
||||||
|
disallowClose: true,
|
||||||
|
id: 'spotlight',
|
||||||
|
autoClose: 1000,
|
||||||
|
icon: <ActionIcon size="sm">{item.icon}</ActionIcon>,
|
||||||
|
message: t('switchedSearchEngine', { searchEngine: t(`searchEngines.${item.value}.name`) }),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,11 +9,12 @@ import {
|
|||||||
ScrollArea,
|
ScrollArea,
|
||||||
Center,
|
Center,
|
||||||
Stack,
|
Stack,
|
||||||
|
useMantineTheme,
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { IconDownload as Download } from '@tabler/icons';
|
import { IconDownload as Download } from '@tabler/icons';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { useViewportSize } from '@mantine/hooks';
|
import { useElementSize } from '@mantine/hooks';
|
||||||
import { showNotification } from '@mantine/notifications';
|
import { showNotification } from '@mantine/notifications';
|
||||||
import { NormalizedTorrent } from '@ctrl/shared-torrent';
|
import { NormalizedTorrent } from '@ctrl/shared-torrent';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
@@ -34,15 +35,10 @@ export const TorrentsModule: IModule = {
|
|||||||
value: false,
|
value: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
padding: {
|
|
||||||
right: 0,
|
|
||||||
top: -10,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function TorrentsComponent() {
|
export default function TorrentsComponent() {
|
||||||
const { config } = useConfig();
|
const { config } = useConfig();
|
||||||
const { height, width } = useViewportSize();
|
|
||||||
const downloadServices =
|
const downloadServices =
|
||||||
config.services.filter(
|
config.services.filter(
|
||||||
(service) =>
|
(service) =>
|
||||||
@@ -56,6 +52,8 @@ export default function TorrentsComponent() {
|
|||||||
const [torrents, setTorrents] = useState<NormalizedTorrent[]>([]);
|
const [torrents, setTorrents] = useState<NormalizedTorrent[]>([]);
|
||||||
const setSafeInterval = useSetSafeInterval();
|
const setSafeInterval = useSetSafeInterval();
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
|
const { ref, width, height } = useElementSize();
|
||||||
|
const MIN_WIDTH_MOBILE = useMantineTheme().breakpoints.xs;
|
||||||
|
|
||||||
const { t } = useTranslation(`modules/${TorrentsModule.id}`);
|
const { t } = useTranslation(`modules/${TorrentsModule.id}`);
|
||||||
|
|
||||||
@@ -112,14 +110,13 @@ export default function TorrentsComponent() {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const DEVICE_WIDTH = 576;
|
|
||||||
const ths = (
|
const ths = (
|
||||||
<tr>
|
<tr ref={ref}>
|
||||||
<th>{t('card.table.header.name')}</th>
|
<th>{t('card.table.header.name')}</th>
|
||||||
<th>{t('card.table.header.size')}</th>
|
<th>{t('card.table.header.size')}</th>
|
||||||
{width > 576 ? <th>{t('card.table.header.download')}</th> : ''}
|
{width > MIN_WIDTH_MOBILE && <th>{t('card.table.header.download')}</th>}
|
||||||
{width > 576 ? <th>{t('card.table.header.upload')}</th> : ''}
|
{width > MIN_WIDTH_MOBILE && <th>{t('card.table.header.upload')}</th>}
|
||||||
<th>{t('card.table.header.estimatedTimeOfArrival')}</th>
|
{width > MIN_WIDTH_MOBILE && <th>{t('card.table.header.estimatedTimeOfArrival')}</th>}
|
||||||
<th>{t('card.table.header.progress')}</th>
|
<th>{t('card.table.header.progress')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
@@ -164,23 +161,21 @@ export default function TorrentsComponent() {
|
|||||||
<td>
|
<td>
|
||||||
<Text size="xs">{humanFileSize(size)}</Text>
|
<Text size="xs">{humanFileSize(size)}</Text>
|
||||||
</td>
|
</td>
|
||||||
{width > 576 ? (
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
<td>
|
<td>
|
||||||
<Text size="xs">{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}</Text>
|
<Text size="xs">{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}</Text>
|
||||||
</td>
|
</td>
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
)}
|
||||||
{width > 576 ? (
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
<td>
|
<td>
|
||||||
<Text size="xs">{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}</Text>
|
<Text size="xs">{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}</Text>
|
||||||
</td>
|
</td>
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
)}
|
||||||
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
<td>
|
<td>
|
||||||
<Text size="xs">{torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)}</Text>
|
<Text size="xs">{torrent.eta <= 0 ? '∞' : calculateETA(torrent.eta)}</Text>
|
||||||
</td>
|
</td>
|
||||||
|
)}
|
||||||
<td>
|
<td>
|
||||||
<Text>{(torrent.progress * 100).toFixed(1)}%</Text>
|
<Text>{(torrent.progress * 100).toFixed(1)}%</Text>
|
||||||
<Progress
|
<Progress
|
||||||
|
|||||||
@@ -1,10 +1,21 @@
|
|||||||
import { Badge, Button, Group, Select, Stack, Tabs, Text, Title } from '@mantine/core';
|
import {
|
||||||
|
Badge,
|
||||||
|
Button,
|
||||||
|
Group,
|
||||||
|
Select,
|
||||||
|
Stack,
|
||||||
|
Tabs,
|
||||||
|
Text,
|
||||||
|
Title,
|
||||||
|
useMantineTheme,
|
||||||
|
} from '@mantine/core';
|
||||||
import { IconDownload, IconPlayerPause, IconPlayerPlay } from '@tabler/icons';
|
import { IconDownload, IconPlayerPause, IconPlayerPlay } from '@tabler/icons';
|
||||||
import { FunctionComponent, useEffect, useState } from 'react';
|
import { FunctionComponent, useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import duration from 'dayjs/plugin/duration';
|
import duration from 'dayjs/plugin/duration';
|
||||||
|
import { useElementSize } from '@mantine/hooks';
|
||||||
import { IModule } from '../ModuleTypes';
|
import { IModule } from '../ModuleTypes';
|
||||||
import { UsenetQueueList } from './UsenetQueueList';
|
import { UsenetQueueList } from './UsenetQueueList';
|
||||||
import { UsenetHistoryList } from './UsenetHistoryList';
|
import { UsenetHistoryList } from './UsenetHistoryList';
|
||||||
@@ -48,26 +59,33 @@ export const UsenetComponent: FunctionComponent = () => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { ref, width, height } = useElementSize();
|
||||||
|
const MIN_WIDTH_MOBILE = useMantineTheme().breakpoints.xs;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs keepMounted={false} defaultValue="queue">
|
<Tabs keepMounted={false} defaultValue="queue">
|
||||||
<Group mb="md">
|
<Tabs.List ref={ref} mb="md" style={{ flex: 1 }}>
|
||||||
<Tabs.List style={{ flex: 1 }}>
|
|
||||||
<Tabs.Tab value="queue">{t('tabs.queue')}</Tabs.Tab>
|
<Tabs.Tab value="queue">{t('tabs.queue')}</Tabs.Tab>
|
||||||
<Tabs.Tab value="history">{t('tabs.history')}</Tabs.Tab>
|
<Tabs.Tab value="history">{t('tabs.history')}</Tabs.Tab>
|
||||||
{data && (
|
{data && (
|
||||||
<Group position="right" ml="auto" mb="lg">
|
<Group position="right" ml="auto">
|
||||||
|
{width > MIN_WIDTH_MOBILE && (
|
||||||
|
<>
|
||||||
<Badge>{humanFileSize(data?.speed)}/s</Badge>
|
<Badge>{humanFileSize(data?.speed)}/s</Badge>
|
||||||
<Badge>
|
<Badge>
|
||||||
{t('info.sizeLeft')}: {humanFileSize(data?.sizeLeft)}
|
{t('info.sizeLeft')}: {humanFileSize(data?.sizeLeft)}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{data.paused ? (
|
{data.paused ? (
|
||||||
<Button uppercase onClick={() => resume()} radius="xl" size="xs">
|
<Button uppercase onClick={() => resume()} radius="xl" size="xs">
|
||||||
<IconPlayerPlay size={16} style={{ marginRight: 5 }} /> {t('info.paused')}
|
<IconPlayerPlay size={12} style={{ marginRight: 5 }} /> {t('info.paused')}
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button uppercase onClick={() => pause()} radius="xl" size="xs">
|
<Button uppercase onClick={() => pause()} radius="xl" size="xs">
|
||||||
<IconPlayerPause size={16} style={{ marginRight: 5 }} />{' '}
|
<IconPlayerPause size={12} style={{ marginRight: 5 }} />{' '}
|
||||||
{dayjs.duration(data.eta, 's').format('HH:mm:ss')}
|
{dayjs.duration(data.eta, 's').format('HH:mm')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
@@ -81,7 +99,6 @@ export const UsenetComponent: FunctionComponent = () => {
|
|||||||
data={downloadServices.map((service) => ({ value: service.id, label: service.name }))}
|
data={downloadServices.map((service) => ({ value: service.id, label: service.name }))}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Group>
|
|
||||||
<Tabs.Panel value="queue">
|
<Tabs.Panel value="queue">
|
||||||
<UsenetQueueList serviceId={selectedServiceId} />
|
<UsenetQueueList serviceId={selectedServiceId} />
|
||||||
</Tabs.Panel>
|
</Tabs.Panel>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import Consola from 'consola';
|
||||||
import { NextApiRequest, NextApiResponse } from 'next';
|
import { NextApiRequest, NextApiResponse } from 'next';
|
||||||
|
|
||||||
function Post(req: NextApiRequest, res: NextApiResponse) {
|
function Post(req: NextApiRequest, res: NextApiResponse) {
|
||||||
@@ -8,6 +9,12 @@ function Post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
success: true,
|
success: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Warn that there was a wrong password attempt (date : wrong password, person's IP)
|
||||||
|
Consola.warn(
|
||||||
|
`${new Date().toLocaleString()} : Wrong password attempt, from ${
|
||||||
|
req.headers['x-forwarded-for']
|
||||||
|
}`
|
||||||
|
);
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
success: false,
|
success: false,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import https from 'https';
|
||||||
import { NextApiRequest, NextApiResponse } from 'next';
|
import { NextApiRequest, NextApiResponse } from 'next';
|
||||||
|
|
||||||
async function Get(req: NextApiRequest, res: NextApiResponse) {
|
async function Get(req: NextApiRequest, res: NextApiResponse) {
|
||||||
// Parse req.body as a ServiceItem
|
// Parse req.body as a ServiceItem
|
||||||
const { url } = req.query;
|
const { url } = req.query;
|
||||||
|
const agent = new https.Agent({ rejectUnauthorized: false });
|
||||||
await axios
|
await axios
|
||||||
.get(url as string)
|
.get(url as string, { httpsAgent: agent })
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
res.status(response.status).json(response.statusText);
|
res.status(response.status).json(response.statusText);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user