Compare commits
5 commits
4ea48dafb9
...
0fec78ec81
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fec78ec81 | ||
|
|
20e781c71d | ||
|
|
e3a441310f | ||
|
|
6eb94da3e8 | ||
|
|
775a469507 |
9 changed files with 15 additions and 19 deletions
|
|
@ -133,11 +133,8 @@ export default {
|
||||||
userBackground() {
|
userBackground() {
|
||||||
return this.currentUser.background_image
|
return this.currentUser.background_image
|
||||||
},
|
},
|
||||||
instanceBackground() {
|
|
||||||
return this.mergedConfig.hideInstanceWallpaper ? null : this.background
|
|
||||||
},
|
|
||||||
background() {
|
background() {
|
||||||
return this.userBackground || this.instanceBackground
|
return this.userBackground || (this.mergedConfig.hideInstanceWallpaper ? null : this.instanceBackground)
|
||||||
},
|
},
|
||||||
bgStyle() {
|
bgStyle() {
|
||||||
if (this.background) {
|
if (this.background) {
|
||||||
|
|
@ -204,7 +201,7 @@ export default {
|
||||||
]),
|
]),
|
||||||
...mapState(useInstanceStore, ['styleDataUsed', 'private']),
|
...mapState(useInstanceStore, ['styleDataUsed', 'private']),
|
||||||
...mapState(useInstanceStore, {
|
...mapState(useInstanceStore, {
|
||||||
background: (store) => store.instanceIdentity.background,
|
instanceBackground: (store) => store.instanceIdentity.background,
|
||||||
showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel,
|
showFeaturesPanel: (store) => store.instanceIdentity.showFeaturesPanel,
|
||||||
showInstanceSpecificPanel: (store) =>
|
showInstanceSpecificPanel: (store) =>
|
||||||
store.instanceIdentity.showInstanceSpecificPanel,
|
store.instanceIdentity.showInstanceSpecificPanel,
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ const getInstancePanel = async ({ store }) => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const html = await res.text()
|
const html = await res.text()
|
||||||
useInstanceStore().set({
|
useInstanceStore().set({
|
||||||
name: 'instanceIdentity.instanceSpecificPanelContent',
|
path: 'instanceIdentity.instanceSpecificPanelContent',
|
||||||
value: html,
|
value: html,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -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 || !privateMode"
|
v-if="currentUser || !private"
|
||||||
@toggled="onSearchBarToggled"
|
@toggled="onSearchBarToggled"
|
||||||
@click.stop
|
@click.stop
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@ 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,
|
||||||
privateMode: (state) => useInstanceStore().private,
|
|
||||||
federating: (state) => useInstanceStore().federating,
|
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,9 @@ const NavPanel = {
|
||||||
unreadAnnouncementCount: 'unreadAnnouncementCount',
|
unreadAnnouncementCount: 'unreadAnnouncementCount',
|
||||||
supportsAnnouncements: (store) => store.supportsAnnouncements,
|
supportsAnnouncements: (store) => store.supportsAnnouncements,
|
||||||
}),
|
}),
|
||||||
...mapPiniaState(useInstanceStore, ['private', 'federating']),
|
...mapPiniaState(useInstanceStore, ['federating']),
|
||||||
...mapPiniaState(useInstanceStore, {
|
...mapPiniaState(useInstanceStore, {
|
||||||
|
privateMode: (store) => store.private,
|
||||||
pleromaChatMessagesAvailable: (store) =>
|
pleromaChatMessagesAvailable: (store) =>
|
||||||
store.featureSet.pleromaChatMessagesAvailable,
|
store.featureSet.pleromaChatMessagesAvailable,
|
||||||
bookmarkFolders: (store) =>
|
bookmarkFolders: (store) =>
|
||||||
|
|
|
||||||
|
|
@ -79,12 +79,6 @@ const SideDrawer = {
|
||||||
followRequestCount() {
|
followRequestCount() {
|
||||||
return this.$store.state.api.followRequests.length
|
return this.$store.state.api.followRequests.length
|
||||||
},
|
},
|
||||||
privateMode() {
|
|
||||||
return useInstanceStore().private
|
|
||||||
},
|
|
||||||
federating() {
|
|
||||||
return useInstanceStore().federating
|
|
||||||
},
|
|
||||||
timelinesRoute() {
|
timelinesRoute() {
|
||||||
let name
|
let name
|
||||||
if (useInterfaceStore().lastTimeline) {
|
if (useInterfaceStore().lastTimeline) {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li
|
<li
|
||||||
v-if="currentUser || !privateMode"
|
v-if="currentUser || !private"
|
||||||
@click="toggleDrawer"
|
@click="toggleDrawer"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
|
|
@ -166,7 +166,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<li
|
<li
|
||||||
v-if="currentUser || !privateMode"
|
v-if="currentUser || !private"
|
||||||
@click="toggleDrawer"
|
@click="toggleDrawer"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ const setSettings = async () => {
|
||||||
const locale = vuexState.config.interfaceLanguage || 'en'
|
const locale = vuexState.config.interfaceLanguage || 'en'
|
||||||
i18n.locale = locale
|
i18n.locale = locale
|
||||||
const notificationsNativeArray = Object.entries(
|
const notificationsNativeArray = Object.entries(
|
||||||
vuexState.config.notificationNative,
|
vuexState.config.notificationNative || {},
|
||||||
)
|
)
|
||||||
state.webPushAlwaysShowNotifications =
|
state.webPushAlwaysShowNotifications =
|
||||||
vuexState.config.webPushAlwaysShowNotifications
|
vuexState.config.webPushAlwaysShowNotifications
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,11 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
cookieDomainRewrite: 'localhost',
|
cookieDomainRewrite: 'localhost',
|
||||||
},
|
},
|
||||||
|
'/instance': {
|
||||||
|
target,
|
||||||
|
changeOrigin: true,
|
||||||
|
cookieDomainRewrite: 'localhost',
|
||||||
|
},
|
||||||
'/socket': {
|
'/socket': {
|
||||||
target,
|
target,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue