Commit Graph

1388 Commits

Author SHA1 Message Date
creesch
6d4fb93e6b Don't access "Notification" if the browser does not support it. 2018-03-10 20:21:30 +01:00
Pavel Djundik
c86c4f0362
Remove contain as it's causing rendering issues 2018-03-09 13:01:02 +02: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
Pavel Djundik
653b46e2f4
Always hide horizontal overflow in chat 2018-03-09 09:31:58 +02: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
Jérémie Astori
7cad5063f2
Fix userlist search background/color in darker themes 2018-03-08 19:28:20 -05:00
William Boman
8d4475ff84
client/themes: fix background color when hovering users in the user list 2018-03-08 19:21:44 -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
58d9490c2a Try to find og:video and og:audio on html pages 2018-03-07 12:53:56 +02:00
Pavel Djundik
fe51c6d7e7 Move video size to css 2018-03-07 12:53:28 +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
8b417fe97a Fix chat and userlist not scrolling 2018-03-06 20:21:00 +02:00
Pavel Djundik
85efebc6be
Merge pull request #2150 from thelounge/xpaw/chat-flexbox
Cleanup chat/userlist to use flexbox, fix a couple of bugs
2018-03-06 16:23:16 +02:00
Pavel Djundik
9188943261 Fix rejectUnauthorized 2018-03-06 11:42:06 +02:00
Pavel Djundik
e719e4ff81 Cleanup chat/userlist to use flexbox, fix a couple of bugs 2018-03-05 18:17:13 +02:00
Pavel Djundik
eab823ba66 Allow setting rejectUnauthorized per network 2018-03-04 12:45:48 +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
Alistair McKinlay
894d6f162d
Hide collapse button if no channels 2018-03-03 14:51:06 -05: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
Jérémie Astori
49f2721908 Tweak collapse/expand icon design
- Animate the caret similarly to previews and status messages
- Tweak margins to center things a bit
- Remove unused CSS attributes
2018-03-02 08:57:12 +00:00
Al McKinlay
7fec928ba8 Make networks collapsable 2018-03-02 08:57:12 +00:00
Pavel Djundik
2bf4416aec Bring back line-height on messages
Was removed in c051b70537, but this affected line height on mobile view due to increased font size
2018-03-02 10:56:55 +02:00
Al McKinlay
8bbca05ad6
Merge pull request #2133 from thelounge/yamanickill/alt-up-down
Change ctrl/command up/down to alt/option up/down to align with other apps
2018-03-01 10:03:00 +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
William Boman
15dbbf4efc client/themes: make code blocks more readable in darker themes 2018-03-01 09:34:29 +01: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
Pavel Djundik
14ef881d17
Merge pull request #1907 from thelounge/xpaw/accessible-messages-log
Add log role to message container
2018-02-27 13:19:46 +02:00
Pavel Djundik
59ec0348b6
Merge pull request #1930 from thelounge/astorije/ctcp-request
Let user know someone is making a CTCP request against their nick
2018-02-27 13:15:27 +02:00
Pavel Djundik
c051b70537 Refactor channel titles to use flexbox 2018-02-26 22:40:43 +02:00
Pavel Djundik
22b02dff31
Merge pull request #2122 from thelounge/revert-1910-xpaw/user-scalable
Revert "Allow scaling the page"
2018-02-26 10:35:35 +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
Jérémie Astori
ee7272305a
Adjust user list scroll when active item is outside of the visible area 2018-02-26 01:36:35 -05:00
Jérémie Astori
bfc8959bb9
Share highlighting behavior of userlist between mouse hover and keyboard selection
This effectively reproduces the behavior of the autocomplete menu.
2018-02-26 01:36:35 -05:00
Jérémie Astori
649d60c119
Allow navigating through userlist results from keyboard 2018-02-26 01:36:35 -05:00
Jérémie Astori
25517f3ad7
Move the user list client code to its own file 2018-02-26 01:36:34 -05:00
Jérémie Astori
02b35ab367
Revert "Allow scaling the page" 2018-02-26 01:15:00 -05:00
christer88
5d9a123827
Make channel leave button tooltip correspond with context menu 2018-02-25 02:29:05 +01:00
Jérémie Astori
2dbb150463
Merge pull request #2109 from thelounge/xpaw/fix-stuck-rendering
Fix "rendering..." getting stuck on first connection
2018-02-23 20:27:56 -05:00
Jérémie Astori
f18a7b2fe6
Merge pull request #2107 from thelounge/xpaw/correct-scroller
Always correctly trigger sticky scroll on .chat container
2018-02-23 19:38:57 -05:00
Jérémie Astori
964da1487a
Merge pull request #2101 from thelounge/xpaw/prefetch-error
Word prefetch errors differently
2018-02-23 19:29:19 -05:00
Pavel Djundik
bd2907c13f Use document.body when wrapping it in a jquery object 2018-02-23 21:22:05 +02:00