Commit Graph

7667 Commits

Author SHA1 Message Date
Jérémie Astori
b90c224a99
Define a raw logger to avoid using console.log, use it in extra help for environment variables, and add a test for this
This has multiple benefits:

- Respects the "Do not mock what you do not own" principle, instead we mock `log.raw` when necessary
- Lets us not re-assign `console.log`, which breaks as Mocha uses `console.log` as well
- Save and restore initial `log.raw` in test hooks (before/after), otherwise this would break Mocha/Chai
2017-12-11 23:48:51 -05:00
Jérémie Astori
6077a1ae67
Merge pull request #1828 from thelounge/greenkeeper/eslint-4.13.1
Update eslint to the latest version 🚀
2017-12-11 23:24:25 -05:00
Jérémie Astori
aa66f284e7
Merge pull request #1826 from thelounge/greenkeeper/fs-extra-5.0.0
Update fs-extra to the latest version 🚀
2017-12-11 23:23:55 -05:00
Jérémie Astori
aeb8f66f30
Merge pull request #1722 from creesch/contextMenu
Add actions to user context menu
2017-12-11 23:14:54 -05:00
Erik Vosseberg
33d865501d
Add whois and conversation as action to user contextmenu
Add Op specific actions to contextMenu

Show context menu when left clicking user

Switch to using data attributes as selectors

remove ban as possible action

Move `isOpInChannel()` to utils.js

Capitalize strings

use CSS.escape for `ownNick`

use string interpolation

properly point to findCurrentNetworkChan

Move context menu item actions to command pattern

add icons for context menu actions

Make list in context menu always list.

remove empty lines in style.css

use info circle instead of question circle

change context menu labels.

