Commit graph

841 commits

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