From 35b92bebe1450d48113773a12e5df68332826cad Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 20 Nov 2026 16:47:22 +0100 Subject: [PATCH 1/9] feat(queues): add a queues section Agents can sign in to and out of their queues from NethLink, one by one or all together, and see the waiting calls, the active operators and the signed-in operators of each queue. Pauses, statistics and the queue calls stay in NethVoice CTI, linked from the section. The section shows only to users with the queue agent permission and updates in real time: the queue member events of the phone island are now forwarded to the main window too. Assisted-by: Claude Code:Sonnet 5.5 --- public/locales/en/translations.json | 228 +++++++------- public/locales/it/translations.json | 222 ++++++-------- .../public/locales/en/translations.json | 228 +++++++------- .../public/locales/it/translations.json | 222 ++++++-------- .../Modules/NethVoice/BaseModule/Sidebar.tsx | 34 ++- .../Modules/NethVoice/Queues/QueueItem.tsx | 284 ++++++++++++++++++ .../NethVoice/Queues/QueueStatusBadge.tsx | 38 +++ .../Modules/NethVoice/Queues/QueuesBox.tsx | 145 +++++++++ .../Modules/NethVoice/Queues/QueuesModule.tsx | 5 + .../NethVoice/Queues/hook/useQueuesModule.ts | 133 ++++++++ .../components/Modules/NethlinkModules.tsx | 16 +- src/renderer/src/components/SidebarButton.tsx | 80 ++--- src/renderer/src/hooks/useAccount.ts | 6 + .../src/hooks/usePhoneIslandEventHandler.ts | 21 ++ .../src/hooks/usePhoneIslandEventListeners.ts | 7 +- src/renderer/src/pages/NethLinkPage.tsx | 28 +- src/shared/constants.ts | 5 +- src/shared/types.ts | 66 ++-- src/shared/useNethVoiceAPI.ts | 11 + 19 files changed, 1169 insertions(+), 610 deletions(-) create mode 100644 src/renderer/src/components/Modules/NethVoice/Queues/QueueItem.tsx create mode 100644 src/renderer/src/components/Modules/NethVoice/Queues/QueueStatusBadge.tsx create mode 100644 src/renderer/src/components/Modules/NethVoice/Queues/QueuesBox.tsx create mode 100644 src/renderer/src/components/Modules/NethVoice/Queues/QueuesModule.tsx create mode 100644 src/renderer/src/components/Modules/NethVoice/Queues/hook/useQueuesModule.ts diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index f9705a1c..89fe88bb 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -2,7 +2,15 @@ "Tray": { "Quit": "Quit", "Hide": "Hide", - "Show": "Show" + "Show": "Show", + "Theme": "Theme", + "System": "System", + "Light": "Light", + "Dark": "Dark", + "Check for updates": "Check for updates", + "Download version": "Download version {{version}}", + "Up to date title": "NethLink is up to date", + "Up to date description": "Version {{version}} is the latest one." }, "Common": { "Showing": "Showing", @@ -87,7 +95,11 @@ "PlusOther_one": "+ {{count}} other", "PlusOther_other": "+ {{count}} others", "Copy": "Copy", - "Copied": "Copied" + "Copied": "Copied", + "Back": "Back", + "Clear search": "Clear search", + "Show password": "Show password", + "Hide password": "Hide password" }, "Login": { "Welcome": "Welcome", @@ -107,9 +119,7 @@ "Use Another Account": "Use another account", "New Account title": "Welcome", "New Account description": "Sign in to NethLink with your NethVoice CTI username and password.", - "Account List title": "Account list", - "Account List description": "Choose an account to continue to NethLink.", - "Delete account": "Are you sure you want to delete {{username}}?", + "Account List description": "The accounts you have used on this computer.", "Back": "Back", "User not authorized for NethLink": "User not authorized for NethLink", "Sign in with SSO": "Sign in with SSO", @@ -120,14 +130,23 @@ "OTP code": "OTP code", "OTP invalid": "The code you entered is invalid or has expired. Please check your authenticator app and try again.", "OTP verification failed": "OTP verification failed", - "Two-Factor Authentication": "Two-Factor Authentication", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code." + "Two-Factor Authentication": "Two-factor authentication", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.", + "Digit": "Digit {{number}}" }, - "Continue": "Continue" + "Continue": "Continue", + "Add account": "Add account", + "Host step description": "Enter the address of your NethVoice CTI.", + "Credentials description": "Sign in to {{host}} with your NethVoice CTI username and password.", + "Choose an account": "Choose an account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Remove account", + "Remove account description": "Account {{username}} will be removed from the list. You can sign in with it again at any time.", + "Remove": "Remove" }, "SplashScreen": { - "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to you phonebook and much more.", - "Initializing": "Initializing the application..." + "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to your phonebook and much more.", + "Initializing": "Initializing the application…" }, "Notification": { "contact_created_title": "Contact created!", @@ -209,8 +228,7 @@ "Edit contact": "Edit contact", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Create new contact", - "View details": "View details", + "View details": "Details", "Details": "Details", "No contacts found": "No contacts found", "Try changing your search": "Try changing your search", @@ -238,7 +256,10 @@ "Province": "Province", "Postal code": "Postal code", "Country": "Country", - "Social": "Social" + "Social": "Social", + "Details contact": "Details {{name}}", + "Search results": "Search results", + "No phone number": "No phone number" }, "History": { "History": "History", @@ -305,7 +326,8 @@ "Video call": "Video call", "Enable camera permission": "Enable camera permission", "Busy": "Busy", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Call {{number}}" }, "Applications": { "Applications": "Applications", @@ -346,7 +368,7 @@ "Refresh calls every": "Refresh calls every", "Load calls of last": "Load calls of last", "Cache cleared": "Cache cleared", - "Mobile App": "Mobile App", + "Mobile App": "Mobile app", "Generate QR code": "Generate QR code", "New QR code creation": "New QR code creation", "Generate": "Regenerate", @@ -379,14 +401,14 @@ "Upload image to continue": "Upload image to continue", "Wrong file type": "Wrong file type", "Delete profile picture": "Delete profile picture", - "Devices": "Audio and Video", - "IncomingCalls": "Incoming Calls", + "Devices": "Audio and video", + "IncomingCalls": "Incoming calls", "Notifications": "Notifications", "Ringtone": "Ringtone", "Time preferences": "Time preferences", - "Login/logout preferences": "Login/logout preferences", - "Logout from queue automatically": "Logout from queue automatically", - "Login from queue automatically": "Login from queue automatically", + "Login/logout preferences": "Sign-in and sign-out preferences", + "Logout from queue automatically": "Sign out of queues automatically", + "Login from queue automatically": "Sign in to queues automatically", "Pause from queue automatically": "Pause from queue automatically", "When you exit the app": "When you exit the app", "When you enter the app": "When you enter the app", @@ -395,9 +417,9 @@ "Do not disturb": "Do not disturb", "Available presence": "Available presence", "IP Phone": "IP Phone", - "Only nethlink": "Only Nethlink", - "ShortcutToCall": "Shortcut to Call", - "CommandBarShortcut": "Shortcut for Command Bar", + "Only nethlink": "Only NethLink", + "ShortcutToCall": "Shortcut to call", + "CommandBarShortcut": "Shortcut for the command bar", "NotificationsDescription": "Manage notifications for call features and AI-generated content.", "NotificationsScopeDescription": "Settings apply to web phone and desktop app.", "CallSummaryNotifications": "Call summary notifications", @@ -414,7 +436,6 @@ "Signed in as": "Signed in as", "Switch to light theme": "Switch to light theme", "Switch to dark theme": "Switch to dark theme", - "Logout": "Logout", "Make and receive phone calls": "Make and receive phone calls.", "Forward incoming calls to another phone number": "Forward incoming calls to another phone number.", "Do not disturb": "Do not disturb", @@ -429,22 +450,23 @@ "Voicemail": "Voicemail", "Mobile": "Mobile", "Cellphone": "Cellphone", - "Activate voicemail": "Activate voicemail", + "Activate voicemail": "Enable voicemail", "Go to NethVoice CTI": "Go to NethVoice CTI", "Pair device": "Pair device", "Theme": "Theme", "Settings": "Settings", "Shortcut": "Shortcut", - "Keyboard shortcut to call": "Keyboard shortcut to Call", - "Keyboard shortcut for command bar": "Keyboard shortcut for Command bar", "Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ", - "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the Command Bar. To trigger it, press the shortcut twice in a row.", + "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the command bar. To trigger it, press the shortcut twice in a row.", "Shortcut subtitle description": "The shortcut must include at least one modifier key (Ctrl, Alt, Cmd). Avoid using system-reserved shortcuts.", "Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift. Single keys without a modifier (e.g. \"6\", \"R\") are not allowed.", - "Preferred devices": "Audio and Video settings", + "Preferred devices": "Audio and video settings", "Microphone": "Microphone", "Speaker": "Speaker", - "Camera": "Camera" + "Camera": "Camera", + "Sign out": "Sign out", + "Call shortcut title": "Keyboard shortcut to call", + "Command bar shortcut title": "Keyboard shortcut for the command bar" }, "OperatorDrawer": { "Book": "Book", @@ -473,99 +495,38 @@ }, "Queues": { "Queues": "Queues", - "Filter queues": "Filter queues", - "Login to all queues": "Login to all queues", - "Logout from all queues": "Logout from all queues", - "Pause on all queues": "Pause on all queues", - "End pause on all queues": "End pause on all queues", - "Collapse all queues": "Collapse all queues", - "Expand all queues": "Expand all queues", "No queues": "No queues", - "You are member of no queues": "You are member of no queues", - "Toggle favorite queue": "Toggle favorite queue", - "Total calls": "Total calls", "Waiting calls": "Waiting calls", - "Connected calls": "Connected calls", - "Active operators": "Active operators", - "Logged in": "Logged in", "On a break": "On a break", - "Logged out": "Logged out", - "Logout": "Logout", - "Pause": "Pause", - "End pause": "End pause", - "Lunch break": "Lunch break", - "Emergency": "Emergency", - "Backend": "Backend", - "Min wait": "Min wait", "Max wait": "Max wait", - "Queue operators": "Queue operators", - "Cannot retrieve queues": "Cannot retrieve queues", - "No calls": "No calls", - "No operators": "No operators", - "Select a tab": "Select a tab", - "Queues management": "Queues management", - "Calls": "Calls", - "calls": "calls", - "Statistics": "Statistics", - "Cannot retrieve calls": "Cannot retrieve calls", - "Time": "Time", "Queue": "Queue", - "Name": "Name", - "Company": "Company", - "Details": "Details", - "Outcome": "Outcome", - "outcome_ANSWERED": "Answered", - "outcome_BUSY": "Busy", - "outcome_FAILED": "Failed", - "outcome_NO ANSWER": "No answer", - "outcome_RINGNOANSWER": "No answer", - "outcome_ABANDON": "Abandon", - "outcome_DONE": "Managed", - "outcome_COMPLETEAGENT": "Managed", - "outcome_COMPLETECALLER": "Managed", - "outcome_CONNECT": "Connected", - "outcome_ENTERQUEUE": "Queued", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Exit with IVR", - "Not managed": "Not managed", - "Managed": "Managed", - "All": "All", - "Calls filters": "Calls filters", - "There are no recent calls with current filters": "There are no recent calls with current filters", - "Last update": "Last update", - "every_time_interval_seconds": "every {{ timeInterval }} seconds", - "Settings": "Settings", - "Cannot retrieve stats": "Cannot retrieve stats", - "Operator statistics": "Operator statistics", - "Queue statistics": "Queue statistics", - "Login": "Login", - "Last login": "Last login", - "Last logout": "Last logout", - "Answered calls": "Answered calls", - "Outgoing calls": "Outgoing calls", - "Missed calls": "Missed calls", - "From last call": "From last call", - "Time at phone": "Time at phone", - "Calls duration": "Calls duration", - "Minimum": "Minimum", - "Maximum": "Maximum", - "Average": "Average", - "Total incoming": "Total incoming", - "Total outgoing": "Total outgoing", - "Download stats": "Download stats", - "Logon time": "Logon time", - "Pause time": "Pause time", - "Pause on logon": "Pause on logon", - "No queue calls": "No queue calls", - "Call details": "Call details", - "Call management": "Call management", - "Duration": "Duration", - "Hold": "Hold", "Operator": "Operator", - "Caller": "Caller", "Wait": "Wait", - "Position": "Position", - "You are about to logout from the following queues": "You are about to logout from the following queues" + "Sign in": "Sign in", + "Sign out": "Sign out", + "Sign in to queue": "Sign in to {{name}}", + "Sign out of queue": "Sign out of {{name}}", + "Sign in to all queues": "Sign in to all queues", + "Sign out of all queues": "Sign out of all queues", + "Signed in": "Signed in", + "Signed out": "Signed out", + "waiting_calls_count_zero": "No waiting calls", + "waiting_calls_count_one": "{{count}} waiting call", + "waiting_calls_count_other": "{{count}} waiting calls", + "active_of_total": "{{active}} of {{total}}", + "Static member description": "You are a static member of this queue and cannot sign out.", + "Cannot sign in to queue": "Cannot sign in to queue", + "Cannot sign out of queue": "Cannot sign out of queue", + "Cannot sign in to all queues": "Cannot sign in to all queues", + "Cannot sign out of all queues": "Cannot sign out of all queues", + "Queue not changed description": "Queue {{name}} has not changed. Try again.", + "Some queues not changed description": "Some queues have not changed. Try again.", + "No queues description": "You are not a member of any queue.", + "Queues in CTI description": "Pauses, statistics and the calls of each queue are in NethVoice CTI.", + "Open NethVoice CTI": "Open NethVoice CTI", + "Operators": "Operators", + "Signed-in operators": "Signed-in operators", + "No signed-in operators": "No operators signed in" }, "Lines": { "Lines management": "Lines management", @@ -692,7 +653,7 @@ "Speed dial edit message": "You've just edited a speed dial: {{extensionWaiting}}", "Speed dial edited": "Speed dial edited", "Favourites": "Favourites", - "No favourites": "No favourites found", + "No favourites": "No favourites yet", "Order by": "Order by", "A-Z": "Alphabetic A-Z", "Z-A": "Alphabetic Z-A", @@ -709,13 +670,15 @@ "New chat": "New chat", "No conversations": "No conversations", "No messages yet": "No messages yet", - "members": "members", - "You": "You", "Delete": "Delete", "Leave": "Leave", "Delete confirm": "Delete the conversation with \"{{name}}\"? Your copy of the messages is removed.", "Delete group confirm": "Delete the group \"{{name}}\" for everyone? Its messages are removed for all members.", - "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed." + "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed.", + "Members count_one": "{{count}} member", + "Members count_other": "{{count}} members", + "Last message by you": "You: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Last calls", @@ -725,7 +688,10 @@ "Oldest": "Oldest", "Call": "Call", "Calls_one": "Call", - "Calls_other": "Calls" + "Calls_other": "Calls", + "Open history": "Open history", + "No calls yet": "No calls yet", + "New call": "New call" }, "NavBars": { "Speed dials": "Speed dials", @@ -927,7 +893,11 @@ "Parking": "Parking", "Hold": "Hold", "No parked call": "No parked calls found", - "Click and hold to take current parking in call": "Click and hold to take current parking in call" + "No parked calls": "No parked calls", + "Pick up call in parking": "Pick up the call in parking {{name}}", + "Press and hold to pick up": "Press and hold to pick up the call", + "Parking timeout soon": "The parking time is running out", + "Parking timeout very soon": "The parking time is almost over" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +975,17 @@ }, "About": { "title": "Information", - "current_version": "Current version: nethlink {{version}}", + "current_version": "Version {{version}}", "update_available": "Update available for download", - "download": "Download the update" + "NethLink by": "NethLink by {{company}}", + "Open download page": "Open download page", + "Version available": "Version {{version}} is available" }, "CommandBar": { - "Placeholder": "Search contact or dial number...", "Call": "Call", - "Chat hint": "Chat (Ctrl/⌘+Enter)" + "Chat hint": "Chat (Ctrl/⌘+Enter)", + "Search placeholder": "Search contacts or dial a number", + "Search results": "Search results" }, "ScreenShare": { "Title": "Share screen", @@ -1081,6 +1054,7 @@ "Change it now to keep using the application": "Change it now to keep using the application.", "Password expires on {{date}}": "Password expires on {{date}}", "Your password is no longer expired": "Your password is no longer expired: sign in with your current password.", - "Password change is not available right now": "Password change is not available right now. Try again later." + "Password change is not available right now": "Password change is not available right now. Try again later.", + "Change": "Change" } } diff --git a/public/locales/it/translations.json b/public/locales/it/translations.json index 84fbb3ab..40b069e7 100644 --- a/public/locales/it/translations.json +++ b/public/locales/it/translations.json @@ -2,7 +2,15 @@ "Tray": { "Quit": "Chiudi", "Hide": "Nascondi", - "Show": "Mostra" + "Show": "Mostra", + "Theme": "Tema", + "System": "Sistema", + "Light": "Chiaro", + "Dark": "Scuro", + "Check for updates": "Controlla aggiornamenti", + "Download version": "Scarica la versione {{version}}", + "Up to date title": "NethLink è aggiornato", + "Up to date description": "La versione {{version}} è la più recente." }, "Common": { "Showing": "Mostrando", @@ -87,7 +95,11 @@ "PlusOther_one": "+ {{count}} altro", "PlusOther_other": "+ {{count}} altri", "Copy": "Copia", - "Copied": "Copiato" + "Copied": "Copiato", + "Back": "Indietro", + "Clear search": "Azzera ricerca", + "Show password": "Mostra password", + "Hide password": "Nascondi password" }, "Login": { "Welcome": "Benvenuto", @@ -107,9 +119,7 @@ "Use Another Account": "Usa un altro account", "New Account title": "Ti diamo il benvenuto", "New Account description": "Accedere a NethLink con il nome utente e la password di NethVoice CTI.", - "Account List title": "Account disponibili", - "Account List description": "Scegliete un account per proseguire con NethLink.", - "Delete account": "Sei sicuro di voler eliminare {{username}}?", + "Account List description": "Gli account che hai usato su questo computer.", "Back": "Indietro", "User not authorized for NethLink": "Utente non autorizzato per NethLink", "Sign in with SSO": "Accedi con SSO", @@ -120,14 +130,23 @@ "OTP code": "Codice OTP", "OTP invalid": "Il codice inserito non è valido o è scaduto. Controlla la tua app di autenticazione e riprova.", "OTP verification failed": "Verifica OTP fallita", - "Two-Factor Authentication": "Autenticazione a Due Fattori", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero." + "Two-Factor Authentication": "Autenticazione a due fattori", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero.", + "Digit": "Cifra {{number}}" }, - "Continue": "Continua" + "Continue": "Continua", + "Add account": "Aggiungi account", + "Host step description": "Inserisci l'indirizzo del tuo NethVoice CTI.", + "Credentials description": "Accedi a {{host}} con nome utente e password di NethVoice CTI.", + "Choose an account": "Scegli un account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Rimuovi account", + "Remove account description": "L'account {{username}} verrà rimosso dall'elenco. Potrai accedere di nuovo con questo account in qualsiasi momento.", + "Remove": "Rimuovi" }, "SplashScreen": { "Description": "Benvenuti in NethLink, la soluzione desktop per comunicazioni senza confini. Effettua e ricevi chiamate, salva i contatti nella tua rubrica e molto altro ancora.", - "Initializing": "Avvio applicazione..." + "Initializing": "Avvio dell'applicazione…" }, "Notification": { "contact_created_title": "Contatto creato!", @@ -209,8 +228,7 @@ "Edit contact": "Modifica contatto", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Crea nuovo contatto", - "View details": "Vedi dettagli", + "View details": "Dettagli", "Details": "Dettagli", "No contacts found": "Nessun contatto trovato", "Try changing your search": "Prova a modificare la ricerca", @@ -238,7 +256,10 @@ "Province": "Provincia", "Postal code": "CAP", "Country": "Nazione", - "Social": "Social" + "Social": "Social", + "Details contact": "Dettagli {{name}}", + "Search results": "Risultati della ricerca", + "No phone number": "Nessun numero di telefono" }, "History": { "History": "Storico", @@ -305,7 +326,8 @@ "Video call": "Videochiamata", "Enable camera permission": "Abilita il permesso della fotocamera", "Busy": "Occupato", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Chiama {{number}}" }, "Applications": { "Applications": "Applicazioni", @@ -379,14 +401,14 @@ "Upload image to continue": "Carica immagine per continuare", "Wrong file type": "Formato file errato", "Delete profile picture": "Elimina immagine profilo", - "Devices": "Audio e Video", - "IncomingCalls": "Chiamate in Arrivo", + "Devices": "Audio e video", + "IncomingCalls": "Chiamate in arrivo", "Notifications": "Notifiche", "Ringtone": "Suoneria", "Time preferences": "Preferenze di tempo", - "Login/logout preferences": "Preferenze di entrata/uscita", - "Logout from queue automatically": "Esci dalla coda automaticamente", - "Login from queue automatically": "Entra dalla coda automaticamente", + "Login/logout preferences": "Preferenze di accesso e uscita", + "Logout from queue automatically": "Esci dalle code automaticamente", + "Login from queue automatically": "Accedi alle code automaticamente", "Pause from queue automatically": "Pausa dalla coda automaticamente", "When you exit the app": "Quando esci dall'app", "When you enter the app": "Quando entri nell'app", @@ -395,9 +417,9 @@ "Do not disturb": "Non disturbare", "Available presence": "Presence disponibili", "IP Phone": "Telefono IP", - "Only nethlink": "Solo Nethlink", - "ShortcutToCall": "Scorciatoia per Chiamare", - "CommandBarShortcut": "Scorciatoia per Command Bar", + "Only nethlink": "Solo NethLink", + "ShortcutToCall": "Scorciatoia per chiamare", + "CommandBarShortcut": "Scorciatoia per la barra dei comandi", "NotificationsDescription": "Gestisci le notifiche per le funzioni di chiamata e i contenuti generati dall'AI.", "NotificationsScopeDescription": "Le impostazioni si applicano al web phone e all'app desktop.", "CallSummaryNotifications": "Notifica riassunto chiamata", @@ -414,7 +436,6 @@ "Signed in as": "Accesso effettuato come", "Switch to light theme": "Imposta tema chiaro", "Switch to dark theme": "Imposta tema scuro", - "Logout": "Disconnetti", "Make and receive phone calls": "Effettua e ricevi telefonate.", "Forward incoming calls to another phone number": "Inoltra le chiamate in entrata a un altro numero di telefono.", "Do not disturb": "Non disturbare", @@ -429,22 +450,23 @@ "Voicemail": "Voicemail", "Mobile": "Cellulare", "Cellphone": "Cellulare", - "Activate voicemail": "Attiva voicemail", + "Activate voicemail": "Abilita voicemail", "Go to NethVoice CTI": "Vai a NethVoice CTI", "Pair device": "Abbina dispositivo", "Theme": "Tema", "Settings": "Impostazioni", "Shortcut": "Scorciatoia", - "Keyboard shortcut to call": "Scorciatoia per chiamare", - "Keyboard shortcut for command bar": "Scorciatoia per Command Bar", "Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.", "Command bar shortcut title description": "Scegli una combinazione di tasti per aprire o nascondere la Command Bar. Per attivarla, premi la scorciatoia due volte di seguito.", "Shortcut subtitle description": "La scorciatoia deve includere almeno un tasto modificatore (Ctrl, Alt, Cmd). Evita di usare scorciatoie già presenti nel sistema.", "Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift. I tasti singoli senza modificatore (es. \"6\", \"R\") non sono ammessi.", - "Preferred devices": "Impostazioni Audio e Video", + "Preferred devices": "Impostazioni audio e video", "Microphone": "Microfono", "Speaker": "Altoparlante", - "Camera": "Video" + "Camera": "Video", + "Sign out": "Esci", + "Call shortcut title": "Scorciatoia da tastiera per chiamare", + "Command bar shortcut title": "Scorciatoia da tastiera per la barra dei comandi" }, "OperatorDrawer": { "Book": "Prenota", @@ -473,99 +495,38 @@ }, "Queues": { "Queues": "Code", - "Filter queues": "Filtro code", - "Login to all queues": "Accesso a tutte le code", - "Logout from all queues": "Disconnessione da tutte le code", - "Pause on all queues": "Pausa su tutte le code", - "End pause on all queues": "Termina la pausa su tutte le code", - "Collapse all queues": "Chiudere tutte le code", - "Expand all queues": "Espandi tutte le code", "No queues": "Nessuna coda", - "You are member of no queues": "Non si è membri di nessuna coda", - "Toggle favorite queue": "Attiva/disattiva la coda preferita", - "Total calls": "Chiamate totali", "Waiting calls": "Chiamate in attesa", - "Connected calls": "Chiamate collegate", - "Active operators": "Operatori attivi", - "Logged in": "Connesso", "On a break": "In pausa", - "Logged out": "Disconnesso", - "Logout": "Logout", - "Pause": "Pausa", - "End pause": "Fine pausa", - "Lunch break": "Pausa pranzo", - "Emergency": "Emergenza", - "Backend": "Backend", - "Min wait": "Attesa minima", "Max wait": "Attesa massima", - "Queue operators": "Operatori di coda", - "Cannot retrieve queues": "Impossibile recuperare le code", - "No calls": "Nessuna chiamata", - "No operators": "Nessun operatore", - "Select a tab": "Selezionare una scheda", - "Queues management": "Gestione delle code", - "Calls": "Chiamate", - "calls": "Chiamate", - "Statistics": "Statistiche", - "Cannot retrieve calls": "Impossibile recuperare le chiamate", - "Time": "Tempo", "Queue": "In coda", - "Name": "Nome", - "Company": "Azienda", - "Details": "Dettagli", - "Outcome": "Esito", - "outcome_ANSWERED": "Risposte", - "outcome_BUSY": "Occupato", - "outcome_FAILED": "Fallite", - "outcome_NO ANSWER": "Nessuna risposta", - "outcome_RINGNOANSWER": "Nessuna risposta", - "outcome_ABANDON": "Abbandonata", - "outcome_DONE": "Gestita", - "outcome_COMPLETEAGENT": "Gestito", - "outcome_COMPLETECALLER": "Gestita", - "outcome_CONNECT": "Connesso", - "outcome_ENTERQUEUE": "In coda", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Uscita con IVR", - "Not managed": "Non gestito", - "Managed": "Gestito", - "All": "Tutto", - "Calls filters": "Filtri per le chiamate", - "There are no recent calls with current filters": "Non ci sono chiamate recenti con i filtri attuali", - "Last update": "Ultimo aggiornamento", - "every_time_interval_seconds": "ogni {{ timeInterval }} secondi", - "Settings": "Impostazioni", - "Cannot retrieve stats": "Impossibile recuperare le statistiche", - "Operator statistics": "Statistiche degli operatori", - "Queue statistics": "Statistiche di coda", - "Login": "Accedi", - "Last login": "Ultimo accesso", - "Last logout": "Ultimo logout", - "Answered calls": "Chiamate risposte", - "Outgoing calls": "Chiamate in uscita", - "Missed calls": "Chiamata persa", - "From last call": "Dall'ultima chiamata", - "Time at phone": "Tempo al telefono", - "Calls duration": "Durata delle chiamate", - "Minimum": "Minimo", - "Maximum": "Massimo", - "Average": "Media", - "Total incoming": "Totale in entrata", - "Total outgoing": "Totale in uscita", - "Download stats": "Scarica le statistiche", - "Logon time": "Tempo di accesso", - "Pause time": "Tempo di pausa", - "Pause on logon": "Pausa all'accesso", - "No queue calls": "Nessuna chiamata in coda", - "Call details": "Dettagli della chiamata", - "Call management": "Gestione delle chiamate", - "Duration": "Durata", - "Hold": "Trattieni", "Operator": "Operatore", - "Caller": "Chiamante", "Wait": "Attendere", - "Position": "Posizione", - "You are about to logout from the following queues": "Si sta per effettuare il logout dalle code seguenti" + "Sign in": "Accedi", + "Sign out": "Esci", + "Sign in to queue": "Accedi a {{name}}", + "Sign out of queue": "Esci da {{name}}", + "Sign in to all queues": "Accedi a tutte le code", + "Sign out of all queues": "Esci da tutte le code", + "Signed in": "Connesso", + "Signed out": "Non connesso", + "waiting_calls_count_zero": "Nessuna chiamata in attesa", + "waiting_calls_count_one": "{{count}} chiamata in attesa", + "waiting_calls_count_other": "{{count}} chiamate in attesa", + "active_of_total": "{{active}} su {{total}}", + "Static member description": "Sei un membro statico di questa coda e non puoi uscire.", + "Cannot sign in to queue": "Impossibile accedere alla coda", + "Cannot sign out of queue": "Impossibile uscire dalla coda", + "Cannot sign in to all queues": "Impossibile accedere a tutte le code", + "Cannot sign out of all queues": "Impossibile uscire da tutte le code", + "Queue not changed description": "La coda {{name}} non è cambiata. Riprova.", + "Some queues not changed description": "Alcune code non sono cambiate. Riprova.", + "No queues description": "Non sei membro di nessuna coda.", + "Queues in CTI description": "Pause, statistiche e chiamate di ogni coda sono in NethVoice CTI.", + "Open NethVoice CTI": "Apri NethVoice CTI", + "Operators": "Operatori", + "Signed-in operators": "Operatori connessi", + "No signed-in operators": "Nessun operatore connesso" }, "Lines": { "Lines management": "Gestione linee", @@ -692,7 +653,7 @@ "Speed dial edit message": "Hai appena modificato una chiamata rapida: {{estensioneAttesa}}", "Speed dial edited": "Chiamata rapida modificata", "Favourites": "Preferiti", - "No favourites": "Nessun preferito trovato", + "No favourites": "Ancora nessun preferito", "Order by": "Ordina per", "A-Z": "Alfabetico A-Z", "Z-A": "Alfabetico Z-A", @@ -709,13 +670,15 @@ "New chat": "Nuova chat", "No conversations": "Nessuna conversazione", "No messages yet": "Nessun messaggio", - "members": "membri", - "You": "Tu", "Delete": "Elimina", "Leave": "Abbandona", "Delete confirm": "Eliminare la conversazione con \"{{name}}\"? La tua copia dei messaggi viene rimossa.", "Delete group confirm": "Eliminare il gruppo \"{{name}}\" per tutti? I suoi messaggi vengono rimossi per tutti i membri.", - "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa." + "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa.", + "Members count_one": "{{count}} membro", + "Members count_other": "{{count}} membri", + "Last message by you": "Tu: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Ultime chiamate", @@ -725,7 +688,10 @@ "Oldest": "Meno recenti", "Call": "Chiama", "Calls_one": "Chiamata", - "Calls_other": "Chiamate" + "Calls_other": "Chiamate", + "Open history": "Apri cronologia", + "No calls yet": "Nessuna chiamata ancora", + "New call": "Nuova chiamata" }, "NavBars": { "Speed dial": "Chiamata rapida", @@ -927,7 +893,11 @@ "Parking": "Parcheggio", "Hold": "Tieni premuto", "No parked call": "Nessuna chiamata parcheggiata trovata", - "Click and hold to take current parking in call": "Clicca e tieni premuto per riprendere la chiamata parcheggiata" + "No parked calls": "Nessuna chiamata parcheggiata", + "Pick up call in parking": "Riprendi la chiamata nel parcheggio {{name}}", + "Press and hold to pick up": "Tieni premuto per riprendere la chiamata", + "Parking timeout soon": "Il tempo di parcheggio sta per scadere", + "Parking timeout very soon": "Il tempo di parcheggio è quasi scaduto" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +975,17 @@ }, "About": { "title": "Informazioni", - "current_version": "Versione corrente: nethlink {{version}}", + "current_version": "Versione {{version}}", "update_available": "Aggiornamento disponibile per il download", - "download": "Scarica l'aggiornamento" + "NethLink by": "NethLink di {{company}}", + "Open download page": "Apri la pagina di download", + "Version available": "È disponibile la versione {{version}}" }, "CommandBar": { - "Placeholder": "Cerca contatto o componi numero...", "Call": "Chiama", - "Chat hint": "Chat (Ctrl/⌘+Invio)" + "Chat hint": "Chat (Ctrl/⌘+Invio)", + "Search placeholder": "Cerca contatti o componi un numero", + "Search results": "Risultati della ricerca" }, "ScreenShare": { "Title": "Condividi schermo", @@ -1081,6 +1054,7 @@ "Change it now to keep using the application": "Cambiala ora per continuare a usare l'applicazione.", "Password expires on {{date}}": "La password scade il {{date}}", "Your password is no longer expired": "La password non è più scaduta: accedi con la password attuale.", - "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi." + "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi.", + "Change": "Cambia" } } diff --git a/src/renderer/public/locales/en/translations.json b/src/renderer/public/locales/en/translations.json index f9705a1c..89fe88bb 100644 --- a/src/renderer/public/locales/en/translations.json +++ b/src/renderer/public/locales/en/translations.json @@ -2,7 +2,15 @@ "Tray": { "Quit": "Quit", "Hide": "Hide", - "Show": "Show" + "Show": "Show", + "Theme": "Theme", + "System": "System", + "Light": "Light", + "Dark": "Dark", + "Check for updates": "Check for updates", + "Download version": "Download version {{version}}", + "Up to date title": "NethLink is up to date", + "Up to date description": "Version {{version}} is the latest one." }, "Common": { "Showing": "Showing", @@ -87,7 +95,11 @@ "PlusOther_one": "+ {{count}} other", "PlusOther_other": "+ {{count}} others", "Copy": "Copy", - "Copied": "Copied" + "Copied": "Copied", + "Back": "Back", + "Clear search": "Clear search", + "Show password": "Show password", + "Hide password": "Hide password" }, "Login": { "Welcome": "Welcome", @@ -107,9 +119,7 @@ "Use Another Account": "Use another account", "New Account title": "Welcome", "New Account description": "Sign in to NethLink with your NethVoice CTI username and password.", - "Account List title": "Account list", - "Account List description": "Choose an account to continue to NethLink.", - "Delete account": "Are you sure you want to delete {{username}}?", + "Account List description": "The accounts you have used on this computer.", "Back": "Back", "User not authorized for NethLink": "User not authorized for NethLink", "Sign in with SSO": "Sign in with SSO", @@ -120,14 +130,23 @@ "OTP code": "OTP code", "OTP invalid": "The code you entered is invalid or has expired. Please check your authenticator app and try again.", "OTP verification failed": "OTP verification failed", - "Two-Factor Authentication": "Two-Factor Authentication", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code." + "Two-Factor Authentication": "Two-factor authentication", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.", + "Digit": "Digit {{number}}" }, - "Continue": "Continue" + "Continue": "Continue", + "Add account": "Add account", + "Host step description": "Enter the address of your NethVoice CTI.", + "Credentials description": "Sign in to {{host}} with your NethVoice CTI username and password.", + "Choose an account": "Choose an account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Remove account", + "Remove account description": "Account {{username}} will be removed from the list. You can sign in with it again at any time.", + "Remove": "Remove" }, "SplashScreen": { - "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to you phonebook and much more.", - "Initializing": "Initializing the application..." + "Description": "Welcome to NethLink, a desktop solution for seamless communication. Make and receive calls, save contacts to your phonebook and much more.", + "Initializing": "Initializing the application…" }, "Notification": { "contact_created_title": "Contact created!", @@ -209,8 +228,7 @@ "Edit contact": "Edit contact", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Create new contact", - "View details": "View details", + "View details": "Details", "Details": "Details", "No contacts found": "No contacts found", "Try changing your search": "Try changing your search", @@ -238,7 +256,10 @@ "Province": "Province", "Postal code": "Postal code", "Country": "Country", - "Social": "Social" + "Social": "Social", + "Details contact": "Details {{name}}", + "Search results": "Search results", + "No phone number": "No phone number" }, "History": { "History": "History", @@ -305,7 +326,8 @@ "Video call": "Video call", "Enable camera permission": "Enable camera permission", "Busy": "Busy", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Call {{number}}" }, "Applications": { "Applications": "Applications", @@ -346,7 +368,7 @@ "Refresh calls every": "Refresh calls every", "Load calls of last": "Load calls of last", "Cache cleared": "Cache cleared", - "Mobile App": "Mobile App", + "Mobile App": "Mobile app", "Generate QR code": "Generate QR code", "New QR code creation": "New QR code creation", "Generate": "Regenerate", @@ -379,14 +401,14 @@ "Upload image to continue": "Upload image to continue", "Wrong file type": "Wrong file type", "Delete profile picture": "Delete profile picture", - "Devices": "Audio and Video", - "IncomingCalls": "Incoming Calls", + "Devices": "Audio and video", + "IncomingCalls": "Incoming calls", "Notifications": "Notifications", "Ringtone": "Ringtone", "Time preferences": "Time preferences", - "Login/logout preferences": "Login/logout preferences", - "Logout from queue automatically": "Logout from queue automatically", - "Login from queue automatically": "Login from queue automatically", + "Login/logout preferences": "Sign-in and sign-out preferences", + "Logout from queue automatically": "Sign out of queues automatically", + "Login from queue automatically": "Sign in to queues automatically", "Pause from queue automatically": "Pause from queue automatically", "When you exit the app": "When you exit the app", "When you enter the app": "When you enter the app", @@ -395,9 +417,9 @@ "Do not disturb": "Do not disturb", "Available presence": "Available presence", "IP Phone": "IP Phone", - "Only nethlink": "Only Nethlink", - "ShortcutToCall": "Shortcut to Call", - "CommandBarShortcut": "Shortcut for Command Bar", + "Only nethlink": "Only NethLink", + "ShortcutToCall": "Shortcut to call", + "CommandBarShortcut": "Shortcut for the command bar", "NotificationsDescription": "Manage notifications for call features and AI-generated content.", "NotificationsScopeDescription": "Settings apply to web phone and desktop app.", "CallSummaryNotifications": "Call summary notifications", @@ -414,7 +436,6 @@ "Signed in as": "Signed in as", "Switch to light theme": "Switch to light theme", "Switch to dark theme": "Switch to dark theme", - "Logout": "Logout", "Make and receive phone calls": "Make and receive phone calls.", "Forward incoming calls to another phone number": "Forward incoming calls to another phone number.", "Do not disturb": "Do not disturb", @@ -429,22 +450,23 @@ "Voicemail": "Voicemail", "Mobile": "Mobile", "Cellphone": "Cellphone", - "Activate voicemail": "Activate voicemail", + "Activate voicemail": "Enable voicemail", "Go to NethVoice CTI": "Go to NethVoice CTI", "Pair device": "Pair device", "Theme": "Theme", "Settings": "Settings", "Shortcut": "Shortcut", - "Keyboard shortcut to call": "Keyboard shortcut to Call", - "Keyboard shortcut for command bar": "Keyboard shortcut for Command bar", "Shortcut title description": "Choose a keyboard shortcut to dial any selected number. ", - "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the Command Bar. To trigger it, press the shortcut twice in a row.", + "Command bar shortcut title description": "Choose a keyboard shortcut to open or hide the command bar. To trigger it, press the shortcut twice in a row.", "Shortcut subtitle description": "The shortcut must include at least one modifier key (Ctrl, Alt, Cmd). Avoid using system-reserved shortcuts.", "Shortcut body description": "Keys not supported: tab, capsLock, numLock, insert, esc, shift. Single keys without a modifier (e.g. \"6\", \"R\") are not allowed.", - "Preferred devices": "Audio and Video settings", + "Preferred devices": "Audio and video settings", "Microphone": "Microphone", "Speaker": "Speaker", - "Camera": "Camera" + "Camera": "Camera", + "Sign out": "Sign out", + "Call shortcut title": "Keyboard shortcut to call", + "Command bar shortcut title": "Keyboard shortcut for the command bar" }, "OperatorDrawer": { "Book": "Book", @@ -473,99 +495,38 @@ }, "Queues": { "Queues": "Queues", - "Filter queues": "Filter queues", - "Login to all queues": "Login to all queues", - "Logout from all queues": "Logout from all queues", - "Pause on all queues": "Pause on all queues", - "End pause on all queues": "End pause on all queues", - "Collapse all queues": "Collapse all queues", - "Expand all queues": "Expand all queues", "No queues": "No queues", - "You are member of no queues": "You are member of no queues", - "Toggle favorite queue": "Toggle favorite queue", - "Total calls": "Total calls", "Waiting calls": "Waiting calls", - "Connected calls": "Connected calls", - "Active operators": "Active operators", - "Logged in": "Logged in", "On a break": "On a break", - "Logged out": "Logged out", - "Logout": "Logout", - "Pause": "Pause", - "End pause": "End pause", - "Lunch break": "Lunch break", - "Emergency": "Emergency", - "Backend": "Backend", - "Min wait": "Min wait", "Max wait": "Max wait", - "Queue operators": "Queue operators", - "Cannot retrieve queues": "Cannot retrieve queues", - "No calls": "No calls", - "No operators": "No operators", - "Select a tab": "Select a tab", - "Queues management": "Queues management", - "Calls": "Calls", - "calls": "calls", - "Statistics": "Statistics", - "Cannot retrieve calls": "Cannot retrieve calls", - "Time": "Time", "Queue": "Queue", - "Name": "Name", - "Company": "Company", - "Details": "Details", - "Outcome": "Outcome", - "outcome_ANSWERED": "Answered", - "outcome_BUSY": "Busy", - "outcome_FAILED": "Failed", - "outcome_NO ANSWER": "No answer", - "outcome_RINGNOANSWER": "No answer", - "outcome_ABANDON": "Abandon", - "outcome_DONE": "Managed", - "outcome_COMPLETEAGENT": "Managed", - "outcome_COMPLETECALLER": "Managed", - "outcome_CONNECT": "Connected", - "outcome_ENTERQUEUE": "Queued", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Exit with IVR", - "Not managed": "Not managed", - "Managed": "Managed", - "All": "All", - "Calls filters": "Calls filters", - "There are no recent calls with current filters": "There are no recent calls with current filters", - "Last update": "Last update", - "every_time_interval_seconds": "every {{ timeInterval }} seconds", - "Settings": "Settings", - "Cannot retrieve stats": "Cannot retrieve stats", - "Operator statistics": "Operator statistics", - "Queue statistics": "Queue statistics", - "Login": "Login", - "Last login": "Last login", - "Last logout": "Last logout", - "Answered calls": "Answered calls", - "Outgoing calls": "Outgoing calls", - "Missed calls": "Missed calls", - "From last call": "From last call", - "Time at phone": "Time at phone", - "Calls duration": "Calls duration", - "Minimum": "Minimum", - "Maximum": "Maximum", - "Average": "Average", - "Total incoming": "Total incoming", - "Total outgoing": "Total outgoing", - "Download stats": "Download stats", - "Logon time": "Logon time", - "Pause time": "Pause time", - "Pause on logon": "Pause on logon", - "No queue calls": "No queue calls", - "Call details": "Call details", - "Call management": "Call management", - "Duration": "Duration", - "Hold": "Hold", "Operator": "Operator", - "Caller": "Caller", "Wait": "Wait", - "Position": "Position", - "You are about to logout from the following queues": "You are about to logout from the following queues" + "Sign in": "Sign in", + "Sign out": "Sign out", + "Sign in to queue": "Sign in to {{name}}", + "Sign out of queue": "Sign out of {{name}}", + "Sign in to all queues": "Sign in to all queues", + "Sign out of all queues": "Sign out of all queues", + "Signed in": "Signed in", + "Signed out": "Signed out", + "waiting_calls_count_zero": "No waiting calls", + "waiting_calls_count_one": "{{count}} waiting call", + "waiting_calls_count_other": "{{count}} waiting calls", + "active_of_total": "{{active}} of {{total}}", + "Static member description": "You are a static member of this queue and cannot sign out.", + "Cannot sign in to queue": "Cannot sign in to queue", + "Cannot sign out of queue": "Cannot sign out of queue", + "Cannot sign in to all queues": "Cannot sign in to all queues", + "Cannot sign out of all queues": "Cannot sign out of all queues", + "Queue not changed description": "Queue {{name}} has not changed. Try again.", + "Some queues not changed description": "Some queues have not changed. Try again.", + "No queues description": "You are not a member of any queue.", + "Queues in CTI description": "Pauses, statistics and the calls of each queue are in NethVoice CTI.", + "Open NethVoice CTI": "Open NethVoice CTI", + "Operators": "Operators", + "Signed-in operators": "Signed-in operators", + "No signed-in operators": "No operators signed in" }, "Lines": { "Lines management": "Lines management", @@ -692,7 +653,7 @@ "Speed dial edit message": "You've just edited a speed dial: {{extensionWaiting}}", "Speed dial edited": "Speed dial edited", "Favourites": "Favourites", - "No favourites": "No favourites found", + "No favourites": "No favourites yet", "Order by": "Order by", "A-Z": "Alphabetic A-Z", "Z-A": "Alphabetic Z-A", @@ -709,13 +670,15 @@ "New chat": "New chat", "No conversations": "No conversations", "No messages yet": "No messages yet", - "members": "members", - "You": "You", "Delete": "Delete", "Leave": "Leave", "Delete confirm": "Delete the conversation with \"{{name}}\"? Your copy of the messages is removed.", "Delete group confirm": "Delete the group \"{{name}}\" for everyone? Its messages are removed for all members.", - "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed." + "Leave confirm": "Leave the group \"{{name}}\"? You stop receiving its messages and your copy is removed.", + "Members count_one": "{{count}} member", + "Members count_other": "{{count}} members", + "Last message by you": "You: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Last calls", @@ -725,7 +688,10 @@ "Oldest": "Oldest", "Call": "Call", "Calls_one": "Call", - "Calls_other": "Calls" + "Calls_other": "Calls", + "Open history": "Open history", + "No calls yet": "No calls yet", + "New call": "New call" }, "NavBars": { "Speed dials": "Speed dials", @@ -927,7 +893,11 @@ "Parking": "Parking", "Hold": "Hold", "No parked call": "No parked calls found", - "Click and hold to take current parking in call": "Click and hold to take current parking in call" + "No parked calls": "No parked calls", + "Pick up call in parking": "Pick up the call in parking {{name}}", + "Press and hold to pick up": "Press and hold to pick up the call", + "Parking timeout soon": "The parking time is running out", + "Parking timeout very soon": "The parking time is almost over" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +975,17 @@ }, "About": { "title": "Information", - "current_version": "Current version: nethlink {{version}}", + "current_version": "Version {{version}}", "update_available": "Update available for download", - "download": "Download the update" + "NethLink by": "NethLink by {{company}}", + "Open download page": "Open download page", + "Version available": "Version {{version}} is available" }, "CommandBar": { - "Placeholder": "Search contact or dial number...", "Call": "Call", - "Chat hint": "Chat (Ctrl/⌘+Enter)" + "Chat hint": "Chat (Ctrl/⌘+Enter)", + "Search placeholder": "Search contacts or dial a number", + "Search results": "Search results" }, "ScreenShare": { "Title": "Share screen", @@ -1081,6 +1054,7 @@ "Change it now to keep using the application": "Change it now to keep using the application.", "Password expires on {{date}}": "Password expires on {{date}}", "Your password is no longer expired": "Your password is no longer expired: sign in with your current password.", - "Password change is not available right now": "Password change is not available right now. Try again later." + "Password change is not available right now": "Password change is not available right now. Try again later.", + "Change": "Change" } } diff --git a/src/renderer/public/locales/it/translations.json b/src/renderer/public/locales/it/translations.json index 84fbb3ab..40b069e7 100644 --- a/src/renderer/public/locales/it/translations.json +++ b/src/renderer/public/locales/it/translations.json @@ -2,7 +2,15 @@ "Tray": { "Quit": "Chiudi", "Hide": "Nascondi", - "Show": "Mostra" + "Show": "Mostra", + "Theme": "Tema", + "System": "Sistema", + "Light": "Chiaro", + "Dark": "Scuro", + "Check for updates": "Controlla aggiornamenti", + "Download version": "Scarica la versione {{version}}", + "Up to date title": "NethLink è aggiornato", + "Up to date description": "La versione {{version}} è la più recente." }, "Common": { "Showing": "Mostrando", @@ -87,7 +95,11 @@ "PlusOther_one": "+ {{count}} altro", "PlusOther_other": "+ {{count}} altri", "Copy": "Copia", - "Copied": "Copiato" + "Copied": "Copiato", + "Back": "Indietro", + "Clear search": "Azzera ricerca", + "Show password": "Mostra password", + "Hide password": "Nascondi password" }, "Login": { "Welcome": "Benvenuto", @@ -107,9 +119,7 @@ "Use Another Account": "Usa un altro account", "New Account title": "Ti diamo il benvenuto", "New Account description": "Accedere a NethLink con il nome utente e la password di NethVoice CTI.", - "Account List title": "Account disponibili", - "Account List description": "Scegliete un account per proseguire con NethLink.", - "Delete account": "Sei sicuro di voler eliminare {{username}}?", + "Account List description": "Gli account che hai usato su questo computer.", "Back": "Indietro", "User not authorized for NethLink": "Utente non autorizzato per NethLink", "Sign in with SSO": "Accedi con SSO", @@ -120,14 +130,23 @@ "OTP code": "Codice OTP", "OTP invalid": "Il codice inserito non è valido o è scaduto. Controlla la tua app di autenticazione e riprova.", "OTP verification failed": "Verifica OTP fallita", - "Two-Factor Authentication": "Autenticazione a Due Fattori", - "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero." + "Two-Factor Authentication": "Autenticazione a due fattori", + "Enter the 6-digit code (OTP code) from your authenticator app. If you cannot access the app, you can use one recovery OTP code.": "Inserisci il codice a 6 cifre (codice OTP) dalla tua app di autenticazione. Se non puoi accedere all'app, puoi utilizzare un codice OTP di recupero.", + "Digit": "Cifra {{number}}" }, - "Continue": "Continua" + "Continue": "Continua", + "Add account": "Aggiungi account", + "Host step description": "Inserisci l'indirizzo del tuo NethVoice CTI.", + "Credentials description": "Accedi a {{host}} con nome utente e password di NethVoice CTI.", + "Choose an account": "Scegli un account", + "Account details": "{{extension}} - {{host}}", + "Remove account": "Rimuovi account", + "Remove account description": "L'account {{username}} verrà rimosso dall'elenco. Potrai accedere di nuovo con questo account in qualsiasi momento.", + "Remove": "Rimuovi" }, "SplashScreen": { "Description": "Benvenuti in NethLink, la soluzione desktop per comunicazioni senza confini. Effettua e ricevi chiamate, salva i contatti nella tua rubrica e molto altro ancora.", - "Initializing": "Avvio applicazione..." + "Initializing": "Avvio dell'applicazione…" }, "Notification": { "contact_created_title": "Contatto creato!", @@ -209,8 +228,7 @@ "Edit contact": "Modifica contatto", "Phone number": "Phone number", "Add to Phonebook": "Add to Phonebook", - "Create new contact": "Crea nuovo contatto", - "View details": "Vedi dettagli", + "View details": "Dettagli", "Details": "Dettagli", "No contacts found": "Nessun contatto trovato", "Try changing your search": "Prova a modificare la ricerca", @@ -238,7 +256,10 @@ "Province": "Provincia", "Postal code": "CAP", "Country": "Nazione", - "Social": "Social" + "Social": "Social", + "Details contact": "Dettagli {{name}}", + "Search results": "Risultati della ricerca", + "No phone number": "Nessun numero di telefono" }, "History": { "History": "Storico", @@ -305,7 +326,8 @@ "Video call": "Videochiamata", "Enable camera permission": "Abilita il permesso della fotocamera", "Busy": "Occupato", - "Ringing": "Ringing" + "Ringing": "Ringing", + "Call number": "Chiama {{number}}" }, "Applications": { "Applications": "Applicazioni", @@ -379,14 +401,14 @@ "Upload image to continue": "Carica immagine per continuare", "Wrong file type": "Formato file errato", "Delete profile picture": "Elimina immagine profilo", - "Devices": "Audio e Video", - "IncomingCalls": "Chiamate in Arrivo", + "Devices": "Audio e video", + "IncomingCalls": "Chiamate in arrivo", "Notifications": "Notifiche", "Ringtone": "Suoneria", "Time preferences": "Preferenze di tempo", - "Login/logout preferences": "Preferenze di entrata/uscita", - "Logout from queue automatically": "Esci dalla coda automaticamente", - "Login from queue automatically": "Entra dalla coda automaticamente", + "Login/logout preferences": "Preferenze di accesso e uscita", + "Logout from queue automatically": "Esci dalle code automaticamente", + "Login from queue automatically": "Accedi alle code automaticamente", "Pause from queue automatically": "Pausa dalla coda automaticamente", "When you exit the app": "Quando esci dall'app", "When you enter the app": "Quando entri nell'app", @@ -395,9 +417,9 @@ "Do not disturb": "Non disturbare", "Available presence": "Presence disponibili", "IP Phone": "Telefono IP", - "Only nethlink": "Solo Nethlink", - "ShortcutToCall": "Scorciatoia per Chiamare", - "CommandBarShortcut": "Scorciatoia per Command Bar", + "Only nethlink": "Solo NethLink", + "ShortcutToCall": "Scorciatoia per chiamare", + "CommandBarShortcut": "Scorciatoia per la barra dei comandi", "NotificationsDescription": "Gestisci le notifiche per le funzioni di chiamata e i contenuti generati dall'AI.", "NotificationsScopeDescription": "Le impostazioni si applicano al web phone e all'app desktop.", "CallSummaryNotifications": "Notifica riassunto chiamata", @@ -414,7 +436,6 @@ "Signed in as": "Accesso effettuato come", "Switch to light theme": "Imposta tema chiaro", "Switch to dark theme": "Imposta tema scuro", - "Logout": "Disconnetti", "Make and receive phone calls": "Effettua e ricevi telefonate.", "Forward incoming calls to another phone number": "Inoltra le chiamate in entrata a un altro numero di telefono.", "Do not disturb": "Non disturbare", @@ -429,22 +450,23 @@ "Voicemail": "Voicemail", "Mobile": "Cellulare", "Cellphone": "Cellulare", - "Activate voicemail": "Attiva voicemail", + "Activate voicemail": "Abilita voicemail", "Go to NethVoice CTI": "Vai a NethVoice CTI", "Pair device": "Abbina dispositivo", "Theme": "Tema", "Settings": "Impostazioni", "Shortcut": "Scorciatoia", - "Keyboard shortcut to call": "Scorciatoia per chiamare", - "Keyboard shortcut for command bar": "Scorciatoia per Command Bar", "Shortcut title description": "Scegli una combinazione di tasti per avviare una chiamata dopo aver selezionato un testo.", "Command bar shortcut title description": "Scegli una combinazione di tasti per aprire o nascondere la Command Bar. Per attivarla, premi la scorciatoia due volte di seguito.", "Shortcut subtitle description": "La scorciatoia deve includere almeno un tasto modificatore (Ctrl, Alt, Cmd). Evita di usare scorciatoie già presenti nel sistema.", "Shortcut body description": "Tasti non consentiti: tab, capsLock, numLock, insert, esc, shift. I tasti singoli senza modificatore (es. \"6\", \"R\") non sono ammessi.", - "Preferred devices": "Impostazioni Audio e Video", + "Preferred devices": "Impostazioni audio e video", "Microphone": "Microfono", "Speaker": "Altoparlante", - "Camera": "Video" + "Camera": "Video", + "Sign out": "Esci", + "Call shortcut title": "Scorciatoia da tastiera per chiamare", + "Command bar shortcut title": "Scorciatoia da tastiera per la barra dei comandi" }, "OperatorDrawer": { "Book": "Prenota", @@ -473,99 +495,38 @@ }, "Queues": { "Queues": "Code", - "Filter queues": "Filtro code", - "Login to all queues": "Accesso a tutte le code", - "Logout from all queues": "Disconnessione da tutte le code", - "Pause on all queues": "Pausa su tutte le code", - "End pause on all queues": "Termina la pausa su tutte le code", - "Collapse all queues": "Chiudere tutte le code", - "Expand all queues": "Espandi tutte le code", "No queues": "Nessuna coda", - "You are member of no queues": "Non si è membri di nessuna coda", - "Toggle favorite queue": "Attiva/disattiva la coda preferita", - "Total calls": "Chiamate totali", "Waiting calls": "Chiamate in attesa", - "Connected calls": "Chiamate collegate", - "Active operators": "Operatori attivi", - "Logged in": "Connesso", "On a break": "In pausa", - "Logged out": "Disconnesso", - "Logout": "Logout", - "Pause": "Pausa", - "End pause": "Fine pausa", - "Lunch break": "Pausa pranzo", - "Emergency": "Emergenza", - "Backend": "Backend", - "Min wait": "Attesa minima", "Max wait": "Attesa massima", - "Queue operators": "Operatori di coda", - "Cannot retrieve queues": "Impossibile recuperare le code", - "No calls": "Nessuna chiamata", - "No operators": "Nessun operatore", - "Select a tab": "Selezionare una scheda", - "Queues management": "Gestione delle code", - "Calls": "Chiamate", - "calls": "Chiamate", - "Statistics": "Statistiche", - "Cannot retrieve calls": "Impossibile recuperare le chiamate", - "Time": "Tempo", "Queue": "In coda", - "Name": "Nome", - "Company": "Azienda", - "Details": "Dettagli", - "Outcome": "Esito", - "outcome_ANSWERED": "Risposte", - "outcome_BUSY": "Occupato", - "outcome_FAILED": "Fallite", - "outcome_NO ANSWER": "Nessuna risposta", - "outcome_RINGNOANSWER": "Nessuna risposta", - "outcome_ABANDON": "Abbandonata", - "outcome_DONE": "Gestita", - "outcome_COMPLETEAGENT": "Gestito", - "outcome_COMPLETECALLER": "Gestita", - "outcome_CONNECT": "Connesso", - "outcome_ENTERQUEUE": "In coda", - "outcome_EXITWITHTIMEOUT": "Timeout", - "outcome_EXITWITHKEY": "Uscita con IVR", - "Not managed": "Non gestito", - "Managed": "Gestito", - "All": "Tutto", - "Calls filters": "Filtri per le chiamate", - "There are no recent calls with current filters": "Non ci sono chiamate recenti con i filtri attuali", - "Last update": "Ultimo aggiornamento", - "every_time_interval_seconds": "ogni {{ timeInterval }} secondi", - "Settings": "Impostazioni", - "Cannot retrieve stats": "Impossibile recuperare le statistiche", - "Operator statistics": "Statistiche degli operatori", - "Queue statistics": "Statistiche di coda", - "Login": "Accedi", - "Last login": "Ultimo accesso", - "Last logout": "Ultimo logout", - "Answered calls": "Chiamate risposte", - "Outgoing calls": "Chiamate in uscita", - "Missed calls": "Chiamata persa", - "From last call": "Dall'ultima chiamata", - "Time at phone": "Tempo al telefono", - "Calls duration": "Durata delle chiamate", - "Minimum": "Minimo", - "Maximum": "Massimo", - "Average": "Media", - "Total incoming": "Totale in entrata", - "Total outgoing": "Totale in uscita", - "Download stats": "Scarica le statistiche", - "Logon time": "Tempo di accesso", - "Pause time": "Tempo di pausa", - "Pause on logon": "Pausa all'accesso", - "No queue calls": "Nessuna chiamata in coda", - "Call details": "Dettagli della chiamata", - "Call management": "Gestione delle chiamate", - "Duration": "Durata", - "Hold": "Trattieni", "Operator": "Operatore", - "Caller": "Chiamante", "Wait": "Attendere", - "Position": "Posizione", - "You are about to logout from the following queues": "Si sta per effettuare il logout dalle code seguenti" + "Sign in": "Accedi", + "Sign out": "Esci", + "Sign in to queue": "Accedi a {{name}}", + "Sign out of queue": "Esci da {{name}}", + "Sign in to all queues": "Accedi a tutte le code", + "Sign out of all queues": "Esci da tutte le code", + "Signed in": "Connesso", + "Signed out": "Non connesso", + "waiting_calls_count_zero": "Nessuna chiamata in attesa", + "waiting_calls_count_one": "{{count}} chiamata in attesa", + "waiting_calls_count_other": "{{count}} chiamate in attesa", + "active_of_total": "{{active}} su {{total}}", + "Static member description": "Sei un membro statico di questa coda e non puoi uscire.", + "Cannot sign in to queue": "Impossibile accedere alla coda", + "Cannot sign out of queue": "Impossibile uscire dalla coda", + "Cannot sign in to all queues": "Impossibile accedere a tutte le code", + "Cannot sign out of all queues": "Impossibile uscire da tutte le code", + "Queue not changed description": "La coda {{name}} non è cambiata. Riprova.", + "Some queues not changed description": "Alcune code non sono cambiate. Riprova.", + "No queues description": "Non sei membro di nessuna coda.", + "Queues in CTI description": "Pause, statistiche e chiamate di ogni coda sono in NethVoice CTI.", + "Open NethVoice CTI": "Apri NethVoice CTI", + "Operators": "Operatori", + "Signed-in operators": "Operatori connessi", + "No signed-in operators": "Nessun operatore connesso" }, "Lines": { "Lines management": "Gestione linee", @@ -692,7 +653,7 @@ "Speed dial edit message": "Hai appena modificato una chiamata rapida: {{estensioneAttesa}}", "Speed dial edited": "Chiamata rapida modificata", "Favourites": "Preferiti", - "No favourites": "Nessun preferito trovato", + "No favourites": "Ancora nessun preferito", "Order by": "Ordina per", "A-Z": "Alfabetico A-Z", "Z-A": "Alfabetico Z-A", @@ -709,13 +670,15 @@ "New chat": "Nuova chat", "No conversations": "Nessuna conversazione", "No messages yet": "Nessun messaggio", - "members": "membri", - "You": "Tu", "Delete": "Elimina", "Leave": "Abbandona", "Delete confirm": "Eliminare la conversazione con \"{{name}}\"? La tua copia dei messaggi viene rimossa.", "Delete group confirm": "Eliminare il gruppo \"{{name}}\" per tutti? I suoi messaggi vengono rimossi per tutti i membri.", - "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa." + "Leave confirm": "Abbandonare il gruppo \"{{name}}\"? Non riceverai più i suoi messaggi e la tua copia viene rimossa.", + "Members count_one": "{{count}} membro", + "Members count_other": "{{count}} membri", + "Last message by you": "Tu: {{body}}", + "Last message by": "{{name}}: {{body}}" }, "LastCalls": { "Last calls": "Ultime chiamate", @@ -725,7 +688,10 @@ "Oldest": "Meno recenti", "Call": "Chiama", "Calls_one": "Chiamata", - "Calls_other": "Chiamate" + "Calls_other": "Chiamate", + "Open history": "Apri cronologia", + "No calls yet": "Nessuna chiamata ancora", + "New call": "Nuova chiamata" }, "NavBars": { "Speed dial": "Chiamata rapida", @@ -927,7 +893,11 @@ "Parking": "Parcheggio", "Hold": "Tieni premuto", "No parked call": "Nessuna chiamata parcheggiata trovata", - "Click and hold to take current parking in call": "Clicca e tieni premuto per riprendere la chiamata parcheggiata" + "No parked calls": "Nessuna chiamata parcheggiata", + "Pick up call in parking": "Riprendi la chiamata nel parcheggio {{name}}", + "Press and hold to pick up": "Tieni premuto per riprendere la chiamata", + "Parking timeout soon": "Il tempo di parcheggio sta per scadere", + "Parking timeout very soon": "Il tempo di parcheggio è quasi scaduto" }, "Devices": { "Web phone": "Web phone", @@ -1005,14 +975,17 @@ }, "About": { "title": "Informazioni", - "current_version": "Versione corrente: nethlink {{version}}", + "current_version": "Versione {{version}}", "update_available": "Aggiornamento disponibile per il download", - "download": "Scarica l'aggiornamento" + "NethLink by": "NethLink di {{company}}", + "Open download page": "Apri la pagina di download", + "Version available": "È disponibile la versione {{version}}" }, "CommandBar": { - "Placeholder": "Cerca contatto o componi numero...", "Call": "Chiama", - "Chat hint": "Chat (Ctrl/⌘+Invio)" + "Chat hint": "Chat (Ctrl/⌘+Invio)", + "Search placeholder": "Cerca contatti o componi un numero", + "Search results": "Risultati della ricerca" }, "ScreenShare": { "Title": "Condividi schermo", @@ -1081,6 +1054,7 @@ "Change it now to keep using the application": "Cambiala ora per continuare a usare l'applicazione.", "Password expires on {{date}}": "La password scade il {{date}}", "Your password is no longer expired": "La password non è più scaduta: accedi con la password attuale.", - "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi." + "Password change is not available right now": "Il cambio password non è disponibile al momento. Riprova più tardi.", + "Change": "Cambia" } } diff --git a/src/renderer/src/components/Modules/NethVoice/BaseModule/Sidebar.tsx b/src/renderer/src/components/Modules/NethVoice/BaseModule/Sidebar.tsx index 44906a6d..532d1e3b 100644 --- a/src/renderer/src/components/Modules/NethVoice/BaseModule/Sidebar.tsx +++ b/src/renderer/src/components/Modules/NethVoice/BaseModule/Sidebar.tsx @@ -1,11 +1,12 @@ import { useEffect, useRef, useState } from 'react' import { faBolt as SpeedDialMenuIcon, - faPhone as MissedCallMenuIcon, + faClockRotateLeft as MissedCallMenuIcon, faInfoCircle as InfoMenuIcon, faStar as FavouriteMenuIcon, faSquareParking as ParkedCallMenuIcon, faMessage as ChatMenuIcon, + faUsers as QueuesMenuIcon, } from '@fortawesome/free-solid-svg-icons' import { useNethlinkData, useSharedState } from '@renderer/store' import { ParkingType } from '@shared/types' @@ -14,6 +15,7 @@ import { useAccount } from '@renderer/hooks/useAccount' import { difference } from 'lodash' import { useParkingModule } from '../Parking/hook/useParkingModule' import { SidebarButton } from '@renderer/components/SidebarButton' +import { t } from 'i18next' export interface SidebarProps { onChangeMenu: (menuElement: MENU_ELEMENT) => void @@ -39,7 +41,7 @@ export function Sidebar({ onChangeMenu }: SidebarProps): JSX.Element { const viewedParkedCalls = useRef([]) const [parkedPulse, setParkedPulse] = useState(false) - const { hasPermission } = useAccount() + const { hasPermission, hasMacroPermission } = useAccount() const { parkedCalls } = useParkingModule() function handleSidebarMenuSelection(menuElement: MENU_ELEMENT): void { @@ -76,12 +78,12 @@ export function Sidebar({ onChangeMenu }: SidebarProps): JSX.Element { }, [parkedCalls, selectedSidebarMenu]) return ( -
-
+
+ ) } diff --git a/src/renderer/src/components/Modules/NethVoice/Queues/QueueItem.tsx b/src/renderer/src/components/Modules/NethVoice/Queues/QueueItem.tsx new file mode 100644 index 00000000..46e575e8 --- /dev/null +++ b/src/renderer/src/components/Modules/NethVoice/Queues/QueueItem.tsx @@ -0,0 +1,284 @@ +import { useEffect, useId, useState } from 'react' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { + faArrowRightFromBracket, + faArrowRightToBracket, + faChevronDown, + faChevronUp, + faCircleNotch, +} from '@fortawesome/free-solid-svg-icons' +import { t } from 'i18next' +import { Avatar, Button } from '@renderer/components/Nethesis' +import { useNethlinkData } from '@renderer/store' +import { QueueMemberType, QueueType } from '@shared/types' +import { QueueStatusBadge } from './QueueStatusBadge' +import { getMemberStatus, isDynamicMember } from './hook/useQueuesModule' + +// mm:ss, or h:mm:ss from one hour on +export const formatWait = (seconds: number) => { + const s = Math.max(0, Math.floor(seconds)) + const h = Math.floor(s / 3600) + const mm = String(Math.floor((s % 3600) / 60)).padStart(2, '0') + const ss = String(s % 60).padStart(2, '0') + return h > 0 ? `${h}:${mm}:${ss}` : `${mm}:${ss}` +} + +// the current time, updated every second while enabled +const useNow = (enabled: boolean) => { + const [now, setNow] = useState(() => Date.now()) + useEffect(() => { + if (!enabled) return + setNow(Date.now()) + const id = setInterval(() => setNow(Date.now()), 1000) + return () => clearInterval(id) + }, [enabled]) + return now +} + +const sortMembers = (a: QueueMemberType, b: QueueMemberType) => { + const rank = { signedIn: 0, paused: 1, signedOut: 2 } + return ( + rank[getMemberStatus(a)] - rank[getMemberStatus(b)] || + (a.name || '').localeCompare(b.name || '') + ) +} + +export interface QueueItemProps { + queue: QueueType + myMember?: QueueMemberType + isPending: boolean + onToggle: (queue: QueueType) => void +} + +export const QueueItem = ({ + queue, + myMember, + isPending, + onToggle, +}: QueueItemProps) => { + const [isExpanded, setIsExpanded] = useState(false) + // for the avatar and the presence of the operators of the queue + const [operators] = useNethlinkData('operators') + const detailsId = useId() + + const waitingCallers = Object.values(queue.waitingCallers || {}).sort( + (a, b) => Number(a.position) - Number(b.position), + ) + const members = Object.values(queue.members || {}).sort(sortMembers) + // the operators that take calls or are on a break, the signed out ones are left out + const signedInMembers = members.filter((m) => m.loggedIn) + const activeOperators = members.filter( + (m) => getMemberStatus(m) === 'signedIn', + ).length + const now = useNow(isExpanded && waitingCallers.length > 0) + // the first caller in line is the one who waits the longest + const maxWait = waitingCallers.length + ? (now - waitingCallers[0].waitingTime) / 1000 + : 0 + + const isSignedIn = !!myMember?.loggedIn + const canToggle = isDynamicMember(myMember) + + return ( +
+
+ + {canToggle && ( + + )} +
+ + {isExpanded && ( +
+
+
+
+ {t('Queues.Waiting calls')} +
+
+ {waitingCallers.length} +
+
+
+
+ {t('Queues.Operators')} +
+
+ {t('Queues.active_of_total', { + active: activeOperators, + total: members.length, + })} +
+
+
+
+ {t('Queues.Max wait')} +
+
+ {formatWait(maxWait)} +
+
+
+ + {!canToggle && myMember && ( +

+ {t('Queues.Static member description')} +

+ )} + + {waitingCallers.length > 0 && ( +
+

+ {t('Queues.Waiting calls')} +

+
    + {waitingCallers.map((caller, idx) => ( +
  • + + {caller.name && caller.name !== caller.num + ? caller.name + : caller.num || t('Common.Unknown')} + {caller.name && caller.name !== caller.num && ( + + {' '} + {caller.num} + + )} + + + {formatWait((now - caller.waitingTime) / 1000)} + +
  • + ))} +
+
+ )} + +
+

+ {t('Queues.Signed-in operators')} +

+ {signedInMembers.length === 0 && ( +

+ {t('Queues.No signed-in operators')} +

+ )} +
    + {signedInMembers.map((member) => { + const username = + operators?.extensions?.[member.member]?.username + return ( +
  • + +
    + + {member.name || member.member} + + + {member.member} + +
    + {/* all of them are signed in: only a break is worth a badge */} + {getMemberStatus(member) === 'paused' && ( + + )} +
  • + ) + })} +
+
+
+ )} +
+ ) +} + +export const QueueItemSkeleton = () => ( +
+
+
+
+
+
+
+
+) diff --git a/src/renderer/src/components/Modules/NethVoice/Queues/QueueStatusBadge.tsx b/src/renderer/src/components/Modules/NethVoice/Queues/QueueStatusBadge.tsx new file mode 100644 index 00000000..cefe4c76 --- /dev/null +++ b/src/renderer/src/components/Modules/NethVoice/Queues/QueueStatusBadge.tsx @@ -0,0 +1,38 @@ +import classNames from 'classnames' +import { t } from 'i18next' +import { QueueMemberStatus } from './hook/useQueuesModule' + +// colors of the Surface/Badge and Text/Badge tokens of the design system +const STATUS_CLASSES: Record = { + signedIn: 'bg-green-100 text-green-800 dark:bg-green-700 dark:text-green-50', + paused: 'bg-amber-100 text-amber-800 dark:bg-amber-700 dark:text-amber-50', + signedOut: 'bg-gray-200 text-gray-800 dark:bg-gray-600 dark:text-gray-100', +} + +const STATUS_LABELS: Record = { + signedIn: 'Queues.Signed in', + paused: 'Queues.On a break', + signedOut: 'Queues.Signed out', +} + +export interface QueueStatusBadgeProps { + status: QueueMemberStatus + className?: string +} + +export const QueueStatusBadge = ({ + status, + className, +}: QueueStatusBadgeProps) => { + return ( + + {t(STATUS_LABELS[status])} + + ) +} diff --git a/src/renderer/src/components/Modules/NethVoice/Queues/QueuesBox.tsx b/src/renderer/src/components/Modules/NethVoice/Queues/QueuesBox.tsx new file mode 100644 index 00000000..a2a5ecac --- /dev/null +++ b/src/renderer/src/components/Modules/NethVoice/Queues/QueuesBox.tsx @@ -0,0 +1,145 @@ +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { + faArrowRightFromBracket, + faArrowRightToBracket, + faArrowUpRightFromSquare, + faCircleNotch, + faUsers as QueuesIcon, +} from '@fortawesome/free-solid-svg-icons' +import { t } from 'i18next' +import { ModuleTitle } from '@renderer/components/ModuleTitle' +import { Scrollable } from '@renderer/components/Scrollable' +import { EmptyList } from '@renderer/components/EmptyList' +import { Button } from '@renderer/components/Nethesis' +import { InlineNotification } from '@renderer/components/Nethesis/InlineNotification' +import { QueueItem, QueueItemSkeleton } from './QueueItem' +import { useQueuesModule } from './hook/useQueuesModule' + +export const QueuesBox = () => { + const { + myQueues, + getMyMember, + dynamicQueues, + isSignedInToAny, + pendingQueues, + isAllPending, + error, + toggleQueue, + toggleAllQueues, + } = useQueuesModule() + + const errorTitle = error + ? error.queue + ? t( + error.action === 'signIn' + ? 'Queues.Cannot sign in to queue' + : 'Queues.Cannot sign out of queue', + ) + : t( + error.action === 'signIn' + ? 'Queues.Cannot sign in to all queues' + : 'Queues.Cannot sign out of all queues', + ) + : '' + + return ( + <> + 0 && ( + + ) + } + /> + + {error && ( +
+ + {error.queue + ? t('Queues.Queue not changed description', { + name: error.queue.name, + }) + : t('Queues.Some queues not changed description')} + +
+ )} + {myQueues ? ( + myQueues.length > 0 ? ( + <> +
    + {myQueues.map((queue) => ( +
  • + +
  • + ))} +
+
+

+ {t('Queues.Queues in CTI description')} +

+ +
+ + ) : ( + + ) + ) : ( +
+ {Array.from({ length: 3 }).map((_, idx) => ( + + ))} +
+ )} +
+ + ) +} diff --git a/src/renderer/src/components/Modules/NethVoice/Queues/QueuesModule.tsx b/src/renderer/src/components/Modules/NethVoice/Queues/QueuesModule.tsx new file mode 100644 index 00000000..7b4f5326 --- /dev/null +++ b/src/renderer/src/components/Modules/NethVoice/Queues/QueuesModule.tsx @@ -0,0 +1,5 @@ +import { QueuesBox } from './QueuesBox' + +export const QueuesModule = () => { + return +} diff --git a/src/renderer/src/components/Modules/NethVoice/Queues/hook/useQueuesModule.ts b/src/renderer/src/components/Modules/NethVoice/Queues/hook/useQueuesModule.ts new file mode 100644 index 00000000..7dfe979a --- /dev/null +++ b/src/renderer/src/components/Modules/NethVoice/Queues/hook/useQueuesModule.ts @@ -0,0 +1,133 @@ +import { useMemo, useState } from 'react' +import { useNethlinkData, useSharedState } from '@renderer/store' +import { useLoggedNethVoiceAPI } from '@renderer/hooks/useLoggedNethVoiceAPI' +import { QueueMemberType, QueueType } from '@shared/types' +import { Log } from '@shared/utils/logger' + +export type QueueMemberStatus = 'signedIn' | 'paused' | 'signedOut' + +export const getMemberStatus = ( + member?: QueueMemberType, +): QueueMemberStatus => { + if (!member?.loggedIn) return 'signedOut' + return member.paused ? 'paused' : 'signedIn' +} + +// only a dynamic member can sign in and out, a static one is always in the queue +export const isDynamicMember = (member?: QueueMemberType) => + member?.type === 'dynamic' + +export type QueueAction = 'signIn' | 'signOut' + +export type QueueActionError = { + action: QueueAction + // the queue that failed, none when the action was on all the queues + queue?: QueueType +} + +export const useQueuesModule = () => { + const [queues, setQueues] = useNethlinkData('queues') + const [account] = useSharedState('account') + const { NethVoiceAPI } = useLoggedNethVoiceAPI() + // the queues with an action in progress + const [pendingQueues, setPendingQueues] = useState([]) + const [isAllPending, setIsAllPending] = useState(false) + const [error, setError] = useState() + + const mainExtension = account?.data?.endpoints?.mainextension?.[0]?.id + + // the queues the user is a member of, undefined until they are loaded + const myQueues = useMemo(() => { + if (!queues) return undefined + if (!mainExtension) return [] + return Object.values(queues) + .filter((queue) => !!queue?.members?.[mainExtension]) + .sort( + (a, b) => + a.name.localeCompare(b.name) || + a.queue.localeCompare(b.queue, undefined, { numeric: true }), + ) + }, [queues, mainExtension]) + + const getMyMember = (queue: QueueType) => + mainExtension ? queue.members?.[mainExtension] : undefined + + // the queues where the user can sign in or out + const dynamicQueues = useMemo( + () => (myQueues || []).filter((q) => isDynamicMember(getMyMember(q))), + [myQueues], + ) + const isSignedInToAny = dynamicQueues.some((q) => getMyMember(q)?.loggedIn) + + async function refreshQueues() { + try { + const updated = await NethVoiceAPI.AstProxy.getQueues() + setQueues((p) => ({ ...p, ...updated })) + } catch (e) { + Log.warning('cannot refresh the queues', e) + } + } + + async function changeMembership(queue: QueueType, action: QueueAction) { + if (!mainExtension) throw new Error('no main extension') + if (action === 'signIn') { + await NethVoiceAPI.AstProxy.queueMemberAdd(mainExtension, queue.queue) + } else { + await NethVoiceAPI.AstProxy.queueMemberRemove(mainExtension, queue.queue) + } + } + + async function toggleQueue(queue: QueueType) { + const action: QueueAction = getMyMember(queue)?.loggedIn + ? 'signOut' + : 'signIn' + setError(undefined) + setPendingQueues((p) => [...p, queue.queue]) + try { + await changeMembership(queue, action) + } catch (e) { + Log.warning(`cannot ${action} queue ${queue.queue}`, e) + setError({ action, queue }) + } finally { + // the socket also updates the member, the refresh covers a lost event + await refreshQueues() + setPendingQueues((p) => p.filter((q) => q !== queue.queue)) + } + } + + // sign out of all the queues when signed in to at least one, as the CTI does + async function toggleAllQueues() { + const action: QueueAction = isSignedInToAny ? 'signOut' : 'signIn' + const targets = dynamicQueues.filter((q) => + action === 'signIn' + ? !getMyMember(q)?.loggedIn + : getMyMember(q)?.loggedIn, + ) + setError(undefined) + setIsAllPending(true) + setPendingQueues(targets.map((q) => q.queue)) + const results = await Promise.allSettled( + targets.map((q) => changeMembership(q, action)), + ) + if (results.some((r) => r.status === 'rejected')) { + Log.warning(`cannot ${action} all queues`, results) + setError({ action }) + } + await refreshQueues() + setPendingQueues([]) + setIsAllPending(false) + } + + return { + myQueues, + mainExtension, + getMyMember, + dynamicQueues, + isSignedInToAny, + pendingQueues, + isAllPending, + error, + toggleQueue, + toggleAllQueues, + } +} diff --git a/src/renderer/src/components/Modules/NethlinkModules.tsx b/src/renderer/src/components/Modules/NethlinkModules.tsx index c6a03929..3412d4f9 100644 --- a/src/renderer/src/components/Modules/NethlinkModules.tsx +++ b/src/renderer/src/components/Modules/NethlinkModules.tsx @@ -3,10 +3,10 @@ import { MENU_ELEMENT } from '@shared/constants' import { useCallback, useEffect } from 'react' import { PhonebookModule, SpeeddialsModule, LastCallsModule } from '.' import { AboutModule } from './NethVoice/About/AboutModule' -import classNames from 'classnames' import { FavouritesModule } from './NethVoice/Speeddials/Favourites/FavouritesModule' import { ParkingModule } from './NethVoice/Parking/ParkingModule' import { ChatModule } from './NethVoice/Chat/ChatModule' +import { QueuesModule } from './NethVoice/Queues/QueuesModule' import { PhoneBookSearchModule } from './NethVoice/SearchResults/PhoneBookSearchModule' import { usePhonebookSearchModule } from './NethVoice/SearchResults/hook/usePhoneBookSearchModule' @@ -45,22 +45,16 @@ export const NethLinkModules = () => { return case MENU_ELEMENT.CHAT: return + case MENU_ELEMENT.QUEUES: + return default: ;<>modules } }, [showAddContactModule, showPhonebookSearchModule, selectedSidebarMenu]) return ( -
-
- -
+
+
) } diff --git a/src/renderer/src/components/SidebarButton.tsx b/src/renderer/src/components/SidebarButton.tsx index e08442d2..b5803d11 100644 --- a/src/renderer/src/components/SidebarButton.tsx +++ b/src/renderer/src/components/SidebarButton.tsx @@ -1,12 +1,13 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { IconDefinition } from '@fortawesome/fontawesome-svg-core' import classNames from 'classnames' +import { useId } from 'react' +import { CustomThemedTooltip } from './Nethesis/CustomThemedTooltip' export interface SidebarButtonProps { icon: IconDefinition - focus?: boolean - invert?: boolean - notificable?: boolean + // the name of the section: the accessible name and the tooltip of the button + label: string isSelected?: boolean className?: string hasNotification?: boolean @@ -15,68 +16,47 @@ export interface SidebarButtonProps { } export function SidebarButton({ icon, - focus, + label, className, isSelected, - notificable, hasNotification, hasPulseNotification, onClick, }: SidebarButtonProps): JSX.Element { + const tooltipId = useId() + return ( -
-
+ + + ) } diff --git a/src/renderer/src/hooks/useAccount.ts b/src/renderer/src/hooks/useAccount.ts index ea753af9..5f7fb6af 100644 --- a/src/renderer/src/hooks/useAccount.ts +++ b/src/renderer/src/hooks/useAccount.ts @@ -58,6 +58,11 @@ export const useAccount = () => { ]?.value } + // a group of permissions of the profile, such as queue_agent + const hasMacroPermission = (macroPermission: string) => { + return !!account?.data?.profile?.macro_permissions?.[macroPermission]?.value + } + const updateAccountData = async () => { try { const me = await NethVoiceAPI.User.me() @@ -84,6 +89,7 @@ export const useAccount = () => { status, isCallsEnabled, hasPermission, + hasMacroPermission, updateAccountData, } } diff --git a/src/renderer/src/hooks/usePhoneIslandEventHandler.ts b/src/renderer/src/hooks/usePhoneIslandEventHandler.ts index b30935ee..760d1f26 100644 --- a/src/renderer/src/hooks/usePhoneIslandEventHandler.ts +++ b/src/renderer/src/hooks/usePhoneIslandEventHandler.ts @@ -6,6 +6,7 @@ import { OperatorData, ParkingType, ParkingsType, + QueueMemberType, } from '@shared/types' import { Log } from '@shared/utils/logger' import { useAccount } from './useAccount' @@ -95,6 +96,25 @@ export const usePhoneIslandEventHandler = () => { })) } + // a member of a queue changed, such as an operator who signed in: the event + // is keyed by the extension of the member + function onQueueMemberUpdate(members: { [member: string]: QueueMemberType }) { + setQueues((p) => { + if (!p) return p + const updated = { ...p } + for (const member of Object.values(members)) { + const queue = updated[member.queue] + if (queue) { + updated[member.queue] = { + ...queue, + members: { ...queue.members, [member.member]: member }, + } + } + } + return updated + }) + } + function onParkingsUpdate(parkings: ParkingsType) { const parkedCalls: ParkingType[] = Object.values(parkings) setParkings(() => [...parkedCalls]) @@ -191,6 +211,7 @@ export const usePhoneIslandEventHandler = () => { saveOperators, saveSpeeddials, onQueueUpdate, + onQueueMemberUpdate, onParkingsUpdate, onMainPresence, saveLastCalls, diff --git a/src/renderer/src/hooks/usePhoneIslandEventListeners.ts b/src/renderer/src/hooks/usePhoneIslandEventListeners.ts index 6d018804..f84e8427 100644 --- a/src/renderer/src/hooks/usePhoneIslandEventListeners.ts +++ b/src/renderer/src/hooks/usePhoneIslandEventListeners.ts @@ -338,7 +338,12 @@ export const usePhoneIslandEventListener = () => { }, ), - ...eventHandler(PHONE_ISLAND_EVENTS['phone-island-queue-member-update']), + ...eventHandler( + PHONE_ISLAND_EVENTS['phone-island-queue-member-update'], + (data) => { + window.electron.send(IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, data) + }, + ), ...eventHandler( PHONE_ISLAND_EVENTS['phone-island-queue-update'], (data) => { diff --git a/src/renderer/src/pages/NethLinkPage.tsx b/src/renderer/src/pages/NethLinkPage.tsx index c3ca620f..8b838360 100644 --- a/src/renderer/src/pages/NethLinkPage.tsx +++ b/src/renderer/src/pages/NethLinkPage.tsx @@ -38,6 +38,7 @@ export function NethLinkPage({ handleRefreshConnection }: NethLinkPageProps) { const { saveOperators, onQueueUpdate, + onQueueMemberUpdate, onParkingsUpdate, saveLastCalls, saveSpeeddials, @@ -77,6 +78,10 @@ export function NethLinkPage({ handleRefreshConnection }: NethLinkPageProps) { ) window.electron.receive(IPC_EVENTS.EMIT_PARKING_UPDATE, updateParkings) window.electron.receive(IPC_EVENTS.EMIT_QUEUE_UPDATE, onQueueUpdate) + window.electron.receive( + IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, + onQueueMemberUpdate, + ) window.electron.receive(IPC_EVENTS.UPDATE_ACCOUNT, updateAccountData) window.electron.receive( IPC_EVENTS.RESPONSE_START_CALL_BY_URL, @@ -101,6 +106,7 @@ export function NethLinkPage({ handleRefreshConnection }: NethLinkPageProps) { window.electron.removeAllListeners(IPC_EVENTS.EMIT_MAIN_PRESENCE_UPDATE) window.electron.removeAllListeners(IPC_EVENTS.EMIT_PARKING_UPDATE) window.electron.removeAllListeners(IPC_EVENTS.EMIT_QUEUE_UPDATE) + window.electron.removeAllListeners(IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE) window.electron.removeAllListeners(IPC_EVENTS.UPDATE_ACCOUNT) window.electron.removeAllListeners( IPC_EVENTS.RESPONSE_START_CALL_BY_URL, @@ -139,13 +145,17 @@ export function NethLinkPage({ handleRefreshConnection }: NethLinkPageProps) { window.location.reload() } - const showUpdateAppNotification = () => { - const updateLink = 'https://nethserver.github.io/nethlink/' + // the newer release to download, found by the main process + const showUpdateAppNotification = (update?: { + version: string + url: string + }) => { setNotifications((p) => ({ ...p, system: { update: { - message: updateLink, + message: update?.url || 'https://nethserver.github.io/nethlink/', + version: update?.version, }, }, })) @@ -220,13 +230,11 @@ export function NethLinkPage({ handleRefreshConnection }: NethLinkPageProps) { }, [connection]) return ( -
-
-
-
-
+
+
+
+
+
updateAccountData()} />
diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 8036fa64..7dddceb3 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -19,7 +19,8 @@ export enum SpeeddialTypes { BASIC = 'speeddial-basic', FAVOURITES = 'speeddial-favorite', } -export const GIT_RELEASES_URL = `https://api.github.com/repos/nethserver/nethlink/releases/latest` +// every release, testing pre-releases included, newest first +export const GIT_RELEASES_URL = `https://api.github.com/repos/nethserver/nethlink/releases?per_page=50` export enum PERMISSION { CALL_FORWARD = 'call_forward', @@ -39,6 +40,7 @@ export enum MENU_ELEMENT { PARKED_CALLS, ABOUT, CHAT, + QUEUES, } export enum IPC_EVENTS { LOGIN = 'LOGIN', @@ -82,6 +84,7 @@ export enum IPC_EVENTS { EMIT_CALL_END = 'EMIT_CALL_END', EMIT_MAIN_PRESENCE_UPDATE = 'EMIT_MAIN_PRESENCE_CHANGE', EMIT_QUEUE_UPDATE = 'EMIT_QUEUE_UPDATE', + EMIT_QUEUE_MEMBER_UPDATE = 'EMIT_QUEUE_MEMBER_UPDATE', EMIT_PARKING_UPDATE = 'EMIT_PARKING_UPDATE', TRANSFER_CALL = 'TRANSFER_CALL', CHANGE_DEFAULT_DEVICE = 'CHANGE_DEFAULT_DEVICE', diff --git a/src/shared/types.ts b/src/shared/types.ts index 70491904..a5b018e7 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -395,33 +395,49 @@ export type ParkingsType = { [parkId: string]: ParkingType } -export type QueuesType = { - [username: string]: { - name: string - queue: string - members: { - [user: string]: { - callsTakenCount: number - lastCallTimestamp: number - lastPausedInReason: string - lastPausedInTimestamp: number - lastPausedOutTimestamp: number - loggedIn: boolean - member: string - name: string - paused: boolean - queue: string - type: string - } - } - avgHoldTime: string - avgTalkTime: string - serviceLevelPercentage: string - serviceLevelTimePeriod: string - waitingCallers: object +export type QueueMemberType = { + callsTakenCount: number + lastCallTimestamp: number + lastPausedInReason: string + lastPausedInTimestamp: number + lastPausedOutTimestamp: number + loggedIn: boolean + member: string + name: string + paused: boolean + queue: string + // a static member is always in the queue, only a dynamic one can sign in and out + type: 'static' | 'dynamic' | string +} + +export type QueueWaitingCallerType = { + name: string + num: string + position: string | number + queue: string + // when the caller entered the queue, in milliseconds + waitingTime: number +} + +export type QueueType = { + name: string + queue: string + members: { + [member: string]: QueueMemberType + } + avgHoldTime: string + avgTalkTime: string + serviceLevelPercentage: string + serviceLevelTimePeriod: string + waitingCallers: { + [channel: string]: QueueWaitingCallerType } } +export type QueuesType = { + [queueId: string]: QueueType +} + export type PageType = { query: string page: keyof typeof PAGES | 'main' @@ -564,6 +580,8 @@ export type NotificationData = { export type NotificationItem = { message: string + // the newer release found, such as 1.6.2 or 1.6.2-testing.1 + version?: string } export type PhoneIslandData = { diff --git a/src/shared/useNethVoiceAPI.ts b/src/shared/useNethVoiceAPI.ts index b3e0dbbf..dbf78e0d 100644 --- a/src/shared/useNethVoiceAPI.ts +++ b/src/shared/useNethVoiceAPI.ts @@ -265,6 +265,17 @@ export const useNethVoiceAPI = ( extensions: async (): Promise => await _GET(buildApiPath('/astproxy/extensions')), getQueues: async () => await _GET(buildApiPath('/astproxy/queues')), + // sign the extension in to (or out of) a queue, as a dynamic member + queueMemberAdd: async (endpointId: string, queueId: string) => + await _POST(buildApiPath('/astproxy/queuemember_add'), { + endpointId, + queueId, + }), + queueMemberRemove: async (endpointId: string, queueId: string) => + await _POST(buildApiPath('/astproxy/queuemember_remove'), { + endpointId, + queueId, + }), getParkings: async () => await _GET(buildApiPath('/astproxy/parkings')), pickupParking: async (parkInformation: any) => await _POST(buildApiPath('/astproxy/pickup_parking'), parkInformation), From 15a3a837e2157c50d2ccf80fe5f70a7dcf5b2470 Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 20 Nov 2026 16:47:22 +0100 Subject: [PATCH 2/9] feat(splash): animate the NethLink logo The splash screen draws the NethLink symbol like a signature, then the letters appear one after the other. The About page repeats the symbol animation. Both are skipped when the system asks to reduce motion. Assisted-by: Claude Code:Sonnet 5.5 --- .../Modules/NethVoice/About/AboutModule.tsx | 82 +++++++++-------- src/renderer/src/components/SplashLogo.css | 76 ++++++++++++++++ src/renderer/src/components/SplashLogo.tsx | 88 +++++++++++++++++++ src/renderer/src/pages/SplashScreenPage.tsx | 52 +++++++---- 4 files changed, 237 insertions(+), 61 deletions(-) create mode 100644 src/renderer/src/components/SplashLogo.css create mode 100644 src/renderer/src/components/SplashLogo.tsx diff --git a/src/renderer/src/components/Modules/NethVoice/About/AboutModule.tsx b/src/renderer/src/components/Modules/NethVoice/About/AboutModule.tsx index 32c8db70..1626a9ee 100644 --- a/src/renderer/src/components/Modules/NethVoice/About/AboutModule.tsx +++ b/src/renderer/src/components/Modules/NethVoice/About/AboutModule.tsx @@ -1,28 +1,25 @@ -import NethLinkLogoSimple from '../../../../assets/LogoBlueSimple.svg' -import NethLinkLogoSimpleDark from '../../../../assets/LogoBlueSimpleDark.svg' import { t } from 'i18next' +import { Trans } from 'react-i18next' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowUpRightFromSquare as DownloadIcon } from '@fortawesome/free-solid-svg-icons' import { Button } from '@renderer/components/Nethesis' import { useSharedState } from '@renderer/store' -import { usePageCtx } from '@renderer/contexts/pageContext' import { Scrollable } from '@renderer/components/Scrollable' import { ModuleTitle } from '@renderer/components/ModuleTitle' -import { parseThemeToClassName } from '@renderer/utils' +import { NethLinkMark } from '@renderer/components/SplashLogo' export interface AboutBoxProps {} export function AboutModule() { - const page = usePageCtx() - const [theme] = useSharedState('theme') const [notifications] = useSharedState('notifications') const [account] = useSharedState('account') - // Donwload NethLink release page - const releasePage = 'https://nethserver.github.io/nethlink/' - + // the page of the newer release, or the download page of NethLink + const update = notifications?.system?.update const onDownloadButtonClick = () => { - window.api.openExternalPage(releasePage) + window.api.openExternalPage( + update?.message || 'https://nethserver.github.io/nethlink/', + ) } const openCompanyUrl = () => { @@ -35,45 +32,46 @@ export function AboutModule() { <> -
-
- +
+
+
- NethLink by{' '} - - {account?.companyName} - + + ), + }} + />
-
+
{t('About.current_version', { version: window.api.appVersion })}
{!!notifications?.system?.update && ( -
- - {t('About.update_available')} +
+ + {update?.version + ? t('About.Version available', { version: update.version }) + : t('About.update_available')} -
)} diff --git a/src/renderer/src/components/SplashLogo.css b/src/renderer/src/components/SplashLogo.css new file mode 100644 index 00000000..dd9089c3 --- /dev/null +++ b/src/renderer/src/components/SplashLogo.css @@ -0,0 +1,76 @@ +/* the symbol is traced like a signature, then filled */ +.splash-logo-mark { + stroke-dasharray: 1; + stroke-dashoffset: 1; + fill-opacity: 0; + animation: + splash-logo-trace 700ms cubic-bezier(0.65, 0, 0.35, 1) forwards, + splash-logo-fill 400ms ease-out 500ms forwards; +} + +/* then the letters rise into place, one after the other */ +.splash-logo-letter { + opacity: 0; + transform: translateY(4px); + animation: splash-logo-letter 300ms ease-out forwards; +} + +.splash-fade-in { + opacity: 0; + animation: splash-fade-in 400ms ease-out forwards; +} + +/* an indeterminate progress bar */ +.splash-progress-bar { + animation: splash-progress 1400ms ease-in-out infinite; +} + +@keyframes splash-logo-trace { + to { + stroke-dashoffset: 0; + } +} + +@keyframes splash-logo-fill { + to { + fill-opacity: 1; + stroke-opacity: 0; + } +} + +@keyframes splash-logo-letter { + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes splash-fade-in { + to { + opacity: 1; + } +} + +@keyframes splash-progress { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(250%); + } +} + +@media (prefers-reduced-motion: reduce) { + .splash-logo-mark, + .splash-logo-letter, + .splash-fade-in { + animation: none; + opacity: 1; + transform: none; + fill-opacity: 1; + stroke-opacity: 0; + } + .splash-progress-bar { + animation: none; + } +} diff --git a/src/renderer/src/components/SplashLogo.tsx b/src/renderer/src/components/SplashLogo.tsx new file mode 100644 index 00000000..79939d34 --- /dev/null +++ b/src/renderer/src/components/SplashLogo.tsx @@ -0,0 +1,88 @@ +import classNames from 'classnames' +import './SplashLogo.css' + +// the NethLink symbol: two linked rings +const MARK_PATH = + 'M8.00413 15.5147C9.90049 13.6147 11.9308 12.8222 14.2143 13.0972C16.07 13.3649 17.7785 14.2587 19.0566 15.6305L30.1488 26.7047C34.184 30.7399 38.136 26.7879 38.136 26.7879L22.8746 11.5266C20.1278 8.77974 16.9937 7.42623 13.5593 7.48413C10.0706 7.58908 7.04509 8.9824 4.25122 11.7618C1.45734 14.5412 0.114692 17.5196 0.006122 20.9649C-0.102448 24.4102 1.23297 27.595 4.0196 30.3997L19.281 45.661L23.2293 41.7127L8.10184 26.5853C6.72889 25.3 5.84388 23.5785 5.59749 21.7141C5.31883 19.4377 6.10777 17.4111 8.00413 15.5147ZM41.8527 34.4964C39.9527 36.3928 37.9225 37.1853 35.6425 36.9103C33.7885 36.6521 32.0792 35.7656 30.8003 34.3987L19.7044 23.3028C15.6692 19.2712 11.7172 23.2232 11.7172 23.2232L26.9786 38.4846C29.729 41.2314 32.8595 42.5849 36.2939 42.527C39.7863 42.422 42.8081 41.0251 45.602 38.2457C48.3959 35.4663 49.7385 32.4915 49.8399 29.0462C49.9412 25.6009 48.6203 22.4162 45.8336 19.6368L30.5723 4.36816L26.6239 8.32374L41.755 23.4512C43.1227 24.7326 44.006 26.4468 44.2557 28.3043C44.5199 30.5734 43.7491 32.6 41.8527 34.4964Z' + +// the letters of "nethlink", from left to right +const LETTER_PATHS = [ + 'M77.7387 12.1271C79.997 12.1271 81.6762 12.8509 82.8705 14.3854C83.8194 15.6437 84.3086 17.1892 84.2565 18.7644V31.9665C84.2565 36.7689 88.9612 36.7689 88.9612 36.7689V18.6051C88.9612 15.348 87.9045 12.6627 85.8236 10.6433C83.6847 8.63114 81.0465 7.65039 77.7387 7.65039C74.4309 7.65039 71.8506 8.61305 69.7407 10.6035C67.6308 12.594 66.5198 15.2756 66.5198 18.5943V36.7689H71.2245V18.7644C71.1722 17.1857 71.6669 15.6375 72.625 14.3817C73.8048 12.8654 75.4804 12.1271 77.7387 12.1271Z', + 'M120.356 23.2916C120.356 18.4349 119.213 14.606 116.958 11.8556C114.703 9.10512 111.435 7.66113 107.375 7.66113C103.314 7.66113 99.9233 9.10874 97.4262 12.0039C95.0702 14.7291 93.876 18.1961 93.876 22.3036C93.876 26.556 94.9617 30.0013 97.1005 32.5563C99.4601 35.3465 102.92 36.7616 107.375 36.7616C110.882 36.7616 113.759 35.8604 115.93 34.0763C117.772 32.5454 119.187 30.327 120.088 27.4824L120.349 26.6682H115.322L115.203 27.1531C114.83 28.8199 113.842 30.2851 112.438 31.2571C110.942 32.2603 109.172 32.7737 107.371 32.7264C104.548 32.7264 102.41 31.8578 100.857 30.0592C99.4999 28.4958 98.7616 26.4402 98.6639 23.9069H120.36L120.356 23.2916ZM107.375 11.6891C110.01 11.6891 112.004 12.5649 113.491 14.3563C114.743 15.8582 115.424 17.8016 115.529 20.1286H98.7435C99.0526 18.0216 99.9367 16.0405 101.299 14.4033C102.039 13.5196 102.971 12.816 104.024 12.3458C105.077 11.8755 106.223 11.6509 107.375 11.6891Z', + 'M133.815 12.3842H140V7.82791H133.486V4.80242C133.486 0 128.781 0 128.781 0V7.82791H124.25V12.3842H128.767V25.8252C128.767 29.1439 129.852 31.8328 131.988 33.8196C134.123 35.8065 136.71 36.7691 139.986 36.7691V32.3069C137.727 32.3069 136.059 31.5831 134.868 30.0486C133.913 28.7914 133.42 27.2439 133.471 25.666V12.3842H133.815Z', + 'M165.46 10.6544C163.321 8.64219 160.69 7.66144 157.382 7.66144C154.827 7.66144 152.678 8.25858 150.868 9.47094V0H146.163V36.8089H150.868V18.7646C150.817 17.1866 151.31 15.6391 152.265 14.3819C153.456 12.8656 155.128 12.1273 157.39 12.1273C159.651 12.1273 161.323 12.8511 162.518 14.3856C163.467 15.6439 163.956 17.1894 163.904 18.7646V32.0101C163.904 36.8089 168.608 36.8089 168.608 36.8089V18.6053C168.605 15.3337 167.544 12.6665 165.46 10.6544Z', + 'M174.924 0V32.0101C174.924 36.8089 179.629 36.8089 179.629 36.8089V0H174.924Z', + 'M188.777 5.81581C190.104 5.81581 191.18 4.73994 191.18 3.41279C191.18 2.08564 190.104 1.00977 188.777 1.00977C187.45 1.00977 186.374 2.08564 186.374 3.41279C186.374 4.73994 187.45 5.81581 188.777 5.81581Z', + 'M191.09 8.85156V36.8084H186.494V8.85156H191.09Z', + 'M208.91 12.1271C211.172 12.1271 212.847 12.8509 214.045 14.3854C214.993 15.6445 215.482 17.1894 215.431 18.7644V31.9665C215.431 36.7689 220.136 36.7689 220.136 36.7689V18.6051C220.136 15.348 219.076 12.6627 216.995 10.6433C214.856 8.63114 212.218 7.65039 208.91 7.65039C205.602 7.65039 203.022 8.61305 200.912 10.6035C198.802 12.594 197.691 15.2756 197.691 18.5943V36.7689H202.396V18.7644C202.344 17.1864 202.838 15.6389 203.793 14.3817C204.98 12.8654 206.652 12.1271 208.91 12.1271Z', + 'M238.658 19.8466L249.229 10.1549H243.352L231.185 21.8081V0H226.48V32.0101C226.48 36.8089 231.185 36.8089 231.185 36.8089V26.7047L235.307 22.8902L244.434 36.8089H250L238.658 19.8466Z', +] + +export interface SplashLogoProps { + className?: string +} + +// the NethLink logo, drawn like a signature: the symbol is traced and filled, +// then the letters appear one after the other +export const SplashLogo = ({ className }: SplashLogoProps) => { + return ( + + + {LETTER_PATHS.map((d, idx) => ( + + ))} + + ) +} + +export interface NethLinkMarkProps { + className?: string +} + +// only the NethLink symbol, traced like a signature and then filled +export const NethLinkMark = ({ className }: NethLinkMarkProps) => { + return ( + + + + ) +} diff --git a/src/renderer/src/pages/SplashScreenPage.tsx b/src/renderer/src/pages/SplashScreenPage.tsx index 2d453a64..cacd0b28 100644 --- a/src/renderer/src/pages/SplashScreenPage.tsx +++ b/src/renderer/src/pages/SplashScreenPage.tsx @@ -1,14 +1,13 @@ import { useInitialize } from '@renderer/hooks/useInitialize' import darkBackground from '../assets/splashScreenDarkBackground.svg' import lightBackground from '../assets/splashScreenLightBackground.svg' -import darkHeader from '../assets/nethlinkDarkHeader.svg' -import lightHeader from '../assets/nethlinkLightHeader.svg' import darkLogo from '../assets/nethvoiceDarkIcon.svg' import lightLogo from '../assets/nethvoiceLightIcon.svg' import { t } from 'i18next' import { useState } from 'react' import { IPC_EVENTS } from '@shared/constants' import { ConnectionErrorDialog } from '@renderer/components' +import { SplashLogo } from '@renderer/components/SplashLogo' export interface SplashScreenPageProps { themeMode: string @@ -32,7 +31,7 @@ export function SplashScreenPage({ themeMode }: SplashScreenPageProps) { } return ( -
+
)} -
- -

+

+ +

{t('SplashScreen.Description')}

-

- {t('SplashScreen.Initializing')} -

+
+

+ {t('SplashScreen.Initializing')} +

+
+
+
+
-
+
NethVoice + /> +

+ v{window.api.appVersion} +

-

- v{window.api.appVersion} -

From 536dac80f2f7cf0abad6e9bdbf85e9f7968a8f5f Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 20 Nov 2026 16:47:22 +0100 Subject: [PATCH 3/9] feat(tray): add theme and updates to the tray menu The tray menu shows the NethLink version as a title, switches the theme and checks for updates, with an icon for each item. The update check compares versions instead of looking for a different one: a stable installation looks at the promoted stable releases only, a testing one at the testing and stable releases, and the About page links to the release found. Assisted-by: Claude Code:Sonnet 5.5 --- public/tray/blankDark.png | Bin 0 -> 310 bytes public/tray/blankDark@2x.png | Bin 0 -> 310 bytes public/tray/blankLight.png | Bin 0 -> 310 bytes public/tray/blankLight@2x.png | Bin 0 -> 310 bytes public/tray/blankTemplate.png | Bin 0 -> 310 bytes public/tray/blankTemplate@2x.png | Bin 0 -> 310 bytes public/tray/checkDark.png | Bin 0 -> 422 bytes public/tray/checkDark@2x.png | Bin 0 -> 492 bytes public/tray/checkLight.png | Bin 0 -> 481 bytes public/tray/checkLight@2x.png | Bin 0 -> 532 bytes public/tray/checkTemplate.png | Bin 0 -> 394 bytes public/tray/checkTemplate@2x.png | Bin 0 -> 457 bytes public/tray/devtoolsDark.png | Bin 0 -> 503 bytes public/tray/devtoolsDark@2x.png | Bin 0 -> 705 bytes public/tray/devtoolsLight.png | Bin 0 -> 620 bytes public/tray/devtoolsLight@2x.png | Bin 0 -> 826 bytes public/tray/devtoolsTemplate.png | Bin 0 -> 481 bytes public/tray/devtoolsTemplate@2x.png | Bin 0 -> 644 bytes public/tray/downloadDark.png | Bin 0 -> 505 bytes public/tray/downloadDark@2x.png | Bin 0 -> 728 bytes public/tray/downloadLight.png | Bin 0 -> 614 bytes public/tray/downloadLight@2x.png | Bin 0 -> 932 bytes public/tray/downloadTemplate.png | Bin 0 -> 496 bytes public/tray/downloadTemplate@2x.png | Bin 0 -> 707 bytes public/tray/hideDark.png | Bin 0 -> 701 bytes public/tray/hideDark@2x.png | Bin 0 -> 821 bytes public/tray/hideLight.png | Bin 0 -> 830 bytes public/tray/hideLight@2x.png | Bin 0 -> 1206 bytes public/tray/hideTemplate.png | Bin 0 -> 516 bytes public/tray/hideTemplate@2x.png | Bin 0 -> 768 bytes public/tray/quitDark.png | Bin 0 -> 513 bytes public/tray/quitDark@2x.png | Bin 0 -> 807 bytes public/tray/quitLight.png | Bin 0 -> 599 bytes public/tray/quitLight@2x.png | Bin 0 -> 987 bytes public/tray/quitTemplate.png | Bin 0 -> 492 bytes public/tray/quitTemplate@2x.png | Bin 0 -> 742 bytes public/tray/showDark.png | Bin 0 -> 496 bytes public/tray/showDark@2x.png | Bin 0 -> 1246 bytes public/tray/showLight.png | Bin 0 -> 623 bytes public/tray/showLight@2x.png | Bin 0 -> 1585 bytes public/tray/showTemplate.png | Bin 0 -> 495 bytes public/tray/showTemplate@2x.png | Bin 0 -> 728 bytes public/tray/themeDark.png | Bin 0 -> 477 bytes public/tray/themeDark@2x.png | Bin 0 -> 713 bytes public/tray/themeLight.png | Bin 0 -> 570 bytes public/tray/themeLight@2x.png | Bin 0 -> 866 bytes public/tray/themeTemplate.png | Bin 0 -> 470 bytes public/tray/themeTemplate@2x.png | Bin 0 -> 677 bytes public/tray/updateDark.png | Bin 0 -> 542 bytes public/tray/updateDark@2x.png | Bin 0 -> 810 bytes public/tray/updateLight.png | Bin 0 -> 685 bytes public/tray/updateLight@2x.png | Bin 0 -> 1047 bytes public/tray/updateTemplate.png | Bin 0 -> 522 bytes public/tray/updateTemplate@2x.png | Bin 0 -> 763 bytes .../classes/controllers/NethLinkController.ts | 4 +- .../classes/controllers/TrayController.ts | 131 ++++++++++++++++-- src/main/lib/ipcEvents.ts | 14 ++ src/main/main.ts | 31 ++++- src/shared/utils/version.ts | 65 +++++++++ 59 files changed, 227 insertions(+), 18 deletions(-) create mode 100644 public/tray/blankDark.png create mode 100644 public/tray/blankDark@2x.png create mode 100644 public/tray/blankLight.png create mode 100644 public/tray/blankLight@2x.png create mode 100644 public/tray/blankTemplate.png create mode 100644 public/tray/blankTemplate@2x.png create mode 100644 public/tray/checkDark.png create mode 100644 public/tray/checkDark@2x.png create mode 100644 public/tray/checkLight.png create mode 100644 public/tray/checkLight@2x.png create mode 100644 public/tray/checkTemplate.png create mode 100644 public/tray/checkTemplate@2x.png create mode 100644 public/tray/devtoolsDark.png create mode 100644 public/tray/devtoolsDark@2x.png create mode 100644 public/tray/devtoolsLight.png create mode 100644 public/tray/devtoolsLight@2x.png create mode 100644 public/tray/devtoolsTemplate.png create mode 100644 public/tray/devtoolsTemplate@2x.png create mode 100644 public/tray/downloadDark.png create mode 100644 public/tray/downloadDark@2x.png create mode 100644 public/tray/downloadLight.png create mode 100644 public/tray/downloadLight@2x.png create mode 100644 public/tray/downloadTemplate.png create mode 100644 public/tray/downloadTemplate@2x.png create mode 100644 public/tray/hideDark.png create mode 100644 public/tray/hideDark@2x.png create mode 100644 public/tray/hideLight.png create mode 100644 public/tray/hideLight@2x.png create mode 100644 public/tray/hideTemplate.png create mode 100644 public/tray/hideTemplate@2x.png create mode 100644 public/tray/quitDark.png create mode 100644 public/tray/quitDark@2x.png create mode 100644 public/tray/quitLight.png create mode 100644 public/tray/quitLight@2x.png create mode 100644 public/tray/quitTemplate.png create mode 100644 public/tray/quitTemplate@2x.png create mode 100644 public/tray/showDark.png create mode 100644 public/tray/showDark@2x.png create mode 100644 public/tray/showLight.png create mode 100644 public/tray/showLight@2x.png create mode 100644 public/tray/showTemplate.png create mode 100644 public/tray/showTemplate@2x.png create mode 100644 public/tray/themeDark.png create mode 100644 public/tray/themeDark@2x.png create mode 100644 public/tray/themeLight.png create mode 100644 public/tray/themeLight@2x.png create mode 100644 public/tray/themeTemplate.png create mode 100644 public/tray/themeTemplate@2x.png create mode 100644 public/tray/updateDark.png create mode 100644 public/tray/updateDark@2x.png create mode 100644 public/tray/updateLight.png create mode 100644 public/tray/updateLight@2x.png create mode 100644 public/tray/updateTemplate.png create mode 100644 public/tray/updateTemplate@2x.png create mode 100644 src/shared/utils/version.ts diff --git a/public/tray/blankDark.png b/public/tray/blankDark.png new file mode 100644 index 0000000000000000000000000000000000000000..aac45b501304c80fe153f2cdacec1115e4ff6d8b GIT binary patch literal 310 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx?BpA#)4xIr~3dtTpz6=aiY77hwEes65fIKYk@7@Am_SXvnvX&V?= z85qnnysCwwAvZrIGp!Q0hW9zS(|{T@;5L+G=B5^xB<2?2*0ZD1#}lZB$J50zgyVX0 bf&wp)XTZRCd{t{7kj3EX>gTe~DWM4fc<4*_ literal 0 HcmV?d00001 diff --git a/public/tray/blankDark@2x.png b/public/tray/blankDark@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..4bdb4bfce8d26d32b1ced921b45a4fa636013842 GIT binary patch literal 310 zcmeAS@N?(olHy`uVBq!ia0vp^3Lwk~Bp9L@-6KJqWRD z45bDP46hOx7_4S6Fo+k-*%fF5lwc|e@(X5QD4TrN0>n%5c6VW5yxS$b1ju7A@$_|N zf5k1rXUOz1SA!EMq*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{`2TtqhE`4GgRd z4CWbL)k4vbo1c=IR*74~`<&cqKn)sj8%i>BQ;SOya|>|m*-`1^3Dm>m>Eal|aXmRf a;tr6vfPpblwbmWTV(@hJb6Mw<&;$TA*-FCz literal 0 HcmV?d00001 diff --git a/public/tray/blankLight.png b/public/tray/blankLight.png new file mode 100644 index 0000000000000000000000000000000000000000..e3e3b14deb2a0461e87bfafb194f968efdc13f00 GIT binary patch literal 310 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx?BpA#)4xIr~3dtTpz6=aiY77hwEes65fIKYk@7@Am_SXvnvYa19? z85mf&-J6G^AvZrIGp!Q022bfUC7=ckxD6$lxv9k^iMa*1^~mwL{{`yd@pN$v;kcfh bpuh{{889#&U)9 z45bDP46hOx7_4S6Fo+k-*%fF5lwc|e@(X5QD4TrN0>n%5c6VW5yxS$b1ju7A@$_|N zf5k1rXUN=^B{3f;q*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{`2TtqhE{4GgRd z3@qI4%|p?Uo1c=IR*74Kr*xVUP=f~ChLX(O)Z&uF+ydNs5Cx;Tb#Tu)Ar axC7)ZU|>vCt#t>o7(8A5T-G@yGywq2MM*;d literal 0 HcmV?d00001 diff --git a/public/tray/blankTemplate.png b/public/tray/blankTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..3391e2959ac2a1dabcc05f3cfe5a8f77440b4676 GIT binary patch literal 310 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx?BpA#)4xIr~3dtTpz6=aiY77hwEes65fIKYk@7@Am_SXvnvY8x0> z85pd;d44;JhTQy=%(P0}8t%1}a|1PKz-=hW%uOvWNz5(4t*3Kh*cG529#0p?5RU7~ b2@1SGo&f{n@l~yTKo*0itDnm{r-UW|SLRKi literal 0 HcmV?d00001 diff --git a/public/tray/blankTemplate@2x.png b/public/tray/blankTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..03e8952ffede0ebc7ceb75580e1cffb7a530c602 GIT binary patch literal 310 zcmeAS@N?(olHy`uVBq!ia0vp^3Lwk~Bp9L@-6KJqWRD z45bDP46hOx7_4S6Fo+k-*%fF5lwc|e@(X5QD4TrN0>n%5c6VW5yxS$b1ju7A@$_|N zf5k1rXULe5Qn?u@q*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{`2Ttqcsc4GgRd z4A$Q~za2$GZhlH;S|x4`_gc!iff_X6Hk4%MrWThZ<`&@A(>XEh3Q!M^r;B3<$Mxg{ ai90~v0tUuJ)mnETi^0>?&t;ucLK6TK*Gy~x literal 0 HcmV?d00001 diff --git a/public/tray/checkDark.png b/public/tray/checkDark.png new file mode 100644 index 0000000000000000000000000000000000000000..989e021abaa8c4e98f65ff7821b25d9350caac88 GIT binary patch literal 422 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`fmR1Ia z+6D$z1_tYIp5Kn5AvZrIGp!Q0hI=jL+&~Q)a2rZ8b5n~;5_1c1>*<^rb_J-X)YHW= zMC1I@2?qrm3^-UkPhDhd61_R8?#(F`v(0uTN?Bioe;B+eJUquEd*>}7=D+H8{(sr| zj6CzFxlh-e(0PZYPf2;g&48ZV<30C2G(k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*Gi3UhtHB8rQY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}2cptHiD0eNOH)pau=N4JDbmsl_FUxdpiO?5Ond1nSxC>EamT zas2HRZ@wl25!Za-^h57@k`uj^+Ei!kus;6OVu3&s_m`uchIjgA?JNG}8J&4v{>anm zlUVrO_FVAv^WWRUotnWKZZoe-zu?76-zJWHP2MKXe5ShPE;?du+gg{is*10wY-F4+ zAZ{}+O~>e=(4uARRe8p)dUD$?)MCY3%XXH4{{(TAhArXcL_-s4*-5@A*gxRqlJAwJVtu9IWPCvrk9@dV|5!)z4*} HQ$iB}1R-Rwl8~uDqc%{RKuM4v&`L&&S=u+R z-?G%Qx|VTc{!+)?{y;g#ByV>Yh7ML)4KYk@7@Am_SXvnvX&V?=85qnn zysCwwAvZrIGp!Q0hW9zS(|{T@;5L+G=B5^xB<2?2*0ZD1#}lY0%+tj&MB?()zMFgv z3Op>DMQas){EyG}_7srwxwHM|7m4J$77OXz-Qfqp)$?*M8RDhcunW?vL>4nJFhzjz>|^^j0|nVjJbhi+ zUvZ1@88WwJNz4Zdsg}4#l%ynCn;KfEmi|wk^5TzS u)gQAbbsPV)Y>`j-!&LKIHMBAR8B1j@YgTEb@^heL7(8A5T-G@yGywpE44}FI literal 0 HcmV?d00001 diff --git a/public/tray/checkTemplate.png b/public/tray/checkTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..f0d91e6d4dbdbf4066473fdc9be45e2401b6ecc3 GIT binary patch literal 394 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2T7~<8&k>)@8(QmA7i?(Z;1c6~!1#LQ1c6qvs| zG1c~^jmGgpqY0TD3dU>#R;^QQ($|KRy%Nq&-TdQdvE3=g6C9$<9EXguftE0My85}S Ib4q9e00Pi(HUIzs literal 0 HcmV?d00001 diff --git a/public/tray/checkTemplate@2x.png b/public/tray/checkTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..544f8a5c3f0c329776887d3bd84960cae0114d20 GIT binary patch literal 457 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*Gi1z2sRRkBmbgZgq$HN4S|t~y0x1R~10yqCLqlC7gAhX#D-%mA0|RXX z10cz{?g%rAhTQy=%(P0}8Y({5><4PlfZI@#nVVW%l9*e7TaW&;*aV=S8J;eVAs)xy zPBP?cHsEoUe|6)D!Cs$szXMY_LSz=UztY?lTJ$17NnnwXSyEQrGLQfE>f02xx&6HM zKR(u~o*!-L-mDN({fK#DRs5dA(T@^)?(_Fld#w^Z{Opx#lYp4o(Z|_J%oEGfLjK;p ztSj*9+F8LqG+ UlG6DVKsPdYy85}Sb4q9e0F1+s?*IS* literal 0 HcmV?d00001 diff --git a/public/tray/devtoolsDark.png b/public/tray/devtoolsDark.png new file mode 100644 index 0000000000000000000000000000000000000000..65c99f890d617c7c384d8002c12dfef85dc9a402 GIT binary patch literal 503 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2pfg z+6D$z1_pQQmK;LSkei>9nO2Eg!y09oI-mv(xD6$lxv9k^iMa*1_53!oT?o{3%+tj& zMC1I@35I-(fg-N`hO9HAQbHC@m@#2Rh}PvBjhEQoI4s=EqK%G WJooyk4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V^=njSg8aQQY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}2r2< z1_o9J2GyMF%TP4r=BH$)RpQpb6(W8Ls6hj6LrG?CYH>+oZUJsRv5sb<3=E7DJY5_^ zJdVGeV(2ZCD9|?lt}u(~)K+$`OdfHjM(y~E`8bbprT3d z`pxG@nbk#}+XV6Nxqj9~mSe*i?+2@N(pD8c68n7TgZ7v9a>4$k<~J72lfM?huD63l z?8XwqxC{&3q|3rzH#dKGwSFZoXune3EZE<0LFS@=h1TpjH@>gWce%4=xtiu8jtR@Y z-`PBk`PN6DqXER1rT^SS+(E&DOaM>nonELi;Quf&q%%h_LR3xsy2 z$G@FY&z@MmvSmN_AJ)od!LrM8M`qo>GT-jx>*Mb#maDD%_g<)c^Gs*X;0JxSTi>oe znZlzgbLz&oQjNzibe8W?O>9eLxHjWi*XBFFdm?Y`QC@gslNImwHT_;Qe!j~4z2}Lw zjN=r~8TJc%|MUj(F@?=|UZ#-v^O4qlcK^oWU7^wWtFC;W+TmOk5}~-SYHC>3>S;e0 cw|?WFDiq`OkLz71Fg_VPUHx3vIVCg!05m=nt^fc4 literal 0 HcmV?d00001 diff --git a/public/tray/devtoolsLight.png b/public/tray/devtoolsLight.png new file mode 100644 index 0000000000000000000000000000000000000000..55202f814ea8467160a67347d67864576aff3009 GIT binary patch literal 620 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZOz4_=LCuX>-TGfkpS%ZKwviL#HIj59kL*X3sj7 z1&hSnbVV=3YD%s?spNQDU4HL*t@_;@=k_%ys5z~XiVFdh=id%$_U1e2`O(Rf9wZt`|BqgyV)hf9t z6-Y4{85o)A8XD>v8H5;`SQ(gG8JlVw7+4t?RCBH`L(!0%pOTqYiCY6#i1;a>1`W6k zC7HRY#U+Wk1-SLZI+}?B^^|zJIEF}E?mc@_%-KPNCBXHJ^LDqSX)}cX|F8GB{ANY$ z-Qs)Np1UL+!WaUt*@W;)7hd4yFwm9mdo6hSi9@ZJLeD(?XP51dcygswHf~wNBJxvO zL0U(BzEzgMhHba!Pr4_Y(0@Pq+K-PPWkpJ@4tmYfIhC6BPKx!eosX*!(0&F_S3j3^ HP60+C+uensgH_f8$l)yTh%9DcV2S|a*~j*61`4v5c>21szv33*V^_Uf z%_9yJQY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}2o%91_o9J23`-hzDCiI zo1c=IR*74K^&Z}Epau=N4JDbmsl_FUxdpiOEak-ar*3}=h_+e97#7ZaJco65vBzz@ml^`|KE063mGfg=_ps&N_`JI1g<<}0 zE}luds~5~R`nI~^#Y=;b15aNta>#Qh@%E@MO1EnIek7gMSW)eIF8X=&(vlZ9-}HXmZJ8ps&WFpw+mb&kXPO%K?9Z(m+n+A-ntXu$ z@zMXGuU2_azEt{a{_Ot7u9LqmFvS1iTN7FE^KsC(#Xs+!V`=%f%%iN_| Rzkxx);OXk;vd$@?2>_aa9LE3v literal 0 HcmV?d00001 diff --git a/public/tray/devtoolsTemplate.png b/public/tray/devtoolsTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..178a9ed735a3d5b594852f1c4bd19db661d4a703 GIT binary patch literal 481 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2o>z%ybP6b&U){3{9*I%&m-# zwG9lc3=AZ0&hkOgkei>9nO2EgLuQN82cQNGxD6$lxv9k^iMa*1_1H~h)(7g@;OXKR zqH%uhMZ-SFM2Xgi?AsN#&pQ#?>Ez_GY?ha)l=TKq>lseztY!|U`C9xEjU;=|T`|^H z;Non3bnm0O)^h9kdvoT@>3^=he8SeB3@?5PEH&e5*te&6Mu6F+W8LB0yvk2?CP=)t zTA=#v<%(<_&*Ev@W+h}S>{yn+dP7R!@mrkJ{~r}HmJThge!t@8jMYmx>)EDx-IIAE y5H0zG*L~KkJM%YLi~RXfWmBy3{mlBiC9H8G@+_{|Leqh6XYh3Ob6Mw<&;$UC4x8uz literal 0 HcmV?d00001 diff --git a/public/tray/devtoolsTemplate@2x.png b/public/tray/devtoolsTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..68c1dfb16b05c11777e0e420be8b104b6288bab1 GIT binary patch literal 644 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V^?yPpScAnq*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{@&et&EMe z4GgRd3?y#O@S1L22CH1&-f+r=P$?B9Tw^FAMQHsQBS|URAG}@ zX2;gJXDWxJ59i7{-u;{-F_|OZ@Y-IFZ9Hi|Go7DIRH}Hoa9Vuf*O`^2?_JbZ{nzGK zUa}y|HLX`kX7!ibKQ1lmR&4p7x}oL%tjj!?=5N{7r~fbQe9ijZmrcLaWv#rY{qhko PN*Fv{{an^LB{Ts53A_2x literal 0 HcmV?d00001 diff --git a/public/tray/downloadDark.png b/public/tray/downloadDark.png new file mode 100644 index 0000000000000000000000000000000000000000..fdc9e58b425c5442421bf92b76af81e053dfedbc GIT binary patch literal 505 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2j+# z+6D$z1_rIoO*JSQa`RI%(<*Um_;Szc08oPl+=i0O+|=Td#M}bhdKRCSmIvxN;pyTS zqH%uhgpIj}5+q#Y)s`eO-x1)_x^!t1Q>c<5V`v#e@Fq7Swla+y2R%AOGYn7YyViYj zUJ~+T)#Y0MUnT7Sl?1KN>8@R)bJpjmbV5SjTi2~So3j@r%lXOgW1l{oNrk~jlC|ux z+77|X9D6Qt6bcDtd=P3>e{kmE^XHAm7rGe^^l{EtF^M!zEbo+OxN&*;=?Uhy4s;pD zCdfypT+4cT#y$Gnnk%9esO83duaFjS@pc3KWcWXEK8d<&t_-o$Lv?Tzp(O2 WO$+>0rgs?VCk9VfKbLh*2~7Z=sHi0X literal 0 HcmV?d00001 diff --git a/public/tray/downloadDark@2x.png b/public/tray/downloadDark@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..34fe8737c74176098707435f28785fcfae44448b GIT binary patch literal 728 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W7qOMBG?8LQY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}29z{>NYvwLD4ELq)n>#;>)8m5;Inm-ZHQ< zF5Ja93Vq~oiQadPeg92%X+e&b2(A;-a|*qb z8#G)Qm-&3)?=d>G*V5w|`-R7Ag`%!jG(=6;4*z=KzTsM}L`KWA?Qz97)}GbQXLRLl ze`a>3Eo4hW)4wEE?iqiC6Am#2$tGGC^&Xjexp2W0);}t*ql%*@K0e*BSoG}6TWvz$ z!%TUr&Xw<)y1Mr3HuII4zV2S9KJK~C+u0SaG5^g37o7snStiqUlqThTe);oG#DP5b zwWhZ_WSDsje0x-G@0)aQbAx0&cfE3ye?VO7H721cwW9Y^+W&2<(Y_GS{w1>E#0R0K z4WGg{1-^|jdRud-(ESy|D;@Xq%@)$JY+iHE<{7UPvFNb>@zi5yyMW}Wklr1q6eF!e x79XpMa}_mNIAuw>?Mtuct5ygq{WPy-WXSRmow4Eq2QZo$JYD@<);T3K0RTH>6s`aO literal 0 HcmV?d00001 diff --git a/public/tray/downloadLight.png b/public/tray/downloadLight.png new file mode 100644 index 0000000000000000000000000000000000000000..90149498b064cd620be89659c663b8325410503d GIT binary patch literal 614 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZJ4F_=LCuX>-RwdZPE@ukQeDRV@kf1G-qM>E^Fy zX`TK5mMzW6&ddG%{)Xp)f`dQm^(^adHL|g`{Or-)u)!%5sDUxb+uensgH_f8$l)yT zh%9DcV2S|a*~j*61`4v5c>21szv33*W7oDitOyDm)e_f;l9a@fRIB8oR3OD*WME{b zYiOuzWDsI#Vr5`%Wn!dlU|?lnuqAuOLlh0U`6-!cmAEw=HB*QMYS4h&P?DLOT3nKt zTYy{7BxS}Xpq_S57sn8Z%f07L3pFe7um&t2jVxTqm%l~Tx&DGTyy zZr___#aLASzI|bRi49lA@vK?%Cns&^nDOE5u3YWS=J${O(KcmWJTW82?rQxL-Y2fy VwR`>d*8!cx;OXk;vd$@?2>|_Sz~le` literal 0 HcmV?d00001 diff --git a/public/tray/downloadLight@2x.png b/public/tray/downloadLight@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..689fe9c24efa83ef92c0a192b7f22e5422a6161a GIT binary patch literal 932 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7e6l0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP~u^LPlzj!Hg^mh#%QutNC(i9UL`?(!3+$nR$Zsw z{rTH%Z8-nc0wb1`M~_p>zg7NPweq^S*tK)~d}jq-+w`1y|L@KBliS#1K3q5-`?D>6 zS3>J=Q!X>cUXGT9Y)_1rFH5WX!*;L^Xewipx4R2N2dk_Hki%Kv5n0T@z!U+-vybiD z3>0K9@$_|Nf5k1r$F6O4SWy5dq*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{@&e ztxSxy4GgRd41{DRhoWf6%}>cptHiA#*-`r?P=f~ChLX(O)Z&uF+ydNsOhUNKfIczw zba4!^IDK|fbaa!0K-=9=0sajFOUkCWusELVGCIAH>c5~9M|gHq#B`U17moy1J=uQC$X8W+iG#wDEcGdq^H$gh{#-6QD|q>7VUEm| z_pPnpFKs!#oFJ;FS!H<+b** hJa_7z%+LB&@m$ZczCWuJx(^I+22WQ%mvv4FO#p&>MjHSC literal 0 HcmV?d00001 diff --git a/public/tray/downloadTemplate.png b/public/tray/downloadTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..d798fd471c195e2df3589e3cdde92c067ca5584d GIT binary patch literal 496 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2KYk@7@Alam|K|` zXd4(<85k&k={$j=AvZrIGp!Q0hM<*(B|r@ta2rZ8b5n~;5_1c1>tWp^uo|dmzo(01 zh{pM~7YzNF0tJqJl-Ish!Mxp(TRSIrXVX-bISpOb4}yw#ZP~g-?j(A0gfB={{H;;* z>(DL9^jRm(|Ia*G^C$jJW$?RXRyZsKUb$``7-#bYUUHNx^aa|~Q zWm#U#>{YD2kxZX{JUe*jj-!B%{@E<)tzWKuGYVfJBb$4sF8c3x3+4h%r=^v*qlAH8 OVeoYIb6Mw<&;$T%qN_Uq literal 0 HcmV?d00001 diff --git a/public/tray/downloadTemplate@2x.png b/public/tray/downloadTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..1289e2cf8d78156d7c1a24a5fb34d071d3b54454 GIT binary patch literal 707 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W7oWL)&ZnTwZt`|BqgyV)hf9t6-Y4{85o)A8XD>v8H5;`SQ(gGnHXpr z7+4t?D1YfZfubQdKP5A*61Rq+m4+oi4H|G8N-}d(i%Sx73vlaU-6OD?fq`+7r;B5V z$MLsQ_WCge3b^reC24S|{WFO=$=%_|t+^s6qk>ttflpYwdFus@xqAhKd&91kY;$^Z z<(StR1?i^N-A*T>I8MKt8++m2&bw**HXGkRv-g9%-Szd1kCu1}srK~it-n)zocZs4 zNAn#ET35~y6HU5&w9aS`=f@W&Cm+q%v43YmV8u{BTBxrV*f6mgLU8<&L zW%>T^r{Ec%7QB%0ub#ZgOZnWR;>k~y^|iLN?(n_3yWDajOS;Jmg9L|mwp5{a=l-+T ZFl+8+3H>5xXA6u`22WQ%mvv4FO#oI81nd9+ literal 0 HcmV?d00001 diff --git a/public/tray/hideDark.png b/public/tray/hideDark.png new file mode 100644 index 0000000000000000000000000000000000000000..b7f6fa61e823795c246ea58ef52dc39803e9fa8b GIT binary patch literal 701 zcmeAS@N?(olHy`uVBq!ia0vp^0w65F0wkYiyI(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2k{# z+6D$z1_o{3TT4+i{yZ!yetxA^vE6y*h{r@YdSVC9ua=MaP zOwWyoz8Cjp3Li!ud9kdcbgiJb{JAS@dpq8WnnlEc}9ggm9MM) zVuM8mrNfPGbf4$>T5NOnV)>T+4^Igl^L``0PASPmWx^MCu6PaEWq&5E%#(YY^q1Lc zS>>uxxQCjDH{axgQ|C<#)it9>b VGCk!=nhA_c22WQ%mvv4FO#mVX2t5D* literal 0 HcmV?d00001 diff --git a/public/tray/hideDark@2x.png b/public/tray/hideDark@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c6dc37192c2c1049eb01efea2297e63c74ce8a9d GIT binary patch literal 821 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W0z^FYmo;Esg}4#l%ynuwi5M4Ko_%kx;Tb- z9Dh62*CQlQ(5`T z1kFM??HCM>Th0<(G|@t``NYM?4hl!={1p2>3C(yck;H%a%j1g&*EptR7BfnDY&xPK zn4}W#I7Rr(Ujd`{Etsvb*%c z95K^C=8UF@lMSE0ZLZ?^AUR)?>)Dre+8v8}*X*3KusBvy_W9PY_TIa#`Ca%eiwmb& z_;PIQ7WgfZE_$MPQJmg4qkI9^Wu6lsi7wtEkT^kpjX}sUEr!At^*=X5yfSwQh*z-N zEU;an*4k0j>G^5foc*7gCUac$l{#@Dyi#zLo5b5Y7Xs|Uq`H!JEqxuuwe^&4llu&9 q9!p)0u+rCetK{#0<9~4fYW!bKtt}~>-Fm<@#Ng@b=d#Wzp$Pz8r##F6 literal 0 HcmV?d00001 diff --git a/public/tray/hideLight.png b/public/tray/hideLight.png new file mode 100644 index 0000000000000000000000000000000000000000..6d25f0fdd06c902a465c8f064b5c93456f851029 GIT binary patch literal 830 zcmeAS@N?(olHy`uVBq!ia0vp^0w65F1|$Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZOnXdAqv+X(0INyt^JqaTa()7Bes~MS$__WBWD( z1=&kHeO=jKaf|S=%YLog(g_q&Epd$~Nl7e8wMs5Z1yT$~21aJOhK9OE1|fzfRtDx) zMi$xz237_J*GkT5plHa=PsvQH#I0euX4w>=1`W6kC7HRY#U+Wk1-SKmunG4Dx|q|` z#WBR=_|q%?9+MMg*gvFi>YfmBs)WsVNzf4!n-^~NE5rkhjLaAES=wYQcM1#(u%6NF zm!$H8-9hq3p>6@zk z-+zLickPzRAMbZ{2G$1rN{kY;yb+P4R{DvxM()QGvyy$yvrb?5)4?tE!-1jY(}OQ2 zGJ37Ex6Ub_lehe3!(Cqae~rHT7rf;bPdbz*mQcwSUY>YA)I!nut>@E2nN}0-p1yXk z(OI<99_6qCln8Et_#G(I}N*281lF3MX#Ajj3xtF_Of_w5q zzO#F*_0nthUGusTus%l9m2pvv^~6>>-um;x4d(j=?fH`Y z?U4r78w%&IeLitVWQE0#`K&T~^cLz?e3y!ORP&krM^o#HV-JqM|8Ot+g+1?X{{m(4 z1+|8;jJK!Ey`hurE+O~)^>XXO2ZA@u<8J=*%yL$x$)9;!{-!W)Y!$LQy3tVoS_rGt zi?uE1T;#r7{+z=Xu$>FVdQ&MBb@0Ms#0 AO#lD@ literal 0 HcmV?d00001 diff --git a/public/tray/hideLight@2x.png b/public/tray/hideLight@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c78603f02b96e02a22849bc7904806711373bb96 GIT binary patch literal 1206 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7e6l0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#N0|R4KfKP}kP=UE);3%Sh2;5QqR00hB+L9o@U`J+_so3HD>A9h*T?RKeW?xF>1>;DO~PY^lu$?MUs z=_;1TO>_%)r1D z0mieB?b{3#WH0gbb!C6WEyBkxms9Z67$~G#;u=wsl30>zm0Xkxq!^40jLdWm4RwtS zLJUo;49u;JEVT^`tPBhan2*ju(U6;;l9^VCTLWWUtpZSk2Hb{{%-q!ClEmBs+;A*O$~Mk_!uG*aPXdX*_%bb@84Bb zDQFKA7JmFYwLE=(O4{?eqMiRb86HGG$X?>A!?=&7ValYFo)HT}R$kTW-Nt$GqDMZ% z;+0o@6kQ_Mr{BKph^=`1^&`im%U8N5>|Zah zAi$HTB$KJaz{ZxCA@S2a;fi4D@neRL$E6x8l9X0XP!F0Md^t_+ESu*(mpzO#9tu32 zIrYrhbTNx961*vf2cEuSn5{0V$EdS@f-hrNN@ObQ0V%!g+GOE{CBh7reC&6AaBkQ- z*U@@+^^YCvAB%d}F#eU~Kn06g`&Fpf>!a{Bf^PKpY zXTc|mRCAV|@8(S37O_X~j>e?zGdIOPV9R*-E<5h!)CE-z{i^#GG8|K1-FoBipHEx~ z7Zy)gm-%MPtgf?Rm8I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2PnaO;`)+N>L>=d!1Z zV~EE2wHG&fITcEJal;z_wKA+O?^AxtEYv2*)yvw?eN4oo7NOJ>(@rUy0&YV^udL*9{8rtNc7r} zb95fN@8?aAW0i6p!+V;T{hOv`%t(B2Ym#oZQm6NOG1I%fyN*b`TNk4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W0%U7Rn!6ssg}4#l%yn+oZUJsR3z&7p7#JAOd%8G= zcpQIw#n&U$QR3Lg`LP#Gnp;G)HcjZ@X$eaV5Lz-(amz+C$G1@|YgNz86`0r^wtZ@+ zBP**QXQNYh(52l%MS(YuD>0pA+P$*GIr-L{KDFVO|!482ov%)l2o?f02x9VEn)fwMzSEIS~W zd9W!idg_h`n=8LBWxc;e%UFc*(yUEO)xRA57R%~x+pm20MQ6JCbg6>aYxyggns3<% zB$UeDQjvXYAoKIQ+Vr#B>u$cu{PJz}vpZ`4UNt;E?PdLVZ_h!AdfVxpS3F$1-QGrt z**}PksXx_MlWH=fL#!_&kkL$Ilka@jgHxJY=VX}3DW>thy!f~?Z>rbU-$`-qEoT?+ zefM+UBMsgahdI}?Z2u(A_|)&Exv2c}emP5)SG*i<)BiaK`knZ7UvJ9xkF7yZCw)!} pS-;G9)9NFUvi0-#EvsKYpI`T6Tuih=5imJ0c)I$ztaD0e0st5I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2o>z%ybP6b&U){3{9*I%&m+K zwG9lc3=I0+x>Hd!tj5@N{tu z(Kx?!f??jF00Ec#+ke<99MrtC!>wnI& literal 0 HcmV?d00001 diff --git a/public/tray/quitDark@2x.png b/public/tray/quitDark@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c16b3933d69d8b0bd815b38cedaaf3e5978f73ca GIT binary patch literal 807 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V^>%!_yee$LAAs+q9i4;B-JXpC>2OC7#SFu=^7g98X1Hbnphc_TNxW_ z8yHv_81%b!r=n=c%}>cptHiD0pS1B!pau=N4JDbmsl_FUxdpiOtmG47V_;zX=IP=X z;&J@#l(Sy50|naVOQ>!WPpR+7hI*Xz7l#%l5Xc5`VC(^zyy79XhJ7y?P^e zU+~?XQJC0On0R1EN4Lw1%dYz}CVf^7e^CA4_srsFbIaQ-nfoOeKQ0aZ|I16JDodwe zSNs7j%Xyn`?Kf^xxOK)zR5Hlc-(&JyOHm%9X-}ZVVy-h2xjEB37{g7Pe{{|ZpKN7t@{RMe#Rcc=C4w$BJeVcse`3l4{j7XIq}ZYRb;C*5`qjMLckQHiM9f{^#QU}1JCQeQ4ufRZ-3B_=LCuX>-RwI-oVJNe)2EluLsAfDUC^%FG&W z&9Xb=d(EzDod+9*KG?CXxh}eA?^?#Zd|Sb9nJXrV9|J09O!9VjVd!9$^#F1>3p^r= zfqEmrc=oYKYk@7@Alam|GbeX&V?=85rzaH}MCGhTQy=%(P0}8qR;#bOCD6fZI@#nVVW%l9*e7 zThEMV9J7IXnmt_{LnJQu_TA=dRuEvltHpI9)MdkkMgRW0SG8U*i!+;<;=gRwKL)-KTptvIYqH@N0DZdRbUg|En#QcbbH|nG}hjG)>BZo3>sH#0bcrKs&UaQih z=hEE*YK%uXo<5a`J=dn%&lFqw$?j!owUt5WG0Vlt%V85I-?1}0AeFE)S=O0eKx*cdXW0JSK3quF1tOt<8S>O>_%)r1D z0mieB?b{3#WH0gbb!C6WEyBmHcuVXAA5ciO#5JNMC9x#cD!C{XNHG{07@6rB8tNJu zgczDw8JJrc8)+LDSQ!}XTQ~6siiX_$l+3hB+#1e*)^q`C(16=el9`)YT#}eufLqUu zXB@MEJ_+!2aSX9IeRk5#s6!4st)1F>qJa)#nn60<4Z$o^xSS$gxHz8woqsHIZr+9J zvqydQJ8JAPeh(jCe_yAQ^ZqiXIb7xXa<-3;TNWH#fBFTVqe|@2b&t&ooJIEc zs;bx@{OBUI(wg04`Gk|diUpp&Yuqzkk^h9HeLw|67ndc2rt5-`4~+db<+f^# TPmF-Ml7Yd~)z4*}Q$iB};0INJ literal 0 HcmV?d00001 diff --git a/public/tray/quitTemplate.png b/public/tray/quitTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..43b48c4c06e06866b197a52d039671f6799f9665 GIT binary patch literal 492 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2pfA z+6D$z1_qjj4Hr=~9{x(nO+Y=nJzX3_ zG|sQRsMvRiL4@VPbtl^i2Q&??E|IoiwBT!KG}Z}!z$al7yR({u$1_*9FC;|!|FeJ9 zQhK+}4oS+;n7Hfa7T;ahidub^O}KrCk3V`#r>e1EE(+)k22WQ% Jmvv4FO#r4-r(Xa7 literal 0 HcmV?d00001 diff --git a/public/tray/quitTemplate@2x.png b/public/tray/quitTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..707512b645bf1e0e3abf916b08250285ad639c59 GIT binary patch literal 742 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W0#jMzq%ACq*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{@&et&9z{ z4GgRd3^WZJE~042%}>cptHiA#BF7>Zs6hj6LrG?CYH>+oZUJsR{FRcM7#JA0db&7< zcpQIw#om8%pvdu${QrYQgg9E-SakQW@tCx=HZ*6me^uq!!&(%19$aNd=^Uwyc3kM~jkSsj9hs z_3}IZe*)rI(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2o>z%ybP6b&U){3{9*I%&m-! zv<(cb3=E1`CZ?fi$jwj5OsmALfjLt17Epr*+=i0O+|=Td#M}bhdP00SSb=)>d%8G= zXq;bq!O)ADQH13Jr*?E@^Be~gc7Y&nIftMb$}>c6=GiuiUy7dL#rl?~V}gsvYp(N$ zT67#Yo-o-z<7fRppH2E!_J`+(EO(WEYIEFEu4wx5Yh_Aa;c*)`95~}~bJwbX-(MD9 zDqgke$_mlwgG)uVE|z95ICQE&yW-gHdFwXn2iN9Tcus0wtJS{qWMo&olH@vFwq@^P zXS|6L$?9F|6@ULo(BoZyQ>M73&6u5>wx@Gv^p%slRvhR3nSb^7V`*;o36PsvQH#I0eeo>CrAg9hA&lFZ!H;*!MN0^E8&Su<~BU|?SB>Eaj? zaro`DT#vb_6374d%auAEwb7fiwk`e89WJw*0;+BLPo!Of0(w%mTwSrjb)C$c!wXi* zui7|W-*C|Zr&G%m_vUstv8G#fyz*XtbcM<7W$S`{m!33~zx(le`)@nh^OoB4KcCc( zi(mJA=lj>Y{#~z)*Z;1%_5zo#v1J^qy-X!wo#_XoEA>3j?VD%UZ&q==e)vG}g#wN%xw%hP z>Fk}n-l!|m{-C$6!A?!ljAQ(d6(#tcp18gG_eA7SjCmPxEbk=ZVp#U?&HUyb*V>hv_V-47 z_oRcjBxIVmzON{FP{8amJ6L#Kn#sp6LT_w1-u*4yc`yIKPVQCO3PmO>t?o7VrQ2E* zvH>dFc&X4eVSh-@;)PR55U*sAW<{E5au8Lhzap_IyHK!jFml)N^ zzB+yR1@o!qzrGLlO}!DKH_xP0ukmqvQPL zPp$?0w_blkdw1r)Kea)Zd%i?057`xdir?dAyvHZc;(jk-$xG$?J^t2SS}wk%^Tvy3 z#dBu#n#gvjE){a$q?h@3OGruklzPuJmFx+6`X1rws@pHEs**Z6tyUv;p=eauFZPME W_qBZ4Cnf^S>-TGfkM}2etivefo4gNAJFxhMRVD5 z9=&;-%Ut#AU9qm^+uzY2rMHF0+Yh7ML) z4o>z%ybP6b&U){3{9*I%&m+}v<(cb3=9OXEQvwUkei>9nO2EgLqey_1E2;CxD6$l zxv9k^iMa*1^_b7GwFl~H@N{tuk+|I3cUP!MLBhp#i^~ds#s6MQH*Kl?FTO@G<<+Wl zcjwKVdspKZyBLS%GtWbhuWl&W>^jZy$;)Vut+#^%Cz*L!6|QhtlNaT5)w1x&$`!v8 zx1`7H*)i>GgJ#FO(9Gj6k6rHyahtp~X7=tcn|B_tasEFVdQ&MBb@0PPIR00000 literal 0 HcmV?d00001 diff --git a/public/tray/showLight@2x.png b/public/tray/showLight@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..cf4ffcc63e6033e8ce775f5e572b73f74a9f9387 GIT binary patch literal 1585 zcmZ{keKga19LK+gO%i#ETo2t_EwxSakPVsVY(fiV^3V)rZPS)15rz(T70Odcq%1wC zL)@%LE7eaCTFTHZwUbb0(L9&C?jQG@`$wO1-kfDpo24#rglKi|7W6KS+5vwN+*r%1zdaf6R8y(4w zaf~_?qcmWHwXw%oTVrgnLDqJTSe&Dc9SVze#A0=OtHb^WuntDk_Z|H;K;@ebDFMs> zE^z6rn0Rg^i~VZ`SMKZrfZ8I-(=90W?RW`;8MJF9q%(L+Lh~DZWo3-nPP8jCA)EA3 zV#C`!q-zT;t6c;5x>d!;M~r+8>&WV?Mp}-YkA^PVi&#`F7k{ybi8YoH$h`-uHpM1{ zY6(#(U*_L0Rr<;Lp?j>EOwy6o#p$=sN4h%S#1D6d2?Fx-3#+3II!dBZ+-BzrvAA83 zqm@HudG1JV?i+lw=%UFRmg6U{ae9S=56)Gpgje!%Gfhvc&Q`*@pR1;YcqdpeUTzy+ zO?PFsrJT;KVKj{<#=$8OS~9v?ihrE~Eh*UsPh1Mj?NFbYOg)NF5ULRPT(jbsb`(!v z>}I&G55&u0*S}EDAbgwm3E}SU1)``1Q5k=zDinXAyfb#`N%F1!nv5}vgb+m;<8}*d zM2L5Xpi~{g!UiE@3uTc?gEF<{4}+tBGZvacol`@dH>gs-q4>R-(@!r-!iP4Z@9hZD z7LIE66ia|vnqKX^?y(;!Ci&eQy=2+AOq2cT9kl~l_t_S^xE??1A%EW_dK~Y%KZ$wo zd*FlM6QUIjN7D$9z}8#q(Ny=?+ZP5w+!tTb&%fSp|D0|cR#s%>YEe)*4~Wu$uE;of zI3mdcHdBRKYa0I9xD1Wrvob3>~;NPQAw>-G@gU~cBq^y-Wo{H=D@VBdPb}#+&F{X#Dp>^*xp51>+Xu3aj z8ia3!HlQy_p;=xFhf~*mWx}8!1gBcIWUd;j50M89X}6doJCQVN5IT#@I})1~W*xCl ztm^=^p$j8E)xW+IlpLY64%O}tuZwd~a5M6-yix^!e6~gX*eBn7nB3`|tD>8#qpC+D zs7MnxQhipXk8^987|FLy66^EjPZz>eP9~P0r*@M&^%6;0oQn3A#!K1hR|%RCra?%X zN5~Hv!J;ISmeKH@uITmZCkkrZoKcNFR!{AVYh##)CpG6xxA)2D)LExXQbpKgS98u3 z(YXgQy!9TNh>!bNbMlot5#{x6-|vlI*GV>KIh>MKA7aq-YGYE!50OaQyv4KHwtc+> zAR8{e>+x-`P1no&xtl-u!B0S!9R>Yn!RRBIdu%;3$D1-xbfTfzvpX*J_72cTd_k?% zQ_O)p#-XdAHu6E^oQ9;SRMkeJs#e6O9L$EUql<17Hj4r&WBdczA4~=eII(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2k|A z+6D$z1_sV=x__f+$jwj5OsmAL!DyqgJ5YlL+=i0O+|=Td#M}bhdQz7N0sX|V&(p;* zMC1I{i}qg3g#t%E_UGI0_%uTRdFrad^ld&y&m zpq0ES-Vd(Ccx3D@RN^d7_fAmS^D^W0@3QqDlx!Tc8C!j?_oY1gU;3jUk4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V;4(Woy!OmQY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}2+oZUJsRAwC?e3=E9RJzX3_ zJdVG;vOg%;QH1S7yi2oc{Txm)J{O63ilUu83i%G5c8wa}q+TCjzHswsR1Jf0+8doC z$3%M4ggW^=Q`?R_>}tI}mq&$BTWa6!H}mekw@%-Gw|M8Fr^Ps4gFr9 zqQ0hb@iPyVq9tj^XLWX8n!dOA&66wTYn~jO(3PxWdzEL&wq3i*W^B*#;9GqEgOmBa zKX<3O7Qfq-9<1C~_O#v8=31wD-6Uq^JWqveeUCN#i|&_8Y`Ob^V?{&I8+gv|poY}H$)k?Wv?Djs=+??Bf&y3(> z%~MLYKjS}p$L;ej(+-)MrA!PA2@ITau&KFXYi8wz#%qVI?@V@e^73NhwrgwulCnYB z^QXeafC-bQO$+9@Szl?nM|zUkma17Rmpx1OH@21bYi|)7$He_!Da&;Bjb^jBGlpRR2^eL&v*_x&jfJ1pMI(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2pfQ z+6D$z1_o01&TT`{kei>9nO2EgLw0i+$a5NS8%i>BQ;SOya|>|mv6&Wr6{u&8r;B5V z#`(1q_VP9bFtq5Kw24+29+Ts?p1vVfA%Ro&z#+jU3L6?sTkAWSX9Pq{_z-C$ESHe9 zFg$MGqkWVA3AJ!^tjx%;oR}bBtDv%+RW9e`3Qdk!1%>0!PEFwyEa&oJKe8qN!7(01 zrL0SQD-sxfq|8x0Ia%eb`|kNxx32w8%V<2k;``PuYgxao+oF=Wc52yOkI#;qOHA)B sHj`PQ8Tnk4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V^=pW&9w#!sg}4#l%yncptHiA#ySWVHISsfCC7HRY#U+Wk1-SLtObfrtz`!`e)5S5w zajp>@us<*4; zuHKfZPRiFfgBCK{i_i5j+G{+s@cw2=z0d#e@BChHuJQGXCH--AS$CFux0_0ZbXX*u zko)apq?5V3!?)b#Yu21w+e=qQq^#fda=Yd2Bf|AR&Fy4wZl2ZL@piq9|I@$kgm3Tr zvNk#N{M~bo9Xl$Iu8WTq-1u(S{A3q>{tG^_bzD1MZ!y!}*DZhP6w{SE7jqnf?mhh> zR-3K(AkpoqutQUXd62u^tY6cFoTgi=NAM`r z;>ZxG)@HE(X}dno>;K>XGZ+^oZDiQKgR#f?faA$2-*<4zv^6BI{8JhiFf;r-Lv;_= z+YeLH5Ad@sT#&ZkMY}$z^m>&WTeO_6%(7JWRdTn_Nk6~WR9GjM{{L~BR`^CJgBw{IJk7de< ghFU!%o$CkflXv`;OS_YG3K*{pp00i_>zopr01#sm&j0`b literal 0 HcmV?d00001 diff --git a/public/tray/themeLight.png b/public/tray/themeLight.png new file mode 100644 index 0000000000000000000000000000000000000000..9ac92314da73d49cdec01097b651ab55cbe9c384 GIT binary patch literal 570 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZOC=_=LCuX>-RwS|eM}@-6ib5qfUcBky7~Lx z-DYW>{U2uS{(SI(EPL3Khw?3)_kML9nz>6iAjWMQP%&eYx4R2N2dk_Hki%Kv5n0T@ zz!U+-vybiD3>0K9@$_|Nf5k1r$F6Q%nrjUdQY~?fC`m~yNwrEYN(E93Mg~S^x`u|j zMg}2qdv1_o9J276W>WkS)Ao1c=IR*74~*)O&GfEqO5Hk4%MrWThZ<`&@A zGwWeYB2Z7Zr;B5V#O2;|&-oe@cvup;IZr)>%ad4vc6j6tD+1yQK8IP_xl{0+#!q+ccs(`Q|Df*BZCt-4OV z`}4Qk+Hn4>1x73>kA6S@@b7VI`M0Nb#!2fwRX&ts^EjrkQTF3&o3%ZOXWlC&tm$<> zx^VrI?`gJGCx7?N0vg4bo>z%ybP6b&U){3{9*I%&m+qwG9lc3=HblQYuYdn;JAc1_$Ki<@3{|c& z$Aud*tds>i4!oNF@_6wnzRBsQ9?fHXy@=scm-rXn_QDGrR3~)56nfm!tahrwI(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2eh9*`9=2ph$ z+6D$z1_p1Y?Tbgzkei>9nO2Eg!`#zskAWIA;5L+G=B5^xB<2?2)^qBfI>;|eJzX3_ zG|sQRV9m#vDAM*&U1}q%u%K=0IkhcfCOJ*48ajw&r0gtedb<7h+g^H)TY%lr(SXUzPDPJqiOQAT@$;{zMc~Cjpf{}1Qk=w zh9{AF4Q*4IuQ)6(`gB$=Jp2B<(~Zfl`7fSl@#(Y(8JHO8UwUzP_U-b`T#J`Y3yR+R l>Dq~iM|u`BLe~DXmHQ@OT`25$Ru<@B22WQ%mvv4FO#oZ#njQcE literal 0 HcmV?d00001 diff --git a/public/tray/themeTemplate@2x.png b/public/tray/themeTemplate@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..5a528a4ea9743109be49d6d1aa711110f57d9e6b GIT binary patch literal 677 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE0wix1Z>k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*V^?!2id_p7QY~?fC`m~yNwrEYN(E93Mg~S^x`u|jMg}2tPq z1_o9J25+YAi$~Fro1c=IR*74~+|z82ff_X6Hk4%MrWThZ<`&@AbLyTt&@YT7o-U3d z9>?EK+3m;VDAKmyRA=hJBN?2A6R$CK^e$T1d?-o&pv1IrgC9JTASoKN4);4AomQ#?Ui%Pf+; z&1k_wjvL9$71J3_RV$|moBV&{ytIAFcRLmH5}nrNe|j7OR9}_vF?k!{FejR&iEpMt zd)kTjbIQy9FBFMc#F4skq0GcbQ?hg1>o%@YpULfZtVHrmR8)J=j+!X$?tLM>c2^VL tf9g%yx#U~}r!d=I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t2o>z%ybP6b&U){3{9*I%&kmJ zv<(cb3=FRCUV9rwLvDUbW?Cg~4a=U1rUNx-z-=hW%uOvWNz5(4t>@!slN~@kZ#`Wc zLp07WonYw294O*?-lA*k*@z_`T+UpM8@64rU6GKueD(>U9HDNXDAq#en+*}t8w6H! zhzW8FdIm|heT+CWzvsrYQ2uuh@BY@)u@-DNDt9@ByCTu$oRxi`n1k4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W7oaBphXoZq*~${QIe8al4_M)lnSI6j0}v-bPWx4jSNBzO{@&etxQa{ z4GgRd3<}RI%SX|Wo1c=IR*72!!$i5uKn)sj8%i>BQ;SOya|>|m32(9IVPIhV>FMGa z;&J@#l(XI;ffC2+x6kZySivUTGUu&F}e$y_;)Y{QeK?zVz~YpKab(-+OM!{!Q8AmdV!* zz6TUU@0`=*Dq+ah`8;#}!->p)yjSvsg-t(vZg;BgHXX~PxFgzqzfNom`(P*T)8+d6 zti`Ils5Ob3e9zv0DruR}FZ%39+mn||9ojbUdBAD;K*9a;tM5O(uco%YF%dA_aM^Ks z$lVQV-dRlGdB4i+|1slB8+Og*(hqi@(7W-@LzxYSZ0+2HI4^il46Q4+xGM0dF#W1+ zyOwG4%<_$e@2adXZJC!W9+9x;q=IAfo7Xk@CLv27v92>d>mw6)_Rf=l8`s#?n)iFM zn0%a+_C`&6yHy%@lSeC$`3{kH{}U(eWSP|+lic-FMO1IM)a)}Et~)NlQtN3>7zevp%!z<6x2Pi-$_`Jr#i-{x&9>R-P) z-zfi5#A=q;c`J53NqCg3bz8pOJ$%KE+-aQiCM`Zt{Lc7%ILCbBHJ>MNPCC43_Ny6^ zzhiy=1{l0OzU6G<@jY5e_XNH3+ArjK+pVk1)NEU&V)UkUW|?2`0~SX6h-ci{oUbNj iJY8^f`#yQkkMjFCr+X+L3z`W`I1HYyelF{r5}E+-8%x^& literal 0 HcmV?d00001 diff --git a/public/tray/updateLight.png b/public/tray/updateLight.png new file mode 100644 index 0000000000000000000000000000000000000000..2a48b27e0c43bbeea9f653354dff808a63c57897 GIT binary patch literal 685 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Lb6AYF9SoB8UsT^3j@P1pisjL z28L1t28LG&3=CE?7#PG0=Ijcz0ZPmd@Ck7R(&mnVgBBT2-5>*WqDe`RAJBWu8b0i- z@>3pvQtz)k^kHhqIk`ex+yBSdI-)>=@Xw8e0Tzf^6klM zf%+Mfyxm;OkH}&M2Bruwo_%cJW}qN@iKnkC`zvk{K6X8?l~?Bjg;Yyi zBT7;dOH!?pi&B9UgOP!enXaLsu8~2Ap^24&xs{2jwt<0_fkEM!W%(!?a`RI%(<*Um zV3;U(8K^-6ZbM0CZfbE!Vr~I$J>f0(JU~5@JY5_^Brf-!J1Nv;Aixr!rocJdlYvt~ zp`*)M@6Z43o@_SR_n(FOhe{ulXJkl=<6V58|0FQ&dg64-pevk{Nie1_ z-)o6;+k&F{J&CbXuCgu6+a?vV`?kEmuE#4wXPxuyEm(Q#(W-~j?h9^Gd|UeXV0F_3 xmqHP*lRqXiIeqw4Fylo6)9=4??GE?XFih0tl)Y7B;|6pcgQu&X%Q~loCIJ2Y(=q@6 literal 0 HcmV?d00001 diff --git a/public/tray/updateLight@2x.png b/public/tray/updateLight@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0a22dd0dd3ea2c5f63c9a6715882068c31a089eb GIT binary patch literal 1047 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7e6l0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#N0|TQ%fKP}kP=UE);3&cs0<#x6P5_2cd`XaBFav{# zU21ijJ(KLYFXwCIELT+V_+7Z@&-~dn`R$);i`!bSX7BnDax-0$@y4fj--8e9YV0*C z7d-R#n81;<;zGxt8=E#Ydb4=eH<*-KJQF*8;^)#zo!Whe-tW#yS!wlERIl0hJJ2e| zByV>Yh7ML)4<*BD#fZ z;=Px#U#2|!|G&E}`|aM-`~~~Y&f8pk{*27*+?5P65r*!!!^2cP%WkN@nWeEn-!JoS zE6eogKt`Lm`SDMfr7fHdmQ)(b2>v*$k(A?ozwdRYL{dq*_+-sE0fjpKxhI)YjEndT z;}0ZtKAwA}et*uH085Ge${Z@c_Mc&6UUBWq64wCxBa6S36s(XpUOtCC!(?Nr(Ol_U zvT7Dz3;av6(~rfi2so$DF+Kd6>iOK7i=r)AY8Te!=W*^^cXMfZ_*0he{Aa?J+kWNj z_rH-dqbXz(=e(H>vrZf4Z1r_q>G9_D>*(_zE-X*wKcIBrdspJR|BmdTt_RcQ4Ao~J z*J}B(XF~h>_aAo(SIwEb`-8HIp3t#{VqBjZ1%+QuZ`;qX>XBUU&56|unoK9$Ix^?3 nqIcJuAJH>11d{iM{9tD@b6Xhp#pEY2J{UY*{an^LB{Ts5^Z9Gr literal 0 HcmV?d00001 diff --git a/public/tray/updateTemplate.png b/public/tray/updateTemplate.png new file mode 100644 index 0000000000000000000000000000000000000000..307b8abd9e3c5433697693aa98ea55df9b8df4fa GIT binary patch literal 522 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9fnimzvJsHSS>O>_3>1t22OC7#SFu=^7g98X1Hbnphc_TbUSZ z8yHv_7zoKs4n@(Bo1c=IR*73fvZMA(pau=N4JDbmsl_FUxdpiOn1pbd0rlMUba4#P zIKTFSp%-(Zz|n{L>ymOei)s2KdMI*S6RTnu)p_$p$g-(--e7vk4zl0AZa85pY67#JE_7#My5g&JNk zFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uenMVO6iP5s=4O;1O926pR4l*~j*61`4v5 zc>21szv33*W7k=-d<#fOwZt`|BqgyV)hf9t6-Y4{85o)A8XD>v8H5;`SQ(gGnV4uB z7+4t?T;IL+Hj0Ma{FKbJO57TjJrhj_YS4h&P?DLOT3nKtTYy{7$Im7^7#J8&dAc}; zcpQIw#ol9Tpak28`)|_(UF!AJIG(PWBAV&a>&T{i*WvjzC&gJ&O}p z+`*;2i^(_mRonHACmi2$X=N6@HL3Xh?rYust%^--^Ec1=Z2P=&-{*brEBUQ|WG~4w z`r4O$t)a5gl3Q@|>GSqC<%;jOh%Ph<+wNqXcv`Il@Y>b=7|U zuzpTYp>Esa1TCIzZ3TBT&+K^WJavz6d!+rFyLy%FdxdjecqZJ-@q9jOU6Jo;j%x;) z3TYEo?b7ewH*KZYmfa~wA`ZR06}!=0W33yn)-V46KE=12iZ52(UGTBxZ+fgrj?&3j zdv5B^tkV|0eL2DB!>xs%mKTZkg>g>$^<|dvjqu3bpIo^D`>xx5zc|5Z>Yl5znLI}% zE@YZo{p*+}asO57O7+>3F7M3Tkl`ud^V%mdKI;Vst03wVyG5`Po literal 0 HcmV?d00001 diff --git a/src/main/classes/controllers/NethLinkController.ts b/src/main/classes/controllers/NethLinkController.ts index 03c57809..63bccc66 100644 --- a/src/main/classes/controllers/NethLinkController.ts +++ b/src/main/classes/controllers/NethLinkController.ts @@ -35,9 +35,9 @@ export class NethLinkController { } } - sendUpdateNotification() { + sendUpdateNotification(update: { version: string; url: string }) { try { - this.window.emit(IPC_EVENTS.UPDATE_APP_NOTIFICATION) + this.window.emit(IPC_EVENTS.UPDATE_APP_NOTIFICATION, update) } catch (e) { Log.warning( 'error during send update notification to the NethLinkWindow: ', diff --git a/src/main/classes/controllers/TrayController.ts b/src/main/classes/controllers/TrayController.ts index 843189fa..85f4499a 100644 --- a/src/main/classes/controllers/TrayController.ts +++ b/src/main/classes/controllers/TrayController.ts @@ -3,8 +3,10 @@ import { MenuItem, MenuItemConstructorOptions, Tray, + app, nativeImage, nativeTheme, + shell, } from 'electron' import path from 'path' import { LoginController } from './LoginController' @@ -15,6 +17,8 @@ import { isDev } from '@shared/utils/utils' import { DevToolsController } from './DevToolsController' import { Log } from '@shared/utils/logger' import { t } from 'i18next' +import { AccountController } from './AccountController' +import { AvailableThemes } from '@shared/types' export type TrayUpdaterProps = { enableShowButton?: boolean @@ -53,6 +57,34 @@ export class TrayController { return image } + // a 16px icon of the menu, from public/tray (the @2x file is picked up on + // HiDPI screens): a template image on macOS, which follows the menu bar, + // the color of the system theme elsewhere + getMenuIcon( + name: + | 'show' + | 'hide' + | 'quit' + | 'devtools' + | 'theme' + | 'download' + | 'update' + | 'check' + | 'blank', + ) { + const variant = + process.platform === 'darwin' + ? 'Template' + : nativeTheme.shouldUseDarkColors + ? 'Dark' + : 'Light' + const image = nativeImage.createFromPath( + path.join(__dirname, `../../public/tray/${name}${variant}.png`), + ) + if (process.platform === 'darwin') image.setTemplateImage(true) + return image + } + changeIconByTheme(theme: 'light' | 'dark') { const image = this.getImage(theme) this.tray.setImage(image) @@ -76,6 +108,8 @@ export class TrayController { LoginController.instance.hide() else LoginController.instance.show() } + // the label of the item at once: the window events update it later + this.refresh() } } catch (e) { Log.warning( @@ -85,27 +119,68 @@ export class TrayController { } } + // the last options of the menu, to rebuild it when the theme or the update change + private lastProps: TrayUpdaterProps = { isShowButtonVisible: true } + // the newer release found by the update check, if any + private update?: { version: string; url: string } + // set by the main process: checks for updates now, from the menu + checkForUpdates?: () => void + + // rebuilds the menu with its last options, such as after a theme change + refresh() { + this.updateTray(this.lastProps) + } + + setUpdate(update?: { version: string; url: string }) { + this.update = update + this.updateTray(this.lastProps) + } + + private changeTheme(theme: AvailableThemes) { + AccountController.instance?.updateTheme(theme) + this.updateTray(this.lastProps) + } + updateTray( { enableShowButton, isShowButtonVisible }: TrayUpdaterProps = { isShowButtonVisible: true, }, ) { try { + this.lastProps = { enableShowButton, isShowButtonVisible } const _isShowButtonVisible = isShowButtonVisible === undefined ? true : isShowButtonVisible - // TODO: add check if window is focused and add the focus option - const label = store.store.account - ? NethLinkController.instance && - NethLinkController.instance.window?.isOpen() - ? `${t('Tray.Hide')} NethLink` - : `${t('Tray.Show')} NethLink` - : LoginController.instance && LoginController.instance.window?.isOpen() - ? `${t('Tray.Hide')} Login` - : `${t('Tray.Show')} Login` + const isWindowOpen = store.store.account + ? !!( + NethLinkController.instance && + NethLinkController.instance.window?.isOpen() + ) + : !!( + LoginController.instance && + LoginController.instance.window?.isOpen() + ) + const label = `${t(isWindowOpen ? 'Tray.Hide' : 'Tray.Show')} ${ + store.store.account ? 'NethLink' : 'Login' + }` + const currentTheme: AvailableThemes = + (store.store.account?.theme as AvailableThemes) || 'system' + // a check icon instead of a radio item: macOS would add a column for the + // check mark and push every icon of the menu to the right + const themeItem = (theme: AvailableThemes, labelKey: string) => + ({ + label: t(labelKey) as string, + icon: this.getMenuIcon(currentTheme === theme ? 'check' : 'blank'), + click: () => this.changeTheme(theme), + }) as MenuItemConstructorOptions + const menu: (MenuItemConstructorOptions | MenuItem)[] = [ + // the name and the version, as a title + { label: `NethLink ${app.getVersion()}`, enabled: false }, + { type: 'separator' }, { role: 'window', label: label + (store.assignedInstanceID || ''), + icon: this.getMenuIcon(isWindowOpen ? 'hide' : 'show'), commandId: 1, enabled: enableShowButton ?? false, visible: _isShowButtonVisible, @@ -113,21 +188,57 @@ export class TrayController { this.toggleWindow(enableShowButton ?? false) }, }, + ] + + // the theme of the account, once signed in + if (store.store.account) { + menu.push( + { type: 'separator' }, + { + label: t('Tray.Theme') as string, + icon: this.getMenuIcon('theme'), + enabled: false, + }, + themeItem('system', 'Tray.System'), + themeItem('light', 'Tray.Light'), + themeItem('dark', 'Tray.Dark'), + ) + } + + menu.push( + { type: 'separator' }, + this.update + ? { + label: t('Tray.Download version', { + version: this.update.version, + }) as string, + icon: this.getMenuIcon('download'), + click: () => shell.openExternal(this.update!.url), + } + : { + label: t('Tray.Check for updates') as string, + icon: this.getMenuIcon('update'), + enabled: !!this.checkForUpdates, + click: () => this.checkForUpdates?.(), + }, + { type: 'separator' }, { role: process.platform === 'win32' ? 'close' : 'window', label: `${t('Tray.Quit')} NethLink`, + icon: this.getMenuIcon('quit'), commandId: 2, enabled: enableShowButton ?? false, click: (_menuItem, _window, _event) => { AppController.safeQuit() }, }, - ] + ) if (isDev()) { menu.push({ role: 'window', label: 'DevTool', + icon: this.getMenuIcon('devtools'), commandId: 3, enabled: true, click: (menuItem, window, event) => { diff --git a/src/main/lib/ipcEvents.ts b/src/main/lib/ipcEvents.ts index f42c4bd7..aed921fb 100644 --- a/src/main/lib/ipcEvents.ts +++ b/src/main/lib/ipcEvents.ts @@ -21,6 +21,7 @@ import { import { Log } from '@shared/utils/logger' import { NethLinkController } from '@/classes/controllers/NethLinkController' import { AppController } from '@/classes/controllers/AppController' +import { TrayController } from '@/classes/controllers/TrayController' import { store } from './mainStore' import { debouncer, getAccountUID, getPageFromQuery } from '@shared/utils/utils' import { NetworkController } from '@/classes/controllers/NetworkController' @@ -454,6 +455,8 @@ export function registerIpcEvents() { ipcMain.on(IPC_EVENTS.CHANGE_THEME, (_, theme) => { AccountController.instance.updateTheme(theme) + // the theme items of the tray menu + TrayController.instance?.refresh() }) ipcMain.on(IPC_EVENTS.PHONE_ISLAND_READY, () => { @@ -709,6 +712,17 @@ export function registerIpcEvents() { } }) + ipcMain.on(IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, (_, member) => { + try { + NethLinkController.instance.window.emit( + IPC_EVENTS.EMIT_QUEUE_MEMBER_UPDATE, + member, + ) + } catch (e) { + Log.error(e) + } + }) + ipcMain.on(IPC_EVENTS.EMIT_CALL_ACTIVE, (_) => { if (!hasActiveCall) { Log.info( diff --git a/src/main/main.ts b/src/main/main.ts index c746d1e5..c387d0ce 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -1,5 +1,6 @@ import { app, + Notification, ipcMain, nativeTheme, powerMonitor, @@ -37,6 +38,7 @@ import { NethLinkController } from './classes/controllers/NethLinkController' import { SplashScreenController } from './classes/controllers/SplashScreenController' import { delay, isDev } from '@shared/utils/utils' import { IPC_EVENTS, GIT_RELEASES_URL } from '@shared/constants' +import { findUpdate, ReleaseInfo } from '@shared/utils/version' import { NetworkController } from './classes/controllers/NetworkController' import { AppController } from './classes/controllers/AppController' import { @@ -994,6 +996,9 @@ async function createNethLink(show: boolean = true) { await delay(1000) new PhoneIslandController() new ChatIslandController() + if (TrayController.instance) { + TrayController.instance.checkForUpdates = () => checkForUpdate(true) + } checkForUpdate() const account = store.get('account') as Account if (account) { @@ -1024,14 +1029,28 @@ async function createNethLink(show: boolean = true) { } } -async function checkForUpdate() { +// manual: asked from the tray menu, it says when there is nothing to update +async function checkForUpdate(manual = false) { try { - Log.info('Current app version:', app.getVersion(), 'check for updates...') - const latestVersionData = + const currentVersion = app.getVersion() + Log.info('Current app version:', currentVersion, 'check for updates...') + const releases: ReleaseInfo[] = await NetworkController.instance.get(GIT_RELEASES_URL) - Log.info('Head add version:', latestVersionData.name) - if (latestVersionData.name !== 'v' + app.getVersion() || isDev()) { - NethLinkController.instance.sendUpdateNotification() + const found = findUpdate(currentVersion, releases || []) + Log.info('Update found:', found?.tag_name || 'none') + const update = found + ? { version: found.tag_name.replace(/^v/, ''), url: found.html_url } + : undefined + TrayController.instance?.setUpdate(update) + if (update) { + NethLinkController.instance?.sendUpdateNotification(update) + } else if (manual) { + new Notification({ + title: i18next.t('Tray.Up to date title') as string, + body: i18next.t('Tray.Up to date description', { + version: currentVersion, + }) as string, + }).show() } } catch (error: any) { Log.warning( diff --git a/src/shared/utils/version.ts b/src/shared/utils/version.ts new file mode 100644 index 00000000..2a9001ae --- /dev/null +++ b/src/shared/utils/version.ts @@ -0,0 +1,65 @@ +// Versions are vX.Y.Z for a stable release and vX.Y.Z-testing.N for a testing +// pre-release, published on every push to main. + +type ParsedVersion = { + major: number + minor: number + patch: number + // the testing number, undefined for a stable release + testing?: number +} + +export const parseVersion = (version: string): ParsedVersion | undefined => { + const match = /^v?(\d+)\.(\d+)\.(\d+)(?:-testing\.(\d+))?$/.exec( + version.trim(), + ) + if (!match) return undefined + return { + major: Number(match[1]), + minor: Number(match[2]), + patch: Number(match[3]), + testing: match[4] === undefined ? undefined : Number(match[4]), + } +} + +export const isTestingVersion = (version: string) => + parseVersion(version)?.testing !== undefined + +// > 0 when a is newer than b; the testing releases of X.Y.Z come before X.Y.Z +export const compareVersions = (a: string, b: string): number => { + const va = parseVersion(a) + const vb = parseVersion(b) + if (!va || !vb) return 0 + for (const key of ['major', 'minor', 'patch'] as const) { + if (va[key] !== vb[key]) return va[key] - vb[key] + } + if (va.testing === vb.testing) return 0 + if (va.testing === undefined) return 1 + if (vb.testing === undefined) return -1 + return va.testing - vb.testing +} + +export type ReleaseInfo = { + tag_name: string + html_url: string + draft?: boolean + prerelease?: boolean +} + +// The newest release the user should update to: a stable installation only +// looks at the stable releases already promoted (an official release is +// published as a pre-release and promoted by hand), a testing one at every +// testing and stable release. +export const findUpdate = ( + currentVersion: string, + releases: ReleaseInfo[], +): ReleaseInfo | undefined => { + const onTesting = isTestingVersion(currentVersion) + return releases + .filter((r) => !r.draft && parseVersion(r.tag_name)) + .filter( + (r) => onTesting || (!isTestingVersion(r.tag_name) && !r.prerelease), + ) + .filter((r) => compareVersions(r.tag_name, currentVersion) > 0) + .sort((a, b) => compareVersions(b.tag_name, a.tag_name))[0] +} From bfedb17eff6e0ac3190c071eb7bb41a239542009 Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 20 Nov 2026 16:47:23 +0100 Subject: [PATCH 4/9] fix(macos): show NethLink in the Dock and Cmd+Tab NethLink lives in the menu bar without a Dock icon, so macOS left its login and main windows out of the Dock and of Cmd+Tab. The icon now shows while one of these windows is open. Assisted-by: Claude Code:Sonnet 5.5 --- src/main/classes/windows/LoginWindow.ts | 2 ++ src/main/classes/windows/NethLinkWindow.ts | 3 +++ src/main/lib/dock.ts | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/main/lib/dock.ts diff --git a/src/main/classes/windows/LoginWindow.ts b/src/main/classes/windows/LoginWindow.ts index 8331dc6c..185bfdfb 100644 --- a/src/main/classes/windows/LoginWindow.ts +++ b/src/main/classes/windows/LoginWindow.ts @@ -4,6 +4,7 @@ import { BaseWindow } from './BaseWindow' import { LoginPageSize } from '@shared/constants' import { Log } from '@shared/utils/logger' import { debouncer } from '@shared/utils/utils' +import { syncDockWithWindows } from '@/lib/dock' export const LOGIN_WINDOW_WIDTH = 500 export class LoginWindow extends BaseWindow { @@ -74,6 +75,7 @@ export class LoginWindow extends BaseWindow { } async toggleVisibility() { + syncDockWithWindows() debouncer('loginToggleVisibility', async () => { TrayController.instance.updateTray({ enableShowButton: true, diff --git a/src/main/classes/windows/NethLinkWindow.ts b/src/main/classes/windows/NethLinkWindow.ts index 8310afb3..01e1a775 100644 --- a/src/main/classes/windows/NethLinkWindow.ts +++ b/src/main/classes/windows/NethLinkWindow.ts @@ -6,6 +6,7 @@ import { NethLinkPageSize } from '@shared/constants' import { Log } from '@shared/utils/logger' import { debouncer, delay } from '@shared/utils/utils' import { AccountController } from '../controllers' +import { syncDockWithWindows } from '@/lib/dock' export class NethLinkWindow extends BaseWindow { static instance: NethLinkWindow @@ -171,6 +172,8 @@ export class NethLinkWindow extends BaseWindow { } async toggleVisibility() { + // in the Dock and in Cmd+Tab while the window is open + syncDockWithWindows() debouncer('nethlinkToggleVisibility', async () => { await delay(250) TrayController.instance.updateTray({ diff --git a/src/main/lib/dock.ts b/src/main/lib/dock.ts new file mode 100644 index 00000000..f29e9e75 --- /dev/null +++ b/src/main/lib/dock.ts @@ -0,0 +1,19 @@ +import { app } from 'electron' +import { Log } from '@shared/utils/logger' +import { LoginController } from '@/classes/controllers/LoginController' +import { NethLinkController } from '@/classes/controllers/NethLinkController' + +// NethLink lives in the menu bar without a Dock icon. While the login or the +// main window is open, the icon is shown: without it macOS leaves the app out +// of the Dock and of Cmd+Tab +export function syncDockWithWindows() { + if (process.platform !== 'darwin' || !app.dock) return + const isAnyWindowOpen = + !!LoginController.instance?.window?.isOpen() || + !!NethLinkController.instance?.window?.isOpen() + if (isAnyWindowOpen && !app.dock.isVisible()) { + app.dock.show().catch((e) => Log.warning('cannot show the Dock icon', e)) + } else if (!isAnyWindowOpen && app.dock.isVisible()) { + app.dock.hide() + } +} From 27fa55a0935399fba2ce20c19551e07f79459c82 Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Fri, 20 Nov 2026 16:47:23 +0100 Subject: [PATCH 5/9] style: align the interface with the Nebula design Spacing, rows, hover, focus, icons, colors and texts follow the Nebula design system across the main window, the login, the account list and the command bar: one inset and row layout for every list, hover only on what can be clicked, a visible keyboard focus, real buttons with labels and tooltips, the icons of the design system and texts that follow its writing guidelines and glossary. The settings dialogs use the shared modal component, which keeps the focus inside and closes on Escape, with the title and the buttons always in view. Assisted-by: Claude Code:Sonnet 5.5 --- src/renderer/src/App.tsx | 9 + src/renderer/src/components/EmptyList.tsx | 21 +- src/renderer/src/components/ModuleTitle.tsx | 17 +- .../BaseModule/ContactNameAndAction.tsx | 137 +++--- .../NethVoice/BaseModule/FavouritesStar.tsx | 51 ++- .../Modules/NethVoice/BaseModule/Navbar.tsx | 36 +- .../NethVoice/BaseModule/ProfileDialog.tsx | 45 +- .../DeviceSettings/DeviceBox.tsx | 4 +- .../BaseModule/ProfileDialog/Line.tsx | 7 +- .../BaseModule/ProfileDialog/MenuAction.tsx | 45 +- .../BaseModule/ProfileDialog/MenuPage.tsx | 38 +- .../ProfileDialog/OptionElement.tsx | 35 +- .../PresenceSettings/PresenceBadge.tsx | 2 +- .../PresenceForwardDialog.tsx | 114 +++-- .../PresenceSettings/PresenceItem.tsx | 48 ++- .../BaseModule/ProfileDialog/ProfileData.tsx | 14 +- .../SettingsSettings/SettingsBox.tsx | 8 +- .../SettingsChangePasswordDialog.tsx | 102 ++--- .../SettingsCommandBarShortcutDialog.tsx | 210 +++++----- .../SettingsDevicesDialog.tsx | 239 +++++------ .../SettingsIncomingCallsDialog.tsx | 396 +++++++++--------- .../SettingsNotificationsDialog.tsx | 222 +++++----- .../SettingsShortcutDialog.tsx | 204 ++++----- .../ProfileDialog/ThemeSettings/ThemeBox.tsx | 4 +- .../Modules/NethVoice/Chat/ChatModule.tsx | 244 ++++++----- .../Modules/NethVoice/LastCalls/LastCall.tsx | 85 ++-- .../NethVoice/LastCalls/LastCallsBox.tsx | 63 ++- .../Modules/NethVoice/Parking/ParkedCall.tsx | 183 ++++---- .../NethVoice/Parking/ParkedCallSkeleton.tsx | 21 +- .../Modules/NethVoice/Parking/ParkingBox.tsx | 41 +- .../PhonebookModule/AddToPhonebookBox.tsx | 140 ++++--- .../NethVoice/SearchResults/SearchBox.tsx | 16 +- .../NethVoice/SearchResults/SearchNumber.tsx | 55 ++- .../SearchResults/SearchNumberBox.tsx | 57 ++- .../SearchResults/SearchNumberDetail.tsx | 77 ++-- .../Speeddials/Favourites/FavouriteFilter.tsx | 107 ++--- .../Speeddials/Favourites/FavouritesBox.tsx | 16 +- .../SpeedDials/SpeedDialDeleteDialog.tsx | 17 +- .../SpeedDials/SpeedDialFormBox.tsx | 17 +- .../Speeddials/SpeedDials/SpeedDialsBox.tsx | 16 +- .../Speeddials/shared/ContactNumber.tsx | 148 +++---- .../src/components/Nethesis/TextInput.tsx | 55 ++- src/renderer/src/components/Scrollable.tsx | 7 +- src/renderer/src/components/SkeletonRow.tsx | 17 +- .../login/AvailableAccountDeleteDialog.tsx | 28 +- .../login/AvailableAccountList.tsx | 44 +- .../login/DisplayedAccountLogin.tsx | 97 +++-- .../pageComponents/login/LoginForm.tsx | 95 +++-- .../pageComponents/login/OTPInput.tsx | 5 +- .../password/PasswordChangeForm.tsx | 237 +++++++---- src/renderer/src/index.css | 10 +- src/renderer/src/pages/CommandBarPage.tsx | 231 +++++----- src/renderer/src/pages/LoginPage.tsx | 19 +- src/renderer/src/theme/Theme.ts | 30 +- tailwind.config.js | 36 +- 55 files changed, 2232 insertions(+), 1990 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index bd2911dc..d32e129e 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -178,6 +178,15 @@ const Layout = ({ theme, page }: { theme?: AvailableThemes; page?: PAGES }) => { setIsCSSLoaded(true) } + // the theme also on , for what Headless UI moves to a portal in , + // such as the anchored menus; the islands keep their own theme handling + useEffect(() => { + if (page === PAGES.PHONEISLAND || page === PAGES.CHATISLAND) return + const root = document.documentElement + root.classList.remove('dark', 'light') + if (theme) root.classList.add(theme) + }, [theme, page]) + if (!isCSSLoaded) { return
} diff --git a/src/renderer/src/components/EmptyList.tsx b/src/renderer/src/components/EmptyList.tsx index 6b8197b8..8d587d6e 100644 --- a/src/renderer/src/components/EmptyList.tsx +++ b/src/renderer/src/components/EmptyList.tsx @@ -1,6 +1,5 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import classNames from 'classnames' import { TimedComponent } from './TimedComponent' export interface EmptyListProps { @@ -11,20 +10,18 @@ export interface EmptyListProps { export const EmptyList = ({ icon, text, subtitle }: EmptyListProps) => { return ( -
-
- -
-
- +
+