change defaults
This commit is contained in:
parent
0ae3985a52
commit
7ae85c8318
|
@ -52,10 +52,10 @@ const MentionLink = {
|
||||||
if (this.highlight) return highlightClass(this.user)
|
if (this.highlight) return highlightClass(this.user)
|
||||||
},
|
},
|
||||||
oldPlace () {
|
oldPlace () {
|
||||||
return this.mergedConfig.mentionsOldPlace
|
return !this.mergedConfig.mentionsOwnLine
|
||||||
},
|
},
|
||||||
oldStyle () {
|
oldStyle () {
|
||||||
return this.mergedConfig.mentionsOldStyle
|
return !this.mergedConfig.mentionsNewStyle
|
||||||
},
|
},
|
||||||
style () {
|
style () {
|
||||||
if (this.highlight) {
|
if (this.highlight) {
|
||||||
|
|
|
@ -23,8 +23,14 @@
|
||||||
@click.prevent="onClick"
|
@click.prevent="onClick"
|
||||||
>
|
>
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
<span class="shortName"><span class="userName" v-html="userName" /></span>
|
<span class="shortName"><span
|
||||||
<span class="you" v-if="isYou">{{ $t('status.you') }}</span>
|
class="userName"
|
||||||
|
v-html="userName"
|
||||||
|
/></span>
|
||||||
|
<span
|
||||||
|
v-if="isYou"
|
||||||
|
class="you"
|
||||||
|
>{{ $t('status.you') }}</span>
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
</button>
|
</button>
|
||||||
<span
|
<span
|
||||||
|
@ -33,7 +39,10 @@
|
||||||
:class="[highlightType]"
|
:class="[highlightType]"
|
||||||
>
|
>
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
<span class="userNameFull" v-html="userNameFull" />
|
<span
|
||||||
|
class="userNameFull"
|
||||||
|
v-html="userNameFull"
|
||||||
|
/>
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -15,7 +15,7 @@ const MentionsLine = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
oldStyle () {
|
oldStyle () {
|
||||||
return this.mergedConfig.mentionsOldStyle
|
return !this.mergedConfig.mentionsNewStyle
|
||||||
},
|
},
|
||||||
limit () {
|
limit () {
|
||||||
return 6
|
return 6
|
||||||
|
@ -39,7 +39,7 @@ const MentionsLine = {
|
||||||
: '-newStyle'
|
: '-newStyle'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
...mapGetters(['mergedConfig']),
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleShowMore () {
|
toggleShowMore () {
|
||||||
|
|
|
@ -2,20 +2,23 @@
|
||||||
<span class="MentionsLine">
|
<span class="MentionsLine">
|
||||||
<MentionLink
|
<MentionLink
|
||||||
v-for="mention in mentions"
|
v-for="mention in mentions"
|
||||||
class="mention-link"
|
|
||||||
:key="mention.statusnet_profile_url"
|
:key="mention.statusnet_profile_url"
|
||||||
|
class="mention-link"
|
||||||
:content="mention.statusnet_profile_url"
|
:content="mention.statusnet_profile_url"
|
||||||
:url="mention.statusnet_profile_url"
|
:url="mention.statusnet_profile_url"
|
||||||
:first-mention="false"
|
:first-mention="false"
|
||||||
/><span v-if="manyMentions" class="extraMentions">
|
/><span
|
||||||
|
v-if="manyMentions"
|
||||||
|
class="extraMentions"
|
||||||
|
>
|
||||||
<span
|
<span
|
||||||
v-if="expanded"
|
v-if="expanded"
|
||||||
class="fullExtraMentions"
|
class="fullExtraMentions"
|
||||||
>
|
>
|
||||||
<MentionLink
|
<MentionLink
|
||||||
v-for="mention in extraMentions"
|
v-for="mention in extraMentions"
|
||||||
class="mention-link"
|
|
||||||
:key="mention.statusnet_profile_url"
|
:key="mention.statusnet_profile_url"
|
||||||
|
class="mention-link"
|
||||||
:content="mention.statusnet_profile_url"
|
:content="mention.statusnet_profile_url"
|
||||||
:url="mention.statusnet_profile_url"
|
:url="mention.statusnet_profile_url"
|
||||||
:first-mention="false"
|
:first-mention="false"
|
||||||
|
|
|
@ -37,13 +37,13 @@
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="mentionsOldPlace">
|
<BooleanSetting path="mentionsOwnLine">
|
||||||
{{ $t('settings.mentions_old_place') }}
|
{{ $t('settings.mentions_new_place') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="mentionsOldStyle">
|
<BooleanSetting path="mentionsNewStyle">
|
||||||
{{ $t('settings.mentions_old_style') }}
|
{{ $t('settings.mentions_new_style') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -163,8 +163,8 @@ const Status = {
|
||||||
muteWordHits () {
|
muteWordHits () {
|
||||||
return muteWordHits(this.status, this.muteWords)
|
return muteWordHits(this.status, this.muteWords)
|
||||||
},
|
},
|
||||||
mentionsOldPlace () {
|
mentionsOwnLine () {
|
||||||
return this.mergedConfig.mentionsOldPlace
|
return this.mergedConfig.mentionsOwnLine
|
||||||
},
|
},
|
||||||
mentions () {
|
mentions () {
|
||||||
return this.statusoid.attentions.filter(attn => {
|
return this.statusoid.attentions.filter(attn => {
|
||||||
|
|
|
@ -291,7 +291,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="hasMentions && !mentionsOldPlace" class="heading-mentions-row">
|
<div
|
||||||
|
v-if="hasMentions && mentionsOwnLine"
|
||||||
|
class="heading-mentions-row"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
class="mentions"
|
class="mentions"
|
||||||
>
|
>
|
||||||
|
|
|
@ -105,8 +105,8 @@ const StatusContent = {
|
||||||
attachmentTypes () {
|
attachmentTypes () {
|
||||||
return this.status.attachments.map(file => fileType.fileType(file.mimetype))
|
return this.status.attachments.map(file => fileType.fileType(file.mimetype))
|
||||||
},
|
},
|
||||||
mentionsOldPlace () {
|
mentionsOwnLine () {
|
||||||
return this.mergedConfig.mentionsOldPlace
|
return this.mergedConfig.mentionsOwnLine
|
||||||
},
|
},
|
||||||
mentions () {
|
mentions () {
|
||||||
return this.status.attentions
|
return this.status.attentions
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
v-if="!hideSubjectStatus && !(singleLine && status.summary_html)"
|
v-if="!hideSubjectStatus && !(singleLine && status.summary_html)"
|
||||||
>
|
>
|
||||||
<MentionsLine
|
<MentionsLine
|
||||||
v-if="mentionsOldPlace"
|
v-if="!mentionsOwnLine"
|
||||||
:attentions="status.attentions"
|
:attentions="status.attentions"
|
||||||
class="mentions-line"
|
class="mentions-line"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -54,8 +54,8 @@ export const defaultState = {
|
||||||
interfaceLanguage: browserLocale,
|
interfaceLanguage: browserLocale,
|
||||||
hideScopeNotice: false,
|
hideScopeNotice: false,
|
||||||
useStreamingApi: false,
|
useStreamingApi: false,
|
||||||
mentionsOldPlace: false,
|
mentionsOwnLine: false,
|
||||||
mentionsOldStyle: false,
|
mentionsNewStyle: false,
|
||||||
sidebarRight: undefined, // instance default
|
sidebarRight: undefined, // instance default
|
||||||
scopeCopy: undefined, // instance default
|
scopeCopy: undefined, // instance default
|
||||||
subjectLineBehavior: undefined, // instance default
|
subjectLineBehavior: undefined, // instance default
|
||||||
|
|
Loading…
Reference in New Issue