forked from AkkomaGang/admin-fe
Move Tesla adaper to HTTP tab
This commit is contained in:
parent
020c4e1389
commit
c3b83498a4
2 changed files with 10 additions and 10 deletions
|
@ -3,6 +3,10 @@
|
||||||
<el-form ref="httpData" :model="httpData" :label-width="labelWidth">
|
<el-form ref="httpData" :model="httpData" :label-width="labelWidth">
|
||||||
<setting :setting-group="http" :data="httpData"/>
|
<setting :setting-group="http" :data="httpData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<el-form ref="teslaAdapter" :model="teslaAdapterData" :label-width="labelWidth">
|
||||||
|
<setting :setting-group="teslaAdapter" :data="teslaAdapterData"/>
|
||||||
|
</el-form>
|
||||||
|
<el-divider class="divider thick-line"/>
|
||||||
<el-form ref="corsPlugData" :model="corsPlugData" :label-width="labelWidth">
|
<el-form ref="corsPlugData" :model="corsPlugData" :label-width="labelWidth">
|
||||||
<el-form-item class="grouped-settings-header">
|
<el-form-item class="grouped-settings-header">
|
||||||
<span class="label-font">{{ $t('settings.corsPlug') }}</span>
|
<span class="label-font">{{ $t('settings.corsPlug') }}</span>
|
||||||
|
@ -82,6 +86,12 @@ export default {
|
||||||
loading() {
|
loading() {
|
||||||
return this.settings.loading
|
return this.settings.loading
|
||||||
},
|
},
|
||||||
|
teslaAdapter() {
|
||||||
|
return this.settings.description.find(setting => setting.group === ':tesla')
|
||||||
|
},
|
||||||
|
teslaAdapterData() {
|
||||||
|
return _.get(this.settings.settings, [':tesla']) || {}
|
||||||
|
},
|
||||||
webCacheTtl() {
|
webCacheTtl() {
|
||||||
return this.settings.description.find(setting => setting.key === ':web_cache_ttl')
|
return this.settings.description.find(setting => setting.key === ':web_cache_ttl')
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="!loading" class="form-container">
|
<div v-if="!loading" class="form-container">
|
||||||
<el-form ref="teslaAdapter" :model="teslaAdapterData" :label-width="labelWidth">
|
|
||||||
<setting :setting-group="teslaAdapter" :data="teslaAdapterData"/>
|
|
||||||
</el-form>
|
|
||||||
<el-divider class="divider thick-line"/>
|
|
||||||
<el-form ref="mimeTypes" :model="mimeTypesData" :label-width="labelWidth">
|
<el-form ref="mimeTypes" :model="mimeTypesData" :label-width="labelWidth">
|
||||||
<setting :setting-group="mimeTypes" :data="mimeTypesData"/>
|
<setting :setting-group="mimeTypes" :data="mimeTypesData"/>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -58,12 +54,6 @@ export default {
|
||||||
},
|
},
|
||||||
remoteIpData() {
|
remoteIpData() {
|
||||||
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Plugs.RemoteIp']) || {}
|
return _.get(this.settings.settings, [':pleroma', 'Pleroma.Plugs.RemoteIp']) || {}
|
||||||
},
|
|
||||||
teslaAdapter() {
|
|
||||||
return this.settings.description.find(setting => setting.group === ':tesla')
|
|
||||||
},
|
|
||||||
teslaAdapterData() {
|
|
||||||
return _.get(this.settings.settings, [':tesla']) || {}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue