Add new settings to the search

This commit is contained in:
Angelina Filippova 2020-07-11 21:53:23 +03:00
parent 5ae214fbbe
commit 0bc5cf9f6b
2 changed files with 84 additions and 81 deletions

View file

@ -1,4 +1,6 @@
export const tabs = {
export const tabs = description => {
return {
'activity-pub': {
label: 'settings.activityPub',
settings: [':activitypub', ':user']
@ -49,7 +51,7 @@ export const tabs = {
},
'media-proxy': {
label: 'settings.mediaProxy',
settings: [':media_proxy']
settings: [':media_proxy', 'Pleroma.Web.MediaProxy.Invalidation.Http', 'Pleroma.Web.MediaProxy.Invalidation.Script']
},
'metadata': {
label: 'settings.metadata',
@ -57,7 +59,7 @@ export const tabs = {
},
'mrf': {
label: 'settings.mrf',
settings: [':mrf_simple', ':mrf_rejectnonpublic', ':mrf_hellthread', ':mrf_keyword', ':mrf_subchain', ':mrf_mention', ':mrf_normalize_markup', ':mrf_vocabulary', ':mrf_object_age', ':modules']
settings: description.filter(el => el.tab === 'mrf').map(setting => setting.key)
},
'rate-limiters': {
label: 'settings.rateLimiters',
@ -73,10 +75,11 @@ export const tabs = {
},
'upload': {
label: 'settings.upload',
settings: ['Pleroma.Upload.Filter.AnonymizeFilename', 'Pleroma.Upload.Filter.Mogrify', 'Pleroma.Uploaders.S3', 'Pleroma.Uploaders.Local', 'Pleroma.Upload']
settings: ['Pleroma.Upload.Filter.AnonymizeFilename', 'Pleroma.Upload.Filter.Mogrify', 'Pleroma.Uploaders.S3', 'Pleroma.Uploaders.Local', 'Pleroma.Upload', ':s3']
},
'other': {
label: 'settings.other',
settings: [':mime', 'Pleroma.Plugs.RemoteIp']
}
}
}

View file

@ -200,7 +200,7 @@ export default {
return this.$store.state.settings.searchData
},
tabs() {
return tabs
return tabs(this.$store.state.settings.description)
}
},
mounted: function() {