From 411e3d38e097f5d2e293a3ee4ec4bf01f21fb321 Mon Sep 17 00:00:00 2001 From: hgw Date: Sun, 3 Dec 2023 03:39:40 +0000 Subject: [PATCH] Remove emoji autocompletion --- client/components/Windows/Help.vue | 205 +++++++++++++++++------------ client/js/autocompletion.ts | 68 +++++----- 2 files changed, 153 insertions(+), 120 deletions(-) diff --git a/client/components/Windows/Help.vue b/client/components/Windows/Help.vue index 491108a1..58901ccd 100644 --- a/client/components/Windows/Help.vue +++ b/client/components/Windows/Help.vue @@ -9,9 +9,10 @@

About Hard Lounge - v{{ store.state.serverConfiguration?.version }} (release notes) @@ -53,8 +54,8 @@

- IRC.SUPERNETS.ORG #SUPERBOWL FUCK YOUR NETWORK COLD HARD CHATS THIS IS NOT - YOUR DADS FOOTBALL CHANNEL + IRC.SUPERNETS.ORG #SUPERBOWL FUCK YOUR NETWORK COLD HARD + CHATS THIS IS NOT YOUR DADS FOOTBALL CHANNEL

@@ -93,7 +94,9 @@
- Alt Shift + Alt Shift
@@ -103,7 +106,9 @@
- Alt Shift + Alt Shift
@@ -113,7 +118,9 @@
- Alt Shift + Alt Shift
@@ -123,7 +130,9 @@
- Alt Shift + Alt Shift
@@ -217,8 +226,8 @@

- Close current contextual window (context menu, image viewer, topic edit, - etc) and remove focus from input. + Close current contextual window (context menu, image + viewer, topic edit, etc) and remove focus from input.

@@ -232,15 +241,17 @@

- Mark any text typed after this shortcut to be colored. After hitting this - shortcut, enter an integer in the range - 0—15 to select the desired color, or use the autocompletion - menu to choose a color name (see below). + Mark any text typed after this shortcut to be colored. + After hitting this shortcut, enter an integer in the + range + 0—15 to select the desired color, or use + the autocompletion menu to choose a color name (see + below).

- Background color can be specified by putting a comma and another integer in - the range 0—15 after the foreground color number - (autocompletion works too). + Background color can be specified by putting a comma and + another integer in the range 0—15 after the + foreground color number (autocompletion works too).

A color reference can be found @@ -326,8 +337,8 @@

- Mark all text typed after this shortcut to be reset to its original - formatting. + Mark all text typed after this shortcut to be reset to + its original formatting.

@@ -335,10 +346,11 @@

Autocompletion

- To auto-complete nicknames, channels, commands, and emoji, type one of the - characters below to open a suggestion list. Use the and - keys to highlight an item, and insert it by pressing Tab or - Enter (or by clicking the desired item). + To auto-complete nicknames, channels and commands, type one of + the characters below to open a suggestion list. Use the + and keys to highlight an item, and + insert it by pressing Tab or Enter (or by + clicking the desired item).

Autocompletion can be disabled in settings.

@@ -369,18 +381,6 @@
-
-
- : -
-
-

- Emoji (note: requires two search characters, to avoid conflicting with - common emoticons like :)) -

-
-
-

Commands

@@ -397,7 +397,9 @@ /back
-

Remove your away status (set with /away).

+

+ Remove your away status (set with /away). +

@@ -407,8 +409,8 @@

- Ban (+b) a user from the current channel. This can be a - nickname or a hostmask. + Ban (+b) a user from the current channel. + This can be a nickname or a hostmask.

@@ -428,7 +430,8 @@

