From cda2a62ee5f9d61b27bd0c58d247ceab3632ab0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=CC=88=20Bijl?= Date: Tue, 14 Oct 2025 01:46:50 +0200 Subject: [PATCH] lint --- .../flavours/glitch/components/account.jsx | 22 +++---- .../glitch/components/attachment_list.jsx | 2 +- .../glitch/components/column_header.jsx | 2 +- .../components/edited_timestamp/index.jsx | 2 +- .../flavours/glitch/components/icon.tsx | 2 +- .../glitch/components/icon_button.tsx | 4 +- .../components/notification_purge_buttons.jsx | 12 ++-- .../flavours/glitch/components/status.jsx | 22 +++---- .../glitch/components/status_action_bar.jsx | 12 ++-- .../glitch/components/status_content.jsx | 2 +- .../glitch/components/status_icons.jsx | 6 +- .../glitch/components/status_prepend.jsx | 46 +++++++------- .../components/status_visibility_icon.jsx | 8 +-- .../flavours/glitch/features/about/index.jsx | 2 +- .../features/account/components/header.jsx | 10 ++-- .../account_gallery/components/media_item.jsx | 2 +- .../flavours/glitch/features/audio/index.jsx | 6 +- .../features/compose/components/dropdown.jsx | 2 +- .../components/emoji_picker_dropdown.jsx | 2 +- .../features/compose/components/header.jsx | 2 +- .../features/compose/components/options.jsx | 8 +-- .../features/compose/components/poll_form.jsx | 2 +- .../compose/components/privacy_dropdown.jsx | 8 +-- .../features/compose/components/publisher.jsx | 2 +- .../features/compose/components/search.jsx | 4 +- .../compose/components/search_results.jsx | 12 ++-- .../glitch/features/explore/results.jsx | 60 +++++++++---------- .../components/account.jsx | 2 +- .../glitch/features/getting_started/index.jsx | 10 ++-- .../features/interaction_modal/index.jsx | 40 ++++++------- .../features/list_adder/components/list.jsx | 2 +- .../flavours/glitch/features/lists/index.jsx | 2 +- .../notifications/components/filter_bar.jsx | 12 ++-- .../notifications/components/overlay.jsx | 2 +- .../picture_in_picture/components/footer.jsx | 12 ++-- .../features/status/components/action_bar.jsx | 8 +-- .../features/status/components/card.jsx | 2 +- .../status/components/detailed_status.jsx | 30 +++++----- .../flavours/glitch/features/status/index.jsx | 2 +- .../features/ui/components/column_link.jsx | 8 +-- .../features/ui/components/doodle_modal.jsx | 4 +- .../glitch/features/ui/components/header.jsx | 4 +- .../features/ui/components/list_panel.jsx | 2 +- .../features/ui/components/report_modal.jsx | 2 +- .../features/ui/components/zoomable_image.jsx | 2 +- .../flavours/glitch/features/video/index.jsx | 6 +- stylelint.config.js | 6 +- 47 files changed, 211 insertions(+), 211 deletions(-) diff --git a/app/javascript/flavours/glitch/components/account.jsx b/app/javascript/flavours/glitch/components/account.jsx index bb80ca497..8d182c5e8 100644 --- a/app/javascript/flavours/glitch/components/account.jsx +++ b/app/javascript/flavours/glitch/components/account.jsx @@ -123,26 +123,26 @@ class Account extends ImmutablePureComponent { if (requested) { buttons = ; } else if (blocking) { - buttons = ; + buttons = ; } else if (muting) { let hidingNotificationsButton; - if (account.getIn(['relationship', 'muting_notifications'])) { - hidingNotificationsButton = ; + if (account.getIn(["relationship", "muting_notifications"])) { + hidingNotificationsButton = ; } else { - hidingNotificationsButton = ; + hidingNotificationsButton = ; } buttons = ( <> - + {hidingNotificationsButton} ); - } else if (defaultAction === 'mute') { - buttons = ; - } else if (defaultAction === 'block') { - buttons = ; - } else if (!account.get('moved') || following) { - buttons = ; + } else if (defaultAction === "mute") { + buttons = ; + } else if (defaultAction === "block") { + buttons = ; + } else if (!account.get("moved") || following) { + buttons = ; } } diff --git a/app/javascript/flavours/glitch/components/attachment_list.jsx b/app/javascript/flavours/glitch/components/attachment_list.jsx index e95c3e1ea..093207353 100644 --- a/app/javascript/flavours/glitch/components/attachment_list.jsx +++ b/app/javascript/flavours/glitch/components/attachment_list.jsx @@ -37,7 +37,7 @@ export default class AttachmentList extends ImmutablePureComponent {
  • {compact && } - {compact && ' ' } + {compact && " " } {displayUrl ? filename(displayUrl) : }
  • diff --git a/app/javascript/flavours/glitch/components/column_header.jsx b/app/javascript/flavours/glitch/components/column_header.jsx index bc8631037..bd775dff5 100644 --- a/app/javascript/flavours/glitch/components/column_header.jsx +++ b/app/javascript/flavours/glitch/components/column_header.jsx @@ -7,7 +7,7 @@ import { FormattedMessage, injectIntl, defineMessages } from "react-intl"; import classNames from "classnames"; import { Icon } from "flavours/glitch/components/icon"; -import { IconButton } from 'flavours/glitch/components/icon_svg_button'; +import { IconButton } from "flavours/glitch/components/icon_svg_button"; const messages = defineMessages({ show: { id: "column_header.show_settings", defaultMessage: "Show settings" }, diff --git a/app/javascript/flavours/glitch/components/edited_timestamp/index.jsx b/app/javascript/flavours/glitch/components/edited_timestamp/index.jsx index a8847d998..0f371668d 100644 --- a/app/javascript/flavours/glitch/components/edited_timestamp/index.jsx +++ b/app/javascript/flavours/glitch/components/edited_timestamp/index.jsx @@ -66,7 +66,7 @@ class EditedTimestamp extends PureComponent { return ( ); diff --git a/app/javascript/flavours/glitch/components/icon.tsx b/app/javascript/flavours/glitch/components/icon.tsx index a9aca0870..ec7103957 100644 --- a/app/javascript/flavours/glitch/components/icon.tsx +++ b/app/javascript/flavours/glitch/components/icon.tsx @@ -15,7 +15,7 @@ export const Icon: React.FC = ({ fixedWidth, ...other }) => ( - + ); diff --git a/app/javascript/flavours/glitch/components/icon_button.tsx b/app/javascript/flavours/glitch/components/icon_button.tsx index ebc885229..99f897b86 100644 --- a/app/javascript/flavours/glitch/components/icon_button.tsx +++ b/app/javascript/flavours/glitch/components/icon_button.tsx @@ -121,8 +121,8 @@ export class IconButton extends React.PureComponent { let contents = ( <> - {' '} - {typeof counter !== 'undefined' && ( + {" "} + {typeof counter !== "undefined" && ( diff --git a/app/javascript/flavours/glitch/components/notification_purge_buttons.jsx b/app/javascript/flavours/glitch/components/notification_purge_buttons.jsx index 88a00dbc2..444c137a0 100644 --- a/app/javascript/flavours/glitch/components/notification_purge_buttons.jsx +++ b/app/javascript/flavours/glitch/components/notification_purge_buttons.jsx @@ -17,10 +17,10 @@ import ImmutablePureComponent from "react-immutable-pure-component"; import { Icon } from "flavours/glitch/components/icon"; const messages = defineMessages({ - btnAll : { id: 'notification_purge.btn_all', defaultMessage: 'All' }, - btnNone : { id: 'notification_purge.btn_none', defaultMessage: 'None' }, - btnInvert : { id: 'notification_purge.btn_invert', defaultMessage: 'Invert' }, - btnApply : { id: 'notification_purge.btn_apply', defaultMessage: 'Remove' }, + btnAll : { id: "notification_purge.btn_all", defaultMessage: "All" }, + btnNone : { id: "notification_purge.btn_none", defaultMessage: "None" }, + btnInvert : { id: "notification_purge.btn_invert", defaultMessage: "Invert" }, + btnApply : { id: "notification_purge.btn_apply", defaultMessage: "Remove" }, }); class NotificationPurgeButtons extends ImmutablePureComponent { @@ -39,11 +39,11 @@ class NotificationPurgeButtons extends ImmutablePureComponent { return (
    - - diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index 490ed7e66..452403d3b 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -648,7 +648,7 @@ class Status extends ImmutablePureComponent { if (pictureInPicture.get("inUse")) { media.push(); - mediaIcons.push('film-strip'); + mediaIcons.push("film-strip"); } else if (attachments.size > 0) { const language = status.getIn(["translation", "language"]) || status.get("language"); @@ -688,10 +688,10 @@ class Status extends ImmutablePureComponent { )} , ); - mediaIcons.push('music-note'); - } else if (attachments.getIn([0, 'type']) === 'video') { - const attachment = status.getIn(['media_attachments', 0]); - const description = attachment.getIn(['translation', 'description']) || attachment.get('description'); + mediaIcons.push("music-note"); + } else if (attachments.getIn([0, "type"]) === "video") { + const attachment = status.getIn(["media_attachments", 0]); + const description = attachment.getIn(["translation", "description"]) || attachment.get("description"); media.push( @@ -715,7 +715,7 @@ class Status extends ImmutablePureComponent { />)} , ); - mediaIcons.push('film-strip'); + mediaIcons.push("film-strip"); } else { // Media type is 'image' or 'gifv' media.push( @@ -737,7 +737,7 @@ class Status extends ImmutablePureComponent { )} , ); - mediaIcons.push('image'); + mediaIcons.push("image"); } if (!status.get("sensitive") && !(status.get("spoiler_text").length > 0) && settings.getIn(["collapsed", "backgrounds", "preview_images"])) { @@ -756,10 +756,10 @@ class Status extends ImmutablePureComponent { mediaIcons.push("link"); } - if (status.get('poll')) { - const language = status.getIn(['translation', 'language']) || status.get('language'); - contentMedia.push(); - contentMediaIcons.push('chart-bar-horizontal'); + if (status.get("poll")) { + const language = status.getIn(["translation", "language"]) || status.get("language"); + contentMedia.push(); + contentMediaIcons.push("chart-bar-horizontal"); } // Here we prepare extra data-* attributes for CSS selectors. diff --git a/app/javascript/flavours/glitch/components/status_action_bar.jsx b/app/javascript/flavours/glitch/components/status_action_bar.jsx index 3254e2590..62889990b 100644 --- a/app/javascript/flavours/glitch/components/status_action_bar.jsx +++ b/app/javascript/flavours/glitch/components/status_action_bar.jsx @@ -276,11 +276,11 @@ class StatusActionBar extends ImmutablePureComponent { } } - if (status.get('in_reply_to_id', null) === null) { - replyIcon = 'arrow-bend-up-left'; + if (status.get("in_reply_to_id", null) === null) { + replyIcon = "arrow-bend-up-left"; replyTitle = intl.formatMessage(messages.reply); } else { - replyIcon = 'arrow-bend-double-up-left'; + replyIcon = "arrow-bend-double-up-left"; replyTitle = intl.formatMessage(messages.replyAll); } @@ -311,9 +311,9 @@ class StatusActionBar extends ImmutablePureComponent { counter={showReplyCount ? status.get("replies_count") : undefined} obfuscateCount /> - - - + + + {filterButton} diff --git a/app/javascript/flavours/glitch/components/status_content.jsx b/app/javascript/flavours/glitch/components/status_content.jsx index be845f93c..f29ced63b 100644 --- a/app/javascript/flavours/glitch/components/status_content.jsx +++ b/app/javascript/flavours/glitch/components/status_content.jsx @@ -360,7 +360,7 @@ class StatusContent extends PureComponent { {" "}

    diff --git a/app/javascript/flavours/glitch/components/status_icons.jsx b/app/javascript/flavours/glitch/components/status_icons.jsx index 48de19166..77827b94a 100644 --- a/app/javascript/flavours/glitch/components/status_icons.jsx +++ b/app/javascript/flavours/glitch/components/status_icons.jsx @@ -109,8 +109,8 @@ class StatusIcons extends PureComponent { return (
    - {settings.get('language') && status.get('language') && } - {settings.get('reply') && status.get('in_reply_to_id', null) !== null ? ( + {settings.get("language") && status.get("language") && } + {settings.get("reply") && status.get("in_reply_to_id", null) !== null ? ( ) : null} - {settings.get('local_only') && status.get('local_only') && + {settings.get("local_only") && status.get("local_only") && -
    +