Compare commits
4 commits
develop
...
feature/de
Author | SHA1 | Date | |
---|---|---|---|
|
69e551911c | ||
|
e476318012 | ||
|
f225000ce9 | ||
|
6f883c3587 |
11 changed files with 43 additions and 6 deletions
|
@ -38,6 +38,11 @@ module.exports = {
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
cookieDomainRewrite: 'localhost'
|
cookieDomainRewrite: 'localhost'
|
||||||
},
|
},
|
||||||
|
'/instance': {
|
||||||
|
target,
|
||||||
|
changeOrigin: true,
|
||||||
|
cookieDomainRewrite: 'localhost'
|
||||||
|
},
|
||||||
'/nodeinfo': {
|
'/nodeinfo': {
|
||||||
target,
|
target,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
|
@ -96,6 +96,10 @@ export default {
|
||||||
!this.$store.state.config.hideISP &&
|
!this.$store.state.config.hideISP &&
|
||||||
this.$store.state.instance.instanceSpecificPanelContent
|
this.$store.state.instance.instanceSpecificPanelContent
|
||||||
},
|
},
|
||||||
|
showInstanceSpecificPanelInSidebar () {
|
||||||
|
return this.showInstanceSpecificPanel &&
|
||||||
|
this.$store.state.instance.showInstanceSpecificPanelInSidebar
|
||||||
|
},
|
||||||
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
||||||
isMobileLayout () { return this.$store.state.interface.mobileLayout }
|
isMobileLayout () { return this.$store.state.interface.mobileLayout }
|
||||||
},
|
},
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<user-panel />
|
<user-panel />
|
||||||
<div v-if="!isMobileLayout">
|
<div v-if="!isMobileLayout">
|
||||||
<nav-panel />
|
<nav-panel />
|
||||||
<instance-specific-panel v-if="showInstanceSpecificPanel" />
|
<instance-specific-panel v-if="showInstanceSpecificPanelInSidebar" />
|
||||||
<features-panel v-if="!currentUser && showFeaturesPanel" />
|
<features-panel v-if="!currentUser && showFeaturesPanel" />
|
||||||
<who-to-follow-panel v-if="currentUser && suggestionsEnabled" />
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled" />
|
||||||
<notifications v-if="currentUser" />
|
<notifications v-if="currentUser" />
|
||||||
|
|
|
@ -99,6 +99,7 @@ const setSettings = async ({ apiConfig, staticConfig, store }) => {
|
||||||
copyInstanceOption('redirectRootNoLogin')
|
copyInstanceOption('redirectRootNoLogin')
|
||||||
copyInstanceOption('redirectRootLogin')
|
copyInstanceOption('redirectRootLogin')
|
||||||
copyInstanceOption('showInstanceSpecificPanel')
|
copyInstanceOption('showInstanceSpecificPanel')
|
||||||
|
copyInstanceOption('showInstanceSpecificPanelInSidebar')
|
||||||
copyInstanceOption('minimalScopesMode')
|
copyInstanceOption('minimalScopesMode')
|
||||||
copyInstanceOption('hideMutedPosts')
|
copyInstanceOption('hideMutedPosts')
|
||||||
copyInstanceOption('collapseMessageWithSubject')
|
copyInstanceOption('collapseMessageWithSubject')
|
||||||
|
|
|
@ -9,7 +9,12 @@ const About = {
|
||||||
TermsOfServicePanel
|
TermsOfServicePanel
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel }
|
showFeaturesPanel () { return this.$store.state.instance.showFeaturesPanel },
|
||||||
|
showInstanceSpecificPanel() {
|
||||||
|
return this.$store.state.instance.showInstanceSpecificPanel &&
|
||||||
|
!this.$store.state.instance.showInstanceSpecificPanelInSidebar
|
||||||
|
},
|
||||||
|
isMobileLayout () { return this.$store.state.interface.mobileLayout }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<instance-specific-panel />
|
<instance-specific-panel v-if="isMobileLayout || showInstanceSpecificPanel" header="true" />
|
||||||
<features-panel v-if="showFeaturesPanel" />
|
<features-panel v-if="showFeaturesPanel" />
|
||||||
<terms-of-service-panel />
|
<terms-of-service-panel />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
const InstanceSpecificPanel = {
|
const InstanceSpecificPanel = {
|
||||||
|
props: [
|
||||||
|
'header'
|
||||||
|
],
|
||||||
computed: {
|
computed: {
|
||||||
instanceSpecificPanelContent () {
|
instanceSpecificPanelContent () {
|
||||||
return this.$store.state.instance.instanceSpecificPanelContent
|
return this.$store.state.instance.instanceSpecificPanelContent
|
||||||
|
},
|
||||||
|
sitename () {
|
||||||
|
return this.$store.state.instance.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="instance-specific-panel">
|
<div class="instance-specific-panel">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default base01-background">
|
||||||
<div class="panel-body">
|
<div class="panel-heading timeline-heading base02-background base04" v-if="header">
|
||||||
|
<div class="title">{{ $t('nav.about') }} {{ sitename }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body isp-content">
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
<div v-html="instanceSpecificPanelContent" />
|
<div v-html="instanceSpecificPanelContent" />
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
|
@ -11,3 +14,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./instance_specific_panel.js" ></script>
|
<script src="./instance_specific_panel.js" ></script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.isp-content {
|
||||||
|
margin: 1em
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -38,6 +38,11 @@
|
||||||
{{ $t("nav.twkn") }}
|
{{ $t("nav.twkn") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<router-link :to="{ name: 'about'}">
|
||||||
|
{{ $t("nav.about") }}
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,6 +16,7 @@ const defaultState = {
|
||||||
redirectRootNoLogin: '/main/all',
|
redirectRootNoLogin: '/main/all',
|
||||||
redirectRootLogin: '/main/friends',
|
redirectRootLogin: '/main/friends',
|
||||||
showInstanceSpecificPanel: false,
|
showInstanceSpecificPanel: false,
|
||||||
|
showInstanceSpecificPanelInSidebar: false,
|
||||||
alwaysShowSubjectInput: true,
|
alwaysShowSubjectInput: true,
|
||||||
hideMutedPosts: false,
|
hideMutedPosts: false,
|
||||||
collapseMessageWithSubject: false,
|
collapseMessageWithSubject: false,
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
"logoMargin": ".1em",
|
"logoMargin": ".1em",
|
||||||
"redirectRootNoLogin": "/main/all",
|
"redirectRootNoLogin": "/main/all",
|
||||||
"redirectRootLogin": "/main/friends",
|
"redirectRootLogin": "/main/friends",
|
||||||
"showInstanceSpecificPanel": false,
|
"showInstanceSpecificPanel": true,
|
||||||
|
"showInstanceSpecificPanelInSidebar": false,
|
||||||
"collapseMessageWithSubject": false,
|
"collapseMessageWithSubject": false,
|
||||||
"scopeCopy": true,
|
"scopeCopy": true,
|
||||||
"subjectLineBehavior": "email",
|
"subjectLineBehavior": "email",
|
||||||
|
|
Loading…
Reference in a new issue