- Collapse all previews in the current channel (opposite of + Collapse all previews in the current channel (opposite + of /expand)

@@ -440,8 +443,9 @@

- Connect to a new IRC network. If port starts with a - + sign, the connection will be made secure using TLS. + Connect to a new IRC network. If + port starts with a + sign, the + connection will be made secure using TLS.

Alias: /server

@@ -453,7 +457,8 @@ @@ -483,8 +488,8 @@

- Remove voice (-v) from one or several users in the current - channel. + Remove voice (-v) from one or several users + in the current channel.

@@ -494,7 +499,10 @@ /disconnect [message]
-

Disconnect from the current network with an optionally-provided message.

+

+ Disconnect from the current network with an + optionally-provided message. +

@@ -517,8 +525,8 @@

Invite a user to the specified channel. If - channel is omitted, user will be invited to the current - channel. + channel is omitted, user will be invited to + the current channel.

@@ -529,8 +537,8 @@

- Block any messages from the specified user on the current network. This can - be a nickname or a hostmask. + Block any messages from the specified user on the + current network. This can be a nickname or a hostmask.

@@ -540,7 +548,9 @@ /ignorelist
-

Load the list of ignored users for the current network.

+

+ Load the list of ignored users for the current network. +

@@ -550,8 +560,8 @@

- Join a channel. Password is only needed in protected channels and can - usually be omitted. + Join a channel. Password is only needed in protected + channels and can usually be omitted.

@@ -571,8 +581,10 @@

- Kick and ban (+b) a user from the current channel. Unlike - /ban, only nicknames (and not host masks) can be used. + Kick and ban (+b) a user from the current + channel. Unlike + /ban, only nicknames (and not host masks) + can be used.

@@ -582,7 +594,9 @@ /list
-

Retrieve a list of available channels on this network.

+

+ Retrieve a list of available channels on this network. +

@@ -592,8 +606,9 @@

- Send an action message to the current channel. Hard Lounge will display it - inline, as if the message was posted in the third person. + Send an action message to the current channel. Hard + Lounge will display it inline, as if the message was + posted in the third person.

@@ -604,9 +619,10 @@

- Set the given flags to the current channel if the active window is a - channel, another user if the active window is a private message window, or - yourself if the current window is a server window. + Set the given flags to the current channel if the active + window is a channel, another user if the active window + is a private message window, or yourself if the current + window is a server window.

@@ -626,10 +642,12 @@

- Prevent messages from generating any feedback for a channel. This turns off - the highlight indicator, hides mentions and inhibits push notifications. - Muting a network lobby mutes the entire network. Not specifying any channel - target mutes the current channel. Revert with /unmute. + Prevent messages from generating any feedback for a + channel. This turns off the highlight indicator, hides + mentions and inhibits push notifications. Muting a + network lobby mutes the entire network. Not specifying + any channel target mutes the current channel. Revert + with /unmute.

@@ -657,7 +675,10 @@ /op nick [...nick]
-

Give op (+o) to one or several users in the current channel.

+

+ Give op (+o) to one or several users in the + current channel. +

@@ -667,8 +688,9 @@

- Close the specified channel or private message window, or the current - channel if channel is omitted. + Close the specified channel or private message window, + or the current channel if channel is + omitted.

Aliases: /close, /leave

@@ -680,8 +702,9 @@

- Leave and immediately rejoin the current channel. Useful to quickly get op - from ChanServ in an empty channel, for example. + Leave and immediately rejoin the current channel. Useful + to quickly get op from ChanServ in an empty channel, for + example.

Alias: /cycle

@@ -701,7 +724,10 @@ /quit [message]
-

Disconnect from the current network with an optional message.

+

+ Disconnect from the current network with an optional + message. +

@@ -739,8 +765,9 @@

- Get the topic in the current channel. If newtopic is specified, - sets the topic in the current channel. + Get the topic in the current channel. If + newtopic is specified, sets the topic in + the current channel.

@@ -751,8 +778,8 @@

- Unban (-b) a user from the current channel. This can be a - nickname or a hostmask. + Unban (-b) a user from the current channel. + This can be a nickname or a hostmask.

@@ -763,8 +790,8 @@

- Unblock messages from the specified user on the current network. This can be - a nickname or a hostmask. + Unblock messages from the specified user on the current + network. This can be a nickname or a hostmask.

@@ -775,8 +802,9 @@

- Un-mutes the given channel(s) or the current channel if no channel is - provided. See /mute for more information. + Un-mutes the given channel(s) or the current channel if + no channel is provided. See /mute for more + information.

@@ -787,7 +815,8 @@

- Give voice (+v) to one or several users in the current channel. + Give voice (+v) to one or several users in + the current channel.

@@ -797,7 +826,10 @@ /whois nick
-

Retrieve information about the given user on the current network.

+

+ Retrieve information about the given user on the current + network. +

@@ -1193,8 +1225,8 @@