From 881b3eda198763e497744cd709e041185cbb5ead Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 21 Mar 2020 22:55:36 +0200 Subject: [PATCH] Run format after updating to prettier 2.0 --- client/components/ChatInput.vue | 4 +- client/components/MessageTypes/ctcp.vue | 2 +- .../components/MessageTypes/ctcp_request.vue | 2 +- client/components/MessageTypes/motd.vue | 2 +- client/components/NetworkList.vue | 4 +- client/components/Windows/Changelog.vue | 8 +- client/components/Windows/Help.vue | 12 +- client/components/Windows/Settings.vue | 4 +- client/js/autocompletion.js | 5 +- client/js/clipboard.js | 2 +- .../js/helpers/ircmessageparser/findLinks.js | 4 +- client/js/helpers/parse.js | 5 +- client/js/keybinds.js | 6 +- client/js/loading-error-handlers.js | 2 +- client/js/socket-events/auth.js | 6 +- client/js/socket-events/changelog.js | 2 +- client/js/socket-events/commands.js | 2 +- client/js/socket-events/configuration.js | 2 +- client/js/socket-events/connection.js | 6 +- client/js/socket-events/history_clear.js | 2 +- client/js/socket-events/init.js | 2 +- client/js/socket-events/join.js | 2 +- client/js/socket-events/more.js | 2 +- client/js/socket-events/msg.js | 4 +- client/js/socket-events/msg_preview.js | 2 +- client/js/socket-events/msg_special.js | 2 +- client/js/socket-events/names.js | 2 +- client/js/socket-events/network.js | 10 +- client/js/socket-events/nick.js | 2 +- client/js/socket-events/open.js | 2 +- client/js/socket-events/part.js | 2 +- client/js/socket-events/quit.js | 2 +- client/js/socket-events/sessions_list.js | 2 +- client/js/socket-events/setting.js | 4 +- client/js/socket-events/sign_out.js | 2 +- client/js/socket-events/sync_sort.js | 2 +- client/js/socket-events/topic.js | 2 +- client/js/socket-events/users.js | 2 +- client/js/vue.js | 2 +- client/js/webpush.js | 2 +- client/service-worker.js | 12 +- scripts/changelog.js | 5 +- scripts/generate-config-doc.js | 5 +- scripts/noop.js | 4 +- src/client.js | 53 +++---- src/clientManager.js | 25 ++- src/command-line/install.js | 2 +- src/command-line/start.js | 2 +- src/command-line/uninstall.js | 2 +- src/command-line/upgrade.js | 2 +- src/command-line/users/add.js | 6 +- src/command-line/users/edit.js | 4 +- src/command-line/users/list.js | 2 +- src/command-line/users/remove.js | 2 +- src/command-line/users/reset.js | 4 +- src/helper.js | 7 +- src/identification.js | 2 +- src/log.js | 5 +- src/models/chan.js | 28 ++-- src/models/network.js | 32 ++-- src/models/user.js | 4 +- src/plugins/auth/ldap.js | 16 +- src/plugins/inputs/action.js | 2 +- src/plugins/inputs/away.js | 2 +- src/plugins/inputs/ban.js | 2 +- src/plugins/inputs/connect.js | 2 +- src/plugins/inputs/ctcp.js | 2 +- src/plugins/inputs/disconnect.js | 2 +- src/plugins/inputs/ignore.js | 6 +- src/plugins/inputs/index.js | 2 +- src/plugins/inputs/invite.js | 2 +- src/plugins/inputs/kick.js | 2 +- src/plugins/inputs/kill.js | 2 +- src/plugins/inputs/list.js | 2 +- src/plugins/inputs/mode.js | 4 +- src/plugins/inputs/msg.js | 2 +- src/plugins/inputs/nick.js | 2 +- src/plugins/inputs/notice.js | 2 +- src/plugins/inputs/part.js | 2 +- src/plugins/inputs/quit.js | 2 +- src/plugins/inputs/raw.js | 2 +- src/plugins/inputs/rejoin.js | 2 +- src/plugins/inputs/topic.js | 2 +- src/plugins/inputs/whois.js | 2 +- src/plugins/irc-events/away.js | 2 +- src/plugins/irc-events/cap.js | 2 +- src/plugins/irc-events/chghost.js | 4 +- src/plugins/irc-events/connection.js | 30 ++-- src/plugins/irc-events/ctcp.js | 8 +- src/plugins/irc-events/error.js | 8 +- src/plugins/irc-events/invite.js | 4 +- src/plugins/irc-events/join.js | 4 +- src/plugins/irc-events/kick.js | 4 +- src/plugins/irc-events/link.js | 10 +- src/plugins/irc-events/list.js | 8 +- src/plugins/irc-events/message.js | 12 +- src/plugins/irc-events/mode.js | 8 +- src/plugins/irc-events/modelist.js | 2 +- src/plugins/irc-events/motd.js | 4 +- src/plugins/irc-events/names.js | 4 +- src/plugins/irc-events/nick.js | 4 +- src/plugins/irc-events/part.js | 4 +- src/plugins/irc-events/quit.js | 4 +- src/plugins/irc-events/topic.js | 6 +- src/plugins/irc-events/unhandled.js | 4 +- src/plugins/irc-events/welcome.js | 4 +- src/plugins/irc-events/whois.js | 2 +- src/plugins/packages/index.js | 2 +- src/plugins/storage.js | 5 +- src/server.js | 8 +- test/client/js/authTest.js | 12 +- test/client/js/constantsTest.js | 26 ++-- test/client/js/helpers/friendlysizeTest.js | 10 +- .../ircmessageparser/cleanIrcMessage.js | 4 +- test/client/js/helpers/parseIrcUri.js | 18 +-- .../client/js/helpers/roundBadgeNumberTest.js | 10 +- test/commands/mode.js | 12 +- test/models/chan.js | 48 +++--- test/models/msg.js | 10 +- test/models/network.js | 48 +++--- test/plugins/auth/ldap.js | 36 ++--- test/plugins/inputs/indexTest.js | 12 +- test/plugins/link.js | 144 +++++++++--------- test/plugins/packages/indexTest.js | 22 +-- test/plugins/sqlite.js | 18 +-- test/plugins/storage.js | 30 ++-- test/server.js | 8 +- test/src/command-line/utilsTest.js | 54 +++---- test/src/helperTest.js | 26 ++-- test/tests/build.js | 20 +-- test/tests/customhighlights.js | 10 +- test/tests/hexip.js | 6 +- test/tests/hostmask.js | 8 +- test/tests/mergeConfig.js | 26 ++-- test/tests/nickhighlights.js | 8 +- test/tests/passwords.js | 10 +- test/tests/textLogFolder.js | 10 +- test/util.js | 4 +- 138 files changed, 584 insertions(+), 631 deletions(-) diff --git a/client/components/ChatInput.vue b/client/components/ChatInput.vue index 63732206..c007d12e 100644 --- a/client/components/ChatInput.vue +++ b/client/components/ChatInput.vue @@ -109,7 +109,7 @@ export default { const inputTrap = Mousetrap(this.$refs.input); - inputTrap.bind(Object.keys(formattingHotkeys), function(e, key) { + inputTrap.bind(Object.keys(formattingHotkeys), function (e, key) { const modifier = formattingHotkeys[key]; wrapCursor( @@ -121,7 +121,7 @@ export default { return false; }); - inputTrap.bind(Object.keys(bracketWraps), function(e, key) { + inputTrap.bind(Object.keys(bracketWraps), function (e, key) { if (e.target.selectionStart !== e.target.selectionEnd) { wrapCursor(e.target, key, bracketWraps[key]); diff --git a/client/components/MessageTypes/ctcp.vue b/client/components/MessageTypes/ctcp.vue index a85d6d41..4e9cc53c 100644 --- a/client/components/MessageTypes/ctcp.vue +++ b/client/components/MessageTypes/ctcp.vue @@ -1,7 +1,7 @@ diff --git a/client/components/MessageTypes/ctcp_request.vue b/client/components/MessageTypes/ctcp_request.vue index 9797eebb..592441cd 100644 --- a/client/components/MessageTypes/ctcp_request.vue +++ b/client/components/MessageTypes/ctcp_request.vue @@ -2,7 +2,7 @@ sent a CTCP request: - + diff --git a/client/components/MessageTypes/motd.vue b/client/components/MessageTypes/motd.vue index 01878c2f..b4013205 100644 --- a/client/components/MessageTypes/motd.vue +++ b/client/components/MessageTypes/motd.vue @@ -1,6 +1,6 @@ diff --git a/client/components/NetworkList.vue b/client/components/NetworkList.vue index fa2e2eb6..fda73271 100644 --- a/client/components/NetworkList.vue +++ b/client/components/NetworkList.vue @@ -82,7 +82,7 @@ :is-join-channel-shown="network.isJoinChannelShown" :active=" $store.state.activeChannel && - network.channels[0] === $store.state.activeChannel.channel + network.channels[0] === $store.state.activeChannel.channel " @toggleJoinChannel="network.isJoinChannelShown = !network.isJoinChannelShown" /> @@ -114,7 +114,7 @@ :network="network" :active=" $store.state.activeChannel && - channel === $store.state.activeChannel.channel + channel === $store.state.activeChannel.channel " /> diff --git a/client/components/Windows/Changelog.vue b/client/components/Windows/Changelog.vue index 55961d11..32fbc708 100644 --- a/client/components/Windows/Changelog.vue +++ b/client/components/Windows/Changelog.vue @@ -9,8 +9,8 @@