mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-20 22:48:06 +00:00
Compare commits
6 Commits
pdf-viewer
...
v2.3.7-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50647e330b | ||
|
|
73dc3db436 | ||
|
|
09cf21bf49 | ||
|
|
c30d0cc77b | ||
|
|
872ad4d3e7 | ||
|
|
6fd9e1be8b |
23
README.md
23
README.md
@@ -2,31 +2,26 @@
|
|||||||
[](https://travis-ci.org/zulip/zulip-electron)
|
[](https://travis-ci.org/zulip/zulip-electron)
|
||||||
[](https://ci.appveyor.com/project/akashnimare/zulip-electron/branch/master)
|
[](https://ci.appveyor.com/project/akashnimare/zulip-electron/branch/master)
|
||||||
[](https://github.com/sindresorhus/xo)
|
[](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"/>
|
<img src="http://i.imgur.com/ChzTq4F.png"/>
|
||||||
|
|
||||||
# Download
|
# 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
|
# Features
|
||||||
* Sign in to multiple teams
|
* Sign in to multiple teams
|
||||||
* Desktop Notifications with inline reply support
|
* Desktop notifications with inline reply
|
||||||
* Multilanguage SpellChecker
|
* Tray/dock integration
|
||||||
* OSX/Win/Linux installers
|
* Multi-language spell checker
|
||||||
* Automatic Updates (macOS/Windows/Linux)
|
* Automatic updates
|
||||||
* Keyboard shortcuts
|
|
||||||
|
|
||||||
# Development
|
|
||||||
Please see our [development guide](./development.md) to get started and run app locally.
|
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
|
|
||||||
If you want to contribute please make sure to read [our documentation about contributing](./CONTRIBUTING.md) first.
|
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).
|
||||||
* [Issue Tracker](https://github.com/zulip/zulip-electron/issues)
|
|
||||||
* [Source Code](https://github.com/zulip/zulip-electron/)
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
Released under the [Apache-2.0](./LICENSE) license.
|
Released under the [Apache-2.0](./LICENSE) license.
|
||||||
|
|||||||
@@ -217,6 +217,9 @@ app.on('ready', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
pdfWindow.loadURL(url);
|
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
|
// Reload full app not just webview, useful in debugging
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ const ConfigUtil = require(__dirname + '/js/utils/config-util.js');
|
|||||||
const DNDUtil = require(__dirname + '/js/utils/dnd-util.js');
|
const DNDUtil = require(__dirname + '/js/utils/dnd-util.js');
|
||||||
const ReconnectUtil = require(__dirname + '/js/utils/reconnect-util.js');
|
const ReconnectUtil = require(__dirname + '/js/utils/reconnect-util.js');
|
||||||
const Logger = require(__dirname + '/js/utils/logger-util.js');
|
const Logger = require(__dirname + '/js/utils/logger-util.js');
|
||||||
|
const CommonUtil = require(__dirname + '/js/utils/common-util.js');
|
||||||
|
|
||||||
const { feedbackHolder } = require(__dirname + '/js/feedback.js');
|
const { feedbackHolder } = require(__dirname + '/js/feedback.js');
|
||||||
|
|
||||||
const logger = new Logger({
|
const logger = new Logger({
|
||||||
@@ -177,7 +179,7 @@ class ServerManagerView {
|
|||||||
index,
|
index,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
url: server.url,
|
url: server.url,
|
||||||
name: server.alias,
|
name: CommonUtil.decodeString(server.alias),
|
||||||
isActive: () => {
|
isActive: () => {
|
||||||
return index === this.activeTabIndex;
|
return index === this.activeTabIndex;
|
||||||
},
|
},
|
||||||
|
|||||||
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();
|
||||||
Reference in New Issue
Block a user