Commit Graph

6554 Commits

Author SHA1 Message Date
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
c2f2c69e91 Merge pull request #1312 from thelounge/astorije/bump-express-socket.io
Bump express and socket.io to their latest patch versions
2017-07-08 03:53:31 -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
1af06eab4c Merge pull request #1310 from thelounge/astorije/reword-previews-settings
Reword link preview settings to better match reality
2017-07-07 19:35:44 -04:00
Jérémie Astori
82cba0b06f
Bump express and socket.io to their latest patch versions
Greenkeeper missed express because of their odd RC releases, and we are still stuck trying to bump socket.io to their v2
2017-07-07 19:24:06 -04:00
Pavel Djundik
336cc6f44b Merge pull request #1308 from thelounge/greenkeeper/webpack-3.1.0
Update webpack to the latest version 🚀
2017-07-07 14:14:26 +03: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
Jérémie Astori
1b4f4ee11e Merge pull request #1305 from thelounge/xpaw/fix-lock-and-defaults
Fix losing network settings
2017-07-06 18:46:57 -04:00
greenkeeper[bot]
69d931750b chore(package): update webpack to version 3.1.0 2017-07-06 22:11:32 +00:00
Pavel Djundik
f06de70c40 Remove hostname prettifier 2017-07-06 15:02:32 +03:00
Pavel Djundik
f3a4ed8e52 Fix losing network name when displayNetwork is false 2017-07-06 15:00:53 +03:00
Pavel Djundik
23b2f7197c Deep merge default config 2017-07-06 15:00:43 +03:00
Pavel Djundik
fc231bca76 Merge pull request #1298 from thelounge/xpaw/fix-toggle-scroll
Fix jumps when toggling link preview
2017-07-04 21:00:56 +03:00
Jérémie Astori
5ffcbed632 Merge pull request #1292 from thelounge/greenkeeper/commander-2.11.0
Update commander to the latest version 🚀
2017-07-04 13:56:35 -04:00
Pavel Djundik
818a21b52e Fix jumps when toggling link preview 2017-07-04 20:51:22 +03:00
Jérémie Astori
c7ed85a9a4 Merge pull request #1297 from thelounge/astorije/color-previews-zenburn
Fix background color contrast on Zenburn previews
2017-07-04 13:49:29 -04:00
Jérémie Astori
43522ee20a Merge pull request #1295 from thelounge/greenkeeper/babel-preset-env-1.6.0
Update babel-preset-env to the latest version 🚀
2017-07-04 13:45:56 -04: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
Pavel Djundik
81e9a205c6 Merge pull request #1291 from thelounge/astorije/title-previews
Add title attributes to previews
2017-07-04 20:19:35 +03: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
Jérémie Astori
72ca99009b Merge pull request #1293 from thelounge/xpaw/fix-preview-truncate
Do not truncate link previews if viewport can fit more text
2017-07-04 12:54:54 -04:00
greenkeeper[bot]
398dbcad53 chore(package): update babel-preset-env to version 1.6.0 2017-07-04 15:09:08 +00:00
Pavel Djundik
2e82400d80 Merge pull request #1279 from thelounge/greenkeeper/jquery-textcomplete-1.8.1
Update jquery-textcomplete to the latest version 🚀
2017-07-04 13:02:55 +03: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
Jérémie Astori
17978af710 Merge pull request #1280 from thelounge/xpaw/simple-vendor
Do not hardcode vendor bundles in webpack
2017-07-04 01:43:40 -04:00
Awal Garg
8c8d683348 Allow opting out of autocomplete 2017-07-03 22:37:38 +05:30
greenkeeper[bot]
5831745958 fix(package): update commander to version 2.11.0 2017-07-03 10:12:45 +00:00
Jérémie Astori
622c91b25a Merge pull request #1276 from thelounge/xpaw/refactor-toggle
Refactor link previews
2017-07-03 02:33:49 -04:00
Pavel Djundik
14b2ad7938 Refactor link previews 2017-07-03 00:41:18 +03:00
Jérémie Astori
c7def1c1b6 Merge pull request #1284 from MaxLeiter/MaxLeiter/npmrc
Add .npmrc file; set save-exact to true so packages are installed pinned
2017-06-29 19:38:33 -04:00
Jérémie Astori
be47af7ea8 Merge pull request #1287 from thelounge/xpaw/npm-ignore-dotfiles
Ignore all dotfiles in npmignore
2017-06-29 19:06:06 -04:00
Jérémie Astori
e7d480c645 Merge pull request #1282 from thelounge/greenkeeper/babel-loader-7.1.1
Update babel-loader to the latest version 🚀
2017-06-29 19:02:19 -04:00
Pavel Djundik
58b2d8c788 Ignore all dotfiles in npmignore 2017-06-29 12:49:07 +03:00
Max Leiter
c70f1d0d95 Add .npmrc file; set save-exact to true so packages are installed pinned by default 2017-06-28 21:06:23 -07:00
greenkeeper[bot]
97e35e9dd4 chore(package): update babel-loader to version 7.1.1 2017-06-28 00:38:51 +00:00
Pavel Djundik
a3744cf81b Do not hardcoded vendor bundles in webpack 2017-06-27 12:55:12 +03:00
greenkeeper[bot]
da8cec4067 chore(package): update jquery-textcomplete to version 1.8.1 2017-06-27 09:15:41 +00:00
Jérémie Astori
20b24a39df Merge pull request #1278 from thelounge/greenkeeper/stylelint-7.12.0
Update stylelint to the latest version 🚀
2017-06-26 23:56:02 -04:00
Jérémie Astori
80df7f3836 Merge pull request #1277 from thelounge/greenkeeper/nyc-11.0.3
Update nyc to the latest version 🚀
2017-06-26 23:55:31 -04:00
greenkeeper[bot]
19b4d7bea2 chore(package): update stylelint to version 7.12.0 2017-06-26 21:23:50 +00:00
greenkeeper[bot]
6f9d7b0771 chore(package): update nyc to version 11.0.3 2017-06-26 14:37:34 +00:00
Jérémie Astori
ad10777684 Merge pull request #1274 from thelounge/xpaw/increase-prefetch-limit
Increase max downloaded bytes for link preview
2017-06-26 02:44:46 -04:00
Jérémie Astori
f516d21f7b Merge pull request #1273 from thelounge/xpaw/no-preview
Do not display preview if there is nothing to preview
2017-06-26 02:36:46 -04:00
Pavel Djundik
e967759802 Increase max downloaded bytes for link preview
twitter.com sends opengraph meta tags within ~20kb of data for individual tweets
2017-06-26 09:34:56 +03:00
Pavel Djundik
77667e7a3f Do not display preview if there is nothing to preview 2017-06-26 09:27:51 +03:00
Pavel Djundik
cfd71cab02 Merge pull request #1272 from thelounge/greenkeeper/eslint-4.1.1
Update eslint to the latest version 🚀
2017-06-26 09:11:04 +03:00