From c4c544aed4c97a65645392776ea87068d7329d6b Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 5 Dec 2020 01:11:24 +0300 Subject: [PATCH 1/7] Add Pleroma.Web.Endpoint.MetricsExporter settings --- src/views/settings/components/Other.vue | 10 ++++++++++ src/views/settings/components/tabs.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index 0a697138..91a9fe2a 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -2,6 +2,10 @@
+ + + + @@ -94,6 +98,12 @@ export default { modulesData() { return _.get(this.settings.settings, [':pleroma', ':modules']) || {} }, + prometheusMetrics() { + return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Endpoint.MetricsExporter') + }, + prometheusMetricsData() { + return _.get(this.settings.settings, [':prometheus', 'Pleroma.Web.Endpoint.MetricsExporter']) || {} + }, remoteIp() { return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Plugs.RemoteIp') }, diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index 6871ca9b..84907139 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -78,7 +78,7 @@ export const tabs = description => { }, 'other': { label: 'settings.other', - settings: [':mime', 'Pleroma.User.Backup', 'Pleroma.Web.Plugs.RemoteIp', ':modules', 'Pleroma.Web.ApiSpec.CastAndValidate', ':terms_of_services'] + settings: [':mime', 'Pleroma.User.Backup', 'Pleroma.Web.Plugs.RemoteIp', 'Pleroma.Web.Endpoint.MetricsExporter', ':modules', 'Pleroma.Web.ApiSpec.CastAndValidate', ':terms_of_services'] } } } From 738e51152e3de80f78827a30c0278c15b0342f23 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 5 Dec 2020 01:13:24 +0300 Subject: [PATCH 2/7] Update Changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7a6de16..c21adff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Add Report show page and link Moderation log references to the respective reports - Add Unconfimed filter for Users table - Filter users by actor type: Person, Bot or Application -- Add ability to configure Media Preview Proxy, User Backup and Websocket based federation settings +- Add ability to configure Media Preview Proxy, User Backup, Websocket based federation and Pleroma.Web.Endpoint.MetricsExporter settings - Mobile and Tablet UI for Single Report show page ### Changed From add720534dc2ad8dcf4e75f84f09a61ae07152b5 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 6 Dec 2020 20:21:01 +0300 Subject: [PATCH 3/7] Rename Link Formatter Input --- src/views/settings/components/Inputs.vue | 6 +++--- .../{LinkFormatterInput.vue => BooleanCombinedInput.vue} | 2 +- src/views/settings/components/inputComponents/index.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/views/settings/components/inputComponents/{LinkFormatterInput.vue => BooleanCombinedInput.vue} (98%) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 85e41ef0..7ab8007c 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -113,7 +113,7 @@ - + @@ -141,7 +141,7 @@ import { EditableKeywordInput, IconsInput, ImageUploadInput, - LinkFormatterInput, + BooleanCombinedInput, MascotsInput, ProxyUrlInput, PruneInput, @@ -160,7 +160,7 @@ export default { EditableKeywordInput, IconsInput, ImageUploadInput, - LinkFormatterInput, + BooleanCombinedInput, MascotsInput, ProxyUrlInput, PruneInput, diff --git a/src/views/settings/components/inputComponents/LinkFormatterInput.vue b/src/views/settings/components/inputComponents/BooleanCombinedInput.vue similarity index 98% rename from src/views/settings/components/inputComponents/LinkFormatterInput.vue rename to src/views/settings/components/inputComponents/BooleanCombinedInput.vue index 38ec2e50..7f7e9d90 100644 --- a/src/views/settings/components/inputComponents/LinkFormatterInput.vue +++ b/src/views/settings/components/inputComponents/BooleanCombinedInput.vue @@ -28,7 +28,7 @@