William Boman
6e1cdb370b
client: don't dismiss native web notifications programmatically after 5s
2016-11-16 17:43:30 +01:00
Jérémie Astori
dff1a48e05
Prevent sound notification to throw an exception on mobile
2016-11-08 01:02:56 -05:00
Jérémie Astori
e21ec8b447
Silence failures to trigger notifications when not available
...
Recent Chrome versions are dropping out `new Notification` in favor of `ServiceWorkerRegistration.showNotification`.
This makes sure nothing bad happens until we have proper support for Service Workers.
See:
- https://stackoverflow.com/questions/29774836/failed-to-construct-notification-illegal-constructor
- https://stackoverflow.com/questions/31512504/html5-notification-not-working-in-mobile-chrome
2016-11-08 01:02:25 -05:00
Pavel Djundik
837f78f1ae
Merge pull request #483 from williamboman/fix/focus-input-on-submit
...
client: re-focus input on chat form submit
2016-10-28 19:14:26 +03:00
Jérémie Astori
e9b118ea71
Merge pull request #708 from thelounge/astorije/nick-cycle
...
Add a UI element to cycle through nick completions on mobile
2016-10-25 18:45:07 -04:00
Maxime Poulin
0bef9e9cde
Merge pull request #720 from stepie22/unread-counters-fix
...
Fix unread counters resetting when they shouldn't
2016-10-25 12:41:10 -04:00
stepie22
ee1a629be9
Fix incorrect selector for undead badge on channels
2016-10-25 13:58:28 +02:00
Jérémie Astori
ddaf7ff300
Add a way to cycle through nicks on mobile
...
This was heavily inspired by https://github.com/maxpoulin64/lounge/commit/a877e46 .
Clearly not a definitive solution but a good start to have and to improve upon.
2016-10-25 01:03:43 -04:00
stepie22
1a4974b7df
Fix channels drag'n'droping
2016-10-23 11:47:33 +02:00
Jérémie Astori
d82a894b7b
Remove browser notification polyfill and inform user when unsupported
2016-10-22 17:26:34 -04:00
Jérémie Astori
f5af8a4986
Merge pull request #674 from MaxLeiter/MaxLeiter/override-defaults
...
Override defaults with URL
2016-10-17 02:11:30 -04:00
Pavel Djundik
a1f56c7395
Improve support for opening multiple clients at once
...
- Synchornize unread counter with the server
- Fix unread marker on no attached clients
- Increase unread counter for server messages
2016-10-17 01:31:22 -04:00
Pavel Djundik
4f5bb55951
Revert "Do not trigger a DOM event on every message"
2016-10-14 18:49:08 +03:00
William Boman
aabdf562a6
client: re-focus input on chat form submit
2016-10-11 10:43:27 +02:00
Max Leiter
0d058a5ef7
Begin work on overriding defaults in URL
2016-10-10 10:35:33 -07:00
Pavel Djundik
aa02fd5180
Enforce more eslint rules
2016-10-09 17:55:37 -04:00
Jérémie Astori
caa46042bf
Enforce strict mode across all JS files with ESLint
...
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
Jérémie Astori
e9d7d77cbd
Merge pull request #661 from thelounge/xpaw/no-dom-event
...
Do not trigger a DOM event on every message
2016-10-08 16:35:14 -04:00
Pavel Djundik
024369d4c3
Implement our own /nick command to allow editing nick when not connected
2016-10-01 16:51:35 -04:00
Jérémie Astori
12839af684
Make nick badge editable to set it in the UI
2016-10-01 16:51:34 -04:00
Jérémie Astori
4e1d89f567
Consolidate locale time helpers
...
When working on #660 , I missed that helper already existed, added in #167 .
2016-10-01 15:38:06 -04:00
Pavel Djundik
743d4b61d5
Do not trigger a DOM event on every message
2016-10-01 13:09:57 +03:00
Jérémie Astori
fc03a338fc
Display localized timestamp in title of message times
2016-10-01 02:46:19 -04:00
Jérémie Astori
28b5fdb8ce
Merge pull request #637 from thelounge/xpaw/extra-loading
...
Display extra loading messages
2016-09-30 01:34:05 -04:00
Jérémie Astori
ad4a79cbca
Merge pull request #400 from maxpoulin64/slide
...
Add touch slideout menu for mobile
2016-09-30 00:03:04 -04:00
Jérémie Astori
345aac1a27
Merge pull request #258 from maxpoulin64/channel-list
...
Implement /list
2016-09-29 02:47:34 -04:00
Pavel Djundik
396a9cffb1
Display extra loading messages
2016-09-25 09:52:16 +03:00
Jérémie Astori
813572de47
Ensure localStorage cannot fail because of quota or Safari private browsing
...
See http://stackoverflow.com/q/14555347/1935861
2016-09-20 23:43:23 -04:00
Jérémie Astori
b153d568a0
Add a theme selector in the settings
...
Power to the people!
There is now 2 ways to set the theme: on the app config file (defaults
for all users) and in the user settings.
All CSS files present in the `client/themes` folder will be given as
choices to the users.
This is temporary (as in, temporary for a fairly long time) until we
have proper theme management.
2016-09-06 01:11:31 -04:00
Jérémie Astori
c4cfd7e4b5
Alphabetically order default user settings, remove unnecessary continue statement, transform ifs into else-ifs
2016-09-06 01:11:31 -04:00
Jérémie Astori
34036a4b7a
Allow ourselves to have decent looking select elements in the settings
2016-09-06 01:11:31 -04:00
Jérémie Astori
d48830a1fd
Make custom highlights case-insensitive
2016-08-16 10:09:19 -04:00
Jérémie Astori
dd02f0f029
Make sure input height is reset when submitting with icon
...
This is especially noticeable on mobile, where clicking Send icon is more natural.
2016-08-11 01:13:41 -04:00
Henning Hoefer
08d3633ae2
Prevent Ctrl-Tab from triggering tab completion
...
Fixes #529
This is probably the simplest workaround for Firefox sending a keydown event when switching browser tabs via Ctrl-Tab
2016-08-04 04:31:19 +02:00
Jérémie Astori
a7fe19deca
Merge pull request #496 from davibe/restore-scroll
...
restore scroll position after loading previous messages
2016-07-28 00:48:08 -04:00
Davide Bertola
6af8da2106
restore scroll position after loading previous messages
2016-07-27 07:53:41 +02:00
Maxime Poulin
1f11293ac9
Reset the unread marker on channel change
...
This restores the old behavior of resetting the unread marker on channel change, as that's usually at this point one wants to check for new messages and is also what matches on the server. I feel this is overall more consistent and useful, and also more in line with what other clients do.
2016-07-24 02:21:44 -04:00
Maxime Poulin
1d47290ada
Implement /list
...
Thanks to @xPaw for the base of this code
2016-07-22 21:42:42 -04:00
Maxime Poulin
0eef5d9240
Add touch slideout menu for mobile
2016-07-22 21:30:45 -04:00
Pavel Djundik
1fa545152f
Create a single function to render networks to reduce code duplication
2016-07-22 01:10:20 -04:00
Maxime Poulin
3f86dde979
Merge pull request #486 from thelounge/astorije/notification-menu
...
Add a red dot to the mobile menu icon when being notified
2016-07-17 18:50:02 -04:00
Jérémie Astori
27b33f49a8
Fix a bug breaking textarea on Android
2016-07-17 16:22:27 -04:00
Jérémie Astori
e599f9d69f
Revert "Slight optimization in the textarea code"
2016-07-16 23:38:20 -04:00
Maxime Poulin
22d2751a67
Slight optimization in the textarea code
...
Not that it matters (7.9ms->3.8ms), but I figured since I took the time to profile it as a joke I might as well make it a PR. Mobile might have a slight reduction in typing lag from it?
2016-07-16 02:56:54 -04:00
Jérémie Astori
c9d4513b26
Send user to lobby of deleted chan when parting from active chan
...
Instead of always sending them back to the very first lobby on the app.
This fixes a bug introduced in recent layout change but does not bring previous behavior back:
When closing active channel, user gets sent to lobby instead of previously visited channel.
2016-07-11 01:24:43 -04:00
Jérémie Astori
0520c6a6ec
Add a red dot to the mobile menu icon when being notified
...
On mobile, there is no favicon to toggle, so nothing shows up when a new notification arrives.
This commit changes this by adding a marker on the burger menu icon, visible on all channels
2016-07-10 16:42:15 -04:00
William Boman
41eede7003
client: fix chat not being stickied to the bottom when joining channel
2016-07-10 13:01:31 +02:00
Maxime Poulin
26bf948fdc
Fix being unable to switch window from settings to chan
2016-07-06 03:08:27 -04:00
Maxime Poulin
37b5f28919
Fix window layout a bit
2016-07-06 00:18:40 -04:00
Maxime Poulin
18c615236d
Merge pull request #332 from thelounge/xpaw/unread-marker
...
A proper unread marker
2016-07-06 04:06:14 +00:00