@sentinel-nvr/web 0.20.2 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Kameras",
45
45
  "nvr.cameras.none": "Keine Kameras mit aktiver Sentinel-NVR-Erweiterung.",
46
46
  "nvr.cameras.offline": "Offline",
47
+ "nvr.cameras.live": "Live",
47
48
  "nvr.cameras.stalled": "Aufnahme hängt",
48
49
  "nvr.cameras.stalledHint": "Es kommen keine neuen Aufnahmen an, Sentinel startet die Aufnahme neu",
49
50
  "nvr.cameras.eventsToday.one": "{count} heute",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Dunkel",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Sprache",
125
- "nvr.settings.language.auto": "Automatisch",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Design",
127
128
  "nvr.settings.theme.selectAria": "Design {name} wählen",
128
129
  "nvr.settings.accent": "Akzentfarbe",
129
130
  "nvr.settings.accent.reset": "Zurücksetzen",
130
131
  "nvr.settings.accent.hueAria": "Farbton der Akzentfarbe",
132
+ "nvr.settings.style": "Stil",
133
+ "nvr.settings.style.groupAria": "Stil der Oberfläche",
134
+ "nvr.settings.style.classic": "Klassisch",
135
+ "nvr.settings.style.glas": "Glas",
136
+ "nvr.settings.style.hint": "Glas ändert nur Aussehen und Bewegung, alle Funktionen bleiben.",
137
+ "nvr.settings.glassStrength": "Glas-Stärke",
138
+ "nvr.settings.glassStrength.groupAria": "Wie stark das Glas getönt ist",
139
+ "nvr.settings.glassStrength.clear": "Klar",
140
+ "nvr.settings.glassStrength.tinted": "Getönt",
141
+ "nvr.settings.glassStrength.opaque": "Deckend",
142
+ "nvr.settings.reduceTransparency": "Transparenz reduzieren",
143
+ "nvr.settings.reduceTransparency.hint": "Deckende Flächen statt Glas (z. B. für ältere Tablets)",
144
+ "nvr.settings.theme.glasHint": "Im Stil Glas gilt eine neutrale Farbpalette. Das Design bleibt für Klassisch gespeichert.",
131
145
  "nvr.settings.title": "Einstellungen",
132
146
  "nvr.setup.authToken": "Zugriffs-Token",
133
147
  "nvr.setup.authLogin": "Scrypted-Konto",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Cameras",
45
45
  "nvr.cameras.none": "No cameras with the Sentinel NVR extension enabled.",
46
46
  "nvr.cameras.offline": "Offline",
47
+ "nvr.cameras.live": "Live",
47
48
  "nvr.cameras.stalled": "Recording stalled",
48
49
  "nvr.cameras.stalledHint": "No new recordings are arriving, Sentinel is restarting the recording",
49
50
  "nvr.cameras.eventsToday.one": "{count} today",
@@ -128,6 +129,19 @@
128
129
  "nvr.settings.accent": "Accent colour",
129
130
  "nvr.settings.accent.reset": "Reset",
130
131
  "nvr.settings.accent.hueAria": "Accent colour hue",
132
+ "nvr.settings.style": "Style",
133
+ "nvr.settings.style.groupAria": "Interface style",
134
+ "nvr.settings.style.classic": "Classic",
135
+ "nvr.settings.style.glas": "Glass",
136
+ "nvr.settings.style.hint": "Glass only changes the look and the motion; every function stays.",
137
+ "nvr.settings.glassStrength": "Glass strength",
138
+ "nvr.settings.glassStrength.groupAria": "How strongly the glass is tinted",
139
+ "nvr.settings.glassStrength.clear": "Clear",
140
+ "nvr.settings.glassStrength.tinted": "Tinted",
141
+ "nvr.settings.glassStrength.opaque": "Opaque",
142
+ "nvr.settings.reduceTransparency": "Reduce transparency",
143
+ "nvr.settings.reduceTransparency.hint": "Solid surfaces instead of glass (e.g. for older tablets)",
144
+ "nvr.settings.theme.glasHint": "The Glass style uses one neutral palette. Your theme stays saved for Classic.",
131
145
  "nvr.settings.title": "Settings",
132
146
  "nvr.setup.authToken": "Access token",
133
147
  "nvr.setup.authLogin": "Scrypted account",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Cámaras",
45
45
  "nvr.cameras.none": "No hay cámaras con la extensión Sentinel NVR activada.",
46
46
  "nvr.cameras.offline": "Sin conexión",
47
+ "nvr.cameras.live": "En vivo",
47
48
  "nvr.cameras.stalled": "Grabación detenida",
48
49
  "nvr.cameras.stalledHint": "No llegan grabaciones nuevas, Sentinel reinicia la grabación",
49
50
  "nvr.cameras.eventsToday.one": "{count} hoy",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Oscuro",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Idioma",
125
- "nvr.settings.language.auto": "Automático",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Tema",
127
128
  "nvr.settings.theme.selectAria": "Seleccionar el tema {name}",
128
129
  "nvr.settings.accent": "Color de acento",
129
130
  "nvr.settings.accent.reset": "Restablecer",
130
131
  "nvr.settings.accent.hueAria": "Tono del color de acento",
132
+ "nvr.settings.style": "Estilo",
133
+ "nvr.settings.style.groupAria": "Estilo de la interfaz",
134
+ "nvr.settings.style.classic": "Clásico",
135
+ "nvr.settings.style.glas": "Cristal",
136
+ "nvr.settings.style.hint": "Cristal solo cambia el aspecto y el movimiento; todas las funciones se mantienen.",
137
+ "nvr.settings.glassStrength": "Intensidad del cristal",
138
+ "nvr.settings.glassStrength.groupAria": "Cuánto se tiñe el cristal",
139
+ "nvr.settings.glassStrength.clear": "Claro",
140
+ "nvr.settings.glassStrength.tinted": "Tintado",
141
+ "nvr.settings.glassStrength.opaque": "Opaco",
142
+ "nvr.settings.reduceTransparency": "Reducir transparencia",
143
+ "nvr.settings.reduceTransparency.hint": "Superficies opacas en lugar de cristal (p. ej. para tabletas antiguas)",
144
+ "nvr.settings.theme.glasHint": "El estilo Cristal usa una paleta neutra. Tu tema se guarda para Clásico.",
131
145
  "nvr.settings.title": "Ajustes",
132
146
  "nvr.setup.authToken": "Token de acceso",
133
147
  "nvr.setup.authLogin": "Cuenta de Scrypted",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Caméras",
45
45
  "nvr.cameras.none": "Aucune caméra avec l’extension Sentinel NVR activée.",
46
46
  "nvr.cameras.offline": "Hors ligne",
47
+ "nvr.cameras.live": "En direct",
47
48
  "nvr.cameras.stalled": "Enregistrement bloqué",
48
49
  "nvr.cameras.stalledHint": "Aucun nouvel enregistrement n’arrive, Sentinel redémarre l’enregistrement",
49
50
  "nvr.cameras.eventsToday.one": "{count} aujourd’hui",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Sombre",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Langue",
125
- "nvr.settings.language.auto": "Automatique",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Thème",
127
128
  "nvr.settings.theme.selectAria": "Choisir le thème {name}",
128
129
  "nvr.settings.accent": "Couleur d’accent",
129
130
  "nvr.settings.accent.reset": "Réinitialiser",
130
131
  "nvr.settings.accent.hueAria": "Teinte de la couleur d’accent",
132
+ "nvr.settings.style": "Style",
133
+ "nvr.settings.style.groupAria": "Style de l’interface",
134
+ "nvr.settings.style.classic": "Classique",
135
+ "nvr.settings.style.glas": "Verre",
136
+ "nvr.settings.style.hint": "Verre ne change que l’apparence et les animations ; toutes les fonctions restent.",
137
+ "nvr.settings.glassStrength": "Intensité du verre",
138
+ "nvr.settings.glassStrength.groupAria": "Intensité de la teinte du verre",
139
+ "nvr.settings.glassStrength.clear": "Clair",
140
+ "nvr.settings.glassStrength.tinted": "Teinté",
141
+ "nvr.settings.glassStrength.opaque": "Opaque",
142
+ "nvr.settings.reduceTransparency": "Réduire la transparence",
143
+ "nvr.settings.reduceTransparency.hint": "Surfaces opaques au lieu du verre (p. ex. pour les tablettes anciennes)",
144
+ "nvr.settings.theme.glasHint": "Le style Verre utilise une palette neutre. Votre thème reste enregistré pour Classique.",
131
145
  "nvr.settings.title": "Réglages",
132
146
  "nvr.setup.authToken": "Jeton d’accès",
133
147
  "nvr.setup.authLogin": "Compte Scrypted",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Telecamere",
45
45
  "nvr.cameras.none": "Nessuna telecamera con l’estensione Sentinel NVR attiva.",
46
46
  "nvr.cameras.offline": "Offline",
47
+ "nvr.cameras.live": "Live",
47
48
  "nvr.cameras.stalled": "Registrazione bloccata",
48
49
  "nvr.cameras.stalledHint": "Non arrivano nuove registrazioni, Sentinel riavvia la registrazione",
49
50
  "nvr.cameras.eventsToday.one": "{count} oggi",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Scuro",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Lingua",
125
- "nvr.settings.language.auto": "Automatico",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Tema",
127
128
  "nvr.settings.theme.selectAria": "Seleziona il tema {name}",
128
129
  "nvr.settings.accent": "Colore accento",
129
130
  "nvr.settings.accent.reset": "Ripristina",
130
131
  "nvr.settings.accent.hueAria": "Tonalità del colore accento",
132
+ "nvr.settings.style": "Stile",
133
+ "nvr.settings.style.groupAria": "Stile dell'interfaccia",
134
+ "nvr.settings.style.classic": "Classico",
135
+ "nvr.settings.style.glas": "Vetro",
136
+ "nvr.settings.style.hint": "Vetro cambia solo l'aspetto e le animazioni; tutte le funzioni restano.",
137
+ "nvr.settings.glassStrength": "Intensità del vetro",
138
+ "nvr.settings.glassStrength.groupAria": "Quanto è colorato il vetro",
139
+ "nvr.settings.glassStrength.clear": "Chiaro",
140
+ "nvr.settings.glassStrength.tinted": "Colorato",
141
+ "nvr.settings.glassStrength.opaque": "Opaco",
142
+ "nvr.settings.reduceTransparency": "Riduci trasparenza",
143
+ "nvr.settings.reduceTransparency.hint": "Superfici opache invece del vetro (ad es. per tablet meno recenti)",
144
+ "nvr.settings.theme.glasHint": "Lo stile Vetro usa una tavolozza neutra. Il tuo tema resta salvato per Classico.",
131
145
  "nvr.settings.title": "Impostazioni",
132
146
  "nvr.setup.authToken": "Token di accesso",
133
147
  "nvr.setup.authLogin": "Account Scrypted",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Câmaras",
45
45
  "nvr.cameras.none": "Nenhuma câmara com a extensão Sentinel NVR ativa.",
46
46
  "nvr.cameras.offline": "Offline",
47
+ "nvr.cameras.live": "Ao vivo",
47
48
  "nvr.cameras.stalled": "Gravação parada",
48
49
  "nvr.cameras.stalledHint": "Não chegam novas gravações, o Sentinel está a reiniciar a gravação",
49
50
  "nvr.cameras.eventsToday.one": "{count} hoje",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Escuro",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Idioma",
125
- "nvr.settings.language.auto": "Automático",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Tema",
127
128
  "nvr.settings.theme.selectAria": "Selecionar o tema {name}",
128
129
  "nvr.settings.accent": "Cor de destaque",
129
130
  "nvr.settings.accent.reset": "Repor",
130
131
  "nvr.settings.accent.hueAria": "Tom da cor de destaque",
