Commit Graph

711 Commits

Author SHA1 Message Date
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
1438ba6f93 Change nicks from links to spans everywhere
Fixes #338
2016-06-22 22:34:10 +03: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
a94b9623f9 Prepend http protocol to www. links in chat
Fixes #406
2016-06-16 17:40:02 +03: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
Pavel Djundik
b6fa4471ab Merge pull request #346 from maxpoulin64/sticky-fix
Keep chat stickied to the bottom on resize
2016-06-05 11:31:04 +03:00
Pavel Djundik
8ebe29fca5 Merge pull request #361 from thelounge/astorije/npm-font-awesome
Fetch Font Awesome from npm instead of embedded in repo
2016-06-05 10:53:43 +03:00
Maxime Poulin
312b7eaa0c
Keep chat stickied to the bottom on resize
Fixes the chat not staying at the bottom when opening the on-screen keyboard on mobile.
2016-06-04 20:01:53 -04:00
Pavel Djundik
3b8be7f888 Do not hide timestamps on small viewports 2016-06-03 23:10:32 +03:00
Jérémie Astori
c84cefe1d8 Fetch FontAwesome from npm instead of embedded in repo 2016-06-03 00:21:44 -04:00
Pavel Djundik
12760a8bb0 Merge pull request #354 from omnicons/master
Add "!" modechar for admin
2016-05-31 11:38:23 +03:00
Jérémie Astori
7157076aad Merge pull request #355 from MaxLeiter/update-fontawesome
Updates Font-Awesome to v4.6.3
2016-05-28 18:04:09 -04:00
Max Leiter
2dffc10102 Updates Font-Awesome to 4.6.3 2016-05-28 12:47:49 -07:00
Alex Howard
963cc95388 Add ! modechar to admin
For the odd network out that uses it!
2016-05-27 23:39:14 -04: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
Jérémie Astori
be8705b4b0 Merge pull request #310 from thelounge/xpaw/manifest
Add manifest.json for nicer mobile experience
2016-05-20 19:26:08 -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
Jérémie Astori
b3103e8c3f Add light colors for dark themes Morning and Zenburn
These colors have been generated by the randomColor package
2016-05-15 15:21:18 -04:00
Jérémie Astori
c87d82dc48 Replace color generation with CSS classes
These colors were built using the current generation function to have
similar style.
2016-05-15 15:21:18 -04:00
Pavel Djundik
876ce4bc6e Do not ignore our handlebars plugins in eslint 2016-05-12 16:07:15 +03:00
Pavel Djundik
ef28656675 Do not increase font size on highlight in morning theme 2016-05-11 10:54:33 +03:00
Jérémie Astori
aad757e50a Fix missing colors in action messages 2016-05-10 19:40:09 -04:00
Jérémie Astori
7c41133a12 Fix wrong CSS for disabled colored nicknames on themes 2016-05-10 19:27:31 -04:00
Pavel Djundik
d524cf08ec Add manifest.json for nicer mobile experience 2016-05-10 13:14:51 +03:00
Pavel Djundik
ed700ef504 Fix unread counter not being formatted on page load 2016-05-08 22:49:53 +03:00
Jérémie Astori
57d7b0147e Make the sidebar close a button and add aria-label to it 2016-05-08 15:06:36 -04:00
Jérémie Astori
8af36eb0c7 Add an aria-label attribute to the user search field 2016-05-08 15:06:36 -04:00
Jérémie Astori
97c08d409e Add missing aria-label on icon buttons 2016-05-08 15:06:36 -04:00
Pavel Djundik
de6f25f14c Merge pull request #305 from thelounge/astorije/wording
Minor wording changes for better clarity
2016-05-08 10:46:19 +03:00
Jérémie Astori
c7fb388323 Merge pull request #292 from thelounge/xpaw/csp
Add security headers to minimize XSS damage
2016-05-08 00:42:05 -04:00
Jérémie Astori
5fa5140bd8 Use a more explicit wording for the "Show more" button 2016-05-07 20:08:27 -04:00
Jérémie Astori
5681860584 Use a proper abbreviation for the MOTD 2016-05-07 20:08:08 -04:00
Pavel Djundik
e1a8baa49d Add labels in connect window 2016-05-07 12:19:52 +03:00
Pavel Djundik
d143542fe5 Add security headers to minimize XSS damage 2016-05-06 11:08:45 +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
Max-P
d090cafcaa Merge pull request #279 from thelounge/xpaw/fix-self-unread
Do not count your own messages as unread
2016-04-26 15:37:56 -04:00
Pavel Djundik
80ac72709d Do not count your own messages as unread 2016-04-26 13:10:17 +03:00
Pavel Djundik
d30e4e68ca Parse ctcp replies 2016-04-25 19:24:43 +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
116dbc07be Merge pull request #167 from thelounge/irc-framework
Drop slate-irc, switch to irc-framework
2016-04-13 01:28:32 -04:00
Jérémie Astori
c70176d3a8 Merge pull request #228 from thelounge/xpaw/kill-printers
Remove print styles
2016-04-12 22:14:21 -04: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
7d24394814 Update irc-framework and fix issue when changing your own nick 2016-04-07 16:08:32 -04:00
Pavel Djundik
16370d8fcc Add /ctcp command and handle ctcp responses 2016-04-07 16:08:31 -04:00
Pavel Djundik
2a7a93d207 Fix incorrect context menu names in nick, whois and topic set by messages 2016-04-07 16:07:40 -04:00
Pavel Djundik
142aa85548 Handle invites
Requires irc-fw update
2016-04-07 16:07:40 -04:00
Pavel Djundik
3fc7036d32 Don't reset time in link expander and hide time with css 2016-04-07 16:07:40 -04:00
Pavel Djundik
43f58a8075 Format topic set date 2016-04-07 16:07:40 -04:00
Pavel Djundik
a01216fa4c Update irc-framework 2016-04-07 16:04:41 -04:00
Pavel Djundik
b6993f6e37 Make whois work 2016-04-07 16:04:41 -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
9ab71b2588 Handle nick 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
Maxime Poulin
f1ecae8023 Display whitespace properly
Fixes alignment in many server's motd as well as in-channel ASCII art
2016-04-05 22:36:04 -04:00
Pavel Djundik
5c1a95b22f Do not parse link titles for IRC formatting 2016-04-04 10:43:45 +03:00
Pavel Djundik
7a88fa9fc7 Remove print styles 2016-03-30 22:35:36 +03:00
Pavel Djundik
8bbb0ab92b Hide options will now remove the row completely 2016-03-30 22:26:23 +03:00
Pavel Djundik
7d7c3edcec Add a query command that simply opens a query window 2016-03-24 22:40:36 +02:00
Pavel Djundik
2bb3951476 Fix message and topic text wrapping 2016-03-22 18:04:34 +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
f8807df2dc Use a white-bg X for closing and smooth icons in context menu 2016-03-20 17:40:13 -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
Jérémie Astori
b8ee886d0b Blur shadow and add small radius of context menu box 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
5579f407e7 Change close button in sidebar behaviour 2016-03-20 22:33:42 +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
Max-P
862b5125a1 Merge pull request #190 from thelounge/xpaw/offline-highlight
Keep track of highlights when user is offline
2016-03-14 20:23:00 -04:00
Jérémie Astori
65e8e01ef4 Make sure all close buttons in the sidebar have same weight 2016-03-14 00:35:24 -04:00
Pavel Djundik
96ef274838 Keep track of highlights when user is offline 2016-03-13 18:05:05 +02:00
Jérémie Astori
ab4ae79efc Fix Send button style on Zenburn and Morning themes 2016-03-12 19:34:26 -05:00
Pavel Djundik
d7750db87f Remove moment.js from the client 2016-03-11 22:18:49 +02:00
Jérémie Astori
5f84d1170a Use an icon for the Send button 2016-03-11 01:44:09 -05:00
Pavel Djundik
52bc324a63 Update eslint to 2.3.0 and add stricter rules 2016-03-09 10:50:20 +02:00
Jérémie Astori
c8664b7cfa Merge pull request #161 from xPaw/whois-tpl
Make whois a client template
2016-03-09 00:16:47 -05:00
Pavel Djundik
42ae08b6a3 Remove string.contains 2016-03-07 17:16:34 +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
Pavel Djundik
062fded4cc Update socket.io to 1.4.5 and use client library provided by the dependancy 2016-03-06 11:41:19 +02:00
Max-P
718182c74a Merge pull request #151 from thelounge/astorije/topic-action-color
Mute color of the topic actions
2016-03-06 00:55:47 -05:00
Max-P
a8867c892f Merge pull request #140 from xPaw/handlebars
Update handlebars to 4.0.5
2016-03-06 00:49:33 -05: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
ea3c79613e Mute color of the topic actions 2016-03-05 23:53:13 -05:00
Jérémie Astori
fba862a6f3 Add missing mode action to muted colors 2016-03-05 22:29:30 -05:00
Max-P
6ef37991b9 Merge pull request #149 from xPaw/inline-chan-css
Relax inline channel style
2016-03-05 17:39:14 -05:00
Pavel Djundik
2ed9c5d522 Relax inline channel style 2016-03-06 00:20:45 +02: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
46c2eabac2 Merge pull request #47 from xPaw/actions
Fix some of the actions coloring
2016-03-05 14:34:05 -05:00
Pavel Djundik
253cb4afd6 Update handlebars to 4.0.5 2016-03-05 16:23:35 +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
Alistair McKinlay
88257b4931 Merge pull request #123 from xPaw/strip-colors
Strip control codes from notifications
2016-03-02 08:31:55 +00:00
Jérémie Astori
b85541e538 Fix minor issues with the main HTML file
- Simplify `checked` attributes
- Use double quotes when possible
- Remove `class` duplicates
- Fix labels in password settings
- Remove `<small>` around version number
2016-03-02 05:59:05 +00:00
Jérémie Astori
ec37b6671b Merge pull request #82 from xPaw/lock-server
Allow locking network configuration
2016-03-02 00:37:27 -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
Jérémie Astori
da7efcd8da Switch a power-off icon for logging out 2016-03-01 06:35:42 +00:00
Jérémie Astori
325739c8be Merge pull request #122 from xPaw/odd-invite
Fix #116: Move 'you' handling in invites to the client
2016-03-01 00:16:55 -05: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
Pavel Djundik
f6563d0ea9 Fix #116: Move 'you' handling in invites to the client 2016-02-28 10:21:19 +02:00
Pavel Djundik
e33e6ca93e Mute join/kick/part/quit/nick actions in color 2016-02-28 09:43:10 +02:00
Jérémie Astori
d8884d2d75 Remove auto-select on input fields 2016-02-28 07:12:56 +00:00
Jérémie Astori
98596b310f Add target channel name in notification 2016-02-28 06:36:58 +00:00
Jérémie Astori
ce69ce333a Merge pull request #91 from xPaw/fix-highlight
Fix how highlights are handled
2016-02-28 00:45:23 -05:00
Max-P
1d8667ed4b Merge pull request #57 from diddledan/frontend-password-change
frontend password change functionality
2016-02-27 20:07:08 -05:00
Pavel Djundik
357e238a45 Fix how highlights are handled 2016-02-28 01:30:20 +02:00
Pavel Djundik
3a87f982b2 Replace favico.js with our simpler solution 2016-02-28 01:27:30 +02:00
Pavel Djundik
b53e5c407c Fix #111: Simplify message padding 2016-02-28 01:22:52 +02:00
Daniel Llewellyn
b79a918be8 frontend password change functionality
- refactor clientManager.js to allow configuration parsing as a serparate
  function.
  - refactor clientManager.js to add configuration writing function.
  - add server.js changes to allow for new password-change functionality
  - add password change ui to "settings" screen
  - refactor client.js to use new clientManager functionality for saving
    the configuration files
2016-02-26 18:38:15 +00:00
Jérémie Astori
31d938440b Merge pull request #94 from xPaw/action-templates
Move actions to templates
2016-02-26 01:26:48 -05:00
Maxime Poulin
1c877a71ab Fix built-in themes broken by #75.
Fixes #101
2016-02-25 02:29:51 -05:00
Maxime Poulin
3661d0b1a1 Fix CSS selector syntax
Doesn't do much, but it prevents unneeded exceptions which are annoying when debugging.
2016-02-24 19:07:12 -05:00
Pavel Djundik
2c8c84aec5 Move actions to templates 2016-02-23 18:22:41 +02:00
Jérémie Astori
1e8ca51d47 Merge pull request #75 from maxpoulin64/badge-fade
Fade long channel names in sidebar
2016-02-22 01:23:38 -05:00
Maxime Poulin
867917ff6e Fade long channel names in sidebar 2016-02-22 01:07:59 -05:00
Pavel Djundik
8151e07b78 Replace bootstrap tooltips with css tooltips from Primer 2016-02-21 21:47:09 +02:00
Jérémie Astori
f8d8b74352 Merge pull request #70 from xPaw/localstorage
Replace cookies with localStorage
2016-02-21 13:37:07 -05:00