Bojidar Marinov
8b44ace3a8
frontend: Make global notifications live-update on changes.
...
Fixes #2527
2016-12-13 20:22:13 -08:00
Tommy Ip
fe4a0e72fc
Add new button to download ~/.zuliprc from settings page.
...
Added new option to download .zuliprc file directly from settings
page. This should help reduce friction when setting up new
bots/integrations. This new feature is available in the bot cards and
the 'show your API key' section. One caveat is that the filename is
automatically set to 'zuliprc' instead of '.zuliprc', since as most
browsers do not allow filenames to start with a dot.
Fixes #2327 .
2016-12-07 21:28:41 -08:00
Rafid Aslam
7856217a63
Migrate JS modules to CommonJS style.
...
Closes #1488 .
2016-12-07 16:11:52 -08:00
Rafid Aslam
ce94fb2eb1
deps: Change zxcvbn download method from download-zxcvbn to npm.
...
- Replace download-zxcvbn with downloading it from npm.
- Change zxcvbn.js path to node_modules (because npm put it to
`node_modules` directory.
- Bump `PROVISION_VERSION` in `version.py` to 2.4.
Fixes #2423 .
2016-12-06 17:54:56 -08:00
AZtheAsian
5e9918135b
eslint: change quote-props from off to error and fix violations.
2016-12-02 18:35:53 -08:00
Tommy Ip
b3f4feb996
eslint: change max-len from warning to error and fix violations.
2016-12-02 14:16:33 +00:00
Tomasz Kolek
4790316b57
Add user setting option to always send push notifications.
...
Add option in user's settings for getting mobile push notifications
even if a Zulip browser is online. Default is False.
Fixes : #1596 .
2016-10-25 10:52:29 -07:00
Amy Liu
3ee777a11a
Add UI for deactivating your own Zulip account.
...
Fixes #1009 .
2016-10-20 22:29:30 -07:00
Brock Whittaker
e463577f30
Fix language alert to display language name.
...
If you chose the same language as was already selected, the alert would
say “is now the default language!” where it omits the language name.
This is the fix so that the language name appears all the time.
2016-10-19 15:17:16 -07:00
Kouhei Sutou
d7bef86d26
settings: Add missing translation tag.
...
User list side name must be translatable.
2016-10-09 23:12:41 -07:00
Brock Whittaker
706f422c3a
Massively refactor settings page templates and styling.
...
This restructures the styling for the Zulip settings and
administration pages to minimize use of Bootstrap and use a consistent
styling library for similar elements.
While it is basically a wash in terms of the page's visuals, it will
make our life a lot easier for future work on improving the settings
pages section of the site.
2016-09-19 21:55:06 -07:00
Brock Whittaker
e52d618f1b
Switching from $.parseJSON to JSON.parse.
...
There are no modern browsers that do not have built in JSON parsing
abilities. We do not need $.parseJSON as it now just serves as a call
to JSON.parse.
2016-08-25 14:22:48 -07:00
Umair Khan
8bf4d9288d
Create a nice default language modal.
...
Fixes : #1396 .
2016-08-10 16:22:36 -07:00
Umair Khan
4c178bc00f
Improve the alert messages for display settings.
2016-07-04 11:56:02 -07:00
Umair Khan
035fceb814
Add dynamically loaded language dropdown.
2016-07-04 11:56:02 -07:00
Umair Khan
3115e13caf
Remove extra call to i18n.t.
2016-06-27 14:17:47 -07:00
Umair Khan
939ebbbc98
Mark report_error arguments translatable.
2016-06-23 16:23:01 -07:00
Umair Khan
4da1a3ecd6
Mark report_success arguments translatable.
2016-06-23 16:23:01 -07:00
James Porter
25a13cb09b
Defer loading zxcvbn in main webapp until necessary.
...
We only use zxcvbn in the main webapp for checking the user's password
in the change password form. Since zxcvbn is a very large javascript
library (~700KB), loading it asynchronously only when a user is trying
to change their password results in a significant performance
improvement for loading the Zulip webapp on a slow network.
Fixes #263 .
2016-06-22 17:06:37 -07:00
Umair Khan
c61a3dfbcc
Ensure translations are loaded.
...
Since i18next loads translations asynchronously we need to make sure
that they are loaded before we call the JS code which depends on them.
Fixes #982
2016-06-20 11:31:28 -07:00
Tim Abbott
7f06fec9d5
Fix spelling of _streams_deferred.
2016-06-14 16:36:54 -07:00
Tim Abbott
c7f0e66f7e
Replace deprecated jQuery deferred.isResolved().
2016-06-14 16:36:54 -07:00
David Roe
3ac95ddc1a
Add UserProfile flag to control whether we have a left side userlist.
...
Previously this was hardcoded for a single customer.
(imported from commit a6b7095050aa10cef976541505d9b09a35453f48)
2015-09-19 23:22:59 -07:00
Tim Abbott
a59e41b5ee
Simplify twenty-four-hour time logic to be more generic.
...
(imported from commit bda4972b32b17a36518eddef701748f3a548e376)
2015-09-19 23:22:26 -07:00
David Roe
9590d988c5
Clean up code duplication in settings.js error reporting.
...
We can save a bunch of code by using the handle ui.js error reporting
helpers.
(imported from commit 7e993cae6e314c84d4ba8eaefd2ff7711c4bc19d)
2015-09-19 23:16:05 -07:00
Tim Abbott
222ea05a3a
Warn users that twenty-four-hour-time doesn't update without a reload.
...
(imported from commit e3c00082746284fb0e6f9b958a887b9d1a1b86a3)
2015-08-20 17:59:16 -07:00
Kate Buckner
4d0f7c7ea4
Add a user-visible setting for 24-hour time display.
...
(imported from commit d934824fd6b72e64a455aac9ff4585b262145f02)
2015-08-20 17:33:16 -07:00
David Roe
809efc4f2b
Add realm option to show or not show digest e-mail.
...
(imported from commit e9cfe519aa9f2857a1dcc7c75f5e1889834fcb86)
2015-08-20 15:29:45 -07:00
David Roe
e5cb2a468f
Enable Lab features for all users
...
(imported from commit 4e2658d28a5e02067ad472fec76c66f46592d520)
2015-08-20 15:29:45 -07:00
Waseem Daher
c90b76444d
More whitelabeling stragglers.
...
Most notably:
* Tutorial
* Some Handlebars templates
* Some modals
(imported from commit b9fb92fa2f0f78d1efbd8f7fcd280fa5652059a8)
2014-07-29 21:46:33 -07:00
Zev Benjamin
9114715030
Factor out the check for whether name changes are disabled
...
(imported from commit 56ddd9cf53ec49e2e096abe82ed44f758912272e)
2014-04-04 16:51:31 -07:00
Steve Howell
be2a1c2893
Move resizing code to resize.js.
...
(imported from commit b6df0007307872751e1a4200af740076e08b5c11)
2014-03-14 20:48:55 -04:00
Steve Howell
50bc5401a4
Moved loading_indicator functions to loading.js.
...
util.make_loading_indicator -> loading.make_indicator
util.destroy_loading_indicator -> loading.destroy_indicator
(imported from commit 8a171622a6096476dd040912d3f1460d53159f20)
2014-03-14 20:48:52 -04:00
Jason Michalski
30f89f4669
Convert the bot section of the settings page to use bot_data
...
(imported from commit 63e6982f96ac46d1cebd2ea16d2a7abc7f8d6597)
2014-03-05 14:16:20 -05:00
Jason Michalski
494868d21d
Group bot stream options lists by public/private
...
(imported from commit 940319a25edfd1943d78ff95542ffda6f482a40b)
2014-03-05 14:16:19 -05:00
Jason Michalski
f82cbe855f
Support editing a bot's default streams
...
(imported from commit 72ceb5152745ddfcc22dfd929904927950bf46e4)
2014-03-05 14:16:19 -05:00
Jason Michalski
eebbf0d4ee
Show the new bot's default stream settings in the edit view
...
(imported from commit d6f1872e0dedd57ebde31da2caf075804195dfb0)
2014-03-05 14:16:19 -05:00
Jason Michalski
eb1032c9c2
Add UI to set "all public" default to during bot creation
...
(imported from commit ec03ccdce309c9fbe866343368044b00ea0f5b81)
2014-03-05 14:16:19 -05:00
Jason Michalski
17b579911e
Add UI to set listen on stream during bot creation
...
(imported from commit b481a55c16f853766c82883b4c6c86de5c87759e)
2014-03-05 14:16:18 -05:00
Jason Michalski
538d76e6ed
Add UI to create bots with a default send to stream
...
(imported from commit 1333de89a75bd972ec85be7f11f6ea11d4fa34cd)
2014-03-05 14:16:18 -05:00
Jessica McKellar
5f7df38b8a
Unbreak custom alert words on the settings page.
...
This doesn't change the alerting UI logic, it just turns
alert_words_ui into a module and calls the setup code from settings.js
when the settings page is rendered.
(imported from commit 05f95383b046086641280f82f648be58688efe61)
2014-03-04 18:06:48 -05:00
Jessica McKellar
87635b9e32
Convert settings from static HTML to a template.
...
This will make life much easier for handling update events.
(imported from commit 66b101eb5fae89b4eec6fc797fee8be26ac99bfb)
2014-03-03 16:08:32 -05:00
Jessica McKellar
f9d5a02710
Fix bug that hid digest email settings box for customers.
...
(imported from commit 6c1e3f53998eca0232fbfe66c62ab87b009bccd8)
2014-02-27 20:25:26 -05:00
Jason Michalski
0244b50f0b
Split bot deactivation from user deactivation
...
(imported from commit 153a870b244e040e3b5976f639866dbace5563f6)
2014-02-18 15:09:22 -05:00
Jason Michalski
d177f49a96
Change the create bot API to use rest_dispatch
...
(imported from commit 0fac290be2ed04178c4df866f5bc958441b2d320)
2014-02-18 15:09:20 -05:00
Jason Michalski
9d973ff106
Change get_bots API to use rest_dispatch
...
(imported from commit 921895dd636ba118a0f57e60a7bcb9dca1c7c605)
2014-02-18 15:09:19 -05:00
Tim Abbott
7f174213ed
Add an idempotent flag to the channel module.
...
(imported from commit d5b867d2a8f176cae76c8b68435c4fab318d998b)
2014-01-10 21:39:00 -05:00
Tim Abbott
795930c803
Add channel module wrapping our various JSON requests to the server.
...
(imported from commit 6489938678551ad8594822363ae6d1c9ae295496)
2013-12-19 16:52:47 -05:00
Jessica McKellar
c46e5fd0f1
Feature flag the digest emails setting to staging.
...
(imported from commit 1239ce31281850dccf8f65d0c7156bd2c86ca3a7)
2013-12-02 18:58:04 -05:00
Steve Howell
8339a40acd
Prevent stale avatars from showing in new messages.
...
When you upload a 2nd avatar to Zulip, the URL doesn't actually
change, so even new messages can show the old avatar, if your
browser is caching. We work against the cache by having the
"stamp" argument, which we vary at reload time and also when
we upload the new avatar. The browser still benefits from
cached images as new messages come in.
(imported from commit 84869c8d7f251c9f2498026a5e9e3b2451784879)
2013-11-19 16:04:41 -05:00