Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma-fe
Commits
455cd0d0
Commit
455cd0d0
authored
Sep 25, 2018
by
HJ
🔥
Browse files
settings for scope/subject
parent
bfd2b456
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/components/settings/settings.js
View file @
455cd0d0
...
...
@@ -26,6 +26,12 @@ const settings = {
?
instance
.
collapseMessageWithSubject
:
user
.
collapseMessageWithSubject
,
collapseMessageWithSubjectDefault
:
this
.
$t
(
'
settings.values.
'
+
instance
.
collapseMessageWithSubject
),
subjectLineBehaviorLocal
:
typeof
user
.
subjectLineBehavior
===
'
undefined
'
?
instance
.
subjectLineBehavior
:
user
.
subjectLineBehavior
,
subjectLineBehaviorDefault
:
instance
.
subjectLineBehavior
,
scopeCopyLocal
:
user
.
scopeCopy
,
scopeCopyDefault
:
this
.
$t
(
'
settings.values.
'
+
instance
.
scopeCopy
),
stopGifs
:
user
.
stopGifs
,
loopSilentAvailable
:
// Firefox
...
...
@@ -99,6 +105,12 @@ const settings = {
collapseMessageWithSubjectLocal
(
value
)
{
this
.
$store
.
dispatch
(
'
setOption
'
,
{
name
:
'
collapseMessageWithSubject
'
,
value
})
},
scopeCopyLocal
(
value
)
{
this
.
$store
.
dispatch
(
'
setOption
'
,
{
name
:
'
scopeCopy
'
,
value
})
},
subjectLineBehaviorLocal
(
value
)
{
this
.
$store
.
dispatch
(
'
setOption
'
,
{
name
:
'
subjectLineBehavior
'
,
value
})
},
stopGifs
(
value
)
{
this
.
$store
.
dispatch
(
'
setOption
'
,
{
name
:
'
stopGifs
'
,
value
})
}
...
...
src/components/settings/settings.vue
View file @
455cd0d0
...
...
@@ -53,6 +53,41 @@
</li>
</ul>
</div>
<div
class=
"setting-item"
>
<h2>
{{$t('settings.composing')}}
</h2>
<ul
class=
"setting-list"
>
<li>
<input
type=
"checkbox"
id=
"scopeCopy"
v-model=
"scopeCopyLocal"
>
<label
for=
"scopeCopy"
>
{{$t('settings.scope_copy')}} {{$t('settings.instance_default', { value: scopeCopyDefault })}}
</label>
</li>
<li>
<div>
{{$t('settings.subject_line_behavior')}}
<label
for=
"subjectLineBehavior"
class=
"select"
>
<select
id=
"subjectLineBehavior"
v-model=
"subjectLineBehaviorLocal"
>
<option
value=
"email"
>
{{$t('settings.subject_line_email')}}
{{subjectLineBehaviorLocal == 'email' ? $t('settings.instance_default_simple') : ''}}
</option>
<option
value=
"masto"
>
{{$t('settings.subject_line_mastodon')}}
{{subjectLineBehaviorLocal == 'mastodon' ? $t('settings.instance_default_simple') : ''}}
</option>
<option
value=
"noop"
>
{{$t('settings.subject_line_noop')}}
{{subjectLineBehaviorLocal == 'noop' ? $t('settings.instance_default_simple') : ''}}
</option>
</select>
<i
class=
"icon-down-open"
/>
</label>
</div>
</li>
</ul>
</div>
<div
class=
"setting-item"
>
<h2>
{{$t('settings.attachments')}}
</h2>
<ul
class=
"setting-list"
>
...
...
src/i18n/en.json
View file @
455cd0d0
...
...
@@ -88,6 +88,7 @@
"change_password_error"
:
"There was an issue changing your password."
,
"changed_password"
:
"Password changed successfully!"
,
"collapse_subject"
:
"Collapse posts with subjects"
,
"composing"
:
"Composing"
,
"confirm_new_password"
:
"Confirm new password"
,
"current_avatar"
:
"Your current avatar"
,
"current_password"
:
"Current password"
,
...
...
@@ -115,6 +116,7 @@
"import_theme"
:
"Load preset"
,
"inputRadius"
:
"Input fields"
,
"instance_default: (default"
:
"{value})"
,
"instance_default_simple"
:
"(default)"
,
"interfaceLanguage"
:
"Interface language"
,
"invalid_theme_imported"
:
"The selected file is not a supported Pleroma theme. No changes to your theme were made."
,
"limited_availability"
:
"Unavailable in your browser"
,
...
...
@@ -147,10 +149,15 @@
"saving_err"
:
"Error saving settings"
,
"saving_ok"
:
"Settings saved"
,
"security_tab"
:
"Security"
,
"scope_copy"
:
"Copy scope when replying (DMs are always copied)"
,
"set_new_avatar"
:
"Set new avatar"
,
"set_new_profile_background"
:
"Set new profile background"
,
"set_new_profile_banner"
:
"Set new profile banner"
,
"settings"
:
"Settings"
,
"subject_line_behavior"
:
"Copy subject when replying"
,
"subject_line_email"
:
"Like email:
\"
re: subject
\"
"
,
"subject_line_mastodon"
:
"Like mastodon: copy as is"
,
"subject_line_noop"
:
"Do not copy"
,
"stop_gifs"
:
"Play-on-hover GIFs"
,
"streaming"
:
"Enable automatic streaming of new posts when scrolled to the top"
,
"text"
:
"Text"
,
...
...
src/i18n/fr.json
View file @
455cd0d0
...
...
@@ -115,6 +115,7 @@
"import_theme"
:
"Charger le thème"
,
"inputRadius"
:
"Champs de texte"
,
"instance_default: (default"
:
"{value})"
,
"instance_default_simple"
:
"(default)"
,
"interfaceLanguage"
:
"Langue de l'interface"
,
"invalid_theme_imported"
:
"Le fichier sélectionné n'est pas un thème Pleroma pris en charge. Aucun changement n'a été apporté à votre thème."
,
"limited_availability"
:
"Non disponible dans votre navigateur"
,
...
...
src/modules/config.js
View file @
455cd0d0
...
...
@@ -5,7 +5,7 @@ const browserLocale = (window.navigator.language || 'en').split('-')[0]
const
defaultState
=
{
colors
:
{},
collapseMessageWithSubject
:
false
,
collapseMessageWithSubject
:
undefined
,
// instance default
hideAttachments
:
false
,
hideAttachmentsInConv
:
false
,
hideNsfw
:
true
,
...
...
@@ -25,7 +25,9 @@ const defaultState = {
},
muteWords
:
[],
highlight
:
{},
interfaceLanguage
:
browserLocale
interfaceLanguage
:
browserLocale
,
scopeCopy
:
undefined
,
// instance default
subjectLineBehavior
:
undefined
// instance default
}
const
config
=
{
...
...
src/modules/instance.js
View file @
455cd0d0
...
...
@@ -19,6 +19,8 @@ const defaultState = {
formattingOptionsEnabled
:
false
,
collapseMessageWithSubject
:
false
,
disableChat
:
false
,
scopeCopy
:
false
,
subjectLineBehavior
:
'
email
'
,
// Nasty stuff
pleromaBackend
:
true
,
...
...
static/config.json
View file @
455cd0d0
...
...
@@ -10,5 +10,7 @@
"showInstanceSpecificPanel"
:
false
,
"scopeOptionsEnabled"
:
false
,
"formattingOptionsEnabled"
:
false
,
"collapseMessageWithSubject"
:
false
"collapseMessageWithSubject"
:
false
,
"scopeCopy"
:
false
,
"subjectLineBehavior"
:
"email"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment