3 Commits
Author SHA1 Message Date
MichelleandClaude Opus 4.8 03098eaf2b chore: update version to 2.3.0
Build & Push Docker Image / build (push) Successful in 4m5s
Build & Push Docker Image / build (release) Successful in 4m13s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 10:18:48 +02:00
MichelleandClaude Opus 4.8 7dd834cd35 Harden server security, rework landing page and refresh branding
Build & Push Docker Image / build (push) Successful in 4m3s
Security:
- rooms: rate-limit /invite-email (SMTP spam relay), validate share
  target user exists, guard timingSafeEqual against length mismatch
  in the presentation route (500 -> 403)
- analytics: verify callback token before parsing the 5mb body so
  unauthenticated callers cannot buffer large payloads
- caldav: rate-limit failed Basic-Auth attempts (token brute force),
  lowercase email lookup, case-insensitive principal check
- auth: fall back to the in-memory rate-limit store when Redis is
  unavailable; previously every rate-limited endpoint (incl. login)
  returned 500 when the Redis connection was down

UI/copy:
- Home: factual hero copy and feature cards (6 instead of 9), fix
  double-rendered feature icon, remove fake stats row and pill badge;
  keep the background gradient and card layout
- i18n: consistent informal tone, drop trailing exclamation marks
  from status toasts, remove emoji from transactional emails
- new favicon (logo.svg), restore theme-based default brand logo

