Skip to content

Commit

Permalink
ESLint + Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDavies8 committed Nov 16, 2024
1 parent 228ca07 commit a7c948d
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 14 deletions.
2 changes: 1 addition & 1 deletion assets/chat/css/menus/_user-info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $toolbar-icons-map: (
'whisper': 'whispers',
'ignore': 'ignore',
'unignore': 'unignore',
'rustle': 'rustle'
'rustle': 'rustle',
);

#chat-user-info {
Expand Down
4 changes: 2 additions & 2 deletions assets/chat/js/menus/ChatUserMenu.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import $ from 'jquery';
import { debounce } from 'throttle-debounce';
import tippy, { roundArrow } from 'tippy.js';
import ChatMenu from './ChatMenu';
import ChatUser from '../user';
import tippy, { roundArrow } from 'tippy.js';

// sections in order.
const UserMenuSections = [
Expand Down Expand Up @@ -247,7 +247,7 @@ export default class ChatUserMenu extends ChatMenu {
const usr = $(
`<div class="user-entry" data-username="${user.username}" data-user-id="${user.id}"><span class="user ${features}">${label}</span><div class="user-actions"><i class="mention-nick" data-tippy-content="Mention"></i><i class="whisper-nick" data-tippy-content="Whisper"></i></div></div>`,
);
usr.find('[data-tippy-content]').each(function () {
usr.find('[data-tippy-content]').each(function registerTippy() {
tippy(this, {
content: this.getAttribute('data-tippy-content'),
arrow: roundArrow,
Expand Down
79 changes: 68 additions & 11 deletions assets/views/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@
</div>
<div id="chat-tools-wrap">
<div class="chat-tools-group">
<a id="chat-emoticon-btn" class="chat-tool-btn" aria-label="Emotes" data-tippy-content="Emotes">
<a
id="chat-emoticon-btn"
class="chat-tool-btn"
aria-label="Emotes"
data-tippy-content="Emotes"
>
<i class="btn-icon"></i>
</a>
<a id="chat-whisper-btn" class="chat-tool-btn" aria-label="Whispers" data-tippy-content="Whispers">
<a
id="chat-whisper-btn"
class="chat-tool-btn"
aria-label="Whispers"
data-tippy-content="Whispers"
>
<i class="btn-icon"></i>
</a>
</div>
Expand All @@ -64,10 +74,20 @@
>
<i class="btn-icon"></i>
</a>
<a id="chat-settings-btn" class="chat-tool-btn" aria-label="Settings" data-tippy-content="Settings">
<a
id="chat-settings-btn"
class="chat-tool-btn"
aria-label="Settings"
data-tippy-content="Settings"
>
<i class="btn-icon"></i>
</a>
<a id="chat-users-btn" class="chat-tool-btn" aria-label="Users" data-tippy-content="Users">
<a
id="chat-users-btn"
class="chat-tool-btn"
aria-label="Users"
data-tippy-content="Users"
>
<i class="btn-icon"></i>
</a>
</div>
Expand Down Expand Up @@ -281,25 +301,62 @@ <h5 class="stalk-subheader">Selected messages:</h5>
</div>
<div class="actions">
<div class="action-buttons">
<a id="mute-user-btn" class="chat-tool-btn" aria-label="Mute" data-tippy-content="Mute">
<a
id="mute-user-btn"
class="chat-tool-btn"
aria-label="Mute"
data-tippy-content="Mute"
>
<i class="btn-icon"></i>
</a>
<a id="ban-user-btn" class="chat-tool-btn" aria-label="IP Ban" data-tippy-content="IP Ban">
<a
id="ban-user-btn"
class="chat-tool-btn"
aria-label="IP Ban"
data-tippy-content="IP Ban"
>
<i class="btn-icon"></i>
</a>
<a id="logs-user-btn" class="chat-tool-btn" aria-label="Stalk" data-tippy-content="Stalk">
<a
id="logs-user-btn"
class="chat-tool-btn"
aria-label="Stalk"
data-tippy-content="Stalk"
>
<i class="btn-icon"></i>
</a>
<a id="whisper-user-btn" class="chat-tool-btn" aria-label="Whisper" data-tippy-content="Whisper">
<a
id="whisper-user-btn"
class="chat-tool-btn"
aria-label="Whisper"
data-tippy-content="Whisper"
>
<i class="btn-icon"></i>
</a>
<a id="ignore-user-btn" class="chat-tool-btn" aria-label="Ignore" data-tippy-content="Ignore">
<a
id="ignore-user-btn"
class="chat-tool-btn"
aria-label="Ignore"
data-tippy-content="Ignore"
>
<i class="btn-icon"></i>
</a>
<a id="unignore-user-btn" class="chat-tool-btn" aria-label="Unignore" data-tippy-content="Unignore">
<a
id="unignore-user-btn"
class="chat-tool-btn"
aria-label="Unignore"
data-tippy-content="Unignore"
>
<i class="btn-icon"></i>
</a>
<a id="rustle-user-btn" class="chat-tool-btn" aria-label="Open Logs" data-tippy-content="Open Logs on RustleSearch" target="_blank" rel="noopener noreferrer">
<a
id="rustle-user-btn"
class="chat-tool-btn"
aria-label="Open Logs"
data-tippy-content="Open Logs on RustleSearch"
target="_blank"
rel="noopener noreferrer"
>
<i class="btn-icon"></i>
</a>
</div>
Expand Down

0 comments on commit a7c948d

Please sign in to comment.