Commit Graph

1567 Commits

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