Merge branch 'instance-migration' into shigusegubu-themes3
This commit is contained in:
commit
0fec78ec81
7 changed files with 12 additions and 13 deletions
|
|
@ -201,7 +201,7 @@ const getInstancePanel = async ({ store }) => {
|
|||
if (res.ok) {
|
||||
const html = await res.text()
|
||||
useInstanceStore().set({
|
||||
name: 'instanceIdentity.instanceSpecificPanelContent',
|
||||
path: 'instanceIdentity.instanceSpecificPanelContent',
|
||||
value: html,
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</router-link>
|
||||
<div class="item right actions">
|
||||
<search-bar
|
||||
v-if="currentUser || !privateMode"
|
||||
v-if="currentUser || !private"
|
||||
@toggled="onSearchBarToggled"
|
||||
@click.stop
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -16,10 +16,9 @@ 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,
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,8 +112,9 @@ const NavPanel = {
|
|||
unreadAnnouncementCount: 'unreadAnnouncementCount',
|
||||
supportsAnnouncements: (store) => store.supportsAnnouncements,
|
||||
}),
|
||||
...mapPiniaState(useInstanceStore, ['private', 'federating']),
|
||||
...mapPiniaState(useInstanceStore, ['federating']),
|
||||
...mapPiniaState(useInstanceStore, {
|
||||
privateMode: (store) => store.private,
|
||||
pleromaChatMessagesAvailable: (store) =>
|
||||
store.featureSet.pleromaChatMessagesAvailable,
|
||||
bookmarkFolders: (store) =>
|
||||
|
|
|
|||
|
|
@ -79,12 +79,6 @@ const SideDrawer = {
|
|||
followRequestCount() {
|
||||
return this.$store.state.api.followRequests.length
|
||||
},
|
||||
privateMode() {
|
||||
return useInstanceStore().private
|
||||
},
|
||||
federating() {
|
||||
return useInstanceStore().federating
|
||||
},
|
||||
timelinesRoute() {
|
||||
let name
|
||||
if (useInterfaceStore().lastTimeline) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
</router-link>
|
||||
</li>
|
||||
<li
|
||||
v-if="currentUser || !privateMode"
|
||||
v-if="currentUser || !private"
|
||||
@click="toggleDrawer"
|
||||
>
|
||||
<router-link
|
||||
|
|
@ -166,7 +166,7 @@
|
|||
</ul>
|
||||
<ul>
|
||||
<li
|
||||
v-if="currentUser || !privateMode"
|
||||
v-if="currentUser || !private"
|
||||
@click="toggleDrawer"
|
||||
>
|
||||
<router-link
|
||||
|
|
|
|||
|
|
@ -88,6 +88,11 @@ export default defineConfig(async ({ mode, command }) => {
|
|||
changeOrigin: true,
|
||||
cookieDomainRewrite: 'localhost',
|
||||
},
|
||||
'/instance': {
|
||||
target,
|
||||
changeOrigin: true,
|
||||
cookieDomainRewrite: 'localhost',
|
||||
},
|
||||
'/socket': {
|
||||
target,
|
||||
changeOrigin: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue