Commit Graph

1207 Commits

Author SHA1 Message Date
Pavel Djundik
ebb63f2742 Fix sending messages 2019-02-12 12:48:41 +02:00
Pavel Djundik
09fa3e5c86 Fix autocompletion 2019-02-12 12:48:41 +02:00
Pavel Djundik
0e930c9356 Make history loading work 2019-02-12 12:48:41 +02:00
Pavel Djundik
25840dfef4 Single chat container (with buffered input), user list in vue 2019-02-12 12:48:41 +02:00
Pavel Djundik
1d2a11729f Render chat/messages in Vue (mostly broken) 2019-02-12 12:48:41 +02:00
Pavel Djundik
0b269423aa Remove remaining DOM references to badge/highlight 2019-02-12 12:48:41 +02:00
Pavel Djundik
d4a23ffc98 Fix loading disappearing too soon 2019-02-12 12:48:41 +02:00
Pavel Djundik
7e332b817d Channel list rendering with Vue
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
2019-02-12 12:48:41 +02:00
Pavel Djundik
d33021773c Fix up textarea growing to avoid rounding issues in Chrome 2019-02-05 23:24:30 +02:00
Pavel Djundik
9003768d56 Fix up link insertion after uploads to be saner 2019-01-30 20:00:59 +02:00
Pavel Djundik
bb6a9657a0 Fix touch position being null when touching with multiple fingers 2018-10-15 14:54:33 +03:00
William Boman
658dc5a3a2 fix automatically closing sidebar on some mobile viewports
Co-authored-by: Pavel Djundik <github@xpaw.me>

Mobile viewports whose width is equal to the upper boundary
of the mobile viewport breakpoint would not automatically
close the sidebar when selecting an item in it.

Closes #2783.
2018-09-19 09:37:03 +02:00
Alistair McKinlay
35c328b557 Add 3 commands that were missing on client autocomplete 2018-09-06 09:00:39 +01:00
Pavel Djundik
ce212e001c Add file uploading support
Co-Authored-By: Max Leiter <hello@maxleiter.com>
Co-Authored-By: Jérémie Astori <astorije@users.noreply.github.com>
2018-09-03 10:30:05 +03:00
Pavel Djundik
b3c282f663
Merge pull request #2701 from adamus1red/adamus1red/iframe-localstorage
Add `try`/`catch` to `localStorage` methods
2018-09-01 11:18:55 +03:00
Pavel Djundik
81913bca66 Update emoji data for Emoji v11 2018-08-31 22:41:41 +03:00
Adam
e14d911195 Add try/catch to all localStorage methods
Return null when attempting to get an item from localStorage

REF: #2699
2018-08-30 17:49:15 +01:00
christer88
d3725937ef
Fix confirmation box text for network removal in client
This PR will make the text inside confirmation box for network removal in client more correct. Earlier it said "Disconnect from", but in reality it disconnects and remove the network entierly.

The js code may be utterly wrong. If so, please help.
2018-08-24 12:32:25 +02:00
Max Leiter
50661b5947 Hide Native App settings section when no items are available 2018-08-19 12:24:19 -07:00
Pavel Djundik
b1dcbd3811
Merge pull request #2601 from thelounge/xpaw/fix-2572
Make menu state consistent on desktop and mobile; fix sliding on desktop
2018-08-17 09:25:43 +03:00
Jérémie Astori
13e6f37eda
Make sure the network name cannot be changed through URL override when the network info is not displayed 2018-08-11 18:12:49 -04:00
Jérémie Astori
174c6c744c
Disallow URL override of network-related fields on the client when the network is locked 2018-08-11 18:06:23 -04:00
Pavel Djundik
7a5708714b
Fix irc modifiers not working with caps lock 2018-07-27 11:12:03 +03:00
Jérémie Astori
7b926f7c32
Merge pull request #2515 from thelounge/xpaw/transparent-sw-cache
Network-first service worker caches
2018-07-25 00:57:20 -04:00
Jérémie Astori
77d70d6d91
Center scroll lists when navigating with keyboard
- This applies to channel list and user list sidebars
- This avoids having a selected item behind a sticky header
- This provides better UX by starting the scroll before the bottom (or top) is reached, giving a preview of what comes next (or before)
2018-07-24 00:50:19 -04:00
MiniDigger
8fa4a2833f
use replace over trimEnd to support ff60 2018-07-17 15:25:30 +02:00
Pavel Djundik
390d7c22ca
Merge pull request #2655 from realies/master
Change alert sound from ogg to wav
2018-07-17 11:07:48 +03:00
Pavel Djundik
5209b12d44 Fix MOTD display to actually only trim new lines 2018-07-17 10:13:50 +03:00
realies
8f5182b379 Change alert sound from ogg to wav 2018-07-17 09:14:58 +03:00
Jérémie Astori
3eca924a7c
Make the MOTDs a little nicer if possible
This removes the leading hyphens from MOTD lines (under the condition they all do) and trims empty lines around the MOTD (but not inside).
2018-07-10 00:38:11 -04:00
Pavel Djundik
ff98f31be2
Fix disabling autocomplete and fix completing special channels 2018-07-08 18:21:15 +03:00
Pavel Djundik
9447b4894d Fix incorrect target in (dis)connect context menu 2018-07-06 21:21:57 +03:00
Pavel Djundik
0f6fd4dac5 Listen for beforeinstallprompt to trigger 'add to home' 2018-07-06 15:38:57 +03:00
Pavel Djundik
cdebd532ce Make menu state consistent on desktop and mobile; fix sliding on desktop
Fixes #2572
2018-07-06 12:27:26 +03:00
Jérémie Astori
21c4dea8a9
Merge pull request #2599 from thelounge/xpaw/userlist
Make userlist state consistent on mobile and desktop
2018-07-06 01:29:23 -04:00
Pavel Djundik
19ac4f72aa Implement irc:// protocol handler 2018-07-05 13:01:10 +03:00
Pavel Djundik
d63f0ccc50 Make userlist state consistent on mobile and desktop 2018-07-04 10:26:07 +03:00
Trent Monahan
3a89935c29 Add reminder that ascii is awesome. 2018-07-03 19:51:10 +10:00
Adam Spotton
54e502c020 Add 'User information' (whois) support to the sidebar context menu 2018-06-24 11:52:55 -04:00
Pavel Djundik
d00cf72614 Reset highlights on self messages; update title when other client opens a channel 2018-06-21 16:51:07 +03:00
Jérémie Astori
0be8de738a
Merge pull request #2377 from thelounge/xpaw/contextmenu-keyboard
Make context menus accessible with keyboard
2018-06-19 00:23:22 -04:00
Pavel Djundik
9a808b58e9 Do not remove date marker when loading history if date changes
Fixes #2566
2018-06-17 11:46:31 +03:00
Pavel Djundik
24531538fd Remove unnecessary code
This cause context menu to re-open when clicking on user in the context menu
2018-06-15 13:27:59 +03:00
Max Leiter
012ca805c1 Add role attributes in context menus 2018-06-15 13:27:59 +03:00
Pavel Djundik
d178ac9749 Make context menus accessible with keyboard 2018-06-15 13:27:58 +03:00
Pavel Djundik
4f018ba23b Fix undefined channel when updating title 2018-06-14 18:54:38 +03:00
Jay2k1
a0a2e91928 add highlight count to page title 2018-06-13 19:06:32 +02:00
Pavel Djundik
7a3008aec6 Synchronize number of highlighted messages to client
Also fixes #1791
2018-06-11 14:29:57 +03:00
Pavel Djundik
3b2173c694 Focus into input if trying to type into any non-input element
Fixes #2473
2018-06-10 14:19:17 +03:00
Pavel Djundik
011bf80038
Merge pull request #2534 from thelounge/mcinkay/unicode-custom-highlight
Fix word boundary in the custom highlights regex not matching unicode
2018-06-10 11:33:37 +03:00
Alistair McKinlay
3cd8ce6514 Fix word boundary in the custom highlights regex not matching unicode
Fixes #1939
2018-06-10 09:27:11 +01:00
Max Leiter
9c4c1d6d51 Allow connecting/disconnecting from networks in UI, closes #631 2018-06-09 16:32:21 -07:00
Ben Harris
d2987d037c use http for protocol-less URLs 2018-06-09 13:46:46 -04:00
Pavel Djundik
e5954ec0d8 Fix adding a new expanding collapsed networks incorrectly
Fixes #2529
2018-06-08 12:11:00 +03:00
Pavel Djundik
4824a2b535
Merge pull request #2388 from Raqbit/master
Fix Alt+Up/Down cycling through channels of collapsed networks
2018-06-02 13:49:19 +03:00
Jérémie Astori
8f7a141711
Merge pull request #2494 from thelounge/xpaw/list-together
Put list items in network context menu together
2018-06-01 21:45:20 -04:00
Pavel Djundik
f1ad8fa8f2
Merge pull request #2488 from Jay2k1/addAsteriskOnCopy
Add asterisk in front of nick in action lines
2018-06-01 19:43:30 +03:00
Pavel Djundik
a35154185a
Put list items in network context menu together 2018-06-01 12:13:40 +03:00
Jay2k1
6f8e26bdbf Add asterisk in front of nick in action lines 2018-05-31 16:16:49 +02:00
Pavel Djundik
b4693fb768
Merge pull request #2482 from Jay2k1/master
Fix being unable to click channel link in chan after being kicked
2018-05-31 15:54:51 +03:00
Jay2k1
d0284dc1b9 Remove else so join is always sent
Fixes #2472
2018-05-29 19:39:57 +02:00
Pavel Djundik
000d56a96d Show connect window when last network is removed 2018-05-29 13:07:18 +03:00
Jérémie Astori
e30984a13d
Merge pull request #2429 from c-ciobanu/c-ciobanu/feature-2360
Add password visibility toggle feature
2018-05-28 19:02:16 -04:00
Jérémie Astori
d185a78af7
Merge pull request #2197 from RockyTV/rockytv
Add support for /ignore, /unignore and /ignorelist commands
2018-05-28 18:33:51 -04:00
Alexandre Oliveira
468427bfdb Add support for /ignore, /unignore and /ignorelist commands 2018-05-28 16:46:12 -03:00
Pavel Djundik
929047b6a5 Replace URIjs with native URLSearchParams 2018-05-28 10:16:00 +03:00
Cristi Ciobanu
490c94b33a change icon tag 2018-05-24 21:21:30 +02:00
Cristi Ciobanu
25dc2848ca changed i with button 2018-05-24 00:12:37 +02:00
Pavel Djundik
97dfdbf7c0 Default to https: for urls with no scheme 2018-05-23 16:50:59 +03:00
Pavel Djundik
629ae8bfa4 Fix protocol-aware urls, add better link validation in previews 2018-05-23 16:31:02 +03:00
Pavel Djundik
58ec2768ec Use linkify-it 2018-05-23 16:31:02 +03:00
Raqbit
e2e6fe2533 Fix Alt+Up/Down cycling through channels of collapsed networks 2018-05-19 20:15:21 +02:00
Jérémie Astori
8edc1be7b5
Merge pull request #2414 from thelounge/xpaw/fix-2329
Fix join channel form not working
2018-05-15 01:19:38 -04:00
qwe
0294643403 minor fixes 2018-05-10 20:37:10 +02:00
Pavel Djundik
f5a8f23d2b
Merge pull request #2378 from thelounge/xpaw/fix-2327
Add prefix to channels from connect window
2018-05-10 17:14:50 +03:00
qwe
bdfc367c6c refactor password visibility toggle feature 2018-05-10 01:25:17 +02:00
qwe
2d49e34805 add password toggle to connect and login 2018-05-08 23:40:39 +02:00
qwe
97b178dbdb Add password visibility toggle feature 2018-05-08 01:52:54 +02:00
Pavel Djundik
95a435c5c9 Fix merge() in parser not filling unstyled text correctly 2018-05-07 21:19:54 +03:00
Pavel Djundik
55c1293b4c Allow out-of-focus typing on touch devices 2018-05-03 15:51:40 +03:00
Pavel Djundik
f23c063b71 Fix join channel form not working
Fixes #2329
2018-05-02 17:09:32 +03:00
Pavel Djundik
94f1d8dde0 Override server provided defaults with parameters passed in the URL if they match the data type 2018-05-02 13:08:00 +03:00
Pavel Djundik
ee5e82fe9a Fix connect window opening twice in public mode 2018-05-02 13:08:00 +03:00
Pavel Djundik
426893077f Add prefix to channels from connect window
Fixes #2327
2018-05-02 13:08:00 +03:00
Jérémie Astori
9558a1af58
Merge pull request #2408 from thelounge/xpaw/parser-merger
Minor optimization in style parser
2018-05-01 19:37:10 -04:00
Al McKinlay
f1477a3608
Merge pull request #2404 from thelounge/xpaw/fix-2218
Fix join channel ui moving when sorting channels
2018-05-01 21:40:13 +01:00
Pavel Djundik
d19c00faab Build clean text message only once 2018-05-01 14:32:13 +03:00
Pavel Djundik
162b801839 Move part sorting to merge 2018-05-01 14:31:46 +03:00
Pavel Djundik
f50d383670 Fix channel and ban lists in context menu not working
Fixes #2400
2018-05-01 11:36:10 +03:00
Pavel Djundik
b3e57a013f Fix join channel ui moving when sorting channels
Fixes #2218
2018-05-01 11:18:39 +03:00
Jérémie Astori
37a35eeece
Merge pull request #2398 from thelounge/xpaw/data-attr
Use attr() on user-controlled data
2018-04-29 02:13:07 -04:00
Jérémie Astori
1daad45f11
Use the new logo for favicons, notifications badges, and homescreen app icons 2018-04-28 12:14:41 -04:00
Pavel Djundik
14cc8b7827 Use attr() on user-controlled data
See https://www.reddit.com/r/javascript/comments/8f57i1/psa_there_are_over_1000_people_in_the_us_named/dy0rib2/
2018-04-28 11:19:49 +03:00
Jérémie Astori
92c4df6e9c
Merge pull request #2390 from thelounge/xpaw/network-uuid
Remove network ids and use uuids everywhere
2018-04-27 01:23:49 -04:00
Pavel Djundik
02db91bcc9 Correctly add quits to parts 2018-04-26 13:36:56 +03:00
Pavel Djundik
e136edb6ac Remove network ids and use uuids everywhere 2018-04-26 12:37:28 +03:00
Jérémie Astori
4ff5995617
Merge pull request #2386 from thelounge/xpaw/quits-parts
Count quits as parts in condensed messages to reduce information density
2018-04-25 21:24:58 -04:00
Pavel Djundik
bf2a80a7b5
Count quits as parts in condensed messages to reduce information density
See https://github.com/thelounge/thelounge/pull/2383#discussion_r183915328 for discussion
2018-04-25 21:08:06 -04:00
Pavel Djundik
810ecd429a
Make condensed joins and parts shorter 2018-04-24 13:01:20 +03:00
Pavel Djundik
f6b7ce7383
Fix your own nick in auto completion 2018-04-23 15:34:22 +03:00
Jérémie Astori
ccb01d964c
Merge pull request #2355 from Jay2k1/Jay2k1-opvoice
Add 'op' and 'voice' user context menu items
2018-04-21 22:12:41 +02:00
Jay2k1
808b2b249b add 'op' and 'voice' context menu entries 2018-04-21 00:53:59 +02:00
Jérémie Astori
1762db8bd4
Make "Show older messages" style consistent with other buttons
Also store the loading text in a `data` attribute instead of duplicate in template + JS, in order to help with future internationalization
2018-04-18 00:12:24 +02:00
Jérémie Astori
31646f2a28
Merge pull request #2337 from thelounge/xpaw/remove-nick-edit
Remove nick editor
2018-04-16 19:53:17 +02:00
Pavel Djundik
73b1124dce Fix nicks with special characters being colored incorrectly in messages
Fixes #2362
2018-04-16 14:45:08 +03:00
Pavel Djundik
a392a08c7a Remove nick editor 2018-04-15 22:17:30 +03:00
Pavel Djundik
f86d73972d Implement network editing UI and object updating 2018-04-12 10:38:35 +03:00
Jérémie Astori
b08b23d59e
Merge pull request #2328 from thelounge/astorije/local-themes
Local themes
2018-04-12 00:23:11 -04:00
Jérémie Astori
39ca8f74ae
Merge pull request #2272 from thelounge/astorije/improve-previews
Improve UI of previews
2018-04-12 00:21:38 -04:00
Jérémie Astori
6f3c88663a
Merge pull request #2317 from creesch/syncDefault
Enable sync on empty localstorage, force sync, sync on both load and reconnect.
2018-04-11 01:30:03 -04:00
Jérémie Astori
bb16b3e30b
Simplify showing/hiding "More" button of a new preview on active channel 2018-04-09 21:39:41 -04:00
Jérémie Astori
d55420faae
Bind a single resize event, debounced, instead of one handler per preview 2018-04-09 21:39:41 -04:00
Jérémie Astori
ac02bd370b
Do not compute preview "More" buttons on mobile 2018-04-09 21:39:40 -04:00
Jérémie Astori
dbabdd83dc
Lighten the "More" button handler when checks are not necessary 2018-04-09 21:39:40 -04:00
Jérémie Astori
8d255fc331
Only bind preview "More" buttons on link previews 2018-04-09 21:39:40 -04:00
Jérémie Astori
1ccdeb015c
Trigger the correct event directly instead of resize when opening/closing a menu 2018-04-09 21:39:39 -04:00
Jérémie Astori
53a2101de3
Make sure preview "More" button computation does nothing when preview is collapsed 2018-04-09 21:39:39 -04:00
Jérémie Astori
5bff07f6f6
Fix handling preview More buttons on inactive channels 2018-04-09 21:39:38 -04:00
Jérémie Astori
527cac4c75
Debounce resize event to avoid performance bottleneck 2018-04-09 21:39:38 -04:00
Jérémie Astori
7355db94d6
Improve UI of previews
- Remove margins around thumbnails and images, increase radius, etc. for a fresher look overall
- Increase preview body contrast just enough to pass AA standards
- Add a `More`/`Less` button to expand previews that take more than one line. Button is added only when necessary
- Use a zoom-in cursor on hover for thumbnails
- Improve preview message errors
2018-04-09 21:39:38 -04:00
Jérémie Astori
62fb5524ae
Switch client to default theme when it is using a theme that has been removed 2018-04-02 23:51:59 -04:00
creesch
63c84cd362 Don't use event delegation for sync button 2018-03-31 22:28:39 +02:00
Jérémie Astori
7591088982
Merge pull request #2290 from lol768/feature/join-alias-query-param
Add ?channels=x,y,z alias for ?join=x,y,z
2018-03-31 14:05:25 -04:00
creesch
95dc519019 Sync on both load and reconnect. 2018-03-30 09:49:02 +02:00
creesch
107749e91a Enable sync on empty localstorage 2018-03-30 09:46:59 +02:00
creesch
e967859d5f Force sync button 2018-03-30 09:32:20 +02:00
Jérémie Astori
09a6c8b067
Fix autocomplete selection when hitting Enter 2018-03-29 22:04:08 -04:00
Jérémie Astori
fe08547d6b
Merge pull request #2289 from lol768/master
Add auto-prepend behaviour for unprefixed channel names
2018-03-29 01:19:45 -04:00
Al McKinlay
ce08201d13
Merge pull request #1878 from thelounge/yamanickill/refactor-context-menu
Pull context menu code out of lounge.js and make it more generic
2018-03-29 06:04:24 +01:00
Jérémie Astori
7d057a9ca7
Fix bug preventing to click on channels/queries
This bug is present both in channel list, #channel in messages, etc.
2018-03-27 19:28:20 -04:00
Al McKinlay
edba18375f
Merge pull request #2286 from thelounge/xpaw/input-history
Reimplement input history
2018-03-27 17:38:49 +01:00
Pavel Djundik
a2440e665f Do not close sidebar when collapsing networks
Fixes #2293
2018-03-27 12:07:19 +03:00
Pavel Djundik
3aea9d34e9 Reimplement input history 2018-03-26 11:23:10 +03:00
Al McKinlay
1dc356a8f2 Pull context menu code out of lounge.js and make it more generic
Add separate call for divider in context menu factory
2018-03-26 09:08:43 +01:00
Adam Williams
25dee77600 Add auto-prepend behaviour for unprefixed channels
This change adds behaviour to automatically prefix channel names passed in via the "?join=x,y,z" query string/search parameter which do not appear to include an appropriate channel symbol.
2018-03-24 22:17:32 +00:00
Adam Williams
950bad1d7a Add ?channels=x,y,z alias for ?join=x,y,z
For backwards compat. with Iris and other systems.
2018-03-24 16:54:26 +00:00
Jérémie Astori
13768a7d28
Merge pull request #2285 from thelounge/xpaw/consistent-as-needed
quote-props: consistent-as-needed
2018-03-24 02:29:13 -04:00
Pavel Djundik
beb2af73b7
Merge pull request #2284 from thelounge/xpaw/fix-2209
Hide autocompletion menu when input is submitted
2018-03-23 22:40:59 +03:00
Pavel Djundik
f82edcd7e7 quote-props: consistent-as-needed 2018-03-23 16:15:59 +02:00
Pavel Djundik
3886c2a82f Hide autocompletion menu when input is submitted
Fixes #2209
2018-03-23 12:20:53 +03:00
Pavel Djundik
051f6c5a7f Autocomplete bracket and quote characters like in a modern IDE 2018-03-23 12:03:36 +03:00
Pavel Djundik
6f47a78afd Unfocus input on touch devices to close the keyboard
Fixes #2257
2018-03-22 12:47:15 +02:00
Pavel Djundik
0be544676b Do not condense actions that are performed or related to the user 2018-03-21 14:48:07 +02:00
Jérémie Astori
dbe81f1e59
Merge pull request #2254 from thelounge/astorije/sign-out-settings
Empty local storage on sign out and move the sign out button to the settings
2018-03-20 21:06:44 -04:00
Pavel Djundik
528d2b5fb7
Scroll channel list only when using keybinds 2018-03-20 19:27:07 -04:00
Jérémie Astori
d7d8a51332
Merge pull request #2262 from realies/master
stop propagation, prevent input history call when alt is involved
2018-03-20 19:23:22 -04:00
realies
72af0a4947 stop propagation, prevent input history call when alt is involved 2018-03-20 21:00:03 +02:00
Pavel Djundik
3c1db1d7d6 Bind formatting hotkeys on input element
And bind only one event for all of the hotkeys
2018-03-20 20:57:19 +02:00
Jérémie Astori
d1548572d4
Move the sign out button to the settings and empty local storage on sign out
This change improves privacy/security by ensuring all local storage (which includes settings, etc.) is destroyed on sign out or when revoking a remote session. Because signing out is now more "risky", the button has been moved to the settings along with other existing sessions.

This commit:

- Removes the power/sign-out icon from the sidebar footer (gives additional room for when the admin panel gets added)
- Adds a "Sign out" button next to the current session info in the settings session list
- Renames "Disconnect" buttons into "Revoke" to better clarify the intent (I will admit that I borrowed the wording from Telegram)
- Fixes incorrect `localStorage.remove` method
- Uses Sinon.js to mock wrappers for `window.localStorage` and `window.location` (does not mock those themselves, in the "Do not mock what you do not own" fashion, mock our layer instead). I expect we will be able to test a bit more from the UI with this. A good next candidate will be the `mockLogger` things.
2018-03-20 01:52:22 -04:00
Pavel Djundik
77a98bfd14 Render video and audio previews only after canplay event fires 2018-03-19 12:47:36 +02:00
Max Leiter
01753a814c Improve accessibility for emoji 2018-03-18 12:13:48 -07:00
Al McKinlay
6195e5d8f6 Save collapsed state to localstorage 2018-03-18 16:12:10 +00:00
Jérémie Astori
8100f98d6b
Handle scrolls 0-45° as horizontal (opening the menu); 45-90° as vertical (chat scroll) 2018-03-18 01:18:43 -04:00
Pavel Djundik
84f460d9b8 Make slideout work anywhere on the screen
Also makes touchmove event passive
2018-03-17 11:40:15 +02:00
Pavel Djundik
5bb0b198e6 Disable scrolling through sidebar overlay 2018-03-17 11:35:33 +02:00
Jérémie Astori
1e8c0547ec
Add a semi-opaque overlay when channel list is open on mobile 2018-03-17 03:13:43 -04:00
Jérémie Astori
cf49a3427e
Ensure links in chats cannot be opened by accident when closing the channel list 2018-03-17 03:12:30 -04:00
Jérémie Astori
c395e74e64
Merge pull request #2235 from thelounge/xpaw/store-sidebar-visibility
Store visibility status of sidebar menus
2018-03-16 23:57:24 -04:00
Jérémie Astori
4c62b0d50c
Merge pull request #2225 from thelounge/mcinkay/2224-collapse-select-lobby
Select lobby of network when collapsing network
2018-03-16 21:49:16 -04:00
Daniel STANCU
bf4d55564c Incorrect spelling 2018-03-17 00:44:19 +02:00
Pavel Djundik
fdd321311e Keep input reference as jquery object 2018-03-16 18:37:12 +02:00
Pavel Djundik
b6cde34a08 Automatically focus input when typing into nothing 2018-03-16 18:11:02 +02:00
Pavel Djundik
44b9597981 Do not handle modifier hotkeys if input is not focused 2018-03-16 18:07:19 +02:00
Pavel Djundik
7267f89377 Do not aggressively focus input when clicking anywhere 2018-03-16 18:07:19 +02:00
Pavel Djundik
103c3395dd Store visibility status of sidebar menus
Fixes #51
Closes #1606
2018-03-16 09:03:16 +02:00
Jérémie Astori
640d8df487
Merge pull request #2236 from thelounge/xpaw/fix-2214
Rework how unread marker is moved when status messages are hidden
2018-03-16 02:15:43 -04:00
Jérémie Astori
49f1a01dba
Merge pull request #2206 from ESWAT/keybind-cycle-lobbies
Add keybinds for cycling through networks/lobbies
2018-03-16 01:37:22 -04:00
Pavel Djundik
3de3d05b8a Rework how unread marker is moved when status messages are hidden
Fixes #2214
2018-03-15 17:52:04 +02:00
Philip Karpiak
c0f430e509 Add keybinds for cycling through networks/lobbies 2018-03-15 10:10:20 -04:00
Al McKinlay
1fbdb170e4 Select lobby of network when collapsing network
Fixes #2224
2018-03-15 08:32:21 +00:00
Jérémie Astori
00bca229f0
Enforce object literal shorthand syntax with ESLint 2018-03-15 00:22:09 -04:00
Pavel Djundik
8a7408097d
Merge pull request #2210 from thelounge/xpaw/undate
Use undate library to handle modifier keys
2018-03-14 09:05:39 +02:00
Pavel Djundik
a56ad36a42 Do not repaint theme on page load 2018-03-13 17:38:01 +02:00
Pavel Djundik
7e2edc2c9f Use undate library to handle modifier keys 2018-03-13 12:43:48 +02:00
Jérémie Astori
288aaac465
Merge pull request #2152 from thelounge/yamanickill/sort-channels-on-join
Insert channel/user into channel list at alphabetically sorted point, not just the end
2018-03-13 00:37:59 -04:00
Pavel Djundik
0dc76e773f
Merge pull request #2185 from thelounge/xpaw/flexbox-viewport
Convert the entire viewport to use flexbox
2018-03-12 23:07:48 +02:00
Al McKinlay
5ce67ba093 Insert channel/user into channel list at alphabetically sorted point, not just the end
Don't sort queries/users after special chans


