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 @@