Commit Graph

907 Commits

Author SHA1 Message Date
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