Commit Graph

832 Commits

Author SHA1 Message Date
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
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
Pavel Djundik
2d9aa35c06 Implement pgup/pgdown keys 2017-04-01 22:35:07 +03:00
Pavel Djundik
110c0f0c87 Correctly append date marker when receiving a message 2017-04-01 11:06:01 +03:00
Jérémie Astori
953325aca3 Merge pull request #523 from thelounge/PR/fix-msg-width
Remove table layout for chat messages (and fix layout issues yet again)
2017-04-01 02:40:03 -04:00
Pavel Djundik
212703d162 Merge pull request #810 from thelounge/xpaw/color-hotkeys
Implement color hotkeys
2017-03-31 19:17:16 +03:00
Jérémie Astori
4363ef4abe Merge pull request #973 from thelounge/xpaw/use-require
Use require() instead of import in client code
2017-03-31 01:41:29 -04:00
Jérémie Astori
e62da5b1ea Remove extra newline to please ESLint
See https://travis-ci.org/thelounge/lounge/jobs/217041734#L1200
2017-03-31 01:26:37 -04:00
Jérémie Astori
abd155e881 Merge pull request #873 from PolarizedIons/fix-username-override
Fix filling in the nickname, overriding the username (in add network tab)
2017-03-31 01:20:12 -04:00
Jérémie Astori
fb672ab57f Improvements to the new flex layout for messages 2017-03-30 19:50:48 -04:00
Maxime Poulin
35b6b47de3 Remove table layout for chat messages (and fix layout issues yet again) 2017-03-30 19:50:48 -04:00