Merge branch 'instance-migration' into shigusegubu-themes3
This commit is contained in:
commit
d0202e9ca9
11 changed files with 15 additions and 15 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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({
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 [
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue