Merge branch 'develop' into shigusegubu
* develop: small fix Made showing format selection optional and default to false Fix mistakes Change styles a bit, make pre-formatted blocks not overflow but scroll Add styles for h1/2/3/4/5 tags in status html post status form: styling fixes for content-type selector, align icons with selector Pass user id to fetchFriends i18n: make "plain text" translatable add the ability to select a post's content type fix Add titles to source/expand buttons Add titles to post visibility icons
This commit is contained in:
commit
4b186fb475
11 changed files with 75 additions and 23 deletions
|
@ -498,6 +498,14 @@ nav {
|
||||||
color: $fallback--lightFg;
|
color: $fallback--lightFg;
|
||||||
color: var(--lightFg, $fallback--lightFg);
|
color: var(--lightFg, $fallback--lightFg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-format {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div {
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.visibility-notice {
|
.visibility-notice {
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadmore-error {
|
.loadmore-error {
|
||||||
position: absolute;
|
|
||||||
right: 0.6em;
|
|
||||||
min-width: 6em;
|
min-width: 6em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0 0.25em 0 0.25em;
|
padding: 0 0.25em 0 0.25em;
|
||||||
|
|
|
@ -138,6 +138,9 @@ const PostStatusForm = {
|
||||||
},
|
},
|
||||||
scopeOptionsEnabled () {
|
scopeOptionsEnabled () {
|
||||||
return this.$store.state.config.scopeOptionsEnabled
|
return this.$store.state.config.scopeOptionsEnabled
|
||||||
|
},
|
||||||
|
formattingOptionsEnabled () {
|
||||||
|
return this.$store.state.config.formattingOptionsEnabled
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -32,13 +32,26 @@
|
||||||
@input="resize"
|
@input="resize"
|
||||||
@paste="paste">
|
@paste="paste">
|
||||||
</textarea>
|
</textarea>
|
||||||
<div v-if="scopeOptionsEnabled" class="visibility-tray">
|
<div class="visibility-tray">
|
||||||
|
<span class="text-format" v-if="formattingOptionsEnabled">
|
||||||
|
<label for="post-content-type" class="select">
|
||||||
|
<select id="post-content-type" v-model="newStatus.contentType" class="form-control">
|
||||||
|
<option value="text/plain">{{$t('post_status.content_type.plain_text')}}</option>
|
||||||
|
<option value="text/html">HTML</option>
|
||||||
|
<option value="text/markdown">Markdown</option>
|
||||||
|
</select>
|
||||||
|
<i class="icon-down-open"></i>
|
||||||
|
</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<div v-if="scopeOptionsEnabled">
|
||||||
<i v-on:click="changeVis('direct')" class="icon-mail-alt" :class="vis.direct" :title="$t('post_status.scope.direct')"></i>
|
<i v-on:click="changeVis('direct')" class="icon-mail-alt" :class="vis.direct" :title="$t('post_status.scope.direct')"></i>
|
||||||
<i v-on:click="changeVis('private')" class="icon-lock" :class="vis.private" :title="$t('post_status.scope.private')"></i>
|
<i v-on:click="changeVis('private')" class="icon-lock" :class="vis.private" :title="$t('post_status.scope.private')"></i>
|
||||||
<i v-on:click="changeVis('unlisted')" class="icon-lock-open-alt" :class="vis.unlisted" :title="$t('post_status.scope.unlisted')"></i>
|
<i v-on:click="changeVis('unlisted')" class="icon-lock-open-alt" :class="vis.unlisted" :title="$t('post_status.scope.unlisted')"></i>
|
||||||
<i v-on:click="changeVis('public')" class="icon-globe" :class="vis.public" :title="$t('post_status.scope.public')"></i>
|
<i v-on:click="changeVis('public')" class="icon-globe" :class="vis.public" :title="$t('post_status.scope.public')"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div style="position:relative;" v-if="candidates">
|
<div style="position:relative;" v-if="candidates">
|
||||||
<div class="autocomplete-panel">
|
<div class="autocomplete-panel">
|
||||||
<div v-for="candidate in candidates" @click="replace(candidate.utf || (candidate.screen_name + ' '))">
|
<div v-for="candidate in candidates" @click="replace(candidate.utf || (candidate.screen_name + ' '))">
|
||||||
|
|
|
@ -282,6 +282,11 @@ const Status = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
capitalize: function (str) {
|
||||||
|
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,11 +58,15 @@
|
||||||
<timeago :since="status.created_at" :auto-update="60"></timeago>
|
<timeago :since="status.created_at" :auto-update="60"></timeago>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="visibility-icon" v-if="status.visibility">
|
<div class="visibility-icon" v-if="status.visibility">
|
||||||
<i :class="visibilityIcon(status.visibility)"></i>
|
<i :class="visibilityIcon(status.visibility)" :title="status.visibility | capitalize"></i>
|
||||||
</div>
|
</div>
|
||||||
<a :href="status.external_url" target="_blank" v-if="!status.is_local" class="source_url"><i class="icon-link-ext-alt"></i></a>
|
<a :href="status.external_url" target="_blank" v-if="!status.is_local" class="source_url" title="Source">
|
||||||
|
<i class="icon-link-ext-alt"></i>
|
||||||
|
</a>
|
||||||
<template v-if="expandable">
|
<template v-if="expandable">
|
||||||
<a href="#" @click.prevent="toggleExpanded"><i class="icon-plus-squared"></i></a>
|
<a href="#" @click.prevent="toggleExpanded" title="Expand">
|
||||||
|
<i class="icon-plus-squared"></i>
|
||||||
|
</a>
|
||||||
</template>
|
</template>
|
||||||
<a href="#" @click.prevent="toggleMute" v-if="unmuted"><i class="icon-eye-off"></i></a>
|
<a href="#" @click.prevent="toggleMute" v-if="unmuted"><i class="icon-eye-off"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -331,11 +335,35 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: 0.2em;
|
margin-top: 0.2em;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.1em;
|
||||||
|
line-height: 1.2em;
|
||||||
|
margin: 1.4em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.1em;
|
||||||
|
margin: 1.0em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1em;
|
||||||
|
margin: 1.2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin: 1.1em 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.retweet-info {
|
.retweet-info {
|
||||||
|
|
|
@ -66,8 +66,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.loadmore-error {
|
.loadmore-error {
|
||||||
position: absolute;
|
|
||||||
right: 0.6em;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
min-width: 6em;
|
min-width: 6em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -79,6 +79,8 @@
|
||||||
|
|
||||||
.panel-heading {
|
.panel-heading {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
|
@ -119,6 +119,7 @@ window.fetch('/api/statusnet/config.json')
|
||||||
var whoToFollowLink = (config.whoToFollowLink)
|
var whoToFollowLink = (config.whoToFollowLink)
|
||||||
var showInstanceSpecificPanel = (config.showInstanceSpecificPanel)
|
var showInstanceSpecificPanel = (config.showInstanceSpecificPanel)
|
||||||
var scopeOptionsEnabled = (config.scopeOptionsEnabled)
|
var scopeOptionsEnabled = (config.scopeOptionsEnabled)
|
||||||
|
var formattingOptionsEnabled = (config.formattingOptionsEnabled)
|
||||||
var collapseMessageWithSubject = (config.collapseMessageWithSubject)
|
var collapseMessageWithSubject = (config.collapseMessageWithSubject)
|
||||||
|
|
||||||
store.dispatch('setOption', { name: 'theme', value: theme })
|
store.dispatch('setOption', { name: 'theme', value: theme })
|
||||||
|
@ -131,6 +132,7 @@ window.fetch('/api/statusnet/config.json')
|
||||||
store.dispatch('setOption', { name: 'whoToFollowLink', value: whoToFollowLink })
|
store.dispatch('setOption', { name: 'whoToFollowLink', value: whoToFollowLink })
|
||||||
store.dispatch('setOption', { name: 'showInstanceSpecificPanel', value: showInstanceSpecificPanel })
|
store.dispatch('setOption', { name: 'showInstanceSpecificPanel', value: showInstanceSpecificPanel })
|
||||||
store.dispatch('setOption', { name: 'scopeOptionsEnabled', value: scopeOptionsEnabled })
|
store.dispatch('setOption', { name: 'scopeOptionsEnabled', value: scopeOptionsEnabled })
|
||||||
|
store.dispatch('setOption', { name: 'formattingOptionsEnabled', value: formattingOptionsEnabled })
|
||||||
store.dispatch('setOption', { name: 'collapseMessageWithSubject', value: collapseMessageWithSubject })
|
store.dispatch('setOption', { name: 'collapseMessageWithSubject', value: collapseMessageWithSubject })
|
||||||
if (chatDisabled) {
|
if (chatDisabled) {
|
||||||
store.dispatch('disableChat')
|
store.dispatch('disableChat')
|
||||||
|
|
|
@ -121,7 +121,7 @@ const users = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch our friends
|
// Fetch our friends
|
||||||
store.rootState.api.backendInteractor.fetchFriends()
|
store.rootState.api.backendInteractor.fetchFriends(user.id)
|
||||||
.then((friends) => commit('addNewUsers', friends))
|
.then((friends) => commit('addNewUsers', friends))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -7,14 +7,9 @@
|
||||||
"logoMargin": ".1em",
|
"logoMargin": ".1em",
|
||||||
"redirectRootNoLogin": "/main/all",
|
"redirectRootNoLogin": "/main/all",
|
||||||
"redirectRootLogin": "/main/friends",
|
"redirectRootLogin": "/main/friends",
|
||||||
"chatDisabled": true,
|
"chatDisabled": false,
|
||||||
"showWhoToFollowPanel": false,
|
"showInstanceSpecificPanel": false,
|
||||||
"whoToFollowProvider": "https://vinayaka.distsn.org/cgi-bin/vinayaka-user-match-osa-api.cgi?{{host}}+{{user}}",
|
"scopeOptionsEnabled": false,
|
||||||
"whoToFollowProviderDummy2": "https://followlink.osa-p.net/api/get_recommend.json?acct=@{{user}}@{{host}}",
|
"formattingOptionsEnabled": false,
|
||||||
"whoToFollowLink": "https://vinayaka.distsn.org/?{{host}}+{{user}}",
|
|
||||||
"whoToFollowLinkDummy2": "https://followlink.osa-p.net/recommend.html",
|
|
||||||
"showInstanceSpecificPanel": true,
|
|
||||||
"scopeOptionsEnabled": true,
|
|
||||||
"registrationOpen": true,
|
|
||||||
"collapseMessageWithSubject": false
|
"collapseMessageWithSubject": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue