diff --git a/src/App.js b/src/App.js index 873a597ec..b2e54a653 100644 --- a/src/App.js +++ b/src/App.js @@ -201,11 +201,7 @@ export default { 'styleDataUsed', 'layoutType', ]), - ...mapState(useInstanceStore, [ - 'styleDataUsed', - 'instanceSpecificPanelContent', - 'private', - ]), + ...mapState(useInstanceStore, ['styleDataUsed', 'private']), ...mapState(useInstanceStore, { background: (store) => store.instanceIdentity.background, showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel, @@ -213,6 +209,8 @@ export default { store.instanceIdentity.showInstanceSpecificPanel, suggestionsEnabled: (store) => store.featureSet.suggestionsEnabled, editingAvailable: (store) => store.featureSet.editingAvailable, + instanceSpecificPanelContent: (store) => + store.instanceIdentity.instanceSpecificPanelContent, }), }, methods: { diff --git a/src/boot/after_store.js b/src/boot/after_store.js index fa6bb4718..b8aac4784 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -21,6 +21,7 @@ import { } from 'src/modules/default_config_state.js' import { useAnnouncementsStore } from 'src/stores/announcements' import { useAuthFlowStore } from 'src/stores/auth_flow' +import { useEmojiStore } from 'src/stores/emoji.js' import { useI18nStore } from 'src/stores/i18n' import { useInstanceStore } from 'src/stores/instance.js' import { useInterfaceStore } from 'src/stores/interface.js' @@ -169,10 +170,10 @@ const setSettings = async ({ apiConfig, staticConfig, store }) => { } Object.keys(staticOrApiConfigDefault) - .map((k) => ({ source: k, destination: `instanceIdentity.${k}`})) + .map((k) => ({ source: k, destination: `instanceIdentity.${k}` })) .forEach(copyInstanceOption) Object.keys(instanceDefaultConfig) - .map((k) => ({ source: k, destination: `prefsStorage.${k}`})) + .map((k) => ({ source: k, destination: `prefsStorage.${k}` })) .forEach(copyInstanceOption) useAuthFlowStore().setInitialStrategy(config.loginMethod) diff --git a/src/components/account_actions/account_actions.js b/src/components/account_actions/account_actions.js index e829ce070..4f548fb6b 100644 --- a/src/components/account_actions/account_actions.js +++ b/src/components/account_actions/account_actions.js @@ -1,4 +1,4 @@ -import { mapState } from 'vuex' +import { mapState } from 'pinia' import UserListMenu from 'src/components/user_list_menu/user_list_menu.vue' import UserTimedFilterModal from 'src/components/user_timed_filter_modal/user_timed_filter_modal.vue' @@ -93,10 +93,10 @@ const AccountActions = { shouldConfirmRemoveUserFromFollowers() { return this.$store.getters.mergedConfig.modalOnRemoveUserFromFollowers }, - ...mapState({ - blockExpirationSupported: (state) => useInstanceStore().blockExpiration, - pleromaChatMessagesAvailable: (state) => - useInstanceStore().pleromaChatMessagesAvailable, + ...mapState(useInstanceStore, { + blockExpirationSupported: (store) => store.featureSet.blockExpiration, + pleromaChatMessagesAvailable: (store) => + store.featureSet.pleromaChatMessagesAvailable, }), }, } diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index dd595d2f5..7752205e3 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -2,6 +2,7 @@ import { take } from 'lodash' import Popover from 'src/components/popover/popover.vue' import ScreenReaderNotice from 'src/components/screen_reader_notice/screen_reader_notice.vue' +import { useEmojiStore } from 'src/stores/emoji.js' import { ensureFinalFallback } from '../../i18n/languages.js' import Completion from '../../services/completion/completion.js' import { findOffset } from '../../services/offset_finder/offset_finder.service.js' diff --git a/src/components/features_panel/features_panel.js b/src/components/features_panel/features_panel.js index 3b46e6f68..cf61e1ae8 100644 --- a/src/components/features_panel/features_panel.js +++ b/src/components/features_panel/features_panel.js @@ -1,34 +1,22 @@ +import { mapState } from 'pinia' + import { useInstanceStore } from 'src/stores/instance.js' import fileSizeFormatService from '../../services/file_size_format/file_size_format.js' const FeaturesPanel = { computed: { - shout: function () { - return useInstanceStore().shoutAvailable - }, - pleromaChatMessages: function () { - return useInstanceStore().pleromaChatMessagesAvailable - }, - gopher: function () { - return useInstanceStore().gopherAvailable - }, - whoToFollow: function () { - return useInstanceStore().suggestionsEnabled - }, - mediaProxy: function () { - return useInstanceStore().mediaProxyAvailable - }, - minimalScopesMode: function () { - return useInstanceStore().minimalScopesMode - }, - textlimit: function () { - return useInstanceStore().textlimit - }, - uploadlimit: function () { - return fileSizeFormatService.fileSizeFormat( - useInstanceStore().uploadlimit, - ) - }, + ...mapState(useInstanceStore, { + shout: (store) => store.shoutAvailable, + pleromaChatMessages: (store) => + store.featureSet.pleromaChatMessagesAvailable, + gopher: (store) => store.featureSet.gopherAvailable, + whoToFollow: (store) => store.featureSet.suggestionsEnabled, + mediaProxy: (store) => store.featureSet.mediaProxyAvailable, + minimalScopesMode: (store) => store.prefsStorage.minimalScopesMode, + textlimit: (store) => store.limits.textlimit, + uploadlimit: (store) => + fileSizeFormatService.fileSizeFormat(store.limits.uploadlimit), + }), }, } diff --git a/src/components/moderation_tools/moderation_tools.js b/src/components/moderation_tools/moderation_tools.js index f4c5e0470..0ee4f27d4 100644 --- a/src/components/moderation_tools/moderation_tools.js +++ b/src/components/moderation_tools/moderation_tools.js @@ -55,7 +55,7 @@ const ModerationTools = { }, canUseTagPolicy() { return ( - useInstanceStore().tagPolicyAvailable && + useInstanceStore().featureSet.tagPolicyAvailable && this.privileged('users_manage_tags') ) }, diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index 874089a64..ea03e0a9b 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -111,6 +111,14 @@ const NavPanel = { unreadAnnouncementCount: 'unreadAnnouncementCount', supportsAnnouncements: (store) => store.supportsAnnouncements, }), + ...mapPiniaState(useInstanceStore, ['private', 'federating']), + ...mapPiniaState(useInstanceStore, { + pleromaChatMessagesAvailable: (store) => + store.featureSet.pleromaChatMessagesAvailable, + bookmarkFolders: (store) => + store.fetaureSet.pleromaBookmarkFoldersAvailable, + bubbleTimeline: (store) => store.fetaureSet.localBubble, + }), ...mapPiniaState(useServerSideStorageStore, { collapsed: (store) => store.prefsStorage.simple.collapseNav, pinnedItems: (store) => @@ -119,14 +127,6 @@ const NavPanel = { ...mapState({ currentUser: (state) => state.users.currentUser, followRequestCount: (state) => state.api.followRequests.length, - privateMode: (state) => useInstanceStore().private, - federating: (state) => useInstanceStore().federating, - pleromaChatMessagesAvailable: (state) => - useInstanceStore().pleromaChatMessagesAvailable, - bookmarkFolders: (state) => - useInstanceStore().pleromaBookmarkFoldersAvailable, - bubbleTimeline: (state) => - useInstanceStore().localBubbleInstances.length > 0, }), timelinesItems() { return filterNavigation( diff --git a/src/components/navigation/navigation_pins.js b/src/components/navigation/navigation_pins.js index 810c8a04a..2b48c5c52 100644 --- a/src/components/navigation/navigation_pins.js +++ b/src/components/navigation/navigation_pins.js @@ -72,15 +72,16 @@ const NavPanel = { pinnedItems: (store) => new Set(store.prefsStorage.collections.pinnedNavItems), }), + ...mapPiniaState(useInstanceStore, { + bookmarks: getBookmarkFolderEntries, + pleromaChatMessagesAvailable: (store) => + store.featureSet.pleromaChatMessagesAvailable, + bubbleTimeline: (store) => store.featureSet.localBubble, + }), + ...mapPiniaState(useInstanceStore, ['private', 'federating']), ...mapState({ currentUser: (state) => state.users.currentUser, followRequestCount: (state) => state.api.followRequests.length, - privateMode: (state) => useInstanceStore().private, - federating: (state) => useInstanceStore().federating, - pleromaChatMessagesAvailable: (state) => - useInstanceStore().pleromaChatMessagesAvailable, - bubbleTimeline: (state) => - useInstanceStore().localBubbleInstances.length > 0, }), pinnedList() { if (!this.currentUser) { @@ -94,7 +95,7 @@ const NavPanel = { hasChats: this.pleromaChatMessagesAvailable, hasAnnouncements: this.supportsAnnouncements, isFederating: this.federating, - isPrivate: this.privateMode, + isPrivate: this.private, currentUser: this.currentUser, supportsBubbleTimeline: this.bubbleTimeline, supportsBookmarkFolders: this.bookmarks, @@ -118,7 +119,7 @@ const NavPanel = { supportsBubbleTimeline: this.bubbleTimeline, supportsBookmarkFolders: this.bookmarks, isFederating: this.federating, - isPrivate: this.privateMode, + isPrivate: this.private, currentUser: this.currentUser, }, ).slice(0, this.limit) diff --git a/src/components/password_reset/password_reset.js b/src/components/password_reset/password_reset.js index 22342fe34..63d567cc5 100644 --- a/src/components/password_reset/password_reset.js +++ b/src/components/password_reset/password_reset.js @@ -24,9 +24,6 @@ const passwordReset = { signedIn: (state) => !!state.users.currentUser, }), ...mapPiniaState(useInstanceStore, ['server', 'mailerEnabled']), - mailerEnabled() { - return this.mailerEnabled - }, }, created() { if (this.signedIn) { diff --git a/src/components/poll/poll_form.js b/src/components/poll/poll_form.js index 6cd3de2a3..3a9bb1638 100644 --- a/src/components/poll/poll_form.js +++ b/src/components/poll/poll_form.js @@ -53,7 +53,7 @@ export default { }, }, pollLimits() { - return useInstanceStore().pollLimits + return useInstanceStore().limits.pollLimits }, maxOptions() { return this.pollLimits.max_options diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 5c511d71e..eb4a6426d 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -307,15 +307,15 @@ const PostStatusForm = { return this.mergedConfig.alwaysShowSubjectInput }, postFormats() { - return useInstanceStore().postFormats || [] + return useInstanceStore().featureSet.postFormats || [] }, safeDMEnabled() { - return useInstanceStore().safeDM + return useInstanceStore().featureSet.safeDM }, pollsAvailable() { return ( - useInstanceStore().pollsAvailable && - useInstanceStore().pollLimits.max_options >= 2 && + useInstanceStore().featureSet.pollsAvailable && + useInstanceStore().limits.pollLimits.max_options >= 2 && this.disablePolls !== true ) }, @@ -344,7 +344,7 @@ const PostStatusForm = { return typeof this.statusId !== 'undefined' && this.statusId.trim() !== '' }, quotable() { - if (!useInstanceStore().quotingAvailable) { + if (!useInstanceStore().featureSet.quotingAvailable) { return false } diff --git a/src/components/settings_modal/tabs/clutter_tab.js b/src/components/settings_modal/tabs/clutter_tab.js index ad5d01b9d..2000711c1 100644 --- a/src/components/settings_modal/tabs/clutter_tab.js +++ b/src/components/settings_modal/tabs/clutter_tab.js @@ -1,6 +1,5 @@ import { mapActions, mapState } from 'pinia' import { v4 as uuidv4 } from 'uuid' -import { mapState as mapVuexState } from 'vuex' import Checkbox from 'src/components/checkbox/checkbox.vue' import Select from 'src/components/select/select.vue' @@ -33,8 +32,8 @@ const ClutterTab = { Object.entries(store.prefsStorage.simple.muteFilters), muteFiltersObject: (store) => store.prefsStorage.simple.muteFilters, }), - ...mapVuexState({ - blockExpirationSupported: (state) => useInstanceStore().blockExpiration, + ...mapState(useInstanceStore, { + blockExpirationSupported: (store) => store.featureSet.blockExpiration, }), onMuteDefaultActionLv1: { get() { diff --git a/src/components/settings_modal/tabs/composing_tab.js b/src/components/settings_modal/tabs/composing_tab.js index 73534bba2..45e8f223c 100644 --- a/src/components/settings_modal/tabs/composing_tab.js +++ b/src/components/settings_modal/tabs/composing_tab.js @@ -130,8 +130,8 @@ const ComposingTab = { }, }, ...SharedComputedObject(), - ...mapState({ - blockExpirationSupported: (state) => useInstanceStore().blockExpiration, + ...mapState(useInstanceStore, { + blockExpirationSupported: (store) => store.featureSet.blockExpiration, }), }, methods: { diff --git a/src/components/settings_modal/tabs/filtering_tab.js b/src/components/settings_modal/tabs/filtering_tab.js index e990e8f3f..705a01af5 100644 --- a/src/components/settings_modal/tabs/filtering_tab.js +++ b/src/components/settings_modal/tabs/filtering_tab.js @@ -1,7 +1,6 @@ import { cloneDeep } from 'lodash' import { mapActions, mapState } from 'pinia' import { v4 as uuidv4 } from 'uuid' -import { mapState as mapVuexState } from 'vuex' import Checkbox from 'src/components/checkbox/checkbox.vue' import Select from 'src/components/select/select.vue' @@ -99,8 +98,8 @@ const FilteringTab = { Object.entries(store.prefsStorage.simple.muteFilters), muteFiltersObject: (store) => store.prefsStorage.simple.muteFilters, }), - ...mapVuexState({ - blockExpirationSupported: (state) => useInstanceStore().blockExpiration, + ...mapState(useInstanceStore, { + blockExpirationSupported: (store) => store.featureSet.blockExpiration, }), onMuteDefaultActionLv1: { get() { diff --git a/src/components/settings_modal/tabs/general_tab.js b/src/components/settings_modal/tabs/general_tab.js index d24d8b77b..65c2af283 100644 --- a/src/components/settings_modal/tabs/general_tab.js +++ b/src/components/settings_modal/tabs/general_tab.js @@ -1,4 +1,4 @@ -import { mapState } from 'vuex' +import { mapState } from 'pinia' import FontControl from 'src/components/font_control/font_control.vue' import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue' @@ -50,8 +50,8 @@ const GeneralTab = { }, }, ...SharedComputedObject(), - ...mapState({ - blockExpirationSupported: (state) => useInstanceStore().blockExpiration, + ...mapState(useInstanceStore, { + blockExpirationSupported: (store) => store.featureSet.blockExpiration, }), }, methods: { diff --git a/src/components/settings_modal/tabs/layout_tab.js b/src/components/settings_modal/tabs/layout_tab.js index 3191af4db..6de712127 100644 --- a/src/components/settings_modal/tabs/layout_tab.js +++ b/src/components/settings_modal/tabs/layout_tab.js @@ -31,10 +31,10 @@ const GeneralTab = { }, computed: { postFormats() { - return useInstanceStore().postFormats || [] + return useInstanceStore().featureSet.postFormats || [] }, instanceShoutboxPresent() { - return useInstanceStore().shoutAvailable + return useInstanceStore().featureSet.shoutAvailable }, columns() { const mode = this.$store.getters.mergedConfig.thirdColumnMode diff --git a/src/components/settings_modal/tabs/security_tab/security_tab.js b/src/components/settings_modal/tabs/security_tab/security_tab.js index 87a70af2a..26db25a5e 100644 --- a/src/components/settings_modal/tabs/security_tab/security_tab.js +++ b/src/components/settings_modal/tabs/security_tab/security_tab.js @@ -43,7 +43,7 @@ const SecurityTab = { return this.$store.state.users.currentUser }, pleromaExtensionsAvailable() { - return useInstanceStore().pleromaExtensionsAvailable + return useInstanceStore().featureSet.pleromaExtensionsAvailable }, oauthTokens() { return useOAuthTokensStore().tokens.map((oauthToken) => { diff --git a/src/components/status/status.js b/src/components/status/status.js index 59656299a..d596cc9c5 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -495,7 +495,7 @@ const Status = { return this.status.edited_at !== null }, editingAvailable() { - return useInstanceStore().editingAvailable + return useInstanceStore().featureSet.editingAvailable }, hasVisibleQuote() { return this.status.quote_url && this.status.quote_visible diff --git a/src/components/status_action_buttons/buttons_definitions.js b/src/components/status_action_buttons/buttons_definitions.js index 16f3b811b..4e0baaa61 100644 --- a/src/components/status_action_buttons/buttons_definitions.js +++ b/src/components/status_action_buttons/buttons_definitions.js @@ -160,7 +160,10 @@ export const BUTTONS = [ icon: 'history', label: 'status.status_history', if({ status, state }) { - return useInstanceStore().editingAvailable && status.edited_at !== null + return ( + useInstanceStore().featureSet.editingAvailable && + status.edited_at !== null + ) }, action({ status }) { const originalStatus = { ...status } @@ -190,7 +193,7 @@ export const BUTTONS = [ if({ status, loggedIn, currentUser, state }) { return ( loggedIn && - useInstanceStore().editingAvailable && + useInstanceStore().featureSet.editingAvailable && status.user.id === currentUser.id ) }, diff --git a/src/components/sticker_picker/sticker_picker.js b/src/components/sticker_picker/sticker_picker.js index 6a0732e29..c732d8033 100644 --- a/src/components/sticker_picker/sticker_picker.js +++ b/src/components/sticker_picker/sticker_picker.js @@ -1,4 +1,6 @@ /* eslint-env browser */ + +import { useEmojiStore } from 'src/stores/emoji.js' import { useInstanceStore } from 'src/stores/instance.js' import statusPosterService from '../../services/status_poster/status_poster.service.js' import TabSwitcher from '../tab_switcher/tab_switcher.jsx' diff --git a/src/components/timeline_menu/timeline_menu.js b/src/components/timeline_menu/timeline_menu.js index fe7539b87..9fcb1d3ea 100644 --- a/src/components/timeline_menu/timeline_menu.js +++ b/src/components/timeline_menu/timeline_menu.js @@ -1,3 +1,4 @@ +import { mapState as mapPiniaState } from 'pinia' import { mapState } from 'vuex' import { filterNavigation } from 'src/components/navigation/filter.js' @@ -59,14 +60,16 @@ const TimelineMenu = { (route === 'bookmark-folder' || route === 'bookmarks') ) }, + ...mapPiniaState(useInstanceStore, ['private', 'federating']), + ...mapPiniaState(useInstanceStore, { + pleromaChatMessagesAvailable: (store) => + store.featureSet.pleromaChatMessagesAvailable, + bookmarkFolders: (store) => + store.featureSet.pleromaBookmarkFoldersAvailable, + bubbleTimeline: (store) => store.featureSet.localBubble, + }), ...mapState({ currentUser: (state) => state.users.currentUser, - privateMode: (state) => useInstanceStore().private, - federating: (state) => useInstanceStore().federating, - bookmarkFolders: (state) => - useInstanceStore().pleromaBookmarkFoldersAvailable, - bubbleTimeline: (state) => - useInstanceStore().localBubbleInstances.length > 0, }), timelinesList() { return filterNavigation( @@ -74,7 +77,7 @@ const TimelineMenu = { { hasChats: this.pleromaChatMessagesAvailable, isFederating: this.federating, - isPrivate: this.privateMode, + isPrivate: this.private, currentUser: this.currentUser, supportsBookmarkFolders: this.bookmarkFolders, supportsBubbleTimeline: this.bubbleTimeline, diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 76fba19bc..62de6dc8a 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -178,7 +178,7 @@ export default { return false }, groupActorAvailable() { - return useInstanceStore().groupActorAvailable + return useInstanceStore().featureSet.groupActorAvailable }, availableActorTypes() { return this.groupActorAvailable diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 767ae1d5b..4e87dae7b 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -88,7 +88,7 @@ const UserProfile = { favoritesTabVisible() { return ( this.isUs || - (useInstanceStore().pleromaPublicFavouritesAvailable && + (useInstanceStore().featureSet.pleromaPublicFavouritesAvailable && !this.user.hide_favorites) ) }, diff --git a/src/components/who_to_follow_panel/who_to_follow_panel.js b/src/components/who_to_follow_panel/who_to_follow_panel.js index ce01ad815..5a42b3fcf 100644 --- a/src/components/who_to_follow_panel/who_to_follow_panel.js +++ b/src/components/who_to_follow_panel/who_to_follow_panel.js @@ -47,7 +47,7 @@ const WhoToFollowPanel = { return this.$store.state.users.currentUser.screen_name }, suggestionsEnabled() { - return useInstanceStore().suggestionsEnabled + return useInstanceStore().featureSet.suggestionsEnabled }, }, methods: { diff --git a/src/modules/api.js b/src/modules/api.js index 3ef78da8b..a901f5023 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -238,7 +238,7 @@ const api = { ) { if ( timeline === 'favourites' && - !useInstanceStore().pleromaPublicFavouritesAvailable + !useInstanceStore().featureSet.pleromaPublicFavouritesAvailable ) return if (store.state.fetchers[timeline]) return @@ -323,7 +323,7 @@ const api = { // Bookmark folders startFetchingBookmarkFolders(store) { if (store.state.fetchers.bookmarkFolders) return - if (!useInstanceStore().pleromaBookmarkFoldersAvailable) return + if (!useInstanceStore().featureSet.pleromaBookmarkFoldersAvailable) return const fetcher = store.state.backendInteractor.startFetchingBookmarkFolders({ store }) store.commit('addFetcher', { fetcherName: 'bookmarkFolders', fetcher }) diff --git a/src/modules/users.js b/src/modules/users.js index 90fbec3c3..c3267828d 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -763,7 +763,9 @@ const users = { // Start fetching notifications dispatch('startFetchingNotifications') - if (useInstanceStore().pleromaChatMessagesAvailable) { + if ( + useInstanceStore().featureSet.pleromaChatMessagesAvailable + ) { // Start fetching chats dispatch('startFetchingChats') } diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js index 03fdd7c5b..643c7c906 100644 --- a/src/services/notifications_fetcher/notifications_fetcher.service.js +++ b/src/services/notifications_fetcher/notifications_fetcher.service.js @@ -29,7 +29,7 @@ const fetchAndUpdate = ({ store, credentials, older = false, since }) => { const timelineData = rootState.notifications const hideMutedPosts = getters.mergedConfig.hideMutedPosts - if (useInstanceStore().pleromaChatMessagesAvailable) { + if (useInstanceStore().featureSet.pleromaChatMessagesAvailable) { mastoApiNotificationTypes.add('pleroma:chat_mention') } diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index 577ad3e1b..9326beda0 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -77,7 +77,7 @@ const fetchAndUpdate = ({ .then((response) => { if (response.errors) { if (timeline === 'favorites') { - useInstanceStore().pleromaPublicFavouritesAvailable = false + useInstanceStore().featureSet.pleromaPublicFavouritesAvailable = false return } throw new Error(`${response.status} ${response.statusText}`) diff --git a/src/stores/emoji.js b/src/stores/emoji.js index 59e2f540f..e7eb294e0 100644 --- a/src/stores/emoji.js +++ b/src/stores/emoji.js @@ -16,7 +16,7 @@ const defaultState = { unicodeEmojiAnnotations: {}, // Stickers - stickers: null + stickers: null, } const SORTED_EMOJI_GROUP_IDS = [ @@ -130,7 +130,7 @@ export const useEmojiStore = defineStore('emoji', { }, }, actions: { - setStickers (stickers) { + setStickers(stickers) { this.stickers = stickers }, async getStaticEmoji() { diff --git a/src/stores/instance.js b/src/stores/instance.js index c67dd20f6..172b6a457 100644 --- a/src/stores/instance.js +++ b/src/stores/instance.js @@ -92,10 +92,6 @@ const defaultState = { localBubble: false, // Akkoma }, - // Html stuff - instanceSpecificPanelContent: '', - tos: '', - // Version Information backendVersion: '', backendRepository: '',