Pavel Djundik
7a3008aec6
Synchronize number of highlighted messages to client
...
Also fixes #1791
2018-06-11 14:29:57 +03:00
Jérémie Astori
d94da2aa09
Make non-highlighted favicon look more different than highlighted one
2018-06-10 16:48:08 -04:00
Jérémie Astori
49babf773e
Restore whitespace between caret and More/Less text in previews
2018-06-10 15:39:39 -04: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
dgw
fa66c3f23b
Prevent long lobby names pushing badges out of sidebar
2018-06-02 15:01:57 -05: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
Jérémie Astori
5344768e93
Fix mouse cursor on userlist
2018-05-31 00:50:00 -04: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
Max Leiter
0833f143ff
Pointer cursor hovering nicks in userlist
2018-05-17 17:11:14 -07: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
bab78f9913
moved the reveal password block into his own template
2018-05-10 21:20:35 +02: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
Jérémie Astori
0305dadc7f
Merge pull request #2431 from thelounge/xpaw/512px
...
Add 512px icons in manifest and specify image types
2018-05-10 00:18:35 -04:00
qwe
bdfc367c6c
refactor password visibility toggle feature
2018-05-10 01:25:17 +02:00
Pavel Djundik
9ce586e21d
Merge pull request #2413 from thelounge/xpaw/overscroll-behavior
...
Use overscroll-behavior
2018-05-09 17:23:30 +03:00
Pavel Djundik
c6f7aa2eda
Add 512px icons in manifest and specify image types
2018-05-09 10:18:42 +03: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
1e5e9bbc57
Merge pull request #2405 from thelounge/xpaw/sort-arrow
...
Show a ghost placeholder when dragging channels
2018-05-02 17:37:31 +03:00
Pavel Djundik
f23c063b71
Fix join channel form not working
...
Fixes #2329
2018-05-02 17:09:32 +03:00
Pavel Djundik
7dd6340e46
Show a ghost placeholder when dragging channels
...
Co-Authored-By: Jérémie Astori <astorije@users.noreply.github.com>
2018-05-02 16:11:10 +03:00
Pavel Djundik
e1b6ba9f0d
Use overscroll-behavior
...
Ref: https://developers.google.com/web/updates/2017/11/overscroll-behavior
2018-05-02 14:17:56 +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
Jérémie Astori
df7e62915b
Merge pull request #2409 from thelounge/xpaw/ms-edge-css
...
Fix CSS issues in Microsoft Edge
2018-05-01 19:34:49 -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
6c41b68bca
Fix CSS issues in Microsoft Edge
2018-05-01 19:11:45 +03: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
6bf4ea9f43
Merge pull request #2399 from thelounge/xpaw/fix-2389
...
Fix `aria-controls` on collapse button
2018-04-29 14:50:33 -04:00
Pavel Djundik
38f3557e0b
Fix aria-controls
on collapse button
...
Fixes #2389
2018-04-29 15:20:06 +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
49c5e6a502
Merge pull request #2369 from thelounge/astorije/show-older-msg-btn
...
Make "Show older messages" style consistent with other buttons
2018-04-20 19:04:52 +02:00
Jérémie Astori
bb260c4c04
Merge pull request #2368 from thelounge/astorije/window-header
...
Remove header border on non-chat windows and reduce top margin a bit more
2018-04-20 19:04:20 +02:00
Jérémie Astori
ec8e4fc458
Make sure the channel list button stays always visible
2018-04-20 17:05:53 +02:00
Pavel Djundik
b381c9161d
Merge pull request #2364 from thelounge/astorije/fix-userlist-bottom
...
Fix user list scroll area expanding behind the message input on mobile
2018-04-18 10:17:51 +03: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
c9dc323bcc
Remove header border on non-chat windows and reduce top margin a bit more
2018-04-17 23:36:30 +02:00
Jérémie Astori
235a3dad92
Quick-fix tooltips not being loaded by Webpack
2018-04-17 23:07:12 +02:00
Jérémie Astori
0661b4aa37
Fix user list scroll area expanding behind the message input on mobile
2018-04-17 00:27:36 +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
efae5fd28d
Merge pull request #2229 from thelounge/xpaw/edit-networks
...
Allow editing networks via UI
2018-04-15 22:10:02 +03:00
Pavel Djundik
09482aed7b
Update placeholder rules for modern browsers
2018-04-14 10:24:39 +03:00
Pavel Djundik
f86d73972d
Implement network editing UI and object updating
2018-04-12 10:38:35 +03:00
Jérémie Astori
ee6fb8c619
Fix color of "More" preview button in Morning
2018-04-12 00:52:05 -04:00
Jérémie Astori
2b051194c8
Fix preview text color overriding inherited color
...
This messes up dark themes, or really any theme that does not use #222 as body color...
2018-04-12 00:45:49 -04: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
Pavel Djundik
c28a5c25b9
Add css-loader
2018-04-06 12:52:53 +03:00
Pavel Djundik
d4b9b6ed32
Fix line-height showing scrollbar on mobile
2018-04-04 12:40:42 +03: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
Jérémie Astori
be591d016a
Rename Example theme
2018-04-02 23:51:57 -04:00
Jérémie Astori
7b13c6f076
Remove Crypto and Zenburn themes from the core codebase
2018-04-01 20:01:38 -04:00
Jérémie Astori
36a62fb365
Merge pull request #2321 from MaxLeiter/header-margin
...
Fix .container margins
2018-04-01 18:38:07 -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
Max Leiter
27e4994d10
Fix .container margins
2018-03-31 01:43:27 -07: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
Pavel Djundik
8f838b80e7
Remove left padding from sidebar in example theme
2018-03-29 21:46:03 +03:00
Pavel Djundik
2e964d0a7e
Merge pull request #2270 from thelounge/xpaw/mask-image
...
Replace pseudo element gradient fade with mask-image
2018-03-29 21:29:54 +03: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
Pavel Djundik
f856229141
Allow whitespace in topics again
...
Was removed in c051b70537
2018-03-26 11:22:52 +03:00
Pavel Djundik
8ce55af55d
Overflow topics with fade instead of ellipsis
2018-03-26 11:22:52 +03:00
Pavel Djundik
23c969ad1b
Replace pseudo element gradient fade with mask-image
2018-03-26 11:22:52 +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
Jérémie Astori
d8eed4d15e
Merge pull request #2282 from thelounge/astorije/accessible-nick-colors
...
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0
2018-03-24 15:42:35 -04: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
Jérémie Astori
0d9eb5d198
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0, for Zenburn theme
2018-03-24 02:05:08 -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
Jérémie Astori
43be85cee9
Reduce lightness of low contrast nick colors to reach AA level of WCAG 2.0
2018-03-23 01:19:43 -04: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
Max Leiter
817141a781
Fix typo
2018-03-20 13:35:54 +07: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
5d6ea4f32e
Merge pull request #2251 from thelounge/xpaw/canplay
...
Render video and audio previews only after canplay event fires
2018-03-19 20:08:14 +02:00
Pavel Djundik
77a98bfd14
Render video and audio previews only after canplay event fires
2018-03-19 12:47:36 +02:00
Jérémie Astori
883b6dbef2
Improve readability and styling of shortcut keys in the Help section
2018-03-19 01:45:48 -04:00
Jérémie Astori
8ecacc9978
Merge pull request #2186 from MaxLeiter/emoji-tip
...
Improve accessibility for emoji
2018-03-18 15:50:57 -04:00
Max Leiter
9053a0bb6a
Strikethrough and underline support
2018-03-18 12:37:53 -07: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
8d72cb1416
Remove transition on box-shadow
as it affects performance (and is not _that_ noticeable)
2018-03-18 03:00:49 -04: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
Jérémie Astori
6828cd1075
Fix transitions of sidebar overlay
2018-03-17 21:08:08 -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
f07a6db7ab
Merge pull request #2199 from thelounge/astorije/sign-in-logo
...
Add logo to the sign in page
2018-03-14 10:57:41 +02:00
Pavel Djundik
9414989fc1
Merge pull request #2212 from thelounge/xpaw/hide-chan-list
...
Allow hiding channel list on desktop
2018-03-14 10:54:09 +02: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
Jérémie Astori
ed67dc5de5
Add logo to the sign in page
2018-03-13 23:05:11 -04:00
Pavel Djundik
a56ad36a42
Do not repaint theme on page load
2018-03-13 17:38:01 +02:00
Pavel Djundik
74220d8a24
Allow hiding channel list on desktop
...
Fixes #17
2018-03-13 17:00:02 +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
Pavel Djundik
43fc531a6f
Fix join and part icons
2018-03-12 17:37:57 +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
Jérémie Astori
da5a876f93
Use warning icon for insecure connections
2018-03-11 15:57:35 -04:00
Jérémie Astori
c28fda6b28
Switch to Font Awesome 5
2018-03-11 15:57:35 -04: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
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
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
3efd888727
Word prefetch errors differently
2018-02-23 13:47:55 +02:00
Jérémie Astori
e03694b49c
Let user know someone is making a CTCP request against their nick
2018-02-22 00:42:33 -05: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
37c61e2413
Report server errors when preview fetch fails
2018-02-20 11:33:42 +02:00
Pavel Djundik
1ce2792fc4
Merge pull request #1920 from thelounge/xpaw/more-eslint
...
Enforce padding-line-between-statements
2018-02-20 09:41:40 +02:00
Pavel Djundik
c733e72e7a
Auto-fix code for padding-line-between-statements rule
2018-02-20 09:28:04 +02:00
Pavel Djundik
a2195c15e4
Add titles to all windows
2018-02-20 09:19:20 +02:00
Pavel Djundik
7724762c14
Fix active class not being removed when switching channels
2018-02-19 21:05:05 +02:00
Jérémie Astori
bdb6064c76
Add logo to README, and make intro it look a little nicer
2018-02-19 13:21:06 -05: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
9ecb776760
Merge pull request #2031 from thelounge/astorije/irc-monospace
...
Improve monospace formatting in messages
2018-02-19 20:09:04 +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
Jérémie Astori
53fe991407
Merge pull request #1980 from thelounge/astorije/website
...
Replace reference to website with new URL
2018-02-19 12:56:08 -05:00
Pavel Djundik
a3e448acf5
Enable no-var rule
...
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori
8403d277b4
Replace reference to website with new URL
2018-02-19 12:23:41 -05: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
23b59ece45
Allow scaling the page
2018-02-18 01:45:57 -05:00
Pavel Djundik
38bc8e6782
Display password field when displayNetwork is false
...
Fixes #509
2018-02-17 10:23:01 +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
f7449c565f
Fix border after nickname not taking full height
...
Fixes #2054
2018-02-13 12:37:10 +02:00
Pavel Djundik
12bbaef4ab
Unbind image events after the image is loaded
2018-02-08 14:54:57 +02:00
Pavel Djundik
339f65295d
Make sure packages can be referenced in subfolders
2018-02-08 10:57: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
Jérémie Astori
003ae7131b
Improve monospace formatting in messages
...
This effectively styles it just like to `code` syntax used in the Help window, such as in the list of available commands.
2018-02-03 12:53:33 -05: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
Al McKinlay
335bd803af
Show error if image is greater than max prefetch size
2018-02-01 21:09:45 -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
Jérémie Astori
dcdc1d150f
Merge pull request #1979 from thelounge/astorije/index
...
Do not statically serve the index template prior to rendering it
2018-01-30 19:21:07 -05:00
Pavel Djundik
869e978a99
Fix #1959 : Do not block /join command from being sent
2018-01-30 11:14:17 +02:00
Pavel Djundik
4f5807b8fe
Merge pull request #1856 from MaxLeiter/close-channel-tooltip
...
Add tooltip to channel close button
2018-01-30 11:12:30 +02:00
Jérémie Astori
8d124dd2a2
Merge pull request #1924 from thelounge/xpaw/img-decoding
...
Set decoding=async on image previews
2018-01-30 00:22:22 -05: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
Pavel Djundik
43aceccb41
Set start_url in manifest.json
2018-01-29 19:46:54 +02:00
Max Leiter
8057c416fb
Add tooltip to close channel/leave query button on sidebar
2018-01-29 09:36:09 -08:00
Jérémie Astori
15ea2db31b
Merge pull request #1999 from thelounge/astorije/fix-timestamp-tooltip
...
Fix timestamp tooltips not aligning correctly with timestamps
2018-01-29 01:07:55 -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
Jérémie Astori
ede37b9cb6
Merge pull request #1931 from thelounge/astorije/build-views
...
Build template list at Webpack time instead of manually keeping this in sync with the views folders
2018-01-29 01:04:06 -05:00
Alistair McKinlay
0b83ba6a40
Stop expanding condensed messages on /expand
2018-01-26 08:52:51 +00:00
Jérémie Astori
5722bd9845
Allow timestamp tooltips to expand beyond message boundaries
2018-01-24 00:22:18 -05:00
Jérémie Astori
6bfd6ed473
Fix timestamp tooltips not aligning correctly with timestamps
2018-01-23 00:49:17 -05:00
milindl
d6d54c2c56
Show channels for only active server in autocomplete
...
Fix #1381 .
2018-01-20 18:24:21 +05:30
Jérémie Astori
33d82287be
Do not statically serve the index template prior to rendering it
...
Without this, going to `https://thelounge.example.com/index.html ` would return the raw file. This now excludes it from the `public` folder so it cannot be rendered as is.
Renaming the file is for good measure, to indicate that this HTML file must be templated. Because it is a straight rename with no modification, rebasing PRs on it should not be to painful, as git re-applies changes on renamed files.
2018-01-14 13:02:27 -05:00
Jérémie Astori
40aadf7c95
Merge pull request #1619 from thelounge/1447-css-plugin
...
Allow custom css from plugins
2018-01-10 21:44:47 -05:00
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
Al McKinlay
3510094665
Allow custom css from plugins
2018-01-05 17:40:47 +00:00
William Boman
dfe4b2f6d6
fix animation jitter when clicking join channel button
2018-01-04 10:53:07 +01:00
Jérémie Astori
313a321918
Merge pull request #1916 from williamboman/fix/no-autocomplete-channel-join
...
views/join_channel: disable autocompletion of form inputs
2018-01-04 00:29:52 -05:00
Jérémie Astori
a122ed5b7f
Build template list at Webpack time instead of manually keeping this in sync with the views folders
2018-01-02 01:38:57 -05:00
Pavel Djundik
f38fa9b98e
Set decoding=async on image previews
2017-12-29 21:57:52 +02:00
Pavel Djundik
e98291dd3f
Preload preview images before appending them to DOM
2017-12-29 12:30:15 +02:00
Jérémie Astori
04fee16fec
Fix CSS currently failing Stylelint checker
2017-12-28 17:07:08 -05:00
William Boman
f3b64958cb
views/join_channel: disable autocompletion of form inputs
2017-12-28 13:51:28 +01:00
Pavel Djundik
069cb6192f
Mute disabled inputs
2017-12-28 10:44:37 +02:00
Jérémie Astori
322987a204
Merge pull request #1906 from thelounge/xpaw/aria-label-input
...
Set aria-label on main input
2017-12-28 00:13:52 -05:00
Pavel Djundik
3cd99816b8
Add screen reader label for custom css textarea
2017-12-27 22:48:03 +02:00
Pavel Djundik
48ebde6008
Add log role to message container
...
Fixes #936
2017-12-27 22:43:21 +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
Pavel Djundik
c14c3b73d2
Merge pull request #1882 from thelounge/astorije/join-ui-message
...
Improve wording of join channel UI form restrictions
2017-12-23 21:10:02 +02: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
7fa30980aa
Improve wording of join channel UI form restrictions
...
This gives a more actionable message to the user if they do not enter a valid value.
2017-12-23 03:05:29 -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
Jérémie Astori
cbe9a4e221
Support pre
blocks in our style
...
We use this in our changelogs. Style for this is straight from Bootstrap 3 minus the border.
2017-12-22 22:04:41 -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
1063d7b1d6
Mark the channel field of "Join a channel" UI as required
2017-12-22 12:18:48 -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
Jérémie Astori
3307ced4d8
Remove background on close/join-channel sidebar buttons
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
aad9033d06
Use notEqual helper for close button
2017-12-22 12:30:23 +02: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
Jérémie Astori
da7481c23c
Merge pull request #1850 from thelounge/xpaw/whois-dl
...
Format whois as a definition list
2017-12-21 18:05:01 -05:00
Jérémie Astori
98cab94f9b
Add visual feedback on focused buttons, for example when tabbing to it
2017-12-21 16:38:20 -05:00
Pavel Djundik
56b5a13abc
Merge pull request #1855 from MaxLeiter/primer-npm
...
Update to primer on npm
2017-12-21 16:41:54 +02:00
Max Leiter
32b4349130
Update to primer on npm, set tooltipped-no-delay for all tooltips
2017-12-20 22:04:13 -08: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
Pavel Djundik
2b7657a9e7
Format whois as a definition list
2017-12-18 19:40:01 +02:00
Al McKinlay
ada870e959
Merge pull request #1843 from thelounge/astorije/time-status-mobile
...
Add missing time (and icon) of status messages on mobile
2017-12-18 14:00:14 +00:00
Jérémie Astori
36be7565a7
Merge pull request #1691 from realies/patch-2
...
fix gap between #sidebar and #footer
2017-12-18 00:06:14 -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
af4f322bf9
Fix UI issues with special channels
...
As a reminder, "special" channels right now are banlists and channel lists.
- Remove that bottom margin that was causing things to hide behind the message input. This was probably relevant before the whole UI was flexbox-based and was not removed when switching.
- Do not align to bottom on special channels
- Hide unread and date markers on special channels
- Make sure table headers in special channels are not truncated, which was for example the case with "Users" being broken up ("User" and "s" on 2 different lines)
2017-12-17 01:14:11 -05: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
d9cc335351
Add missing time (and icon) of status messages on mobile
2017-12-16 16:11:10 -05:00
Jérémie Astori
ffe8f2899b
Merge pull request #1787 from thelounge/xpaw/messages-bottom
...
Align message container to the bottom
2017-12-15 22:27:04 -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
Al McKinlay
b9f1b9fd4d
Merge pull request #1832 from MaxLeiter/media
...
Rename thumbnail/image option to more general `media`
2017-12-14 09:05:40 +00:00
Max Leiter
d4ad60c11d
Support video file previews
2017-12-13 17:52:07 -08: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
Pavel Djundik
ccd0a6559b
Add styling for 16-98 colors
2017-12-12 20:14:05 +02: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
ce2adb4b8d
Use hashtag icon for channel instead of the sad file icon :)
2017-12-11 01:20:28 -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
2d0ddfb2e8
Merge pull request #1778 from thelounge/xpaw/lazy-init
...
Heavily improve performance of "init" event
2017-12-05 12:03:01 +02:00
Pavel Djundik
b5d39b96b9
Handle CHGHOST cap
2017-12-04 23:33:48 -05:00
Jérémie Astori
b80710ed82
Merge pull request #1788 from PolarizedIons/PolarizedIons/actualip
...
Add actualip to the actualhost line in the whois output
2017-12-04 23:30:04 -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
41e121d270
Only emit a single message per channel on init
2017-12-03 16:13:18 +02:00
Pavel Djundik
6aff2657e9
Ask for notification permission on page load if setting is enabled
2017-12-01 22:27:36 +02:00
stepie22
c7f6b8409f
Change whois's actual host to include the actualip aswell
2017-12-01 15:03:02 +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
Pavel Djundik
11568d7405
Align message container to the bottom
2017-12-01 12:41:26 +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
Pavel Djundik
a7bd40a5b1
Fix users not being linked in /me actions
2017-11-30 14:13:11 +02:00
Pavel Djundik
104e270882
Merge pull request #1771 from thelounge/astorije/fix-user-in-msg
...
Clone instances of `User` in `Msg` to avoid unintentional mutations
2017-11-30 11:29:23 +02:00
Pavel Djundik
f89054784f
Merge pull request #1764 from thelounge/xpaw/fix-data-from
...
Fix data-from on messages
2017-11-30 11:28:00 +02:00
Jérémie Astori
4ec10b922a
Clone instances of User
in Msg
to avoid unintentional mutations
2017-11-30 00:41:19 -05:00
Jérémie Astori
c0d348a678
Fix default value given to Msg.from
...
- `{}` is not falsey so Handlebars would try to render the block (see http://handlebarsjs.com/builtin_helpers.html#conditionals ), therefore with a `nick` of `undefined`, which breaks `colorClass` (doing `undefined.length)
- There does not seem to be a way to check for empty objects in Handlebars (sigh) so checking `from.nick` seems like the most reliable way to check for a non-empty value. Alternatively, we could use a helper to check `{}` but meh.
2017-11-29 18:37:17 -05:00
Pavel Djundik
68753ae3e8
Fix data-from on messages
2017-11-29 20:45:19 +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
Pavel Djundik
6fc812d272
Merge pull request #1748 from MaxLeiter/highlights
...
Fix text highlighting when clicking on condensed message toggles
2017-11-27 11:48:03 +02: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
Max Leiter
d9d4672d75
Fix text highlighting when clicking on condensed message toggles
2017-11-26 14:05:23 -08:00
Bonuspunkt
0e52b133af
Sending channel and link together generates duplicate text
2017-11-26 21:33:27 +02:00
Jérémie Astori
d9efaef369
Merge pull request #1746 from thelounge/xpaw/fix-preview-keep-to-bottom
...
Trigger keep to bottom for previews correctly
2017-11-26 12:35:08 -05:00
Pavel Djundik
6862c2e6b0
Trigger keep to bottom for previews correctly
2017-11-26 15:49:31 +02:00
Pavel Djundik
e3515d2ea1
Update stylelint rules
2017-11-26 14:28:33 +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
eaeb3375db
Merge pull request #1738 from thelounge/xpaw/extra-msg-trims
...
Trim channel messages in active channel and when switching channels
2017-11-26 11:40:31 +02:00
Max Leiter
9eb79d675c
Fix whois template parsing real name field
...
Links and etc will now render correctly
2017-11-25 12:23:03 -08: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
Jérémie Astori
a10f147c36
Merge pull request #1720 from thelounge/xpaw/fix-new-user-obj
...
Access new nick attribute in user object
2017-11-21 19:28:37 -05:00
Pavel Djundik
c268d91b4e
Access new nick attribute in user object
...
This was broken in #1698
2017-11-21 13:54:12 +02:00
Erik Vosseberg
f40edc7dc2
Include all available whois info
2017-11-21 00:27:24 -05:00
Pavel Djundik
e86a155ec2
Remove express-handlebars, read manifest.json to get theme-color
2017-11-19 19:43:43 +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
55d1625ab2
Split connect and settings into templates
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
303dddb12e
wip
2017-11-19 19:43:42 +02:00
Jérémie Astori
0e55dafd8a
WIP
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
Pavel Djundik
74dcc52657
Refactor how user object is sent to the client
2017-11-19 02:46:45 -05:00
Jérémie Astori
36ab3ffc8d
Merge pull request #1689 from thelounge/xpaw/parse-real-name
...
Parse formatting in real name
2017-11-19 00:07:23 -05:00
Jérémie Astori
1dc92d8934
Enforce dangling commas with ESLint
...
¯\_(ツ)_/¯
2017-11-15 01:35:15 -05:00
Jérémie Astori
21badddc38
Merge pull request #1609 from dgw/restore-autocomplete-help
...
Restore autocompletion help
2017-11-11 20:16:09 -05:00
Pavel Djundik
9ff974b702
Fix missing attributes on unhandled messages
2017-11-10 16:18:44 +02:00
realies
5c4e1e55a6
fix gap between #sidebar and #footer
2017-11-08 18:01:35 +02:00
Pavel Djundik
10dab7afac
Parse formatting in real name
2017-11-07 17:38:03 +02:00
Pavel Djundik
8062609c86
Merge pull request #1602 from thelounge/xpaw/remove-inconsolata
...
Remove Inconsolata
2017-11-06 22:15:19 +02:00
dgw
3677cb4c8b
Restore autocompletion help
...
Cleaned up and updated the section for the current version of The Lounge.
Resolves #1147 .
2017-11-05 05:57:34 -06:00
Amos Ng
e83ba807f4
Fix hyphenated names overflowing ( #1667 )
2017-10-31 00:01:35 +08: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
Jérémie Astori
40722601a2
Merge pull request #1637 from Swapnull/swapnull/page-title-padding
...
Reduced padding around page titles
2017-10-24 13:16:14 -04: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
Swapnull
449976b0f9
reduce padding around titles
2017-10-18 21:00:18 +01: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
Pavel Djundik
4535636855
Merge pull request #1599 from RJacksonm1/fill-mobile-screen-betterer
...
Remove content borders on mobile to maximise use of space
2017-10-18 21:21:22 +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
Jérémie Astori
75bc45f354
Make sure channel list close button is really absent when channel is not selected
2017-10-10 02:05:54 -04: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
Jérémie Astori
54cffb4712
Fix some missing parts from recent font changes/resizing
...
- Separate messages by one more pixel: the recent font changes make multiline messages rather hard to differentite from one another. I believe adding 2px looked better, but I knew that would cause riots so I went for a middle ground 😅
- Make previews the same size than messages themselves, and adapt the thumbnail height accordingly
- Make the message input font size same as message size
2017-10-03 01:09:02 -04:00
PolarizedIons
99c8e1c04a
Remove channel containers from DOM after quitting network
2017-10-02 13:55:23 +02:00
Rob Jackson
d5d3cb0851
Remove content borders on mobile to maximise use of space
2017-10-01 22:02:22 +01:00
Pavel Djundik
737c75638e
Remove Inconsolata
2017-10-01 12:22:04 +03: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
0b16026fe2
Merge pull request #1568 from Gilles123/patch-1
...
Fix nick change on Safari for Mac and iOS
2017-09-27 10:27:18 +03:00
Gilles123
04d9b52113
Fix nick change on Safari for Mac and iOS
...
It is currently impossible to edit the nick text after pressing the edit button on Safari for iOS and Mac because user-select is set to None on Safari by default. This fixes that issue. Tested that it is not editable when it shouldn't be and that it doesn't break anything on Chrome or Firefox.
2017-09-26 18:44:23 -04:00
Jérémie Astori
5728424c75
Use monospace font in custom CSS textarea
2017-09-26 11:21:42 -04:00
Pavel Djundik
d7e6db92b5
Implement session list
2017-09-26 10:56:08 +03:00
Jérémie Astori
46e8ec9ca9
Fix flickering on link hovering, and inconsistencies between chat links and UI links
2017-09-25 18:06:55 -04: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
Jérémie Astori
5e4a4d1d0b
Fix wrongly positioned menu when opening it and switching to landscape
...
This could be reproduced on tablet or large phone (as long as portrait mode shows a collapsible menu and landscape mode shows normal menu) or when resizing the browser on desktop.
2017-09-23 12:21:31 -04:00
Jérémie Astori
4dc3769b18
Make channel list links clickable on full width, simplify code
...
- Close button and badge are now positioned using the same method. Previously one was float and the other was absolutely positioned.
- Increase the close button size to match 2.4.0, as it was made smaller when moving to the native font stack.
- Removed link margins on left/right of the channel links, and the `1px` gap between links.
- Removed hack/fix for drag-and-drop now made unnecessary
2017-09-22 23:42:16 -04:00
Jérémie Astori
713d2c14e5
Reduce message size on mobile and increase a bit UI text
2017-09-22 21:59:45 -04:00
Pavel Djundik
f85686bcb2
Merge pull request #1468 from thelounge/xpaw/combine-notifications
...
Combine unread notifications into a single one
2017-09-22 21:04:04 +03: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
Jérémie Astori
3eaf12cc36
Increase font size on desktops and mobiles
2017-09-21 03:26:30 -04: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
Jérémie Astori
d97b844e29
Merge pull request #1520 from iamstratos/master
...
Add touch-action to Messages, Sidebar and User list
2017-09-19 23:53:27 -04:00
Pavel Djundik
6041e492ee
Fix history not loading if first message is condensed
2017-09-19 18:01:02 +03:00
Pavel Djundik
6cfe60e4d9
Group push notifications per target
2017-09-19 12:01:50 +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
26eba56ab8
Merge pull request #1540 from thelounge/xpaw/native-fonts
...
Use native font stack
2017-09-19 00:29:32 -04: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
Pavel Djundik
4e776f7a5f
Remove Lato
2017-09-18 13:33:04 +03:00
Pavel Djundik
3ac15f97f1
Use native font stack
2017-09-18 13:32:52 +03: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
Alistair McKinlay
59d2f93f61
Allow themes from npm
2017-09-17 19:47:29 -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
948f304bb9
Merge pull request #1511 from thelounge/xpaw/checkered-background
...
Checkered background for transparent images in image viewer
2017-09-16 20:53:13 +01: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
Pavel Djundik
9e008a76b7
Merge pull request #1527 from dgw/kick-modes
...
Display correct kick modes
2017-09-14 10:46:35 +03:00
dgw
e4c6d78762
Display correct kick modes
...
Defining both the kicker and the target before any code touches the
channel user list ensures that everything is passed to the template.
2017-09-14 02:39:00 -05: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
Al McKinlay
f2fb05e7c9
Merge pull request #1526 from thelounge/astorije/rm-clear
...
Get rid of `/clear` command and keybind
2017-09-14 07:23:36 +01:00
Élie Michel
f26c2dad0f
Take an optional argument in /part
...
Fix #1430
2017-09-13 20:24:45 -04: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
ssstratos
6708261368
Add touch-action to more elements
...
- Add touch-action: pan-y to .container, .networks, .sidebar, #form
#input
- Add touch-action: none to body
2017-09-14 01:04:03 +03:00
Jérémie Astori
6d08b8d087
Fix hovering condensed messages
2017-09-13 01:36:11 -04:00
ssstratos
32da456c84
Add touch-action to Messages, Sidebar and User list
...
This commit fixes #1035
2017-09-12 23:50:31 +03: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
Pavel Djundik
f2bc5adf7b
Checkered background for transparent images in image viewer
2017-09-09 14:09:23 +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
Pavel Djundik
f65fb6573b
Merge pull request #1481 from MaxLeiter/emoji-title
...
Change vertical alignment of emoji in topics, fixes #1480
2017-09-01 11:23:39 +03: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
Jérémie Astori
ad8ec4b1e6
Remove the "Stay signed in" checkbox at login
...
This option is less and less the norm on modern webapps, it is fair to assume this is the default behavior. In fact, we were making it the default.
But more importantly, coming soon is the ability of remotely logging out of your other sessions, which is well handled through token deletion. That means we need to know about said tokens, which are not sent in no-"Stay signed in" version.
2017-08-31 23:07:43 -04:00
Max Leiter
05aa5da6e0
Change vertical alignment of emoji in topics, fixes #1480
2017-08-31 13:53:21 -07: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
Pavel Djundik
5785af6738
Do not hide time from events in condensed block
2017-08-24 15:21:07 +03:00
Pavel Djundik
60e69a83fc
Merge pull request #1387 from yashsriv/extend/fuzzy
...
Extend fuzzy search in autocomplete to all strategies
2017-08-24 12:01:34 +03:00
Pavel Djundik
06741a1e1c
Merge pull request #1153 from bews/bews/dev-8-font
...
Bigger font size
2017-08-24 11:56:30 +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
Jérémie Astori
51bd46b871
Fix time placeholder showing on mobile format for condensed messages
...
As an extra, make sure time placeholder cannot be selected anymore, and do not do an extra call to `tz` helper when time is not relevant/displayed.
I tried to entirely remove `time`/`from` blocks, but because of flexbox layout, that broke message alignment...
2017-08-23 02:23:54 -04: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
Jérémie Astori
e5ee53fc1f
Use leading-zero notation to get closer to stylelint standard config
2017-08-21 02:22:40 -04:00
Jérémie Astori
5d77bcb7c8
Use double-colon on pseudo elements to get closer to stylelint standard config
2017-08-21 02:18:33 -04: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
Pavel Djundik
21aba63e09
Merge pull request #1417 from thelounge/astorije/fix-full-width-status-messages
...
Fix expanded status messages not taking up full line width
2017-08-16 11:09:38 +03:00
Alistair McKinlay
bc2a37913f
Fix issue with falsey user options getting overridden by truthy defaults
2017-08-16 09:01:09 +01:00
Jérémie Astori
270fd8d4f9
Fix expanded status messages not taking up full line width
2017-08-15 20:06:18 -04: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
Jérémie Astori
0cdc2a0a04
Replace status message abbr with a tooltipped icon
2017-08-13 16:14:37 -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
Niko Bews
b02db5f1c6
Bigger font size
2017-07-29 23:39:34 +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
Jérémie Astori
60bf17fe91
Remove user link color override on dark theme
...
This fixes a UI glitch on hover when colored nicknames are disabled on Morning and Zenburn.
2017-07-26 01:38:51 -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
2a81af6949
Merge pull request #1365 from thelounge/astorije/image-viewer-previous-next
...
Add Previous/Next cycling buttons to the image viewer
2017-07-24 01:47:53 -04:00
Jérémie Astori
b9f17b77ab
Add Previous/Next cycling buttons to the image viewer
2017-07-23 13:14:27 -04:00
Pavel Djundik
52d85559aa
Fix link previews not truncating correctly
2017-07-22 12:33:49 +03:00
Jérémie Astori
30cf980506
Merge pull request #1359 from thelounge/xpaw/fix-link-previews
...
Fix remaining issues with link previews
2017-07-22 01:24:13 -04:00
Jérémie Astori
e73f82e46c
Merge pull request #1361 from thelounge/xpaw/fix-mobile-zalgo
...
Hide overflow on entire message row
2017-07-21 23:01:08 -04:00
Pavel Djundik
30f40ee448
Fix remaining issues with link previews
...
Fixes #1357
2017-07-21 19:39:06 +03:00
Pavel Djundik
ed9bfcf2fa
Merge pull request #1194 from thelounge/xpaw/lazy-user-list
...
Lazily load user list in channels on init, keep autocompletion sort on server
2017-07-21 17:25:23 +03:00
Pavel Djundik
74ca130d51
Hide overflow on entire message row
...
Fixes #1360
2017-07-21 15:00:42 +03:00
Pavel Djundik
d06c279f02
Lazily load user list
2017-07-21 11:05:36 +03:00
Pavel Djundik
7af573fd96
Handle auto completion order on the server
...
Fixes #289 .
2017-07-21 11:05:21 +03:00
Jérémie Astori
900d41bf47
Re-use .previews
to order incoming previews instead of extra links
2017-07-21 01:51:51 -04:00
Jérémie Astori
1c8ea0b75c
Fix preserved whitespace-related issues for previews by separating them from main text
2017-07-21 01:50:09 -04:00
Jérémie Astori
a13c08a45b
Enforce correct order for previews on server-side prefectch rather than at client parsing
...
This has the benefit of not adding `.preview` divs everywhere, anytime we use `parse()`, and also to un-tie the position of the preview blocks from the result of the helper. This means that templates that call `parse` and have some extra markup after that are not constrained anymore.
This is effectively an alternative, better way to fix https://github.com/thelounge/lounge/issues/1343 , but the initial fix that was put in place (https://github.com/thelounge/lounge/pull/1347 ) is still relevant, for example to make sure a preview stays hidden (and does not add extra margin/padding/etc.) if the link does not prefetch.
2017-07-21 01:06:42 -04:00
Jérémie Astori
4e7eed7958
Merge pull request #1334 from MaxLeiter/MaxLeiter/emoji
...
Emoji fuzzysearching
2017-07-20 01:20:57 -04:00
Max Leiter
4a56870c08
Emoji fuzzysearching
2017-07-19 11:33:16 -07:00
Alistair McKinlay
e01e21cdbe
Change more to use id rather than count.
2017-07-19 07:37:13 +01:00
Jérémie Astori
f88d1e3bef
Merge pull request #1242 from starquake/newlines-fix
...
Correctly show whitespace and newlines in messages
2017-07-19 02:05:31 -04:00
Jan Visser
f0e6e397a4
Correctly handle multiple successive whitespace characters
2017-07-18 16:54:35 +02:00
Pavel Djundik
70d09841d9
Fix incorrect mode on kick target
2017-07-18 17:38:24 +03:00
Pavel Djundik
488dd7aeb4
Merge pull request #1347 from thelounge/astorije/fix-empty-preview
...
Hide empty preview divs when there are no previews loaded
2017-07-18 15:44:51 +03:00
Pavel Djundik
ff757d4386
Merge pull request #1348 from thelounge/astorije/fix-action-previews
...
Fix previews in actions ("/me") after page reload
2017-07-18 15:44:31 +03:00
Pavel Djundik
f35a2809a7
Store preview images on disk for privacy, security and caching
2017-07-18 11:37:16 +03:00
Jérémie Astori
5fb34ce93f
Fix previews in actions ("/me") after page reload
2017-07-18 01:27:18 -04:00
Jérémie Astori
e5bace1794
Hide empty preview divs when there are no previews loaded
2017-07-18 00:37:45 -04:00
Jérémie Astori
511b173b6f
Add an image viewer for thumbnails and image previews
2017-07-16 19:25:48 -04:00
Jérémie Astori
a010973766
Fix some button styling
2017-07-15 12:27:39 -04:00
Pavel Djundik
e2c5468d27
Merge pull request #1328 from thelounge/xpaw/remove-ie-compat
...
Remove X-UA-Compatible
2017-07-15 11:56:38 +03:00
Pavel Djundik
4837699d5c
Merge pull request #1329 from MaxLeiter/MaxLeiter/safari-icon
...
Add mask-icon for pinned safari tab
2017-07-15 11:54:04 +03:00
Pavel Djundik
7869f09949
Merge pull request #1336 from thelounge/astorije/fix-autocomplete-transition
...
Remove "in" transition on autocomplete items to fix a visual glitch on value refresh
2017-07-15 11:48:46 +03:00
Max Leiter
46b7296b87
Add mask-icon for pinned safari tab
2017-07-14 18:32:54 -07:00
Jérémie Astori
1110097664
Remove "in" transition on autocomplete items to fix a visual glitch on value refresh
2017-07-14 20:43:47 -04:00
Jérémie Astori
d2a3287800
Fix preview toggle button on Morning
2017-07-14 20:22:45 -04:00
Pavel Djundik
43f1b6b627
Remove X-UA-Compatible
...
Ref: https://stackoverflow.com/a/26348511/2200891
2017-07-14 12:18:01 +03:00
Jérémie Astori
9937fcdbf9
Fix background of toggle button and margin glitch of toggle body on Zenburn
2017-07-12 02:56:58 -04:00
Pavel Djundik
199bc459b4
Merge pull request #1303 from thelounge/astorije/multiple-previews
...
Support multiple previews per message
2017-07-09 18:29:31 +03:00
Al McKinlay
2d853f20aa
Merge pull request #1309 from thelounge/astorije/collapse-previews
...
Add collapse/expand commands to toggle all previews
2017-07-09 15:20:48 +01:00
Jérémie Astori
7fb527847e
Fix missing transitions
2017-07-08 21:17:03 -04:00
Jérémie Astori
28200830ed
Move preview toggle buttons next to their respective URLs and switch from ellipsis to caret
2017-07-08 04:36:26 -04:00
Jérémie Astori
64ebe0f437
Support multiple previews per message
...
- Load up to 5 previews per message (to avoid abuse)
- Do not load multiple times the same URL
- Prepare preview containers per message instead of appending (to maintain correct order)
- Store an array of previews instead of a single preview in `Msg` objects
- Consolidate preview rendering for new messages and upon refresh/load history (when rendering entire channels)
- Update `parse` tests to reflect previous point
- Add test for multiple URLs
- Switch preview tests from `assert` API to `expect` API
2017-07-08 04:34:12 -04:00
Jérémie Astori
b1fa78665c
Merge pull request #1294 from awalgarg/autocomplete-optout
...
Allow opting out of autocomplete
2017-07-08 03:46:35 -04:00
Jérémie Astori
cff76d033d
Reword link preview settings to better match reality
...
- s/Links and URLs/Link previews/: From a user perspective, these are the same thing... These options are for the prefetcher, not the URLs themselves
- s/thumbnails/images/: What we call thumbnails are for "site" previews, not actual image links
- s/links/websites/: Technically, both image and non-image links are links, "websites" carries a tiny bit better the meaning
2017-07-07 02:23:44 -04:00
Jérémie Astori
e08f18f447
Add collapse/expand commands to toggle all previews
2017-07-07 00:18:37 -04:00
Pavel Djundik
818a21b52e
Fix jumps when toggling link preview
2017-07-04 20:51:22 +03:00
Jérémie Astori
a96b071fb3
Fix background color contrast on Zenburn previews
2017-07-04 13:39:39 -04:00
Jérémie Astori
a7ddfbc8a3
Merge pull request #1296 from thelounge/astorije/previews-crypto
...
Fix too big line height previews text on Crypto
2017-07-04 13:34:40 -04:00
Jérémie Astori
1ba8f10440
Fix too big line height previews text on Crypto
2017-07-04 13:15:55 -04:00
Jérémie Astori
ec5b5ef565
Add title attributes to previews
...
This is useful on long preview titles/descriptions that truncate. We currently do the same for topics
2017-07-04 12:56:57 -04:00
Pavel Djundik
c62bc2fa35
Do not truncate link previews if viewport can fit more text
...
Fixes #1084
2017-07-04 09:51:35 +03:00
Awal Garg
8c8d683348
Allow opting out of autocomplete
2017-07-03 22:37:38 +05:30
Pavel Djundik
14b2ad7938
Refactor link previews
2017-07-03 00:41:18 +03:00
Jérémie Astori
aee518365d
Merge pull request #1252 from thelounge/bews/username-template
...
Move nickname rendering to a single template
2017-06-26 01:49:50 -04:00
Pavel Djundik
c9f63fc699
Merge pull request #1217 from MaxLeiter/patch-3
...
Fix MOTD underline in Safari
2017-06-24 12:19:14 +03:00
Max Leiter
e76019b82c
Fix MOTD underline in Safari
...
before: https://sr.ht/mdPx.png
after: https://sr.ht/h45R.png
Basically, safari's user agent CSS applies an underline to <abbr> tags, which bootstrap already does as well (but bootstrap doesn't use text-decoration so it's not overriden).
2017-06-23 14:30:08 -07:00
Pavel Djundik
25fefd5e54
Hide link time element on small devices
2017-06-23 20:51:36 +03:00
Jérémie Astori
358852cecb
Merge pull request #1253 from thelounge/xpaw/nick-fade-pos
...
Fix nick fade positioning
2017-06-23 02:02:43 -04:00
Jérémie Astori
96e6ac8111
Merge pull request #1249 from thelounge/xpaw/stylelint-config-standard
...
Use stylelint-config-standard
2017-06-23 01:44:18 -04:00
Pavel Djundik
714580e94a
Fix nick fade positioning
2017-06-22 22:05:13 +03:00
Niko Bews
eb4a4c7dfe
Move nickname rendering to a single template
...
Closes #1241
2017-06-22 13:28:17 +03:00
Pavel Djundik
c1068164f5
Fix stray end tag
2017-06-22 11:34:47 +03:00
Pavel Djundik
138111b16e
Use stylelint-config-standard
2017-06-22 11:23:50 +03:00
Jérémie Astori
0b85582744
Merge pull request #1175 from thelounge/yamanickill/socket-modules
...
Add modules for socket events
2017-06-20 23:42:52 -04:00
Jérémie Astori
ead4a7f791
Merge pull request #1233 from thelounge/xPaw/user-select
...
Make everything unselectable by default
2017-06-20 23:38:17 -04:00
Pavel Djundik
28528dc865
Correctly finish scroll animation when using page keys
...
Fixes #1022 .
2017-06-20 13:22:58 +03:00
Pavel Djundik
2091a5b41b
Merge pull request #1120 from thelounge/xpaw/scroll-perf
...
Include trickery to reduce paints and improve performance
2017-06-20 13:18:06 +03:00
Pavel Djundik
04c67de1af
Merge pull request #1158 from bews/bews/dev-10-usercut
...
Fade out for long usernames.
2017-06-20 13:15:43 +03:00
Alistair McKinlay
f90c355c8e
Add modules for socket events
2017-06-20 07:22:58 +01:00
Pavel Djundik
32a73d49f1
Merge pull request #1016 from swordbeta/unread_marker_hidden_joins
...
Unread marker takes hidden messages into account.
2017-06-20 08:15:31 +03:00
Pavel Djundik
f6dd616d5e
Update to eslint 4 and enforce extra rules
2017-06-19 09:58:29 +03:00
Pavel Djundik
ef5b0d9e16
Make everything unselectable by default
2017-06-16 18:59:06 +03:00
Jérémie Astori
1a6f2fc387
Merge pull request #1150 from bews/bews/dev-9-reload
...
Add "reload page" button when Lounge fails to start.
2017-06-10 13:25:37 -04:00
Niko Bews
cba87582a5
Add "reload page" button when Lounge fails to start.
2017-06-10 20:15:32 +03:00
Pavel Djundik
53ffcb5960
Merge pull request #1141 from bews/bews/dev-6-seconds
...
Show seconds in timestamp
2017-06-10 16:15:03 +03:00
Niko Bews
fd983a7f6b
Show seconds in timestamp
2017-06-10 14:53:15 +03:00
Pavel Djundik
7ec0dcfec8
Mark touch events as passive
2017-06-09 23:20:00 -04:00
Pavel Djundik
518160a1fa
Include trickery to reduce paints and improve performance
...
Fixes #1083 .
Fixes #1071 .
2017-06-09 23:19:59 -04:00
Pavel Djundik
93bc406c2e
Consider click also a read activity
2017-06-09 14:10:55 +03:00
Pavel Djundik
ca54c40d0f
Merge pull request #1197 from thelounge/xpaw/socketio-transports
...
Correctly configure client socket transports
2017-06-08 20:19:49 +03:00
Jérémie Astori
c88a0875b6
Merge pull request #1205 from thelounge/xpaw/no-hardcoded-title
...
Keep original <title> name when changing the title
2017-06-08 09:10:11 -04:00
Jérémie Astori
5a5bf823a0
Merge pull request #1195 from thelounge/xpaw/consistent-user-object
...
Do not store unnecessary information in user objects
2017-06-08 02:46:25 -04:00
Pavel Djundik
571818d4c2
Keep original <title> name when changing the title
2017-06-05 14:40:25 +03:00
Pavel Djundik
22c00aca95
Do not store passwords in settings storage
2017-06-03 21:41:21 +03:00
Pavel Djundik
16fb118d02
Correctly configure client transports
...
Fixes #848
2017-06-01 22:43:23 +03:00
Pavel Djundik
acf5dd5351
Do not store unnecessary information in user objects
2017-06-01 21:54:46 +03:00
swordbeta
24419cb8e8
Assign last visible div to var.
2017-05-17 13:19:18 +02:00
Jérémie Astori
3e54569624
Fix user list search not responding to clicks on search results
2017-05-13 18:34:27 -04:00
Niko Bews
035d10005a
Fade out for long usernames.
2017-05-11 03:37:11 +03:00
Al McKinlay
07e4f4d1a4
Merge pull request #1157 from thelounge/astorije/motd-default
...
Display MOTD by default on client
2017-05-10 10:14:22 +01:00
Jérémie Astori
895fcc4066
Display MOTD by default on client
2017-05-09 18:18:32 -04:00
PolarizedIons
54a9637ed4
Fix fixing the date-marker not being removed when it should be.
...
Accidentally copy-pasted more than I should have when I moved the scrollable height calculation code, and I caused the older
messages to be added before doing checks for the date-markers, which would fail.
2017-05-09 19:23:31 +02:00
Pavel Djundik
691f628e48
Merge pull request #1095 from thelounge/xpaw/fix-nick-autocomplete
...
Fix nick autocomplete
2017-05-06 13:43:27 +03:00
Pavel Djundik
7ae364e360
Merge pull request #1100 from thelounge/xpaw/0x04
...
Add support for 0x04 hex colors
2017-05-06 13:43:14 +03:00
Pavel Djundik
fe77563cdb
Merge pull request #1114 from thelounge/xpaw/moment
...
Use moment to render dates everywhere
2017-05-06 13:43:02 +03:00
Pavel Djundik
57d7616d1b
Merge pull request #1109 from thelounge/astorije/autocomplete-colors
...
Add autocomplete strategy for foreground and background colors
2017-05-06 13:42:47 +03:00
Pavel Djundik
4a75ca57e0
Merge pull request #1125 from thelounge/astorije/rm-autocompletion-help
...
Remove autocompletion section from the help page
2017-05-06 13:41:46 +03:00
Pavel Djundik
9766c3e254
Allow autocompleting full emoji short names
2017-05-05 21:08:41 +03:00
PolarizedIons
c5e215f439
Fix date-marker not being removed on loading new messages
2017-05-05 14:07:01 +02:00
swordbeta
979d992bd1
Don't show unread marker for date marker.
2017-05-04 21:38:58 +02:00
Pavel Djundik
700d3c1ff2
Use moment to render dates everywhere
2017-05-01 21:31:31 +03:00
Jérémie Astori
60bf4b22b0
Remove autocompletion section from the help page
...
Rationale for this is that the whole point of autocompletion is to be intuitive and show up naturally when starting to type something else. For example, all commands start with `/`, so obviously starting to type a command will trigger autocomplete. This is true for channels as well. Emoji are a bit particular because all systems that support emoji open their completion with `:`. The only not-so-intuitive completion strategy is for nicks because it is not so common to start them with `@` on IRC, but as long as we keep tab completion after any set of characters, this is fine. It will be even nicer once regular tab completion uses the same autocompletion dropdown.
2017-05-01 15:32:23 +02:00
Jérémie Astori
0981605fae
Add autocomplete strategy for background colors
2017-05-01 02:49:35 +02:00
Jérémie Astori
6d1eef836a
Add autocomplete strategy for foreground colors
2017-04-30 14:08:12 +02:00
Pavel Djundik
381ea326f4
Disable tabindex on userlist search input
...
Fixes #1036 .
2017-04-30 15:07:09 +03:00
Pavel Djundik
f7b7248ff7
Fix nick autocomplete
...
Fixes #1119 .
2017-04-30 15:03:27 +03:00
Pavel Djundik
0b645d54c6
Add support for 0x04 hex colors
...
Ref: https://modern.ircdocs.horse/formatting.html#hex-color
2017-04-29 09:50:26 +03:00
Pavel Djundik
0773bf1ecb
Merge pull request #1108 from MaxLeiter/ctcp-command
...
Add ctcp to constants, adds to auto-complete
2017-04-29 09:17:48 +03:00
Max Leiter
70655120cb
Add ctcp to constants, adds to auto-complete
2017-04-28 14:45:18 -07:00
Pavel Djundik
a3810dea06
Fix chat layout on small devices when users list is hidden
...
Fixes #1092
2017-04-28 21:58:00 +03:00
Jérémie Astori
927c40739e
Fix network layout displaying the scrollbar incorrectly
...
This was introduced by https://github.com/thelounge/lounge/pull/856/files#diff-97db1f70168fb5f12457b238ff6052b5R773 (and L794-798): a right position got introduced for all channel containers, but default position for other types of containers was absent before this script.
2017-04-26 23:30:51 +02:00
PolarizedIons
81a5615c9a
Fix nick autocomplete
2017-04-26 19:34:31 +02:00
Jérémie Astori
06af65cf01
Merge pull request #1078 from thelounge/1022-slow-scrolling
...
Add fix for slow scrolling when holding pg-up/pg-dn
2017-04-26 13:47:40 +02:00
Pavel Djundik
586dde7761
Merge pull request #856 from thelounge/astorije/fuzzy-match-user-list
...
Implement fuzzy-matching for the user list
2017-04-26 12:57:06 +03:00
Pavel Djundik
dd5e50fc68
Merge pull request #1062 from thelounge/remove-cycle-nicks
...
Remove cycle nicks button
2017-04-26 11:41:51 +03:00
Jérémie Astori
e000ba45df
Improve details of emoji/chan/nick/command autocompletion
...
- Make dropdown items match context menu items
- Disable transparency on dropdown item links
- Clean up help page additions
- Better align help page autocompletion characters
- Use ES6 features (`const`, arrow functions, method definition shorthands)
- Use `Array#filter` instead of `$.map`
- Do not display `@` in nick completion *when* only one `@` is used (to be less confusing and more consistent)
2017-04-26 13:58:43 +05:30
Yash Srivastav
29d8bc9d3d
Add Help for autocompletion
2017-04-26 13:58:43 +05:30
Yash Srivastav
7229e0dda4
Disable history completion during emoji completion
2017-04-26 13:58:43 +05:30
Yash Srivastav
785842cde5
Add emoji/nick/commands/chan autocomplete
2017-04-26 13:58:36 +05:30
Pavel Djundik
e3bd30b05f
Merge pull request #1077 from thelounge/yamanickill/1073-ban-unban
...
Add ban/unban command
2017-04-26 11:17:41 +03:00
Alistair McKinlay
b03d01b6eb
Add ban/unban command
...
Fixes #1073
2017-04-26 08:54:25 +01:00
Alistair McKinlay
d0987719ce
Replace the state on init rather than adding a new entry
...
Fixes #1042
2017-04-26 08:36:26 +01:00
Jérémie Astori
ac9101ed61
Merge pull request #1066 from thelounge/yamanickill/options-module
...
Create options module
2017-04-26 00:17:51 +02:00
Alistair McKinlay
b69ba5e4b1
Fix showing prefetch options
2017-04-25 10:26:52 +01:00
Alistair McKinlay
fe07bf6637
Add fix for slow scrolling when holding pg-up/pg-dn
...
Fixes #1022
2017-04-24 12:01:24 +01:00
Alistair McKinlay
326f1ac476
Create options module
2017-04-24 09:06:01 +01:00
Pavel Djundik
c583d6edf9
Correctly update user list and search filtering on user updates
2017-04-23 18:18:56 -04:00
Pavel Djundik
b1e9a7ffda
Use separate container for search results
2017-04-23 18:18:56 -04:00
Jérémie Astori
cfa9da17a7
Rely on fuzzy's case insensitivity, do not trim mode
2017-04-23 18:18:56 -04:00
Jérémie Astori
6a26014b81
Implement fuzzy-matching for the user list
2017-04-23 18:18:56 -04:00
Pavel Djundik
98e3bd0ca2
Merge pull request #1054 from thelounge/astorije/friendly-date-marker
...
Use moment on the client to display friendly dates
2017-04-23 10:24:21 +03:00
Alistair McKinlay
2e286849fc
Move commands into constants module
2017-04-22 20:16:59 +01:00
Jérémie Astori
52814113a9
Merge pull request #1068 from thelounge/patch-show-more
...
Enable show more button correctly
2017-04-22 12:50:01 -04:00
Pavel Djundik
d1ecdb6b52
Fix displayNetwork to work correctly
2017-04-22 19:05:58 +03:00
Pavel Djundik
7522847ecc
Enable show more button correctly
2017-04-22 19:04:46 +03:00
Alistair McKinlay
1e504f4383
Add support for banlist messages
2017-04-22 13:51:28 +01:00
Pavel Djundik
761dfbb33c
Merge pull request #1057 from thelounge/1055-handlebars-index
...
Change index.html to be rendered using handlebars
2017-04-22 11:26:13 +03:00
Jérémie Astori
5fabf2f61a
Make sure friendly date markers are reset at midnight
2017-04-22 00:39:00 -04:00
Jérémie Astori
648cfd12db
Use moment on the client to display friendly dates
...
Also, unread and date markers are now half-transparent based on their colors and not parent opacity. This is necessary to display a non-translucide tooltip.
2017-04-22 00:38:19 -04:00
Jérémie Astori
bc5b03d2fc
Merge pull request #1060 from thelounge/yamanickill/modularise-socket
...
Create socket module
2017-04-22 00:36:06 -04:00
Pavel Djundik
999e419636
Remove cycle nicks button
...
Reverts #708 .
Fixes #869 .
Fixes #1023 .
2017-04-21 21:00:57 +03:00
Jérémie Astori
fa1aecdd9e
Remove URI.js monkey-patch as fix landed in v1.18.5
...
See https://github.com/medialize/URI.js/issues/325
2017-04-21 20:31:27 +03:00
Jérémie Astori
03e3444a35
Explain the modules of the message parser and add tests
...
- Add comments and descriptions to:
- `findChannels.js`
- `parseStyle`
- `findLinks`
- `fill`
- `anyIntersection`
- `merge`
- `parse`
- Minor optimizations to `parseStyle`
- Add tests for `fill`
2017-04-21 20:31:27 +03:00
Jérémie Astori
90f4a94bb2
Use template literals in parse
...
Also make it output double quotes for consistency with web stuff.
2017-04-21 20:31:27 +03:00
Jérémie Astori
5b4c00d8ca
Extract findLinks into its own file and add tests
...
Tests were taken from 5a249c30b1/test/findLinks.js
.
The underlying code is different but the tests are the same.
2017-04-21 20:31:27 +03:00
Bonuspunkt
0b85ded53f
Add bonuspunkt's parser
...
Fixes #15 .
Fixes #199 .
Fixes #583 .
Fixes #654 .
Fixes #928 .
Fixes #1001 .
2017-04-21 20:29:04 +03:00
Alistair McKinlay
05d363d9a5
Create socket module
2017-04-21 09:54:46 +01:00
Alistair McKinlay
adfd99c92c
Add fix for undefined name being slugified
2017-04-21 09:32:57 +01:00
Alistair McKinlay
b4310dbc03
Review changes
...
(Should be squashed before merge)
2017-04-21 09:26:02 +01:00
Alistair McKinlay
cc85b2143c
Change index.html to be rendered using handlebars
2017-04-21 09:16:24 +01:00
Pavel Djundik
8658f15751
Merge pull request #1051 from thelounge/astorije/irc-colors-https
...
Use HTTPS version to the IRC color guide
2017-04-20 16:09:50 +03:00
Al McKinlay
9072fda146
Merge pull request #1052 from KlipperKyle/KlipperKyle/motd
...
Issue 1019: Show MOTD by default
2017-04-20 09:07:27 +01:00
Jérémie Astori
5bab511c42
Use HTTPS version to the IRC color guide
2017-04-20 01:50:03 -04:00
Jérémie Astori
4de632ba3c
Merge pull request #1018 from swordbeta/sort_channel_list
...
Improve channels list.
2017-04-20 01:40:14 -04:00
Michael van Tricht
764ac831d4
Improve channels list.
...
- Set fixed width to channel and users column.
- Sort by number of users in channel.
- Executing /list multiple times wont show multiple tables.
- Channel list is not stickied to the bottom.
- Limit channels to 500. Scrolling through 1k is very slow on my system.
2017-04-19 12:02:15 +02:00
Kyle Terrien
a900abc2a4
Issue 1019: Show MOTD by default
2017-04-18 19:48:14 -07:00
Alistair McKinlay
4938878d10
Disable show more button when loading messages
2017-04-17 10:35:27 +01:00
Daniel Oaks
5c336d3789
Add slug with command to unhandled messages
2017-04-16 12:31:32 +03:00
William Boman
cc0962ba12
client: implement states using the History Web API
2017-04-15 22:34:14 +02:00
Pavel Djundik
d093a7f4c2
Reset notification markers on document focus
...
Fixes #837
2017-04-15 18:43:34 +03:00
Jérémie Astori
8627bbb713
Merge pull request #1032 from thelounge/userlist-sticky
...
Stick to bottom when opening user list
2017-04-15 01:51:44 -04:00
Jérémie Astori
ecb60e3c78
Merge pull request #1033 from thelounge/preload-scripts
...
Preload scripts as soon as possible
2017-04-15 01:35:38 -04:00
Pavel Djundik
1e2e8a82db
Add rel noopener to URLs in index.html
2017-04-14 21:36:41 +03:00
Pavel Djundik
8020c3c817
Preload scripts as soon as possible
2017-04-14 21:29:40 +03:00
Pavel Djundik
507bf05d24
Remove referrer meta tag, we send Referrer-Policy header
2017-04-14 21:29:40 +03:00
Pavel Djundik
fce3d11e74
Stick to bottom when opening user list
...
Fixes #1031
2017-04-14 21:29:04 +03:00
Jérémie Astori
b7d353b620
Remove invalid CSS perspective properties
...
These are not valid without units per the CSS validator, which is confirmed in the Chrome dev tools. I could not trigger any consequences by removing these.
2017-04-13 02:30:36 -04:00
Jérémie Astori
5b721c1b99
Update Primer tooltips to latest v0.5.3
...
This:
- Makes tooltips appear after timer instead of instantly, necessary for timestamp tooltips (see https://github.com/thelounge/lounge/pull/824#pullrequestreview-13676231 )
- Uses Primer default animation (not sure if .2s transition was ours or theirs but here it is)
- Goes closer to default tooltips which will help to bump future versions and/or to streamline this in build process
2017-04-13 01:55:27 -04:00
Pavel Djundik
5d36b29aa8
Only disable touch tooltips on certain buttons
2017-04-13 01:55:27 -04:00
Pavel Djundik
c0a7ae9d92
Use css tooltips on time elements
2017-04-13 01:55:27 -04:00
Michael van Tricht
bcbd29cd22
Unread marker takes hidden messages into account.
2017-04-08 15:56:09 +02:00
Michael van Tricht
8744d754ff
Fix Zenburn and Morning channel list font color.
2017-04-06 16:45:01 +02:00
Jérémie Astori
b8c49463a9
Merge pull request #524 from thelounge/PR/inline-preview
...
Improve inline previews for links and images
2017-04-06 03:00:54 -04:00
Pavel Djundik
bb24bc645c
Merge pull request #1013 from awalgarg/patch-1
...
fix: count only message items for show-more
2017-04-06 06:43:29 +03:00
Awal Garg
c066f25b17
fix: count only message items for show-more
...
the `messages` div contains a `date-marker` div and an `unread-marker` div. this causes the `count` variable to be 2 more than the expected value, which makes the show-more button skip two messages when loading history. this change filters the counted elements to fix this issue.
2017-04-06 00:45:28 +05:30
Jérémie Astori
dce42df050
Fix link preview title going underneath the user list
...
Also fix the preview description not respecting the ellipsis, and update the image size and margin to nicely align with text.
2017-04-04 02:31:44 -04:00
Jérémie Astori
d842517c4e
Fix image preview talking full width
...
Bootstrap was taking over these declarations because they use `!important`.
2017-04-04 02:09:53 -04:00
Maxime Poulin
6a273d825a
Improve inline previews for links and images
2017-04-04 01:40:51 -04:00
Jérémie Astori
09eaf80f8c
Fix page scroll glitch
2017-04-02 21:03:01 -04:00
Pavel Djundik
2d9aa35c06
Implement pgup/pgdown keys
2017-04-01 22:35:07 +03:00
Pavel Djundik
110c0f0c87
Correctly append date marker when receiving a message
2017-04-01 11:06:01 +03:00
Jérémie Astori
953325aca3
Merge pull request #523 from thelounge/PR/fix-msg-width
...
Remove table layout for chat messages (and fix layout issues yet again)
2017-04-01 02:40:03 -04:00
Pavel Djundik
212703d162
Merge pull request #810 from thelounge/xpaw/color-hotkeys
...
Implement color hotkeys
2017-03-31 19:17:16 +03:00
Jérémie Astori
4363ef4abe
Merge pull request #973 from thelounge/xpaw/use-require
...
Use require() instead of import in client code
2017-03-31 01:41:29 -04:00
Jérémie Astori
e62da5b1ea
Remove extra newline to please ESLint
...
See https://travis-ci.org/thelounge/lounge/jobs/217041734#L1200
2017-03-31 01:26:37 -04:00
Jérémie Astori
abd155e881
Merge pull request #873 from PolarizedIons/fix-username-override
...
Fix filling in the nickname, overriding the username (in add network tab)
2017-03-31 01:20:12 -04:00
Jérémie Astori
fb672ab57f
Improvements to the new flex layout for messages
2017-03-30 19:50:48 -04:00
Maxime Poulin
35b6b47de3
Remove table layout for chat messages (and fix layout issues yet again)
2017-03-30 19:50:48 -04:00
Pavel Djundik
2b85315b39
Merge pull request #992 from swordbeta/patch-1
...
Help page: commands can be autocompleted.
2017-03-30 11:32:25 +03:00
Jérémie Astori
da0a52e3cb
Fix wrong font size in help center labels
...
This only concerns plain texts, not `<code>` or `<kbd>`.
2017-03-30 02:19:26 -04:00
Michael van Tricht
3f031ba6ff
Help page: commands can be autocompleted.
2017-03-29 10:11:12 +02:00
Jérémie Astori
7487c1c1ac
Merge pull request #978 from williamboman/feat/data-from
...
views/msg: set data-from attribute to allow styling messages from specific user(s)
2017-03-27 19:40:33 -04:00
William Boman
c6ed95e555
views/msg: set data-from attribute to allow styling messages from specific user(s)
2017-03-20 23:08:28 +01:00
Pavel Djundik
3b2e3fc08c
Enforce more space and new line rules
2017-03-18 21:40:39 +02:00
Stephan
3318acd16b
fix filling in nickname overriding username (in add network tab)
2017-03-18 18:11:43 +02:00
Pavel Djundik
dcefcd19cb
Use require() instead of import in client code
...
Closes #895
2017-03-18 11:21:18 +02:00
Jérémie Astori
8ef99d7ad8
Add shortcuts for new formatting in help window
2017-03-13 01:58:39 -04:00
Pavel Djundik
f2e43b84be
Implement color hotkeys
2017-03-12 11:50:18 +02:00
Jérémie Astori
c1fc185643
Move "About The Lounge" section from Settings to Help window
2017-03-10 20:23:45 -05:00
Jérémie Astori
0f9b12f2b8
Add a help window within the app
...
This brings commands and keyboard shortcuts from the website, after a massive overhaul. It comes as part of the big documentation rewrite that I am currently doing.
`kbd` design inspiration from GitHub, `code` design inspiration from Bootstrap.
This help page is accessible from an icon in the sidebar, near the Settings icon.
2017-03-10 20:23:45 -05:00
Al McKinlay
166e43ec39
Fix body height
...
#821 fixed #793 , but it appears since then, Chrome has changed the behaviour back to what it was befor ethe fix, so 2.2.0 on Chrome 56+ is even more broken.
2017-02-06 12:41:17 +00:00
Jérémie Astori
dcc98c3efb
Un-ellipsis placeholder and use ES6 template
2017-01-24 23:55:57 -05:00
Alistair McKinlay
0d8b58425e
Merge pull request #855 from MaxLeiter/MaxLeiter/search
...
Fix searching for user in user list, closes #851
2017-01-04 11:15:14 +00:00
Jérémie Astori
a5cb6abf72
Merge pull request #829 from thelounge/xpaw/incrase-contrast
...
Increase IRC colors contrast
2017-01-04 01:49:27 -05:00
Jérémie Astori
280d145502
Merge pull request #836 from thelounge/xpaw/slideout-width
...
Calculate menu width on touch start
2017-01-04 01:48:38 -05:00
Max Leiter
ba00738f1f
Fix searching for user in user list, closes #851
2016-12-29 18:03:05 -10:00
Pavel Djundik
c75771f13d
Fix stuff that breaks in jQuery 3
2016-12-29 23:43:10 +02:00
Pavel Djundik
8fd1d161ea
Remove vendor client code
2016-12-27 19:15:31 +02:00
Pavel Djundik
fb87bd3a58
Webpack
2016-12-27 19:15:30 +02:00
Jérémie Astori
7ae11babcb
Add human-readable idle time in whois info
2016-12-22 00:21:16 -05:00
Jérémie Astori
0489d0f2ae
Merge pull request #832 from thelounge/astorije/context-aware-placeholder
...
Remind channel name or nick in input placeholder
2016-12-21 18:16:06 -05:00
Jérémie Astori
783c8d41a3
Merge pull request #822 from thelounge/xpaw/hexip-username
...
Hide username field when hexip is enabled
2016-12-21 18:12:53 -05:00
Pavel Djundik
3017e67f3a
Calculate menu width on touch start
...
Fixes #831
2016-12-21 19:58:36 +02:00
Jérémie Astori
4501c9f4f1
Fix missing placeholder prefixes and make styles consistent for Morning and Zenburn
2016-12-20 20:42:08 -05:00
Jérémie Astori
b07ec94bc3
Remind channel name or nick in input placeholder
2016-12-20 20:13:05 -05:00
Pavel Djundik
d0dee0c47a
Remove margin on date marker on smallest screen size
2016-12-21 01:32:23 +02:00
Pavel Djundik
46689b96b3
Increase IRC colors contrast
2016-12-20 21:19:40 +02:00
Pavel Djundik
c37d2b435e
Hide username field when hexip is enabled
2016-12-20 13:14:27 +02:00
Alistair McKinlay
6887b66f67
Merge pull request #820 from thelounge/xpaw/fix-unread-disappear
...
Fix unread marker being removed from DOM
2016-12-19 19:11:26 +00:00
Pavel Djundik
bf71c4b9bd
Make html container take the entire screen estate
2016-12-19 15:12:29 +02:00
Pavel Djundik
7709847267
Fix unread marker being removed from DOM
2016-12-19 14:46:18 +02:00
Pavel Djundik
d24eb44991
Merge pull request #818 from thelounge/xpaw/no-notif-controls
...
Strip control characters from notifications
2016-12-19 12:52:12 +02:00
Pavel Djundik
8fff5ee829
Strip control characters from notifications
2016-12-18 18:19:03 +02:00
Pavel Djundik
3d6e4a38c6
Prevent focus on mobile
2016-12-17 21:17:23 +02:00
Pavel Djundik
7933b2453d
Only append "says" to notifications if its a message
2016-12-17 13:05:12 +02:00
Jérémie Astori
3d0e1fd9f0
Merge pull request #745 from thelounge/xpaw/away-command
...
Implement /away and /back commands
2016-12-16 23:16:02 -05:00
Jérémie Astori
86358c619b
Lock input message when app is disconnected
2016-12-14 01:35:32 -05:00
Jérémie Astori
c20813609b
Style connection error message consistently with the rest of the app, above the message input
2016-12-13 01:58:05 -05:00
Pavel Djundik
a8926e2ced
Stop refreshing the page on every socket.io error
2016-12-13 01:55:11 -05:00
stepie22
a5ad573b2d
Sync reordering of channels/networks to other clients
2016-12-09 14:56:19 +02:00
stepie22
10fefab279
Switch to jQuery's hasClass instaid of checking direct class equality
2016-12-01 13:25:49 +02:00
stepie22
c160852042
slight nit-pick
2016-11-28 19:55:16 +02:00
stepie22
06ecf625c6
Fix date-marker not being removed when at the top of the page sometimes
2016-11-25 18:05:04 +02:00
stepie22
93f0f6942e
Add a date seperator
2016-11-23 16:35:42 +02:00
Alistair McKinlay
c954d9c9a3
Merge pull request #739 from williamboman/fix/dont-dismiss-notifications
...
client: don't dismiss native web notifications programmatically after 5s
2016-11-22 15:44:03 +00:00
Jérémie Astori
adf93f9fad
Merge pull request #746 from thelounge/xpaw/update-deps
...
Update depdencides to latest stable versions
2016-11-20 14:46:16 -05:00
Pavel Djundik
f8e616ce25
Remove errorneous classname from password field
2016-11-19 12:15:57 +02:00
Pavel Djundik
6023035838
Update depdencides to latest stable versions
2016-11-19 10:49:16 +02:00
Pavel Djundik
f24f707119
Implement /away and /back commands
2016-11-19 10:27:39 +02:00
William Boman
6e1cdb370b
client: don't dismiss native web notifications programmatically after 5s
2016-11-16 17:43:30 +01:00
Jérémie Astori
dff1a48e05
Prevent sound notification to throw an exception on mobile
2016-11-08 01:02:56 -05:00
Jérémie Astori
e21ec8b447
Silence failures to trigger notifications when not available
...
Recent Chrome versions are dropping out `new Notification` in favor of `ServiceWorkerRegistration.showNotification`.
This makes sure nothing bad happens until we have proper support for Service Workers.
See:
- https://stackoverflow.com/questions/29774836/failed-to-construct-notification-illegal-constructor
- https://stackoverflow.com/questions/31512504/html5-notification-not-working-in-mobile-chrome
2016-11-08 01:02:25 -05:00
Pavel Djundik
837f78f1ae
Merge pull request #483 from williamboman/fix/focus-input-on-submit
...
client: re-focus input on chat form submit
2016-10-28 19:14:26 +03:00
Jérémie Astori
e9b118ea71
Merge pull request #708 from thelounge/astorije/nick-cycle
...
Add a UI element to cycle through nick completions on mobile
2016-10-25 18:45:07 -04:00
Maxime Poulin
0bef9e9cde
Merge pull request #720 from stepie22/unread-counters-fix
...
Fix unread counters resetting when they shouldn't
2016-10-25 12:41:10 -04:00