Merge remote-tracking branch 'origin/develop' into fixes-batch
This commit is contained in:
commit
76f340ce2d
0
changelog.d/backend-repo-url.skip
Normal file
0
changelog.d/backend-repo-url.skip
Normal file
1
changelog.d/checkbox.fix
Normal file
1
changelog.d/checkbox.fix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
checkbox vertical alignment has been fixed
|
1
changelog.d/deprecate-subscribe.change
Normal file
1
changelog.d/deprecate-subscribe.change
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Use /api/v1/accounts/:id/follow for account subscriptions instead of the deprecated routes
|
1
changelog.d/misc-markup.fix
Normal file
1
changelog.d/misc-markup.fix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix small markup inconsistencies
|
1
changelog.d/show-bookmarks-on-mobile.fix
Normal file
1
changelog.d/show-bookmarks-on-mobile.fix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Bookmarks visible again on mobile
|
1
changelog.d/user-link.add
Normal file
1
changelog.d/user-link.add
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Make UserLink wrappable
|
1
changelog.d/weird-absolute-time-format.fix
Normal file
1
changelog.d/weird-absolute-time-format.fix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Show only month and day instead of weird "day, hour" format. While at it, fixed typo "defualt" in a comment.
|
|
@ -243,7 +243,7 @@ const resolveStaffAccounts = ({ store, accounts }) => {
|
||||||
|
|
||||||
const getNodeInfo = async ({ store }) => {
|
const getNodeInfo = async ({ store }) => {
|
||||||
try {
|
try {
|
||||||
const res = await preloadFetch('/nodeinfo/2.0.json')
|
const res = await preloadFetch('/nodeinfo/2.1.json')
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
const metadata = data.metadata
|
const metadata = data.metadata
|
||||||
|
@ -280,6 +280,7 @@ const getNodeInfo = async ({ store }) => {
|
||||||
|
|
||||||
const software = data.software
|
const software = data.software
|
||||||
store.dispatch('setInstanceOption', { name: 'backendVersion', value: software.version })
|
store.dispatch('setInstanceOption', { name: 'backendVersion', value: software.version })
|
||||||
|
store.dispatch('setInstanceOption', { name: 'backendRepository', value: software.repository })
|
||||||
store.dispatch('setInstanceOption', { name: 'pleromaBackend', value: software.name === 'pleroma' })
|
store.dispatch('setInstanceOption', { name: 'pleromaBackend', value: software.name === 'pleroma' })
|
||||||
|
|
||||||
const priv = metadata.private
|
const priv = metadata.private
|
||||||
|
|
|
@ -34,8 +34,9 @@
|
||||||
id="announcement-all-day"
|
id="announcement-all-day"
|
||||||
v-model="announcement.allDay"
|
v-model="announcement.allDay"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
/>
|
>
|
||||||
<label for="announcement-all-day">{{ $t('announcements.all_day_prompt') }}</label>
|
{{ $t('announcements.all_day_prompt') }}
|
||||||
|
</Checkbox>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default announcements-page">
|
<div class="panel panel-default announcements-page">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<span>
|
<h1 class="title">
|
||||||
{{ $t('announcements.page_header') }}
|
{{ $t('announcements.page_header') }}
|
||||||
</span>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<section
|
<section
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
icon="chevron-left"
|
icon="chevron-left"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
<i18n-t
|
<i18n-t
|
||||||
v-if="id"
|
v-if="id"
|
||||||
keypath="bookmark_folders.editing_folder"
|
keypath="bookmark_folders.editing_folder"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
v-else
|
v-else
|
||||||
keypath="bookmark_folders.creating_folder"
|
keypath="bookmark_folders.creating_folder"
|
||||||
/>
|
/>
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="input-wrap">
|
<div class="input-wrap">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="Bookmark-folders panel panel-default">
|
<div class="Bookmark-folders panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('nav.bookmark_folders') }}
|
{{ $t('nav.bookmark_folders') }}
|
||||||
</div>
|
</h1>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'bookmark-folder-new' }"
|
:to="{ name: 'bookmark-folder-new' }"
|
||||||
class="button-default btn new-folder-button"
|
class="button-default btn new-folder-button"
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
class="chat-list panel panel-default"
|
class="chat-list panel panel-default"
|
||||||
>
|
>
|
||||||
<div class="panel-heading -sticky">
|
<div class="panel-heading -sticky">
|
||||||
<span class="title">
|
<h1 class="title">
|
||||||
{{ $t("chats.chats") }}
|
{{ $t("chats.chats") }}
|
||||||
</span>
|
</h1>
|
||||||
<button
|
<button
|
||||||
class="button-default"
|
class="button-default"
|
||||||
@click="newChat"
|
@click="newChat"
|
||||||
|
|
|
@ -70,21 +70,26 @@ export default {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-height: 1.2em;
|
min-height: 1.2em;
|
||||||
|
|
||||||
|
&-indicator,
|
||||||
|
& .label {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
& > &-indicator {
|
& > &-indicator {
|
||||||
/* Reset .input stuff */
|
/* Reset .input stuff */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
display: inline;
|
display: inline-block;
|
||||||
padding-left: 1.2em;
|
width: 1.2em;
|
||||||
|
height: 1.2em;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-indicator::before {
|
&-indicator::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
inset: 0;
|
||||||
top: 0;
|
|
||||||
display: block;
|
display: block;
|
||||||
content: "✓";
|
content: "✓";
|
||||||
transition: color 200ms;
|
transition: color 200ms;
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
v-if="isExpanded"
|
v-if="isExpanded"
|
||||||
class="panel-heading conversation-heading -sticky"
|
class="panel-heading conversation-heading -sticky"
|
||||||
>
|
>
|
||||||
<span class="title"> {{ $t('timeline.conversation') }} </span>
|
<h1 class="title">
|
||||||
|
{{ $t('timeline.conversation') }}
|
||||||
|
</h1>
|
||||||
<button
|
<button
|
||||||
v-if="collapsable"
|
v-if="collapsable"
|
||||||
class="button-unstyled -link"
|
class="button-unstyled -link"
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
@click.stop=""
|
@click.stop=""
|
||||||
>
|
>
|
||||||
<div class="panel-heading dialog-modal-heading">
|
<div class="panel-heading dialog-modal-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
<slot name="header" />
|
<slot name="header" />
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body dialog-modal-content">
|
<div class="panel-body dialog-modal-content">
|
||||||
<slot name="default" />
|
<slot name="default" />
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
>
|
>
|
||||||
<div class="edit-form-modal-panel panel">
|
<div class="edit-form-modal-panel panel">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('post_status.edit_status') }}
|
{{ $t('post_status.edit_status') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<PostStatusForm
|
<PostStatusForm
|
||||||
class="panel-body"
|
class="panel-body"
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<div class="features-panel">
|
<div class="features-panel">
|
||||||
<div class="panel panel-default base01-background">
|
<div class="panel panel-default base01-background">
|
||||||
<div class="panel-heading timeline-heading base02-background base04">
|
<div class="panel-heading timeline-heading base02-background base04">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('features_panel.title') }}
|
{{ $t('features_panel.title') }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body features-panel">
|
<div class="panel-body features-panel">
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="settings panel panel-default">
|
<div class="settings panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('nav.friend_requests') }}
|
{{ $t('nav.friend_requests') }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<FollowRequestCard
|
<FollowRequestCard
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t("nav.interactions") }}
|
{{ $t("nav.interactions") }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<tab-switcher
|
<tab-switcher
|
||||||
ref="tabSwitcher"
|
ref="tabSwitcher"
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
<div class="Lists panel panel-default">
|
<div class="Lists panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('lists.lists') }}
|
{{ $t('lists.lists') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{ name: 'lists-new' }"
|
:to="{ name: 'lists-new' }"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Default panel contents -->
|
<!-- Default panel contents -->
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
{{ $t('login.login') }}
|
<h1 class="title">{{ $t('login.login') }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<!-- Default panel contents -->
|
<!-- Default panel contents -->
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('login.heading.recovery') }}
|
{{ $t('login.heading.recovery') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
<!-- Default panel contents -->
|
<!-- Default panel contents -->
|
||||||
|
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('login.heading.totp') }}
|
{{ $t('login.heading.totp') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|
|
@ -50,13 +50,13 @@
|
||||||
@touchmove.stop="notificationsTouchMove"
|
@touchmove.stop="notificationsTouchMove"
|
||||||
>
|
>
|
||||||
<div class="panel-heading mobile-notifications-header">
|
<div class="panel-heading mobile-notifications-header">
|
||||||
<span class="title">
|
<h1 class="title">
|
||||||
{{ $t('notifications.notifications') }}
|
{{ $t('notifications.notifications') }}
|
||||||
<span
|
<span
|
||||||
v-if="unseenCountBadgeText"
|
v-if="unseenCountBadgeText"
|
||||||
class="badge -notification unseen-count"
|
class="badge -notification unseen-count"
|
||||||
>{{ unseenCountBadgeText }}</span>
|
>{{ unseenCountBadgeText }}</span>
|
||||||
</span>
|
</h1>
|
||||||
<span class="spacer" />
|
<span class="spacer" />
|
||||||
<button
|
<button
|
||||||
v-if="notificationsAtTop"
|
v-if="notificationsAtTop"
|
||||||
|
|
|
@ -14,13 +14,13 @@
|
||||||
v-if="!noHeading"
|
v-if="!noHeading"
|
||||||
class="notifications-heading panel-heading -sticky"
|
class="notifications-heading panel-heading -sticky"
|
||||||
>
|
>
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('notifications.notifications') }}
|
{{ $t('notifications.notifications') }}
|
||||||
<span
|
<span
|
||||||
v-if="unseenCountBadgeText"
|
v-if="unseenCountBadgeText"
|
||||||
class="badge -notification unseen-count"
|
class="badge -notification unseen-count"
|
||||||
>{{ unseenCountBadgeText }}</span>
|
>{{ unseenCountBadgeText }}</span>
|
||||||
</div>
|
</h1>
|
||||||
<div
|
<div
|
||||||
v-if="showScrollTop"
|
v-if="showScrollTop"
|
||||||
class="rightside-button"
|
class="rightside-button"
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="settings panel panel-default">
|
<div class="settings panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('password_reset.password_reset') }}
|
{{ $t('password_reset.password_reset') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form
|
<form
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
>
|
>
|
||||||
<div class="post-form-modal-panel panel">
|
<div class="post-form-modal-panel panel">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('post_status.new_status') }}
|
{{ $t('post_status.new_status') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<PostStatusForm
|
<PostStatusForm
|
||||||
class="panel-body"
|
class="panel-body"
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="settings panel panel-default">
|
<div class="settings panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('registration.registration') }}
|
{{ $t('registration.registration') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!hasSignUpNotice"
|
v-if="!hasSignUpNotice"
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('remote_user_resolver.remote_user_resolver') }}
|
{{ $t('remote_user_resolver.remote_user_resolver') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="Search panel panel-default">
|
<div class="Search panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('nav.search') }}
|
{{ $t('nav.search') }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body search-input-container">
|
<div class="panel-body search-input-container">
|
||||||
<input
|
<input
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
>
|
>
|
||||||
<div class="settings-modal-panel panel">
|
<div class="settings-modal-panel panel">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<span class="title">
|
<h1 class="title">
|
||||||
{{ modalMode === 'user' ? $t('settings.settings') : $t('admin_dash.window_title') }}
|
{{ modalMode === 'user' ? $t('settings.settings') : $t('admin_dash.window_title') }}
|
||||||
</span>
|
</h1>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div
|
<div
|
||||||
v-if="currentSaveStateNotice"
|
v-if="currentSaveStateNotice"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
<div class="underlay underlay-preview" />
|
<div class="underlay underlay-preview" />
|
||||||
<div class="panel dummy">
|
<div class="panel dummy">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('settings.style.preview.header') }}
|
{{ $t('settings.style.preview.header') }}
|
||||||
<span class="badge -notification">
|
<span class="badge -notification">
|
||||||
99
|
99
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</h1>
|
||||||
<span class="faint">
|
<span class="faint">
|
||||||
{{ $t('settings.style.preview.header_faint') }}
|
{{ $t('settings.style.preview.header_faint') }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,22 +1,17 @@
|
||||||
import { extractCommit } from 'src/services/version/version.service'
|
|
||||||
|
|
||||||
const pleromaFeCommitUrl = 'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
|
const pleromaFeCommitUrl = 'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
|
||||||
const pleromaBeCommitUrl = 'https://git.pleroma.social/pleroma/pleroma/commit/'
|
|
||||||
|
|
||||||
const VersionTab = {
|
const VersionTab = {
|
||||||
data () {
|
data () {
|
||||||
const instance = this.$store.state.instance
|
const instance = this.$store.state.instance
|
||||||
return {
|
return {
|
||||||
backendVersion: instance.backendVersion,
|
backendVersion: instance.backendVersion,
|
||||||
|
backendRepository: instance.backendRepository,
|
||||||
frontendVersion: instance.frontendVersion
|
frontendVersion: instance.frontendVersion
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
frontendVersionLink () {
|
frontendVersionLink () {
|
||||||
return pleromaFeCommitUrl + this.frontendVersion
|
return pleromaFeCommitUrl + this.frontendVersion
|
||||||
},
|
|
||||||
backendVersionLink () {
|
|
||||||
return pleromaBeCommitUrl + extractCommit(this.backendVersion)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<ul class="option-list">
|
<ul class="option-list">
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
:href="backendVersionLink"
|
:href="backendRepository"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>{{ backendVersion }}</a>
|
>{{ backendVersion }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -9,14 +9,14 @@
|
||||||
:class="{ 'shout-heading': floating }"
|
:class="{ 'shout-heading': floating }"
|
||||||
@click.stop.prevent="togglePanel"
|
@click.stop.prevent="togglePanel"
|
||||||
>
|
>
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('shoutbox.title') }}
|
{{ $t('shoutbox.title') }}
|
||||||
<FAIcon
|
<FAIcon
|
||||||
v-if="floating"
|
v-if="floating"
|
||||||
icon="times"
|
icon="times"
|
||||||
class="close-icon"
|
class="close-icon"
|
||||||
/>
|
/>
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body shout-window">
|
<div class="panel-body shout-window">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -76,6 +76,21 @@
|
||||||
/> {{ $t("nav.lists") }}
|
/> {{ $t("nav.lists") }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
|
<li
|
||||||
|
v-if="currentUser"
|
||||||
|
@click="toggleDrawer"
|
||||||
|
>
|
||||||
|
<router-link
|
||||||
|
:to="{ name: 'bookmarks' }"
|
||||||
|
class="menu-item"
|
||||||
|
>
|
||||||
|
<FAIcon
|
||||||
|
fixed-width
|
||||||
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
icon="bookmark"
|
||||||
|
/> {{ $t("nav.bookmarks") }}
|
||||||
|
</router-link>
|
||||||
|
</li>
|
||||||
<li
|
<li
|
||||||
v-if="currentUser && pleromaChatMessagesAvailable"
|
v-if="currentUser && pleromaChatMessagesAvailable"
|
||||||
@click="toggleDrawer"
|
@click="toggleDrawer"
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
>
|
>
|
||||||
<div class="status-history-modal-panel panel">
|
<div class="status-history-modal-panel panel">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('status.status_history') }} ({{ historyCount }})
|
{{ $t('status.status_history') }} ({{ historyCount }})
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -61,7 +61,7 @@ export default {
|
||||||
})
|
})
|
||||||
} else if (DateUtils.isSameMonth(this.timeAsDate, now)) {
|
} else if (DateUtils.isSameMonth(this.timeAsDate, now)) {
|
||||||
return new Intl.DateTimeFormat(this.browserLocale, {
|
return new Intl.DateTimeFormat(this.browserLocale, {
|
||||||
hour: 'numeric',
|
month: 'short',
|
||||||
day: 'numeric'
|
day: 'numeric'
|
||||||
})
|
})
|
||||||
} else if (DateUtils.isSameYear(this.timeAsDate, now)) {
|
} else if (DateUtils.isSameYear(this.timeAsDate, now)) {
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<span class="button-unstyled title timeline-menu-title">
|
<span class="button-unstyled timeline-menu-title">
|
||||||
<span class="timeline-title">{{ timelineName() }}</span>
|
<h1 class="title timeline-title">{{ timelineName() }}</h1>
|
||||||
<span>
|
<span>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
@ -9,9 +9,9 @@
|
||||||
:class="{ '-peek': !showingMore }"
|
:class="{ '-peek': !showingMore }"
|
||||||
>
|
>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<span class="title">
|
<h1 class="title">
|
||||||
{{ $t('update.big_update_title') }}
|
{{ $t('update.big_update_title') }}
|
||||||
</span>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -208,7 +208,7 @@
|
||||||
/>
|
/>
|
||||||
<template v-if="relationship.following">
|
<template v-if="relationship.following">
|
||||||
<ProgressButton
|
<ProgressButton
|
||||||
v-if="!relationship.subscribing"
|
v-if="!relationship.notifying"
|
||||||
class="btn button-default"
|
class="btn button-default"
|
||||||
:click="subscribeUser"
|
:click="subscribeUser"
|
||||||
:title="$t('user_card.subscribe')"
|
:title="$t('user_card.subscribe')"
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
|
<div class="user-profile-link">
|
||||||
<router-link
|
<router-link
|
||||||
:title="user.screen_name_ui"
|
:title="user.screen_name_ui"
|
||||||
:to="userProfileLink(user)"
|
:to="userProfileLink(user)"
|
||||||
>
|
>
|
||||||
|
<slot>
|
||||||
{{ at ? '@' : '' }}{{ user.screen_name_ui }}<UnicodeDomainIndicator
|
{{ at ? '@' : '' }}{{ user.screen_name_ui }}<UnicodeDomainIndicator
|
||||||
:user="user"
|
:user="user"
|
||||||
/>
|
/>
|
||||||
|
</slot>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -142,9 +142,9 @@
|
||||||
class="panel user-profile-placeholder"
|
class="panel user-profile-placeholder"
|
||||||
>
|
>
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('settings.profile_tab') }}
|
{{ $t('settings.profile_tab') }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span v-if="error">{{ error }}</span>
|
<span v-if="error">{{ error }}</span>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="user-reporting-panel panel">
|
<div class="user-reporting-panel panel">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i18n-t
|
<i18n-t
|
||||||
tag="div"
|
tag="h1"
|
||||||
keypath="user_reporting.title"
|
keypath="user_reporting.title"
|
||||||
class="title"
|
class="title"
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
<h1 class="title">
|
||||||
{{ $t('who_to_follow.who_to_follow') }}
|
{{ $t('who_to_follow.who_to_follow') }}
|
||||||
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<FollowCard
|
<FollowCard
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<div class="who-to-follow-panel">
|
<div class="who-to-follow-panel">
|
||||||
<div class="panel panel-default base01-background">
|
<div class="panel panel-default base01-background">
|
||||||
<div class="panel-heading timeline-heading base02-background base04">
|
<div class="panel-heading timeline-heading base02-background base04">
|
||||||
<div class="title">
|
<h1 class="title">
|
||||||
{{ $t('who_to_follow.who_to_follow') }}
|
{{ $t('who_to_follow.who_to_follow') }}
|
||||||
</div>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="who-to-follow">
|
<div class="who-to-follow">
|
||||||
<p
|
<p
|
||||||
|
|
|
@ -185,7 +185,7 @@ export const defaultState = {
|
||||||
closingDrawerMarksAsSeen: undefined, // instance default
|
closingDrawerMarksAsSeen: undefined, // instance default
|
||||||
unseenAtTop: undefined, // instance default
|
unseenAtTop: undefined, // instance default
|
||||||
ignoreInactionableSeen: undefined, // instance default
|
ignoreInactionableSeen: undefined, // instance default
|
||||||
useAbsoluteTimeFormat: undefined, // instance defualt
|
useAbsoluteTimeFormat: undefined, // instance default
|
||||||
absoluteTimeFormatMinAge: undefined // instance default
|
absoluteTimeFormatMinAge: undefined // instance default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -159,6 +159,7 @@ const defaultState = {
|
||||||
|
|
||||||
// Version Information
|
// Version Information
|
||||||
backendVersion: '',
|
backendVersion: '',
|
||||||
|
backendRepository: '',
|
||||||
frontendVersion: '',
|
frontendVersion: '',
|
||||||
|
|
||||||
pollsAvailable: false,
|
pollsAvailable: false,
|
||||||
|
|
|
@ -452,11 +452,11 @@ const users = {
|
||||||
commit('clearFollowers', userId)
|
commit('clearFollowers', userId)
|
||||||
},
|
},
|
||||||
subscribeUser ({ rootState, commit }, id) {
|
subscribeUser ({ rootState, commit }, id) {
|
||||||
return rootState.api.backendInteractor.subscribeUser({ id })
|
return rootState.api.backendInteractor.followUser({ id, notify: true })
|
||||||
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
||||||
},
|
},
|
||||||
unsubscribeUser ({ rootState, commit }, id) {
|
unsubscribeUser ({ rootState, commit }, id) {
|
||||||
return rootState.api.backendInteractor.unsubscribeUser({ id })
|
return rootState.api.backendInteractor.followUser({ id, notify: false })
|
||||||
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
||||||
},
|
},
|
||||||
toggleActivationStatus ({ rootState, commit }, { user }) {
|
toggleActivationStatus ({ rootState, commit }, { user }) {
|
||||||
|
|
|
@ -115,6 +115,8 @@
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
|
margin: 0;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
|
|
|
@ -68,8 +68,6 @@ const MASTODON_UNBLOCK_USER_URL = id => `/api/v1/accounts/${id}/unblock`
|
||||||
const MASTODON_MUTE_USER_URL = id => `/api/v1/accounts/${id}/mute`
|
const MASTODON_MUTE_USER_URL = id => `/api/v1/accounts/${id}/mute`
|
||||||
const MASTODON_UNMUTE_USER_URL = id => `/api/v1/accounts/${id}/unmute`
|
const MASTODON_UNMUTE_USER_URL = id => `/api/v1/accounts/${id}/unmute`
|
||||||
const MASTODON_REMOVE_USER_FROM_FOLLOWERS = id => `/api/v1/accounts/${id}/remove_from_followers`
|
const MASTODON_REMOVE_USER_FROM_FOLLOWERS = id => `/api/v1/accounts/${id}/remove_from_followers`
|
||||||
const MASTODON_SUBSCRIBE_USER = id => `/api/v1/pleroma/accounts/${id}/subscribe`
|
|
||||||
const MASTODON_UNSUBSCRIBE_USER = id => `/api/v1/pleroma/accounts/${id}/unsubscribe`
|
|
||||||
const MASTODON_USER_NOTE_URL = id => `/api/v1/accounts/${id}/note`
|
const MASTODON_USER_NOTE_URL = id => `/api/v1/accounts/${id}/note`
|
||||||
const MASTODON_BOOKMARK_STATUS_URL = id => `/api/v1/statuses/${id}/bookmark`
|
const MASTODON_BOOKMARK_STATUS_URL = id => `/api/v1/statuses/${id}/bookmark`
|
||||||
const MASTODON_UNBOOKMARK_STATUS_URL = id => `/api/v1/statuses/${id}/unbookmark`
|
const MASTODON_UNBOOKMARK_STATUS_URL = id => `/api/v1/statuses/${id}/unbookmark`
|
||||||
|
@ -275,6 +273,7 @@ const followUser = ({ id, credentials, ...options }) => {
|
||||||
const url = MASTODON_FOLLOW_URL(id)
|
const url = MASTODON_FOLLOW_URL(id)
|
||||||
const form = {}
|
const form = {}
|
||||||
if (options.reblogs !== undefined) { form.reblogs = options.reblogs }
|
if (options.reblogs !== undefined) { form.reblogs = options.reblogs }
|
||||||
|
if (options.notify !== undefined) { form.notify = options.notify }
|
||||||
return fetch(url, {
|
return fetch(url, {
|
||||||
body: JSON.stringify(form),
|
body: JSON.stringify(form),
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -1180,14 +1179,6 @@ const unmuteUser = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_UNMUTE_USER_URL(id), credentials, method: 'POST' })
|
return promisedRequest({ url: MASTODON_UNMUTE_USER_URL(id), credentials, method: 'POST' })
|
||||||
}
|
}
|
||||||
|
|
||||||
const subscribeUser = ({ id, credentials }) => {
|
|
||||||
return promisedRequest({ url: MASTODON_SUBSCRIBE_USER(id), credentials, method: 'POST' })
|
|
||||||
}
|
|
||||||
|
|
||||||
const unsubscribeUser = ({ id, credentials }) => {
|
|
||||||
return promisedRequest({ url: MASTODON_UNSUBSCRIBE_USER(id), credentials, method: 'POST' })
|
|
||||||
}
|
|
||||||
|
|
||||||
const fetchBlocks = ({ maxId, credentials }) => {
|
const fetchBlocks = ({ maxId, credentials }) => {
|
||||||
const query = new URLSearchParams({ with_relationships: true })
|
const query = new URLSearchParams({ with_relationships: true })
|
||||||
if (maxId) {
|
if (maxId) {
|
||||||
|
@ -1978,8 +1969,6 @@ const apiService = {
|
||||||
fetchMutes,
|
fetchMutes,
|
||||||
muteUser,
|
muteUser,
|
||||||
unmuteUser,
|
unmuteUser,
|
||||||
subscribeUser,
|
|
||||||
unsubscribeUser,
|
|
||||||
fetchBlocks,
|
fetchBlocks,
|
||||||
fetchOAuthTokens,
|
fetchOAuthTokens,
|
||||||
revokeOAuthToken,
|
revokeOAuthToken,
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
export const extractCommit = versionString => {
|
|
||||||
const regex = /-g(\w+)/i
|
|
||||||
const matches = versionString.match(regex)
|
|
||||||
return matches ? matches[1] : ''
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
import { extractCommit } from 'src/services/version/version.service.js'
|
|
||||||
|
|
||||||
describe('extractCommit', () => {
|
|
||||||
it('return short commit hash following "-g" characters', () => {
|
|
||||||
expect(extractCommit('1.0.0-45-g5e7aeebc')).to.eql('5e7aeebc')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('return short commit hash without branch name', () => {
|
|
||||||
expect(extractCommit('1.0.0-45-g5e7aeebc-branch')).to.eql('5e7aeebc')
|
|
||||||
})
|
|
||||||
})
|
|
Loading…
Reference in a new issue