Merge branch 'instance-migration' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2026-02-05 01:40:10 +02:00
commit d0202e9ca9
11 changed files with 15 additions and 15 deletions

View file

@ -199,7 +199,7 @@ export default {
'styleDataUsed', 'styleDataUsed',
'layoutType', 'layoutType',
]), ]),
...mapState(useInstanceStore, ['styleDataUsed', 'private']), ...mapState(useInstanceStore, ['styleDataUsed']),
...mapState(useInstanceCapabilitiesStore, [ ...mapState(useInstanceCapabilitiesStore, [
'suggestionsEnabled', 'suggestionsEnabled',
'editingAvailable', 'editingAvailable',

View file

@ -393,7 +393,7 @@ const getNodeInfo = async ({ store }) => {
}) })
const priv = metadata.private const priv = metadata.private
useInstanceStore().set({ name: 'private', value: priv }) useInstanceStore().set({ name: 'privateMode', value: priv })
const frontendVersion = window.___pleromafe_commit_hash const frontendVersion = window.___pleromafe_commit_hash
useInstanceStore().set({ useInstanceStore().set({

View file

@ -83,7 +83,7 @@ export default {
}, },
) )
}, },
...mapState(useInstanceStore, ['private']), ...mapState(useInstanceStore, ['privateMode']),
...mapState(useInstanceStore, { ...mapState(useInstanceStore, {
logoMask: (store) => store.instanceIdentity.logoMask, logoMask: (store) => store.instanceIdentity.logoMask,
logo: (store) => store.instanceIdentity.logo, logo: (store) => store.instanceIdentity.logo,

View file

@ -33,7 +33,7 @@
</router-link> </router-link>
<div class="item right actions"> <div class="item right actions">
<search-bar <search-bar
v-if="currentUser || !private" v-if="currentUser || !privateMode"
@toggled="onSearchBarToggled" @toggled="onSearchBarToggled"
@click.stop @click.stop
/> />

View file

@ -16,7 +16,6 @@ export const ListsMenuContent = {
...mapPiniaState(useListsStore, { ...mapPiniaState(useListsStore, {
lists: getListEntries, lists: getListEntries,
}), }),
...mapPiniaState(useInstanceStore, ['private', 'federating']),
...mapState({ ...mapState({
currentUser: (state) => state.users.currentUser, currentUser: (state) => state.users.currentUser,
}), }),

View file

@ -74,7 +74,7 @@ const NavPanel = {
pinnedItems: (store) => pinnedItems: (store) =>
new Set(store.prefsStorage.collections.pinnedNavItems), new Set(store.prefsStorage.collections.pinnedNavItems),
}), }),
...mapPiniaState(useInstanceStore, ['private', 'federating']), ...mapPiniaState(useInstanceStore, ['privateMode', 'federating']),
...mapPiniaState(useInstanceCapabilitiesStore, [ ...mapPiniaState(useInstanceCapabilitiesStore, [
'pleromaChatMessagesAvailable', 'pleromaChatMessagesAvailable',
'localBubble', 'localBubble',
@ -95,7 +95,7 @@ const NavPanel = {
hasChats: this.pleromaChatMessagesAvailable, hasChats: this.pleromaChatMessagesAvailable,
hasAnnouncements: this.supportsAnnouncements, hasAnnouncements: this.supportsAnnouncements,
isFederating: this.federating, isFederating: this.federating,
isPrivate: this.private, isPrivate: this.privateMode,
currentUser: this.currentUser, currentUser: this.currentUser,
supportsBubbleTimeline: this.localBubble, supportsBubbleTimeline: this.localBubble,
supportsBookmarkFolders: this.bookmarks, supportsBookmarkFolders: this.bookmarks,
@ -119,7 +119,7 @@ const NavPanel = {
supportsBubbleTimeline: this.localBubble, supportsBubbleTimeline: this.localBubble,
supportsBookmarkFolders: this.bookmarks, supportsBookmarkFolders: this.bookmarks,
isFederating: this.federating, isFederating: this.federating,
isPrivate: this.private, isPrivate: this.privateMode,
currentUser: this.currentUser, currentUser: this.currentUser,
}, },
).slice(0, this.limit) ).slice(0, this.limit)

View file

@ -100,7 +100,7 @@ const SideDrawer = {
'pleromaChatMessagesAvailable', 'pleromaChatMessagesAvailable',
'suggestionsEnabled', 'suggestionsEnabled',
]), ]),
...mapState(useInstanceStore, ['private', 'federating']), ...mapState(useInstanceStore, ['privateMode', 'federating']),
...mapState(useInstanceStore, { ...mapState(useInstanceStore, {
logo: (store) => store.instanceIdentity.logo, logo: (store) => store.instanceIdentity.logo,
sitename: (store) => store.instanceIdentity.name, sitename: (store) => store.instanceIdentity.name,

View file

@ -47,7 +47,7 @@
</router-link> </router-link>
</li> </li>
<li <li
v-if="currentUser || !private" v-if="currentUser || !privateMode"
@click="toggleDrawer" @click="toggleDrawer"
> >
<router-link <router-link
@ -166,7 +166,7 @@
</ul> </ul>
<ul> <ul>
<li <li
v-if="currentUser || !private" v-if="currentUser || !privateMode"
@click="toggleDrawer" @click="toggleDrawer"
> >
<router-link <router-link

View file

@ -94,7 +94,8 @@ export default {
return this.status.thread_muted return this.status.thread_muted
}, },
hideCustomEmoji() { hideCustomEmoji() {
return !useInstanceCapabilitiesStore().pleromaCustomEmojiReactionsAvailable return !useInstanceCapabilitiesStore()
.pleromaCustomEmojiReactionsAvailable
}, },
buttonInnerClass() { buttonInnerClass() {
return [ return [

View file

@ -68,7 +68,7 @@ const TimelineMenu = {
'bookmarkFolders', 'bookmarkFolders',
'localBubble', 'localBubble',
]), ]),
...mapPiniaState(useInstanceStore, ['private', 'federating']), ...mapPiniaState(useInstanceStore, ['privateMode', 'federating']),
...mapState({ ...mapState({
currentUser: (state) => state.users.currentUser, currentUser: (state) => state.users.currentUser,
}), }),
@ -78,7 +78,7 @@ const TimelineMenu = {
{ {
hasChats: this.pleromaChatMessagesAvailable, hasChats: this.pleromaChatMessagesAvailable,
isFederating: this.federating, isFederating: this.federating,
isPrivate: this.private, isPrivate: this.privateMode,
currentUser: this.currentUser, currentUser: this.currentUser,
supportsBookmarkFolders: this.pleromaBookmarkFoldersAvailable, supportsBookmarkFolders: this.pleromaBookmarkFoldersAvailable,
supportsBubbleTimeline: this.localBubble, supportsBubbleTimeline: this.localBubble,

View file

@ -20,7 +20,7 @@ const defaultState = {
registrationOpen: true, registrationOpen: true,
server: 'http://localhost:4040/', server: 'http://localhost:4040/',
textlimit: 5000, textlimit: 5000,
private: false, privateMode: false,
federating: true, federating: true,
federationPolicy: null, federationPolicy: null,
themesIndex: null, themesIndex: null,