lint and sw fixes
This commit is contained in:
parent
ad65719ef4
commit
97fdee5c9d
7 changed files with 14 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ const ErrorModal = {
|
|||
type: Error,
|
||||
},
|
||||
},
|
||||
emits: ['clear', 'recover']
|
||||
emits: ['clear', 'recover'],
|
||||
}
|
||||
|
||||
export default ErrorModal
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
/>
|
||||
<PostStatusForm />
|
||||
</div>
|
||||
<auth-form
|
||||
<AuthForm
|
||||
v-else
|
||||
key="user-panel"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ export const useInterfaceStore = defineStore('interface', {
|
|||
console.log(this.globalError)
|
||||
},
|
||||
clearGlobalError() {
|
||||
this.globalError = null;
|
||||
this.globalError = null
|
||||
},
|
||||
pushGlobalNotice({
|
||||
messageKey,
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue