diff --git a/src/App.js b/src/App.js index 512853200..220f563f8 100644 --- a/src/App.js +++ b/src/App.js @@ -133,8 +133,11 @@ export default { userBackground() { return this.currentUser.background_image }, + instanceBackground() { + return this.mergedConfig.hideInstanceWallpaper ? null : this.background + }, background() { - return this.userBackground || (this.mergedConfig.hideInstanceWallpaper ? null : this.instanceBackground) + return this.userBackground || this.instanceBackground }, bgStyle() { if (this.background) { @@ -201,7 +204,7 @@ export default { ]), ...mapState(useInstanceStore, ['styleDataUsed', 'private']), ...mapState(useInstanceStore, { - instanceBackground: (store) => store.instanceIdentity.background, + background: (store) => store.instanceIdentity.background, showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel, showInstanceSpecificPanel: (store) => store.instanceIdentity.showInstanceSpecificPanel, diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 79ff631ca..a970d25cc 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -201,7 +201,7 @@ const getInstancePanel = async ({ store }) => { if (res.ok) { const html = await res.text() useInstanceStore().set({ - path: 'instanceIdentity.instanceSpecificPanelContent', + name: 'instanceIdentity.instanceSpecificPanelContent', value: html, }) } else { diff --git a/src/components/desktop_nav/desktop_nav.vue b/src/components/desktop_nav/desktop_nav.vue index 676e2428f..da427f2a1 100644 --- a/src/components/desktop_nav/desktop_nav.vue +++ b/src/components/desktop_nav/desktop_nav.vue @@ -33,7 +33,7 @@
diff --git a/src/components/lists_menu/lists_menu_content.js b/src/components/lists_menu/lists_menu_content.js index 49b413b4f..2279ca6f0 100644 --- a/src/components/lists_menu/lists_menu_content.js +++ b/src/components/lists_menu/lists_menu_content.js @@ -16,9 +16,10 @@ export const ListsMenuContent = { ...mapPiniaState(useListsStore, { lists: getListEntries, }), - ...mapPiniaState(useInstanceStore, ['private','federating']), ...mapState({ currentUser: (state) => state.users.currentUser, + privateMode: (state) => useInstanceStore().private, + federating: (state) => useInstanceStore().federating, }), }, } diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index eb10c8148..5ea5faef3 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -112,9 +112,8 @@ const NavPanel = { unreadAnnouncementCount: 'unreadAnnouncementCount', supportsAnnouncements: (store) => store.supportsAnnouncements, }), - ...mapPiniaState(useInstanceStore, ['federating']), + ...mapPiniaState(useInstanceStore, ['private', 'federating']), ...mapPiniaState(useInstanceStore, { - privateMode: (store) => store.private, pleromaChatMessagesAvailable: (store) => store.featureSet.pleromaChatMessagesAvailable, bookmarkFolders: (store) => diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js index 40fcdc23d..0f7b06990 100644 --- a/src/components/side_drawer/side_drawer.js +++ b/src/components/side_drawer/side_drawer.js @@ -79,6 +79,12 @@ const SideDrawer = { followRequestCount() { return this.$store.state.api.followRequests.length }, + privateMode() { + return useInstanceStore().private + }, + federating() { + return useInstanceStore().federating + }, timelinesRoute() { let name if (useInterfaceStore().lastTimeline) { diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue index 0db39d43f..c034edf91 100644 --- a/src/components/side_drawer/side_drawer.vue +++ b/src/components/side_drawer/side_drawer.vue @@ -47,7 +47,7 @@
    • { const locale = vuexState.config.interfaceLanguage || 'en' i18n.locale = locale const notificationsNativeArray = Object.entries( - vuexState.config.notificationNative || {}, + vuexState.config.notificationNative, ) state.webPushAlwaysShowNotifications = vuexState.config.webPushAlwaysShowNotifications diff --git a/vite.config.js b/vite.config.js index 401cb4b35..2b6187413 100644 --- a/vite.config.js +++ b/vite.config.js @@ -88,11 +88,6 @@ export default defineConfig(async ({ mode, command }) => { changeOrigin: true, cookieDomainRewrite: 'localhost', }, - '/instance': { - target, - changeOrigin: true, - cookieDomainRewrite: 'localhost', - }, '/socket': { target, changeOrigin: true,