mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
update bindings for API types, add ARCHITECTURE (#3124)
* update binding for API types, add ARCHITECTURE * translations
This commit is contained in:
@@ -654,24 +654,35 @@ export default {
|
||||
714: 'Installation abgeschlossen!',
|
||||
715: 'StartOS wurde erfolgreich installiert.',
|
||||
716: 'Weiter zur Einrichtung',
|
||||
717: '',
|
||||
718: '',
|
||||
719: '',
|
||||
720: '',
|
||||
721: '',
|
||||
722: '',
|
||||
723: '',
|
||||
724: '',
|
||||
725: '',
|
||||
726: '',
|
||||
727: '',
|
||||
728: '',
|
||||
729: '',
|
||||
730: '',
|
||||
731: '',
|
||||
732: '',
|
||||
733: '',
|
||||
734: '',
|
||||
735: '',
|
||||
736: '',
|
||||
717: 'Ausgehendes Gateway festlegen',
|
||||
718: 'Aktuell',
|
||||
719: 'Systemstandard',
|
||||
720: 'Ausgehendes Gateway',
|
||||
721: 'Gateway für ausgehenden Datenverkehr auswählen',
|
||||
722: 'Der Typ des Gateways',
|
||||
723: 'Nur ausgehend',
|
||||
724: 'Als Standard für ausgehenden Verkehr festlegen',
|
||||
725: 'Gesamten ausgehenden Datenverkehr über dieses Gateway leiten',
|
||||
726: 'WireGuard-Konfigurationsdatei',
|
||||
727: 'Eingehend/Ausgehend',
|
||||
728: 'StartTunnel (Eingehend/Ausgehend)',
|
||||
729: 'Ethernet',
|
||||
730: 'Domain hinzufügen',
|
||||
731: 'Öffentliche Domain',
|
||||
732: 'Private Domain',
|
||||
733: 'Ausblenden',
|
||||
734: 'Standard ausgehend',
|
||||
735: 'Zertifikat',
|
||||
736: 'Selbstsigniert',
|
||||
737: 'Portweiterleitung',
|
||||
738: 'Domain-Einrichtung',
|
||||
739: 'DNS',
|
||||
740: 'Anweisungen',
|
||||
741: 'In Ihrem Domain-Registrar für',
|
||||
742: 'diesen DNS-Eintrag erstellen',
|
||||
743: 'In Ihrem Gateway',
|
||||
744: 'diese Portweiterleitungsregel erstellen',
|
||||
745: 'Externer Port',
|
||||
746: 'Interne IP',
|
||||
747: 'Interner Port',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -654,24 +654,35 @@ export default {
|
||||
714: '¡Instalación completada!',
|
||||
715: 'StartOS se ha instalado correctamente.',
|
||||
716: 'Continuar con la configuración',
|
||||
717: '',
|
||||
718: '',
|
||||
719: '',
|
||||
720: '',
|
||||
721: '',
|
||||
722: '',
|
||||
723: '',
|
||||
724: '',
|
||||
725: '',
|
||||
726: '',
|
||||
727: '',
|
||||
728: '',
|
||||
729: '',
|
||||
730: '',
|
||||
731: '',
|
||||
732: '',
|
||||
733: '',
|
||||
734: '',
|
||||
735: '',
|
||||
736: '',
|
||||
717: 'Establecer puerta de enlace saliente',
|
||||
718: 'Actual',
|
||||
719: 'Predeterminado del sistema',
|
||||
720: 'Puerta de enlace saliente',
|
||||
721: 'Selecciona la puerta de enlace para el tráfico saliente',
|
||||
722: 'El tipo de puerta de enlace',
|
||||
723: 'Solo saliente',
|
||||
724: 'Establecer como saliente predeterminado',
|
||||
725: 'Enrutar todo el tráfico saliente a través de esta puerta de enlace',
|
||||
726: 'Archivo de configuración WireGuard',
|
||||
727: 'Entrante/Saliente',
|
||||
728: 'StartTunnel (Entrante/Saliente)',
|
||||
729: 'Ethernet',
|
||||
730: 'Agregar dominio',
|
||||
731: 'Dominio público',
|
||||
732: 'Dominio privado',
|
||||
733: 'Ocultar',
|
||||
734: 'saliente predeterminado',
|
||||
735: 'Certificado',
|
||||
736: 'Autofirmado',
|
||||
737: 'Reenvío de puertos',
|
||||
738: 'Configuración de dominio',
|
||||
739: 'DNS',
|
||||
740: 'Instrucciones',
|
||||
741: 'En su registrador de dominios para',
|
||||
742: 'cree este registro DNS',
|
||||
743: 'En su puerta de enlace',
|
||||
744: 'cree esta regla de reenvío de puertos',
|
||||
745: 'Puerto externo',
|
||||
746: 'IP interna',
|
||||
747: 'Puerto interno',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -654,24 +654,35 @@ export default {
|
||||
714: 'Installation terminée !',
|
||||
715: 'StartOS a été installé avec succès.',
|
||||
716: 'Continuer vers la configuration',
|
||||
717: '',
|
||||
718: '',
|
||||
719: '',
|
||||
720: '',
|
||||
721: '',
|
||||
722: '',
|
||||
723: '',
|
||||
724: '',
|
||||
725: '',
|
||||
726: '',
|
||||
727: '',
|
||||
728: '',
|
||||
729: '',
|
||||
730: '',
|
||||
731: '',
|
||||
732: '',
|
||||
733: '',
|
||||
734: '',
|
||||
735: '',
|
||||
736: '',
|
||||
717: 'Définir la passerelle sortante',
|
||||
718: 'Actuel',
|
||||
719: 'Par défaut du système',
|
||||
720: 'Passerelle sortante',
|
||||
721: 'Sélectionnez la passerelle pour le trafic sortant',
|
||||
722: 'Le type de passerelle',
|
||||
723: 'Sortant uniquement',
|
||||
724: 'Définir comme sortant par défaut',
|
||||
725: 'Acheminer tout le trafic sortant via cette passerelle',
|
||||
726: 'Fichier de configuration WireGuard',
|
||||
727: 'Entrant/Sortant',
|
||||
728: 'StartTunnel (Entrant/Sortant)',
|
||||
729: 'Ethernet',
|
||||
730: 'Ajouter un domaine',
|
||||
731: 'Domaine public',
|
||||
732: 'Domaine privé',
|
||||
733: 'Masquer',
|
||||
734: 'sortant par défaut',
|
||||
735: 'Certificat',
|
||||
736: 'Auto-signé',
|
||||
737: 'Redirection de ports',
|
||||
738: 'Configuration du domaine',
|
||||
739: 'DNS',
|
||||
740: 'Instructions',
|
||||
741: 'Dans votre registraire de domaine pour',
|
||||
742: 'créez cet enregistrement DNS',
|
||||
743: 'Dans votre passerelle',
|
||||
744: 'créez cette règle de redirection de port',
|
||||
745: 'Port externe',
|
||||
746: 'IP interne',
|
||||
747: 'Port interne',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -654,24 +654,35 @@ export default {
|
||||
714: 'Instalacja zakończona!',
|
||||
715: 'StartOS został pomyślnie zainstalowany.',
|
||||
716: 'Przejdź do konfiguracji',
|
||||
717: '',
|
||||
718: '',
|
||||
719: '',
|
||||
720: '',
|
||||
721: '',
|
||||
722: '',
|
||||
723: '',
|
||||
724: '',
|
||||
725: '',
|
||||
726: '',
|
||||
727: '',
|
||||
728: '',
|
||||
729: '',
|
||||
730: '',
|
||||
731: '',
|
||||
732: '',
|
||||
733: '',
|
||||
734: '',
|
||||
735: '',
|
||||
736: '',
|
||||
717: 'Ustaw bramę wychodzącą',
|
||||
718: 'Bieżący',
|
||||
719: 'Domyślne systemu',
|
||||
720: 'Brama wychodząca',
|
||||
721: 'Wybierz bramę dla ruchu wychodzącego',
|
||||
722: 'Typ bramy',
|
||||
723: 'Tylko wychodzący',
|
||||
724: 'Ustaw jako domyślne wychodzące',
|
||||
725: 'Kieruj cały ruch wychodzący przez tę bramę',
|
||||
726: 'Plik konfiguracyjny WireGuard',
|
||||
727: 'Przychodzący/Wychodzący',
|
||||
728: 'StartTunnel (Przychodzący/Wychodzący)',
|
||||
729: 'Ethernet',
|
||||
730: 'Dodaj domenę',
|
||||
731: 'Domena publiczna',
|
||||
732: 'Domena prywatna',
|
||||
733: 'Ukryj',
|
||||
734: 'domyślne wychodzące',
|
||||
735: 'Certyfikat',
|
||||
736: 'Samopodpisany',
|
||||
737: 'Przekierowanie portów',
|
||||
738: 'Konfiguracja domeny',
|
||||
739: 'DNS',
|
||||
740: 'Instrukcje',
|
||||
741: 'W rejestratorze domeny dla',
|
||||
742: 'utwórz ten rekord DNS',
|
||||
743: 'W bramie',
|
||||
744: 'utwórz tę regułę przekierowania portów',
|
||||
745: 'Port zewnętrzny',
|
||||
746: 'Wewnętrzny IP',
|
||||
747: 'Port wewnętrzny',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -12,13 +12,13 @@ import {
|
||||
switchMap,
|
||||
timer,
|
||||
} from 'rxjs'
|
||||
import { FollowLogsReq, FollowLogsRes, Log } from '../types/api'
|
||||
import { T } from '@start9labs/start-sdk'
|
||||
import { Constructor } from '../types/constructor'
|
||||
import { convertAnsi } from '../util/convert-ansi'
|
||||
|
||||
interface Api {
|
||||
initFollowLogs: (params: FollowLogsReq) => Promise<FollowLogsRes>
|
||||
openWebsocket$: (guid: string) => Observable<Log>
|
||||
initFollowLogs: (params: {}) => Promise<T.LogFollowResponse>
|
||||
openWebsocket$: (guid: string) => Observable<T.LogEntry>
|
||||
}
|
||||
|
||||
export function provideSetupLogsService(
|
||||
|
||||
@@ -1,27 +1,3 @@
|
||||
export type FollowLogsReq = {}
|
||||
export type FollowLogsRes = {
|
||||
startCursor: string
|
||||
guid: string
|
||||
}
|
||||
|
||||
export type FetchLogsReq = {
|
||||
before: boolean
|
||||
cursor?: string
|
||||
limit?: number
|
||||
}
|
||||
|
||||
export type FetchLogsRes = {
|
||||
entries: Log[]
|
||||
startCursor?: string
|
||||
endCursor?: string
|
||||
}
|
||||
|
||||
export interface Log {
|
||||
timestamp: string
|
||||
message: string
|
||||
bootId: string
|
||||
}
|
||||
|
||||
export type DiskListResponse = DiskInfo[]
|
||||
|
||||
export interface DiskInfo {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Log } from '../types/api'
|
||||
import { T } from '@start9labs/start-sdk'
|
||||
import { toLocalIsoString } from './to-local-iso-string'
|
||||
import Convert from 'ansi-to-html'
|
||||
|
||||
@@ -8,7 +8,7 @@ const CONVERT = new Convert({
|
||||
escapeXML: true,
|
||||
})
|
||||
|
||||
export function convertAnsi(entries: readonly Log[]): string {
|
||||
export function convertAnsi(entries: readonly T.LogEntry[]): string {
|
||||
return entries
|
||||
.map(
|
||||
({ timestamp, message }) =>
|
||||
|
||||
Reference in New Issue
Block a user