Chore:
- gitignore SQLite WAL/SHM files

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 10:14:36 +02:00
Michelle 4621010bd7 feat: add dark mode support for meeting join and start processes
Build & Push Docker Image / build (push) Successful in 4m14s
2026-06-11 09:27:34 +02:00
22 changed files with 261 additions and 223 deletions
+2
View File
@@ -1,6 +1,8 @@
node_modules/ node_modules/
dist/ dist/
redlight.db redlight.db
redlight.db-wal
redlight.db-shm
uploads/ uploads/
.env .env
.claude/ .claude/
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en" data-theme="dark"> <html lang="en" data-theme="dark">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "redlight", "name": "redlight",
"version": "2.2.0", "version": "2.3.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "redlight", "name": "redlight",
"version": "2.2.0", "version": "2.3.0",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"dependencies": { "dependencies": {
"axios": "^1.7.0", "axios": "^1.7.0",
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "redlight", "name": "redlight",
"private": true, "private": true,
"version": "2.2.0", "version": "2.3.0",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"type": "module", "type": "module",
"scripts": { "scripts": {
+14
View File
@@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<!-- Speech bubble tail -->
<path d="M 185 325 L 148 425 L 248 360 Z" fill="#2B3140" stroke="#2B3140" stroke-width="14" stroke-linejoin="round"/>
<!-- Speech bubble outline -->
<circle cx="256" cy="240" r="120" fill="none" stroke="#2B3140" stroke-width="34"/>
<!-- Red dot -->
<circle cx="262" cy="234" r="76" fill="#ED2224"/>
<!-- Sound waves right -->
<path d="M 423 100 A 218 218 0 0 1 423 380" fill="none" stroke="#ED2224" stroke-width="32" stroke-linecap="round"/>
<path d="M 413 160 A 176 176 0 0 1 413 320" fill="none" stroke="#ED2224" stroke-width="30" stroke-linecap="round"/>
<!-- Sound waves left -->
<path d="M 89 100 A 218 218 0 0 0 89 380" fill="none" stroke="#ED2224" stroke-width="32" stroke-linecap="round"/>
<path d="M 99 160 A 176 176 0 0 0 99 320" fill="none" stroke="#ED2224" stroke-width="30" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 934 B

-5
View File
@@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
<rect width="32" height="32" rx="8" fill="#ef4444"/>
<circle cx="16" cy="16" r="8" fill="white" opacity="0.9"/>
<circle cx="16" cy="16" r="4" fill="#ef4444"/>
</svg>

Before

Width:  |  Height:  |  Size: 268 B

+6 -1
View File
@@ -130,7 +130,7 @@ export async function createMeeting(room, logoutURL, loginURL = null, presentati
return apiCall('create', params, xmlBody); return apiCall('create', params, xmlBody);
} }
export async function joinMeeting(uid, name, isModerator = false, avatarURL = null) { export async function joinMeeting(uid, name, isModerator = false, avatarURL = null, darkMode = false) {
const { moderatorPW, attendeePW } = getRoomPasswords(uid); const { moderatorPW, attendeePW } = getRoomPasswords(uid);
const params = { const params = {
meetingID: uid, meetingID: uid,
@@ -141,6 +141,11 @@ export async function joinMeeting(uid, name, isModerator = false, avatarURL = nu
if (avatarURL) { if (avatarURL) {
params.avatarURL = avatarURL; params.avatarURL = avatarURL;
} }
if (darkMode) {
// Per-user userdata override: start the client in dark theme for users who
// have a dark theme active in Redlight. Read by BBB as bbb_prefer_dark_theme.
params['userdata-bbb_prefer_dark_theme'] = 'true';
}
return buildUrl('join', params); return buildUrl('join', params);
} }
+1 -1
View File
@@ -228,7 +228,7 @@ export async function sendCalendarInviteEmail(to, name, fromUser, title, startTi
<p>${introHtml}</p> <p>${introHtml}</p>
<div style="background:#313244;border-radius:8px;padding:16px;margin:20px 0;"> <div style="background:#313244;border-radius:8px;padding:16px;margin:20px 0;">
<p style="margin:0 0 4px 0;font-size:15px;font-weight:bold;color:#cdd6f4;">${safeTitle}</p> <p style="margin:0 0 4px 0;font-size:15px;font-weight:bold;color:#cdd6f4;">${safeTitle}</p>
<p style="margin:6px 0 0 0;font-size:13px;color:#a6adc8;">🕐 ${escapeHtml(formatDate(startTime))} - ${escapeHtml(formatDate(endTime))}</p> <p style="margin:6px 0 0 0;font-size:13px;color:#a6adc8;">${escapeHtml(formatDate(startTime))} - ${escapeHtml(formatDate(endTime))}</p>
${safeDesc ? `<p style="margin:10px 0 0 0;font-size:13px;color:#a6adc8;font-style:italic;">&quot;${safeDesc}&quot;</p>` : ''} ${safeDesc ? `<p style="margin:10px 0 0 0;font-size:13px;color:#a6adc8;font-style:italic;">&quot;${safeDesc}&quot;</p>` : ''}
</div> </div>
<p style="text-align:center;margin:28px 0;"> <p style="text-align:center;margin:28px 0;">
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"email": { "email": {
"greeting": "Hey {name} 👋", "greeting": "Hallo {name},",
"viewInvitation": "Einladung anzeigen", "viewInvitation": "Einladung anzeigen",
"invitationFooter": "Öffne den Link oben, um die Einladung anzunehmen oder abzulehnen.", "invitationFooter": "Öffne den Link oben, um die Einladung anzunehmen oder abzulehnen.",
"linkHint": "Oder kopiere diesen Link in deinen Browser:", "linkHint": "Oder kopiere diesen Link in deinen Browser:",
@@ -13,7 +13,7 @@
}, },
"invite": { "invite": {
"subject": "{appName} - Du wurdest eingeladen", "subject": "{appName} - Du wurdest eingeladen",
"title": "Du wurdest eingeladen! 🎉", "title": "Du wurdest eingeladen",
"intro": "Du wurdest eingeladen, ein Konto auf {appName} zu erstellen.", "intro": "Du wurdest eingeladen, ein Konto auf {appName} zu erstellen.",
"prompt": "Klicke auf den Button, um dich zu registrieren:", "prompt": "Klicke auf den Button, um dich zu registrieren:",
"button": "Konto erstellen", "button": "Konto erstellen",
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"email": { "email": {
"greeting": "Hey {name} 👋", "greeting": "Hello {name},",
"viewInvitation": "View Invitation", "viewInvitation": "View Invitation",
"invitationFooter": "Open the link above to accept or decline the invitation.", "invitationFooter": "Open the link above to accept or decline the invitation.",
"linkHint": "Or copy this link in your browser:", "linkHint": "Or copy this link in your browser:",
@@ -13,7 +13,7 @@
}, },
"invite": { "invite": {
"subject": "{appName} - You've been invited", "subject": "{appName} - You've been invited",
"title": "You've been invited! 🎉", "title": "You have been invited",
"intro": "You have been invited to create an account on {appName}.", "intro": "You have been invited to create an account on {appName}.",
"prompt": "Click the button below to register:", "prompt": "Click the button below to register:",
"button": "Create Account", "button": "Create Account",
+15 -12
View File
@@ -9,22 +9,25 @@ import { getAnalyticsToken } from '../config/bbb.js';
const router = Router(); const router = Router();
// Token check runs BEFORE the 5mb body parser so unauthenticated callers
// cannot make the server buffer large payloads.
// Constant-time comparison to prevent timing attacks. Reject non-string tokens
// (e.g. ?token=a&token=b would yield an array and crash Buffer.from).
function verifyCallbackToken(req, res, next) {
const { token } = req.query;
const expectedToken = getAnalyticsToken(req.params.uid);
if (typeof token !== 'string' || token.length !== expectedToken.length ||
!crypto.timingSafeEqual(Buffer.from(token), Buffer.from(expectedToken))) {
return res.status(403).json({ error: 'Invalid token' });
}
next();
}
// POST /api/analytics/callback/:uid?token=... - BBB Learning Analytics callback (token-secured) // POST /api/analytics/callback/:uid?token=... - BBB Learning Analytics callback (token-secured)
// Excluded from the global 100kb body limit (see index.js): learning analytics // Excluded from the global 100kb body limit (see index.js): learning analytics
// payloads for large meetings can be several MB. // payloads for large meetings can be several MB.
router.post('/callback/:uid', json({ limit: '5mb' }), async (req, res) => { router.post('/callback/:uid', verifyCallbackToken, json({ limit: '5mb' }), async (req, res) => {
try { try {
const { token } = req.query;
const expectedToken = getAnalyticsToken(req.params.uid);
// Constant-time comparison to prevent timing attacks.
// Reject non-string tokens (e.g. ?token=a&token=b would yield an array and
// crash Buffer.from).
if (typeof token !== 'string' || token.length !== expectedToken.length ||
!crypto.timingSafeEqual(Buffer.from(token), Buffer.from(expectedToken))) {
return res.status(403).json({ error: 'Invalid token' });
}
const db = getDb(); const db = getDb();
const room = await db.get('SELECT id, uid, learning_analytics FROM rooms WHERE uid = ?', [req.params.uid]); const room = await db.get('SELECT id, uid, learning_analytics FROM rooms WHERE uid = ?', [req.params.uid]);
+59 -9
View File
@@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
import fs from 'fs'; import fs from 'fs';
import path from 'path'; import path from 'path';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
import { rateLimit } from 'express-rate-limit'; import { rateLimit, MemoryStore } from 'express-rate-limit';
import { RedisStore } from 'rate-limit-redis'; import { RedisStore } from 'rate-limit-redis';
import * as OTPAuth from 'otpauth'; import * as OTPAuth from 'otpauth';
import { getDb } from '../config/database.js'; import { getDb } from '../config/database.js';
@@ -23,15 +23,65 @@ if (!process.env.JWT_SECRET) {
const JWT_SECRET = process.env.JWT_SECRET; const JWT_SECRET = process.env.JWT_SECRET;
// ── Rate Limiting ──────────────────────────────────────────────────────────── // ── Rate Limiting ────────────────────────────────────────────────────────────
function makeRedisStore(prefix) { // Shared Redis store with in-memory fallback. Without the fallback, a dead
try { // Redis connection makes every rate-limited endpoint (incl. login) return 500 —
return new RedisStore({ // rate limiting must degrade, not take auth down with it.
sendCommand: (...args) => redis.call(...args), class ResilientStore {
prefix, constructor(prefix) {
}); try {
} catch { this.redisStore = new RedisStore({
return undefined; // falls back to in-memory if Redis unavailable sendCommand: (...args) => redis.call(...args),
prefix,
});
} catch {
this.redisStore = null;
}
this.memoryStore = new MemoryStore();
} }
init(options) {
try {
// RedisStore.init returns the SCRIPT LOAD promise; catch it so a dead
// Redis connection surfaces as a warning instead of an unhandled
// rejection that kills the process.
const initResult = this.redisStore?.init?.(options);
if (typeof initResult?.catch === 'function') {
initResult.catch(err => log.auth.warn(`Rate-limit Redis init failed: ${err.message}`));
}
} catch (err) {
log.auth.warn(`Rate-limit Redis init failed: ${err.message}`);
}
this.memoryStore.init(options);
}
async increment(key) {
if (this.redisStore && redis.status === 'ready') {
try {
return await this.redisStore.increment(key);
} catch (err) {
log.auth.warn(`Rate-limit Redis store failed, using in-memory fallback: ${err.message}`);
}
}
return this.memoryStore.increment(key);
}
async decrement(key) {
if (this.redisStore && redis.status === 'ready') {
try {
return await this.redisStore.decrement(key);
} catch { /* fall through to memory */ }
}
return this.memoryStore.decrement(key);
}
async resetKey(key) {
if (this.redisStore && redis.status === 'ready') {
try {
return await this.redisStore.resetKey(key);
} catch { /* fall through to memory */ }
}
return this.memoryStore.resetKey(key);
}
}
function makeRedisStore(prefix) {
return new ResilientStore(prefix);
} }
// ── Validation helpers ───────────────────────────────────────────────────── // ── Validation helpers ─────────────────────────────────────────────────────
+16 -2
View File
@@ -12,12 +12,25 @@
import { Router, text } from 'express'; import { Router, text } from 'express';
import crypto from 'crypto'; import crypto from 'crypto';
import { rateLimit } from 'express-rate-limit';
import { getDb } from '../config/database.js'; import { getDb } from '../config/database.js';
import { log } from '../config/logger.js'; import { log } from '../config/logger.js';
import { getBaseUrl } from '../middleware/auth.js'; import { getBaseUrl } from '../middleware/auth.js';
const router = Router(); const router = Router();
// Brute-force protection for the Basic-Auth tokens: only failed requests count
// (skipSuccessfulRequests), so legitimate sync clients polling frequently are
// not throttled.
router.use(rateLimit({
windowMs: 15 * 60 * 1000,
max: 30,
skipSuccessfulRequests: true,
standardHeaders: true,
legacyHeaders: false,
message: 'Too many failed CalDAV requests. Please try again later.',
}));
// ── Body parsing for XML and iCalendar payloads ──────────────────────────── // ── Body parsing for XML and iCalendar payloads ────────────────────────────
router.use(text({ type: ['application/xml', 'text/xml', 'text/calendar', 'application/octet-stream'] })); router.use(text({ type: ['application/xml', 'text/xml', 'text/calendar', 'application/octet-stream'] }));
@@ -194,9 +207,10 @@ async function caldavAuth(req, res, next) {
const token = decoded.slice(colonIdx + 1); const token = decoded.slice(colonIdx + 1);
const db = getDb(); const db = getDb();
// Emails are stored lowercased
const user = await db.get( const user = await db.get(
'SELECT id, name, display_name, email FROM users WHERE email = ?', 'SELECT id, name, display_name, email FROM users WHERE email = ?',
[email], [email.toLowerCase()],
); );
if (!user) { if (!user) {
res.set('WWW-Authenticate', 'Basic realm="Redlight CalDAV"'); res.set('WWW-Authenticate', 'Basic realm="Redlight CalDAV"');
@@ -243,7 +257,7 @@ function setDAVHeaders(res) {
// ── CalDAV username authorization ────────────────────────────────────────── // ── CalDAV username authorization ──────────────────────────────────────────
// Ensures the :username param matches the authenticated user's email // Ensures the :username param matches the authenticated user's email
function validateCalDAVUser(req, res, next) { function validateCalDAVUser(req, res, next) {
if (req.params.username && decodeURIComponent(req.params.username) !== req.caldavUser.email) { if (req.params.username && decodeURIComponent(req.params.username).toLowerCase() !== req.caldavUser.email) {
return res.status(403).end(); return res.status(403).end();
} }
next(); next();
+1 -1
View File
@@ -41,7 +41,7 @@ export function wellKnownHandler(req, res) {
federation_api: '/api/federation', federation_api: '/api/federation',
public_key: getPublicKey(), public_key: getPublicKey(),
software: 'Redlight', software: 'Redlight',
version: '2.2.0', version: '2.3.0',
}); });
} }
+23 -6
View File
@@ -67,6 +67,16 @@ const guestJoinLimiter = rateLimit({
message: { error: 'Too many join attempts. Please try again later.' }, message: { error: 'Too many join attempts. Please try again later.' },
}); });
// Rate limit email invitations: each request may carry up to 50 addresses, so
// without a cap any registered account could be abused as an SMTP spam relay.
const inviteEmailLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour
max: 10,
standardHeaders: true,
legacyHeaders: false,
message: { error: 'Too many email invitations. Please try again later.' },
});
const router = Router(); const router = Router();
// Build avatar URL for a user (uploaded image or generated initials) // Build avatar URL for a user (uploaded image or generated initials)
@@ -425,6 +435,10 @@ router.post('/:uid/shares', authenticateToken, async (req, res) => {
if (user_id === req.user.id) { if (user_id === req.user.id) {
return res.status(400).json({ error: 'You cannot share the room with yourself' }); return res.status(400).json({ error: 'You cannot share the room with yourself' });
} }
const targetUser = await db.get('SELECT id FROM users WHERE id = ?', [user_id]);
if (!targetUser) {
return res.status(404).json({ error: 'User not found' });
}
// Check if already shared // Check if already shared
const existing = await db.get('SELECT id FROM room_shares WHERE room_id = ? AND user_id = ?', [room.id, user_id]); const existing = await db.get('SELECT id FROM room_shares WHERE room_id = ? AND user_id = ?', [room.id, user_id]);
if (existing) { if (existing) {
@@ -519,7 +533,7 @@ router.post('/:uid/start', authenticateToken, async (req, res) => {
await createMeeting(room, baseUrl, loginURL, presentationUrl, analyticsCallbackURL, owner?.language || 'en'); await createMeeting(room, baseUrl, loginURL, presentationUrl, analyticsCallbackURL, owner?.language || 'en');
const avatarURL = getUserAvatarURL(req, req.user); const avatarURL = getUserAvatarURL(req, req.user);
const displayName = req.user.display_name || req.user.name; const displayName = req.user.display_name || req.user.name;
const joinUrl = await joinMeeting(room.uid, displayName, true, avatarURL); const joinUrl = await joinMeeting(room.uid, displayName, true, avatarURL, !!req.body.dark_mode);
res.json({ joinUrl }); res.json({ joinUrl });
} catch (err) { } catch (err) {
log.rooms.error(`Start meeting error: ${err.message}`); log.rooms.error(`Start meeting error: ${err.message}`);
@@ -553,7 +567,7 @@ router.post('/:uid/join', authenticateToken, async (req, res) => {
const isShared = !isOwner && await db.get('SELECT id FROM room_shares WHERE room_id = ? AND user_id = ?', [room.id, req.user.id]); const isShared = !isOwner && await db.get('SELECT id FROM room_shares WHERE room_id = ? AND user_id = ?', [room.id, req.user.id]);
const isModerator = isOwner || !!isShared || room.all_join_moderator; const isModerator = isOwner || !!isShared || room.all_join_moderator;
const avatarURL = getUserAvatarURL(req, req.user); const avatarURL = getUserAvatarURL(req, req.user);
const joinUrl = await joinMeeting(room.uid, req.user.display_name || req.user.name, isModerator, avatarURL); const joinUrl = await joinMeeting(room.uid, req.user.display_name || req.user.name, isModerator, avatarURL, !!req.body.dark_mode);
res.json({ joinUrl }); res.json({ joinUrl });
} catch (err) { } catch (err) {
log.rooms.error(`Join meeting error: ${err.message}`); log.rooms.error(`Join meeting error: ${err.message}`);
@@ -629,7 +643,7 @@ router.get('/:uid/public', async (req, res) => {
// POST /api/rooms/:uid/guest-join - Join meeting as guest (no auth needed) // POST /api/rooms/:uid/guest-join - Join meeting as guest (no auth needed)
router.post('/:uid/guest-join', guestJoinLimiter, async (req, res) => { router.post('/:uid/guest-join', guestJoinLimiter, async (req, res) => {
try { try {
const { name, access_code, moderator_code, avatar_image, avatar_color } = req.body; const { name, access_code, moderator_code, avatar_image, avatar_color, dark_mode } = req.body;
if (!name || name.trim().length === 0) { if (!name || name.trim().length === 0) {
return res.status(400).json({ error: 'Name is required' }); return res.status(400).json({ error: 'Name is required' });
@@ -691,7 +705,7 @@ router.post('/:uid/guest-join', guestJoinLimiter, async (req, res) => {
} else { } else {
guestAvatarURL = `${baseUrl}/api/auth/avatar/initials/${encodeURIComponent(name.trim())}`; guestAvatarURL = `${baseUrl}/api/auth/avatar/initials/${encodeURIComponent(name.trim())}`;
} }
const joinUrl = await joinMeeting(room.uid, name.trim(), isModerator, guestAvatarURL); const joinUrl = await joinMeeting(room.uid, name.trim(), isModerator, guestAvatarURL, !!dark_mode);
res.json({ joinUrl }); res.json({ joinUrl });
} catch (err) { } catch (err) {
log.rooms.error(`Guest join error: ${err.message}`); log.rooms.error(`Guest join error: ${err.message}`);
@@ -740,7 +754,10 @@ router.get('/presentations/:token/:expires/:roomUid/:filename', (req, res) => {
.update(`${roomUid}/${filename}:${expires}`) .update(`${roomUid}/${filename}:${expires}`)
.digest('hex'); .digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(token), Buffer.from(expected))) { // timingSafeEqual throws on length mismatch, so compare lengths first
const tokenBuf = Buffer.from(token);
const expectedBuf = Buffer.from(expected);
if (tokenBuf.length !== expectedBuf.length || !crypto.timingSafeEqual(tokenBuf, expectedBuf)) {
return res.status(403).json({ error: 'Invalid token' }); return res.status(403).json({ error: 'Invalid token' });
} }
@@ -868,7 +885,7 @@ router.delete('/:uid/presentation', authenticateToken, async (req, res) => {
}); });
// ── POST /api/rooms/invite-email — Send email invitation to guest(s) ──────── // ── POST /api/rooms/invite-email — Send email invitation to guest(s) ────────
router.post('/invite-email', authenticateToken, async (req, res) => { router.post('/invite-email', authenticateToken, inviteEmailLimiter, async (req, res) => {
try { try {
const { room_uid, emails, message } = req.body; const { room_uid, emails, message } = req.body;
if (!room_uid || !emails || !emails.length) { if (!room_uid || !emails || !emails.length) {
+4 -2
View File
@@ -2,6 +2,7 @@ import { Users, Play, Trash2, Radio, Loader2, Share2, Copy, Link } from 'lucide-
import { useNavigate } from 'react-router-dom'; import { useNavigate } from 'react-router-dom';
import { useState, useEffect, useRef } from 'react'; import { useState, useEffect, useRef } from 'react';
import api from '../services/api'; import api from '../services/api';
import { isCurrentThemeDark } from '../themes';
import { useLanguage } from '../contexts/LanguageContext'; import { useLanguage } from '../contexts/LanguageContext';
import toast from 'react-hot-toast'; import toast from 'react-hot-toast';
@@ -107,11 +108,12 @@ export default function RoomCard({ room, onDelete }) {
setStarting(true); setStarting(true);
try { try {
if (status.running) { if (status.running) {
const data = room.access_code ? { access_code: prompt(t('room.enterAccessCode')) } : {}; const data = { dark_mode: isCurrentThemeDark() };
if (room.access_code) data.access_code = prompt(t('room.enterAccessCode'));
const res = await api.post(`/rooms/${room.uid}/join`, data); const res = await api.post(`/rooms/${room.uid}/join`, data);
if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank'); if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank');
} else { } else {
const res = await api.post(`/rooms/${room.uid}/start`); const res = await api.post(`/rooms/${room.uid}/start`, { dark_mode: isCurrentThemeDark() });
if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank'); if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank');
toast.success(t('room.meetingStarted')); toast.success(t('room.meetingStarted'));
setTimeout(() => { setTimeout(() => {
+33 -49
View File
@@ -64,16 +64,16 @@
"passwordMismatch": "Passwörter stimmen nicht überein", "passwordMismatch": "Passwörter stimmen nicht überein",
"passwordTooShort": "Passwort muss mindestens 6 Zeichen lang sein", "passwordTooShort": "Passwort muss mindestens 6 Zeichen lang sein",
"loginSuccess": "Willkommen zurück!", "loginSuccess": "Willkommen zurück!",
"registerSuccess": "Registrierung erfolgreich!", "registerSuccess": "Registrierung erfolgreich",
"loginFailed": "Anmeldung fehlgeschlagen", "loginFailed": "Anmeldung fehlgeschlagen",
"registerFailed": "Registrierung fehlgeschlagen", "registerFailed": "Registrierung fehlgeschlagen",
"allFieldsRequired": "Alle Felder sind erforderlich", "allFieldsRequired": "Alle Felder sind erforderlich",
"verificationSent": "Verifizierungs-E-Mail wurde gesendet!", "verificationSent": "Verifizierungs-E-Mail wurde gesendet",
"verificationSentDesc": "Wir haben dir eine E-Mail mit einem Bestätigungslink geschickt. Bitte klicke auf den Link, um dein Konto zu aktivieren.", "verificationSentDesc": "Wir haben dir eine E-Mail mit einem Bestätigungslink geschickt. Bitte klicke auf den Link, um dein Konto zu aktivieren.",
"checkYourEmail": "Prüfe dein Postfach", "checkYourEmail": "Prüfe dein Postfach",
"verifying": "E-Mail wird verifiziert...", "verifying": "E-Mail wird verifiziert...",
"verifySuccess": "Deine E-Mail-Adresse wurde erfolgreich bestätigt. Du kannst dich jetzt anmelden.", "verifySuccess": "Deine E-Mail-Adresse wurde erfolgreich bestätigt. Du kannst dich jetzt anmelden.",
"verifySuccessTitle": "E-Mail bestätigt!", "verifySuccessTitle": "E-Mail bestätigt",
"verifyFailed": "Verifizierung fehlgeschlagen", "verifyFailed": "Verifizierung fehlgeschlagen",
"verifyFailedTitle": "Verifizierung fehlgeschlagen", "verifyFailedTitle": "Verifizierung fehlgeschlagen",
"verifyTokenMissing": "Kein Verifizierungstoken vorhanden.", "verifyTokenMissing": "Kein Verifizierungstoken vorhanden.",
@@ -90,7 +90,7 @@
"emailVerificationBanner": "Deine E-Mail-Adresse wurde noch nicht verifiziert.", "emailVerificationBanner": "Deine E-Mail-Adresse wurde noch nicht verifiziert.",
"emailVerificationResend": "Hier klicken um eine neue Verifizierungsmail zu erhalten", "emailVerificationResend": "Hier klicken um eine neue Verifizierungsmail zu erhalten",
"emailVerificationResendCooldown": "Erneut senden in {seconds}s", "emailVerificationResendCooldown": "Erneut senden in {seconds}s",
"emailVerificationResendSuccess": "Verifizierungsmail wurde gesendet!", "emailVerificationResendSuccess": "Verifizierungsmail wurde gesendet",
"emailVerificationResendFailed": "Verifizierungsmail konnte nicht gesendet werden", "emailVerificationResendFailed": "Verifizierungsmail konnte nicht gesendet werden",
"inviteOnly": "Nur mit Einladung", "inviteOnly": "Nur mit Einladung",
"inviteOnlyDesc": "Die Registrierung ist derzeit eingeschränkt. Sie benötigen einen Einladungslink von einem Administrator, um ein Konto zu erstellen.", "inviteOnlyDesc": "Die Registrierung ist derzeit eingeschränkt. Sie benötigen einen Einladungslink von einem Administrator, um ein Konto zu erstellen.",
@@ -112,38 +112,22 @@
} }
}, },
"home": { "home": {
"madeFor": "Made for BigBlueButton", "heroTitle": "Selbst gehostetes Frontend für BigBlueButton",
"heroTitle": "Meetings neu ", "heroSubtitle": "Redlight verwaltet Räume, Aufnahmen und Termine für deinen BigBlueButton-Server mit Federation zwischen Instanzen, CalDAV-Sync und SSO-Anbindung.",
"heroTitleHighlight": "definiert", "getStarted": "Konto erstellen",
"heroSubtitle": "Das moderne, selbst gehostete BigBlueButton-Frontend. Erstellen Sie Räume, verwalten Sie Aufnahmen, verbinden Sie sich mit anderen Instanzen und genießen Sie ein wunderschönes Interface mit über 15 Themes.", "features": "Funktionen",
"getStarted": "Jetzt starten",
"features": "Alles was Sie brauchen",
"featuresSubtitle": "Redlight bietet alle Funktionen, die Sie für professionelle Videokonferenzen benötigen.",
"featureVideoTitle": "Videokonferenzen",
"featureVideoDesc": "Erstellen und verwalten Sie Meetings direkt über BigBlueButton.",
"featureRoomsTitle": "Raumverwaltung", "featureRoomsTitle": "Raumverwaltung",
"featureRoomsDesc": "Unbegrenzte Räume mit individuellen Einstellungen und Zugangscodes.", "featureRoomsDesc": "Räume mit eigenen Einstellungen, Zugangscodes und geteiltem Zugriff für Kolleginnen und Kollegen.",
"featureRecordingsTitle": "Aufnahmen", "featureRecordingsTitle": "Aufnahmen",
"featureRecordingsDesc": "Alle Aufnahmen pro Raum einsehen, veröffentlichen oder löschen.", "featureRecordingsDesc": "Aufnahmen pro Raum einsehen, veröffentlichen oder löschen.",
"featureFederationTitle": "Federation", "featureFederationTitle": "Federation",
"featureFederationDesc": "Laden Sie Nutzer anderer Redlight-Instanzen in Ihre Räume ein und nehmen Sie instanzübergreifende Einladungen an.", "featureFederationDesc": "Nutzer anderer Redlight-Instanzen einladen und instanzübergreifende Einladungen annehmen.",
"featureCalendarTitle": "Kalender & Erinnerungen", "featureCalendarTitle": "Kalender",
"featureCalendarDesc": "Meetings planen, per CalDAV synchronisieren und E-Mail-Erinnerungen vor dem Start erhalten.", "featureCalendarDesc": "Meetings planen, per CalDAV mit Thunderbird, Apple Calendar oder DAVx⁵ synchronisieren, Erinnerungen erhalten.",
"featureNotificationsTitle": "Benachrichtigungen", "featureVideoTitle": "Videokonferenzen",
"featureNotificationsDesc": "Echtzeit-Benachrichtigungen in der App und per E-Mail für Einladungen und bevorstehende Meetings.", "featureVideoDesc": "Meetings direkt über BigBlueButton erstellen, starten und verwalten.",
"featureOAuthTitle": "OAuth / SSO", "featureAnalyticsTitle": "Learning Analytics",
"featureOAuthDesc": "Melden Sie sich über OAuth 2.0 mit Ihrem bestehenden Identity Provider an kein separates Konto nötig.", "featureAnalyticsDesc": "Teilnahme- und Aktivitätsdaten aus Meetings einsehen und als CSV, Excel oder PDF exportieren.",
"featureAnalyticsTitle": "Analytics",
"featureAnalyticsDesc": "Meeting-Statistiken einsehen und die Nutzung über alle Räume hinweg verfolgen.",
"featureThemesTitle": "15+ Themes",
"featureThemesDesc": "Dracula, Nord, Catppuccin, Rosé Pine, Gruvbox und viele mehr plus eigenes Branding.",
"featureUsersTitle": "Benutzerverwaltung",
"featureUsersDesc": "Registrierung, Login und Rollenverwaltung für Ihre Organisation.",
"featureOpenSourceTitle": "Open Source",
"featureOpenSourceDesc": "Vollständig quelloffen und selbst gehostet. Ihre Daten bleiben bei Ihnen.",
"statThemes": "Themes",
"statRooms": "Räume",
"statOpenSource": "Open Source",
"footer": "© {year} Redlight. Ein Open-Source BigBlueButton Frontend." "footer": "© {year} Redlight. Ein Open-Source BigBlueButton Frontend."
}, },
"dashboard": { "dashboard": {
@@ -164,7 +148,7 @@
"accessCode": "Zugangscode", "accessCode": "Zugangscode",
"muteOnJoin": "Teilnehmer beim Beitritt stummschalten", "muteOnJoin": "Teilnehmer beim Beitritt stummschalten",
"allowRecording": "Aufnahme erlauben", "allowRecording": "Aufnahme erlauben",
"roomCreated": "Raum erstellt!", "roomCreated": "Raum erstellt",
"roomCreateFailed": "Raum konnte nicht erstellt werden", "roomCreateFailed": "Raum konnte nicht erstellt werden",
"roomDeleted": "Raum gelöscht", "roomDeleted": "Raum gelöscht",
"roomDeleteFailed": "Raum konnte nicht gelöscht werden", "roomDeleteFailed": "Raum konnte nicht gelöscht werden",
@@ -188,7 +172,7 @@
"copyLink": "Link kopieren", "copyLink": "Link kopieren",
"copyRoomLink": "Raum-Link", "copyRoomLink": "Raum-Link",
"copyGuestLink": "Gast-Link", "copyGuestLink": "Gast-Link",
"linkCopied": "Link kopiert!", "linkCopied": "Link kopiert",
"meetingDetails": "Meeting-Details", "meetingDetails": "Meeting-Details",
"meetingId": "Meeting ID", "meetingId": "Meeting ID",
"status": "Status", "status": "Status",
@@ -213,7 +197,7 @@
"emptyNoCode": "Leer = kein Code", "emptyNoCode": "Leer = kein Code",
"settingsSaved": "Einstellungen gespeichert", "settingsSaved": "Einstellungen gespeichert",
"settingsSaveFailed": "Einstellungen konnten nicht gespeichert werden", "settingsSaveFailed": "Einstellungen konnten nicht gespeichert werden",
"meetingStarted": "Meeting gestartet!", "meetingStarted": "Meeting gestartet",
"meetingStartFailed": "Meeting konnte nicht gestartet werden", "meetingStartFailed": "Meeting konnte nicht gestartet werden",
"meetingEnded": "Meeting beendet", "meetingEnded": "Meeting beendet",
"meetingEndFailed": "Meeting konnte nicht beendet werden", "meetingEndFailed": "Meeting konnte nicht beendet werden",
@@ -228,7 +212,7 @@
"moderatorCodeHint": "Optionaler Code für Moderator-Rechte", "moderatorCodeHint": "Optionaler Code für Moderator-Rechte",
"moderatorCodeDesc": "Gäste, die diesen Code eingeben, erhalten Moderator-Rechte.", "moderatorCodeDesc": "Gäste, die diesen Code eingeben, erhalten Moderator-Rechte.",
"guestLink": "Gast-Einladungslink", "guestLink": "Gast-Einladungslink",
"guestLinkCopied": "Gast-Link kopiert!", "guestLinkCopied": "Gast-Link kopiert",
"guestJoinTitle": "Meeting beitreten", "guestJoinTitle": "Meeting beitreten",
"guestCreatedBy": "Erstellt von", "guestCreatedBy": "Erstellt von",
"guestMeetingRunning": "Meeting läuft", "guestMeetingRunning": "Meeting läuft",
@@ -363,7 +347,7 @@
"statusDisabledDesc": "Aktiviere die Zwei-Faktor-Authentifizierung für zusätzliche Sicherheit.", "statusDisabledDesc": "Aktiviere die Zwei-Faktor-Authentifizierung für zusätzliche Sicherheit.",
"enable": "2FA aktivieren", "enable": "2FA aktivieren",
"disable": "2FA deaktivieren", "disable": "2FA deaktivieren",
"enabled": "Zwei-Faktor-Authentifizierung aktiviert!", "enabled": "Zwei-Faktor-Authentifizierung aktiviert",
"disabled": "Zwei-Faktor-Authentifizierung deaktiviert.", "disabled": "Zwei-Faktor-Authentifizierung deaktiviert.",
"enableFailed": "2FA konnte nicht aktiviert werden", "enableFailed": "2FA konnte nicht aktiviert werden",
"disableFailed": "2FA konnte nicht deaktiviert werden", "disableFailed": "2FA konnte nicht deaktiviert werden",
@@ -392,7 +376,7 @@
"revoked": "Token widerrufen", "revoked": "Token widerrufen",
"revokeFailed": "Token konnte nicht widerrufen werden", "revokeFailed": "Token konnte nicht widerrufen werden",
"createFailed": "Token konnte nicht erstellt werden", "createFailed": "Token konnte nicht erstellt werden",
"newTokenCreated": "Token erstellt — jetzt kopieren!", "newTokenCreated": "Token erstellt — jetzt kopieren",
"newTokenHint": "Dieses Token wird nur einmal angezeigt. Kopiere es und trage es als Passwort in deiner Kalender-App ein.", "newTokenHint": "Dieses Token wird nur einmal angezeigt. Kopiere es und trage es als Passwort in deiner Kalender-App ein.",
"dismiss": "Ich habe das Token kopiert" "dismiss": "Ich habe das Token kopiert"
} }
@@ -460,11 +444,11 @@
"inviteTitle": "Benutzer-Einladungen", "inviteTitle": "Benutzer-Einladungen",
"inviteDescription": "Laden Sie neue Benutzer per E-Mail ein. Sie erhalten einen Registrierungslink, der 7 Tage gültig ist.", "inviteDescription": "Laden Sie neue Benutzer per E-Mail ein. Sie erhalten einen Registrierungslink, der 7 Tage gültig ist.",
"sendInvite": "Einladung senden", "sendInvite": "Einladung senden",
"inviteSent": "Einladung gesendet!", "inviteSent": "Einladung gesendet",
"inviteFailed": "Einladung konnte nicht gesendet werden", "inviteFailed": "Einladung konnte nicht gesendet werden",
"inviteDeleted": "Einladung gelöscht", "inviteDeleted": "Einladung gelöscht",
"inviteDeleteFailed": "Einladung konnte nicht gelöscht werden", "inviteDeleteFailed": "Einladung konnte nicht gelöscht werden",
"inviteLinkCopied": "Einladungslink kopiert!", "inviteLinkCopied": "Einladungslink kopiert",
"copyInviteLink": "Einladungslink kopieren", "copyInviteLink": "Einladungslink kopieren",
"inviteExpired": "Abgelaufen", "inviteExpired": "Abgelaufen",
"inviteUsedBy": "Verwendet von", "inviteUsedBy": "Verwendet von",
@@ -536,8 +520,8 @@
"messageLabel": "Nachricht (optional)", "messageLabel": "Nachricht (optional)",
"messagePlaceholder": "Hallo, ich lade dich zu unserem Meeting ein!", "messagePlaceholder": "Hallo, ich lade dich zu unserem Meeting ein!",
"send": "Einladung senden", "send": "Einladung senden",
"sent": "Einladung gesendet!", "sent": "Einladung gesendet",
"emailSent": "E-Mail-Einladung(en) gesendet!", "emailSent": "E-Mail-Einladung(en) gesendet",
"emailSendFailed": "E-Mail-Einladung konnte nicht gesendet werden", "emailSendFailed": "E-Mail-Einladung konnte nicht gesendet werden",
"sendFailed": "Einladung konnte nicht gesendet werden", "sendFailed": "Einladung konnte nicht gesendet werden",
"from": "Von", "from": "Von",
@@ -563,7 +547,7 @@
"removeRoomConfirm": "Raum wirklich entfernen?", "removeRoomConfirm": "Raum wirklich entfernen?",
"roomRemoved": "Raum entfernt", "roomRemoved": "Raum entfernt",
"roomRemoveFailed": "Raum konnte nicht entfernt werden", "roomRemoveFailed": "Raum konnte nicht entfernt werden",
"acceptedSaved": "Einladung angenommen - Raum wurde in deinem Dashboard gespeichert!", "acceptedSaved": "Einladung angenommen - Raum wurde in deinem Dashboard gespeichert",
"meetingId": "Meeting ID", "meetingId": "Meeting ID",
"maxParticipants": "Max. Teilnehmer", "maxParticipants": "Max. Teilnehmer",
"recordingOn": "Aufnahme aktiviert", "recordingOn": "Aufnahme aktiviert",
@@ -579,9 +563,9 @@
"roomDeleted": "Gelöscht", "roomDeleted": "Gelöscht",
"roomDeletedNotice": "Dieser Raum wurde vom Besitzer auf der Ursprungsinstanz gelöscht und ist nicht mehr verfügbar.", "roomDeletedNotice": "Dieser Raum wurde vom Besitzer auf der Ursprungsinstanz gelöscht und ist nicht mehr verfügbar.",
"calendarEvent": "Kalendereinladung", "calendarEvent": "Kalendereinladung",
"calendarAccepted": "Kalender-Event angenommen und in deinen Kalender eingetragen!", "calendarAccepted": "Kalender-Event angenommen und in deinen Kalender eingetragen",
"localCalendarEvent": "Lokale Kalendereinladung", "localCalendarEvent": "Lokale Kalendereinladung",
"calendarLocalAccepted": "Einladung angenommen - Event wurde in deinen Kalender eingetragen!", "calendarLocalAccepted": "Einladung angenommen - Event wurde in deinen Kalender eingetragen",
"invitationRemoved": "Einladung entfernt", "invitationRemoved": "Einladung entfernt",
"removeInvitation": "Einladung entfernen" "removeInvitation": "Einladung entfernen"
}, },
@@ -610,8 +594,8 @@
"reminder1440": "1 Tag vorher", "reminder1440": "1 Tag vorher",
"timezone": "Zeitzone", "timezone": "Zeitzone",
"color": "Farbe", "color": "Farbe",
"eventCreated": "Event erstellt!", "eventCreated": "Event erstellt",
"eventUpdated": "Event aktualisiert!", "eventUpdated": "Event aktualisiert",
"eventDeleted": "Event gelöscht", "eventDeleted": "Event gelöscht",
"saveFailed": "Event konnte nicht gespeichert werden", "saveFailed": "Event konnte nicht gespeichert werden",
"deleteFailed": "Event konnte nicht gelöscht werden", "deleteFailed": "Event konnte nicht gelöscht werden",
@@ -638,7 +622,7 @@
"shareAdded": "Benutzer zum Event hinzugefügt", "shareAdded": "Benutzer zum Event hinzugefügt",
"shareRemoved": "Freigabe entfernt", "shareRemoved": "Freigabe entfernt",
"shareFailed": "Event konnte nicht geteilt werden", "shareFailed": "Event konnte nicht geteilt werden",
"invitationSent": "Einladung gesendet!", "invitationSent": "Einladung gesendet",
"invitationCancelled": "Einladung widerrufen", "invitationCancelled": "Einladung widerrufen",
"invitationPending": "Einladung ausstehend", "invitationPending": "Einladung ausstehend",
"pendingInvitations": "Ausstehende Einladungen", "pendingInvitations": "Ausstehende Einladungen",
+34 -50
View File
@@ -64,16 +64,16 @@
"passwordMismatch": "Passwords do not match", "passwordMismatch": "Passwords do not match",
"passwordTooShort": "Password must be at least 6 characters", "passwordTooShort": "Password must be at least 6 characters",
"loginSuccess": "Welcome back!", "loginSuccess": "Welcome back!",
"registerSuccess": "Registration successful!", "registerSuccess": "Registration successful",
"loginFailed": "Login failed", "loginFailed": "Login failed",
"registerFailed": "Registration failed", "registerFailed": "Registration failed",
"allFieldsRequired": "All fields are required", "allFieldsRequired": "All fields are required",
"verificationSent": "Verification email sent!", "verificationSent": "Verification email sent",
"verificationSentDesc": "We've sent you an email with a verification link. Please click the link to activate your account.", "verificationSentDesc": "We've sent you an email with a verification link. Please click the link to activate your account.",
"checkYourEmail": "Check your inbox", "checkYourEmail": "Check your inbox",
"verifying": "Verifying your email...", "verifying": "Verifying your email...",
"verifySuccess": "Your email has been verified successfully. You can now sign in.", "verifySuccess": "Your email has been verified successfully. You can now sign in.",
"verifySuccessTitle": "Email verified!", "verifySuccessTitle": "Email verified",
"verifyFailed": "Verification failed", "verifyFailed": "Verification failed",
"verifyFailedTitle": "Verification failed", "verifyFailedTitle": "Verification failed",
"verifyTokenMissing": "No verification token provided.", "verifyTokenMissing": "No verification token provided.",
@@ -90,7 +90,7 @@
"emailVerificationBanner": "Your email address has not been verified yet.", "emailVerificationBanner": "Your email address has not been verified yet.",
"emailVerificationResend": "Click here to receive a new verification email", "emailVerificationResend": "Click here to receive a new verification email",
"emailVerificationResendCooldown": "Resend in {seconds}s", "emailVerificationResendCooldown": "Resend in {seconds}s",
"emailVerificationResendSuccess": "Verification email sent!", "emailVerificationResendSuccess": "Verification email sent",
"emailVerificationResendFailed": "Could not send verification email", "emailVerificationResendFailed": "Could not send verification email",
"inviteOnly": "Invite Only", "inviteOnly": "Invite Only",
"inviteOnlyDesc": "Registration is currently restricted. You need an invitation link from an administrator to create an account.", "inviteOnlyDesc": "Registration is currently restricted. You need an invitation link from an administrator to create an account.",
@@ -112,38 +112,22 @@
} }
}, },
"home": { "home": {
"madeFor": "Made for BigBlueButton", "heroTitle": "Self-hosted frontend for BigBlueButton",
"heroTitle": "Meetings re", "heroSubtitle": "Redlight manages rooms, recordings and scheduling for your BigBlueButton server with federation between instances, CalDAV sync and SSO support.",
"heroTitleHighlight": "defined", "getStarted": "Create account",
"heroSubtitle": "The modern, self-hosted BigBlueButton frontend. Create rooms, manage recordings, federate with other instances and enjoy a beautiful interface with over 15 themes.", "features": "Features",
"getStarted": "Get started", "featureRoomsTitle": "Room management",
"features": "Everything you need", "featureRoomsDesc": "Rooms with individual settings, access codes and shared access for colleagues.",
"featuresSubtitle": "Redlight provides all the features you need for professional video conferencing.",
"featureVideoTitle": "Video Conferencing",
"featureVideoDesc": "Create and manage meetings directly via BigBlueButton.",
"featureRoomsTitle": "Room Management",
"featureRoomsDesc": "Unlimited rooms with individual settings and access codes.",
"featureRecordingsTitle": "Recordings", "featureRecordingsTitle": "Recordings",
"featureRecordingsDesc": "View, publish or delete all recordings per room.", "featureRecordingsDesc": "View, publish or delete recordings per room.",
"featureFederationTitle": "Federation", "featureFederationTitle": "Federation",
"featureFederationDesc": "Invite users from other Redlight instances into your rooms and accept cross-instance meeting invitations.", "featureFederationDesc": "Invite users from other Redlight instances and accept cross-instance invitations.",
"featureCalendarTitle": "Calendar & Reminders", "featureCalendarTitle": "Calendar",
"featureCalendarDesc": "Schedule meetings with your rooms, sync via CalDAV and receive email reminders before they start.", "featureCalendarDesc": "Schedule meetings, sync via CalDAV with Thunderbird, Apple Calendar or DAVx⁵, get reminders.",
"featureNotificationsTitle": "Notifications", "featureVideoTitle": "Video conferencing",
"featureNotificationsDesc": "Real-time in-app and email notifications for room invitations and upcoming meetings.", "featureVideoDesc": "Create, start and manage meetings directly via BigBlueButton.",
"featureOAuthTitle": "OAuth / SSO", "featureAnalyticsTitle": "Learning analytics",
"featureOAuthDesc": "Sign in with your existing identity provider via OAuth 2.0 — no separate account needed.", "featureAnalyticsDesc": "Review attendance and activity data from meetings and export it as CSV, Excel or PDF.",
"featureAnalyticsTitle": "Analytics",
"featureAnalyticsDesc": "Track meeting statistics and monitor usage across all your rooms.",
"featureThemesTitle": "15+ Themes",
"featureThemesDesc": "Dracula, Nord, Catppuccin, Rosé Pine, Gruvbox and many more — plus custom branding.",
"featureUsersTitle": "User Management",
"featureUsersDesc": "Registration, login and role management for your organization.",
"featureOpenSourceTitle": "Open Source",
"featureOpenSourceDesc": "Fully open source and self-hosted. Your data stays with you.",
"statThemes": "Themes",
"statRooms": "Rooms",
"statOpenSource": "Open Source",
"footer": "© {year} Redlight. An open source BigBlueButton frontend." "footer": "© {year} Redlight. An open source BigBlueButton frontend."
}, },
"dashboard": { "dashboard": {
@@ -164,7 +148,7 @@
"accessCode": "Access code", "accessCode": "Access code",
"muteOnJoin": "Mute participants on join", "muteOnJoin": "Mute participants on join",
"allowRecording": "Allow recording", "allowRecording": "Allow recording",
"roomCreated": "Room created!", "roomCreated": "Room created",
"roomCreateFailed": "Room could not be created", "roomCreateFailed": "Room could not be created",
"roomDeleted": "Room deleted", "roomDeleted": "Room deleted",
"roomDeleteFailed": "Room could not be deleted", "roomDeleteFailed": "Room could not be deleted",
@@ -188,7 +172,7 @@
"copyLink": "Copy link", "copyLink": "Copy link",
"copyRoomLink": "Room Link", "copyRoomLink": "Room Link",
"copyGuestLink": "Guest Link", "copyGuestLink": "Guest Link",
"linkCopied": "Link copied!", "linkCopied": "Link copied",
"meetingDetails": "Meeting details", "meetingDetails": "Meeting details",
"meetingId": "Meeting ID", "meetingId": "Meeting ID",
"status": "Status", "status": "Status",
@@ -213,7 +197,7 @@
"emptyNoCode": "Empty = no code", "emptyNoCode": "Empty = no code",
"settingsSaved": "Settings saved", "settingsSaved": "Settings saved",
"settingsSaveFailed": "Settings could not be saved", "settingsSaveFailed": "Settings could not be saved",
"meetingStarted": "Meeting started!", "meetingStarted": "Meeting started",
"meetingStartFailed": "Meeting could not be started", "meetingStartFailed": "Meeting could not be started",
"meetingEnded": "Meeting ended", "meetingEnded": "Meeting ended",
"meetingEndFailed": "Meeting could not be ended", "meetingEndFailed": "Meeting could not be ended",
@@ -228,7 +212,7 @@
"moderatorCodeHint": "Optional code for moderator rights", "moderatorCodeHint": "Optional code for moderator rights",
"moderatorCodeDesc": "Guests who enter this code will receive moderator rights.", "moderatorCodeDesc": "Guests who enter this code will receive moderator rights.",
"guestLink": "Guest Invite Link", "guestLink": "Guest Invite Link",
"guestLinkCopied": "Guest link copied!", "guestLinkCopied": "Guest link copied",
"guestJoinTitle": "Join Meeting", "guestJoinTitle": "Join Meeting",
"guestCreatedBy": "Created by", "guestCreatedBy": "Created by",
"guestMeetingRunning": "Meeting in progress", "guestMeetingRunning": "Meeting in progress",
@@ -363,7 +347,7 @@
"statusDisabledDesc": "Enable two-factor authentication for an extra layer of security.", "statusDisabledDesc": "Enable two-factor authentication for an extra layer of security.",
"enable": "Enable 2FA", "enable": "Enable 2FA",
"disable": "Disable 2FA", "disable": "Disable 2FA",
"enabled": "Two-factor authentication enabled!", "enabled": "Two-factor authentication enabled",
"disabled": "Two-factor authentication disabled.", "disabled": "Two-factor authentication disabled.",
"enableFailed": "Could not enable 2FA", "enableFailed": "Could not enable 2FA",
"disableFailed": "Could not disable 2FA", "disableFailed": "Could not disable 2FA",
@@ -392,7 +376,7 @@
"revoked": "Token revoked", "revoked": "Token revoked",
"revokeFailed": "Could not revoke token", "revokeFailed": "Could not revoke token",
"createFailed": "Could not create token", "createFailed": "Could not create token",
"newTokenCreated": "Token created — copy it now!", "newTokenCreated": "Token created — copy it now",
"newTokenHint": "This token will only be shown once. Copy it and enter it as the password in your calendar app.", "newTokenHint": "This token will only be shown once. Copy it and enter it as the password in your calendar app.",
"dismiss": "I have copied the token" "dismiss": "I have copied the token"
} }
@@ -460,11 +444,11 @@
"inviteTitle": "User Invitations", "inviteTitle": "User Invitations",
"inviteDescription": "Invite new users by email. They will receive a registration link valid for 7 days.", "inviteDescription": "Invite new users by email. They will receive a registration link valid for 7 days.",
"sendInvite": "Send invite", "sendInvite": "Send invite",
"inviteSent": "Invitation sent!", "inviteSent": "Invitation sent",
"inviteFailed": "Could not send invitation", "inviteFailed": "Could not send invitation",
"inviteDeleted": "Invitation deleted", "inviteDeleted": "Invitation deleted",
"inviteDeleteFailed": "Could not delete invitation", "inviteDeleteFailed": "Could not delete invitation",
"inviteLinkCopied": "Invite link copied!", "inviteLinkCopied": "Invite link copied",
"copyInviteLink": "Copy invite link", "copyInviteLink": "Copy invite link",
"inviteExpired": "Expired", "inviteExpired": "Expired",
"inviteUsedBy": "Used by", "inviteUsedBy": "Used by",
@@ -536,8 +520,8 @@
"messageLabel": "Message (optional)", "messageLabel": "Message (optional)",
"messagePlaceholder": "Hi, I'd like to invite you to our meeting!", "messagePlaceholder": "Hi, I'd like to invite you to our meeting!",
"send": "Send invitation", "send": "Send invitation",
"sent": "Invitation sent!", "sent": "Invitation sent",
"emailSent": "Email invitation(s) sent!", "emailSent": "Email invitation(s) sent",
"emailSendFailed": "Could not send email invitation", "emailSendFailed": "Could not send email invitation",
"sendFailed": "Could not send invitation", "sendFailed": "Could not send invitation",
"from": "From", "from": "From",
@@ -563,7 +547,7 @@
"removeRoomConfirm": "Really remove this room?", "removeRoomConfirm": "Really remove this room?",
"roomRemoved": "Room removed", "roomRemoved": "Room removed",
"roomRemoveFailed": "Could not remove room", "roomRemoveFailed": "Could not remove room",
"acceptedSaved": "Invitation accepted - room saved to your dashboard!", "acceptedSaved": "Invitation accepted - room saved to your dashboard",
"meetingId": "Meeting ID", "meetingId": "Meeting ID",
"maxParticipants": "Max. participants", "maxParticipants": "Max. participants",
"recordingOn": "Recording enabled", "recordingOn": "Recording enabled",
@@ -579,9 +563,9 @@
"roomDeleted": "Deleted", "roomDeleted": "Deleted",
"roomDeletedNotice": "This room has been deleted by the owner on the origin instance and is no longer available.", "roomDeletedNotice": "This room has been deleted by the owner on the origin instance and is no longer available.",
"calendarEvent": "Calendar Invitation", "calendarEvent": "Calendar Invitation",
"calendarAccepted": "Calendar event accepted and added to your calendar!", "calendarAccepted": "Calendar event accepted and added to your calendar",
"localCalendarEvent": "Local Calendar Invitation", "localCalendarEvent": "Local Calendar Invitation",
"calendarLocalAccepted": "Invitation accepted - event added to your calendar!", "calendarLocalAccepted": "Invitation accepted - event added to your calendar",
"invitationRemoved": "Invitation removed", "invitationRemoved": "Invitation removed",
"removeInvitation": "Remove invitation" "removeInvitation": "Remove invitation"
}, },
@@ -610,8 +594,8 @@
"reminder1440": "1 day before", "reminder1440": "1 day before",
"timezone": "Timezone", "timezone": "Timezone",
"color": "Color", "color": "Color",
"eventCreated": "Event created!", "eventCreated": "Event created",
"eventUpdated": "Event updated!", "eventUpdated": "Event updated",
"eventDeleted": "Event deleted", "eventDeleted": "Event deleted",
"saveFailed": "Could not save event", "saveFailed": "Could not save event",
"deleteFailed": "Could not delete event", "deleteFailed": "Could not delete event",
@@ -638,7 +622,7 @@
"shareAdded": "User added to event", "shareAdded": "User added to event",
"shareRemoved": "Share removed", "shareRemoved": "Share removed",
"shareFailed": "Could not share event", "shareFailed": "Could not share event",
"invitationSent": "Invitation sent!", "invitationSent": "Invitation sent",
"invitationCancelled": "Invitation cancelled", "invitationCancelled": "Invitation cancelled",
"invitationPending": "Invitation pending", "invitationPending": "Invitation pending",
"pendingInvitations": "Pending Invitations", "pendingInvitations": "Pending Invitations",
+2
View File
@@ -3,6 +3,7 @@ import { useParams, Link, useSearchParams, useNavigate } from 'react-router-dom'
import { Video, User, Lock, Shield, ArrowRight, Loader2, Users, Radio, AlertCircle, FileText, Clock, X } from 'lucide-react'; import { Video, User, Lock, Shield, ArrowRight, Loader2, Users, Radio, AlertCircle, FileText, Clock, X } from 'lucide-react';
import BrandLogo from '../components/BrandLogo'; import BrandLogo from '../components/BrandLogo';
import api from '../services/api'; import api from '../services/api';
import { isCurrentThemeDark } from '../themes';
import toast from 'react-hot-toast'; import toast from 'react-hot-toast';
import { useLanguage } from '../contexts/LanguageContext'; import { useLanguage } from '../contexts/LanguageContext';
import { useAuth } from '../contexts/AuthContext'; import { useAuth } from '../contexts/AuthContext';
@@ -35,6 +36,7 @@ export default function GuestJoin() {
name: name.trim(), name: name.trim(),
access_code: accessCode || undefined, access_code: accessCode || undefined,
moderator_code: moderatorCode || undefined, moderator_code: moderatorCode || undefined,
dark_mode: isCurrentThemeDark(),
}; };
// If logged in, send avatar data // If logged in, send avatar data
if (isLoggedIn && user) { if (isLoggedIn && user) {
+26 -74
View File
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Video, Shield, Users, Palette, ArrowRight, Zap, Globe, FileText, Lock, Network, CalendarDays, Bell, KeyRound, BarChart2, Settings2 } from 'lucide-react'; import { Video, Users, FileVideo, Network, CalendarDays, BarChart2, ArrowRight, FileText, Lock } from 'lucide-react';
import BrandLogo from '../components/BrandLogo'; import BrandLogo from '../components/BrandLogo';
import { useLanguage } from '../contexts/LanguageContext'; import { useLanguage } from '../contexts/LanguageContext';
import { useBranding } from '../contexts/BrandingContext'; import { useBranding } from '../contexts/BrandingContext';
@@ -21,7 +21,7 @@ export default function Home() {
desc: t('home.featureRoomsDesc'), desc: t('home.featureRoomsDesc'),
}, },
{ {
icon: Zap, icon: FileVideo,
title: t('home.featureRecordingsTitle'), title: t('home.featureRecordingsTitle'),
desc: t('home.featureRecordingsDesc'), desc: t('home.featureRecordingsDesc'),
}, },
@@ -35,38 +35,21 @@ export default function Home() {
title: t('home.featureCalendarTitle'), title: t('home.featureCalendarTitle'),
desc: t('home.featureCalendarDesc'), desc: t('home.featureCalendarDesc'),
}, },
{
icon: Bell,
title: t('home.featureNotificationsTitle'),
desc: t('home.featureNotificationsDesc'),
},
{
icon: KeyRound,
title: t('home.featureOAuthTitle'),
desc: t('home.featureOAuthDesc'),
},
{ {
icon: BarChart2, icon: BarChart2,
title: t('home.featureAnalyticsTitle'), title: t('home.featureAnalyticsTitle'),
desc: t('home.featureAnalyticsDesc'), desc: t('home.featureAnalyticsDesc'),
}, },
{
icon: Palette,
title: t('home.featureThemesTitle'),
desc: t('home.featureThemesDesc'),
},
]; ];
return ( return (
<div className="min-h-screen bg-th-bg"> <div className="min-h-screen bg-th-bg">
{/* Hero Section */}
<div className="relative overflow-hidden"> <div className="relative overflow-hidden">
{/* Background gradient */} {/* Background gradient */}
<div className="absolute inset-0 gradient-bg opacity-5" /> <div className="absolute inset-0 gradient-bg opacity-5" />
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[600px] gradient-bg opacity-10 blur-3xl rounded-full" /> <div className="absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[600px] gradient-bg opacity-10 blur-3xl rounded-full" />
{/* Navbar */} <nav className="relative z-10 flex items-center justify-between px-6 md:px-12 py-4 border-b border-th-border">
<nav className="relative z-10 flex items-center justify-between px-6 md:px-12 py-4">
<BrandLogo size="md" /> <BrandLogo size="md" />
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<Link to="/login" className="btn-ghost text-sm"> <Link to="/login" className="btn-ghost text-sm">
@@ -75,81 +58,50 @@ export default function Home() {
{!isInviteOnly && ( {!isInviteOnly && (
<Link to="/register" className="btn-primary text-sm"> <Link to="/register" className="btn-primary text-sm">
{t('auth.register')} {t('auth.register')}
<ArrowRight size={16} />
</Link> </Link>
)} )}
</div> </div>
</nav> </nav>
{/* Hero content */} {/* Hero */}
<div className="relative z-10 max-w-4xl mx-auto text-center px-6 pt-20 pb-32"> <div className="relative z-10 max-w-3xl mx-auto px-6 pt-24 pb-20">
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-th-accent/10 text-th-accent text-sm font-medium mb-6"> <h1 className="text-3xl md:text-4xl font-bold text-th-text mb-4">
<Zap size={14} /> {t('home.heroTitle')}
{t('home.madeFor')}
</div>
<h1 className="text-4xl md:text-6xl lg:text-7xl font-extrabold text-th-text mb-6 leading-tight tracking-tight">
{t('home.heroTitle')}{' '}
<span className="gradient-text">{t('home.heroTitleHighlight')}</span>
</h1> </h1>
<p className="text-lg text-th-text-s mb-8 leading-relaxed">
<p className="text-lg md:text-xl text-th-text-s max-w-2xl mx-auto mb-10 leading-relaxed">
{t('home.heroSubtitle')} {t('home.heroSubtitle')}
</p> </p>
<div className="flex items-center gap-3">
<div className="flex items-center gap-4 justify-center">
{!isInviteOnly && ( {!isInviteOnly && (
<Link to="/register" className="btn-primary text-base px-8 py-3"> <Link to="/register" className="btn-primary px-6 py-2.5">
{t('home.getStarted')} {t('home.getStarted')}
<ArrowRight size={18} /> <ArrowRight size={16} />
</Link> </Link>
)} )}
<Link to="/login" className={`${isInviteOnly ? 'btn-primary' : 'btn-secondary'} text-base px-8 py-3`}> <Link to="/login" className={`${isInviteOnly ? 'btn-primary' : 'btn-secondary'} px-6 py-2.5`}>
{t('auth.login')} {t('auth.login')}
</Link> </Link>
</div> </div>
{/* Stats */}
<div className="flex items-center justify-center gap-8 md:gap-16 mt-16">
{[
{ value: '15+', label: t('home.statThemes') },
{ value: '∞', label: t('home.statRooms') },
{ value: '100%', label: t('home.statOpenSource') },
].map(stat => (
<div key={stat.label} className="text-center">
<div className="text-2xl md:text-3xl font-bold gradient-text">{stat.value}</div>
<div className="text-sm text-th-text-s mt-1">{stat.label}</div>
</div>
))}
</div>
</div> </div>
</div> </div>
{/* Features Section */} {/* Features */}
<div className="max-w-6xl mx-auto px-6 py-20"> <div className="border-t border-th-border">
<div className="text-center mb-16"> <div className="max-w-5xl mx-auto px-6 py-16">
<h2 className="text-3xl md:text-4xl font-bold text-th-text mb-4"> <h2 className="text-xl font-semibold text-th-text mb-10">
{t('home.features')} {t('home.features')}
</h2> </h2>
<p className="text-lg text-th-text-s max-w-2xl mx-auto"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{t('home.featuresSubtitle')} {features.map(feature => (
</p> <div key={feature.title} className="card p-6 hover:shadow-th-lg transition-shadow">
</div> <div className="w-12 h-12 rounded-xl bg-th-accent/10 flex items-center justify-center mb-4">
<feature.icon size={24} className="text-th-accent" />
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> </div>
{features.map((feature, idx) => ( <h3 className="text-base font-semibold text-th-text mb-2">{feature.title}</h3>
<div key={idx} className="card p-6 hover:shadow-th-lg transition-all duration-300 group"> <p className="text-sm text-th-text-s leading-relaxed">{feature.desc}</p>
<div className="w-12 h-12 rounded-xl gradient-bg/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform"
style={{ background: `linear-gradient(135deg, var(--gradient-start), var(--gradient-end))`, opacity: 0.15 }}>
<feature.icon size={24} className="text-th-accent" style={{ opacity: 1 }} />
</div> </div>
<div className="w-12 h-12 rounded-xl flex items-center justify-center mb-4 -mt-16 relative"> ))}
<feature.icon size={24} className="text-th-accent" /> </div>
</div>
<h3 className="text-base font-semibold text-th-text mb-2">{feature.title}</h3>
<p className="text-sm text-th-text-s leading-relaxed">{feature.desc}</p>
</div>
))}
</div> </div>
</div> </div>
+5 -3
View File
@@ -8,6 +8,7 @@ import {
} from 'lucide-react'; } from 'lucide-react';
import Modal from '../components/Modal'; import Modal from '../components/Modal';
import api from '../services/api'; import api from '../services/api';
import { isCurrentThemeDark } from '../themes';
import { useAuth } from '../contexts/AuthContext'; import { useAuth } from '../contexts/AuthContext';
import { useLanguage } from '../contexts/LanguageContext'; import { useLanguage } from '../contexts/LanguageContext';
import RecordingList from '../components/RecordingList'; import RecordingList from '../components/RecordingList';
@@ -124,7 +125,7 @@ export default function RoomDetail() {
toast.success(t('room.meetingStarted')); toast.success(t('room.meetingStarted'));
setWaitingToJoin(false); setWaitingToJoin(false);
setActionLoading('join'); setActionLoading('join');
api.post(`/rooms/${uid}/join`, {}) api.post(`/rooms/${uid}/join`, { dark_mode: isCurrentThemeDark() })
.then(res => { if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank'); }) .then(res => { if (res.data.joinUrl) window.open(res.data.joinUrl, '_blank'); })
.catch(err => toast.error(err.response?.data?.error || t('room.joinFailed'))) .catch(err => toast.error(err.response?.data?.error || t('room.joinFailed')))
.finally(() => setActionLoading(null)); .finally(() => setActionLoading(null));
@@ -135,7 +136,7 @@ export default function RoomDetail() {
const handleStart = async () => { const handleStart = async () => {
setActionLoading('start'); setActionLoading('start');
try { try {
const res = await api.post(`/rooms/${uid}/start`); const res = await api.post(`/rooms/${uid}/start`, { dark_mode: isCurrentThemeDark() });
if (res.data.joinUrl) { if (res.data.joinUrl) {
window.open(res.data.joinUrl, '_blank'); window.open(res.data.joinUrl, '_blank');
} }
@@ -157,7 +158,8 @@ export default function RoomDetail() {
setWaitingToJoin(false); setWaitingToJoin(false);
setActionLoading('join'); setActionLoading('join');
try { try {
const data = room.access_code ? { access_code: prompt(t('room.enterAccessCode')) } : {}; const data = { dark_mode: isCurrentThemeDark() };
if (room.access_code) data.access_code = prompt(t('room.enterAccessCode'));
const res = await api.post(`/rooms/${uid}/join`, data); const res = await api.post(`/rooms/${uid}/join`, data);
if (res.data.joinUrl) { if (res.data.joinUrl) {
window.open(res.data.joinUrl, '_blank'); window.open(res.data.joinUrl, '_blank');
+12
View File
@@ -173,6 +173,18 @@ export function getThemeById(id) {
return themes.find(t => t.id === id) || themes[1]; // default to dark return themes.find(t => t.id === id) || themes[1]; // default to dark
} }
// Whether the currently applied theme is a dark one. Reads the resolved theme
// from the <html data-theme> attribute (set by ThemeContext) with a localStorage
// fallback, so it works without React context — handy for one-off API payloads
// such as the BBB join call that forwards dark mode to the meeting.
export function isCurrentThemeDark() {
const id = (typeof document !== 'undefined'
&& document.documentElement.getAttribute('data-theme'))
|| (typeof localStorage !== 'undefined' && localStorage.getItem('theme'))
|| 'dark';
return getThemeById(id).type === 'dark';
}
export function getThemeGroups() { export function getThemeGroups() {
const groups = {}; const groups = {};
themes.forEach(theme => { themes.forEach(theme => {