Set all users in tests to be of type query


Add test for not inserting infront of lobby


Break after finding the index, otherwise it always adds it to the end


Add checking for lobby in first test


Fix off-by-one error on the frontend


Fix utterly idiotic issue adding a duplicate of the channel we are on rather than the new user when we query


Check that we always insert before first special chan
2018-03-12 12:42:59 +00:00
Al McKinlay
1a9ad1a7e3 Add advanced toggle and hide certain settings by default 2018-03-11 17:47:47 +00:00
Pavel Djundik
b01e01bc19 Convert most of the layout to flexbox, make sidebar an overlay 2018-03-11 00:23:43 +02:00
creesch
6d4fb93e6b Don't access "Notification" if the browser does not support it. 2018-03-10 20:21:30 +01:00
Pavel Djundik
b2eb11b5ef
Merge pull request #1851 from creesch/settingSync
Optional syncing of client settings.
2018-03-09 12:37:17 +02:00
creesch
27393bb804 Offer optional syncing of client settings
Write synced settings to localstorage.

move settings and webpush init to init.js

stub for server sending clientsettings

get very basic setting sync working

Also update client.config.clientSettings on settings:set

Full setting sync with mandatory and excluded sync options

Actually check client preferences.

Further settings restructuring.

Refactor options.js make storage act in a sane manner.

