Commit Graph

3358 Commits

Author SHA1 Message Date
Jérémie Astori
068b842561
Merge pull request #1914 from thelounge/astorije/changelog-prerelease-wording
Separate and improve wording for `pre` and `rc` pre-release versions
2018-01-01 20:37:29 -05:00
Pavel Djundik
f38fa9b98e Set decoding=async on image previews 2017-12-29 21:57:52 +02:00
Jérémie Astori
50d8bf5191
Merge pull request #1923 from thelounge/astorije/bump-primer-tooltips
Update primer-tooltips to the latest version
2017-12-29 14:13:05 -05:00
Pavel Djundik
e98291dd3f Preload preview images before appending them to DOM 2017-12-29 12:30:15 +02:00
Jérémie Astori
9ca08ae434
Update primer-tooltips to the latest version
Only changes between v1.5.0 and v1.5.1 (according to https://github.com/primer/primer/commits/master/modules/primer-tooltips) are:

- https://github.com/primer/primer/pull/394
- https://github.com/primer/primer/pull/409

So we are not affected.
2017-12-29 02:20:21 -05:00
Jérémie Astori
49135f4d77
Merge pull request #1922 from thelounge/greenkeeper/mocha-4.1.0
Update mocha to the latest version 🚀
2017-12-29 02:15:18 -05:00
greenkeeper[bot]
168bd1b3ab chore(package): update mocha to version 4.1.0 2017-12-29 05:18:38 +00:00
Pavel Djundik
dafca48061
Merge pull request #1921 from thelounge/astorije/fix-stylelint
Fix stylelint
2017-12-29 00:29:06 +02:00
Jérémie Astori
5c9e985999
Separate and improve wording for pre and rc pre-release versions 2017-12-28 17:26:32 -05:00
Jérémie Astori
0a8cccf5d7
Remove CLI option of Stylelint that currently makes it a noop 2017-12-28 17:07:37 -05:00
Jérémie Astori
04fee16fec
Fix CSS currently failing Stylelint checker 2017-12-28 17:07:08 -05:00
Jérémie Astori
dd40011967
Merge pull request #1913 from thelounge/astorije/changelog-script
Allow keywords as changelog script version argument, e.g. `node scripts/changelog pre`
2017-12-28 15:26:38 -05:00
Jérémie Astori
7346866f03
Merge pull request #1905 from thelounge/xpaw/mute-disabled-inputs
Mute disabled inputs
2017-12-28 15:21:05 -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
Jérémie Astori
a2b03a5de6
Merge pull request #1908 from thelounge/xpaw/user-css-label
Add screen reader label for custom css textarea
2017-12-28 00:12:20 -05:00
Jérémie Astori
470f2dd814
2.7.0-pre.4 2017-12-27 19:39:36 -05:00
Jérémie Astori
b47538860e
Add changelog entry for v2.7.0-pre.4 2017-12-27 19:39:07 -05:00
Jérémie Astori
dbd07d55e3
Allow keywords as changelog script version argument, e.g. node scripts/changelog pre 2017-12-27 19:18:07 -05:00
Pavel Djundik
3cd99816b8
Add screen reader label for custom css textarea 2017-12-27 22:48:03 +02:00
Pavel Djundik
bd9e219d92 Set aria-label on main input 2017-12-27 22:34:19 +02:00
Jérémie Astori
835236f8ac
Merge pull request #1901 from thelounge/xpaw/fix-nicks-match
Do not match nicknames incorrectly as part of a bigger word
2017-12-27 14:32:59 -05:00
Jérémie Astori
b02b47c822
Merge pull request #1904 from thelounge/astorije/csp-video-controls
Make sure data URIs are allowed by CSP not to block video controls
2017-12-27 14:31:44 -05:00
Jérémie Astori
dab4fc44ea
Make sure data URIs are allowed by CSP not to block video controls 2017-12-27 13:56:38 -05: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
Jérémie Astori
c17d7bddae
Merge pull request #1899 from thelounge/astorije/improve-init
Improve a bit window loading on init
2017-12-27 13:31:25 -05:00
Pavel Djundik
9f99b165c9
Merge pull request #1903 from thelounge/greenkeeper/graphql-request-1.4.1
Update graphql-request to the latest version 🚀
2017-12-27 19:20:46 +02:00
greenkeeper[bot]
84587ea0a1 chore(package): update graphql-request to version 1.4.1 2017-12-27 09:31:50 +00: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
d2106f1782
Merge pull request #1896 from thelounge/xpaw/fix-push-error
Fix error not showing up in failed push subscription
2017-12-24 22:53:04 +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
ff6d6e3e82
Merge pull request #1887 from thelounge/greenkeeper/eslint-4.14.0
Update eslint to the latest version 🚀
2017-12-24 14:53:01 -05: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
7d49730bad
Merge pull request #1892 from thelounge/astorije/fix-slideout
Fix slideout not closing on mobile when hitting a footer icon
2017-12-24 02:59:36 -05: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
greenkeeper[bot]
7dec39a499 chore(package): update eslint to version 4.14.0 2017-12-23 23:31:34 +00: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
57c24704af
Cache changelog information on the server for 15 minutes 2017-12-23 13:37:33 -05:00