From 97fdee5c9dc90ac4beec51b569be32b3286b3d3f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 30 Jun 2026 04:02:13 +0300 Subject: [PATCH] lint and sw fixes --- src/components/error_modal/error_modal.js | 2 +- src/components/global_error/global_error.js | 10 +++++++--- src/components/user_card/user_card.js | 2 +- src/components/user_panel/user_panel.js | 4 ++-- src/components/user_panel/user_panel.vue | 2 +- src/stores/interface.js | 2 +- src/sw.js | 1 + 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/error_modal/error_modal.js b/src/components/error_modal/error_modal.js index aaa9f99ec..560de3a53 100644 --- a/src/components/error_modal/error_modal.js +++ b/src/components/error_modal/error_modal.js @@ -30,7 +30,7 @@ const ErrorModal = { type: Error, }, }, - emits: ['clear', 'recover'] + emits: ['clear', 'recover'], } export default ErrorModal diff --git a/src/components/global_error/global_error.js b/src/components/global_error/global_error.js index 0f826f4c4..cd4593521 100644 --- a/src/components/global_error/global_error.js +++ b/src/components/global_error/global_error.js @@ -1,9 +1,9 @@ +import { mapActions, mapState } from 'pinia' + import ErrorModal from 'src/components/error_modal/error_modal.vue' import { useInterfaceStore } from 'src/stores/interface.js' -import { mapState, mapActions } from 'pinia' - const GlobalError = { components: { ErrorModal, @@ -24,7 +24,11 @@ const GlobalError = { details() { if (this.globalError == null) return null if (this.globalError.error != null) { - return this.globalError.error.toString() + '\n\n' + this.globalError.error.stack + return ( + this.globalError.error.toString() + + '\n\n' + + this.globalError.error.stack + ) } else { return this.globalError.details } diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index f3e2b8f85..267be8bfd 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -11,11 +11,11 @@ import Checkbox from 'src/components/checkbox/checkbox.vue' import ColorInput from 'src/components/color_input/color_input.vue' import EmojiInput from 'src/components/emoji_input/emoji_input.vue' import suggestor from 'src/components/emoji_input/suggestor.js' +import FollowButton from 'src/components/follow_button/follow_button.vue' import ProgressButton from 'src/components/progress_button/progress_button.vue' import Select from 'src/components/select/select.vue' import UserAvatar from 'src/components/user_avatar/user_avatar.vue' import UserLink from 'src/components/user_link/user_link.vue' -import FollowButton from 'src/components/follow_button/follow_button.vue' import { useEmojiStore } from 'src/stores/emoji.js' import { useInstanceStore } from 'src/stores/instance.js' diff --git a/src/components/user_panel/user_panel.js b/src/components/user_panel/user_panel.js index dd1da869e..08270a1c6 100644 --- a/src/components/user_panel/user_panel.js +++ b/src/components/user_panel/user_panel.js @@ -1,9 +1,8 @@ -import { defineAsyncComponent } from 'vue' import { mapState } from 'vuex' +import AuthForm from 'src/components/auth_form/auth_form.js' import PostStatusForm from 'src/components/post_status_form/post_status_form.vue' import UserCard from 'src/components/user_card/user_card.vue' -import AuthForm from 'src/components/auth_form/auth_form.js' const UserPanel = { computed: { @@ -15,6 +14,7 @@ const UserPanel = { components: { PostStatusForm, UserCard, + AuthForm, }, } diff --git a/src/components/user_panel/user_panel.vue b/src/components/user_panel/user_panel.vue index 3f6922c31..b0479321c 100644 --- a/src/components/user_panel/user_panel.vue +++ b/src/components/user_panel/user_panel.vue @@ -11,7 +11,7 @@ /> - diff --git a/src/stores/interface.js b/src/stores/interface.js index e76a23cc2..6e82dc5f9 100644 --- a/src/stores/interface.js +++ b/src/stores/interface.js @@ -199,7 +199,7 @@ export const useInterfaceStore = defineStore('interface', { console.log(this.globalError) }, clearGlobalError() { - this.globalError = null; + this.globalError = null }, pushGlobalNotice({ messageKey, diff --git a/src/sw.js b/src/sw.js index 1e7abd3de..b7629b5f2 100644 --- a/src/sw.js +++ b/src/sw.js @@ -1,5 +1,6 @@ /* eslint-env serviceworker */ +// biome-ignore: side effect import of assets list import 'virtual:pleroma-fe/service_worker_env' import { createI18n } from 'vue-i18n'