Commit graph

853 commits

Author SHA1 Message Date
Jérémie Astori 2dbb150463
Merge pull request #2109 from thelounge/xpaw/fix-stuck-rendering
Fix "rendering..." getting stuck on first connection
2018-02-23 20:27:56 -05:00
Jérémie Astori f18a7b2fe6
Merge pull request #2107 from thelounge/xpaw/correct-scroller
Always correctly trigger sticky scroll on .chat container
2018-02-23 19:38:57 -05:00
Pavel Djundik bd2907c13f Use document.body when wrapping it in a jquery object 2018-02-23 21:22:05 +02:00
Pavel Djundik 7ce1f1cf9e Fix "rendering..." getting stuck on first connection 2018-02-23 21:18:42 +02:00
Pavel Djundik 63828b95e0 Always correctly trigger sticky scroll on .chat container
`.chat` has the overflow on it, and not `.messages` so stuff like scrollTop only works on `.chat`
2018-02-23 18:21:42 +02:00
Pavel Djundik 59ec07be87
Update all links to thelounge repository 2018-02-21 22:47:52 -05:00
Al McKinlay c09f06fccc Change isOpInChannel to allow multiple different user roles 2018-02-21 15:05:02 +00:00
Pavel Djundik c733e72e7a Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
Pavel Djundik 7724762c14 Fix active class not being removed when switching channels 2018-02-19 21:05:05 +02:00
Pavel Djundik c97352905d
Merge pull request #1962 from thelounge/xpaw/no-var
Enable no-var rule
2018-02-19 20:12:31 +02:00
Pavel Djundik 8886459be9
Merge pull request #2049 from thelounge/xpaw/ui-network-status
Sync network status and security to client UI
2018-02-19 19:57:36 +02:00
Pavel Djundik a3e448acf5 Enable no-var rule
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori ab982ecc3c Remove deprecated support for CSS filenames in theme configuration 2018-02-19 19:17:45 +02:00
Pavel Djundik 742929280d
Merge pull request #1919 from thelounge/yamanickill/image-size-error
Show error if image is greater than max prefetch size
2018-02-19 18:49:18 +02:00
Pavel Djundik b82ceb162b
Merge pull request #2059 from thelounge/xpaw/motd
Render MOTD with a single message
2018-02-19 18:42:16 +02:00
Pavel Djundik 0044be266e
Merge pull request #1727 from thelounge/astorije/node-6
Switch to Node v6 as the minimal supported version
2018-02-19 18:41:23 +02:00
Pavel Djundik 558a6fba0a
Merge pull request #1915 from thelounge/xpaw/aria-tablist
Turn channel list into an accessible tablist
2018-02-19 18:33:28 +02:00
Jérémie Astori 416f45d1e3 Use some ES6/Node v4-only syntax when possible 2018-02-19 18:30:00 +02:00
Pavel Djundik 13a53706f0
Merge pull request #1760 from thelounge/astorije/rm-object.assign-polyfill
Get rid of `Object.assign` polyfill
2018-02-19 18:29:45 +02:00
Pavel Djundik b57830b859 Sync network status and security to client UI
Co-Authored-By: Jérémie Astori <astorije@users.noreply.github.com>
2018-02-19 13:12:01 +02:00
Pavel Djundik e448dc711c Turn channel list into an accessible tablist 2018-02-18 09:58:44 +02:00
Pavel Djundik d1e5a8f492 Render MOTD with a single message 2018-02-14 11:00:46 +02:00
Pavel Djundik 116a73c8d0 Remove actionTypes and check templates directly 2018-02-14 11:00:45 +02:00
Pavel Djundik 12bbaef4ab Unbind image events after the image is loaded 2018-02-08 14:54:57 +02:00
Pavel Djundik 85cb039426 Still render link previews if image fails to load 2018-02-07 17:40:15 +02:00
Pavel Djundik a9198b1cf6 Fix duplicate chat containers and unread markers when reconnecting
Fixes #1721
2018-02-06 11:10:11 +02:00
Pavel Djundik 60777b9b1f Fix default theme not being correct 2018-02-04 19:54:07 +02:00
Pavel Djundik 51d5a4eff4 Fix #2028 - Messages are not condensed correctly 2018-02-03 10:43:39 +02:00
Jérémie Astori 91e3ca88bb
UI for "Image too large" errors 2018-02-01 21:14:37 -05:00
Pavel Djundik 6d6b5cb2a9 Remove deprecated jQuery calls
Fixes #2011
2018-02-01 12:15:51 +02:00
Pavel Djundik 1904e9b0ab
Merge pull request #2013 from thelounge/xpaw/fix-1959
Fix #1959: Do not block /join command from being sent
2018-02-01 10:08:22 +02:00
Pavel Djundik b4951b1f86 Fix auto-open media option not working
Bug introduced in ffa9685b41
2018-02-01 09:57:15 +02:00
Pavel Djundik b765abcb65
Fix textcomplete reference in autocompletion.disable 2018-01-31 21:06:29 +02:00
Pavel Djundik ffa9685b41
Merge pull request #1925 from thelounge/xpaw/img-preview-preload
Preload preview images before appending them to DOM
2018-01-31 10:07:20 +02:00
Pavel Djundik 869e978a99
Fix #1959: Do not block /join command from being sent 2018-01-30 11:14:17 +02:00
Jérémie Astori ff9dd3833e
Merge pull request #1993 from milindl/feat/chan-auto-current
Show channels for only active server in autocomplete
2018-01-30 00:12:45 -05:00
Jérémie Astori 2640c2a15e
Merge pull request #1955 from thelounge/xpaw/fix-touch-select
Prevent user contextmenu from opening while selecting text
2018-01-29 01:07:36 -05:00
Alistair McKinlay 0b83ba6a40 Stop expanding condensed messages on /expand 2018-01-26 08:52:51 +00:00
milindl d6d54c2c56 Show channels for only active server in autocomplete
Fix #1381.
2018-01-20 18:24:21 +05:30
Pavel Djundik 31c33e43d5 Provide correct timestamp to browser notifications 2018-01-09 18:47:13 +02:00
Pavel Djundik e77de3315a Prevent user contextmenu from opening while selecting text 2018-01-09 18:16:20 +02:00
Pavel Djundik e98291dd3f Preload preview images before appending them to DOM 2017-12-29 12:30:15 +02:00
Pavel Djundik bd9e219d92 Set aria-label on main input 2017-12-27 22:34:19 +02:00
Pavel Djundik 349136f172 Do not match nicknames incorrectly as part of a bigger word
Fixes #1776
Fixes #1885
2017-12-27 20:44:59 +02:00
Pavel Djundik d16b18de78 Open context menu inside of chats on sidebar item 2017-12-26 20:40:02 +02:00
Jérémie Astori a392b9f35f
Improve a bit window loading on init 2017-12-25 18:19:12 -05:00
Jérémie Astori 1fc2051c1d
Merge pull request #1897 from thelounge/astorije/improve-version-checker
Improve the version checking and changelog features
2017-12-25 17:57:27 -05:00
Jérémie Astori f725e944dd
Add (semi-working) image viewer support for images shown in changelogs
Semi-working because this does not support Preview/Next. The existing image viewer is very custom to in-channel message previews and expects a certain markup, that needs rework tobe more generic.
2017-12-25 17:44:55 -05:00
Jérémie Astori 3eb429dde3
Make sure all links will open a new tab instead of exiting the application 2017-12-25 17:44:55 -05:00
Jérémie Astori 238e894377
Improve the version checking part of the changelog feature
- There is no client caching of the changelog/version anymore. Instead, server returns the expiration date of its cache, and that is used by the client as well.
- There is now a "Check now" button on the client that appears when data is stale. This means that info is fetched only once and never refreshed (it was refreshed every hour before) unless the user explicitly wants to check latest version, which in turn is as stale as server info is, i.e. 15 minutes max.
- Button style is shared with the "Join a channel" feature, `.btn-small` (not `.btn-sm` to be explicit that this is not a Bootstrap thing).
- Version checker content is now centralized in the `version_checker` template, instead of being partially in the checker template, partially in the Help template,  and partially in the code.
- A "Try again" button lets user attempt to fetch info instead of forcing them to reload the page.
- Use Flexbox to display a nicer version checker: icon is slightly bigger, and button is always aligned on the right.
- Changelog logic has been removed from `lounge.js` and moved into the component file.
- Changelog template is only passed what it needs instead of everything the server gives us.
- Public version now displays version checker, since server is caching things.
- Cleaner code overall.
2017-12-25 17:44:53 -05:00