Add new parameter to applySetting

Do not sync if the setting is stored as a result of syncing

General clean up, commenting and restructing.

sync from server on checking "sync"

offer initial sync

Better deal with DOM being ready and instances of inital sync showing

Don't try to disable autocompletion when not enabled.

Restructure option.js to seperate functions from settings.

More consistency in naming options vs settings

Switch processSetting and applySetting names reflecting their functionality better.

move options init back to configuration.

simplify how settings are synced around.

move options init after template building.

Remove unneeded hasOwnProperty

Use global for #theme and only apply theme in applySetting

Return when no server side clientsettings excist.

Autocompletion options to options.settings

Make nocss param in url work again.

Actually filter out empty highlight values.

Clarify alwaysSync comment.

Remove manual step for initial sync

change attr to prop in options.js

replace unbind with off in autocompletion.js

Do not sync settings when the lounge is set to public.

fix eslint error

Fix merge error

Do not show sync warning after page refresh when sync is enabled

Move setting sync label in actual label.

Improve server setting sync handling performance and failure potential.

Don't give impression that the desktop notificiation is off when the browser permission is denied.

Refine showing and hiding of notification warnings.

rename all setting socket events to singular setting.

add experimental note and icon to settingsync.

fix css linting error
2018-03-09 10:36:29 +01:00
Jérémie Astori
f105a11cd4
Merge pull request #2166 from dgw/2062-scroll-to-new-channels
Scroll to joined/activated channel
2018-03-08 19:59:05 -05:00
dgw
e5a6417a82 Scroll to newly joined/activated channels
Add a new utility function for scrolling elements into view with the
same, consistent options, and use it for both the new channel scrolling
behavior and the existing userlist scroll code.

