forked from AkkomaGang/admin-fe
Update search on all settings routes
This commit is contained in:
parent
f96b5e0a0b
commit
6921d905dc
21 changed files with 232 additions and 2 deletions
|
@ -81,6 +81,18 @@ export default {
|
||||||
},
|
},
|
||||||
pleromaAuthenticatorData() {
|
pleromaAuthenticatorData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {}
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -61,6 +61,18 @@ export default {
|
||||||
},
|
},
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -179,6 +179,9 @@ export default {
|
||||||
remotePacksCount() {
|
remotePacksCount() {
|
||||||
return this.$store.state.emojiPacks.remotePacksCount
|
return this.$store.state.emojiPacks.remotePacksCount
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
settingsLabelWidth() {
|
settingsLabelWidth() {
|
||||||
if (this.isMobile) {
|
if (this.isMobile) {
|
||||||
return '120px'
|
return '120px'
|
||||||
|
@ -193,6 +196,17 @@ export default {
|
||||||
this.$store.dispatch('GetNodeInfo')
|
this.$store.dispatch('GetNodeInfo')
|
||||||
this.$store.dispatch('NeedReboot')
|
this.$store.dispatch('NeedReboot')
|
||||||
this.refreshLocalPacks()
|
this.refreshLocalPacks()
|
||||||
|
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
this.activeTab = 'settings'
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
console.log(selectedSetting)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeLocalTabs() {
|
closeLocalTabs() {
|
||||||
|
|
|
@ -51,6 +51,18 @@ export default {
|
||||||
},
|
},
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -106,6 +106,9 @@ export default {
|
||||||
preloadData() {
|
preloadData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Preload']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Preload']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
staticFe() {
|
staticFe() {
|
||||||
return this.settings.description.find(setting => setting.key === ':static_fe')
|
return this.settings.description.find(setting => setting.key === ':static_fe')
|
||||||
},
|
},
|
||||||
|
@ -113,6 +116,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':static_fe']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':static_fe']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -51,6 +51,18 @@ export default {
|
||||||
},
|
},
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -76,6 +76,9 @@ export default {
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
webCacheTtl() {
|
webCacheTtl() {
|
||||||
return this.settings.description.find(setting => setting.key === ':web_cache_ttl')
|
return this.settings.description.find(setting => setting.key === ':web_cache_ttl')
|
||||||
},
|
},
|
||||||
|
@ -83,6 +86,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':web_cache_ttl']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':web_cache_ttl']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -146,6 +146,9 @@ export default {
|
||||||
restrictUnauthenticatedData() {
|
restrictUnauthenticatedData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':restrict_unauthenticated']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':restrict_unauthenticated']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
scheduledActivity() {
|
scheduledActivity() {
|
||||||
return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.ScheduledActivity')
|
return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.ScheduledActivity')
|
||||||
},
|
},
|
||||||
|
@ -172,6 +175,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
|
||||||
await this.$store.dispatch('FetchInstanceDocument', 'instance-panel')
|
await this.$store.dispatch('FetchInstanceDocument', 'instance-panel')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -96,6 +96,9 @@ export default {
|
||||||
poolsData() {
|
poolsData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':pools']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':pools']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
workers() {
|
workers() {
|
||||||
return this.settings.description.find(setting => setting.key === ':workers')
|
return this.settings.description.find(setting => setting.key === ':workers')
|
||||||
},
|
},
|
||||||
|
@ -103,6 +106,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':workers']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':workers']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -51,6 +51,18 @@ export default {
|
||||||
},
|
},
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -76,6 +76,9 @@ export default {
|
||||||
loggerData() {
|
loggerData() {
|
||||||
return _.get(this.settings.settings, [':logger', ':backends']) || {}
|
return _.get(this.settings.settings, [':logger', ':backends']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
quack() {
|
quack() {
|
||||||
return this.settings.description.find(setting => setting.group === ':quack')
|
return this.settings.description.find(setting => setting.group === ':quack')
|
||||||
},
|
},
|
||||||
|
@ -83,6 +86,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':quack']) || {}
|
return _.get(this.settings.settings, [':quack']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -51,6 +51,18 @@ export default {
|
||||||
},
|
},
|
||||||
mrfSettings() {
|
mrfSettings() {
|
||||||
return this.settings.description.filter(el => el.tab === 'mrf')
|
return this.settings.description.filter(el => el.tab === 'mrf')
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -82,6 +82,9 @@ export default {
|
||||||
newUsersDigestEmailData() {
|
newUsersDigestEmailData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.NewUsersDigestEmail']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.NewUsersDigestEmail']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
swoosh() {
|
swoosh() {
|
||||||
return this.settings.description.find(setting => setting.group === ':swoosh')
|
return this.settings.description.find(setting => setting.group === ':swoosh')
|
||||||
},
|
},
|
||||||
|
@ -95,6 +98,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.UserEmail']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Emails.UserEmail']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -76,6 +76,9 @@ export default {
|
||||||
mediaProxyData() {
|
mediaProxyData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':media_proxy']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':media_proxy']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
scriptInvalidation() {
|
scriptInvalidation() {
|
||||||
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.MediaProxy.Invalidation.Script')
|
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.MediaProxy.Invalidation.Script')
|
||||||
},
|
},
|
||||||
|
@ -83,6 +86,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.MediaProxy.Invalidation.Script']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.MediaProxy.Invalidation.Script']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -56,6 +56,9 @@ export default {
|
||||||
metadataData() {
|
metadataData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Metadata']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Metadata']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
richMedia() {
|
richMedia() {
|
||||||
return this.settings.description.find(setting => setting.key === ':rich_media')
|
return this.settings.description.find(setting => setting.key === ':rich_media')
|
||||||
},
|
},
|
||||||
|
@ -63,6 +66,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':rich_media']) || {}
|
return _.get(this.settings.settings, [':pleroma', ':rich_media']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -110,6 +110,9 @@ export default {
|
||||||
remoteIpData() {
|
remoteIpData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Plugs.RemoteIp']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Plugs.RemoteIp']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
termsOfServicesContent: {
|
termsOfServicesContent: {
|
||||||
get() {
|
get() {
|
||||||
return this.$store.state.settings.termsOfServices
|
return this.$store.state.settings.termsOfServices
|
||||||
|
@ -120,6 +123,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
|
||||||
await this.$store.dispatch('FetchInstanceDocument', 'terms-of-service')
|
await this.$store.dispatch('FetchInstanceDocument', 'terms-of-service')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -51,6 +51,18 @@ export default {
|
||||||
},
|
},
|
||||||
loading() {
|
loading() {
|
||||||
return this.$store.state.settings.loading
|
return this.$store.state.settings.loading
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -72,6 +72,9 @@ export default {
|
||||||
s3Data() {
|
s3Data() {
|
||||||
return _.get(this.settings.settings, [':ex_aws', ':s3']) || {}
|
return _.get(this.settings.settings, [':ex_aws', ':s3']) || {}
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
showUploadersS3() {
|
showUploadersS3() {
|
||||||
const uploader = _.get(this.settings.settings, [':pleroma', 'Pleroma.Upload', ':uploader'])
|
const uploader = _.get(this.settings.settings, [':pleroma', 'Pleroma.Upload', ':uploader'])
|
||||||
return uploader === 'Pleroma.Uploaders.S3'
|
return uploader === 'Pleroma.Uploaders.S3'
|
||||||
|
@ -111,6 +114,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Upload.Filter.AnonymizeFilename']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Upload.Filter.AnonymizeFilename']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -46,6 +46,9 @@ export default {
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
},
|
},
|
||||||
|
searchQuery() {
|
||||||
|
return this.$store.state.settings.searchQuery
|
||||||
|
},
|
||||||
vapidDetails() {
|
vapidDetails() {
|
||||||
return this.settings.description.find(setting => setting.key === ':vapid_details')
|
return this.settings.description.find(setting => setting.key === ':vapid_details')
|
||||||
},
|
},
|
||||||
|
@ -53,6 +56,15 @@ export default {
|
||||||
return _.get(this.settings.settings, [':web_push_encryption', ':vapid_details']) || {}
|
return _.get(this.settings.settings, [':web_push_encryption', ':vapid_details']) || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.searchQuery.length > 0) {
|
||||||
|
const selectedSetting = document.querySelector(`[data-search="${this.searchQuery}"]`)
|
||||||
|
if (selectedSetting) {
|
||||||
|
selectedSetting.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||||
|
}
|
||||||
|
this.$store.dispatch('SetSearchQuery', '')
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async onSubmit() {
|
async onSubmit() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'frontend': {
|
'frontend': {
|
||||||
label: 'settings.frontend',
|
label: 'settings.frontend',
|
||||||
settings: [':assets', ':chat', ':frontends', ':emoji', ':frontend_configurations', ':markup', ':static_fe']
|
settings: [':assets', ':chat', ':frontends', ':emoji', ':frontend_configurations', ':markup', ':static_fe', 'Pleroma.Web.Preload']
|
||||||
},
|
},
|
||||||
'gopher': {
|
'gopher': {
|
||||||
label: 'settings.gopher',
|
label: 'settings.gopher',
|
||||||
|
|
|
@ -151,7 +151,9 @@ export default {
|
||||||
const tab = Object.keys(this.tabs).find(tab => {
|
const tab = Object.keys(this.tabs).find(tab => {
|
||||||
return this.tabs[tab].settings.includes(selectedValue.group === ':pleroma' ? selectedValue.key : selectedValue.group)
|
return this.tabs[tab].settings.includes(selectedValue.group === ':pleroma' ? selectedValue.key : selectedValue.group)
|
||||||
})
|
})
|
||||||
|
if (tab) {
|
||||||
this.$router.push({ path: `/settings/${tab}` })
|
this.$router.push({ path: `/settings/${tab}` })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
querySearch(queryString, cb) {
|
querySearch(queryString, cb) {
|
||||||
const results = this.searchData.filter(searchObj => searchObj.search.find(el => el.includes(queryString.toLowerCase())))
|
const results = this.searchData.filter(searchObj => searchObj.search.find(el => el.includes(queryString.toLowerCase())))
|
||||||
|
|
Loading…
Reference in a new issue