diff --git a/auth.go b/auth.go index 479d050..0105389 100644 --- a/auth.go +++ b/auth.go @@ -252,7 +252,7 @@ func (o *OIDC) handleCallback(w http.ResponseWriter, r *http.Request) { var ls loginState c, err := r.Cookie(loginCookie + state) if state == "" || err != nil || !verifyCookie(o.key, c.Value, &ls) || time.Now().Unix() > ls.Exp { - http.Error(w, "login expired or started in another browser: open logstream again", http.StatusBadRequest) + http.Error(w, "login expired or started in another browser: open LogStream again", http.StatusBadRequest) return } http.SetCookie(w, &http.Cookie{Name: loginCookie + state, Path: "/", MaxAge: -1, HttpOnly: true, Secure: o.secure}) @@ -260,7 +260,7 @@ func (o *OIDC) handleCallback(w http.ResponseWriter, r *http.Request) { user, err := o.exchange(r, q.Get("code"), ls) if err != nil { log.Printf("oidc: login failed: %v", err) - http.Error(w, "login failed, see the logstream logs", http.StatusForbidden) + http.Error(w, "login failed, see the LogStream logs", http.StatusForbidden) return } log.Printf("oidc: %s logged in", user) diff --git a/web/app.js b/web/app.js index 35404cc..07ca01b 100644 --- a/web/app.js +++ b/web/app.js @@ -71,7 +71,7 @@ const I18N = { srcHost: 'Host system', hostTitle: 'Host system logs', hostEnabled: 'Collect the system logs of this machine', - hostOff: 'Off: the system logs of the machine hosting Logstream are not collected.', + hostOff: 'Off: the system logs of the machine hosting LogStream are not collected.', hostWaiting: 'Starting…', hostJournal: ({ n, r }) => `Reading the systemd journal (${n} files): ${r} entries since startup.`, hostFiles: ({ n, r }) => `Following ${n} files of /var/log: ${r} lines since startup.`, @@ -98,8 +98,8 @@ const I18N = { dockerLegend: 'Colored: followed · grey: not followed · dashed: stopped · the color identifies the compose project. Click a label to switch it.', dockerNoMatch: 'No container', stFollowing: 'followed', stSelected: 'followed when running', stIgnored: 'not followed', stStopped: 'stopped', - stLocked: 'excluded', stLockedTitle: 'Logstream itself, or label logstream.exclude=true', - dockerHelp: 'Logs are read through docker-socket-proxy, a read-only gateway: Logstream can list containers and read their logs, nothing else. Choices apply per compose service (or container name), so they survive container re-creations.', + stLocked: 'excluded', stLockedTitle: 'LogStream itself, or label logstream.exclude=true', + dockerHelp: 'Logs are read through docker-socket-proxy, a read-only gateway: LogStream can list containers and read their logs, nothing else. Choices apply per compose service (or container name), so they survive container re-creations.', fContainer: 'container', fContainerId: 'container ID', fImage: 'image', fProject: 'compose project', fService: 'compose service', fStream: 'stream', fSourceType: 'source', fUnit: 'systemd unit', fLogFile: 'log file', @@ -215,7 +215,7 @@ const I18N = { srcHost: 'Système hôte', hostTitle: 'Logs système de l\'hôte', hostEnabled: 'Collecter les logs système de cette machine', - hostOff: 'Désactivé : les logs système de la machine qui héberge Logstream ne sont pas collectés.', + hostOff: 'Désactivé : les logs système de la machine qui héberge LogStream ne sont pas collectés.', hostWaiting: 'Démarrage…', hostJournal: ({ n, r }) => `Lecture du journal systemd (${n} fichiers) : ${r} entrées depuis le démarrage.`, hostFiles: ({ n, r }) => `Suivi de ${n} fichiers de /var/log : ${r} lignes depuis le démarrage.`, @@ -242,8 +242,8 @@ const I18N = { dockerLegend: 'En couleur : suivis · en gris : non suivis · pointillés : arrêtés · la couleur identifie le projet compose. Cliquez sur une étiquette pour la basculer.', dockerNoMatch: 'Aucun conteneur', stFollowing: 'suivi', stSelected: 'suivi dès qu\'il tourne', stIgnored: 'non suivi', stStopped: 'arrêté', - stLocked: 'exclu', stLockedTitle: 'Logstream lui-même, ou étiquette logstream.exclude=true', - dockerHelp: 'Les logs sont lus via docker-socket-proxy, une passerelle en lecture seule : Logstream peut lister les conteneurs et lire leurs logs, rien d\'autre. Les choix s\'appliquent par service compose (ou nom de conteneur), ils survivent donc à la recréation des conteneurs.', + stLocked: 'exclu', stLockedTitle: 'LogStream lui-même, ou étiquette logstream.exclude=true', + dockerHelp: 'Les logs sont lus via docker-socket-proxy, une passerelle en lecture seule : LogStream peut lister les conteneurs et lire leurs logs, rien d\'autre. Les choix s\'appliquent par service compose (ou nom de conteneur), ils survivent donc à la recréation des conteneurs.', fContainer: 'conteneur', fContainerId: 'ID du conteneur', fImage: 'image', fProject: 'projet compose', fService: 'service compose', fStream: 'flux', fSourceType: 'source', fUnit: 'unité systemd', fLogFile: 'fichier de log', diff --git a/web/index.html b/web/index.html index 5bfb619..63bf160 100644 --- a/web/index.html +++ b/web/index.html @@ -3,7 +3,7 @@
-