forked from AkkomaGang/admin-fe
Add Pleroma.Web.Endpoint.MetricsExporter settings
This commit is contained in:
parent
f04ded8fa4
commit
c4c544aed4
2 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,10 @@
|
||||||
<div v-if="!loading" :class="isSidebarOpen" class="form-container">
|
<div v-if="!loading" :class="isSidebarOpen" class="form-container">
|
||||||
<editor-input v-model="termsOfServicesContent" :name="'terms-of-service'" @input="handleEditorUpdate"/>
|
<editor-input v-model="termsOfServicesContent" :name="'terms-of-service'" @input="handleEditorUpdate"/>
|
||||||
<el-divider class="divider thick-line"/>
|
<el-divider class="divider thick-line"/>
|
||||||
|
<el-form :model="prometheusMetricsData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="prometheusMetrics" :data="prometheusMetricsData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider v-if="prometheusMetrics" class="divider thick-line"/>
|
||||||
<el-form :model="backupData" :label-position="labelPosition" :label-width="labelWidth">
|
<el-form :model="backupData" :label-position="labelPosition" :label-width="labelWidth">
|
||||||
<setting :setting-group="backup" :data="backupData"/>
|
<setting :setting-group="backup" :data="backupData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -94,6 +98,12 @@ export default {
|
||||||
modulesData() {
|
modulesData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', ':modules']) || {}
|
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() {
|
remoteIp() {
|
||||||
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Plugs.RemoteIp')
|
return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Plugs.RemoteIp')
|
||||||
},
|
},
|
||||||
|
|
|
@ -78,7 +78,7 @@ export const tabs = description => {
|
||||||
},
|
},
|
||||||
'other': {
|
'other': {
|
||||||
label: 'settings.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']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue