mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	Compare commits
	
		
			72 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					dcc7cd118c | ||
| 
						 | 
					d2649dd5d7 | ||
| 
						 | 
					25e6f6d482 | ||
| 
						 | 
					bd805b8324 | ||
| 
						 | 
					e1d98e0d8e | ||
| 
						 | 
					89e5d2892b | ||
| 
						 | 
					ab28b56377 | ||
| 
						 | 
					71aa7e28ba | ||
| 
						 | 
					ba2bfba459 | ||
| 
						 | 
					d181b0c2e5 | ||
| 
						 | 
					bda5c62928 | ||
| 
						 | 
					b2b4fd1003 | ||
| 
						 | 
					19770f5fbf | ||
| 
						 | 
					4592396c4b | ||
| 
						 | 
					19d3c0f5b5 | ||
| 
						 | 
					af87789c7f | ||
| 
						 | 
					36e710dbfe | ||
| 
						 | 
					a6e1c93d81 | ||
| 
						 | 
					684d88dd7f | ||
| 
						 | 
					45aedbd9db | ||
| 
						 | 
					6f411a819c | ||
| 
						 | 
					097738332b | ||
| 
						 | 
					b777f8a50f | ||
| 
						 | 
					50f06239bb | ||
| 
						 | 
					94cbc786d6 | ||
| 
						 | 
					75abf38515 | ||
| 
						 | 
					c1af019182 | ||
| 
						 | 
					1ea8aea22a | ||
| 
						 | 
					a7e418885a | ||
| 
						 | 
					0ac823c85b | ||
| 
						 | 
					1096188ddf | ||
| 
						 | 
					8d0b68316c | ||
| 
						 | 
					c45ad7096f | ||
| 
						 | 
					5ca7937e52 | ||
| 
						 | 
					481b99a2ab | ||
| 
						 | 
					7eb4adf722 | ||
| 
						 | 
					4d21a8f8d8 | ||
| 
						 | 
					94270af265 | ||
| 
						 | 
					177bff6113 | ||
| 
						 | 
					b4fa4cacb6 | ||
| 
						 | 
					06abf6716a | ||
| 
						 | 
					0ad4ea4fdf | ||
| 
						 | 
					2ece432d19 | ||
| 
						 | 
					10cd7850ca | ||
| 
						 | 
					86e3d06e52 | ||
| 
						 | 
					6ebc9acbf4 | ||
| 
						 | 
					278dc686e1 | ||
| 
						 | 
					cec98c030e | ||
| 
						 | 
					f10d6eb115 | ||
| 
						 | 
					8c5e928e9c | ||
| 
						 | 
					8d142c8c3f | ||
| 
						 | 
					a09769c560 | ||
| 
						 | 
					bb99015fd2 | ||
| 
						 | 
					24f5c9b226 | ||
| 
						 | 
					dc6c4be5fe | ||
| 
						 | 
					50647e330b | ||
| 
						 | 
					73dc3db436 | ||
| 
						 | 
					09cf21bf49 | ||
| 
						 | 
					c30d0cc77b | ||
| 
						 | 
					872ad4d3e7 | ||
| 
						 | 
					6fd9e1be8b | ||
| 
						 | 
					76c7f24161 | ||
| 
						 | 
					f9c270492c | ||
| 
						 | 
					371c580934 | ||
| 
						 | 
					3eec4c2209 | ||
| 
						 | 
					debbfb6b7d | ||
| 
						 | 
					8bd1492586 | ||
| 
						 | 
					1115c6d5c3 | ||
| 
						 | 
					9ba279213c | ||
| 
						 | 
					89c35cb1d4 | ||
| 
						 | 
					21d6eb52c5 | ||
| 
						 | 
					aa1538837b | 
							
								
								
									
										3
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitattributes
									
									
									
									
										vendored
									
									
								
							@@ -1 +1,4 @@
 | 
			
		||||
* text=auto
 | 
			
		||||
 | 
			
		||||
package-lock.json binary
 | 
			
		||||
app/package-lock.json binary
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								README.md
									
									
									
									
									
								
							@@ -2,31 +2,26 @@
 | 
			
		||||
[](https://travis-ci.org/zulip/zulip-electron)
 | 
			
		||||
[](https://ci.appveyor.com/project/akashnimare/zulip-electron/branch/master)
 | 
			
		||||
[](https://github.com/sindresorhus/xo)
 | 
			
		||||
[](https://chat.zulip.org)
 | 
			
		||||
 | 
			
		||||
Desktop client for Zulip. Available for Mac, Linux and Windows.
 | 
			
		||||
Desktop client for Zulip. Available for Mac, Linux, and Windows.
 | 
			
		||||
 | 
			
		||||
<img src="http://i.imgur.com/ChzTq4F.png"/>
 | 
			
		||||
 | 
			
		||||
# Download
 | 
			
		||||
Please see [installation guide](https://zulipchat.com/help/desktop-app-install-guide).
 | 
			
		||||
Please see the [installation guide](https://zulipchat.com/help/desktop-app-install-guide).
 | 
			
		||||
 | 
			
		||||
# Features
 | 
			
		||||
* Sign in to multiple teams
 | 
			
		||||
* Desktop Notifications with inline reply support
 | 
			
		||||
* Multilanguage SpellChecker
 | 
			
		||||
* OSX/Win/Linux installers
 | 
			
		||||
* Automatic Updates (macOS/Windows/Linux)
 | 
			
		||||
* Keyboard shortcuts
 | 
			
		||||
 | 
			
		||||
# Development
 | 
			
		||||
Please see our [development guide](./development.md) to get started and run app locally.
 | 
			
		||||
* Sign in to multiple organizations
 | 
			
		||||
* Desktop notifications with inline reply
 | 
			
		||||
* Tray/dock integration
 | 
			
		||||
* Multi-language spell checker
 | 
			
		||||
* Automatic updates
 | 
			
		||||
 | 
			
		||||
# Contribute
 | 
			
		||||
 | 
			
		||||
If you want to contribute please make sure to read [our documentation about contributing](./CONTRIBUTING.md) first.
 | 
			
		||||
 | 
			
		||||
* [Issue Tracker](https://github.com/zulip/zulip-electron/issues)
 | 
			
		||||
* [Source Code](https://github.com/zulip/zulip-electron/)
 | 
			
		||||
First, join us on the [Zulip community server](https://zulip.readthedocs.io/en/latest/contributing/chat-zulip-org.html)! 
 | 
			
		||||
Also see our [contribution guidelines](./CONTRIBUTING.md) and our [development guide](./development.md).
 | 
			
		||||
 | 
			
		||||
# License
 | 
			
		||||
Released under the [Apache-2.0](./LICENSE) license.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
const path = require('path');
 | 
			
		||||
const fs = require('fs');
 | 
			
		||||
 | 
			
		||||
const electron = require('electron');
 | 
			
		||||
const windowStateKeeper = require('electron-window-state');
 | 
			
		||||
const isDev = require('electron-is-dev');
 | 
			
		||||
@@ -156,6 +158,13 @@ app.on('ready', () => {
 | 
			
		||||
	});
 | 
			
		||||
	mainWindow = createMainWindow();
 | 
			
		||||
 | 
			
		||||
	// Auto-hide menu bar on Windows + Linux
 | 
			
		||||
	if (process.platform !== 'darwin') {
 | 
			
		||||
		const shouldHideMenu = ConfigUtil.getConfigItem('autoHideMenubar') || false;
 | 
			
		||||
		mainWindow.setAutoHideMenuBar(shouldHideMenu);
 | 
			
		||||
		mainWindow.setMenuBarVisibility(!shouldHideMenu);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Initialize sentry for main process
 | 
			
		||||
	sentryInit();
 | 
			
		||||
 | 
			
		||||
@@ -176,7 +185,7 @@ app.on('ready', () => {
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	page.once('did-frame-finish-load', () => {
 | 
			
		||||
		// Initate auto-updates on MacOS and Windows
 | 
			
		||||
		// Initiate auto-updates on MacOS and Windows
 | 
			
		||||
		if (ConfigUtil.getConfigItem('autoUpdate')) {
 | 
			
		||||
			appUpdater();
 | 
			
		||||
		}
 | 
			
		||||
@@ -196,6 +205,32 @@ app.on('ready', () => {
 | 
			
		||||
		app.quit();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	// Show pdf in a new BrowserWindow
 | 
			
		||||
	ipcMain.on('pdf-view', (event, url) => {
 | 
			
		||||
		// Paddings for pdfWindow so that it fits into the main browserWindow
 | 
			
		||||
		const paddingWidth = 55;
 | 
			
		||||
		const paddingHeight = 22;
 | 
			
		||||
 | 
			
		||||
		// Get the config of main browserWindow
 | 
			
		||||
		const mainWindowState = global.mainWindowState;
 | 
			
		||||
 | 
			
		||||
		// Window to view the pdf file
 | 
			
		||||
		const pdfWindow = new electron.BrowserWindow({
 | 
			
		||||
			x: mainWindowState.x + paddingWidth,
 | 
			
		||||
			y: mainWindowState.y + paddingHeight,
 | 
			
		||||
			width: mainWindowState.width - paddingWidth,
 | 
			
		||||
			height: mainWindowState.height - paddingHeight,
 | 
			
		||||
			webPreferences: {
 | 
			
		||||
				plugins: true,
 | 
			
		||||
				partition: 'persist:webviewsession'
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
		pdfWindow.loadURL(url);
 | 
			
		||||
 | 
			
		||||
		// We don't want to have the menu bar in pdf window
 | 
			
		||||
		pdfWindow.setMenu(null);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	// Reload full app not just webview, useful in debugging
 | 
			
		||||
	ipcMain.on('reload-full-app', () => {
 | 
			
		||||
		mainWindow.reload();
 | 
			
		||||
@@ -209,10 +244,10 @@ app.on('ready', () => {
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	ipcMain.on('toggle-app', () => {
 | 
			
		||||
		if (mainWindow.isVisible()) {
 | 
			
		||||
			mainWindow.hide();
 | 
			
		||||
		} else {
 | 
			
		||||
		if (!mainWindow.isVisible() || mainWindow.isMinimized()) {
 | 
			
		||||
			mainWindow.show();
 | 
			
		||||
		} else {
 | 
			
		||||
			mainWindow.hide();
 | 
			
		||||
		}
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
@@ -220,6 +255,11 @@ app.on('ready', () => {
 | 
			
		||||
		BadgeSettings.updateBadge(badgeCount, mainWindow);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	ipcMain.on('toggle-menubar', (event, showMenubar) => {
 | 
			
		||||
		mainWindow.setAutoHideMenuBar(showMenubar);
 | 
			
		||||
		mainWindow.setMenuBarVisibility(!showMenubar);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	ipcMain.on('update-badge', (event, messageCount) => {
 | 
			
		||||
		badgeCount = messageCount;
 | 
			
		||||
		BadgeSettings.updateBadge(badgeCount, mainWindow);
 | 
			
		||||
@@ -246,7 +286,26 @@ app.on('ready', () => {
 | 
			
		||||
		page.downloadURL(url);
 | 
			
		||||
		page.session.once('will-download', (event, item) => {
 | 
			
		||||
			const filePath = path.join(downloadPath, item.getFilename());
 | 
			
		||||
			item.setSavePath(filePath);
 | 
			
		||||
 | 
			
		||||
			const getTimeStamp = () => {
 | 
			
		||||
				const date = new Date();
 | 
			
		||||
				return date.getTime();
 | 
			
		||||
			};
 | 
			
		||||
 | 
			
		||||
			const formatFile = filePath => {
 | 
			
		||||
				const fileExtension = path.extname(filePath);
 | 
			
		||||
				const baseName = path.basename(filePath, fileExtension);
 | 
			
		||||
				return `${baseName}-${getTimeStamp()}${fileExtension}`;
 | 
			
		||||
			};
 | 
			
		||||
 | 
			
		||||
			// Update the name and path of the file if it already exists
 | 
			
		||||
 | 
			
		||||
			const updatedFilePath = path.join(downloadPath, formatFile(filePath));
 | 
			
		||||
 | 
			
		||||
			const setFilePath = fs.existsSync(filePath) ? updatedFilePath : filePath;
 | 
			
		||||
 | 
			
		||||
			item.setSavePath(setFilePath);
 | 
			
		||||
 | 
			
		||||
			item.on('updated', (event, state) => {
 | 
			
		||||
				switch (state) {
 | 
			
		||||
					case 'interrupted': {
 | 
			
		||||
@@ -259,7 +318,7 @@ app.on('ready', () => {
 | 
			
		||||
						if (item.isPaused()) {
 | 
			
		||||
							item.cancel();
 | 
			
		||||
						}
 | 
			
		||||
						// This event can also be used to show progres in percentage in future.
 | 
			
		||||
						// This event can also be used to show progress in percentage in future.
 | 
			
		||||
						break;
 | 
			
		||||
					}
 | 
			
		||||
					default: {
 | 
			
		||||
@@ -268,8 +327,9 @@ app.on('ready', () => {
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
			item.once('done', (event, state) => {
 | 
			
		||||
				const getFileName = fs.existsSync(filePath) ? formatFile(filePath) : item.getFilename();
 | 
			
		||||
				if (state === 'completed') {
 | 
			
		||||
					page.send('downloadFileCompleted', item.getSavePath(), item.getFilename());
 | 
			
		||||
					page.send('downloadFileCompleted', item.getSavePath(), getFileName);
 | 
			
		||||
				} else {
 | 
			
		||||
					console.log('Download failed state: ', state);
 | 
			
		||||
					page.send('downloadFileFailed');
 | 
			
		||||
@@ -280,6 +340,10 @@ app.on('ready', () => {
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	ipcMain.on('realm-name-changed', (event, serverURL, realmName) => {
 | 
			
		||||
		page.send('update-realm-name', serverURL, realmName);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	ipcMain.on('realm-icon-changed', (event, serverURL, iconURL) => {
 | 
			
		||||
		page.send('update-realm-icon', serverURL, iconURL);
 | 
			
		||||
	});
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,7 @@ const { Notification } = require('electron');
 | 
			
		||||
const request = require('request');
 | 
			
		||||
const semver = require('semver');
 | 
			
		||||
const ConfigUtil = require('../renderer/js/utils/config-util');
 | 
			
		||||
const ProxyUtil = require('../renderer/js/utils/proxy-util');
 | 
			
		||||
const LinuxUpdateUtil = require('../renderer/js/utils/linux-update-util');
 | 
			
		||||
const Logger = require('../renderer/js/utils/logger-util');
 | 
			
		||||
 | 
			
		||||
@@ -15,10 +16,12 @@ const logger = new Logger({
 | 
			
		||||
function linuxUpdateNotification() {
 | 
			
		||||
	let	url = 'https://api.github.com/repos/zulip/zulip-electron/releases';
 | 
			
		||||
	url = ConfigUtil.getConfigItem('betaUpdate') ? url : url + '/latest';
 | 
			
		||||
	const proxyEnabled = ConfigUtil.getConfigItem('useManualProxy') || ConfigUtil.getConfigItem('useSystemProxy');
 | 
			
		||||
 | 
			
		||||
	const options = {
 | 
			
		||||
		url,
 | 
			
		||||
		headers: {'User-Agent': 'request'}
 | 
			
		||||
		headers: {'User-Agent': 'request'},
 | 
			
		||||
		proxy: proxyEnabled ? ProxyUtil.getProxy(url) : ''
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	request(options, (error, response, body) => {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										172
									
								
								app/main/menu.js
									
									
									
									
									
								
							
							
						
						
									
										172
									
								
								app/main/menu.js
									
									
									
									
									
								
							@@ -39,6 +39,65 @@ class AppMenu {
 | 
			
		||||
		}];
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getToolsSubmenu() {
 | 
			
		||||
		return [{
 | 
			
		||||
			label: `Check for Updates`,
 | 
			
		||||
			click() {
 | 
			
		||||
				AppMenu.checkForUpdate();
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			label: `Release Notes`,
 | 
			
		||||
			click() {
 | 
			
		||||
				shell.openExternal(`https://github.com/zulip/zulip-electron/releases/tag/v${app.getVersion()}`);
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			type: 'separator'
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Factory Reset',
 | 
			
		||||
			accelerator: process.platform === 'darwin' ? 'Command+Shift+D' : 'Ctrl+Shift+D',
 | 
			
		||||
			click() {
 | 
			
		||||
				AppMenu.resetAppSettings();
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Download App Logs',
 | 
			
		||||
			click() {
 | 
			
		||||
				const zip = new AdmZip();
 | 
			
		||||
				let date = new Date();
 | 
			
		||||
				date = date.toLocaleDateString().replace(/\//g, '-');
 | 
			
		||||
 | 
			
		||||
				// Create a zip file of all the logs and config data
 | 
			
		||||
				zip.addLocalFolder(`${app.getPath('appData')}/${appName}/Logs`);
 | 
			
		||||
				zip.addLocalFolder(`${app.getPath('appData')}/${appName}/config`);
 | 
			
		||||
 | 
			
		||||
				// Put the log file in downloads folder
 | 
			
		||||
				const logFilePath = `${app.getPath('downloads')}/Zulip-logs-${date}.zip`;
 | 
			
		||||
				zip.writeZip(logFilePath);
 | 
			
		||||
 | 
			
		||||
				// Open and select the log file
 | 
			
		||||
				shell.showItemInFolder(logFilePath);
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			type: 'separator'
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Toggle DevTools for Zulip App',
 | 
			
		||||
			accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
 | 
			
		||||
			click(item, focusedWindow) {
 | 
			
		||||
				if (focusedWindow) {
 | 
			
		||||
					focusedWindow.webContents.toggleDevTools();
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Toggle DevTools for Active Tab',
 | 
			
		||||
			accelerator: process.platform === 'darwin' ? 'Alt+Command+U' : 'Ctrl+Shift+U',
 | 
			
		||||
			click(item, focusedWindow) {
 | 
			
		||||
				if (focusedWindow) {
 | 
			
		||||
					AppMenu.sendAction('tab-devtools');
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}];
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getViewSubmenu() {
 | 
			
		||||
		return [{
 | 
			
		||||
			label: 'Reload',
 | 
			
		||||
@@ -103,62 +162,30 @@ class AppMenu {
 | 
			
		||||
					ConfigUtil.setConfigItem('showSidebar', newValue);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Toggle DevTools for Zulip App',
 | 
			
		||||
			accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
 | 
			
		||||
			click(item, focusedWindow) {
 | 
			
		||||
				if (focusedWindow) {
 | 
			
		||||
					focusedWindow.webContents.toggleDevTools();
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Toggle DevTools for Active Tab',
 | 
			
		||||
			accelerator: process.platform === 'darwin' ? 'Alt+Command+U' : 'Ctrl+Shift+U',
 | 
			
		||||
			click(item, focusedWindow) {
 | 
			
		||||
				if (focusedWindow) {
 | 
			
		||||
					AppMenu.sendAction('tab-devtools');
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}];
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getHelpSubmenu() {
 | 
			
		||||
		return [
 | 
			
		||||
			{
 | 
			
		||||
				label: `${appName + ' Desktop-'} v${app.getVersion()}`,
 | 
			
		||||
				label: `${appName + ' Desktop'} v${app.getVersion()}`,
 | 
			
		||||
				enabled: false
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				label: `What's New...`,
 | 
			
		||||
				click() {
 | 
			
		||||
					shell.openExternal(`https://github.com/zulip/zulip-electron/releases/tag/v${app.getVersion()}`);
 | 
			
		||||
				label: 'About Zulip',
 | 
			
		||||
				click(item, focusedWindow) {
 | 
			
		||||
					if (focusedWindow) {
 | 
			
		||||
						AppMenu.sendAction('open-about');
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				label: `${appName} Help`,
 | 
			
		||||
				label: `Help Center`,
 | 
			
		||||
				click() {
 | 
			
		||||
					shell.openExternal('https://zulipchat.com/help/');
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Show App Logs',
 | 
			
		||||
				click() {
 | 
			
		||||
					const zip = new AdmZip();
 | 
			
		||||
					let date = new Date();
 | 
			
		||||
					date = date.toLocaleDateString().replace(/\//g, '-');
 | 
			
		||||
 | 
			
		||||
					// Create a zip file of all the logs and config data
 | 
			
		||||
					zip.addLocalFolder(`${app.getPath('appData')}/${appName}/Logs`);
 | 
			
		||||
					zip.addLocalFolder(`${app.getPath('appData')}/${appName}/config`);
 | 
			
		||||
 | 
			
		||||
					// Put the log file in downloads folder
 | 
			
		||||
					const logFilePath = `${app.getPath('downloads')}/Zulip-logs-${date}.zip`;
 | 
			
		||||
					zip.writeZip(logFilePath);
 | 
			
		||||
 | 
			
		||||
					// Open and select the log file
 | 
			
		||||
					shell.showItemInFolder(logFilePath);
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Report an Issue...',
 | 
			
		||||
				label: 'Report an Issue',
 | 
			
		||||
				click() {
 | 
			
		||||
					// the goal is to notify the main.html BrowserWindow
 | 
			
		||||
					// which may not be the focused window.
 | 
			
		||||
@@ -210,21 +237,7 @@ class AppMenu {
 | 
			
		||||
		return [{
 | 
			
		||||
			label: `${app.getName()}`,
 | 
			
		||||
			submenu: [{
 | 
			
		||||
				label: 'About Zulip',
 | 
			
		||||
				click(item, focusedWindow) {
 | 
			
		||||
					if (focusedWindow) {
 | 
			
		||||
						AppMenu.sendAction('open-about');
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: `Check for Update`,
 | 
			
		||||
				click() {
 | 
			
		||||
					AppMenu.checkForUpdate();
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				type: 'separator'
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Desktop App Settings',
 | 
			
		||||
				label: 'Desktop Settings',
 | 
			
		||||
				accelerator: 'Cmd+,',
 | 
			
		||||
				click(item, focusedWindow) {
 | 
			
		||||
					if (focusedWindow) {
 | 
			
		||||
@@ -248,12 +261,6 @@ class AppMenu {
 | 
			
		||||
					const dndUtil = DNDUtil.toggle();
 | 
			
		||||
					AppMenu.sendAction('toggle-dnd', dndUtil.dnd, dndUtil.newSettings);
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Reset App Settings',
 | 
			
		||||
				accelerator: 'Command+Shift+D',
 | 
			
		||||
				click() {
 | 
			
		||||
					AppMenu.resetAppSettings();
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Log Out',
 | 
			
		||||
				accelerator: 'Cmd+L',
 | 
			
		||||
@@ -296,8 +303,6 @@ class AppMenu {
 | 
			
		||||
				role: 'paste'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'pasteandmatchstyle'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'delete'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'selectall'
 | 
			
		||||
			}]
 | 
			
		||||
@@ -310,6 +315,9 @@ class AppMenu {
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Window',
 | 
			
		||||
			submenu: this.getWindowSubmenu(tabs, activeTabIndex)
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Tools',
 | 
			
		||||
			submenu: this.getToolsSubmenu()
 | 
			
		||||
		}, {
 | 
			
		||||
			role: 'help',
 | 
			
		||||
			submenu: this.getHelpSubmenu()
 | 
			
		||||
@@ -320,23 +328,9 @@ class AppMenu {
 | 
			
		||||
		const { tabs, activeTabIndex } = props;
 | 
			
		||||
 | 
			
		||||
		return [{
 | 
			
		||||
			label: 'File',
 | 
			
		||||
			label: '&File',
 | 
			
		||||
			submenu: [{
 | 
			
		||||
				label: 'About Zulip',
 | 
			
		||||
				click(item, focusedWindow) {
 | 
			
		||||
					if (focusedWindow) {
 | 
			
		||||
						AppMenu.sendAction('open-about');
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: `Check for Update`,
 | 
			
		||||
				click() {
 | 
			
		||||
					AppMenu.checkForUpdate();
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				type: 'separator'
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Desktop App Settings',
 | 
			
		||||
				label: 'Desktop Settings',
 | 
			
		||||
				accelerator: 'Ctrl+,',
 | 
			
		||||
				click(item, focusedWindow) {
 | 
			
		||||
					if (focusedWindow) {
 | 
			
		||||
@@ -362,12 +356,6 @@ class AppMenu {
 | 
			
		||||
					const dndUtil = DNDUtil.toggle();
 | 
			
		||||
					AppMenu.sendAction('toggle-dnd', dndUtil.dnd, dndUtil.newSettings);
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Reset App Settings',
 | 
			
		||||
				accelerator: 'Ctrl+Shift+D',
 | 
			
		||||
				click() {
 | 
			
		||||
					AppMenu.resetAppSettings();
 | 
			
		||||
				}
 | 
			
		||||
			}, {
 | 
			
		||||
				label: 'Log Out',
 | 
			
		||||
				accelerator: 'Ctrl+L',
 | 
			
		||||
@@ -383,7 +371,7 @@ class AppMenu {
 | 
			
		||||
				accelerator: 'Ctrl+Q'
 | 
			
		||||
			}]
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Edit',
 | 
			
		||||
			label: '&Edit',
 | 
			
		||||
			submenu: [{
 | 
			
		||||
				role: 'undo'
 | 
			
		||||
			}, {
 | 
			
		||||
@@ -398,23 +386,25 @@ class AppMenu {
 | 
			
		||||
				role: 'paste'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'pasteandmatchstyle'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'delete'
 | 
			
		||||
			}, {
 | 
			
		||||
				type: 'separator'
 | 
			
		||||
			}, {
 | 
			
		||||
				role: 'selectall'
 | 
			
		||||
			}]
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'View',
 | 
			
		||||
			label: '&View',
 | 
			
		||||
			submenu: this.getViewSubmenu()
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'History',
 | 
			
		||||
			label: '&History',
 | 
			
		||||
			submenu: this.getHistorySubmenu()
 | 
			
		||||
		}, {
 | 
			
		||||
			label: 'Window',
 | 
			
		||||
			label: '&Window',
 | 
			
		||||
			submenu: this.getWindowSubmenu(tabs, activeTabIndex)
 | 
			
		||||
		}, {
 | 
			
		||||
			label: '&Tools',
 | 
			
		||||
			submenu: this.getToolsSubmenu()
 | 
			
		||||
		}, {
 | 
			
		||||
			label: '&Help',
 | 
			
		||||
			role: 'help',
 | 
			
		||||
			submenu: this.getHelpSubmenu()
 | 
			
		||||
		}];
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										196
									
								
								app/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										196
									
								
								app/package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -1,13 +1,13 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "zulip",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "version": "2.3.82",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@electron-elements/send-feedback": {
 | 
			
		||||
      "version": "1.0.7",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@electron-elements/send-feedback/-/send-feedback-1.0.7.tgz",
 | 
			
		||||
      "integrity": "sha1-HmTsFMvNkmZAngeu1BDoUi45deA=",
 | 
			
		||||
      "version": "1.0.8",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@electron-elements/send-feedback/-/send-feedback-1.0.8.tgz",
 | 
			
		||||
      "integrity": "sha512-spIZIYSe0Bp028sbZ7bcGOaUYhMyFArk+Tv7kQ4XCRNuVWRkw3SfbR8zIljZAdUavJp0wX6prSWrqLL4Dpd3Fw==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@electron-elements/utils": "1.0.3"
 | 
			
		||||
      }
 | 
			
		||||
@@ -37,56 +37,88 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/browser": {
 | 
			
		||||
      "version": "0.5.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-0.5.4.tgz",
 | 
			
		||||
      "integrity": "sha1-Yh/5chgrc7YoVlhLkvxl/elpBMw=",
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-tYXqJQOL+pYud8ICSLkxF7aMn3aLqqSq+H8tF4GPOtTEwmVZH1PEy8T+o2SOhHohJMvWEkEepElKGot71pu+NQ==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/core": "0.5.4",
 | 
			
		||||
        "@sentry/shim": "0.5.4"
 | 
			
		||||
        "@sentry/core": "4.0.6",
 | 
			
		||||
        "@sentry/types": "4.0.6",
 | 
			
		||||
        "@sentry/utils": "4.0.6",
 | 
			
		||||
        "md5": "2.2.1"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/core": {
 | 
			
		||||
      "version": "0.5.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-0.5.4.tgz",
 | 
			
		||||
      "integrity": "sha1-mwqEK0QhMbOAG65wviyk6cUQV04=",
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/core/-/core-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-xqUI59SSjA0f7ec6xy0RzZUJTxYP2smtHy3to+rvyyz5N4QBtL87yw9P0FngvBxNFEjfHYEO1V5gM9mA/5UByg==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/shim": "0.5.4"
 | 
			
		||||
        "@sentry/hub": "4.0.6",
 | 
			
		||||
        "@sentry/minimal": "4.0.6",
 | 
			
		||||
        "@sentry/types": "4.0.6",
 | 
			
		||||
        "@sentry/utils": "4.0.6"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/electron": {
 | 
			
		||||
      "version": "0.5.5",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/electron/-/electron-0.5.5.tgz",
 | 
			
		||||
      "integrity": "sha1-kInWNC22xr1sCSpTdHcIAx1ft8M=",
 | 
			
		||||
      "version": "0.11.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/electron/-/electron-0.11.0.tgz",
 | 
			
		||||
      "integrity": "sha512-yj1W7wWb/U0FBk7cOikwdRlKyAH7oXVJ1t9rFBPzdlBx3ZA2rF3Z/ge1Dk/bS4lJ7H1EQ1mQ8EQP8ldCKwVg9A==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/browser": "0.5.4",
 | 
			
		||||
        "@sentry/core": "0.5.4",
 | 
			
		||||
        "@sentry/node": "0.5.4",
 | 
			
		||||
        "@sentry/shim": "0.5.4",
 | 
			
		||||
        "@sentry/utils": "0.5.4",
 | 
			
		||||
        "electron-fetch": "^1.1.0",
 | 
			
		||||
        "form-data": "^2.3.2",
 | 
			
		||||
        "util.promisify": "^1.0.0"
 | 
			
		||||
        "@sentry/browser": "^4.0.5",
 | 
			
		||||
        "@sentry/core": "^4.0.5",
 | 
			
		||||
        "@sentry/minimal": "^4.0.5",
 | 
			
		||||
        "@sentry/node": "^4.0.5",
 | 
			
		||||
        "@sentry/types": "^4.0.0",
 | 
			
		||||
        "@sentry/utils": "^4.0.5",
 | 
			
		||||
        "electron-fetch": "1.1.0",
 | 
			
		||||
        "form-data": "2.3.2",
 | 
			
		||||
        "util.promisify": "1.0.0"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/hub": {
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-7oQKnunDPo8JHzCcOC0CRcPm4Zl3apF0fFYL/nLe7XhCBGoaA2XubwoTx02iOtoNiyPp7QqT75KSXd0eMNq5KA==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/types": "4.0.6",
 | 
			
		||||
        "@sentry/utils": "4.0.6"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/minimal": {
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-xnMRx/EkC5YGP2qSJSvAksg4KM8LhIt9GwcNX9ZkInKy2LmWSgtHUYnHyGl1sP+xMirvsYO5HMrLKujjDaYNvQ==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/hub": "4.0.6",
 | 
			
		||||
        "@sentry/types": "4.0.6"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/node": {
 | 
			
		||||
      "version": "0.5.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/node/-/node-0.5.4.tgz",
 | 
			
		||||
      "integrity": "sha1-s+c0nRs2EjmVkDbqrhnOvzVkw9M=",
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/node/-/node-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-WdKL/2rYHKa69zq2U1yogDuhknGKMpt3gaEqqytvht48stR/C6dVPbz5AMryVxjPmbrvJ/exUv3dhmEalrkOAw==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/core": "0.5.4",
 | 
			
		||||
        "@sentry/shim": "0.5.4",
 | 
			
		||||
        "raven": "^2.6.0"
 | 
			
		||||
        "@sentry/core": "4.0.6",
 | 
			
		||||
        "@sentry/hub": "4.0.6",
 | 
			
		||||
        "@sentry/types": "4.0.6",
 | 
			
		||||
        "@sentry/utils": "4.0.6",
 | 
			
		||||
        "cookie": "0.3.1",
 | 
			
		||||
        "lsmod": "1.0.0",
 | 
			
		||||
        "md5": "2.2.1",
 | 
			
		||||
        "stack-trace": "0.0.10"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/shim": {
 | 
			
		||||
      "version": "0.5.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/shim/-/shim-0.5.4.tgz",
 | 
			
		||||
      "integrity": "sha1-y4JrGjR2WuXhsh5h3y3vL42pHcE="
 | 
			
		||||
    "@sentry/types": {
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/types/-/types-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-8TYqM+cRkGIXWYQVSJO3eJnnxi/GUUZVFpvlwNQvnxNZLVg8xyn08WYTRMAbKKBq27yb02NpJJTj04KvrUTc9g=="
 | 
			
		||||
    },
 | 
			
		||||
    "@sentry/utils": {
 | 
			
		||||
      "version": "0.5.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-0.5.4.tgz",
 | 
			
		||||
      "integrity": "sha1-jt54rOlgIW3WMv1WHIP1AGLlruE="
 | 
			
		||||
      "version": "4.0.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-4.0.6.tgz",
 | 
			
		||||
      "integrity": "sha512-m+6r+qMhOXBhw06bPpdha1Bg5KzK46/FMb9tyiA0KCGFR3/vNgKneXwoZJ5GDGTVaz3J189bXoXRHHlHXcH+4w==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@sentry/types": "4.0.6"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "@sindresorhus/is": {
 | 
			
		||||
      "version": "0.7.0",
 | 
			
		||||
@@ -224,14 +256,14 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "buffer-from": {
 | 
			
		||||
      "version": "1.1.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
 | 
			
		||||
      "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ=="
 | 
			
		||||
      "version": "1.1.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
 | 
			
		||||
      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A=="
 | 
			
		||||
    },
 | 
			
		||||
    "builder-util-runtime": {
 | 
			
		||||
      "version": "4.4.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-4.4.0.tgz",
 | 
			
		||||
      "integrity": "sha512-tkTF1o7XAX79ZkMo8822ZdQMpEBGSgfJ9kEYgyTAja90BPu7HO8C02pb8iSlFXfmK0Q0UA6D8MmnSNNPi0JLeg==",
 | 
			
		||||
      "version": "4.4.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-4.4.1.tgz",
 | 
			
		||||
      "integrity": "sha512-8L2pbL6D3VdI1f8OMknlZJpw0c7KK15BRz3cY77AOUElc4XlCv2UhVV01jJM7+6Lx7henaQh80ALULp64eFYAQ==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "debug": "^3.1.0",
 | 
			
		||||
@@ -392,12 +424,11 @@
 | 
			
		||||
      "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU="
 | 
			
		||||
    },
 | 
			
		||||
    "define-properties": {
 | 
			
		||||
      "version": "1.1.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz",
 | 
			
		||||
      "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=",
 | 
			
		||||
      "version": "1.1.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
 | 
			
		||||
      "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "foreach": "^2.0.5",
 | 
			
		||||
        "object-keys": "^1.0.8"
 | 
			
		||||
        "object-keys": "^1.0.12"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "delayed-stream": {
 | 
			
		||||
@@ -487,25 +518,25 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "electron-updater": {
 | 
			
		||||
      "version": "2.23.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-2.23.3.tgz",
 | 
			
		||||
      "integrity": "sha512-ZoQZpiEbhT3xA5Oxn7a5o4Z9adRaYs901pnTKBVBxPWmc0Qw5sZXAHkRjftlRmEn3RiEVkJtBPQSfx8kIkRcUA==",
 | 
			
		||||
      "version": "3.1.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-3.1.2.tgz",
 | 
			
		||||
      "integrity": "sha512-y3n37O01pdynMJHhJbOd2UVhVrmDW6zLvR2SOZ+gk3S6r16872+0nNbC48GXWwc26lTeus/Zja/XUpiqrvdw4A==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util-runtime": "~4.4.0",
 | 
			
		||||
        "builder-util-runtime": "~4.4.1",
 | 
			
		||||
        "electron-is-dev": "^0.3.0",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "js-yaml": "^3.12.0",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
        "lodash.isequal": "^4.5.0",
 | 
			
		||||
        "semver": "^5.5.0",
 | 
			
		||||
        "source-map-support": "^0.5.6"
 | 
			
		||||
        "semver": "^5.5.1",
 | 
			
		||||
        "source-map-support": "^0.5.9"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "semver": {
 | 
			
		||||
          "version": "5.5.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
 | 
			
		||||
          "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA=="
 | 
			
		||||
          "version": "5.5.1",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
 | 
			
		||||
          "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw=="
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
@@ -538,9 +569,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "es-abstract": {
 | 
			
		||||
      "version": "1.12.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz",
 | 
			
		||||
      "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==",
 | 
			
		||||
      "version": "1.11.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.11.0.tgz",
 | 
			
		||||
      "integrity": "sha512-ZnQrE/lXTTQ39ulXZ+J1DTFazV9qBy61x2bY071B+qGco8Z8q1QddsLdt/EF8Ai9hcWH72dWS0kFqXLxOxqslA==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "es-to-primitive": "^1.1.1",
 | 
			
		||||
        "function-bind": "^1.1.1",
 | 
			
		||||
@@ -600,11 +631,6 @@
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz",
 | 
			
		||||
      "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
 | 
			
		||||
    },
 | 
			
		||||
    "foreach": {
 | 
			
		||||
      "version": "2.0.5",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz",
 | 
			
		||||
      "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k="
 | 
			
		||||
    },
 | 
			
		||||
    "forever-agent": {
 | 
			
		||||
      "version": "0.6.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
 | 
			
		||||
@@ -778,9 +804,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "iconv-lite": {
 | 
			
		||||
      "version": "0.4.23",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
 | 
			
		||||
      "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
 | 
			
		||||
      "version": "0.4.24",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
 | 
			
		||||
      "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "safer-buffer": ">= 2.1.2 < 3"
 | 
			
		||||
      }
 | 
			
		||||
@@ -829,9 +855,9 @@
 | 
			
		||||
      "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
 | 
			
		||||
    },
 | 
			
		||||
    "is-callable": {
 | 
			
		||||
      "version": "1.1.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz",
 | 
			
		||||
      "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA=="
 | 
			
		||||
      "version": "1.1.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz",
 | 
			
		||||
      "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI="
 | 
			
		||||
    },
 | 
			
		||||
    "is-date-object": {
 | 
			
		||||
      "version": "1.0.1",
 | 
			
		||||
@@ -1024,6 +1050,11 @@
 | 
			
		||||
        "yallist": "^2.1.2"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "lsmod": {
 | 
			
		||||
      "version": "1.0.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/lsmod/-/lsmod-1.0.0.tgz",
 | 
			
		||||
      "integrity": "sha1-mgD3bco26yP6BTUK/htYXUKZ5ks="
 | 
			
		||||
    },
 | 
			
		||||
    "md5": {
 | 
			
		||||
      "version": "2.2.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/md5/-/md5-2.2.1.tgz",
 | 
			
		||||
@@ -1309,18 +1340,6 @@
 | 
			
		||||
        "strict-uri-encode": "^1.0.0"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "raven": {
 | 
			
		||||
      "version": "2.6.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/raven/-/raven-2.6.3.tgz",
 | 
			
		||||
      "integrity": "sha512-bKre7qlDW+y1+G2bUtCuntdDYc8o5v1T233t0vmJfbj8ttGOgLrGRlYB8saelVMW9KUAJNLrhFkAKOwFWFJonw==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "cookie": "0.3.1",
 | 
			
		||||
        "md5": "^2.2.1",
 | 
			
		||||
        "stack-trace": "0.0.10",
 | 
			
		||||
        "timed-out": "4.0.1",
 | 
			
		||||
        "uuid": "3.0.0"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "readable-stream": {
 | 
			
		||||
      "version": "2.3.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
 | 
			
		||||
@@ -1460,9 +1479,9 @@
 | 
			
		||||
      "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
 | 
			
		||||
    },
 | 
			
		||||
    "source-map-support": {
 | 
			
		||||
      "version": "0.5.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz",
 | 
			
		||||
      "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==",
 | 
			
		||||
      "version": "0.5.9",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz",
 | 
			
		||||
      "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==",
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "buffer-from": "^1.0.0",
 | 
			
		||||
        "source-map": "^0.6.0"
 | 
			
		||||
@@ -1600,11 +1619,6 @@
 | 
			
		||||
        "object.getownpropertydescriptors": "^2.0.3"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "uuid": {
 | 
			
		||||
      "version": "3.0.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.0.tgz",
 | 
			
		||||
      "integrity": "sha1-Zyj8BFnEUNeWqZwxg3VpvfZy1yg="
 | 
			
		||||
    },
 | 
			
		||||
    "verror": {
 | 
			
		||||
      "version": "1.10.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "zulip",
 | 
			
		||||
  "productName": "Zulip",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "version": "2.3.82",
 | 
			
		||||
  "description": "Zulip Desktop App",
 | 
			
		||||
  "license": "Apache-2.0",
 | 
			
		||||
  "copyright": "Kandra Labs, Inc.",
 | 
			
		||||
@@ -26,14 +26,14 @@
 | 
			
		||||
    "InstantMessaging"
 | 
			
		||||
  ],
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@electron-elements/send-feedback": "1.0.7",
 | 
			
		||||
    "@sentry/electron": "0.5.5",
 | 
			
		||||
    "@electron-elements/send-feedback": "1.0.8",
 | 
			
		||||
    "@sentry/electron": "0.11.0",
 | 
			
		||||
    "adm-zip": "0.4.11",
 | 
			
		||||
    "auto-launch": "5.0.5",
 | 
			
		||||
    "electron-is-dev": "0.3.0",
 | 
			
		||||
    "electron-log": "2.2.14",
 | 
			
		||||
    "electron-spellchecker": "1.1.2",
 | 
			
		||||
    "electron-updater": "2.23.3",
 | 
			
		||||
    "electron-updater": "3.1.2",
 | 
			
		||||
    "electron-window-state": "4.1.1",
 | 
			
		||||
    "escape-html": "1.0.3",
 | 
			
		||||
    "is-online": "7.0.0",
 | 
			
		||||
 
 | 
			
		||||
@@ -151,7 +151,7 @@ body {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tab:first-child {
 | 
			
		||||
    margin-top: 8px;
 | 
			
		||||
    margin-top: 9px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tab {
 | 
			
		||||
@@ -165,25 +165,33 @@ body {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tab .server-icons {
 | 
			
		||||
    border-radius: 50%;
 | 
			
		||||
    width: 30px;
 | 
			
		||||
    padding: 3px;
 | 
			
		||||
    height: 30px;
 | 
			
		||||
    width: 35px;
 | 
			
		||||
    vertical-align: top;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tab .server-tab {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 35px;
 | 
			
		||||
    position: relative;
 | 
			
		||||
    margin: 5px 0 2px 0;
 | 
			
		||||
    margin-top: 5px;
 | 
			
		||||
    z-index: 11;
 | 
			
		||||
    line-height: 31px;
 | 
			
		||||
    color: #eee;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
    opacity: 0.6;
 | 
			
		||||
    padding: 2px 0;
 | 
			
		||||
    padding: 6px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.server-tab .alt-icon {
 | 
			
		||||
    font-family: Verdana;
 | 
			
		||||
    font-weight: 600;
 | 
			
		||||
    font-size: 22px;
 | 
			
		||||
    border: 2px solid #222c31;
 | 
			
		||||
    margin-left: 17%;
 | 
			
		||||
    width: 35px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tab .server-tab:hover {
 | 
			
		||||
@@ -358,7 +366,7 @@ webview.focus {
 | 
			
		||||
    left: 56px;
 | 
			
		||||
    padding: 10px 20px;
 | 
			
		||||
    position: fixed;
 | 
			
		||||
    margin-top: 8px;
 | 
			
		||||
    margin-top: 11px;
 | 
			
		||||
    z-index: 5000 !important;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
 
 | 
			
		||||
@@ -7,14 +7,16 @@ body {
 | 
			
		||||
    font-family: menu, "Helvetica Neue", sans-serif;
 | 
			
		||||
    -webkit-font-smoothing: antialiased;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
    color: #333;
 | 
			
		||||
    background: #efefef;
 | 
			
		||||
    letter-spacing: -.08px;
 | 
			
		||||
    line-height: 18px;
 | 
			
		||||
    color: #8b8e8f;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
kbd {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    border: 1px solid #ccc;
 | 
			
		||||
    border-radius: 3px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    font-size: 15px;
 | 
			
		||||
    font-family: Courier New, Courier, monospace;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
@@ -109,7 +111,7 @@ td:nth-child(odd) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nav {
 | 
			
		||||
    padding: 5px 0;
 | 
			
		||||
    padding: 7px 0;
 | 
			
		||||
    color: #999;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
@@ -129,7 +131,6 @@ td:nth-child(odd) {
 | 
			
		||||
    content: '';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* We don't want to show this in nav item since we have the + button for adding an Organization */
 | 
			
		||||
 | 
			
		||||
#nav-AddServer {
 | 
			
		||||
@@ -187,7 +188,7 @@ td:nth-child(odd) {
 | 
			
		||||
img.server-info-icon {
 | 
			
		||||
    width: 36px;
 | 
			
		||||
    height: 36px;
 | 
			
		||||
    padding: 4px;
 | 
			
		||||
    padding: 4px 4px 4px 10px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    vertical-align: middle;
 | 
			
		||||
}
 | 
			
		||||
@@ -246,7 +247,7 @@ img.server-info-icon {
 | 
			
		||||
.setting-input-value {
 | 
			
		||||
    flex-grow: 1;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
    border-radius: 3px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    padding: 13px;
 | 
			
		||||
    border: #ededed 2px solid;
 | 
			
		||||
    outline-width: 0;
 | 
			
		||||
@@ -306,7 +307,7 @@ img.server-info-icon {
 | 
			
		||||
    padding: 12px 30px;
 | 
			
		||||
    margin: 10px 0 20px 0;
 | 
			
		||||
    background: #fff;
 | 
			
		||||
    width: 70%;
 | 
			
		||||
    width: 80%;
 | 
			
		||||
    transition: all 0.2s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -323,20 +324,38 @@ img.server-info-icon {
 | 
			
		||||
    color: #ef5350;
 | 
			
		||||
    padding: 8px;
 | 
			
		||||
    border: rgba(239, 83, 80, 0.5) solid 1px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    border-color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.red:hover {
 | 
			
		||||
    color: #e63431;
 | 
			
		||||
    border: rgba(239, 83, 80, 0.7) solid 1px;
 | 
			
		||||
    ;
 | 
			
		||||
    background-color: rgba(230, 52, 49, 0.5);
 | 
			
		||||
    color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.blue {
 | 
			
		||||
    color: #ffffff;
 | 
			
		||||
.green {
 | 
			
		||||
    color: #fff;
 | 
			
		||||
    background: #4EBFAC;
 | 
			
		||||
    padding: 3px;
 | 
			
		||||
    padding-right: 10px;
 | 
			
		||||
    padding-left: 10px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    border: none;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    width: 100px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    font-size: 1rem;
 | 
			
		||||
    font-weight: bold;
 | 
			
		||||
    transition: background-color 0.2s ease;
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.green:hover {
 | 
			
		||||
    background-color: #3c9f8d;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.w-150 {
 | 
			
		||||
    width: 150px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.grey {
 | 
			
		||||
@@ -358,33 +377,15 @@ img.server-info-icon {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
i.open-tab-button {
 | 
			
		||||
    padding-left: 2px;
 | 
			
		||||
    padding-left: 5px;
 | 
			
		||||
    font-size: 19px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.reset-data-button,
 | 
			
		||||
.custom-css-button,
 | 
			
		||||
.download-folder-button {
 | 
			
		||||
    display: inline-block;
 | 
			
		||||
    border: none;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
    width: 120px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    font-size: 13px;
 | 
			
		||||
    transition: background-color 0.2s ease;
 | 
			
		||||
    text-decoration: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.css-delete-action {
 | 
			
		||||
    margin-bottom: 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.reset-data-button:hover {
 | 
			
		||||
    background-color: #3c9f8d;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.selected-css-path,
 | 
			
		||||
.download-folder-path {
 | 
			
		||||
    background: #eeeeee;
 | 
			
		||||
@@ -450,9 +451,12 @@ input.toggle-round+label:after {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
input.toggle-round+label:before {
 | 
			
		||||
    right: 2px;
 | 
			
		||||
    background-color: #f1f1f1;
 | 
			
		||||
    border-radius: 25px;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    right: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
    bottom: 0px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
input.toggle-round+label:after {
 | 
			
		||||
@@ -464,13 +468,16 @@ input.toggle-round+label:after {
 | 
			
		||||
 | 
			
		||||
input.toggle-round:checked+label:before {
 | 
			
		||||
    background-color: #4EBFAC;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    right: 0px;
 | 
			
		||||
    left: 0px;
 | 
			
		||||
    bottom: 0px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
input.toggle-round:checked+label:after {
 | 
			
		||||
    margin-left: 25px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*  Add new server modal */
 | 
			
		||||
 | 
			
		||||
.add-server-modal {
 | 
			
		||||
@@ -488,7 +495,6 @@ input.toggle-round:checked+label:after {
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* Modal Content */
 | 
			
		||||
 | 
			
		||||
.modal-container {
 | 
			
		||||
@@ -546,7 +552,7 @@ input.toggle-round:checked+label:after {
 | 
			
		||||
    border: none;
 | 
			
		||||
    width: 98%;
 | 
			
		||||
    height: 46px;
 | 
			
		||||
    border-radius: 3px;
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -559,7 +565,7 @@ input.toggle-round:checked+label:after {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.certificates-card {
 | 
			
		||||
     width:70%
 | 
			
		||||
    width: 80%
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.certificate-input {
 | 
			
		||||
@@ -578,15 +584,16 @@ input.toggle-round:checked+label:after {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#add-certificate-button {
 | 
			
		||||
    width:20%;
 | 
			
		||||
    margin-right:0px;
 | 
			
		||||
    height: 35px;
 | 
			
		||||
    margin: 10px 10px 10px 37px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tip {
 | 
			
		||||
    background-color: hsl(46,63%,95%);
 | 
			
		||||
    border: 1px solid hsl(46,63%,84%);
 | 
			
		||||
    border-radius: 4px;
 | 
			
		||||
    background: none;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tip:hover{
 | 
			
		||||
   box-shadow: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.md-14 {
 | 
			
		||||
@@ -654,12 +661,10 @@ input.toggle-round:checked+label:after {
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .server-info-right {
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .action {
 | 
			
		||||
        margin-top: 10px;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -21,11 +21,19 @@ function handleExternalLink(event) {
 | 
			
		||||
	if (isWhiteListURL) {
 | 
			
		||||
		event.preventDefault();
 | 
			
		||||
 | 
			
		||||
		// download txt, pdf, mp3, mp4 etc.. by using downloadURL in the
 | 
			
		||||
		// Show pdf attachments in a new window
 | 
			
		||||
 | 
			
		||||
		if (LinkUtil.isPDF(url) && isUploadsURL) {
 | 
			
		||||
			ipcRenderer.send('pdf-view', url);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// download txt, mp3, mp4 etc.. by using downloadURL in the
 | 
			
		||||
		// main process which allows the user to save the files to their desktop
 | 
			
		||||
		// and not trigger webview reload while image in webview will
 | 
			
		||||
		// do nothing and will not save it
 | 
			
		||||
		if (!LinkUtil.isImage(url) && isUploadsURL) {
 | 
			
		||||
 | 
			
		||||
		if (!LinkUtil.isImage(url) && !LinkUtil.isPDF(url) && isUploadsURL) {
 | 
			
		||||
			ipcRenderer.send('downloadFile', url, downloadPath);
 | 
			
		||||
			ipcRenderer.once('downloadFileCompleted', (event, filePath, fileName) => {
 | 
			
		||||
				const downloadNotification = new Notification('Download Complete', {
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@ const {ipcRenderer} = require('electron');
 | 
			
		||||
class ServerTab extends Tab {
 | 
			
		||||
	template() {
 | 
			
		||||
		return `<div class="tab" data-tab-id="${this.props.tabIndex}">
 | 
			
		||||
					<div class="server-tooltip" style="display:none"></div>
 | 
			
		||||
					<div class="server-tooltip" style="display:none">${this.props.name}</div>
 | 
			
		||||
					<div class="server-tab-badge"></div>
 | 
			
		||||
					<div class="server-tab">
 | 
			
		||||
					<img class="server-icons" src='${this.props.icon}'/>
 | 
			
		||||
 
 | 
			
		||||
@@ -33,6 +33,7 @@ class WebView extends BaseComponent {
 | 
			
		||||
					disablewebsecurity
 | 
			
		||||
					${this.props.preload ? 'preload="js/preload.js"' : ''}
 | 
			
		||||
					partition="persist:webviewsession"
 | 
			
		||||
					name="${this.props.name}"
 | 
			
		||||
					webpreferences="allowRunningInsecureContent, javascript=yes">
 | 
			
		||||
				</webview>`;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -21,8 +21,9 @@ electron_bridge.on('total_unread_count', (...args) => {
 | 
			
		||||
	ipcRenderer.send('unread-count', ...args);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
electron_bridge.on('realm_name', (...args) => {
 | 
			
		||||
	ipcRenderer.send('realm-name-changed', ...args);
 | 
			
		||||
electron_bridge.on('realm_name', realmName => {
 | 
			
		||||
	const serverURL = location.origin;
 | 
			
		||||
	ipcRenderer.send('realm-name-changed', serverURL, realmName);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
electron_bridge.on('realm_icon_url', iconURL => {
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,7 @@ const { ipcRenderer, remote } = require('electron');
 | 
			
		||||
const isDev = require('electron-is-dev');
 | 
			
		||||
 | 
			
		||||
const { session, app } = remote;
 | 
			
		||||
const escape = require('escape-html');
 | 
			
		||||
 | 
			
		||||
require(__dirname + '/js/tray.js');
 | 
			
		||||
const DomainUtil = require(__dirname + '/js/utils/domain-util.js');
 | 
			
		||||
@@ -14,9 +15,9 @@ const ConfigUtil = require(__dirname + '/js/utils/config-util.js');
 | 
			
		||||
const DNDUtil = require(__dirname + '/js/utils/dnd-util.js');
 | 
			
		||||
const ReconnectUtil = require(__dirname + '/js/utils/reconnect-util.js');
 | 
			
		||||
const Logger = require(__dirname + '/js/utils/logger-util.js');
 | 
			
		||||
const { feedbackHolder } = require(__dirname + '/js/feedback.js');
 | 
			
		||||
const CommonUtil = require(__dirname + '/js/utils/common-util.js');
 | 
			
		||||
 | 
			
		||||
const escape = require('escape-html');
 | 
			
		||||
const { feedbackHolder } = require(__dirname + '/js/feedback.js');
 | 
			
		||||
 | 
			
		||||
const logger = new Logger({
 | 
			
		||||
	file: 'errors.log',
 | 
			
		||||
@@ -134,6 +135,10 @@ class ServerManagerView {
 | 
			
		||||
			settingOptions.dockBouncing = true;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (process.platform !== 'darwin') {
 | 
			
		||||
			settingOptions.autoHideMenubar = false;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		for (const i in settingOptions) {
 | 
			
		||||
			if (ConfigUtil.getConfigItem(i) === null) {
 | 
			
		||||
				ConfigUtil.setConfigItem(i, settingOptions[i]);
 | 
			
		||||
@@ -168,18 +173,19 @@ class ServerManagerView {
 | 
			
		||||
		this.tabs.push(new ServerTab({
 | 
			
		||||
			role: 'server',
 | 
			
		||||
			icon: server.icon,
 | 
			
		||||
			name: server.alias,
 | 
			
		||||
			$root: this.$tabsContainer,
 | 
			
		||||
			onClick: this.activateLastTab.bind(this, index),
 | 
			
		||||
			index,
 | 
			
		||||
			tabIndex,
 | 
			
		||||
			onHover: this.onHover.bind(this, index, server.alias),
 | 
			
		||||
			onHover: this.onHover.bind(this, index),
 | 
			
		||||
			onHoverOut: this.onHoverOut.bind(this, index),
 | 
			
		||||
			webview: new WebView({
 | 
			
		||||
				$root: this.$webviewsContainer,
 | 
			
		||||
				index,
 | 
			
		||||
				tabIndex,
 | 
			
		||||
				url: server.url,
 | 
			
		||||
				name: server.alias,
 | 
			
		||||
				name: CommonUtil.decodeString(server.alias),
 | 
			
		||||
				isActive: () => {
 | 
			
		||||
					return index === this.activeTabIndex;
 | 
			
		||||
				},
 | 
			
		||||
@@ -212,8 +218,12 @@ class ServerManagerView {
 | 
			
		||||
 | 
			
		||||
		const $serverImgs = document.querySelectorAll('.server-icons');
 | 
			
		||||
		$serverImgs.forEach($serverImg => {
 | 
			
		||||
			if ($serverImg.src.includes('img/icon.png')) {
 | 
			
		||||
				this.displayInitalCharLogo($serverImg);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			$serverImg.addEventListener('error', () => {
 | 
			
		||||
				$serverImg.src = 'img/icon.png';
 | 
			
		||||
				this.displayInitalCharLogo($serverImg);
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
@@ -235,6 +245,27 @@ class ServerManagerView {
 | 
			
		||||
		return currentIndex;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	displayInitalCharLogo($img) {
 | 
			
		||||
		const $altIcon = document.createElement('div');
 | 
			
		||||
		const $parent = $img.parentElement;
 | 
			
		||||
		const $container = $parent.parentElement;
 | 
			
		||||
		const webviewId = $container.dataset.tabId;
 | 
			
		||||
		const $webview = document.querySelector(`webview[data-tab-id="${webviewId}"]`);
 | 
			
		||||
		const realmName = $webview.getAttribute('name');
 | 
			
		||||
 | 
			
		||||
		if (realmName === null) {
 | 
			
		||||
			$img.src = '/img/icon.png';
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$altIcon.textContent = realmName.charAt(0) || 'Z';
 | 
			
		||||
		$altIcon.classList.add('server-icon');
 | 
			
		||||
		$altIcon.classList.add('alt-icon');
 | 
			
		||||
 | 
			
		||||
		$parent.removeChild($img);
 | 
			
		||||
		$parent.appendChild($altIcon);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sidebarHoverEvent(SidebarButton, SidebarTooltip, addServer = false) {
 | 
			
		||||
		SidebarButton.addEventListener('mouseover', () => {
 | 
			
		||||
			SidebarTooltip.removeAttribute('style');
 | 
			
		||||
@@ -252,8 +283,9 @@ class ServerManagerView {
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	onHover(index, serverName) {
 | 
			
		||||
		this.$serverIconTooltip[index].innerHTML = escape(serverName);
 | 
			
		||||
	onHover(index) {
 | 
			
		||||
		// this.$serverIconTooltip[index].innerHTML already has realm name, so we are just
 | 
			
		||||
		// removing the style.
 | 
			
		||||
		this.$serverIconTooltip[index].removeAttribute('style');
 | 
			
		||||
		// To handle position of servers' tooltip due to scrolling of list of organizations
 | 
			
		||||
		// This could not be handled using CSS, hence the top of the tooltip is made same
 | 
			
		||||
@@ -367,52 +399,6 @@ class ServerManagerView {
 | 
			
		||||
			tabs: this.tabs,
 | 
			
		||||
			activeTabIndex: this.activeTabIndex
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-sidebar', (event, state) => {
 | 
			
		||||
			const selector = 'webview:not([class*=disabled])';
 | 
			
		||||
			const webview = document.querySelector(selector);
 | 
			
		||||
			const webContents = webview.getWebContents();
 | 
			
		||||
			webContents.send('toggle-sidebar', state);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-silent', (event, state) => {
 | 
			
		||||
			const webviews = document.querySelectorAll('webview');
 | 
			
		||||
			webviews.forEach(webview => {
 | 
			
		||||
				try {
 | 
			
		||||
					webview.setAudioMuted(state);
 | 
			
		||||
				} catch (err) {
 | 
			
		||||
					// webview is not ready yet
 | 
			
		||||
					webview.addEventListener('dom-ready', () => {
 | 
			
		||||
						webview.isAudioMuted();
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-dnd', (event, state, newSettings) => {
 | 
			
		||||
			this.toggleDNDButton(state);
 | 
			
		||||
			ipcRenderer.send('forward-message', 'toggle-silent', newSettings.silent);
 | 
			
		||||
			const selector = 'webview:not([class*=disabled])';
 | 
			
		||||
			const webview = document.querySelector(selector);
 | 
			
		||||
			const webContents = webview.getWebContents();
 | 
			
		||||
			webContents.send('toggle-dnd', state, newSettings);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('update-realm-icon', (event, serverURL, iconURL) => {
 | 
			
		||||
			DomainUtil.getDomains().forEach((domain, index) => {
 | 
			
		||||
				if (domain.url.includes(serverURL)) {
 | 
			
		||||
					DomainUtil.saveServerIcon(iconURL).then(localIconUrl => {
 | 
			
		||||
						const serverImgsSelector = `.tab .server-icons`;
 | 
			
		||||
						const serverImgs = document.querySelectorAll(serverImgsSelector);
 | 
			
		||||
						serverImgs[index].src = localIconUrl;
 | 
			
		||||
 | 
			
		||||
						domain.icon = localIconUrl;
 | 
			
		||||
						DomainUtil.db.push(`/domains[${index}]`, domain, true);
 | 
			
		||||
						DomainUtil.reloadDB();
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	destroyTab(name, index) {
 | 
			
		||||
@@ -543,7 +529,74 @@ class ServerManagerView {
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-sidebar', (event, show) => {
 | 
			
		||||
			// Toggle the left sidebar
 | 
			
		||||
			this.toggleSidebar(show);
 | 
			
		||||
 | 
			
		||||
			// Toggle sidebar switch in the general settings
 | 
			
		||||
			const selector = 'webview:not([class*=disabled])';
 | 
			
		||||
			const webview = document.querySelector(selector);
 | 
			
		||||
			const webContents = webview.getWebContents();
 | 
			
		||||
			webContents.send('toggle-sidebar-setting', show);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-silent', (event, state) => {
 | 
			
		||||
			const webviews = document.querySelectorAll('webview');
 | 
			
		||||
			webviews.forEach(webview => {
 | 
			
		||||
				try {
 | 
			
		||||
					webview.setAudioMuted(state);
 | 
			
		||||
				} catch (err) {
 | 
			
		||||
					// webview is not ready yet
 | 
			
		||||
					webview.addEventListener('dom-ready', () => {
 | 
			
		||||
						webview.setAudioMuted(state);
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-dnd', (event, state, newSettings) => {
 | 
			
		||||
			this.toggleDNDButton(state);
 | 
			
		||||
			ipcRenderer.send('forward-message', 'toggle-silent', newSettings.silent);
 | 
			
		||||
			const selector = 'webview:not([class*=disabled])';
 | 
			
		||||
			const webview = document.querySelector(selector);
 | 
			
		||||
			const webContents = webview.getWebContents();
 | 
			
		||||
			webContents.send('toggle-dnd', state, newSettings);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('update-realm-name', (event, serverURL, realmName) => {
 | 
			
		||||
			DomainUtil.getDomains().forEach((domain, index) => {
 | 
			
		||||
				if (domain.url.includes(serverURL)) {
 | 
			
		||||
					const serverTooltipSelector = `.tab .server-tooltip`;
 | 
			
		||||
					const serverTooltips = document.querySelectorAll(serverTooltipSelector);
 | 
			
		||||
					serverTooltips[index].innerHTML = escape(realmName);
 | 
			
		||||
					this.tabs[index].props.name = escape(realmName);
 | 
			
		||||
					this.tabs[index].webview.props.name = realmName;
 | 
			
		||||
 | 
			
		||||
					domain.alias = escape(realmName);
 | 
			
		||||
					DomainUtil.db.push(`/domains[${index}]`, domain, true);
 | 
			
		||||
					DomainUtil.reloadDB();
 | 
			
		||||
					// Update the realm name also on the Window menu
 | 
			
		||||
					ipcRenderer.send('update-menu', {
 | 
			
		||||
						tabs: this.tabs,
 | 
			
		||||
						activeTabIndex: this.activeTabIndex
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('update-realm-icon', (event, serverURL, iconURL) => {
 | 
			
		||||
			DomainUtil.getDomains().forEach((domain, index) => {
 | 
			
		||||
				if (domain.url.includes(serverURL)) {
 | 
			
		||||
					DomainUtil.saveServerIcon(iconURL).then(localIconUrl => {
 | 
			
		||||
						const serverImgsSelector = `.tab .server-icons`;
 | 
			
		||||
						const serverImgs = document.querySelectorAll(serverImgsSelector);
 | 
			
		||||
						serverImgs[index].src = localIconUrl;
 | 
			
		||||
 | 
			
		||||
						domain.icon = localIconUrl;
 | 
			
		||||
						DomainUtil.db.push(`/domains[${index}]`, domain, true);
 | 
			
		||||
						DomainUtil.reloadDB();
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('enter-fullscreen', () => {
 | 
			
		||||
 
 | 
			
		||||
@@ -15,14 +15,14 @@ class AddCertificate extends BaseComponent {
 | 
			
		||||
 | 
			
		||||
	template() {
 | 
			
		||||
		return `
 | 
			
		||||
			<div class="settings-card server-center certificates-card">
 | 
			
		||||
			<div class="settings-card certificates-card">
 | 
			
		||||
				<div class="certificate-input">
 | 
			
		||||
					<div>Organization URL :</div> 
 | 
			
		||||
					<div>Organization URL</div>
 | 
			
		||||
					<input class="setting-input-value" autofocus placeholder="your-organization.zulipchat.com or zulip.your-organization.com"/>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="certificate-input">
 | 
			
		||||
					<div>Custom CA's certificate file :</div> 
 | 
			
		||||
					<button id="add-certificate-button">Add</button>
 | 
			
		||||
					<div>Certificate file</div>
 | 
			
		||||
					<button class="green" id="add-certificate-button">Upload</button>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
		`;
 | 
			
		||||
 
 | 
			
		||||
@@ -23,8 +23,12 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
						<div class="setting-description">Show app icon in system tray</div>
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="setting-row" id="menubar-option" style= "display:${process.platform === 'darwin' ? 'none' : ''}">
 | 
			
		||||
						<div class="setting-description">Auto hide Menubar (Press Alt key to display)</div>
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="setting-row" id="sidebar-option">
 | 
			
		||||
						<div class="setting-description">Show sidebar (<span class="code">Cmd Or Ctrl+S</span>)</div>
 | 
			
		||||
						<div class="setting-description">Show sidebar (<span class="code">Cmd/Ctrl+S</span>)</div>
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="setting-row" id="badge-option">
 | 
			
		||||
@@ -40,7 +44,7 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="title">Desktop Notification</div>
 | 
			
		||||
				<div class="title">Desktop Notifications</div>
 | 
			
		||||
				<div class="settings-card">
 | 
			
		||||
					<div class="setting-row" id="show-notification-option">
 | 
			
		||||
						<div class="setting-description">Show Desktop Notifications</div>
 | 
			
		||||
@@ -73,17 +77,21 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="setting-row" id="enable-spellchecker-option">
 | 
			
		||||
						<div class="setting-description">Enable Spellchecker (requires restart)</div>
 | 
			
		||||
						<div class="setting-description">Enable spellchecker (requires restart)</div>
 | 
			
		||||
						<div class="setting-control"></div>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="title">Add custom CSS</div>
 | 
			
		||||
				<div class="title">Advanced</div>
 | 
			
		||||
				<div class="settings-card">
 | 
			
		||||
				<div class="setting-row" id="show-download-folder">
 | 
			
		||||
					<div class="setting-description">Show downloaded files in file manager</div>
 | 
			
		||||
					<div class="setting-control"></div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="setting-row" id="add-custom-css">
 | 
			
		||||
				<div class="setting-description">
 | 
			
		||||
							This will inject the selected css stylesheet in all the added accounts
 | 
			
		||||
					Add custom CSS
 | 
			
		||||
				</div>
 | 
			
		||||
						<button class="custom-css-button blue">Add</button>
 | 
			
		||||
				<button class="custom-css-button green">Upload</button>
 | 
			
		||||
			</div>
 | 
			
		||||
			<div class="setting-row" id="remove-custom-css">
 | 
			
		||||
				<div class="setting-description">
 | 
			
		||||
@@ -94,18 +102,11 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
					<span>Delete</span>
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
				</div>
 | 
			
		||||
				<div class="title">Advanced</div>
 | 
			
		||||
				<div class="settings-card">
 | 
			
		||||
				<div class="setting-row" id="show-download-folder">
 | 
			
		||||
					<div class="setting-description">Show downloaded file in the file manager</div>
 | 
			
		||||
					<div class="setting-control"></div>
 | 
			
		||||
				</div>
 | 
			
		||||
					<div class="setting-row" id="download-folder">
 | 
			
		||||
						<div class="setting-description">
 | 
			
		||||
							Default download location
 | 
			
		||||
						</div>
 | 
			
		||||
						<button class="download-folder-button blue">Choose</button>
 | 
			
		||||
						<button class="download-folder-button green">Change</button>
 | 
			
		||||
					</div>
 | 
			
		||||
					<div class="setting-row">
 | 
			
		||||
						<div class="setting-description">
 | 
			
		||||
@@ -119,7 +120,7 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
					<div class="setting-row" id="resetdata-option">
 | 
			
		||||
						<div class="setting-description">This will delete all application data including all added accounts and preferences
 | 
			
		||||
						</div>
 | 
			
		||||
						<button class="reset-data-button blue">Reset App Data</button>
 | 
			
		||||
						<button class="reset-data-button green w-150">Reset App Data</button>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
            </div>
 | 
			
		||||
@@ -155,6 +156,11 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
		if (process.platform === 'darwin') {
 | 
			
		||||
			this.updateDockBouncing();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// Auto hide menubar on Windows and Linux
 | 
			
		||||
		if (process.platform !== 'darwin') {
 | 
			
		||||
			this.updateMenubarOption();
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	updateTrayOption() {
 | 
			
		||||
@@ -170,6 +176,19 @@ class GeneralSection extends BaseSection {
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	updateMenubarOption() {
 | 
			
		||||
		this.generateSettingOption({
 | 
			
		||||
			$element: document.querySelector('#menubar-option .setting-control'),
 | 
			
		||||
			value: ConfigUtil.getConfigItem('autoHideMenubar', false),
 | 
			
		||||
			clickHandler: () => {
 | 
			
		||||
				const newValue = !ConfigUtil.getConfigItem('autoHideMenubar');
 | 
			
		||||
				ConfigUtil.setConfigItem('autoHideMenubar', newValue);
 | 
			
		||||
				ipcRenderer.send('toggle-menubar', newValue);
 | 
			
		||||
				this.updateMenubarOption();
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	updateBadgeOption() {
 | 
			
		||||
		this.generateSettingOption({
 | 
			
		||||
			$element: document.querySelector('#badge-option .setting-control'),
 | 
			
		||||
 
 | 
			
		||||
@@ -38,8 +38,7 @@ class NetworkSection extends BaseSection {
 | 
			
		||||
							<input class="setting-input-value" placeholder="e.g. foobar.com"/>
 | 
			
		||||
						</div>
 | 
			
		||||
						<div class="setting-row">
 | 
			
		||||
							<div class="action blue" id="proxy-save-action">
 | 
			
		||||
								<i class="material-icons">check_box</i>
 | 
			
		||||
							<div class="action green" id="proxy-save-action">
 | 
			
		||||
								<span>Save</span>
 | 
			
		||||
							</div>
 | 
			
		||||
						</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -90,7 +90,7 @@ class PreferenceView extends BaseComponent {
 | 
			
		||||
			this.handleNavigation(navItem);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		ipcRenderer.on('toggle-sidebar', (event, state) => {
 | 
			
		||||
		ipcRenderer.on('toggle-sidebar-setting', (event, state) => {
 | 
			
		||||
			this.handleToggle('sidebar-option', state);
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,7 @@ class ShortcutsSection extends BaseSection {
 | 
			
		||||
 | 
			
		||||
		return `
 | 
			
		||||
            <div class="settings-pane">
 | 
			
		||||
            <div class="settings-card tip"><p><b><i class="material-icons md-14">settings</i>Tip:  </b>These desktop app shortcuts extend the Zulip webapp's <span id="open-hotkeys-link"> keyboard shortcuts</span>.</p></div>
 | 
			
		||||
              <div class="title">Application Shortcuts</div>
 | 
			
		||||
              <div class="settings-card">
 | 
			
		||||
                <table>
 | 
			
		||||
@@ -160,7 +161,6 @@ class ShortcutsSection extends BaseSection {
 | 
			
		||||
                </table>
 | 
			
		||||
                <div class="setting-control"></div>
 | 
			
		||||
              </div>
 | 
			
		||||
              <div class="settings-card tip"><b><i class="material-icons md-14">settings</i>Tip: </b>These desktop app shortcuts extend the Zulip webapp's <span id="open-hotkeys-link">keyboard shortcuts</span>.</div>
 | 
			
		||||
            </div>
 | 
			
		||||
		`;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -115,26 +115,13 @@ function sendAction(action) {
 | 
			
		||||
 | 
			
		||||
const createTray = function () {
 | 
			
		||||
	window.tray = new Tray(iconPath());
 | 
			
		||||
	const contextMenu = Menu.buildFromTemplate([{
 | 
			
		||||
		label: 'About',
 | 
			
		||||
		click() {
 | 
			
		||||
			// We need to focus the main window first
 | 
			
		||||
			ipcRenderer.send('focus-app');
 | 
			
		||||
			sendAction('open-about');
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	const contextMenu = Menu.buildFromTemplate([
 | 
			
		||||
		{
 | 
			
		||||
		type: 'separator'
 | 
			
		||||
	},
 | 
			
		||||
	{
 | 
			
		||||
		label: 'Focus',
 | 
			
		||||
			label: 'Zulip',
 | 
			
		||||
			click() {
 | 
			
		||||
				ipcRenderer.send('focus-app');
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
	{
 | 
			
		||||
		type: 'separator'
 | 
			
		||||
	},
 | 
			
		||||
		{
 | 
			
		||||
			label: 'Settings',
 | 
			
		||||
			click() {
 | 
			
		||||
@@ -153,12 +140,11 @@ const createTray = function () {
 | 
			
		||||
		}
 | 
			
		||||
	]);
 | 
			
		||||
	window.tray.setContextMenu(contextMenu);
 | 
			
		||||
	if (process.platform === 'linux' || process.platform === 'win32') {
 | 
			
		||||
		window.tray.on('click', () => {
 | 
			
		||||
		// Click event only works on Windows
 | 
			
		||||
		if (process.platform === 'win32') {
 | 
			
		||||
			ipcRenderer.send('toggle-app');
 | 
			
		||||
		}
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
ipcRenderer.on('destroytray', event => {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								app/renderer/js/utils/common-util.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								app/renderer/js/utils/common-util.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
let instance = null;
 | 
			
		||||
 | 
			
		||||
class CommonUtil {
 | 
			
		||||
	constructor() {
 | 
			
		||||
		if (instance) {
 | 
			
		||||
			return instance;
 | 
			
		||||
		} else {
 | 
			
		||||
			instance = this;
 | 
			
		||||
		}
 | 
			
		||||
		return instance;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// unescape already encoded/escaped strings
 | 
			
		||||
	decodeString(string) {
 | 
			
		||||
		const parser = new DOMParser();
 | 
			
		||||
		const dom = parser.parseFromString(
 | 
			
		||||
			'<!doctype html><body>' + string,
 | 
			
		||||
			'text/html');
 | 
			
		||||
		return dom.body.textContent;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = new CommonUtil();
 | 
			
		||||
@@ -39,7 +39,12 @@ class ConfigUtil {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getConfigItem(key, defaultValue = null) {
 | 
			
		||||
		this.reloadDB();
 | 
			
		||||
		try {
 | 
			
		||||
			this.db.reload();
 | 
			
		||||
		} catch (err) {
 | 
			
		||||
			logger.error('Error while reloading settings.json: ');
 | 
			
		||||
			logger.error(err);
 | 
			
		||||
		}
 | 
			
		||||
		const value = this.db.getData('/')[key];
 | 
			
		||||
		if (value === undefined) {
 | 
			
		||||
			this.setConfigItem(key, defaultValue);
 | 
			
		||||
@@ -50,19 +55,24 @@ class ConfigUtil {
 | 
			
		||||
	}
 | 
			
		||||
	// This function returns whether a key exists in the configuration file (settings.json)
 | 
			
		||||
	isConfigItemExists(key) {
 | 
			
		||||
		this.reloadDB();
 | 
			
		||||
		try {
 | 
			
		||||
			this.db.reload();
 | 
			
		||||
		} catch (err) {
 | 
			
		||||
			logger.error('Error while reloading settings.json: ');
 | 
			
		||||
			logger.error(err);
 | 
			
		||||
		}
 | 
			
		||||
		const value = this.db.getData('/')[key];
 | 
			
		||||
		return (value !== undefined);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	setConfigItem(key, value) {
 | 
			
		||||
		this.db.push(`/${key}`, value, true);
 | 
			
		||||
		this.reloadDB();
 | 
			
		||||
		this.db.save();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	removeConfigItem(key) {
 | 
			
		||||
		this.db.delete(`/${key}`);
 | 
			
		||||
		this.reloadDB();
 | 
			
		||||
		this.db.save();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	reloadDB() {
 | 
			
		||||
 
 | 
			
		||||
@@ -10,6 +10,8 @@ const escape = require('escape-html');
 | 
			
		||||
const Logger = require('./logger-util');
 | 
			
		||||
 | 
			
		||||
const CertificateUtil = require(__dirname + '/certificate-util.js');
 | 
			
		||||
const ProxyUtil = require(__dirname + '/proxy-util.js');
 | 
			
		||||
const ConfigUtil = require(__dirname + '/config-util.js');
 | 
			
		||||
 | 
			
		||||
const logger = new Logger({
 | 
			
		||||
	file: `domain-util.log`,
 | 
			
		||||
@@ -119,8 +121,16 @@ class DomainUtil {
 | 
			
		||||
				logger.warn('Error while trying to get certificate: ' + err);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const proxyEnabled = ConfigUtil.getConfigItem('useManualProxy') || ConfigUtil.getConfigItem('useSystemProxy');
 | 
			
		||||
 | 
			
		||||
		// If certificate for the domain exists add it as a ca key in the request's parameter else consider only domain as the parameter for request
 | 
			
		||||
		const checkDomain = (certificateLocation) ? ({url: domain + '/static/audio/zulip.ogg', ca: certificateLocation}) : domain + '/static/audio/zulip.ogg';
 | 
			
		||||
		// Add proxy as a parameter if it sbeing used.
 | 
			
		||||
		const checkDomain = {
 | 
			
		||||
			url: domain + '/static/audio/zulip.ogg',
 | 
			
		||||
			ca: (certificateLocation) ? certificateLocation : '',
 | 
			
		||||
			proxy: proxyEnabled ? ProxyUtil.getProxy(domain) : ''
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		const serverConf = {
 | 
			
		||||
			icon: defaultIconUrl,
 | 
			
		||||
@@ -193,9 +203,13 @@ class DomainUtil {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	getServerSettings(domain) {
 | 
			
		||||
		const serverSettingsUrl = domain + '/api/v1/server_settings';
 | 
			
		||||
		const proxyEnabled = ConfigUtil.getConfigItem('useManualProxy') || ConfigUtil.getConfigItem('useSystemProxy');
 | 
			
		||||
		const serverSettingsOptions = {
 | 
			
		||||
			url: domain + '/api/v1/server_settings',
 | 
			
		||||
			proxy: proxyEnabled ? ProxyUtil.getProxy(domain) : ''
 | 
			
		||||
		};
 | 
			
		||||
		return new Promise((resolve, reject) => {
 | 
			
		||||
			request(serverSettingsUrl, (error, response) => {
 | 
			
		||||
			request(serverSettingsOptions, (error, response) => {
 | 
			
		||||
				if (!error && response.statusCode === 200) {
 | 
			
		||||
					const data = JSON.parse(response.body);
 | 
			
		||||
					if (data.hasOwnProperty('realm_icon') && data.realm_icon) {
 | 
			
		||||
@@ -215,12 +229,17 @@ class DomainUtil {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	saveServerIcon(url) {
 | 
			
		||||
		const proxyEnabled = ConfigUtil.getConfigItem('useManualProxy') || ConfigUtil.getConfigItem('useSystemProxy');
 | 
			
		||||
		const serverIconOptions = {
 | 
			
		||||
			url,
 | 
			
		||||
			proxy: proxyEnabled ? ProxyUtil.getProxy(url) : ''
 | 
			
		||||
		};
 | 
			
		||||
		// The save will always succeed. If url is invalid, downgrade to default icon.
 | 
			
		||||
		return new Promise(resolve => {
 | 
			
		||||
			const filePath = this.generateFilePath(url);
 | 
			
		||||
			const file = fs.createWriteStream(filePath);
 | 
			
		||||
			try {
 | 
			
		||||
				request(url).on('response', response => {
 | 
			
		||||
				request(serverIconOptions).on('response', response => {
 | 
			
		||||
					response.on('error', err => {
 | 
			
		||||
						logger.log('Could not get server icon.');
 | 
			
		||||
						logger.log(err);
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,12 @@ class LinkUtil {
 | 
			
		||||
		const isImageUrl = /\.(bmp|gif|jpg|jpeg|png|webp)\?*.*$/i;
 | 
			
		||||
		return isImageUrl.test(url);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	isPDF(url) {
 | 
			
		||||
		// test for pdf extension
 | 
			
		||||
		const isPDFUrl = /\.(pdf)\?*.*$/i;
 | 
			
		||||
		return isPDFUrl.test(url);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports = new LinkUtil();
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
const url = require('url');
 | 
			
		||||
const ConfigUtil = require('./config-util.js');
 | 
			
		||||
 | 
			
		||||
let instance = null;
 | 
			
		||||
@@ -15,6 +16,39 @@ class ProxyUtil {
 | 
			
		||||
		return instance;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Return proxy to be used for a particular uri, to be used for request
 | 
			
		||||
	getProxy(uri) {
 | 
			
		||||
		uri = url.parse(uri);
 | 
			
		||||
		const proxyRules = ConfigUtil.getConfigItem('proxyRules', '').split(';');
 | 
			
		||||
		// If SPS is on and system uses no proxy then request should not try to use proxy from
 | 
			
		||||
		// environment. NO_PROXY = '*' makes request ignore all environment proxy variables.
 | 
			
		||||
		if (proxyRules[0] === '') {
 | 
			
		||||
			process.env.NO_PROXY = '*';
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const proxyRule = {};
 | 
			
		||||
		if (uri.protocol === 'http:') {
 | 
			
		||||
			proxyRules.forEach(proxy => {
 | 
			
		||||
				if (proxy.includes('http=')) {
 | 
			
		||||
					proxyRule.hostname = proxy.split('http=')[1].trim().split(':')[0];
 | 
			
		||||
					proxyRule.port = proxy.split('http=')[1].trim().split(':')[1];
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
			return proxyRule;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (uri.protocol === 'https:') {
 | 
			
		||||
			proxyRules.forEach(proxy => {
 | 
			
		||||
				if (proxy.includes('https=')) {
 | 
			
		||||
					proxyRule.hostname = proxy.split('https=')[1].trim().split(':')[0];
 | 
			
		||||
					proxyRule.port = proxy.split('https=')[1].trim().split(':')[1];
 | 
			
		||||
				}
 | 
			
		||||
			});
 | 
			
		||||
			return proxyRule;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	resolveSystemProxy(mainWindow) {
 | 
			
		||||
		const page = mainWindow.webContents;
 | 
			
		||||
		const ses = page.session;
 | 
			
		||||
 
 | 
			
		||||
@@ -5,6 +5,10 @@ const sentryInit = () => {
 | 
			
		||||
	if (!isDev) {
 | 
			
		||||
		init({
 | 
			
		||||
			dsn: 'SENTRY_DSN',
 | 
			
		||||
			// We should ignore this error since it's harmless and we know the reason behind this
 | 
			
		||||
			// This error mainly comes from the console logs.
 | 
			
		||||
			// This is a temp solution until Sentry supports disabling the console logs
 | 
			
		||||
			ignoreErrors: ['does not appear to be a valid Zulip server'],
 | 
			
		||||
			sendTimeout: 30 // wait 30 seconds before considering the sending capture to have failed, default is 1 second
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										60
									
								
								changelog.md
									
									
									
									
									
								
							
							
						
						
									
										60
									
								
								changelog.md
									
									
									
									
									
								
							@@ -4,6 +4,66 @@
 | 
			
		||||
 | 
			
		||||
All notable changes to the Zulip desktop app are documented in this file.
 | 
			
		||||
 | 
			
		||||
### v2.3.8 --2018-09-25
 | 
			
		||||
 | 
			
		||||
**New features**:
 | 
			
		||||
* Auto hide menubar on Windows/Linux. Add a setting option for the same.
 | 
			
		||||
* Improve design of setting page.
 | 
			
		||||
* Toggle app on clicking the tray icon (Linux).
 | 
			
		||||
* Update sidebar realm name when it's changed in webapp.
 | 
			
		||||
* left-sidebar: Add initial character of realm name instead of default icon.
 | 
			
		||||
 | 
			
		||||
**Fixes**:
 | 
			
		||||
* linux: Fix ALT+SHIFT opening menu items on Linux.
 | 
			
		||||
* sentry: Add ignore errors to sentry configuration.
 | 
			
		||||
* Linux: Add label for help menu item.
 | 
			
		||||
* file-attachments: Allow multiple downloads of same file name.
 | 
			
		||||
 | 
			
		||||
**Module Updates**
 | 
			
		||||
* electron: Update electron to v2.0.9.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<hr>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### v2.3.7-beta --2018-09-03
 | 
			
		||||
 | 
			
		||||
**New features**:
 | 
			
		||||
* Add a feature to show and view pdf file in the app.
 | 
			
		||||
 | 
			
		||||
**Fixes**:
 | 
			
		||||
* Use package reload instead of custom reload. This is an experimental fix for setting files getting corrupted issue.
 | 
			
		||||
* Unescape server name in window menu item.
 | 
			
		||||
 | 
			
		||||
<hr>
 | 
			
		||||
 | 
			
		||||
### v2.3.6 --2018-08-27
 | 
			
		||||
 | 
			
		||||
**New features**:
 | 
			
		||||
* Add proxy details while validating a server. This fixes the server validating issue for users who are using the proxy settings. 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
**Fixes**:
 | 
			
		||||
 | 
			
		||||
* Fix youtube video not playing in lightbox. 
 | 
			
		||||
* Fix realm name not escaped properly.
 | 
			
		||||
 | 
			
		||||
<hr>
 | 
			
		||||
 | 
			
		||||
### v2.3.5 --2018-08-03
 | 
			
		||||
 | 
			
		||||
**New features**:
 | 
			
		||||
* Add a setting option to show downloaded file in file manager.
 | 
			
		||||
* Added electron bridge to communicate with webapp in real time.
 | 
			
		||||
 | 
			
		||||
**Fixes**:
 | 
			
		||||
 | 
			
		||||
* Fix failing attached file downloads.
 | 
			
		||||
* Fix page_params error.
 | 
			
		||||
* gulpfile: Update syntax and methods for gulp v4.x.
 | 
			
		||||
 | 
			
		||||
<hr>
 | 
			
		||||
 | 
			
		||||
### v2.3.4-beta --2018-07-24
 | 
			
		||||
 | 
			
		||||
**Fixes**:
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										105
									
								
								help.md
									
									
									
									
									
								
							
							
						
						
									
										105
									
								
								help.md
									
									
									
									
									
								
							@@ -1,105 +0,0 @@
 | 
			
		||||
# User Guide
 | 
			
		||||
 | 
			
		||||
> Welcome! This guide will walk you through the basics of using Zulip Desktop.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Get Zulip Desktop
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Connect to a Server
 | 
			
		||||
 | 
			
		||||
### Connect through a proxy
 | 
			
		||||
 | 
			
		||||
It's possible to connect to your server through a proxy. 
 | 
			
		||||
You can enter the proxy settings in the `Network` section of App Settings. 
 | 
			
		||||
There are three fields provided:
 | 
			
		||||
* `PAC script` - The URL associated with the PAC file.
 | 
			
		||||
* `Proxy rules` - Rules indicating which proxies to use.
 | 
			
		||||
* `Proxy bypass rules` - Rules indicating which URLs should
 | 
			
		||||
    bypass the proxy settings.
 | 
			
		||||
	
 | 
			
		||||
For a typical setup where internet access is required to use an HTTP proxy,
 | 
			
		||||
but URLs on the local network should be accessed directly, configure as follows:
 | 
			
		||||
 | 
			
		||||
`Proxy rules = proxy.example.com`
 | 
			
		||||
 | 
			
		||||
Your HTTP proxy server
 | 
			
		||||
`Proxy bypass rules = *.example.com;10.0.0.0/8`
 | 
			
		||||
 | 
			
		||||
Directly connect to your own domain and private IP subnet
 | 
			
		||||
for more complex setups, read below to configure complex proxy rules and proxy bypass rules.
 | 
			
		||||
 | 
			
		||||
### Sets the proxy settings.
 | 
			
		||||
 | 
			
		||||
When `PAC script` and `Proxy rules` are provided together, the `Proxy rules`
 | 
			
		||||
option is ignored and `PAC script` configuration is applied.
 | 
			
		||||
 | 
			
		||||
The `Proxy rules` has to follow the rules below:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
proxyRules = schemeProxies[";"<schemeProxies>]
 | 
			
		||||
schemeProxies = [<urlScheme>"="]<proxyURIList>
 | 
			
		||||
urlScheme = "http" | "https" | "ftp" | "socks"
 | 
			
		||||
proxyURIList = <proxyURL>[","<proxyURIList>]
 | 
			
		||||
proxyURL = [<proxyScheme>"://"]<proxyHost>[":"<proxyPort>]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
For example:
 | 
			
		||||
 | 
			
		||||
* `http=foopy:80;ftp=foopy2` - Use HTTP proxy `foopy:80` for `http://` URLs, and
 | 
			
		||||
  HTTP proxy `foopy2:80` for `ftp://` URLs.
 | 
			
		||||
* `foopy:80` - Use HTTP proxy `foopy:80` for all URLs.
 | 
			
		||||
* `foopy:80,bar,direct://` - Use HTTP proxy `foopy:80` for all URLs, failing
 | 
			
		||||
  over to `bar` if `foopy:80` is unavailable, and after that using no proxy.
 | 
			
		||||
* `socks4://foopy` - Use SOCKS v4 proxy `foopy:1080` for all URLs.
 | 
			
		||||
* `http=foopy,socks5://bar.com` - Use HTTP proxy `foopy` for http URLs, and fail
 | 
			
		||||
  over to the SOCKS5 proxy `bar.com` if `foopy` is unavailable.
 | 
			
		||||
* `http=foopy,direct://` - Use HTTP proxy `foopy` for http URLs, and use no
 | 
			
		||||
  proxy if `foopy` is unavailable.
 | 
			
		||||
* `http=foopy;socks=foopy2` -  Use HTTP proxy `foopy` for http URLs, and use
 | 
			
		||||
  `socks4://foopy2` for all other URLs.
 | 
			
		||||
 | 
			
		||||
The `Proxy bypass rules` is a comma separated list of rules described below:
 | 
			
		||||
 | 
			
		||||
* `[ URL_SCHEME "://" ] HOSTNAME_PATTERN [ ":" <port> ]`
 | 
			
		||||
 | 
			
		||||
   Match all hostnames that match the pattern HOSTNAME_PATTERN.
 | 
			
		||||
 | 
			
		||||
   Examples:
 | 
			
		||||
     "foobar.com", "*foobar.com", "*.foobar.com", "*foobar.com:99",
 | 
			
		||||
     "https://x.*.y.com:99"
 | 
			
		||||
 | 
			
		||||
 * `"." HOSTNAME_SUFFIX_PATTERN [ ":" PORT ]`
 | 
			
		||||
 | 
			
		||||
   Match a particular domain suffix.
 | 
			
		||||
 | 
			
		||||
   Examples:
 | 
			
		||||
     ".google.com", ".com", "http://.google.com"
 | 
			
		||||
 | 
			
		||||
* `[ SCHEME "://" ] IP_LITERAL [ ":" PORT ]`
 | 
			
		||||
 | 
			
		||||
   Match URLs which are IP address literals.
 | 
			
		||||
 | 
			
		||||
   Examples:
 | 
			
		||||
     "127.0.1", "[0:0::1]", "[::1]", "http://[::1]:99"
 | 
			
		||||
 | 
			
		||||
*  `IP_LITERAL "/" PREFIX_LENGHT_IN_BITS`
 | 
			
		||||
 | 
			
		||||
   Match any URL that is to an IP literal that falls between the
 | 
			
		||||
   given range. IP range is specified using CIDR notation.
 | 
			
		||||
 | 
			
		||||
   Examples:
 | 
			
		||||
     "192.168.1.1/16", "fefe:13::abc/33".
 | 
			
		||||
 | 
			
		||||
*  `<local>`
 | 
			
		||||
 | 
			
		||||
   Match local addresses. The meaning of `<local>` is whether the
 | 
			
		||||
   host matches one of: "127.0.0.1", "::1", "localhost".
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Change App Preferences
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Reporting an Issue
 | 
			
		||||
							
								
								
									
										339
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										339
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "zulip",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "version": "2.3.82",
 | 
			
		||||
  "lockfileVersion": 1,
 | 
			
		||||
  "requires": true,
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
@@ -11,9 +11,9 @@
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "@types/node": {
 | 
			
		||||
      "version": "8.10.21",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.21.tgz",
 | 
			
		||||
      "integrity": "sha512-87XkD9qDXm8fIax+5y7drx84cXsu34ZZqfB7Cial3Q/2lxSoJ/+DRaWckkCbxP41wFSIrrb939VhzaNxj4eY1w==",
 | 
			
		||||
      "version": "8.10.29",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz",
 | 
			
		||||
      "integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ==",
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "abbrev": {
 | 
			
		||||
@@ -173,11 +173,91 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "app-builder-bin": {
 | 
			
		||||
      "version": "1.11.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-1.11.1.tgz",
 | 
			
		||||
      "integrity": "sha512-EYzPq59A3AMAD0/a6QSSBGzrXvKCm19t5utO5qeMTSAeWx0HDZxMyUBRUoOZIFd6+uJRF1HMTofIAushLu7PhQ==",
 | 
			
		||||
      "version": "2.1.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-2.1.2.tgz",
 | 
			
		||||
      "integrity": "sha512-PZJspzAqB0+z60OalXChP9I05BzODd/ffDz6RvTmDG3qclr7YrnpqzvPF+T7vGVtk2nN7syuveTQROJfXcB8xA==",
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "app-builder-lib": {
 | 
			
		||||
      "version": "20.28.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-20.28.3.tgz",
 | 
			
		||||
      "integrity": "sha512-oZqv3+oi5bfKbN5eFfEbNovSuMTXn3yu8yJbmqDCNXcI1caOF+hCNAUpgMFohNGO0uY80veAwQTysZ74/VFjCA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "7zip-bin": "~4.0.2",
 | 
			
		||||
        "app-builder-bin": "2.1.2",
 | 
			
		||||
        "async-exit-hook": "^2.0.1",
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util": "6.1.3",
 | 
			
		||||
        "builder-util-runtime": "4.4.1",
 | 
			
		||||
        "chromium-pickle-js": "^0.2.0",
 | 
			
		||||
        "debug": "^3.1.0",
 | 
			
		||||
        "ejs": "^2.6.1",
 | 
			
		||||
        "electron-osx-sign": "0.4.10",
 | 
			
		||||
        "electron-publish": "20.28.3",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "hosted-git-info": "^2.7.1",
 | 
			
		||||
        "is-ci": "^1.2.0",
 | 
			
		||||
        "isbinaryfile": "^3.0.3",
 | 
			
		||||
        "js-yaml": "^3.12.0",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
        "minimatch": "^3.0.4",
 | 
			
		||||
        "normalize-package-data": "^2.4.0",
 | 
			
		||||
        "plist": "^3.0.1",
 | 
			
		||||
        "read-config-file": "3.1.2",
 | 
			
		||||
        "sanitize-filename": "^1.6.1",
 | 
			
		||||
        "semver": "^5.5.1",
 | 
			
		||||
        "temp-file": "^3.1.3"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "ci-info": {
 | 
			
		||||
          "version": "1.4.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.4.0.tgz",
 | 
			
		||||
          "integrity": "sha512-Oqmw2pVfCl8sCL+1QgMywPfdxPJPkC51y4usw0iiE2S9qnEOAqXy8bwl1CpMpnoU39g4iKJTz6QZj+28FvOnjQ==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "debug": {
 | 
			
		||||
          "version": "3.1.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
 | 
			
		||||
          "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "ms": "2.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "hosted-git-info": {
 | 
			
		||||
          "version": "2.7.1",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
 | 
			
		||||
          "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "is-ci": {
 | 
			
		||||
          "version": "1.2.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.0.tgz",
 | 
			
		||||
          "integrity": "sha512-plgvKjQtalH2P3Gytb7L61Lmz95g2DlpzFiQyRSFew8WoJKxtKRzrZMeyRN2supblm3Psc8OQGy7Xjb6XG11jw==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "ci-info": "^1.3.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "js-yaml": {
 | 
			
		||||
          "version": "3.12.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
 | 
			
		||||
          "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "argparse": "^1.0.7",
 | 
			
		||||
            "esprima": "^4.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "semver": {
 | 
			
		||||
          "version": "5.5.1",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
 | 
			
		||||
          "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "append-buffer": {
 | 
			
		||||
      "version": "1.0.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/append-buffer/-/append-buffer-1.0.2.tgz",
 | 
			
		||||
@@ -916,33 +996,39 @@
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "buffer-from": {
 | 
			
		||||
      "version": "1.1.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
 | 
			
		||||
      "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==",
 | 
			
		||||
      "version": "1.1.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
 | 
			
		||||
      "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "builder-util": {
 | 
			
		||||
      "version": "5.16.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-5.16.0.tgz",
 | 
			
		||||
      "integrity": "sha512-HN7EyZF+WPcncty4fy7AVZxfR8TMkX/ZxxQfsji4dWyzDZ8nAqMadXKZlqySfLr5ckEjwEsOrDqO2ZsqkVoCtg==",
 | 
			
		||||
      "version": "6.1.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-6.1.3.tgz",
 | 
			
		||||
      "integrity": "sha512-MXeARNff9KHlzJYGJcAhLI/tpE57PmUnleaYfL22IE+viRt192Yr3wQL444ztsA+LUHJ8d12moUoG00jh1hfLA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "7zip-bin": "~4.0.2",
 | 
			
		||||
        "app-builder-bin": "1.11.1",
 | 
			
		||||
        "app-builder-bin": "2.1.2",
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util-runtime": "^4.4.0",
 | 
			
		||||
        "builder-util-runtime": "^4.4.1",
 | 
			
		||||
        "chalk": "^2.4.1",
 | 
			
		||||
        "debug": "^3.1.0",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "is-ci": "^1.1.0",
 | 
			
		||||
        "is-ci": "^1.2.0",
 | 
			
		||||
        "js-yaml": "^3.12.0",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
        "semver": "^5.5.0",
 | 
			
		||||
        "source-map-support": "^0.5.6",
 | 
			
		||||
        "semver": "^5.5.1",
 | 
			
		||||
        "source-map-support": "^0.5.9",
 | 
			
		||||
        "stat-mode": "^0.2.2",
 | 
			
		||||
        "temp-file": "^3.1.3"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "ci-info": {
 | 
			
		||||
          "version": "1.4.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.4.0.tgz",
 | 
			
		||||
          "integrity": "sha512-Oqmw2pVfCl8sCL+1QgMywPfdxPJPkC51y4usw0iiE2S9qnEOAqXy8bwl1CpMpnoU39g4iKJTz6QZj+28FvOnjQ==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "debug": {
 | 
			
		||||
          "version": "3.1.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
 | 
			
		||||
@@ -952,6 +1038,15 @@
 | 
			
		||||
            "ms": "2.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "is-ci": {
 | 
			
		||||
          "version": "1.2.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.0.tgz",
 | 
			
		||||
          "integrity": "sha512-plgvKjQtalH2P3Gytb7L61Lmz95g2DlpzFiQyRSFew8WoJKxtKRzrZMeyRN2supblm3Psc8OQGy7Xjb6XG11jw==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "ci-info": "^1.3.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "js-yaml": {
 | 
			
		||||
          "version": "3.12.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
 | 
			
		||||
@@ -961,13 +1056,19 @@
 | 
			
		||||
            "argparse": "^1.0.7",
 | 
			
		||||
            "esprima": "^4.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "semver": {
 | 
			
		||||
          "version": "5.5.1",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz",
 | 
			
		||||
          "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "builder-util-runtime": {
 | 
			
		||||
      "version": "4.4.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-4.4.0.tgz",
 | 
			
		||||
      "integrity": "sha512-tkTF1o7XAX79ZkMo8822ZdQMpEBGSgfJ9kEYgyTAja90BPu7HO8C02pb8iSlFXfmK0Q0UA6D8MmnSNNPi0JLeg==",
 | 
			
		||||
      "version": "4.4.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-4.4.1.tgz",
 | 
			
		||||
      "integrity": "sha512-8L2pbL6D3VdI1f8OMknlZJpw0c7KK15BRz3cY77AOUElc4XlCv2UhVV01jJM7+6Lx7henaQh80ALULp64eFYAQ==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
@@ -1934,21 +2035,30 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "dmg-builder": {
 | 
			
		||||
      "version": "4.14.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-4.14.0.tgz",
 | 
			
		||||
      "integrity": "sha512-zTlb3VFkOGqCzsSSEVkfzCRl0Gd3LINMfplI6mCvTSU825OVG7W1IvZSp2gikLT5OJIgJzx2YuomKntWhXOJWA==",
 | 
			
		||||
      "version": "5.3.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-5.3.1.tgz",
 | 
			
		||||
      "integrity": "sha512-/+vtqlgvTtha/4Gc76XIRKS2KzYO58sTWXhZ/kgfNr05ZXY6bIw26v7xDu8ZBpTYnfWI09JRZTMv1yIXT/vvfg==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "app-builder-lib": "~20.28.3",
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util": "~5.16.0",
 | 
			
		||||
        "electron-builder-lib": "~20.20.4",
 | 
			
		||||
        "builder-util": "~6.1.3",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "iconv-lite": "^0.4.23",
 | 
			
		||||
        "iconv-lite": "^0.4.24",
 | 
			
		||||
        "js-yaml": "^3.12.0",
 | 
			
		||||
        "parse-color": "^1.0.0",
 | 
			
		||||
        "sanitize-filename": "^1.6.1"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "iconv-lite": {
 | 
			
		||||
          "version": "0.4.24",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
 | 
			
		||||
          "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "safer-buffer": ">= 2.1.2 < 3"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "js-yaml": {
 | 
			
		||||
          "version": "3.12.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
 | 
			
		||||
@@ -2091,9 +2201,9 @@
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "electron": {
 | 
			
		||||
      "version": "2.0.1",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron/-/electron-2.0.1.tgz",
 | 
			
		||||
      "integrity": "sha512-piSwY2P7L6NWx672MNdSvtGPdQP/mhwAg8ICN6ofTTItPkd7D6kNHBPkq+DXwZcXVH1EifYR9yD/l3Xw1haVpQ==",
 | 
			
		||||
      "version": "2.0.9",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron/-/electron-2.0.9.tgz",
 | 
			
		||||
      "integrity": "sha512-xRefYuz6C65ahX8vDwIJxr1Y5ffFa106dugZEbl23yLKfrAG01lh5csBJ9hJwCBPLHp2zj/9PGoJ8dt5zlzOvQ==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "@types/node": "^8.0.24",
 | 
			
		||||
@@ -2102,103 +2212,39 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "electron-builder": {
 | 
			
		||||
      "version": "20.20.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-20.20.4.tgz",
 | 
			
		||||
      "integrity": "sha512-6X2T21/v35dvt9Rd+L9Dlb3EbIVGiqePh2sirngPa2wT6QnmVdVJsvnlxKsWWYrsQzowVSGxkho5FGiCwanDiw==",
 | 
			
		||||
      "version": "20.28.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-20.28.3.tgz",
 | 
			
		||||
      "integrity": "sha512-Sbe7E18Fl88la642PpcMU4jxv/1/vI3PCT/+Szly3O97DtKwuuVmk5MhW+FDBKgNS2f0xJgA6vRRraDK6HYvrw==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "app-builder-lib": "20.28.3",
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util": "5.16.0",
 | 
			
		||||
        "builder-util-runtime": "4.4.0",
 | 
			
		||||
        "builder-util": "6.1.3",
 | 
			
		||||
        "builder-util-runtime": "4.4.1",
 | 
			
		||||
        "chalk": "^2.4.1",
 | 
			
		||||
        "dmg-builder": "4.14.0",
 | 
			
		||||
        "electron-builder-lib": "20.20.4",
 | 
			
		||||
        "dmg-builder": "5.3.1",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "is-ci": "^1.1.0",
 | 
			
		||||
        "is-ci": "^1.2.0",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
        "read-config-file": "3.1.0",
 | 
			
		||||
        "read-config-file": "3.1.2",
 | 
			
		||||
        "sanitize-filename": "^1.6.1",
 | 
			
		||||
        "update-notifier": "^2.5.0",
 | 
			
		||||
        "yargs": "^12.0.1"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "electron-builder-lib": {
 | 
			
		||||
      "version": "20.20.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-builder-lib/-/electron-builder-lib-20.20.4.tgz",
 | 
			
		||||
      "integrity": "sha512-84n1ELXP/leF1IuDIsx2pyUJuz889Um3sb2tjBxDbEhq0oaLnp1ifB3j5iO+OV7ZfGnXKyvds6nPcNt1AYQy7A==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "7zip-bin": "~4.0.2",
 | 
			
		||||
        "app-builder-bin": "1.11.1",
 | 
			
		||||
        "async-exit-hook": "^2.0.1",
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util": "5.16.0",
 | 
			
		||||
        "builder-util-runtime": "4.4.0",
 | 
			
		||||
        "chromium-pickle-js": "^0.2.0",
 | 
			
		||||
        "debug": "^3.1.0",
 | 
			
		||||
        "ejs": "^2.6.1",
 | 
			
		||||
        "electron-osx-sign": "0.4.10",
 | 
			
		||||
        "electron-publish": "20.22.0",
 | 
			
		||||
        "env-paths": "^1.0.0",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "hosted-git-info": "^2.7.1",
 | 
			
		||||
        "is-ci": "^1.1.0",
 | 
			
		||||
        "isbinaryfile": "^3.0.2",
 | 
			
		||||
        "js-yaml": "^3.12.0",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
        "minimatch": "^3.0.4",
 | 
			
		||||
        "normalize-package-data": "^2.4.0",
 | 
			
		||||
        "plist": "^3.0.1",
 | 
			
		||||
        "read-config-file": "3.1.0",
 | 
			
		||||
        "sanitize-filename": "^1.6.1",
 | 
			
		||||
        "semver": "^5.5.0",
 | 
			
		||||
        "sumchecker": "^2.0.2",
 | 
			
		||||
        "temp-file": "^3.1.3"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "debug": {
 | 
			
		||||
          "version": "3.1.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
 | 
			
		||||
          "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "ms": "2.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "hosted-git-info": {
 | 
			
		||||
          "version": "2.7.1",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
 | 
			
		||||
          "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==",
 | 
			
		||||
        "ci-info": {
 | 
			
		||||
          "version": "1.4.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.4.0.tgz",
 | 
			
		||||
          "integrity": "sha512-Oqmw2pVfCl8sCL+1QgMywPfdxPJPkC51y4usw0iiE2S9qnEOAqXy8bwl1CpMpnoU39g4iKJTz6QZj+28FvOnjQ==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "js-yaml": {
 | 
			
		||||
          "version": "3.12.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
 | 
			
		||||
          "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
 | 
			
		||||
        "is-ci": {
 | 
			
		||||
          "version": "1.2.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.0.tgz",
 | 
			
		||||
          "integrity": "sha512-plgvKjQtalH2P3Gytb7L61Lmz95g2DlpzFiQyRSFew8WoJKxtKRzrZMeyRN2supblm3Psc8OQGy7Xjb6XG11jw==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "argparse": "^1.0.7",
 | 
			
		||||
            "esprima": "^4.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "sumchecker": {
 | 
			
		||||
          "version": "2.0.2",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-2.0.2.tgz",
 | 
			
		||||
          "integrity": "sha1-D0LBDl0F2l1C7qPlbDOZo31sWz4=",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "debug": "^2.2.0"
 | 
			
		||||
          },
 | 
			
		||||
          "dependencies": {
 | 
			
		||||
            "debug": {
 | 
			
		||||
              "version": "2.6.9",
 | 
			
		||||
              "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
 | 
			
		||||
              "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
 | 
			
		||||
              "dev": true,
 | 
			
		||||
              "requires": {
 | 
			
		||||
                "ms": "2.0.0"
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
            "ci-info": "^1.3.0"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
@@ -2348,14 +2394,14 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "electron-publish": {
 | 
			
		||||
      "version": "20.22.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-20.22.0.tgz",
 | 
			
		||||
      "integrity": "sha512-ZF6GV1y5l1+auMBdISOk3yrltkGxOo1DQaGXVpABuenfgXgrHen6EgkgMy6wHhvBm1tOTZnANJSUV4zDBIFewQ==",
 | 
			
		||||
      "version": "20.28.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-20.28.3.tgz",
 | 
			
		||||
      "integrity": "sha512-/2t5zk9EKgH7p7rFZ+ynTKLmpKGF9bktMP2UR6u4bbPz9w4r3WEUbPOeZ1TLqUCAqdfZECcj4ThjrlcAJTghCA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "bluebird-lst": "^1.0.5",
 | 
			
		||||
        "builder-util": "^5.14.0",
 | 
			
		||||
        "builder-util-runtime": "^4.4.0",
 | 
			
		||||
        "builder-util": "~6.1.3",
 | 
			
		||||
        "builder-util-runtime": "^4.4.1",
 | 
			
		||||
        "chalk": "^2.4.1",
 | 
			
		||||
        "fs-extra-p": "^4.6.1",
 | 
			
		||||
        "lazy-val": "^1.0.3",
 | 
			
		||||
@@ -2456,9 +2502,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "es6-promise": {
 | 
			
		||||
      "version": "4.2.4",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.4.tgz",
 | 
			
		||||
      "integrity": "sha512-/NdNZVJg+uZgtm9eS3O6lrOLYmQag2DjdEXuPaHlZ6RuVqgqaVZfgYCepEIKsLqwdQArOPtC3XzRLqGGfT8KQQ==",
 | 
			
		||||
      "version": "4.2.5",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz",
 | 
			
		||||
      "integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg==",
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "es6-set": {
 | 
			
		||||
@@ -5469,11 +5515,38 @@
 | 
			
		||||
      "dev": true
 | 
			
		||||
    },
 | 
			
		||||
    "isbinaryfile": {
 | 
			
		||||
      "version": "3.0.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.2.tgz",
 | 
			
		||||
      "integrity": "sha1-Sj6XTsDLqQBNP8bN5yCeppNopiE=",
 | 
			
		||||
      "version": "3.0.3",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz",
 | 
			
		||||
      "integrity": "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "buffer-alloc": "^1.2.0"
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "buffer-alloc": {
 | 
			
		||||
          "version": "1.2.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
 | 
			
		||||
          "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "buffer-alloc-unsafe": "^1.1.0",
 | 
			
		||||
            "buffer-fill": "^1.0.0"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "buffer-alloc-unsafe": {
 | 
			
		||||
          "version": "1.1.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz",
 | 
			
		||||
          "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        },
 | 
			
		||||
        "buffer-fill": {
 | 
			
		||||
          "version": "1.0.0",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
 | 
			
		||||
          "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=",
 | 
			
		||||
          "dev": true
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "isexe": {
 | 
			
		||||
      "version": "2.0.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
 | 
			
		||||
@@ -7129,9 +7202,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "read-config-file": {
 | 
			
		||||
      "version": "3.1.0",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-3.1.0.tgz",
 | 
			
		||||
      "integrity": "sha512-z3VTrR9fgFu+Ll6MhTdtxbPFBKNGKgzYYnRjOcZvQeE/zwJTjPYVrps0ATgaSWU2/BnucUg3knP+Oz4zo9vEoA==",
 | 
			
		||||
      "version": "3.1.2",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-3.1.2.tgz",
 | 
			
		||||
      "integrity": "sha512-QCATYzlYHvmWps/W/eP7rcKuhYRYZg5XKeXFxSJRIXvn+KSw1+Ntz2et1aBz5TrEpawGrxWZ7zBipj+/v0xwWQ==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "ajv": "^6.5.2",
 | 
			
		||||
@@ -7146,15 +7219,15 @@
 | 
			
		||||
      },
 | 
			
		||||
      "dependencies": {
 | 
			
		||||
        "ajv": {
 | 
			
		||||
          "version": "6.5.2",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz",
 | 
			
		||||
          "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==",
 | 
			
		||||
          "version": "6.5.3",
 | 
			
		||||
          "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz",
 | 
			
		||||
          "integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==",
 | 
			
		||||
          "dev": true,
 | 
			
		||||
          "requires": {
 | 
			
		||||
            "fast-deep-equal": "^2.0.1",
 | 
			
		||||
            "fast-json-stable-stringify": "^2.0.0",
 | 
			
		||||
            "json-schema-traverse": "^0.4.1",
 | 
			
		||||
            "uri-js": "^4.2.1"
 | 
			
		||||
            "uri-js": "^4.2.2"
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "fast-deep-equal": {
 | 
			
		||||
@@ -7939,9 +8012,9 @@
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "source-map-support": {
 | 
			
		||||
      "version": "0.5.6",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz",
 | 
			
		||||
      "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==",
 | 
			
		||||
      "version": "0.5.9",
 | 
			
		||||
      "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz",
 | 
			
		||||
      "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==",
 | 
			
		||||
      "dev": true,
 | 
			
		||||
      "requires": {
 | 
			
		||||
        "buffer-from": "^1.0.0",
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "zulip",
 | 
			
		||||
  "productName": "Zulip",
 | 
			
		||||
  "version": "2.3.5",
 | 
			
		||||
  "version": "2.3.82",
 | 
			
		||||
  "main": "./app/main",
 | 
			
		||||
  "description": "Zulip Desktop App",
 | 
			
		||||
  "license": "Apache-2.0",
 | 
			
		||||
@@ -123,8 +123,8 @@
 | 
			
		||||
    "assert": "1.4.1",
 | 
			
		||||
    "cp-file": "^5.0.0",
 | 
			
		||||
    "devtron": "1.4.0",
 | 
			
		||||
    "electron": "2.0.1",
 | 
			
		||||
    "electron-builder": "20.20.4",
 | 
			
		||||
    "electron": "2.0.9",
 | 
			
		||||
    "electron-builder": "20.28.3",
 | 
			
		||||
    "electron-connect": "0.6.2",
 | 
			
		||||
    "electron-debug": "1.4.0",
 | 
			
		||||
    "google-translate-api": "2.3.0",
 | 
			
		||||
@@ -153,7 +153,7 @@
 | 
			
		||||
          "max-lines": [
 | 
			
		||||
            "warn",
 | 
			
		||||
            {
 | 
			
		||||
              "max": 500,
 | 
			
		||||
              "max": 600,
 | 
			
		||||
              "skipBlankLines": true,
 | 
			
		||||
              "skipComments": true
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user