restart tor instead of reset

This commit is contained in:
Matt Hill
2025-08-13 10:53:46 -06:00
parent 63323faa97
commit 3848e8f2df
7 changed files with 32 additions and 44 deletions

View File

@@ -3,7 +3,6 @@ import type { i18n } from '../i18n.providers'
export default {
1: 'Ändern',
2: 'Aktualisieren',
3: 'Zurücksetzen',
4: 'System',
5: 'Allgemein',
6: 'E-Mail',
@@ -23,7 +22,7 @@ export default {
21: 'Stammzertifizierungsstelle (Root-CA)',
22: 'Laden Sie Ihre Root-CA herunter',
23: 'Herunterladen',
24: 'Tor zurücksetzen',
24: '',
25: 'Tor-Daemon auf Ihrem Server neu starten',
26: 'Software-Aktualisierung',
27: 'Neustart erforderlich',
@@ -38,8 +37,8 @@ export default {
36: 'Abbrechen',
37: 'Diese Aktion sollte nur auf Anweisung eines Start9-Supportmitarbeiters ausgeführt werden. Wir empfehlen, vor dem Fortfahren eine Sicherung Ihres Geräts zu erstellen. Wenn während des Neustarts etwas schiefgeht, z.B. Stromausfall oder das Trennen des Laufwerks, kann das Dateisystem irreparabel beschädigt werden. Bitte fahren Sie mit Vorsicht fort.',
38: 'Löschen',
39: 'Tor-Reset läuft',
40: 'Tor wird zurückgesetzt',
39: '',
40: '',
41: 'Suche nach Updates',
42: 'Neustart wird eingeleitet',
43: 'Sie verwenden die neueste Version von StartOS.',
@@ -47,8 +46,7 @@ export default {
45: 'Versionshinweise',
46: 'Update starten',
47: 'Update wird gestartet',
48: 'Sie sind derzeit über Tor verbunden. Wenn Sie den Tor-Daemon zurücksetzen, verlieren Sie die Verbindung, bis dieser wieder online ist.',
49: 'Tor zurücksetzen?',
48: '',
50: 'Optional Zustand löschen, um neue Guard-Nodes zu erzwingen. Es wird empfohlen, zuerst ohne das Löschen zu versuchen.',
51: 'Zustand löschen',
52: 'Bestenstand wird gespeichert',

View File

@@ -2,7 +2,6 @@
export const ENGLISH = {
'Change': 1, // verb
'Update': 2, // verb
'Reset': 3, // verb
'System': 4, // as in, system preferences
'General': 5, // as in, general settings
'Email': 6,
@@ -22,7 +21,7 @@ export const ENGLISH = {
'Root Certificate Authority': 21,
'Download your Root CA': 22,
'Download': 23,
'Reset Tor': 24,
'Restart Tor': 24,
'Restart the Tor daemon on your server': 25,
'Software Update': 26,
'Restart to apply': 27,
@@ -37,8 +36,8 @@ export const ENGLISH = {
'Cancel': 36,
'This action should only be executed if directed by a Start9 support specialist. We recommend backing up your device before preforming this action. If anything happens to the device during the reboot, such as losing power or unplugging the drive, the filesystem will be in an unrecoverable state. Please proceed with caution.': 37,
'Delete': 38,
'Tor reset in progress': 39,
'Resetting Tor': 40,
'Tor restart in progress': 39,
'Restarting Tor': 40,
'Checking for updates': 41,
'Beginning restart': 42,
'You are on the latest version of StartOS.': 43,
@@ -46,8 +45,7 @@ export const ENGLISH = {
'Release notes': 45,
'Begin Update': 46,
'Beginning update': 47,
'You are currently connected over Tor. If you reset the Tor daemon, you will lose connectivity until it comes back online.': 48,
'Reset Tor?': 49,
'You are currently connected over Tor. If you restart the Tor daemon, you will lose connectivity until it comes back online.': 48,
'Optionally wipe state to forcibly acquire new guard nodes. It is recommended to try without wiping state first.': 50,
'Wipe state': 51,
'Saving high score': 52,

View File

@@ -3,7 +3,6 @@ import type { i18n } from '../i18n.providers'
export default {
1: 'Cambiar',
2: 'Actualizar',
3: 'Restablecer',
4: 'Sistema',
5: 'General',
6: 'Correo electrónico',
@@ -23,7 +22,7 @@ export default {
21: 'Autoridad certificadora raíz',
22: 'Descargar tu CA raíz',
23: 'Descargar',
24: 'Restablecer Tor',
24: '',
25: 'Reiniciar el servicio Tor en tu servidor',
26: 'Actualización de software',
27: 'Reiniciar para aplicar',
@@ -38,8 +37,8 @@ export default {
36: 'Cancelar',
37: 'Esta acción solo debe realizarse si es indicada por un especialista de soporte de Start9. Recomendamos hacer una copia de seguridad del dispositivo antes de ejecutar esta acción. Si ocurre algo durante el reinicio, como un corte de energía o desconectar el disco, el sistema de archivos quedará en un estado irrecuperable. Procede con precaución.',
38: 'Eliminar',
39: 'Restablecimiento de Tor en curso',
40: 'Restableciendo Tor',
39: '',
40: '',
41: 'Buscando actualizaciones',
42: 'Iniciando reinicio',
43: 'Estás usando la última versión de StartOS.',
@@ -47,8 +46,7 @@ export default {
45: 'notas de la versión',
46: 'Iniciar actualización',
47: 'Iniciando actualización',
48: 'Actualmente estás conectado a través de Tor. Si restableces el servicio Tor, perderás la conexión hasta que vuelva a estar en línea.',
49: '¿Restablecer Tor?',
48: '',
50: 'Opcionalmente borra el estado para forzar la adquisición de nuevos nodos de entrada. Se recomienda intentar sin borrar el estado primero.',
51: 'Borrar estado',
52: 'Guardando puntuación máxima',

View File

@@ -3,7 +3,6 @@ import type { i18n } from '../i18n.providers'
export default {
1: 'Modifier',
2: 'Mettre à jour',
3: 'Réinitialiser',
4: 'Système',
5: 'Général',
6: 'Email',
@@ -23,7 +22,7 @@ export default {
21: 'Autorité de certification racine',
22: 'Télécharger votre certificat racine',
23: 'Télécharger',
24: 'Réinitialiser Tor',
24: '',
25: 'Redémarrer le service Tor sur votre serveur',
26: 'Mise à jour logicielle',
27: 'Redémarrer pour appliquer',
@@ -38,8 +37,8 @@ export default {
36: 'Annuler',
37: 'Cette action ne doit être effectuée que sur instruction dun spécialiste du support Start9. Nous vous recommandons de sauvegarder votre appareil avant deffectuer cette opération. Si un incident survient pendant le redémarrage, comme une coupure de courant ou le débranchement du disque, le système de fichiers pourrait devenir irrécupérable. Veuillez procéder avec prudence.',
38: 'Supprimer',
39: 'Réinitialisation de Tor en cours',
40: 'Réinitialisation de Tor',
39: '',
40: '',
41: 'Recherche de mises à jour',
42: 'Redémarrage initié',
43: 'Vous utilisez la dernière version de StartOS.',
@@ -47,8 +46,7 @@ export default {
45: 'Notes de version',
46: 'Commencer la mise à jour',
47: 'Lancement de la mise à jour',
48: 'Vous êtes actuellement connecté via Tor. Si vous réinitialisez le service Tor, vous perdrez la connexion jusquà ce que le service soit de nouveau en ligne.',
49: 'Réinitialiser Tor ?',
48: '',
50: 'Vous pouvez effacer létat pour obtenir de nouveaux nœuds de garde. Il est recommandé dessayer sans effacer létat dabord.',
51: 'Effacer létat',
52: 'Enregistrement du meilleur score',

View File

@@ -3,7 +3,6 @@ import type { i18n } from '../i18n.providers'
export default {
1: 'Zmień',
2: 'Aktualizuj',
3: 'Resetuj',
4: 'Ustawienia',
5: 'Ogólne',
6: 'E-mail',
@@ -23,7 +22,7 @@ export default {
21: 'Główny urząd certyfikacji (Root CA)',
22: 'Pobierz swój główny certyfikat CA',
23: 'Pobierz',
24: 'Resetuj Tor',
24: '',
25: 'Uruchom ponownie usługę Tor na serwerze',
26: 'Aktualizacja systemu',
27: 'Uruchom ponownie, aby zastosować',
@@ -38,8 +37,8 @@ export default {
36: 'Anuluj',
37: 'Ta akcja powinna być wykonana tylko na polecenie specjalisty wsparcia Start9. Zalecamy wykonanie kopii zapasowej urządzenia przed wykonaniem tej akcji. Jeśli podczas ponownego uruchamiania urządzenia wystąpią problemy, takie jak utrata zasilania lub odłączenie dysku, system plików może znaleźć się w stanie niemożliwym do odzyskania. Zachowaj ostrożność.',
38: 'Usuń',
39: 'Resetowanie Tora w toku',
40: 'Resetowanie Tora',
39: '',
40: '',
41: 'Sprawdzanie aktualizacji',
42: 'Rozpoczynanie ponownego uruchamiania',
43: 'Korzystasz z najnowszej wersji StartOS.',
@@ -47,8 +46,7 @@ export default {
45: 'Informacje o wydaniu',
46: 'Rozpocznij aktualizację',
47: 'Rozpoczynanie aktualizacji',
48: 'Obecnie jesteś połączony przez sieć Tor. Jeśli zresetujesz usługę Tor, utracisz połączenie do czasu jej ponownego uruchomienia.',
49: 'Zresetować Tora?',
48: '',
50: 'Opcjonalnie wyczyść stan, aby wymusić pozyskanie nowych węzłów strażniczych. Zaleca się najpierw spróbować bez czyszczenia stanu.',
51: 'Wyczyść stan',
52: 'Zapisywanie najlepszego wyniku',

View File

@@ -159,13 +159,13 @@ import { SystemWipeComponent } from './wipe.component'
<div tuiCell tuiAppearance="outline-grayscale">
<tui-icon icon="@tui.circle-power" (click)="count = count + 1" />
<span tuiTitle>
<strong>{{ 'Reset Tor' | i18n }}</strong>
<strong>{{ 'Restart Tor' | i18n }}</strong>
<span tuiSubtitle>
{{ 'Restart the Tor daemon on your server' | i18n }}
</span>
</span>
<button tuiButton appearance="glass" (click)="onReset()">
{{ 'Reset' | i18n }}
<button tuiButton appearance="glass" (click)="onTorRestart()">
{{ 'Restart' | i18n }}
</button>
</div>
@if (count > 4) {
@@ -308,7 +308,7 @@ export default class SystemGeneralComponent {
})
}
onReset() {
onTorRestart() {
this.wipe = false
this.dialog
.openConfirm({
@@ -318,7 +318,7 @@ export default class SystemGeneralComponent {
SystemWipeComponent,
this.injector,
),
yes: 'Reset',
yes: 'Restart',
no: 'Cancel',
},
})
@@ -387,11 +387,11 @@ export default class SystemGeneralComponent {
}
private async resetTor(wipeState: boolean) {
const loader = this.loader.open('Resetting Tor').subscribe()
const loader = this.loader.open().subscribe()
try {
await this.api.resetTor({ wipeState, reason: 'User triggered' })
this.dialog.openAlert('Tor reset in progress').subscribe()
this.dialog.openAlert('Tor restart in progress').subscribe()
} catch (e: any) {
this.errorService.handleError(e)
} finally {

View File

@@ -8,16 +8,14 @@ import { i18nPipe } from '@start9labs/shared'
@Component({
template: `
<p>
@if (isTor) {
@if (isTor) {
<p>
{{
'You are currently connected over Tor. If you reset the Tor daemon, you will lose connectivity until it comes back online.'
'You are currently connected over Tor. If you restart the Tor daemon, you will lose connectivity until it comes back online.'
| i18n
}}
} @else {
{{ 'Reset Tor?' | i18n }}
}
</p>
</p>
}
<p>
{{
'Optionally wipe state to forcibly acquire new guard nodes. It is recommended to try without wiping state first.'