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
Pavel Djundik
743d4b61d5
Do not trigger a DOM event on every message
2016-10-01 13:09:57 +03: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
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
Jérémie Astori
b3d3582d2f
Merge pull request #286 from thelounge/xpaw/unknown-command
...
Display unhandled numerics on the client
2016-07-05 23:23:15 -04:00
Pavel Djundik
d37e94308d
Unread marker MVP
2016-07-05 15:32:41 -04:00
Maxime Poulin
2d3464aa04
Use a textarea instead of an input for channel messages
2016-07-04 23:49:45 -04:00
Pavel Djundik
34b4a7a018
Merge pull request #366 from thelounge/xpaw/fix-clicks
...
Improve click handling on users and inline channels
2016-07-03 20:51:20 +03:00
Pavel Djundik
083b2d54e6
Merge pull request #455 from williamboman/fix/tap-hide-chat-prevent-default
...
client: stop propagation when hiding the chat through click/tapping the chat
2016-07-03 19:10:30 +03:00
William Boman
a23a26679f
client: stop propagation when hiding the chat through tapping/clicking
2016-07-03 17:36:18 +02:00
Pavel Djundik
2d7922769f
Only trigger custom highlights for non-self messages and notices
2016-07-03 16:28:02 +03:00
Pavel Djundik
cada00ab6a
Display unhandled numerics on the client
2016-07-03 11:47:53 +03:00
Pavel Djundik
8b8050d02a
Remove javascript scrollbar library, use hover appearing scrollbar instead
2016-07-02 13:28:22 +03:00
Alistair McKinlay
feda6615f9
Add custom highlights
2016-06-29 19:04:39 +01:00
Jérémie Astori
7289844182
Select search targets based on class and not element
...
This fixes the search after changing from buttons to spans.
2016-06-24 02:31:28 -04:00
Pavel Djundik
da9b0636fb
Improve click handling on users and inline channels
2016-06-22 18:36:01 +03:00
Pavel Djundik
c4ac0fd127
Remove navigator.standalone detection
2016-06-22 15:56:33 +03:00
Jérémie Astori
e5dddbac01
Make style of loading page similar to other pages
...
- Move markup around to make the loading page a window of its own
instead of a sub-window of `#chat`
- Remove inline styling in loading page
- Use same styling than other non-messages windows for title and text
- Add a `z-index` to the loading page to hide the message input
- Vertically align the sign in page title with all other titles
- Make sure all `h1.title`s are bottom-margined consistently and remove
negative margin on the Settings page title to align with the Connect
page title (Reverting/Improving this should be done at the `h2` level
instead)
2016-06-21 18:01:11 -04:00
Jérémie Astori
1f4e2b42fd
Do not display the sidebar on loading and sign-in pages
...
Also:
- Remove burger menu icon on mobile version of sign-in page
- Add the .signed-out class to the initial body instead of only when
sign-in has failed
- Remove hiding connect and logout button icons, which was buggy and is
now useless anyway
2016-06-21 01:17:07 -04:00
Pavel Djundik
85a536726f
Display a loading message instead of blank page
2016-06-19 20:38:38 +03:00
Jérémie Astori
500c6e2f2b
Merge pull request #364 from williamboman/fix/chat-input-focus
...
client: fix focusing input when clicking chat container
2016-06-19 12:01:34 -04:00
Jérémie Astori
75c578c02c
Merge pull request #369 from thelounge/xpaw/fix-losing-auth
...
Do not lose authentication token when the connection gets lost
2016-06-18 22:35:12 -04:00
Pavel Djundik
2008abc0e8
Do not lose authentication token when the connection gets lost
2016-06-13 10:39:01 +03:00
Pavel Djundik
9384cd9ca6
Implement user token persistency
2016-06-13 10:33:39 +03:00
William Boman
e5905dee9e
client: fix focusing input when clicking chat container
2016-06-10 15:21:34 +02:00
Pavel Djundik
2ffd85d89f
Update eslint and enforce key-spacing
2016-06-05 21:48:34 +03:00
Maxime Poulin
21eafef32d
Don't send completely empty messages
2016-05-25 03:27:25 -04:00
Pavel Djundik
080495e0d1
Turn favicon red on page load if there are highlights
2016-05-23 20:51:24 +03:00
Max-P
423151ad97
Merge pull request #334 from thelounge/xpaw/query-highlights
...
Fix notifications in query windows
2016-05-21 22:09:55 -04:00
Pavel Djundik
1c57363106
Fix notifications in queries, limit message highlights to channels
2016-05-16 22:46:54 +03:00
Jérémie Astori
1af00d30c5
Invert no-colors CSS class and rename option
...
This will reset users' preference regarding colored nicknames but it's to make
it more specific than just "colors".
2016-05-15 15:56:48 -04:00
Pavel Djundik
ed700ef504
Fix unread counter not being formatted on page load
2016-05-08 22:49:53 +03:00
Pavel Djundik
e75a8f40a6
Stricter eslint rule for curly brackets
2016-05-01 12:41:17 +03:00
Pavel Djundik
c6c32e7d5f
Merge pull request #217 from thelounge/xpaw/keep-autocomplete
...
Keep autocompletion sort whenever user list updates
2016-05-01 08:56:13 +03:00
Jérémie Astori
d73c6d0440
Merge pull request #252 from thelounge/xpaw/setnick
...
Do not display incorrect nick when switching to a non connected network
2016-04-30 19:40:27 -04:00
Jérémie Astori
404bf2c4df
Merge pull request #270 from thelounge/ircv3/echo-message
...
Add support for echo-message and znc.in/self-message caps
2016-04-30 19:37:10 -04:00
Pavel Djundik
a082039ecb
Keep autocompletion sort whenever an user joins
2016-04-28 22:44:27 +03:00
Pavel Djundik
75f04e6cd0
Improve sticky scroll
2016-04-28 09:04:26 +03:00
Pavel Djundik
80ac72709d
Do not count your own messages as unread
2016-04-26 13:10:17 +03:00
Pavel Djundik
5a58d1a369
Only increase unread counter for whitelisted actions
2016-04-24 11:21:26 +03:00
Pavel Djundik
91aa4c6c4a
Never highlight self messages in queries, and leave it up to the server to decide
2016-04-22 19:38:59 +03:00
Jérémie Astori
af2c36e86e
Fix missing channel name from invite notifications
2016-04-11 00:56:59 -04:00
Pavel Djundik
8f217ad3fb
Do not display incorrect nick when switching to a non connected network
2016-04-10 12:08:31 +03:00
Jérémie Astori
e799cc493c
Move the sidebar serverOptions to the according template
2016-04-10 01:04:39 -04:00
Pavel Djundik
16370d8fcc
Add /ctcp command and handle ctcp responses
2016-04-07 16:08:31 -04:00
Pavel Djundik
28ae544b2a
Move connection events to a separate file, sync PREFIX with frontend
2016-04-07 16:04:40 -04:00
Pavel Djundik
e380319400
Handle parts, quits, topics and topic set by
2016-04-07 16:04:40 -04:00
Pavel Djundik
7d7c3edcec
Add a query command that simply opens a query window
2016-03-24 22:40:36 +02:00
Jérémie Astori
eadcca0b5e
Merge pull request #208 from thelounge/xpaw/remove-commands
...
Remove join, nick and whois inputs, they are cleanly handled by the server
2016-03-22 02:03:50 -04:00
Jérémie Astori
4f7f862a55
Add a specific item divider for the context menu, allowing some margin
2016-03-20 17:40:12 -04:00
Maxime Poulin
d3a8b2b217
Add a menu where the Leave button was
2016-03-20 22:33:55 +02:00
Pavel Djundik
73930688cc
Remove dedicated close button next to user button
2016-03-20 22:33:42 +02:00
Pavel Djundik
52b953c492
Remove join, nick and whois inputs, they are cleanly handled by the server
...
Fixes #201
2016-03-20 16:14:37 +02:00
Pavel Djundik
52bc324a63
Update eslint to 2.3.0 and add stricter rules
2016-03-09 10:50:20 +02:00
Pavel Djundik
a61973a156
Make whois a client template
2016-03-07 17:10:46 +02:00
Jérémie Astori
c4d628db49
Merge pull request #28 from lpoujol/desktopNotificationSetting
...
Remove "badge" setting and rely on browser choice for desktop notifcations
2016-03-06 14:45:52 -05:00
Ludovic POUJOL
bf9e50083b
Rename badge setting to desktopNotifications
...
Also checks the browser status and display a warning message if it
blocks desktop notifications
2016-03-06 19:03:51 +01:00
Max-P
94bcb21faa
Merge pull request #9 from xPaw/contextmenu
...
Add context menus
2016-03-06 00:27:24 -05:00
Jérémie Astori
6cee650283
Merge pull request #148 from xPaw/notif-chan-title
...
Fix #147 : Correctly get channel name in notifications
2016-03-05 15:52:03 -05:00
Pavel Djundik
3d05127fad
Fix #147 : Correctly get channel name in notifications
2016-03-05 22:44:15 +02:00
Pavel Djundik
5877e2ebe5
Fix stripping colours from notifications
2016-03-05 21:40:49 +02:00
Jérémie Astori
83baeee988
Merge pull request #128 from xPaw/fix-chan-parse
...
Correctly handle inline channels in messages
2016-03-03 23:58:19 -05:00
Pavel Djundik
84ed021e0e
Add context menus
2016-03-01 13:56:36 +02:00
Pavel Djundik
56e1d3fac7
Correctly handle inline channels in messages
...
Fixes #15 and #11
2016-03-01 11:06:14 +02:00
sprusr
4e6e4e10d2
Strip control codes from notifications
2016-02-29 11:29:13 +02:00
Jérémie Astori
cc26b7ff0f
Add notifications for channel invites
2016-02-29 07:34:06 +00:00
Max-P
5242f4c8ee
Merge pull request #83 from xPaw/custom-css
...
Add an ability to set custom css
2016-02-29 01:34:23 -05:00
Jérémie Astori
8c3322b02b
Merge pull request #100 from xPaw/favicon
...
Replace favico.js with our simpler solution
2016-02-29 01:22:25 -05:00
Pavel Djundik
56c2530f2c
Add an ability to customise CSS on the client
2016-02-29 01:40:08 +02:00