diff --git a/CHANGELOG.md b/CHANGELOG.md
index 235f03b3..a58c507e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## [1.0.1] - 2019-08-15
+### Fixed
+
+- fixes inputs for renders_errors and rewrite_policy settings
+- removes unnecessary computed properties
+- enables source maps for production build
+
## [1.0.0] - 2019-08-14
Starting this changelog, for now we have:
diff --git a/config/index.js b/config/index.js
index 7043ee18..4bc47744 100644
--- a/config/index.js
+++ b/config/index.js
@@ -65,7 +65,7 @@ module.exports = {
/**
* Source Maps
*/
- productionSourceMap: false,
+ productionSourceMap: true,
// https://webpack.js.org/configuration/devtool/#production
devtool: 'source-map',
diff --git a/src/store/getters.js b/src/store/getters.js
index 49d041f9..1e0d4791 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -18,80 +18,80 @@ const getters = {
users: state => state.users.fetchedUsers,
authHost: state => state.user.authHost,
- activityPubConfig: state => state.settings.settings['activitypub'],
- adminTokenConfig: state => state.settings.settings['admin_token'],
- assetsConfig: state => state.settings.settings['assets'],
- authConfig: state => state.settings.settings['auth'],
- autoLinkerConfig: state => state.settings.settings['auto_linker'],
- captchaConfig: state => state.settings.settings['Pleroma.Captcha'],
- chatConfig: state => state.settings.settings['chat'],
- consoleConfig: state => state.settings.settings['console'],
+ activityPub: state => state.settings.settings['activitypub'],
+ adminToken: state => state.settings.settings['admin_token'],
+ assets: state => state.settings.settings['assets'],
+ auth: state => state.settings.settings['auth'],
+ autoLinker: state => state.settings.settings['auto_linker'],
+ captcha: state => state.settings.settings['Pleroma.Captcha'],
+ chat: state => state.settings.settings['chat'],
+ consoleLogger: state => state.settings.settings['console'],
corsPlugCredentials: state => state.settings.settings['credentials'],
- corsPlugExposeConfig: state => state.settings.settings['expose'],
+ corsPlugExpose: state => state.settings.settings['expose'],
corsPlugHeaders: state => state.settings.settings['headers'],
corsPlugMaxAge: state => state.settings.settings['max_age'],
corsPlugMethods: state => state.settings.settings['methods'],
- databaseConfig: state => state.settings.settings['database'],
- ectoReposConfig: state => state.settings.settings['ecto_repos'],
- emojiConfig: state => state.settings.settings['emoji'],
- enabledConfig: state => state.settings.settings['enabled'],
- endpointConfig: state => state.settings.settings['Pleroma.Web.Endpoint'],
- exsysloggerConfig: state => state.settings.settings['ex_syslogger'],
- facebookConfig: state => state.settings.settings['Ueberauth.Strategy.Facebook.OAuth'],
- fetchInitialPostsConfig: state => state.settings.settings['fetch_initial_posts'],
- formatEncodersConfig: state => state.settings.settings['format_encoders'],
- frontendConfig: state => state.settings.settings['frontend_configurations'],
- googleConfig: state => state.settings.settings['Ueberauth.Strategy.Google.OAuth'],
- gopherConfig: state => state.settings.settings['gopher'],
- hackneyPoolsConfig: state => state.settings.settings['hackney_pools'],
- handlerConfig: state => state.settings.settings['handler'],
- httpConfig: state => state.settings.settings['http'],
- httpSecurityConfig: state => state.settings.settings['http_security'],
- instanceConfig: state => state.settings.settings['instance'],
- kocaptchaConfig: state => state.settings.settings['Pleroma.Captcha.Kocaptcha'],
- levelConfig: state => state.settings.settings['level'],
- ldapConfig: state => state.settings.settings['ldap'],
- loggerBackendsConfig: state => state.settings.settings['backends'],
- mailerConfig: state => state.settings.settings['Pleroma.Emails.Mailer'],
- markupConfig: state => state.settings.settings['markup'],
- mediaProxyConfig: state => state.settings.settings['media_proxy'],
- metaConfig: state => state.settings.settings['meta'],
- metadataConfig: state => state.settings.settings['Pleroma.Web.Metadata'],
- microsoftConfig: state => state.settings.settings['Ueberauth.Strategy.Microsoft.OAuth'],
+ database: state => state.settings.settings['database'],
+ ectoRepos: state => state.settings.settings['ecto_repos'],
+ emoji: state => state.settings.settings['emoji'],
+ enabled: state => state.settings.settings['enabled'],
+ endpoint: state => state.settings.settings['Pleroma.Web.Endpoint'],
+ exsyslogger: state => state.settings.settings['ex_syslogger'],
+ facebook: state => state.settings.settings['Ueberauth.Strategy.Facebook.OAuth'],
+ fetchInitialPosts: state => state.settings.settings['fetch_initial_posts'],
+ formatEncoders: state => state.settings.settings['format_encoders'],
+ frontend: state => state.settings.settings['frontend_configurations'],
+ google: state => state.settings.settings['Ueberauth.Strategy.Google.OAuth'],
+ gopher: state => state.settings.settings['gopher'],
+ hackneyPools: state => state.settings.settings['hackney_pools'],
+ handler: state => state.settings.settings['handler'],
+ http: state => state.settings.settings['http'],
+ httpSecurity: state => state.settings.settings['http_security'],
+ instance: state => state.settings.settings['instance'],
+ kocaptcha: state => state.settings.settings['Pleroma.Captcha.Kocaptcha'],
+ level: state => state.settings.settings['level'],
+ ldap: state => state.settings.settings['ldap'],
+ loggerBackends: state => state.settings.settings['backends'],
+ mailer: state => state.settings.settings['Pleroma.Emails.Mailer'],
+ markup: state => state.settings.settings['markup'],
+ mediaProxy: state => state.settings.settings['media_proxy'],
+ meta: state => state.settings.settings['meta'],
+ metadata: state => state.settings.settings['Pleroma.Web.Metadata'],
+ microsoft: state => state.settings.settings['Ueberauth.Strategy.Microsoft.OAuth'],
mimeTypesConfig: state => state.settings.settings['types'],
- mrfHellthreadConfig: state => state.settings.settings['mrf_hellthread'],
- mrfKeywordConfig: state => state.settings.settings['mrf_keyword'],
- mrfMentionConfig: state => state.settings.settings['mrf_mention'],
- mrfNormalizeMarkupConfig: state => state.settings.settings['mrf_normalize_markup'],
- mrfRejectnonpublicConfig: state => state.settings.settings['mrf_rejectnonpublic'],
- mrfSimpleConfig: state => state.settings.settings['mrf_simple'],
- mrfSubchainConfig: state => state.settings.settings['mrf_subchain'],
- mrfUserAllowlistConfig: state => state.settings.settings['mrf_user_allowlist'],
- oauth2Config: state => state.settings.settings['oauth2'],
- passwordAuthenticatorConfig: state => state.settings.settings['password_authenticator'],
- pleromaAuthenticatorConfig: state => state.settings.settings['Pleroma.Web.Auth.Authenticator'],
- pleromaRepoConfig: state => state.settings.settings['Pleroma.Repo'],
- pleromaUserConfig: state => state.settings.settings['Pleroma.User'],
- portConfig: state => state.settings.settings['port'],
- privDirConfig: state => state.settings.settings['priv_dir'],
- queuesConfig: state => state.settings.settings['queues'],
- rateLimitersConfig: state => state.settings.settings['rate_limit'],
- retryQueueConfig: state => state.settings.settings['Pleroma.Web.Federator.RetryQueue'],
- richMediaConfig: state => state.settings.settings['rich_media'],
- suggestionsConfig: state => state.settings.settings['suggestions'],
- scheduledActivityConfig: state => state.settings.settings['Pleroma.ScheduledActivity'],
- teslaAdapterConfig: state => state.settings.settings['adapter'],
- twitterConfig: state => state.settings.settings['Ueberauth.Strategy.Twitter.OAuth'],
- ueberauthConfig: state => state.settings.settings['Ueberauth'],
- uploadAnonymizeFilenameConfig: state => state.settings.settings['Pleroma.Upload.Filter.AnonymizeFilename'],
- uploadConfig: state => state.settings.settings['Pleroma.Upload'],
- uploadFilterMogrifyConfig: state => state.settings.settings['Pleroma.Upload.Filter.Mogrify'],
- uploadersLocalConfig: state => state.settings.settings['Pleroma.Uploaders.Local'],
- uploadMDIIConfig: state => state.settings.settings['Pleroma.Uploaders.MDII'],
- uploadS3Config: state => state.settings.settings['Pleroma.Uploaders.S3'],
- uriSchemesConfig: state => state.settings.settings['uri_schemes'],
- userConfig: state => state.settings.settings['user'],
- vapidDetailsConfig: state => state.settings.settings['vapid_details'],
- webhookUrlConfig: state => state.settings.settings['webhook_url']
+ mrfHellthread: state => state.settings.settings['mrf_hellthread'],
+ mrfKeyword: state => state.settings.settings['mrf_keyword'],
+ mrfMention: state => state.settings.settings['mrf_mention'],
+ mrfNormalizeMarkup: state => state.settings.settings['mrf_normalize_markup'],
+ mrfRejectnonpublic: state => state.settings.settings['mrf_rejectnonpublic'],
+ mrfSimple: state => state.settings.settings['mrf_simple'],
+ mrfSubchain: state => state.settings.settings['mrf_subchain'],
+ mrfUserAllowlist: state => state.settings.settings['mrf_user_allowlist'],
+ oauth2: state => state.settings.settings['oauth2'],
+ passwordAuthenticator: state => state.settings.settings['password_authenticator'],
+ pleromaAuthenticator: state => state.settings.settings['Pleroma.Web.Auth.Authenticator'],
+ pleromaRepo: state => state.settings.settings['Pleroma.Repo'],
+ pleromaUser: state => state.settings.settings['Pleroma.User'],
+ port: state => state.settings.settings['port'],
+ privDir: state => state.settings.settings['priv_dir'],
+ queues: state => state.settings.settings['queues'],
+ rateLimiters: state => state.settings.settings['rate_limit'],
+ retryQueue: state => state.settings.settings['Pleroma.Web.Federator.RetryQueue'],
+ richMedia: state => state.settings.settings['rich_media'],
+ suggestions: state => state.settings.settings['suggestions'],
+ scheduledActivity: state => state.settings.settings['Pleroma.ScheduledActivity'],
+ teslaAdapter: state => state.settings.settings['adapter'],
+ twitter: state => state.settings.settings['Ueberauth.Strategy.Twitter.OAuth'],
+ ueberauth: state => state.settings.settings['Ueberauth'],
+ uploadAnonymizeFilename: state => state.settings.settings['Pleroma.Upload.Filter.AnonymizeFilename'],
+ upload: state => state.settings.settings['Pleroma.Upload'],
+ uploadFilterMogrify: state => state.settings.settings['Pleroma.Upload.Filter.Mogrify'],
+ uploadersLocal: state => state.settings.settings['Pleroma.Uploaders.Local'],
+ uploadMDII: state => state.settings.settings['Pleroma.Uploaders.MDII'],
+ uploadS3: state => state.settings.settings['Pleroma.Uploaders.S3'],
+ uriSchemes: state => state.settings.settings['uri_schemes'],
+ user: state => state.settings.settings['user'],
+ vapidDetails: state => state.settings.settings['vapid_details'],
+ webhookUrl: state => state.settings.settings['webhook_url']
}
export default getters
diff --git a/src/views/settings/components/ActivityPub.vue b/src/views/settings/components/ActivityPub.vue
index 455b9f67..b4638b00 100644
--- a/src/views/settings/components/ActivityPub.vue
+++ b/src/views/settings/components/ActivityPub.vue
@@ -47,20 +47,14 @@ export default {
name: 'ActivityPub',
computed: {
...mapGetters([
- 'activityPubConfig',
- 'userConfig'
+ 'activityPub',
+ 'user'
]),
- activityPub() {
- return this.activityPubConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
labelWidth() {
return this.isMobile ? '100px' : '210px'
- },
- user() {
- return this.userConfig
}
},
methods: {
diff --git a/src/views/settings/components/Authentication.vue b/src/views/settings/components/Authentication.vue
index 79104c0d..76ac2e55 100644
--- a/src/views/settings/components/Authentication.vue
+++ b/src/views/settings/components/Authentication.vue
@@ -27,7 +27,7 @@
-
+
The list of enabled OAuth consumer strategies; by default it's set by
OAUTH_CONSUMER_STRATEGIES
environment variable. You can enter values in the following format: 'a:foo b:baz'
@@ -238,43 +238,16 @@ export default {
name: 'Authentication',
computed: {
...mapGetters([
- 'pleromaAuthenticatorConfig',
- 'ldapConfig',
- 'authConfig',
- 'ueberauthConfig',
- 'oauth2Config',
- 'facebookConfig',
- 'googleConfig',
- 'twitterConfig',
- 'microsoftConfig'
+ 'pleromaAuthenticator',
+ 'ldap',
+ 'auth',
+ 'ueberauth',
+ 'oauth2',
+ 'facebook',
+ 'google',
+ 'twitter',
+ 'microsoft'
]),
- auth() {
- return this.authConfig
- },
- ldap() {
- return this.ldapConfig
- },
- oauth2() {
- return this.oauth2Config
- },
- pleromaAuthenticator() {
- return this.pleromaAuthenticatorConfig
- },
- ueberauth() {
- return this.ueberauthConfig
- },
- facebook() {
- return this.facebookConfig
- },
- google() {
- return this.googleConfig
- },
- twitter() {
- return this.twitterConfig
- },
- microsoft() {
- return this.microsoftConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/AutoLinker.vue b/src/views/settings/components/AutoLinker.vue
index 8d843e11..2c2f197b 100644
--- a/src/views/settings/components/AutoLinker.vue
+++ b/src/views/settings/components/AutoLinker.vue
@@ -1,5 +1,5 @@
-
+
Specify the class to be added to the generated link. False to clear.
@@ -17,11 +17,11 @@
Override the rel attribute. False to clear
-
+
Set to false to remove target='_blank' attribute
-
+
Set to true to link urls with schema http://google.com
@@ -34,15 +34,15 @@
Specify the class to be added to the generated link. False to clear.
-
+
Strip the scheme prefix
-
+
Link urls with rarely used schemes (magnet, ipfs, irc, etc.)
-
+
Submit
@@ -58,11 +58,8 @@ export default {
name: 'AutoLinker',
computed: {
...mapGetters([
- 'autoLinkerConfig'
+ 'autoLinker'
]),
- auto_linker() {
- return this.autoLinkerConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
@@ -84,15 +81,15 @@ export default {
},
methods: {
getBooleanValue(name) {
- const value = this.autoLinkerConfig.opts[name]
+ const value = this.autoLinker.opts[name]
return typeof value === 'string' || typeof value === 'number'
},
getNumValue(name) {
- const value = this.autoLinkerConfig.opts[name]
+ const value = this.autoLinker.opts[name]
return value || 0
},
getStringValue(name) {
- const value = this.autoLinkerConfig.opts[name]
+ const value = this.autoLinker.opts[name]
return value || ''
},
processTwoTypeValue(value, tab, inputName, childName) {
diff --git a/src/views/settings/components/Captcha.vue b/src/views/settings/components/Captcha.vue
index 4dd269ef..1e92ad61 100644
--- a/src/views/settings/components/Captcha.vue
+++ b/src/views/settings/components/Captcha.vue
@@ -39,15 +39,9 @@ export default {
name: 'Captcha',
computed: {
...mapGetters([
- 'captchaConfig',
- 'kocaptchaConfig'
+ 'captcha',
+ 'kocaptcha'
]),
- captcha() {
- return this.captchaConfig
- },
- kocaptcha() {
- return this.kocaptchaConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Database.vue b/src/views/settings/components/Database.vue
index 6f70d863..4133b803 100644
--- a/src/views/settings/components/Database.vue
+++ b/src/views/settings/components/Database.vue
@@ -142,24 +142,15 @@ export default {
name: 'Instance',
computed: {
...mapGetters([
- 'databaseConfig',
- 'ectoReposConfig',
- 'pleromaRepoConfig'
+ 'database',
+ 'ectoRepos',
+ 'pleromaRepo'
]),
- database() {
- return this.databaseConfig
- },
- ectoRepos() {
- return this.ectoReposConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
labelWidth() {
return this.isMobile ? '100px' : '210px'
- },
- pleromaRepo() {
- return this.pleromaRepoConfig
}
},
methods: {
diff --git a/src/views/settings/components/Endpoint.vue b/src/views/settings/components/Endpoint.vue
index 7a739b10..feb86c96 100644
--- a/src/views/settings/components/Endpoint.vue
+++ b/src/views/settings/components/Endpoint.vue
@@ -25,7 +25,7 @@
-
+
@@ -185,11 +185,11 @@ export default {
},
computed: {
...mapGetters([
- 'endpointConfig'
+ 'endpoint'
]),
editorContentHttp: {
get: function() {
- return this.endpointConfig.http.dispatch ? this.endpointConfig.http.dispatch[0] : ''
+ return this.endpoint.http.dispatch ? this.endpoint.http.dispatch[0] : ''
},
set: function(value) {
this.processNestedData([value], 'Pleroma.Web.Endpoint', 'http', 'dispatch')
@@ -197,7 +197,7 @@ export default {
},
editorContentHttps: {
get: function() {
- return this.endpointConfig.https.dispatch ? this.endpointConfig.https.dispatch[0] : ''
+ return this.endpoint.https.dispatch ? this.endpoint.https.dispatch[0] : ''
},
set: function(value) {
this.processNestedData([value], 'Pleroma.Web.Endpoint', 'https', 'dispatch')
@@ -209,9 +209,6 @@ export default {
configureHttps() {
return !this.endpoint.https === false
},
- endpoint() {
- return this.endpointConfig
- },
endpointHttp() {
return this.endpoint.http || {}
},
diff --git a/src/views/settings/components/Esshd.vue b/src/views/settings/components/Esshd.vue
index ac8fa290..86af2ab7 100644
--- a/src/views/settings/components/Esshd.vue
+++ b/src/views/settings/components/Esshd.vue
@@ -62,27 +62,12 @@ export default {
name: 'Instance',
computed: {
...mapGetters([
- 'enabledConfig',
- 'handlerConfig',
- 'passwordAuthenticatorConfig',
- 'portConfig',
- 'privDirConfig'
+ 'enabled',
+ 'handler',
+ 'passwordAuthenticator',
+ 'port',
+ 'privDir'
]),
- enabled() {
- return this.enabledConfig
- },
- handler() {
- return this.handlerConfig
- },
- passwordAuthenticator() {
- return this.passwordAuthenticatorConfig
- },
- port() {
- return this.portConfig
- },
- privDir() {
- return this.privDirConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Frontend.vue b/src/views/settings/components/Frontend.vue
index 421466de..ec912eca 100644
--- a/src/views/settings/components/Frontend.vue
+++ b/src/views/settings/components/Frontend.vue
@@ -325,34 +325,19 @@ export default {
name: 'Frontend',
computed: {
...mapGetters([
- 'assetsConfig',
- 'frontendConfig',
- 'emojiConfig',
- 'chatConfig',
- 'markupConfig'
+ 'assets',
+ 'frontend',
+ 'emoji',
+ 'chat',
+ 'markup'
]),
- assets() {
- return this.assetsConfig
- },
- chat() {
- return this.chatConfig
- },
- emoji() {
- return this.emojiConfig
- },
- frontend() {
- return this.frontendConfig
- },
groups() {
- return Object.keys(this.emojiConfig.groups).map(key => [key, this.emojiConfig.groups[key]])
- },
- markup() {
- return this.markupConfig
+ return Object.keys(this.emoji.groups).map(key => [key, this.emoji.groups[key]])
},
mascots() {
- return Object.keys(this.assetsConfig.mascots)
+ return Object.keys(this.assets.mascots)
.map(mascotName =>
- [mascotName, this.assetsConfig.mascots[mascotName].url, this.assetsConfig.mascots[mascotName].mime_type])
+ [mascotName, this.assets.mascots[mascotName].url, this.assets.mascots[mascotName].mime_type])
},
themeOptions() {
return options.themeOptions
diff --git a/src/views/settings/components/Gopher.vue b/src/views/settings/components/Gopher.vue
index f7db70fe..1b019232 100644
--- a/src/views/settings/components/Gopher.vue
+++ b/src/views/settings/components/Gopher.vue
@@ -30,11 +30,8 @@ export default {
name: 'Gopher',
computed: {
...mapGetters([
- 'gopherConfig'
+ 'gopher'
]),
- gopher() {
- return this.gopherConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue
index 328e516c..a34bec31 100644
--- a/src/views/settings/components/Http.vue
+++ b/src/views/settings/components/Http.vue
@@ -137,27 +137,15 @@ export default {
computed: {
...mapGetters([
'corsPlugCredentials',
- 'corsPlugExposeConfig',
+ 'corsPlugExpose',
'corsPlugHeaders',
'corsPlugMaxAge',
'corsPlugMethods',
- 'hackneyPoolsConfig',
- 'httpConfig',
- 'httpSecurityConfig',
+ 'hackneyPools',
+ 'http',
+ 'httpSecurity',
'metricsExporter'
]),
- corsPlugExpose() {
- return this.corsPlugExposeConfig
- },
- hackneyPools() {
- return this.hackneyPoolsConfig
- },
- http() {
- return this.httpConfig
- },
- httpSecurity() {
- return this.httpSecurityConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue
index af0800f1..4dd6e114 100644
--- a/src/views/settings/components/Instance.vue
+++ b/src/views/settings/components/Instance.vue
@@ -97,7 +97,7 @@
Enable Pleroma’s Relay, which makes it possible to follow a whole instance
-
+
{{ getRewritePolicyExpl(item) }}
@@ -230,9 +230,9 @@
-
+
-
+
-
+
-
+
Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the admin_token parameter.
-
+
-
+
The number of scheduled activities a user is allowed to create in a single day (Default: 25)
-
+
The number of scheduled activities a user is allowed to create in total (Default: 300)
-
+
Whether scheduled activities are sent to the job queue to be executed
-
+
-
+
If enabled, when a new user is federated with, fetch some of their latest posts
-
+
The amount of pages to fetch
@@ -321,38 +321,26 @@ export default {
name: 'Instance',
computed: {
...mapGetters([
- 'adminTokenConfig',
- 'fetchInitialPostsConfig',
- 'instanceConfig',
- 'pleromaUserConfig',
- 'scheduledActivityConfig',
- 'suggestionsConfig',
- 'uriSchemesConfig'
+ 'adminToken',
+ 'fetchInitialPosts',
+ 'instance',
+ 'pleromaUser',
+ 'scheduledActivity',
+ 'suggestions',
+ 'uriSchemes'
]),
- admin_token() {
- return this.adminTokenConfig
- },
autofollowedNicknamesOptions() {
return options.autofollowedNicknamesOptions
},
federationPublisherModulesOptions() {
return options.federationPublisherModulesOptions
},
- fetch_initial_posts() {
- return this.fetchInitialPostsConfig
- },
- instance() {
- return this.instanceConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
labelWidth() {
return this.isMobile ? '100px' : '210px'
},
- pleromaUser() {
- return this.pleromaUserConfig
- },
quarantinedInstancesOptions() {
return options.quarantinedInstancesOptions
},
@@ -362,18 +350,12 @@ export default {
rewritePolicy() {
return typeof this.instance.rewrite_policy === 'string' ? [this.instance.rewrite_policy] : this.instance.rewrite_policy
},
+ rewritePolicyExplanations() {
+ return this.rewritePolicy ? this.rewritePolicy.filter(policy => options.rewritePolicyOptions.find(el => el.value === policy)) : []
+ },
rewritePolicyOptions() {
return options.rewritePolicyOptions
},
- scheduled_activity() {
- return this.scheduledActivityConfig
- },
- suggestions() {
- return this.suggestionsConfig
- },
- uri_schemes() {
- return this.uriSchemesConfig
- },
uriSchemesOptions() {
return options.uriSchemesOptions
}
diff --git a/src/views/settings/components/JobQueue.vue b/src/views/settings/components/JobQueue.vue
index e5e18d14..d06e9d3d 100644
--- a/src/views/settings/components/JobQueue.vue
+++ b/src/views/settings/components/JobQueue.vue
@@ -58,15 +58,9 @@ export default {
name: 'JobQueue',
computed: {
...mapGetters([
- 'queuesConfig',
- 'retryQueueConfig'
+ 'queues',
+ 'retryQueue'
]),
- queues() {
- return this.queuesConfig
- },
- retryQueue() {
- return this.retryQueueConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Logger.vue b/src/views/settings/components/Logger.vue
index c04491d6..09ca4385 100644
--- a/src/views/settings/components/Logger.vue
+++ b/src/views/settings/components/Logger.vue
@@ -9,7 +9,7 @@
:label="item.label"
:value="item.value"/>
- List of instances to remove medias from
+ :console is used to send logs to stdout, {ExSyslogger, :ex_syslogger} to log to syslog, and Quack.Logger to log to Slack
@@ -180,42 +180,24 @@ export default {
name: 'Logger',
computed: {
...mapGetters([
- 'consoleConfig',
- 'exsysloggerConfig',
- 'levelConfig',
- 'loggerBackendsConfig',
- 'metaConfig',
- 'webhookUrlConfig'
+ 'consoleLogger',
+ 'exsyslogger',
+ 'level',
+ 'loggerBackends',
+ 'meta',
+ 'webhookUrl'
]),
- consoleLogger() {
- return this.consoleConfig
- },
- exsyslogger() {
- return this.exsysloggerConfig
- },
- level() {
- return this.levelConfig
- },
- loggerBackends() {
- return this.loggerBackendsConfig
- },
loggerBackendsValue() {
return this.loggerBackends.value ? this.loggerBackends.value.map(el => JSON.stringify(el)) : []
},
loggerBackendsOptions() {
return options.loggerBackendsOptions
},
- meta() {
- return this.metaConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
labelWidth() {
return this.isMobile ? '100px' : '210px'
- },
- webhookUrl() {
- return this.webhookUrlConfig
}
},
methods: {
diff --git a/src/views/settings/components/MRF.vue b/src/views/settings/components/MRF.vue
index 854b7a51..4b2d048f 100644
--- a/src/views/settings/components/MRF.vue
+++ b/src/views/settings/components/MRF.vue
@@ -146,47 +146,23 @@ export default {
},
computed: {
...mapGetters([
- 'mrfHellthreadConfig',
- 'mrfKeywordConfig',
- 'mrfMentionConfig',
- 'mrfNormalizeMarkupConfig',
- 'mrfSimpleConfig',
- 'mrfSubchainConfig',
- 'mrfRejectnonpublicConfig',
- 'mrfUserAllowlistConfig'
+ 'mrfHellthread',
+ 'mrfKeyword',
+ 'mrfMention',
+ 'mrfNormalizeMarkup',
+ 'mrfSimple',
+ 'mrfSubchain',
+ 'mrfRejectnonpublic',
+ 'mrfUserAllowlist'
]),
matchActor() {
return Object.keys(this.mrfSubchain.match_actor).map(key => [key, this.mrfSubchain.match_actor[key]])
},
- mrfHellthread() {
- return this.mrfHellthreadConfig
- },
- mrfKeyword() {
- return this.mrfKeywordConfig
- },
- mrfMention() {
- return this.mrfMentionConfig
- },
- mrfNormalizeMarkup() {
- return this.mrfNormalizeMarkupConfig
- },
- mrfSimple() {
- return this.mrfSimpleConfig
- },
- mrfSubchain() {
- return this.mrfSubchainConfig
- },
- mrfRejectnonpublic() {
- return this.mrfRejectnonpublicConfig
- },
- mrfUserAllowlist() {
- return this.mrfUserAllowlistConfig
- },
policiesOptions() {
return options.rewritePolicyOptions
},
replacePatterns() {
- return Object.keys(this.mrfKeywordConfig.replace).map(key => [key, this.mrfKeywordConfig.replace[key]])
+ return Object.keys(this.mrfKeyword.replace).map(key => [key, this.mrfKeyword.replace[key]])
},
userAllowlist() {
return Object.keys(this.mrfUserAllowlist).map(key => [key, this.mrfUserAllowlist[key]])
diff --git a/src/views/settings/components/Mailer.vue b/src/views/settings/components/Mailer.vue
index 77eeed69..21ba90e6 100644
--- a/src/views/settings/components/Mailer.vue
+++ b/src/views/settings/components/Mailer.vue
@@ -151,19 +151,16 @@ export default {
},
computed: {
...mapGetters([
- 'mailerConfig'
+ 'mailer'
]),
editorContent: {
get: function() {
- return this.mailerConfig.dkim ? this.mailerConfig.dkim[0] : ''
+ return this.mailer.dkim ? this.mailer.dkim[0] : ''
},
set: function(value) {
this.updateSetting([value], 'Pleroma.Emails.Mailer', 'dkim')
}
},
- mailer() {
- return this.mailerConfig
- },
adapterOptions() {
return options.adapterOptions
},
diff --git a/src/views/settings/components/MediaProxy.vue b/src/views/settings/components/MediaProxy.vue
index e82e37bc..fd80ff1b 100644
--- a/src/views/settings/components/MediaProxy.vue
+++ b/src/views/settings/components/MediaProxy.vue
@@ -83,7 +83,7 @@ export default {
name: 'MediaProxy',
computed: {
...mapGetters([
- 'mediaProxyConfig'
+ 'mediaProxy'
]),
inlineContentTypes() {
return Array.isArray(this.mediaProxy.proxy_opts.inline_content_types) ? 'whitelistedTypeArray' : this.mediaProxy.proxy_opts.inline_content_types
@@ -91,9 +91,6 @@ export default {
http() {
return this.mediaProxy.proxy_opts.http || {}
},
- mediaProxy() {
- return this.mediaProxyConfig
- },
reqHeadersOptions() {
return this.mediaProxySettings.reqHeadersOptions
},
diff --git a/src/views/settings/components/Metadata.vue b/src/views/settings/components/Metadata.vue
index 60ec6da2..8850cf36 100644
--- a/src/views/settings/components/Metadata.vue
+++ b/src/views/settings/components/Metadata.vue
@@ -58,15 +58,9 @@ export default {
name: 'Metadata',
computed: {
...mapGetters([
- 'metadataConfig',
- 'richMediaConfig'
+ 'metadata',
+ 'richMedia'
]),
- metadata() {
- return this.metadataConfig
- },
- richMedia() {
- return this.richMediaConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue
index e36889d0..a872c732 100644
--- a/src/views/settings/components/Other.vue
+++ b/src/views/settings/components/Other.vue
@@ -37,13 +37,10 @@ export default {
name: 'Other',
computed: {
...mapGetters([
- 'formatEncodersConfig',
+ 'formatEncoders',
'mimeTypesConfig',
- 'teslaAdapterConfig'
+ 'teslaAdapter'
]),
- formatEncoders() {
- return this.formatEncodersConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},
@@ -52,9 +49,6 @@ export default {
},
mimeTypes() {
return Object.keys(this.mimeTypesConfig.value).map(key => [key, this.mimeTypesConfig.value[key]])
- },
- teslaAdapter() {
- return this.teslaAdapterConfig
}
},
methods: {
diff --git a/src/views/settings/components/RateLimiters.vue b/src/views/settings/components/RateLimiters.vue
index e88b0a95..716cd8e8 100644
--- a/src/views/settings/components/RateLimiters.vue
+++ b/src/views/settings/components/RateLimiters.vue
@@ -206,7 +206,7 @@ export default {
name: 'RateLimiters',
computed: {
...mapGetters([
- 'rateLimitersConfig'
+ 'rateLimiters'
]),
accountConfirmationResendAllUsers() {
return this.rateLimiters.account_confirmation_resend ? this.rateLimiters.account_confirmation_resend.tuple : [null, null]
@@ -234,9 +234,6 @@ export default {
? this.rateLimiters.app_account_creation[0].tuple
: false
},
- rateLimiters() {
- return this.rateLimitersConfig
- },
passwordResetAllUsers() {
return this.rateLimiters.password_reset ? this.rateLimiters.password_reset.tuple : [null, null]
},
diff --git a/src/views/settings/components/Upload.vue b/src/views/settings/components/Upload.vue
index cbbe7711..951f75c4 100644
--- a/src/views/settings/components/Upload.vue
+++ b/src/views/settings/components/Upload.vue
@@ -148,12 +148,12 @@ export default {
name: 'Upload',
computed: {
...mapGetters([
- 'uploadAnonymizeFilenameConfig',
- 'uploadConfig',
- 'uploadFilterMogrifyConfig',
- 'uploadersLocalConfig',
- 'uploadMDIIConfig',
- 'uploadS3Config'
+ 'uploadAnonymizeFilename',
+ 'upload',
+ 'uploadFilterMogrify',
+ 'uploadersLocal',
+ 'uploadMDII',
+ 'uploadS3'
]),
inlineContentTypes() {
return Array.isArray(this.upload.proxy_opts.inline_content_types) ? 'whitelistedTypeArray' : this.upload.proxy_opts.inline_content_types
@@ -161,24 +161,6 @@ export default {
http() {
return this.upload.proxy_opts.http || {}
},
- upload() {
- return this.uploadConfig
- },
- uploadersLocal() {
- return this.uploadersLocalConfig
- },
- uploadAnonymizeFilename() {
- return this.uploadAnonymizeFilenameConfig
- },
- uploadFilterMogrify() {
- return this.uploadFilterMogrifyConfig
- },
- uploadMDII() {
- return this.uploadMDIIConfig
- },
- uploadS3() {
- return this.uploadS3Config
- },
hackneyPoolsOptions() {
return options.hackneyPoolsOptions
},
@@ -204,7 +186,7 @@ export default {
return pool ? 'Max connections: ' + pool.max_connections + ', timeout: ' + pool.timeout : ''
},
processHttpSettings(value, tab, section, httpSection, input) {
- const updatedValue = { ...this.uploadConfig[section][httpSection], ...{ [input]: value }}
+ const updatedValue = { ...this.upload[section][httpSection], ...{ [input]: value }}
this.processNestedData(updatedValue, tab, section, httpSection)
},
processNestedData(value, tab, section, input) {
diff --git a/src/views/settings/components/WebPush.vue b/src/views/settings/components/WebPush.vue
index 549ce29b..8582e2d3 100644
--- a/src/views/settings/components/WebPush.vue
+++ b/src/views/settings/components/WebPush.vue
@@ -28,11 +28,8 @@ export default {
name: 'WebPush',
computed: {
...mapGetters([
- 'vapidDetailsConfig'
+ 'vapidDetails'
]),
- vapidDetails() {
- return this.vapidDetailsConfig
- },
isMobile() {
return this.$store.state.app.device === 'mobile'
},