Priyank Patel
d7725c121c
typescript: Migrate default-notification to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
2b19cdecf2
typescript: Migrate index.js to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
1182af23e4
typescript: Migrate darwin-notification to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
6192801083
typescript: Migrate helper.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
77899f9f48
typescript: Migrate webview.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
2b1e594286
tabs: Fix constructors in webview tabs.
...
template() property used earlier in tab.ts was a
property of its child classes, which causes problems
in compiler, which this PR fixes.
2019-07-17 00:22:17 +05:30
vsvipul
312dc1daaf
typescript: Migrate functional-tab.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
744d056e26
typescript: Migrate server-tab.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
433f11ebd1
typescript: Migrate tab.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
506982b4c6
typescript: Migrate handle-external-link.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
4adda8b8ae
typescript: Migrate base.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
fbef3e4d7b
utils: Change export statement in domain util.
2019-07-17 00:22:17 +05:30
Priyank Patel
d5c9e638ca
typescript: Migrate preventdrag to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
d5a343d549
typescript: Add needed type annotations after rebasing to master.
2019-07-17 00:22:17 +05:30
Priyank Patel
4412f60435
typescript: Add types to node-json-db variables.
...
This adds JsonDB type to db variables we use, which were
previously any due to issue with node-json-db not specifying
the types field in package.json.
2019-07-17 00:22:17 +05:30
Priyank Patel
cec2b3136d
dependencies: Upgrade node-json-db to v0.9.2.
...
This version was released just for the fact that the
bundles typescript declaration file was not defined
in package.json hence typescript couldn't detect it.
2019-07-17 00:22:17 +05:30
vsvipul
eb30f48a82
typescript: Migrate index.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
edc5b92ab4
typescript: Migrate linuxupdater to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
29753b1a46
typescript: Migrate autoupdater to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
bb7426a789
utils: Change export statement in linux-update-util.
2019-07-17 00:22:17 +05:30
Priyank Patel
fb700350f9
typescript: Fix some issues with recent changes.
...
In domain-util, we were using `import * as ` syntax which
compiled down to `__importStar(require('...'))` which were
not giving the same result as before and causing errors. This
fixes that.
In logger-util, we were missing the call to .apply function
so it should have been `this._log.apply(...)`, but then when we
use apply typescript still complains about merging string with any[]
so we decided to go with bind.
2019-07-17 00:22:17 +05:30
Priyank Patel
c6c36b698d
typescript: Migrate domain-util to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
8ef39553b8
typescript: Migrate linux-update-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
7374fcbe78
typescript: Migrate config-util to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
aa2c55538f
typescript: Migrate params-util.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
4d679acb0c
typescript: Migrate logger-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
ec91d46f7b
typescript: Migrate menu.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
728418742d
typescript: Migrate proxy-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
8b0e9b55fb
typescript: Migrate reconnect-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
8353c4de16
typescript: Migrate dnd-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
8c3a2a80c7
typescript: Migrate link-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
5c4221fc31
typescript: Migrate default-util to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
a57c269935
typescript: Migrate common-util to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
ce81a1b367
typescript: Fix wrong import syntax in request-util.ts.
...
Using the previous syntax was wrong because the file export
the class For example we would use previous syntax if the class
was export by `module.export = { ProxyUtil }`.
2019-07-17 00:22:17 +05:30
vsvipul
26e97c8746
typescript: Migrate certificate-util to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
393a0fc2be
request-util: Fix linting error.
2019-07-17 00:22:17 +05:30
vsvipul
b0348d6bca
typescript: Migrate system-util.js to typescript.
...
We use to check for a case where os.platform() == win64
which is not possible so removed the condition.
2019-07-17 00:22:17 +05:30
vsvipul
9c68fcdda8
typescript: Migrate request-util to typescript.
...
We use newer javascript method for string that linting enforces like
startsWith, includes.
2019-07-17 00:22:17 +05:30
vsvipul
543ead4da3
typescript: Migrate sentry-util.js to typescript.
2019-07-17 00:22:17 +05:30
vsvipul
b5f8d54aea
typescript: Migrate startup.js to typescript.
2019-07-17 00:22:17 +05:30
Priyank Patel
613e44ef8d
reconnect-util: Gracefully reload current webview. ( #783 )
...
Before we were destroying, removing the webview elements when we
need to reload webviews which cause unwanted side-effect for example
drafts not saving because no beforeunload event handler isn't run.
Fixes : #767 .
2019-07-01 23:35:50 +05:30
ViPuL
f0e4a3bc53
menu: Disable menu items on non-server pages.
...
Disables 'Copy Zulip URL' and 'Back' and 'Forward'
when user is on non-server pages, like Settings page.
Also, simplifies the logic for setting enable state
for 'Switch to Next Organization' and 'Switch to
Previous Organization'.
2019-06-29 01:46:14 +05:30
Kanishk Kakar
427c86afaf
spellchecker: Improve auto detection of spellchecker language.
...
*Enabling spellchecker forces app to auto-detect the language the user
is typing in.
*Provide context of the server language when initialising spellchecker.
Fixes : #542 .
2019-06-25 22:29:13 +05:30
vsvipul
0e89880cfb
proxy-util: Fix syntax error.
...
Fixes a wrongly-placed bracket.
2019-06-25 21:05:41 +05:30
vsvipul
b1f1b49982
preference: Remove unused defaultId parameter.
...
defaultId is not a property of OpenDialogOptions.
2019-06-25 21:05:41 +05:30
Priyank Patel
390bf907e5
components: Remove unused isLoading function from Tab.
2019-06-23 00:46:38 +05:30
Akash Nimare
02c8a27567
menu: Open help page of current active server.
...
* menu: Open help page of the currently active server.
Fixes : #758 .
2019-06-21 01:02:48 +05:30
Kanishk Kakar
db4e8e5129
db: Fix JSON db errors on tab switch.
2019-06-20 20:54:30 +05:30
Kanishk Kakar
88b764dcc9
sidebar: Add loading indicator.
...
* Browser-like loading indicator added to the sidebar.
Shows when the app is loading a page. Inactive once the user starts
navigating on the webpage, and in settings.
* Add tooltip saying "Loading" to indicator.
Fixes #430 .
2019-06-15 16:03:50 +05:30
Kanishk Kakar
9fe72c0d21
mennu: Add option to hide menu bar to View menu.
...
* Add View menu shortcut to hide menu bar
The hide menu bar setting available in General Preferences has been added to the View menu.
* settings: Add method to coordinate menu & settings
Use autoHideMenuBar setting with said method.
2019-06-15 04:29:06 +05:30