132
+ "nvr.settings.style": "Estilo",
133
+ "nvr.settings.style.groupAria": "Estilo da interface",
134
+ "nvr.settings.style.classic": "Clássico",
135
+ "nvr.settings.style.glas": "Vidro",
136
+ "nvr.settings.style.hint": "Vidro muda apenas a aparência e o movimento; todas as funções se mantêm.",
137
+ "nvr.settings.glassStrength": "Intensidade do vidro",
138
+ "nvr.settings.glassStrength.groupAria": "Quanto o vidro é tingido",
139
+ "nvr.settings.glassStrength.clear": "Claro",
140
+ "nvr.settings.glassStrength.tinted": "Tingido",
141
+ "nvr.settings.glassStrength.opaque": "Opaco",
142
+ "nvr.settings.reduceTransparency": "Reduzir transparência",
143
+ "nvr.settings.reduceTransparency.hint": "Superfícies opacas em vez de vidro (p. ex. para tablets mais antigos)",
144
+ "nvr.settings.theme.glasHint": "O estilo Vidro usa uma paleta neutra. O seu tema fica guardado para Clássico.",
131
145
  "nvr.settings.title": "Definições",
132
146
  "nvr.setup.authToken": "Token de acesso",
133
147
  "nvr.setup.authLogin": "Conta Scrypted",
@@ -44,6 +44,7 @@
44
44
  "nvr.cameras.title": "Kameror",
45
45
  "nvr.cameras.none": "Inga kameror med Sentinel NVR-tillägget aktiverat.",
46
46
  "nvr.cameras.offline": "Offline",
47
+ "nvr.cameras.live": "Live",
47
48
  "nvr.cameras.stalled": "Inspelningen har stannat",
48
49
  "nvr.cameras.stalledHint": "Inga nya inspelningar kommer in, Sentinel startar om inspelningen",
49
50
  "nvr.cameras.eventsToday.one": "{count} idag",
@@ -122,12 +123,25 @@
122
123
  "nvr.settings.mode.dark": "Mörkt",
123
124
  "nvr.settings.mode.auto": "Auto",
124
125
  "nvr.settings.language": "Språk",
125
- "nvr.settings.language.auto": "Automatiskt",
126
+ "nvr.settings.language.auto": "Auto",
126
127
  "nvr.settings.theme": "Tema",
127
128
  "nvr.settings.theme.selectAria": "Välj temat {name}",
128
129
  "nvr.settings.accent": "Accentfärg",
129
130
  "nvr.settings.accent.reset": "Återställ",
130
131
  "nvr.settings.accent.hueAria": "Accentfärgens nyans",
132
+ "nvr.settings.style": "Stil",
133
+ "nvr.settings.style.groupAria": "Gränssnittets stil",
134
+ "nvr.settings.style.classic": "Klassisk",
135
+ "nvr.settings.style.glas": "Glas",
136
+ "nvr.settings.style.hint": "Glas ändrar bara utseende och rörelse; alla funktioner finns kvar.",
137
+ "nvr.settings.glassStrength": "Glasets styrka",
138
+ "nvr.settings.glassStrength.groupAria": "Hur starkt glaset är tonat",
139
+ "nvr.settings.glassStrength.clear": "Klar",
140
+ "nvr.settings.glassStrength.tinted": "Tonat",
141
+ "nvr.settings.glassStrength.opaque": "Täckande",
142
+ "nvr.settings.reduceTransparency": "Minska genomskinlighet",
143
+ "nvr.settings.reduceTransparency.hint": "Täckande ytor i stället för glas (t.ex. för äldre surfplattor)",
144
+ "nvr.settings.theme.glasHint": "Stilen Glas använder en neutral palett. Ditt tema sparas för Klassisk.",
131
145
  "nvr.settings.title": "Inställningar",
132
146
  "nvr.setup.authToken": "Åtkomsttoken",
133
147
  "nvr.setup.authLogin": "Scrypted-konto",
package/dist/ui/ui.css CHANGED
@@ -1925,6 +1925,50 @@
1925
1925
  outline: 2px solid var(--accent);
