2017-08-03 05:09:40 +10:00
|
|
|
<template>
|
2018-04-01 04:14:36 +10:00
|
|
|
<div class="settings panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2019-02-20 04:38:49 +11:00
|
|
|
<div class="title">
|
2019-07-05 17:17:44 +10:00
|
|
|
{{ $t('settings.user_settings') }}
|
2019-02-20 04:38:49 +11:00
|
|
|
</div>
|
|
|
|
<transition name="fade">
|
|
|
|
<template v-if="currentSaveStateNotice">
|
2019-07-05 17:17:44 +10:00
|
|
|
<div
|
|
|
|
v-if="currentSaveStateNotice.error"
|
|
|
|
class="alert error"
|
|
|
|
@click.prevent
|
|
|
|
>
|
2019-02-20 04:38:49 +11:00
|
|
|
{{ $t('settings.saving_err') }}
|
|
|
|
</div>
|
|
|
|
|
2019-07-05 17:17:44 +10:00
|
|
|
<div
|
|
|
|
v-if="!currentSaveStateNotice.error"
|
|
|
|
class="alert transparent"
|
|
|
|
@click.prevent
|
|
|
|
>
|
2019-02-20 04:38:49 +11:00
|
|
|
{{ $t('settings.saving_ok') }}
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</transition>
|
2017-08-03 05:09:40 +10:00
|
|
|
</div>
|
|
|
|
<div class="panel-body profile-edit">
|
2018-08-28 05:22:25 +10:00
|
|
|
<tab-switcher>
|
2018-08-28 23:22:49 +10:00
|
|
|
<div :label="$t('settings.profile_tab')">
|
2019-07-05 17:17:44 +10:00
|
|
|
<div class="setting-item">
|
|
|
|
<h2>{{ $t('settings.name_bio') }}</h2>
|
|
|
|
<p>{{ $t('settings.name') }}</p>
|
|
|
|
<EmojiInput
|
|
|
|
v-model="newName"
|
2019-09-26 03:11:06 +10:00
|
|
|
enable-emoji-picker
|
2019-07-05 17:17:44 +10:00
|
|
|
:suggest="emojiSuggestor"
|
|
|
|
>
|
2019-06-07 07:17:49 +10:00
|
|
|
<input
|
|
|
|
id="username"
|
2019-07-05 17:17:44 +10:00
|
|
|
v-model="newName"
|
2019-06-07 07:17:49 +10:00
|
|
|
classname="name-changer"
|
2019-07-05 17:17:44 +10:00
|
|
|
>
|
2019-06-19 04:30:35 +10:00
|
|
|
</EmojiInput>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.bio') }}</p>
|
|
|
|
<EmojiInput
|
|
|
|
v-model="newBio"
|
2019-09-26 03:11:06 +10:00
|
|
|
enable-emoji-picker
|
2019-07-05 17:17:44 +10:00
|
|
|
:suggest="emojiUserSuggestor"
|
|
|
|
>
|
2019-06-07 07:17:49 +10:00
|
|
|
<textarea
|
|
|
|
v-model="newBio"
|
|
|
|
classname="bio"
|
2019-07-05 17:17:44 +10:00
|
|
|
/>
|
2019-06-19 04:30:35 +10:00
|
|
|
</EmojiInput>
|
2018-08-28 05:22:25 +10:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="newLocked">
|
|
|
|
{{ $t('settings.lock_account_description') }}
|
|
|
|
</Checkbox>
|
2018-08-28 05:22:25 +10:00
|
|
|
</p>
|
2019-03-04 00:15:41 +11:00
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<label for="default-vis">{{ $t('settings.default_vis') }}</label>
|
|
|
|
<div
|
|
|
|
id="default-vis"
|
|
|
|
class="visibility-tray"
|
|
|
|
>
|
2019-03-04 00:15:41 +11:00
|
|
|
<scope-selector
|
2019-07-05 17:17:44 +10:00
|
|
|
:show-all="true"
|
|
|
|
:user-default="newDefaultScope"
|
|
|
|
:initial-scope="newDefaultScope"
|
|
|
|
:on-scope-change="changeVis"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-22 13:54:05 +10:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="newNoRichText">
|
|
|
|
{{ $t('settings.no_rich_text_description') }}
|
|
|
|
</Checkbox>
|
2018-09-22 13:54:05 +10:00
|
|
|
</p>
|
2018-12-13 23:58:38 +11:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="hideFollows">
|
|
|
|
{{ $t('settings.hide_follows_description') }}
|
|
|
|
</Checkbox>
|
2019-01-30 09:11:40 +11:00
|
|
|
</p>
|
2019-09-13 23:15:19 +10:00
|
|
|
<p class="setting-subitem">
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox
|
2019-09-13 23:15:19 +10:00
|
|
|
v-model="hideFollowsCount"
|
|
|
|
:disabled="!hideFollows"
|
2019-11-08 13:21:19 +11:00
|
|
|
>
|
2019-10-07 08:05:21 +11:00
|
|
|
{{ $t('settings.hide_follows_count_description') }}
|
|
|
|
</Checkbox>
|
2019-09-13 23:15:19 +10:00
|
|
|
</p>
|
2019-01-30 09:11:40 +11:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox
|
2019-07-05 17:17:44 +10:00
|
|
|
v-model="hideFollowers"
|
2019-10-29 18:35:42 +11:00
|
|
|
>
|
2019-10-07 08:05:21 +11:00
|
|
|
{{ $t('settings.hide_followers_description') }}
|
|
|
|
</Checkbox>
|
2018-12-13 23:58:38 +11:00
|
|
|
</p>
|
2019-09-13 23:15:19 +10:00
|
|
|
<p class="setting-subitem">
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox
|
2019-09-13 23:15:19 +10:00
|
|
|
v-model="hideFollowersCount"
|
|
|
|
:disabled="!hideFollowers"
|
|
|
|
>
|
2019-10-07 08:05:21 +11:00
|
|
|
{{ $t('settings.hide_followers_count_description') }}
|
|
|
|
</Checkbox>
|
2019-09-13 23:15:19 +10:00
|
|
|
</p>
|
2019-02-05 01:03:35 +11:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="showRole">
|
|
|
|
<template v-if="role === 'admin'">
|
|
|
|
{{ $t('settings.show_admin_badge') }}
|
|
|
|
</template>
|
|
|
|
<template v-if="role === 'moderator'">
|
|
|
|
{{ $t('settings.show_moderator_badge') }}
|
|
|
|
</template>
|
|
|
|
</Checkbox>
|
2019-02-05 01:03:35 +11:00
|
|
|
</p>
|
2019-09-27 08:31:28 +10:00
|
|
|
<p>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="discoverable">
|
|
|
|
{{ $t('settings.discoverable') }}
|
|
|
|
</Checkbox>
|
2019-09-27 08:31:28 +10:00
|
|
|
</p>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
:disabled="newName && newName.length === 0"
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="updateProfile"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.avatar') }}</h2>
|
|
|
|
<p class="visibility-notice">
|
|
|
|
{{ $t('settings.avatar_size_instruction') }}
|
|
|
|
</p>
|
|
|
|
<p>{{ $t('settings.current_avatar') }}</p>
|
|
|
|
<img
|
|
|
|
:src="user.profile_image_url_original"
|
|
|
|
class="current-avatar"
|
|
|
|
>
|
|
|
|
<p>{{ $t('settings.set_new_avatar') }}</p>
|
|
|
|
<button
|
|
|
|
v-show="pickAvatarBtnVisible"
|
|
|
|
id="pick-avatar"
|
|
|
|
class="btn"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
{{ $t('settings.upload_a_photo') }}
|
|
|
|
</button>
|
|
|
|
<image-cropper
|
|
|
|
trigger="#pick-avatar"
|
|
|
|
:submit-handler="submitAvatar"
|
|
|
|
@open="pickAvatarBtnVisible=false"
|
|
|
|
@close="pickAvatarBtnVisible=true"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.profile_banner') }}</h2>
|
|
|
|
<p>{{ $t('settings.current_profile_banner') }}</p>
|
|
|
|
<img
|
|
|
|
:src="user.cover_photo"
|
|
|
|
class="banner"
|
|
|
|
>
|
|
|
|
<p>{{ $t('settings.set_new_profile_banner') }}</p>
|
|
|
|
<img
|
|
|
|
v-if="bannerPreview"
|
|
|
|
class="banner"
|
|
|
|
:src="bannerPreview"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<input
|
|
|
|
type="file"
|
|
|
|
@change="uploadFile('banner', $event)"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<i
|
|
|
|
v-if="bannerUploading"
|
|
|
|
class=" icon-spin4 animate-spin uploading"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
v-else-if="bannerPreview"
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="submitBanner"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
v-if="bannerUploadError"
|
|
|
|
class="alert error"
|
|
|
|
>
|
2018-12-13 19:25:03 +11:00
|
|
|
Error: {{ bannerUploadError }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<i
|
|
|
|
class="button-icon icon-cancel"
|
|
|
|
@click="clearUploadError('banner')"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.profile_background') }}</h2>
|
|
|
|
<p>{{ $t('settings.set_new_profile_background') }}</p>
|
|
|
|
<img
|
|
|
|
v-if="backgroundPreview"
|
|
|
|
class="bg"
|
|
|
|
:src="backgroundPreview"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<input
|
|
|
|
type="file"
|
|
|
|
@change="uploadFile('background', $event)"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<i
|
|
|
|
v-if="backgroundUploading"
|
|
|
|
class=" icon-spin4 animate-spin uploading"
|
|
|
|
/>
|
|
|
|
<button
|
|
|
|
v-else-if="backgroundPreview"
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="submitBg"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
v-if="backgroundUploadError"
|
|
|
|
class="alert error"
|
|
|
|
>
|
2018-12-13 19:25:03 +11:00
|
|
|
Error: {{ backgroundUploadError }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<i
|
|
|
|
class="button-icon icon-cancel"
|
|
|
|
@click="clearUploadError('background')"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2018-06-23 17:53:15 +10:00
|
|
|
</div>
|
2018-05-30 00:19:28 +10:00
|
|
|
</div>
|
2018-08-28 05:22:25 +10:00
|
|
|
|
2018-08-28 23:22:49 +10:00
|
|
|
<div :label="$t('settings.security_tab')">
|
2018-08-28 05:22:25 +10:00
|
|
|
<div class="setting-item">
|
2019-11-08 13:21:19 +11:00
|
|
|
<h2>{{ $t('settings.change_email') }}</h2>
|
|
|
|
<div>
|
|
|
|
<p>{{ $t('settings.new_email') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="newEmail"
|
|
|
|
type="email"
|
|
|
|
autocomplete="email"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<p>{{ $t('settings.current_password') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="changeEmailPassword"
|
|
|
|
type="password"
|
|
|
|
autocomplete="current-password"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<button
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="changeEmail"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
|
|
|
<p v-if="changedEmail">
|
|
|
|
{{ $t('settings.changed_email') }}
|
|
|
|
</p>
|
|
|
|
<template v-if="changeEmailError !== false">
|
|
|
|
<p>{{ $t('settings.change_email_error') }}</p>
|
|
|
|
<p>{{ changeEmailError }}</p>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.change_password') }}</h2>
|
2018-08-28 05:22:25 +10:00
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.current_password') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="changePasswordInputs[0]"
|
|
|
|
type="password"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.new_password') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="changePasswordInputs[1]"
|
|
|
|
type="password"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
<div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.confirm_new_password') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="changePasswordInputs[2]"
|
|
|
|
type="password"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="changePassword"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
|
|
|
<p v-if="changedPassword">
|
|
|
|
{{ $t('settings.changed_password') }}
|
|
|
|
</p>
|
|
|
|
<p v-else-if="changePasswordError !== false">
|
|
|
|
{{ $t('settings.change_password_error') }}
|
|
|
|
</p>
|
|
|
|
<p v-if="changePasswordError">
|
|
|
|
{{ changePasswordError }}
|
|
|
|
</p>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
|
|
|
|
2019-02-13 05:53:59 +11:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.oauth_tokens') }}</h2>
|
2019-02-13 05:53:59 +11:00
|
|
|
<table class="oauth-tokens">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-07-05 17:17:44 +10:00
|
|
|
<th>{{ $t('settings.app_name') }}</th>
|
|
|
|
<th>{{ $t('settings.valid_until') }}</th>
|
|
|
|
<th />
|
2019-02-13 05:53:59 +11:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-07-05 17:17:44 +10:00
|
|
|
<tr
|
|
|
|
v-for="oauthToken in oauthTokens"
|
|
|
|
:key="oauthToken.id"
|
|
|
|
>
|
|
|
|
<td>{{ oauthToken.appName }}</td>
|
|
|
|
<td>{{ oauthToken.validUntil }}</td>
|
2019-02-13 05:53:59 +11:00
|
|
|
<td class="actions">
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="revokeToken(oauthToken.id)"
|
|
|
|
>
|
|
|
|
{{ $t('settings.revoke_token') }}
|
2019-02-13 06:07:10 +11:00
|
|
|
</button>
|
2019-02-13 05:53:59 +11:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2019-06-13 06:16:55 +10:00
|
|
|
<mfa />
|
2018-08-28 05:22:25 +10:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.delete_account') }}</h2>
|
|
|
|
<p v-if="!deletingAccount">
|
|
|
|
{{ $t('settings.delete_account_description') }}
|
|
|
|
</p>
|
2018-08-28 05:22:25 +10:00
|
|
|
<div v-if="deletingAccount">
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.delete_account_instructions') }}</p>
|
|
|
|
<p>{{ $t('login.password') }}</p>
|
|
|
|
<input
|
|
|
|
v-model="deleteAccountConfirmPasswordInput"
|
|
|
|
type="password"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="deleteAccount"
|
|
|
|
>
|
|
|
|
{{ $t('settings.delete_account') }}
|
|
|
|
</button>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p v-if="deleteAccountError !== false">
|
|
|
|
{{ $t('settings.delete_account_error') }}
|
|
|
|
</p>
|
|
|
|
<p v-if="deleteAccountError">
|
|
|
|
{{ deleteAccountError }}
|
|
|
|
</p>
|
|
|
|
<button
|
|
|
|
v-if="!deletingAccount"
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="confirmDelete"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2017-12-24 01:44:22 +11:00
|
|
|
</div>
|
2018-08-28 05:22:25 +10:00
|
|
|
|
2019-07-05 17:17:44 +10:00
|
|
|
<div
|
|
|
|
v-if="pleromaBackend"
|
|
|
|
:label="$t('settings.notifications')"
|
|
|
|
>
|
2019-05-25 17:01:02 +10:00
|
|
|
<div class="setting-item">
|
2019-05-26 09:44:36 +10:00
|
|
|
<div class="select-multiple">
|
2019-07-05 17:17:44 +10:00
|
|
|
<span class="label">{{ $t('settings.notification_setting') }}</span>
|
2019-05-26 09:44:36 +10:00
|
|
|
<ul class="option-list">
|
|
|
|
<li>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="notificationSettings.follows">
|
2019-07-05 17:17:44 +10:00
|
|
|
{{ $t('settings.notification_setting_follows') }}
|
2019-10-07 08:05:21 +11:00
|
|
|
</Checkbox>
|
2019-05-26 09:44:36 +10:00
|
|
|
</li>
|
|
|
|
<li>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="notificationSettings.followers">
|
2019-07-05 17:17:44 +10:00
|
|
|
{{ $t('settings.notification_setting_followers') }}
|
2019-10-07 08:05:21 +11:00
|
|
|
</Checkbox>
|
2019-05-26 09:44:36 +10:00
|
|
|
</li>
|
|
|
|
<li>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="notificationSettings.non_follows">
|
2019-07-05 17:17:44 +10:00
|
|
|
{{ $t('settings.notification_setting_non_follows') }}
|
2019-10-07 08:05:21 +11:00
|
|
|
</Checkbox>
|
2019-05-26 09:44:36 +10:00
|
|
|
</li>
|
|
|
|
<li>
|
2019-10-07 08:05:21 +11:00
|
|
|
<Checkbox v-model="notificationSettings.non_followers">
|
2019-07-05 17:17:44 +10:00
|
|
|
{{ $t('settings.notification_setting_non_followers') }}
|
2019-10-07 08:05:21 +11:00
|
|
|
</Checkbox>
|
2019-05-26 09:44:36 +10:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<p>{{ $t('settings.notification_mutes') }}</p>
|
|
|
|
<p>{{ $t('settings.notification_blocks') }}</p>
|
|
|
|
<button
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="updateNotificationSettings"
|
|
|
|
>
|
|
|
|
{{ $t('general.submit') }}
|
|
|
|
</button>
|
2019-05-25 17:01:02 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-07-05 17:17:44 +10:00
|
|
|
<div
|
|
|
|
v-if="pleromaBackend"
|
|
|
|
:label="$t('settings.data_import_export_tab')"
|
|
|
|
>
|
2018-08-28 05:22:25 +10:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.follow_import') }}</h2>
|
|
|
|
<p>{{ $t('settings.import_followers_from_a_csv_file') }}</p>
|
|
|
|
<Importer
|
|
|
|
:submit-handler="importFollows"
|
|
|
|
:success-message="$t('settings.follows_imported')"
|
|
|
|
:error-message="$t('settings.follow_import_error')"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-03-30 23:03:40 +11:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.follow_export') }}</h2>
|
|
|
|
<Exporter
|
|
|
|
:get-content="getFollowsContent"
|
|
|
|
filename="friends.csv"
|
|
|
|
:export-button-label="$t('settings.follow_export_button')"
|
|
|
|
/>
|
2018-08-28 05:22:25 +10:00
|
|
|
</div>
|
2019-03-30 22:27:53 +11:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.block_import') }}</h2>
|
|
|
|
<p>{{ $t('settings.import_blocks_from_a_csv_file') }}</p>
|
|
|
|
<Importer
|
|
|
|
:submit-handler="importBlocks"
|
|
|
|
:success-message="$t('settings.blocks_imported')"
|
|
|
|
:error-message="$t('settings.block_import_error')"
|
|
|
|
/>
|
2019-03-30 22:27:53 +11:00
|
|
|
</div>
|
2019-03-30 23:14:52 +11:00
|
|
|
<div class="setting-item">
|
2019-07-05 17:17:44 +10:00
|
|
|
<h2>{{ $t('settings.block_export') }}</h2>
|
|
|
|
<Exporter
|
|
|
|
:get-content="getBlocksContent"
|
|
|
|
filename="blocks.csv"
|
|
|
|
:export-button-label="$t('settings.block_export_button')"
|
|
|
|
/>
|
2019-03-30 23:14:52 +11:00
|
|
|
</div>
|
2018-05-14 00:09:07 +10:00
|
|
|
</div>
|
2019-02-21 04:36:15 +11:00
|
|
|
|
2019-02-13 23:15:08 +11:00
|
|
|
<div :label="$t('settings.blocks_tab')">
|
2019-04-03 04:18:41 +11:00
|
|
|
<div class="profile-edit-usersearch-wrapper">
|
2019-07-05 17:17:44 +10:00
|
|
|
<Autosuggest
|
|
|
|
:filter="filterUnblockedUsers"
|
|
|
|
:query="queryUserIds"
|
|
|
|
:placeholder="$t('settings.search_user_to_block')"
|
|
|
|
>
|
|
|
|
<BlockCard
|
|
|
|
slot-scope="row"
|
|
|
|
:user-id="row.item"
|
|
|
|
/>
|
2019-04-03 07:10:03 +11:00
|
|
|
</Autosuggest>
|
2019-04-03 04:18:41 +11:00
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<BlockList
|
|
|
|
:refresh="true"
|
|
|
|
:get-key="identity"
|
|
|
|
>
|
|
|
|
<template
|
|
|
|
slot="header"
|
|
|
|
slot-scope="{selected}"
|
|
|
|
>
|
2019-04-05 07:20:48 +11:00
|
|
|
<div class="profile-edit-bulk-actions">
|
2019-07-05 17:17:44 +10:00
|
|
|
<ProgressButton
|
|
|
|
v-if="selected.length > 0"
|
|
|
|
class="btn btn-default"
|
|
|
|
:click="() => blockUsers(selected)"
|
|
|
|
>
|
2019-04-05 04:30:34 +11:00
|
|
|
{{ $t('user_card.block') }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('user_card.block_progress') }}
|
|
|
|
</template>
|
2019-04-05 04:30:34 +11:00
|
|
|
</ProgressButton>
|
2019-07-05 17:17:44 +10:00
|
|
|
<ProgressButton
|
|
|
|
v-if="selected.length > 0"
|
|
|
|
class="btn btn-default"
|
|
|
|
:click="() => unblockUsers(selected)"
|
|
|
|
>
|
2019-04-05 04:30:34 +11:00
|
|
|
{{ $t('user_card.unblock') }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('user_card.unblock_progress') }}
|
|
|
|
</template>
|
2019-04-05 04:30:34 +11:00
|
|
|
</ProgressButton>
|
|
|
|
</div>
|
|
|
|
</template>
|
2019-07-05 17:17:44 +10:00
|
|
|
<template
|
|
|
|
slot="item"
|
|
|
|
slot-scope="{item}"
|
|
|
|
>
|
|
|
|
<BlockCard :user-id="item" />
|
|
|
|
</template>
|
|
|
|
<template slot="empty">
|
|
|
|
{{ $t('settings.no_blocks') }}
|
|
|
|
</template>
|
2019-04-04 13:17:42 +11:00
|
|
|
</BlockList>
|
2019-02-13 23:15:08 +11:00
|
|
|
</div>
|
2019-02-24 19:02:04 +11:00
|
|
|
|
|
|
|
<div :label="$t('settings.mutes_tab')">
|
2019-04-03 07:14:45 +11:00
|
|
|
<div class="profile-edit-usersearch-wrapper">
|
2019-07-05 17:17:44 +10:00
|
|
|
<Autosuggest
|
|
|
|
:filter="filterUnMutedUsers"
|
|
|
|
:query="queryUserIds"
|
|
|
|
:placeholder="$t('settings.search_user_to_mute')"
|
|
|
|
>
|
|
|
|
<MuteCard
|
|
|
|
slot-scope="row"
|
|
|
|
:user-id="row.item"
|
|
|
|
/>
|
2019-04-03 07:14:45 +11:00
|
|
|
</Autosuggest>
|
|
|
|
</div>
|
2019-07-05 17:17:44 +10:00
|
|
|
<MuteList
|
|
|
|
:refresh="true"
|
|
|
|
:get-key="identity"
|
|
|
|
>
|
|
|
|
<template
|
|
|
|
slot="header"
|
|
|
|
slot-scope="{selected}"
|
|
|
|
>
|
2019-04-05 07:20:48 +11:00
|
|
|
<div class="profile-edit-bulk-actions">
|
2019-07-05 17:17:44 +10:00
|
|
|
<ProgressButton
|
|
|
|
v-if="selected.length > 0"
|
|
|
|
class="btn btn-default"
|
|
|
|
:click="() => muteUsers(selected)"
|
|
|
|
>
|
2019-04-05 05:02:46 +11:00
|
|
|
{{ $t('user_card.mute') }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('user_card.mute_progress') }}
|
|
|
|
</template>
|
2019-04-05 05:02:46 +11:00
|
|
|
</ProgressButton>
|
2019-07-05 17:17:44 +10:00
|
|
|
<ProgressButton
|
|
|
|
v-if="selected.length > 0"
|
|
|
|
class="btn btn-default"
|
|
|
|
:click="() => unmuteUsers(selected)"
|
|
|
|
>
|
2019-04-05 05:02:46 +11:00
|
|
|
{{ $t('user_card.unmute') }}
|
2019-07-05 17:17:44 +10:00
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('user_card.unmute_progress') }}
|
|
|
|
</template>
|
2019-04-05 05:02:46 +11:00
|
|
|
</ProgressButton>
|
|
|
|
</div>
|
|
|
|
</template>
|
2019-07-05 17:17:44 +10:00
|
|
|
<template
|
|
|
|
slot="item"
|
|
|
|
slot-scope="{item}"
|
|
|
|
>
|
|
|
|
<MuteCard :user-id="item" />
|
|
|
|
</template>
|
|
|
|
<template slot="empty">
|
|
|
|
{{ $t('settings.no_mutes') }}
|
|
|
|
</template>
|
2019-04-04 13:17:42 +11:00
|
|
|
</MuteList>
|
2019-02-24 19:02:04 +11:00
|
|
|
</div>
|
2018-08-28 05:22:25 +10:00
|
|
|
</tab-switcher>
|
2017-08-03 05:09:40 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./user_settings.js">
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2019-02-07 19:05:59 +11:00
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
2017-08-03 05:09:40 +10:00
|
|
|
.profile-edit {
|
2018-04-08 02:30:27 +10:00
|
|
|
.bio {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-04-01 04:14:36 +10:00
|
|
|
|
2019-05-16 12:21:06 +10:00
|
|
|
.visibility-tray {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
|
|
|
|
2018-04-08 02:30:27 +10:00
|
|
|
input[type=file] {
|
|
|
|
padding: 5px;
|
2018-05-30 05:44:45 +10:00
|
|
|
height: auto;
|
2018-04-08 02:30:27 +10:00
|
|
|
}
|
2018-04-01 04:14:36 +10:00
|
|
|
|
2018-04-08 02:30:27 +10:00
|
|
|
.banner {
|
2019-02-11 19:06:37 +11:00
|
|
|
max-width: 100%;
|
2018-04-08 02:30:27 +10:00
|
|
|
}
|
2017-08-03 05:09:40 +10:00
|
|
|
|
2018-04-08 02:30:27 +10:00
|
|
|
.uploading {
|
|
|
|
font-size: 1.5em;
|
|
|
|
margin: 0.25em;
|
|
|
|
}
|
2019-02-02 08:12:14 +11:00
|
|
|
|
|
|
|
.name-changer {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2019-02-10 07:42:51 +11:00
|
|
|
|
|
|
|
.bg {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2019-02-07 19:05:59 +11:00
|
|
|
|
2019-02-09 13:59:33 +11:00
|
|
|
.current-avatar {
|
2019-02-07 19:05:59 +11:00
|
|
|
display: block;
|
|
|
|
width: 150px;
|
|
|
|
height: 150px;
|
|
|
|
border-radius: $fallback--avatarRadius;
|
|
|
|
border-radius: var(--avatarRadius, $fallback--avatarRadius);
|
|
|
|
}
|
2019-02-13 05:53:59 +11:00
|
|
|
|
|
|
|
.oauth-tokens {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
2019-04-03 04:18:41 +11:00
|
|
|
|
|
|
|
&-usersearch-wrapper {
|
|
|
|
padding: 1em;
|
|
|
|
}
|
2019-04-05 04:30:34 +11:00
|
|
|
|
2019-04-05 07:20:48 +11:00
|
|
|
&-bulk-actions {
|
2019-04-05 04:30:34 +11:00
|
|
|
text-align: right;
|
|
|
|
padding: 0 1em;
|
|
|
|
min-height: 28px;
|
|
|
|
|
|
|
|
button {
|
|
|
|
width: 10em;
|
|
|
|
}
|
|
|
|
}
|
2019-09-13 23:15:19 +10:00
|
|
|
|
|
|
|
.setting-subitem {
|
|
|
|
margin-left: 1.75em;
|
|
|
|
}
|
2017-08-03 05:09:40 +10:00
|
|
|
}
|
|
|
|
</style>
|