Cleaned labels of mentioning 'Device' all the time

This commit is contained in:
bourquecharles
2021-06-29 14:40:32 -04:00
parent cdcd29a47c
commit 3e279aff58
13 changed files with 58 additions and 57 deletions

View File

@@ -7,7 +7,7 @@
"factory_reset": "Werkseinstellungen zurückgesetzt",
"firmware_upgrade": "Firmware-Aktualisierung",
"reboot": "Starten Sie neu",
"title": "Geräteaktionen",
"title": "Befehle",
"trace": "Spur",
"wifi_scan": "WLAN-Scan"
},
@@ -20,7 +20,7 @@
"commands": {
"error": "Fehler beim Senden des Befehls!",
"success": "Der Befehl wurde erfolgreich gesendet. Sie können das Ergebnis im Befehlsprotokoll anzeigen",
"title": "Gerätebefehle"
"title": "Befehlsverlauf"
},
"common": {
"are_you_sure": "Bist du sicher?",
@@ -85,14 +85,14 @@
},
"configuration": {
"created": "Erstellt",
"details": "Gerätedetails",
"details": "Einzelheiten",
"device_password": "Passwort",
"last_configuration_change": "Letzte Konfigurationsänderung",
"last_configuration_download": "Letzter Konfigurations-Download",
"location": "Ort",
"notes": "Anmerkungen",
"owner": "Inhaber",
"title": "Gerätekonfiguration",
"title": "Aufbau",
"type": "Gerätetyp",
"view_json": "Rohes JSON anzeigen"
},
@@ -100,7 +100,7 @@
"choose_file": "Sie müssen eine gültige .json-Datei auswählen:",
"enter_new": "Geben Sie die JSON für die neue Gerätekonfiguration ein:",
"placeholder": "JSON konfigurieren",
"title": "Gerät konfigurieren",
"title": "Konfigurieren",
"valid_json": "Sie müssen gültiges JSON eingeben"
},
"delete_command": {
@@ -120,7 +120,7 @@
},
"factory_reset": {
"redirector": "Weiterleitung beibehalten:",
"title": "Gerät auf Werkseinstellungen zurücksetzen",
"title": "Werkseinstellungen zurückgesetzt",
"warning": "Achtung: Nach dem Absenden kann dies nicht rückgängig gemacht werden"
},
"footer": {
@@ -130,7 +130,7 @@
},
"health": {
"sanity": "Gesundheit",
"title": "Gerätezustand"
"title": "Gesundheit"
},
"login": {
"login": "Anmeldung",
@@ -144,7 +144,7 @@
},
"reboot": {
"directions": "Wann möchten Sie dieses Gerät neu starten?",
"title": "Gerät neustarten"
"title": "Starten Sie neu"
},
"scan": {
"active": "Aktiven Scan aktivieren",
@@ -168,7 +168,7 @@
"directions": "Starten Sie eine Fernverfolgung dieses Geräts für eine bestimmte Dauer oder eine Anzahl von Paketen",
"download_trace": "Klicke hier zum herunterladen",
"packets": "Pakete",
"title": "Trace-Gerät",
"title": "Spur",
"wait_for_file": "Möchten Sie warten, bis die Trace-Datei fertig ist?",
"waiting_directions": "Bitte warten Sie auf die Trace-Datendatei. Dies könnte eine Weile dauern. Sie können das Warten beenden und die Ablaufverfolgungsdatei später aus der Befehlstabelle abrufen.",
"waiting_seconds": "Verstrichene Zeit: {{seconds}} Sekunden"

View File

@@ -7,7 +7,7 @@
"factory_reset": "Factory Reset",
"firmware_upgrade": "Firmware Upgrade",
"reboot": "Reboot",
"title": "Device Actions",
"title": "Commands",
"trace": "Trace",
"wifi_scan": "Wifi Scan"
},
@@ -20,7 +20,7 @@
"commands": {
"error": "Error while submitting command!",
"success": "Command submitted successfully, you can look at the Commands log for the result",
"title": "Device Commands"
"title": "Command History"
},
"common": {
"are_you_sure": "Are you sure?",
@@ -85,14 +85,14 @@
},
"configuration": {
"created": "Created",
"details": "Device Details",
"details": "Details",
"device_password": "Password",
"last_configuration_change": "Last Configuration Change",
"last_configuration_download": "Last Configuration Download",
"location": "Location",
"notes": "Notes",
"owner": "Owner",
"title": "Device Configuration",
"title": "Configuration",
"type": "Device Type",
"view_json": "View raw JSON"
},
@@ -100,7 +100,7 @@
"choose_file": "You need to choose a valid .json file: ",
"enter_new": "Enter new device configuration JSON: ",
"placeholder": "Config JSON",
"title": "Configure Device",
"title": "Configure",
"valid_json": "You need to enter valid JSON"
},
"delete_command": {
@@ -116,11 +116,11 @@
"device_logs": {
"log": "Log",
"severity": "Severity",
"title": "Device Logs"
"title": "Logs"
},
"factory_reset": {
"redirector": "Keep redirector: ",
"title": "Factory Reset Device",
"title": "Factory Reset",
"warning": "Warning: Once you submit this cannot be reverted"
},
"footer": {
@@ -130,7 +130,7 @@
},
"health": {
"sanity": "Sanity",
"title": "Device Health"
"title": "Health"
},
"login": {
"login": "Login",
@@ -144,7 +144,7 @@
},
"reboot": {
"directions": "When would you like to reboot this device?",
"title": "Reboot Device"
"title": "Reboot"
},
"scan": {
"active": "Enable active scan",
@@ -168,7 +168,7 @@
"directions": "Launch a remote trace of this device for either a specific duration or a number of packets",
"download_trace": "Click here to download",
"packets": "Packets",
"title": "Trace Device",
"title": "Trace",
"wait_for_file": "Would you like to wait until the trace file is ready?",
"waiting_directions": "Please wait for the trace data file. This may take some time. You can exit the wait and retrieve the trace file from the commands table later.",
"waiting_seconds": "Time Elapsed: {{seconds}} seconds"

View File

@@ -7,7 +7,7 @@
"factory_reset": "Restablecimiento De Fábrica",
"firmware_upgrade": "Actualización de firmware",
"reboot": "Reiniciar",
"title": "Acciones del dispositivo",
"title": "Comandos",
"trace": "Rastro",
"wifi_scan": "Escaneo Wifi"
},
@@ -20,7 +20,7 @@
"commands": {
"error": "¡Error al enviar el comando!",
"success": "Comando enviado con éxito, puede consultar el registro de Comandos para ver el resultado",
"title": "Comandos del dispositivo"
"title": "Historial de Comandos"
},
"common": {
"are_you_sure": "¿Estás seguro?",
@@ -85,14 +85,14 @@
},
"configuration": {
"created": "creado",
"details": "Detalles del dispositivo",
"details": "Detalles",
"device_password": "Contraseña",
"last_configuration_change": "Último cambio de configuración",
"last_configuration_download": "Descarga de la última configuración",
"location": "Ubicación",
"notes": "Notas",
"owner": "Propietario",
"title": "Configuración del dispositivo",
"title": "Configuración",
"type": "Tipo de dispositivo",
"view_json": "Ver JSON sin procesar"
},
@@ -100,7 +100,7 @@
"choose_file": "Debe elegir un archivo .json válido:",
"enter_new": "Ingrese la nueva configuración del dispositivo JSON:",
"placeholder": "Configurar JSON",
"title": "Configurar dispositivo",
"title": "Configurar",
"valid_json": "Debes ingresar un JSON válido"
},
"delete_command": {
@@ -116,11 +116,11 @@
"device_logs": {
"log": "Iniciar sesión",
"severity": "Gravedad",
"title": "Registros de dispositivos"
"title": "Registros"
},
"factory_reset": {
"redirector": "Mantener el redirector:",
"title": "Dispositivo de restablecimiento de fábrica",
"title": "Restablecimiento De Fábrica",
"warning": "Advertencia: una vez que envíe, esto no se podrá revertir"
},
"footer": {
@@ -130,7 +130,7 @@
},
"health": {
"sanity": "Cordura",
"title": "Salud del dispositivo"
"title": "Salud"
},
"login": {
"login": "Iniciar sesión",
@@ -144,7 +144,7 @@
},
"reboot": {
"directions": "¿Cuándo le gustaría reiniciar este dispositivo?",
"title": "Reiniciar dispositivo"
"title": "Reiniciar"
},
"scan": {
"active": "Habilitar escaneo activo",
@@ -168,7 +168,7 @@
"directions": "Lanzar un rastreo remoto de este dispositivo por una duración específica o por una cantidad de paquetes",
"download_trace": "Haga click aquí para descargar",
"packets": "Paquetes",
"title": "Dispositivo de seguimiento",
"title": "Rastro",
"wait_for_file": "¿Le gustaría esperar hasta que el archivo de seguimiento esté listo?",
"waiting_directions": "Espere el archivo de datos de seguimiento. Esto puede tomar algo de tiempo. Puede salir de la espera y recuperar el archivo de seguimiento de la tabla de comandos más tarde.",
"waiting_seconds": "Tiempo transcurrido: {{seconds}} segundos"

View File

@@ -7,7 +7,7 @@
"factory_reset": "Retour aux paramètres d'usine",
"firmware_upgrade": "Mise à jour du firmware",
"reboot": "Redémarrer",
"title": "Actions de l'appareil",
"title": "Les commandes",
"trace": "Trace",
"wifi_scan": "Balayage Wi-Fi"
},
@@ -20,7 +20,7 @@
"commands": {
"error": "Erreur lors de la soumission de la commande !",
"success": "Commande soumise avec succès, vous pouvez consulter le journal des commandes pour le résultat",
"title": "Commandes de l'appareil"
"title": "Historique des commandes"
},
"common": {
"are_you_sure": "Êtes-vous sûr?",
@@ -85,14 +85,14 @@
},
"configuration": {
"created": "Créé",
"details": "Détails de l'appareil",
"details": "Détails",
"device_password": "Mot de passe",
"last_configuration_change": "Dernière modification de configuration",
"last_configuration_download": "Téléchargement de la dernière configuration",
"location": "Emplacement",
"notes": "Remarques",
"owner": "Propriétaire",
"title": "Configuration de l'appareil",
"title": "Configuration",
"type": "Type d'appareil",
"view_json": "Afficher le JSON brut"
},
@@ -100,7 +100,7 @@
"choose_file": "Vous devez choisir un fichier .json valide :",
"enter_new": "Entrez la nouvelle configuration de l'appareil JSON :",
"placeholder": "Configurer JSON",
"title": "Configurer l'appareil",
"title": "Configurer",
"valid_json": "Vous devez entrer un JSON valide"
},
"delete_command": {
@@ -116,11 +116,11 @@
"device_logs": {
"log": "Bûche",
"severity": "Gravité",
"title": "Journaux de l'appareil"
"title": "Journaux"
},
"factory_reset": {
"redirector": "Conserver le redirecteur :",
"title": "Dispositif de réinitialisation d'usine",
"title": "Retour aux paramètres d'usine",
"warning": "Avertissement : Une fois que vous avez soumis, cela ne peut pas être annulé"
},
"footer": {
@@ -130,7 +130,7 @@
},
"health": {
"sanity": "Santé mentale",
"title": "Santé de l'appareil"
"title": "Santé"
},
"login": {
"login": "S'identifier",
@@ -144,7 +144,7 @@
},
"reboot": {
"directions": "Quand souhaitez-vous redémarrer cet appareil ?",
"title": "Redémarrez l'appareil"
"title": "Redémarrer"
},
"scan": {
"active": "Activer l'analyse active",
@@ -168,7 +168,7 @@
"directions": "Lancer une trace à distance de cet appareil pour une durée spécifique ou un nombre de paquets",
"download_trace": "Cliquez ici pour télécharger",
"packets": "Paquets",
"title": "Dispositif de traçage",
"title": "Trace",
"wait_for_file": "Souhaitez-vous attendre que le fichier de trace soit prêt ?",
"waiting_directions": "Veuillez attendre le fichier de données de trace. Cela peut prendre un certain temps. Vous pouvez quitter l'attente et récupérer le fichier de trace de la table des commandes plus tard.",
"waiting_seconds": "Temps écoulé : {{seconds}} secondes"

View File

@@ -7,7 +7,7 @@
"factory_reset": "Restauração de fábrica",
"firmware_upgrade": "Atualização de firmware",
"reboot": "Reiniciar",
"title": "Ações do dispositivo",
"title": "Comandos",
"trace": "Vestígio",
"wifi_scan": "Wifi Scan"
},
@@ -20,7 +20,7 @@
"commands": {
"error": "Erro ao enviar comando!",
"success": "Comando enviado com sucesso, você pode consultar o log de Comandos para ver o resultado",
"title": "Comandos de dispositivo"
"title": "Histórico de Comandos"
},
"common": {
"are_you_sure": "Você tem certeza?",
@@ -85,14 +85,14 @@
},
"configuration": {
"created": "Criado",
"details": "Detalhes do dispositivo",
"details": "Detalhes",
"device_password": "Senha",
"last_configuration_change": "Última Mudança de Configuração",
"last_configuration_download": "Último download da configuração",
"location": "Localização",
"notes": "notas",
"owner": "Proprietário",
"title": "Configuração do dispositivo",
"title": "Configuração",
"type": "Tipo de dispositivo",
"view_json": "Exibir JSON bruto"
},
@@ -100,7 +100,7 @@
"choose_file": "Você precisa escolher um arquivo .json válido:",
"enter_new": "Insira a nova configuração do dispositivo JSON:",
"placeholder": "Config JSON",
"title": "Configurar dispositivo",
"title": "Configurar",
"valid_json": "Você precisa inserir um JSON válido"
},
"delete_command": {
@@ -116,11 +116,11 @@
"device_logs": {
"log": "Registro",
"severity": "Gravidade",
"title": "Registros de dispositivos"
"title": "Toras"
},
"factory_reset": {
"redirector": "Manter redirecionador:",
"title": "Dispositivo de redefinição de fábrica",
"title": "Restauração de fábrica",
"warning": "Aviso: depois de enviar, isso não pode ser revertido"
},
"footer": {
@@ -130,7 +130,7 @@
},
"health": {
"sanity": "Sanidade",
"title": "Saúde do Dispositivo"
"title": "Saúde"
},
"login": {
"login": "Entrar",
@@ -144,7 +144,7 @@
},
"reboot": {
"directions": "Quando você gostaria de reinicializar este dispositivo?",
"title": "Reiniciar dispositivo"
"title": "Reiniciar"
},
"scan": {
"active": "Habilitar varredura ativa",
@@ -168,7 +168,7 @@
"directions": "Lançar um rastreamento remoto deste dispositivo para uma duração específica ou um número de pacotes",
"download_trace": "Clique aqui para baixar",
"packets": "Pacotes",
"title": "Dispositivo de rastreamento",
"title": "Vestígio",
"wait_for_file": "Você gostaria de esperar até que o arquivo de rastreamento esteja pronto?",
"waiting_directions": "Aguarde o arquivo de dados de rastreamento. Isto pode tomar algum tempo. Você pode sair da espera e recuperar o arquivo de rastreamento da tabela de comandos mais tarde.",
"waiting_seconds": "Tempo decorrido: {{seconds}} segundos"

View File

@@ -449,7 +449,6 @@ const DeviceCommands = ({ selectedDeviceId }) => {
date={chosenWifiScanDate}
/>
<ConfirmModal show={showConfirmModal} toggle={toggleConfirmModal} action={deleteCommand} />
<CIcon name="cilNotes" className={styles.whiteIcon} size="lg" />
</CWidgetDropdown>
);
};

View File

@@ -12,6 +12,7 @@ import TraceModal from 'components/TraceModal';
import WifiScanModal from 'components/WifiScanModal';
import BlinkModal from 'components/BlinkModal';
import FactoryResetModal from 'components/FactoryResetModal';
import styles from './index.module.scss';
const DeviceActions = ({ selectedDeviceId }) => {

View File

@@ -0,0 +1,3 @@
.spacedRow {
margin-top: 10px;
}

View File

@@ -73,7 +73,7 @@ const DeviceConfiguration = ({ selectedDeviceId }) => {
<CCard>
<CCardHeader>
<CRow>
<CCol><div className="text-value-lg">{t('configuration.details')}</div></CCol>
<CCol><div className="text-value-lg">{t('configuration.title')}</div></CCol>
<CCol>
<div className={styles.alignRight}>
<CPopover content={t('configuration.view_json')}>

View File

@@ -256,9 +256,7 @@ const DeviceLogs = ({ selectedDeviceId }) => {
</CButton>
</div>
}
>
<CIcon name="cilList" className={styles.whiteIcon} size="lg" />
</CWidgetDropdown>
/>
<DeleteLogModal
serialNumber={selectedDeviceId}
object="logs"

View File

@@ -4,10 +4,10 @@ import { useParams } from 'react-router-dom';
import { CRow, CCol } from '@coreui/react';
import DeviceHealth from 'components/DeviceHealth';
import DeviceConfiguration from 'components/DeviceConfiguration';
import DeviceCommandsLog from 'components/DeviceCommandsLog';
import CommandHistory from 'components/CommandHistory';
import DeviceLogs from 'components/DeviceLogs';
import DeviceStatisticsCard from 'components/InterfaceStatistics';
import DeviceActionCard from './DeviceActionCard';
import DeviceActionCard from '../../components/DeviceActionCard';
const DevicePage = () => {
const dispatch = useDispatch();
@@ -36,7 +36,7 @@ const DevicePage = () => {
<CRow>
<CCol>
<DeviceStatisticsCard selectedDeviceId={deviceId} />
<DeviceCommandsLog selectedDeviceId={deviceId} />
<CommandHistory selectedDeviceId={deviceId} />
</CCol>
</CRow>
</div>