1926
1926
  outline-offset: 2px;
1927
1927
  }
1928
+ /* a hint under a settings row, aligned with the label text (0.21.0) */
1929
+ .nvr-set__hint {
1930
+ flex-basis: 100%;
1931
+ margin: -0.375rem 0 0;
1932
+ padding-left: calc(28px + 0.625rem);
1933
+ font-size: 0.8125rem;
1934
+ line-height: 1.4;
1935
+ color: var(--text-faint);
1936
+ }
1937
+ /* on/off switch (0.21.0) */
1938
+ .nvr-switch {
1939
+ position: relative;
1940
+ width: 48px;
1941
+ height: 28px;
1942
+ border-radius: 14px;
1943
+ background: var(--border);
1944
+ border: none;
1945
+ cursor: pointer;
1946
+ padding: 0;
1947
+ flex-shrink: 0;
1948
+ transition: background 200ms ease-out;
1949
+ }
1950
+ .nvr-switch:focus-visible {
1951
+ outline: 2px solid var(--accent);
1952
+ outline-offset: 2px;
1953
+ }
1954
+ .nvr-switch--on {
1955
+ background: var(--accent);
1956
+ }
1957
+ .nvr-switch__thumb {
1958
+ position: absolute;
1959
+ top: 3px;
1960
+ left: 3px;
1961
+ width: 22px;
1962
+ height: 22px;
1963
+ border-radius: 50%;
1964
+ background: var(--on-accent);
1965
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
1966
+ transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
1967
+ pointer-events: none;
1968
+ }
1969
+ .nvr-switch--on .nvr-switch__thumb {
1970
+ transform: translateX(20px);
1971
+ }
1928
1972
  /* pill select */
1929
1973
  .nvr-select {
1930
1974
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentinel-nvr/web",
3
- "version": "0.20.2",
3
+ "version": "0.22.0",
4
4
  "description": "Shared browser code for the Sentinel NVR plugin for Scrypted: API model + client (/api), player (/player) and React UI with i18n + themes (/ui). Consumed by the plugin's own web UI and the HAPulse dashboard.",
5
5
  "license": "MIT",
6
6
  "author": "Muggedadscher",
@@ -32,14 +32,20 @@
32
32
  "import": "./dist/ui/index.js",
33
33
  "default": "./dist/ui/index.js"
34
34
  },
35
+ "./glas": {
36
+ "types": "./dist/glas/index.d.ts",
37
+ "import": "./dist/glas/index.js",
38
+ "default": "./dist/glas/index.js"
39
+ },
35
40
  "./ui/ui.css": "./dist/ui/ui.css",
41
+ "./ui/glas.css": "./dist/ui/glas.css",
36
42
  "./ui/locales/*": "./dist/ui/locales/*"
37
43
  },
38
44
  "engines": {
39
45
  "node": ">=20"
40
46
  },
41
47
  "scripts": {
42
- "build": "tsup && mkdir -p dist/ui && cp src/ui/ui.css dist/ui/ui.css && rm -rf dist/ui/locales && cp -r src/ui/locales dist/ui/locales",
48
+ "build": "tsup && mkdir -p dist/ui && cp src/ui/ui.css dist/ui/ui.css && cp src/ui/glas.css dist/ui/glas.css && rm -rf dist/ui/locales && cp -r src/ui/locales dist/ui/locales",
43
49
  "typecheck": "tsc --noEmit",
44
50
  "test": "vitest run",
45
51
  "test:tz": "TZ=UTC vitest run && TZ=Europe/Berlin vitest run && TZ=America/New_York vitest run",
@@ -58,6 +64,7 @@
58
64
  "globals": "^17.12.0",
59
65
  "jsdom": "^30.1.1",
60
66
  "lucide-react": "^1.47.0",
67
+ "postcss": "^8.5.28",
61
68
  "prettier": "^3.9.9",
62
69
  "react": "^19.0.0",
63
70
  "react-dom": "^19.0.0",