Implements & resolves #2062
2018-03-08 10:30:07 -06:00
Pavel Djundik
0fb462c88e Optimized notification dot state 2018-03-08 15:46:05 +02:00
Pavel Djundik
884984f9b4 Cleanup sidebar to use flexbox 2018-03-08 08:50:04 +02:00
Pavel Djundik
73755ce973 Remove .chanlist wrapper
Added in 04046719c1, but it's not necessary
2018-03-08 08:50:04 +02:00
Pavel Djundik
bb066ecb02 Do not listen to touch events until client is initialized
Fixes #2148
2018-03-07 10:02:02 +02:00
Pavel Djundik
e719e4ff81 Cleanup chat/userlist to use flexbox, fix a couple of bugs 2018-03-05 18:17:13 +02:00
Al McKinlay
04046719c1
Merge pull request #1867 from thelounge/yamanickill/867-collapsible-network
Add support for collapsing networks
2018-03-03 20:01:33 +00:00
Pavel Djundik
276266e24f Center loading screen 2018-03-03 09:45:24 +02:00
Jérémie Astori
8deb056ecf
Merge pull request #1842 from thelounge/astorije/userlist-up-down
Move the user list client code to its own file and make it possible to navigate with keyboard
2018-03-03 02:32:09 -05:00
Al McKinlay
7fec928ba8 Make networks collapsable 2018-03-02 08:57:12 +00:00
Alistair McKinlay
9c5147ae09 Change ctrl/command up/down to alt/option up/down to align with other apps 2018-03-01 09:07:36 +00:00
Pavel Djundik
00681e876f
Merge pull request #1669 from edbrannin/edbrannin/autocomplete-chat-names-1459
add autocompleted names to private chats
2018-02-28 18:54:44 +02:00
Pavel Djundik
20a6133d73 Remove unintentionally included lodash in client build 2018-02-28 17:19:33 +02:00
Ed Brannin
4e67e55a7d add autocompleted names to private chats
Fix #1459

https://github.com/thelounge/lounge/issues/1459

Add rawNicks() to more easily get the list of nicks for the current
channel or chat without overly complicating its caller.
2018-02-28 14:25:01 +02:00
Jérémie Astori
615353c582
Make sure a previously highlighted nick in the user list is highlighted when the list is refreshed
List is refreshed when there is a change in the channel (join/part/quit/nick).
2018-02-26 01:36:36 -05:00
Jérémie Astori
3070ae098a
Mark the first user list result as active for convenience
This _also_ reproduces behavior of autocompletion dropdown.
2018-02-26 01:36:36 -05:00
Jérémie Astori
81e1d15ee9
Override mouse position when clicking on user in userlist to open dropdown at correct position 2018-02-26 01:36:36 -05:00