change contextMenuActions.execute to more explicit method.
2017-12-11 23:04:29 -05:00
greenkeeper[bot]
6fb09048f6 chore(package): update eslint to version 4.13.1 2017-12-11 23:51:07 +00:00
greenkeeper[bot]
e652ff6c7d fix(package): update fs-extra to version 5.0.0 2017-12-11 17:42:23 +00:00
Pavel Djundik
9b75b5727a
Merge pull request #1824 from thelounge/astorije/icons
Improve user and channel icons in channel list and context menu
2017-12-11 13:22:56 +02:00
Pavel Djundik
4be5ed693c
Merge pull request #1822 from thelounge/greenkeeper/moment-2.19.4
Update moment to the latest version 🚀
2017-12-11 11:24:59 +02:00
Jérémie Astori
ce2adb4b8d
Use hashtag icon for channel instead of the sad file icon :) 2017-12-11 01:20:28 -05:00
Jérémie Astori
9436ba9301
Make sure user icon matches in network list, window context menu, and nick context menu 2017-12-11 01:19:50 -05:00
greenkeeper[bot]
493a5407a2 fix(package): update moment to version 2.19.4 2017-12-11 01:21:14 +00:00
Jérémie Astori
c0869b05a3
Merge pull request #1807 from thelounge/astorije/users-commands
Do not load user commands or display them on `--help` if public mode or using LDAP
2017-12-10 14:24:55 -05:00
Pavel Djundik
4e6a29db35
Merge pull request #1797 from grissly-man/master
#1793 - implement reverse style
2017-12-10 16:15:40 +02:00
Pavel Djundik
40af84b653
Merge pull request #1818 from thelounge/astorije/improve-tests
Remove dead code in tests, and fix a link test
2017-12-10 11:55:59 +02:00
Pavel Djundik
ca22da28a7
Merge pull request #1821 from thelounge/astorije/empty-conf-warning
Warn if user configuration being loaded is empty
2017-12-10 11:55:14 +02:00
Jérémie Astori
206ded55ff
Warn if user configuration being loaded is empty 2017-12-10 01:03:00 -05:00
Jérémie Astori
c2243ed7b4
Remove dead code in tests, and fix a link test
I used `npm run coverage` while *not* excluding the test folder to detect dead code in our test folder, it is actually pretty useful to do so (as a one-shot, not to do that in our config).
Only remaining unreached path is L40 in `test/plugins/auth/ldap.js`, but it does seem to me that it might be useful in case of failures, so I preferred to leave it there.
2017-12-09 18:56:05 -05:00
Jérémie Astori
a8fb892873
Merge pull request #1816 from MaxLeiter/fix-network-context
Proper network icon in context menu
2017-12-09 18:17:38 -05:00
Pavel Djundik
de98c2b13a
Merge pull request #1802 from MaxLeiter/chanlist
Add 'Channel list' to network context menu
2017-12-10 01:09:35 +02:00
Max Leiter
6311176f00 Proper network icon in context menu 2017-12-09 15:03:15 -08:00
Max Leiter
fb5eb0664a Add 'Channel list' to network context menu 2017-12-09 14:34:33 -08:00
Jérémie Astori
c21aee3d4a
Do not load user commands or display them on --help if public mode or using LDAP 2017-12-09 01:51:08 -05:00
Jérémie Astori
c038935b96
Move user commands to their own subfolder 2017-12-09 01:38:52 -05:00
Jérémie Astori
844ca1fbe6
Merge pull request #1811 from thelounge/astorije/improve-helper
Clean up path helpers, expand defaults location in `thelounge --help`, add tests for `expandHome`
2017-12-08 21:53:14 -05:00
Jérémie Astori
22237658cb
Add some unit tests for Helper.expandHome 2017-12-08 19:50:32 -05:00
Jérémie Astori
f32cd57bcb
Merge pull request #1814 from thelounge/xpaw/clean-extra
Clean monospace and strikethrough formatters
2017-12-08 19:05:04 -05:00
Jérémie Astori
ebc2d7ecc5
Merge pull request #1815 from thelounge/greenkeeper/eslint-4.13.0
Update eslint to the latest version 🚀
2017-12-08 19:04:24 -05:00
greenkeeper[bot]
c562c4fd58 chore(package): update eslint to version 4.13.0 2017-12-08 22:29:41 +00:00
Pavel Djundik
b391b87e29 Clean monospace and strikethrough formatters 2017-12-08 21:09:23 +02:00
Jérémie Astori
52d5cb2311
Expand home shorthand in CLI help around THELOUNGE_HOME environment variable 2017-12-07 23:03:40 -05:00
Jérémie Astori
0482747781
Only use helpers and not shared variables around path helpers
This refactor has a few benefits, for example there cannot be a rogue update of `Helper.CONFIG_PATH` or something.
2017-12-07 23:02:32 -05:00
Jérémie Astori
7bbd3d61d5
Merge pull request #1810 from thelounge/xpaw/tweak-csp
Harden content security policy even further
2017-12-07 19:35:01 -05:00
Pavel Djundik
fb0f68f8a5 Harden content security policy even further 2017-12-07 20:45:45 +02:00
Logan Griswold
fb94ad4205 implement reverse formatting with tests
implement reverse formatting with tests
2017-12-07 18:27:59 +00:00
Pavel Djundik
f9be519c2f
Merge pull request #1593 from RJacksonm1/reload-passwords-all-proper-like
Ensure passwords are reloaded when updated via CLI
2017-12-07 13:18:16 +02:00
Jérémie Astori
b662764caa
Merge pull request #1800 from thelounge/xpaw/textcomplete
Update textcomplete library and rewrite tabcomplete
2017-12-06 18:29:49 -05:00
Pavel Djundik
65423eb8fd
Merge pull request #1380 from thelounge/xpaw/inline-notices
Show notices and errors inline
2017-12-06 18:06:40 +02:00
Pavel Djundik
5e48e04623 Show notices and errors inline 2017-12-06 17:58:52 +02:00
Jérémie Astori
3df1e9d731
Merge pull request #1804 from thelounge/xpaw/no-use-before-define
Enable no-use-before-define rule
2017-12-06 09:08:38 -05:00
Jérémie Astori
6ec1a2ee14
Merge pull request #1803 from thelounge/xpaw/merge-condensed
Merge condensed messages when loading more history
2017-12-06 09:07:33 -05:00
Pavel Djundik
20af04bca0 Enable no-use-before-define rule 2017-12-06 15:57:04 +02:00
Pavel Djundik
e462ed6270 Rewrite tabcomplete 2017-12-06 15:47:30 +02:00
Pavel Djundik
1bdbb75d4c Merge condensed messages when loading more history 2017-12-06 14:07:43 +02:00
Pavel Djundik
df703dc73a Upgrade to new textcomplete library 2017-12-06 12:06:57 +02:00
Rob Jackson
15f7f2e371
Ensure passwords are reloaded when updated via CLI (fixes #598) 2017-12-05 18:52:08 -05:00
Jérémie Astori
db53f13865
Merge pull request #1794 from thelounge/xpaw/handle-js-errors
Handle javascript errors while loading
2017-12-05 18:33:11 -05:00
Jérémie Astori
ee6ff6a5e5
Merge pull request #1798 from thelounge/greenkeeper/fs-extra-4.0.3
Update fs-extra to the latest version 🚀
2017-12-05 18:31:17 -05:00
greenkeeper[bot]
481b6fd336 fix(package): update fs-extra to version 4.0.3 2017-12-05 15:03:53 +00:00
Pavel Djundik
2afd4d7ec4 Hide error under details 2017-12-05 15:17:31 +02:00