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
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
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
Pavel Djundik
bd2907c13f
Use document.body when wrapping it in a jquery object
2018-02-23 21:22:05 +02:00
Pavel Djundik
7ce1f1cf9e
Fix "rendering..." getting stuck on first connection
2018-02-23 21:18:42 +02:00
Pavel Djundik
63828b95e0
Always correctly trigger sticky scroll on .chat container
...
`.chat` has the overflow on it, and not `.messages` so stuff like scrollTop only works on `.chat`
2018-02-23 18:21:42 +02:00
Pavel Djundik
59ec07be87
Update all links to thelounge repository
2018-02-21 22:47:52 -05:00
Al McKinlay
c09f06fccc
Change isOpInChannel to allow multiple different user roles
2018-02-21 15:05:02 +00:00
Pavel Djundik
c733e72e7a
Auto-fix code for padding-line-between-statements rule
2018-02-20 09:28:04 +02:00
Pavel Djundik
7724762c14
Fix active class not being removed when switching channels
2018-02-19 21:05:05 +02:00
Pavel Djundik
c97352905d
Merge pull request #1962 from thelounge/xpaw/no-var
...
Enable no-var rule
2018-02-19 20:12:31 +02:00
Pavel Djundik
8886459be9
Merge pull request #2049 from thelounge/xpaw/ui-network-status
...
Sync network status and security to client UI
2018-02-19 19:57:36 +02:00
Pavel Djundik
a3e448acf5
Enable no-var rule
...
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori
ab982ecc3c
Remove deprecated support for CSS filenames in theme configuration
2018-02-19 19:17:45 +02:00
Pavel Djundik
742929280d
Merge pull request #1919 from thelounge/yamanickill/image-size-error
...
Show error if image is greater than max prefetch size
2018-02-19 18:49:18 +02:00
Pavel Djundik
b82ceb162b
Merge pull request #2059 from thelounge/xpaw/motd
...
Render MOTD with a single message
2018-02-19 18:42:16 +02:00
Pavel Djundik
0044be266e
Merge pull request #1727 from thelounge/astorije/node-6
...
Switch to Node v6 as the minimal supported version
2018-02-19 18:41:23 +02:00
Pavel Djundik
558a6fba0a
Merge pull request #1915 from thelounge/xpaw/aria-tablist
...
Turn channel list into an accessible tablist
2018-02-19 18:33:28 +02:00
Jérémie Astori
416f45d1e3
Use some ES6/Node v4-only syntax when possible
2018-02-19 18:30:00 +02:00
Pavel Djundik
13a53706f0
Merge pull request #1760 from thelounge/astorije/rm-object.assign-polyfill
...
Get rid of `Object.assign` polyfill
2018-02-19 18:29:45 +02:00
Pavel Djundik
b57830b859
Sync network status and security to client UI
...
Co-Authored-By: Jérémie Astori <astorije@users.noreply.github.com>
2018-02-19 13:12:01 +02:00
Pavel Djundik
e448dc711c
Turn channel list into an accessible tablist
2018-02-18 09:58:44 +02:00
Pavel Djundik
d1e5a8f492
Render MOTD with a single message
2018-02-14 11:00:46 +02:00
Pavel Djundik
116a73c8d0
Remove actionTypes and check templates directly
2018-02-14 11:00:45 +02:00
Pavel Djundik
12bbaef4ab
Unbind image events after the image is loaded
2018-02-08 14:54:57 +02:00
Pavel Djundik
85cb039426
Still render link previews if image fails to load
2018-02-07 17:40:15 +02:00
Pavel Djundik
a9198b1cf6
Fix duplicate chat containers and unread markers when reconnecting
...
Fixes #1721
2018-02-06 11:10:11 +02:00
Pavel Djundik
60777b9b1f
Fix default theme not being correct
2018-02-04 19:54:07 +02:00
Pavel Djundik
51d5a4eff4
Fix #2028 - Messages are not condensed correctly
2018-02-03 10:43:39 +02:00
Jérémie Astori
91e3ca88bb
UI for "Image too large" errors
2018-02-01 21:14:37 -05:00
Pavel Djundik
6d6b5cb2a9
Remove deprecated jQuery calls
...
Fixes #2011
2018-02-01 12:15:51 +02:00
Pavel Djundik
1904e9b0ab
Merge pull request #2013 from thelounge/xpaw/fix-1959
...
Fix #1959 : Do not block /join command from being sent
2018-02-01 10:08:22 +02:00
Pavel Djundik
b4951b1f86
Fix auto-open media option not working
...
Bug introduced in ffa9685b41
2018-02-01 09:57:15 +02:00
Pavel Djundik
b765abcb65
Fix textcomplete reference in autocompletion.disable
2018-01-31 21:06:29 +02:00
Pavel Djundik
ffa9685b41
Merge pull request #1925 from thelounge/xpaw/img-preview-preload
...
Preload preview images before appending them to DOM
2018-01-31 10:07:20 +02:00
Pavel Djundik
869e978a99
Fix #1959 : Do not block /join command from being sent
2018-01-30 11:14:17 +02:00
Jérémie Astori
ff9dd3833e
Merge pull request #1993 from milindl/feat/chan-auto-current
...
Show channels for only active server in autocomplete
2018-01-30 00:12:45 -05:00
Jérémie Astori
2640c2a15e
Merge pull request #1955 from thelounge/xpaw/fix-touch-select
...
Prevent user contextmenu from opening while selecting text
2018-01-29 01:07:36 -05:00
Alistair McKinlay
0b83ba6a40
Stop expanding condensed messages on /expand
2018-01-26 08:52:51 +00:00
milindl
d6d54c2c56
Show channels for only active server in autocomplete
...
Fix #1381 .
2018-01-20 18:24:21 +05:30
Pavel Djundik
31c33e43d5
Provide correct timestamp to browser notifications
2018-01-09 18:47:13 +02:00
Pavel Djundik
e77de3315a
Prevent user contextmenu from opening while selecting text
2018-01-09 18:16:20 +02:00
Pavel Djundik
e98291dd3f
Preload preview images before appending them to DOM
2017-12-29 12:30:15 +02:00
Pavel Djundik
bd9e219d92
Set aria-label on main input
2017-12-27 22:34:19 +02:00
Pavel Djundik
349136f172
Do not match nicknames incorrectly as part of a bigger word
...
Fixes #1776
Fixes #1885
2017-12-27 20:44:59 +02:00
Pavel Djundik
d16b18de78
Open context menu inside of chats on sidebar item
2017-12-26 20:40:02 +02:00
Jérémie Astori
a392b9f35f
Improve a bit window loading on init
2017-12-25 18:19:12 -05:00
Jérémie Astori
1fc2051c1d
Merge pull request #1897 from thelounge/astorije/improve-version-checker
...
Improve the version checking and changelog features
2017-12-25 17:57:27 -05:00
Jérémie Astori
f725e944dd
Add (semi-working) image viewer support for images shown in changelogs
...
Semi-working because this does not support Preview/Next. The existing image viewer is very custom to in-channel message previews and expects a certain markup, that needs rework tobe more generic.
2017-12-25 17:44:55 -05:00
Jérémie Astori
3eb429dde3
Make sure all links will open a new tab instead of exiting the application
2017-12-25 17:44:55 -05:00
Jérémie Astori
238e894377
Improve the version checking part of the changelog feature
...
- There is no client caching of the changelog/version anymore. Instead, server returns the expiration date of its cache, and that is used by the client as well.
- There is now a "Check now" button on the client that appears when data is stale. This means that info is fetched only once and never refreshed (it was refreshed every hour before) unless the user explicitly wants to check latest version, which in turn is as stale as server info is, i.e. 15 minutes max.
- Button style is shared with the "Join a channel" feature, `.btn-small` (not `.btn-sm` to be explicit that this is not a Bootstrap thing).
- Version checker content is now centralized in the `version_checker` template, instead of being partially in the checker template, partially in the Help template, and partially in the code.
- A "Try again" button lets user attempt to fetch info instead of forcing them to reload the page.
- Use Flexbox to display a nicer version checker: icon is slightly bigger, and button is always aligned on the right.
- Changelog logic has been removed from `lounge.js` and moved into the component file.
- Changelog template is only passed what it needs instead of everything the server gives us.
- Public version now displays version checker, since server is caching things.
- Cleaner code overall.
2017-12-25 17:44:53 -05:00
Pavel Djundik
3c8fcadfe8
Merge pull request #1895 from thelounge/xpaw/sw-notification-focus
...
Open and focus correct channel when clicking on push notifications
2017-12-25 11:59:47 +02:00
Pavel Djundik
80c11f2bde
Fix error not showing up in failed push subscription
2017-12-24 22:12:36 +02:00
Jérémie Astori
12dd11bd10
Merge pull request #1889 from thelounge/astorije/fix-window-on-load
...
Display the correct window on page reload
2017-12-24 14:47:13 -05:00
Pavel Djundik
f81f083b24
Open and focus correct channel when clicking on push notifications
...
Affects all notifications sent via service workers
Fixes #1550
2017-12-24 16:06:23 +02:00
Jérémie Astori
7f165a7593
Fix slideout not closing on mobile when hitting a footer icon
...
Introduced by 9691df67e3 (diff-e5178f7b74fe45f2cfe1baf9aa1ef6faR347)
.
Seriously...
2017-12-24 02:51:58 -05:00
Jérémie Astori
d1c2f0df72
Display the correct window on page reload
...
This commit packs 2 fixes:
- Reloading the page while viewing the settings or help window would now send you to a channel window. This was broken when fixing an issue with the "Join a channel..." form
- Reloading the page while viewing the changelog would also send you to a channel window. This is because, on reload, the click emitted was restricted to sidebar and footer, while it had to be emitted from the help page. It is yet another aspect of our wonky window management and hopefully we can make this much more robust with a better overall solution.
2017-12-23 20:46:43 -05:00
Pavel Djundik
7c2422ee19
Merge pull request #1881 from thelounge/astorije/fix-join-channel-load
...
Fix join channel UI opening by itself
2017-12-23 23:17:21 +02:00
Jérémie Astori
32a95c4d75
Merge pull request #1327 from thelounge/xpaw/view-changelog
...
Changelog viewer and updater checker in the client
2017-12-23 16:13:29 -05:00
Jérémie Astori
4b34a093c9
Reduce changelog client cache to 1h since as there is also server caching now
2017-12-23 13:38:34 -05:00
Jérémie Astori
6c50fe72b9
Fix join channel UI opening by itself
...
Without this, `target` was matching all of the lobby link, the "Join a channel..." button, and the join form submit button. This change restricts to the first one.
2017-12-23 03:00:16 -05:00
Jérémie Astori
685951966b
Rename "Client Settings" into "Settings" in tooltip, cleanup
2017-12-22 22:53:56 -05:00
Jérémie Astori
9691df67e3
Improve UI of the About section and changelog viewer
...
- Keep consistent width between the Help page and Changelog (which is already different from other windows 😠 )
- Add icons to the About links
- Make sure `li` elements (i.e. all the lists in changelogs) are consistent in size with rest of the client
- Display version and release notes link on the "About The Lounge" header line, smaller, pushed to the right
- Check new releases when opening the Help window in order to display it without having to open the release notes. Release notes are being fed to the Changelog page at that moment to avoid fetching twice.
- Re-check version/fetch release notes after 24h. Since The Lounge can now run 24/7, reconnect when losing the network, we have to assume an "always-on" usage.
- Change icon, animate background color when getting response from GitHub to avoid flashing.
- Combine click handlers with our wonderful window management. These were the same handler, even with similar checks (`target` exists, etc.), just in 2 different places. This is necessary for the next item.
- Combine "Open release notes" and "Go back to Help" button behaviors with window management handlers. The window management code is gross as ever, and is in desperate need of a refactor, but at least there is no duplicated code for the same behavior + history management. This fixes the "Next" history behavior (however reloading the app while viewing the notes does not load on the notes, but this is a bug for a different PR!).
- Added a rule in the history management thingy: if a link we want to add history handling to has an `id`, store that in the state
- Added a button to go back to the Help window
- Fixed links to releases
- Send user to the GitHub issues *list* instead of *new issue form* because if they do not have a GitHub account, they will be redirected to the login page, which is a rather unpleasant experience when you are already confused...
- Fixed a bug that would return data about a new release in `latest` even though it is already the `current`. It was showing the current version as "The Lounge v... is now available".
- Added https://user-images.githubusercontent.com to the CSP rule when prefetch storage is enabled, because that is where we have stored screenshots in the changelog so far. Meh (we can improve that later if we decide to have a dedicated place for screenshots).
- Fetch changelog info even in public mode because users in public mode can access the release notes. They do not see the result of the version checker however.
2017-12-22 22:46:11 -05:00
Pavel Djundik
df858a5aaf
Add changelog viewing and update checking
2017-12-22 16:26:12 -05:00
Jérémie Astori
47f95c234d
Call the openForm
function specifically when clicking on the context menu instead of relying on click handler
...
Not defining a `toggleForm` function has the advantage of "fixing" the fact that clicking "Join a channel..." from the context menu would close it when it was already open
2017-12-22 12:18:49 -05:00
Jérémie Astori
a03f894888
Change content of tooltip and button when opening/closing join channel form
2017-12-22 12:18:48 -05:00
Jérémie Astori
d2b0385431
Add a keyboard handler to close the join form when hitting "Escape"
2017-12-22 12:18:48 -05:00
Jérémie Astori
9ea3966140
Move the join channel form to its own component
2017-12-22 12:18:47 -05:00
Jérémie Astori
522bba694b
Use an ellipsis for change nick and join channel tooltips
2017-12-22 12:18:47 -05:00
Max Leiter
3fde87efbc
Add join channel UI via context menu or plus button next to lobbys
2017-12-22 12:18:46 -05:00
Pavel Djundik
06becc798f
Merge pull request #1874 from thelounge/astorije/handlebars-notEqual
...
Add a `notEqual` block helper for Handlebars and tests for `equal`
2017-12-22 12:28:15 +02:00
Al McKinlay
8004e051aa
Merge pull request #1833 from Cldfire/master
...
Remove lobby close button
2017-12-22 10:18:29 +00:00
Jérémie Astori
371c5bcac2
Add a notEqual
block helper for Handlebars
2017-12-21 22:09:08 -05:00
Jérémie Astori
6d053d65e7
Add tests for the Handlebars helper equal
2017-12-21 20:09:12 -05:00
Jérémie Astori
f975426c61
Rename the error handlers file at loading time
2017-12-21 18:23:54 -05:00
Jérémie Astori
84db8d8866
Wrap entire error loading script in anonymous function to avoid leaks
2017-12-21 18:23:52 -05:00
Jérémie Astori
0ffd4d60d9
Improve error page at loading
...
- Display the "Reload page" instantly and not after 5 seconds
- Remove stack trace, buggy anyway
- Wrap the error details so it does not expand beyond boundaries (scrollbar would not show up either)
- Do not show the slow-loading warning on error
- Make zeeoe details selectable instead of editable
- Label improvements
2017-12-21 18:22:53 -05:00
Al McKinlay
5084037cdc
Add banlist context menu item
2017-12-20 09:53:28 +00:00
Jérémie Astori
a5dea8caa0
Update how textcomplete gets imported per the v0.16 changes
...
See ab6509782a (diff-04c6e90faac2675aa89e2176d2eec7d8)
2017-12-18 23:15:08 -05:00
Cldfire
daa45c13fd
Remove lobby close button
...
Without cheating and doing `display: none` this time around.
2017-12-17 22:28:56 -05:00
Pavel Djundik
b5ad495c6d
Insert user-configurable string when autocompleting nicks
...
Fixes #1176
2017-12-17 21:15:47 +02:00
Jérémie Astori
cd606b8c28
Use cross-platform modifier shortcut for Mousetrap when possible
...
See https://craig.is/killing/mice#api.bind.combo
2017-12-16 16:14:12 -05:00
Jérémie Astori
0a333ad84d
Merge pull request #1829 from thelounge/astorije/better-icons
...
Use better icons for channel/query list and context menu actions
2017-12-15 19:27:19 -05:00
Jérémie Astori
861d6b6642
Use better icons for channel/query list and context menu actions
2017-12-15 19:09:15 -05:00
Max Leiter
fdd8ef3e6a
Rename thumbnail/image option to more general 'media'
2017-12-13 20:03:12 -05:00
Pavel Djundik
7dcab09516
Merge pull request #1806 from MaxLeiter/sound
...
Support audio file previews
2017-12-13 11:03:04 +02:00
Max Leiter
ad1114ccfe
Support audio file previews
2017-12-12 11:29:13 -08:00
Jérémie Astori
3e708f9c0b
Get rid of Object.assign
polyfill
...
As far as I know, this is only required for IE at this point, and we have already made changes that removed support of any version of IE.
2017-12-12 02:42:59 -05:00
Erik Vosseberg
33d865501d
Add whois and conversation as action to user contextmenu
...
Add Op specific actions to contextMenu
Show context menu when left clicking user
Switch to using data attributes as selectors
remove ban as possible action
Move `isOpInChannel()` to utils.js
Capitalize strings
use CSS.escape for `ownNick`
use string interpolation
properly point to findCurrentNetworkChan
Move context menu item actions to command pattern
add icons for context menu actions
Make list in context menu always list.
remove empty lines in style.css
use info circle instead of question circle
change context menu labels.
change contextMenuActions.execute to more explicit method.
2017-12-11 23:04:29 -05:00
Jérémie Astori
9436ba9301
Make sure user icon matches in network list, window context menu, and nick context menu
2017-12-11 01:19:50 -05:00
Pavel Djundik
4e6a29db35
Merge pull request #1797 from grissly-man/master
...
#1793 - implement reverse style
2017-12-10 16:15:40 +02:00
Jérémie Astori
a8fb892873
Merge pull request #1816 from MaxLeiter/fix-network-context
...
Proper network icon in context menu
2017-12-09 18:17:38 -05:00
Pavel Djundik
de98c2b13a
Merge pull request #1802 from MaxLeiter/chanlist
...
Add 'Channel list' to network context menu
2017-12-10 01:09:35 +02:00
Max Leiter
6311176f00
Proper network icon in context menu
2017-12-09 15:03:15 -08:00
Max Leiter
fb5eb0664a
Add 'Channel list' to network context menu
2017-12-09 14:34:33 -08:00
Pavel Djundik
b391b87e29
Clean monospace and strikethrough formatters
2017-12-08 21:09:23 +02:00
Logan Griswold
fb94ad4205
implement reverse formatting with tests
...
implement reverse formatting with tests
2017-12-07 18:27:59 +00:00
Jérémie Astori
b662764caa
Merge pull request #1800 from thelounge/xpaw/textcomplete
...
Update textcomplete library and rewrite tabcomplete
2017-12-06 18:29:49 -05:00
Pavel Djundik
5e48e04623
Show notices and errors inline
2017-12-06 17:58:52 +02:00
Jérémie Astori
3df1e9d731
Merge pull request #1804 from thelounge/xpaw/no-use-before-define
...
Enable no-use-before-define rule
2017-12-06 09:08:38 -05:00
Pavel Djundik
20af04bca0
Enable no-use-before-define rule
2017-12-06 15:57:04 +02:00
Pavel Djundik
e462ed6270
Rewrite tabcomplete
2017-12-06 15:47:30 +02:00
Pavel Djundik
1bdbb75d4c
Merge condensed messages when loading more history
2017-12-06 14:07:43 +02:00
Pavel Djundik
df703dc73a
Upgrade to new textcomplete library
2017-12-06 12:06:57 +02:00
Jérémie Astori
db53f13865
Merge pull request #1794 from thelounge/xpaw/handle-js-errors
...
Handle javascript errors while loading
2017-12-05 18:33:11 -05:00
Pavel Djundik
2afd4d7ec4
Hide error under details
2017-12-05 15:17:31 +02:00
Pavel Djundik
b5d39b96b9
Handle CHGHOST cap
2017-12-04 23:33:48 -05:00
Logan Griswold
f07c1bef69
#1755 - implement monospace formatting with keybinding, tests, and help section
2017-12-03 15:10:46 -05:00
Logan Griswold
0643d3b4a3
#1754 - implement strikethrough formatting, client keybinding, tests, and help section
2017-12-03 15:10:34 -05:00
Pavel Djundik
e3823803aa
Handle javascript errors while loading
2017-12-03 17:16:56 +02:00
Pavel Djundik
6aff2657e9
Ask for notification permission on page load if setting is enabled
2017-12-01 22:27:36 +02:00
Pavel Djundik
52b234bdfc
Merge pull request #1770 from thelounge/astorije/client-tests
...
Add a bunch of client tests
2017-12-01 12:51:13 +02:00
Jérémie Astori
f368dcdc69
Add a bunch of client tests
2017-11-30 20:33:23 -05:00
Pavel Djundik
d770028da6
Fix duplicate user names not being found
2017-11-30 14:16:11 +02:00
Jérémie Astori
c9da29f2fc
Merge pull request #1757 from thelounge/xpaw/detached-sign-in
...
Do not keep sign-in and loader references in memory
2017-11-27 18:32:20 -05:00
Jérémie Astori
b53f1719eb
Merge pull request #1749 from thelounge/astorije/avoid-escape-quotes
...
Avoid escaping quotes whenever possible
2017-11-27 12:57:55 -05:00
Pavel Djundik
5855099d5b
Do not keep sign-in and loader references in memory
2017-11-27 19:39:16 +02:00
Max Leiter
3d31fa4686
Link nicks mentioned in messages
2017-11-27 09:10:56 -08:00
Jérémie Astori
287c3a8223
Avoid escaping quotes whenever possible
...
Our `.eslintrc.yml` configuration file already allows for avoiding escape (see [ESLint doc for `avoidEscape`](https://eslint.org/docs/rules/quotes#avoidescape )) so we might as well use it. We already use this in a few places I believe.
2017-11-26 17:34:28 -05:00
Bonuspunkt
0e52b133af
Sending channel and link together generates duplicate text
2017-11-26 21:33:27 +02:00
Pavel Djundik
6862c2e6b0
Trigger keep to bottom for previews correctly
2017-11-26 15:49:31 +02:00
Pavel Djundik
5ffeb04343
Merge pull request #1739 from thelounge/xpaw/inactive-scroll
...
Do not keep scroll to bottom in inactive channels
2017-11-26 11:40:50 +02:00
Pavel Djundik
2f84b01427
Do not keep scroll to bottom in inactive channels
2017-11-23 19:33:19 +02:00
Pavel Djundik
15a52ccec3
Trim channel messages in active channel and when switching channels
...
Fixes #1461
2017-11-23 16:23:32 +02:00
Pavel Djundik
c053011611
Make regex in cleanIrcMessage const
2017-11-22 16:06:32 +02:00
Pavel Djundik
28b084af69
Fix #1413 - Handle hex colours when cleaning string
2017-11-22 16:03:59 +02:00
Pavel Djundik
ca389c914f
Merge pull request #1491 from realies/master
...
Focus a channel by joining it, refactor user commands #1189
2017-11-22 15:42:32 +02:00
Pavel Djundik
c268d91b4e
Access new nick attribute in user object
...
This was broken in #1698
2017-11-21 13:54:12 +02:00
Pavel Djundik
c30f4aaaeb
Move help to view
2017-11-19 19:43:43 +02:00
Pavel Djundik
dbc6b099fe
unused var
2017-11-19 19:43:43 +02:00
Pavel Djundik
90861effb4
Fix sign in
2017-11-19 19:43:43 +02:00
Pavel Djundik
8d88779918
Fix options
2017-11-19 19:43:42 +02:00
Pavel Djundik
e85e00ebed
Remove unused
2017-11-19 19:43:42 +02:00
Pavel Djundik
711b5e1d91
Make settings/options mostly work
...
Fixes #1672
2017-11-19 19:43:42 +02:00
Pavel Djundik
2a6b255aee
Make sign in work
2017-11-19 19:43:42 +02:00
Pavel Djundik
0402554563
Move cleanIrcMessage to a separate file
2017-11-19 18:19:52 +02:00
Pavel Djundik
8791a17fc4
Use service worker to display notifications if available
2017-11-19 18:18:55 +02:00
Jérémie Astori
1dc92d8934
Enforce dangling commas with ESLint
...
¯\_(ツ)_/¯
2017-11-15 01:35:15 -05:00
Pavel Djundik
14e2174d44
Generate correct emoji unicode
2017-10-29 10:41:53 +02:00
Pavel Djundik
a60d7e31d9
Merge pull request #1651 from thelounge/xpaw/new-emoji
...
Generate emoji map from EmojiOne data
2017-10-29 10:25:14 +02:00
Max Leiter
e6979fb5fd
Fix url query parameters in public mode
2017-10-23 19:31:23 -07:00
Al McKinlay
4317d4014e
Merge pull request #1650 from dgw/1647-textcomplete
...
Fix loading app with autocomplete disabled
2017-10-19 11:14:10 +01:00
Pavel Djundik
ff922d4f92
Regenerate emoji map
2017-10-19 12:46:52 +03:00
dgw
72e5844b8b
Fix loading app with autocomplete disabled
...
Adds a client-side require() that was missing from 1e2d35f
. Fixes #1647 .
2017-10-19 00:37:33 -05:00
Pavel Djundik
554c89f9a5
Merge pull request #1627 from dgw/autocomplete-service-shortcuts
...
Add service aliases to command list for completion
2017-10-18 21:22:09 +03:00
Pavel Djundik
ded79a184d
Merge pull request #1598 from thelounge/xpaw/fix-863
...
Synchronize unread marker when other client opens a channel
2017-10-18 21:21:50 +03:00
Pavel Djundik
f542e69b99
Merge pull request #1600 from thelounge/xpaw/fix-1571
...
Synchronize unread marker when client reconnects
2017-10-18 21:21:31 +03:00
dgw
d675297405
Mark channels as read when receiving self-messages
...
Resets highlight counter and last unread message ID on server, and
clears the badge on the active client when the message is rendered.
Resolves #911
2017-10-17 08:05:35 -05:00
Pavel Djundik
afc594a655
Merge pull request #1607 from PolarizedIons/PolarizedIons/rm-channels-dom
...
Remove channel containers from DOM after quitting network
2017-10-17 11:31:17 +03:00
dgw
59ad0ba863
Add service aliases to command list for completion
...
Includes known aliases for AdminServ (/as), BotServ (/bs), ChanServ
(/cs), HelpServ (/hs), HostServ (/hs; /ho on some IRCds), MemoServ
(/ms), NickServ (/ns), OperServ (/os), and RootServ (/rs).
Not all IRCds will have all of these services available, but it's not
trivial to filter out the ones that don't exist on a particular network.
2017-10-11 19:50:06 -05:00
Pavel Djundik
9a8c1b2fd0
Wrap withinString in try/catch
2017-10-05 23:50:45 +03:00
realies
9a348e3eeb
indexOf to charAt
2017-10-05 20:12:26 +03:00
realies
960a6d42e1
Combine if statements to reduce nesting
2017-10-04 13:53:22 +03:00
realies
3244ec91e8
Remove unused var, satisfy linter rules, simplify calls
2017-10-04 00:56:14 +03:00
realies
3890aaad6b
Use jQuery for parsing, isolate user commands, remove /clear
2017-10-03 23:29:19 +03:00
PolarizedIons
99c8e1c04a
Remove channel containers from DOM after quitting network
2017-10-02 13:55:23 +02:00
Pavel Djundik
38584e2f8e
Synchronize unread marker when client reconnects
...
Fixes #1571
2017-10-01 12:00:59 +03:00
Pavel Djundik
08ee28e99b
Synchornize unread marker when other client opens a channel
...
Fixes #863
2017-10-01 11:52:34 +03:00
Jérémie Astori
a93adcbdfa
Give chat timestamp a fix width to fix message alignment issues
2017-10-01 01:12:08 -04:00
Pavel Djundik
d7e6db92b5
Implement session list
2017-09-26 10:56:08 +03:00
realies
f1c40aa8de
Simplify initial commit and remove unnecessary refactor
2017-09-25 07:18:31 +03:00
Jérémie Astori
2c0fc67ab9
Use Mousetrap for image viewer shortcuts
2017-09-23 22:02:13 -04:00
Pavel Djundik
b456ab997c
Merge pull request #1503 from thelounge/astorije/image-preview-history
...
Handle browser history when opening/closing image preview
2017-09-22 21:03:50 +03:00
Pavel Djundik
649e9c3192
Fix opening first channel on server start
...
Fixes #1547
2017-09-20 16:17:38 +03:00
Pavel Djundik
1c065ad1b6
Remove duplicate keybindings help
2017-09-20 10:57:43 +03:00
Jérémie Astori
637949ea55
Merge pull request #1471 from thelounge/xpaw/client-reconnection
...
Automatic client reconnection
2017-09-20 00:05:37 -04:00
Pavel Djundik
6041e492ee
Fix history not loading if first message is condensed
2017-09-19 18:01:02 +03:00
Pavel Djundik
935c5b309a
Force reconnect on server shutdown
2017-09-19 11:59:56 +03:00
Pavel Djundik
532f55cb86
Redraw channels
2017-09-19 11:59:56 +03:00
Pavel Djundik
05fc00d9be
Display all the status changes in UI
2017-09-19 11:45:22 +03:00
Pavel Djundik
0c0df1efc9
Force reload the page if socket reconnects and server restarted
2017-09-19 11:45:22 +03:00
Jérémie Astori
b844b0a782
Merge pull request #1283 from MaxLeiter/MaxLeiter/window-save
...
Add anchor tag to URL to signify open page for reloading
2017-09-18 19:01:23 -04:00
Jérémie Astori
64cc4927b3
Make sure we never ship with JS alerts by accident
2017-09-17 21:50:41 -04:00
Jérémie Astori
b8399471b3
Enable ESLint no-console
rule to avoid future mistakes
2017-09-17 21:50:21 -04:00
Jérémie Astori
90cb79ac91
Merge pull request #845 from MaxLeiter/MaxLeiter/away-notify
...
Use away-notify to show updates on users away state
2017-09-17 14:45:27 -04:00
Max Leiter
163cfaba3c
Use away-notify to show user away status change
2017-09-17 11:16:48 -07:00
Al McKinlay
ec6307d55f
Merge pull request #1517 from thelounge/xpaw/move-unread-in-history
...
Move unread marker when loading more history
2017-09-16 20:51:55 +01:00
Max Leiter
c4ebd141c5
Add anchor tag to URL to signify open page for reloading
2017-09-14 13:25:20 -07:00
Al McKinlay
676cc01203
Merge pull request #1518 from thelounge/xpaw/cleanup-jquery
...
Remove unnecessary end() calls
2017-09-14 07:25:55 +01:00
Al McKinlay
171449c81e
Merge pull request #1519 from thelounge/xpaw/fix-show-more-when-empty
...
Fix requesting last messages when no message id is known
2017-09-14 07:25:17 +01:00
Jérémie Astori
92f8c2bfef
Get rid of /clear
command and keybind
...
Since the introduction of infinite scrolling, `/clear` is now broken. As far as I can tell, there is no way to reproduce something decent (and working!) without drastically changing its behavior from "hide the messages in current channel" to "permanently destroy all messages in memory in the current channel", which is not a great change to introduce sneakily 😂 .
The code for this was very trivial, so removing it now until there is a better way to do so, if this is ever possible.
Also, `/clear` was not even autocompleted, sooo...
2017-09-13 20:06:03 -04:00
Pavel Djundik
14cac93e10
Fix requesting last messages when no message id is known
...
Fixes #1460
2017-09-12 16:05:40 +03:00
Pavel Djundik
712bdafd9e
Remove unnecessary end() calls
2017-09-12 15:52:16 +03:00
Pavel Djundik
706943af26
Move unread marker when loading more history
...
Fixes #835
2017-09-12 15:40:26 +03:00
Pavel Djundik
17127e9fc2
Move keybinds to another file
2017-09-11 20:48:35 +03:00
Pavel Djundik
41b9ffb5e7
Move 'show more' to same event file
2017-09-11 20:48:35 +03:00
Pavel Djundik
17af195994
Move message notification code to msg file
2017-09-11 20:48:35 +03:00
Jérémie Astori
a921d7bf04
[Squash me] Fix bug refusing to switch channel when clicking back after closing image viewer
2017-09-10 15:00:27 -04:00
Jérémie Astori
b33ea0f567
Squash me when ready
2017-09-10 14:28:00 -04:00
Jérémie Astori
bb432497be
Handle browser history when opening/closing image preview
2017-09-09 16:40:34 -04:00
Jérémie Astori
a44eea61a1
Merge pull request #1512 from thelounge/xpaw/fix-black-previews
...
Fix image viewer turning black sometimes
2017-09-09 12:45:08 -04:00
Pavel Djundik
67da82c151
Fix image viewer turning black sometimes
2017-09-09 18:46:49 +03:00
Jérémie Astori
d82f4007ec
Fix /expand
command also expanding condensed status messages
2017-09-07 19:50:00 -04:00
Pavel Djundik
c81a74a20c
Render link previews in browser idle event
...
Fixes #1504
2017-09-06 22:03:56 +03:00
Pavel Djundik
e2a122c3ca
Only change nick autocompletion when receiving a message
...
And other minor optimizations and fixes
2017-09-05 18:28:01 +03:00
Max Leiter
d80efdfe23
Add /list to autocomplete
2017-09-04 15:33:33 -07:00
Pavel Djundik
7ee808169d
Format messages on copy
...
Fixes #1146
2017-09-03 11:27:53 +03:00
realies
bb1e3ee917
Focus a channel by joining it, refactor user commands #1189
2017-09-02 19:28:36 +03:00
Pavel Djundik
94d40256d9
Always create condensed wrapper
2017-09-02 18:31:47 +03:00
Pavel Djundik
e2db8b23a4
Add IntersectionObserver polyfill
2017-09-01 19:38:15 -04:00
Pavel Djundik
838eca8fe5
Fix scrolling issue
2017-09-01 19:33:55 -04:00
Pavel Djundik
629592d641
Implement infinite scroll using IntersectionObserver
2017-09-01 19:33:54 -04:00
Pavel Djundik
72a534f42b
Correctly calculate scroll when loading more history
2017-09-01 19:33:54 -04:00
Jérémie Astori
220af0e180
Merge pull request #1449 from dgw/cycle-command
...
Add /cycle command (a.k.a. /rejoin)
2017-08-31 23:45:54 -04:00
dgw
bed6053cec
Add /cycle command (a.k.a. /rejoin)
...
Closes #1436
2017-08-31 06:43:32 -05:00
Pavel Djundik
d814abd1cf
Implement condensed messages option entirely with CSS
...
Fixes #1432
2017-08-30 15:43:31 +03:00
Pavel Djundik
53ebee195c
Escape channel names in slugify helper correctly
...
Fixes #1172 .
2017-08-29 12:38:29 +03:00
Pavel Djundik
99400421ef
Completely refactor how date markers are inserted
2017-08-27 11:38:23 +03:00
Al McKinlay
099d9219fd
Merge pull request #1457 from thelounge/xpaw/requestIdleCallback
...
Process chat messages in requestIdleCallback if available
2017-08-26 20:57:15 +01:00
Al McKinlay
19f3cbd10e
Merge pull request #1453 from thelounge/xpaw/tabcomplete-module
...
Move all auto completion code to a separate file
2017-08-26 19:33:56 +01:00
Pavel Djundik
c55c338c72
Merge pull request #1446 from thelounge/parse-emoji
...
Parse emoji to make them bigger
2017-08-26 20:34:40 +03:00
PolarizedIons
e00b28d201
Fix general spelling errors
2017-08-25 18:02:28 +02:00
Pavel Djundik
f56c748015
Process chat messages in equestIdleCallback if available
2017-08-25 15:30:47 +03:00
Pavel Djundik
1e2d35f206
Move all auto completion code to a separate file
2017-08-24 17:44:40 +03:00
Mac Carrithers
f8663ed28b
Parse emoji to make them bigger
2017-08-24 11:54:28 +03:00
Yash Srivastav
0e332ec19d
Merge redundant functions into one
2017-08-24 05:48:22 +05:30
Yash Srivastav
fa021da7cf
Add fuzzy searching for autocompleting colors
2017-08-24 05:38:21 +05:30
Yash Srivastav
1c8aa7a88f
Extend fuzzy search in autocomplete to all strategies
...
Fixes #1086
Just building upon the work already done in #1334
2017-08-24 05:38:16 +05:30
Pavel Djundik
1bf2be1b51
Do not unintentionally send incorrect messages from history
2017-08-23 14:17:53 +03:00
Pavel Djundik
fcd9782eb7
Merge pull request #1124 from thelounge/xpaw/push-notifications
...
Implement push notifications
2017-08-22 23:16:41 +03:00
Jérémie Astori
3b79a3df90
Merge pull request #1358 from starquake/highlight-wordboundary
...
Take into account wordboundaries for custom highlighting
2017-08-22 09:35:55 -04:00
Max Leiter
64ea29f46d
Only match emoji autocomplete after two characters
2017-08-22 11:04:38 +03:00
Pavel Djundik
0ac3ba28e1
Web Push Notifications
2017-08-22 10:54:18 +03:00
Pavel Djundik
0c0d45ff4f
Cleanup condensed appendMessage
2017-08-19 21:47:23 +03:00
Jan Visser
43cc2792c9
Take into account wordboundaries for custom highlighting
2017-08-18 14:26:41 +02:00
Alistair McKinlay
bc2a37913f
Fix issue with falsey user options getting overridden by truthy defaults
2017-08-16 09:01:09 +01:00
Pavel Djundik
e4ee3fbb3c
Do not throw an exception when URI parsing fails
2017-08-14 15:25:34 +03:00
Pavel Djundik
28e32dc558
Merge pull request #759 from thelounge/yamanickill/condense-joins
...
Initial part/join condensing
2017-08-14 11:18:51 +03:00
Jérémie Astori
43a8604b32
Add some human-friendliness to the condensed status messages
2017-08-13 16:16:48 -04:00
Jérémie Astori
853e646670
Move condense caret to the right, animate transition, add hover state (with transition), reuse thumbnail toggle style
2017-08-13 16:16:38 -04:00
Jérémie Astori
b508783101
Improve UI of expanded/condensed status message selection in client settings
2017-08-13 16:14:38 -04:00
Pavel Djundik
3190fd00bf
Refactor authentication flow
2017-08-13 21:37:12 +03:00
Alistair McKinlay
499dfdfe92
Condense Joins
2017-08-13 14:30:30 -04:00
Pavel Djundik
e5ce2f2688
Remove 10 second interval to trim buffer
...
Fixes #96
2017-08-13 12:23:51 +03:00
Pavel Djundik
6b00cdeba9
Change history button text while loading
2017-08-09 14:18:37 +03:00
Pavel Djundik
c14f7da1b2
Generate unique tokens for each login and session
2017-07-31 02:02:15 +03:00
Jérémie Astori
157289258a
Keep track of preview visibility on the server so it persists at page reload
2017-07-26 18:16:50 -04:00
Pavel Djundik
45a2d074fb
Remove focus from input when opening image viewer
...
Fixes #1342
2017-07-25 18:07:14 +03:00
Jérémie Astori
8259b0924b
Merge pull request #1367 from thelounge/astorije/fix-viewer-cycle
...
Fix image viewer cycling when some previews are hidden
2017-07-24 19:21:49 -04:00
Jérémie Astori
5b60bb0b0c
Remove background blur filter/transition when opening the image viewer
2017-07-24 02:31:12 -04:00
Jérémie Astori
60b531a174
Fix image viewer cycling when some previews are hidden
2017-07-24 02:14:14 -04:00
Jérémie Astori
b9f17b77ab
Add Previous/Next cycling buttons to the image viewer
2017-07-23 13:14:27 -04:00