proxy setting, init http tab, broken
This commit is contained in:
parent
0bc5442eb9
commit
7d0f03fdba
6 changed files with 41 additions and 12 deletions
|
|
@ -11,7 +11,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||||
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
||||||
import { get } from 'lodash'
|
import { get } from 'lodash'
|
||||||
|
|
||||||
const MediaProxyTab = {
|
const LinksTab = {
|
||||||
provide () {
|
provide () {
|
||||||
return {
|
return {
|
||||||
defaultDraftMode: true,
|
defaultDraftMode: true,
|
||||||
|
|
@ -106,4 +106,4 @@ const MediaProxyTab = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default MediaProxyTab
|
export default LinksTab
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ export default {
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
hideDraftButtons: { // this is for the weird backend hybrid (Boolean|String or Boolean|Number) settings
|
hideDraftButtons: { // this is for the weird backend hybrid (Boolean|String or Boolean|Number) settings
|
||||||
|
required: false,
|
||||||
type: Boolean
|
type: Boolean
|
||||||
},
|
},
|
||||||
hideLabel: {
|
hideLabel: {
|
||||||
|
|
@ -254,8 +255,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
canHardReset () {
|
canHardReset () {
|
||||||
return this.realSource === 'admin' && this.$store.state.adminSettings.modifiedPaths &&
|
console.log('MP', this.$store.state.adminSettings.modifiedPaths.has)
|
||||||
this.$store.state.adminSettings.modifiedPaths.has(this.canonPath.join(' -> '))
|
return this.realSource === 'admin' && this.$store.state.adminSettings.modifiedPaths?.has(this.canonPath.join(' -> '))
|
||||||
},
|
},
|
||||||
matchesExpertLevel () {
|
matchesExpertLevel () {
|
||||||
return (this.expert || 0) <= this.$store.state.config.expertLevel > 0
|
return (this.expert || 0) <= this.$store.state.config.expertLevel > 0
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,16 @@
|
||||||
@change="e => update({ e, side: 1 })"
|
@change="e => update({ e, side: 1 })"
|
||||||
>
|
>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
|
<input
|
||||||
|
:id="path"
|
||||||
|
class="input string-input"
|
||||||
|
:class="{ disabled: shouldBeDisabled }"
|
||||||
|
:disabled="shouldBeDisabled"
|
||||||
|
:placeholder="backendDescriptionSuggestions?.[0]?.[1]"
|
||||||
|
:value="visibleState?.tuple?.[2]"
|
||||||
|
@change="e => update({ e, side: 2 })"
|
||||||
|
>
|
||||||
|
{{ ' ' }}
|
||||||
<ModifiedIndicator
|
<ModifiedIndicator
|
||||||
:changed="isChanged"
|
:changed="isChanged"
|
||||||
:onclick="reset"
|
:onclick="reset"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import MailerTab from './admin_tabs/mailer_tab.vue'
|
||||||
import MonitoringTab from './admin_tabs/monitoring_tab.vue'
|
import MonitoringTab from './admin_tabs/monitoring_tab.vue'
|
||||||
import RegistrationsTab from './admin_tabs/registrations_tab.vue'
|
import RegistrationsTab from './admin_tabs/registrations_tab.vue'
|
||||||
import AuthTab from './admin_tabs/auth_tab.vue'
|
import AuthTab from './admin_tabs/auth_tab.vue'
|
||||||
|
import HTTPTab from './admin_tabs/http_tab.vue'
|
||||||
import FederationTab from './admin_tabs/federation_tab.vue'
|
import FederationTab from './admin_tabs/federation_tab.vue'
|
||||||
import JobQueuesTab from './admin_tabs/job_queues_tab.vue'
|
import JobQueuesTab from './admin_tabs/job_queues_tab.vue'
|
||||||
import { useInterfaceStore } from 'src/stores/interface'
|
import { useInterfaceStore } from 'src/stores/interface'
|
||||||
|
|
@ -20,6 +21,7 @@ import {
|
||||||
faWrench,
|
faWrench,
|
||||||
faHand,
|
faHand,
|
||||||
faChain,
|
faChain,
|
||||||
|
faGlobe,
|
||||||
faLaptopCode,
|
faLaptopCode,
|
||||||
faTowerBroadcast,
|
faTowerBroadcast,
|
||||||
faEnvelope,
|
faEnvelope,
|
||||||
|
|
@ -35,6 +37,7 @@ library.add(
|
||||||
faWrench,
|
faWrench,
|
||||||
faHand,
|
faHand,
|
||||||
faChain,
|
faChain,
|
||||||
|
faGlobe,
|
||||||
faLaptopCode,
|
faLaptopCode,
|
||||||
faTowerBroadcast,
|
faTowerBroadcast,
|
||||||
faEnvelope,
|
faEnvelope,
|
||||||
|
|
@ -62,6 +65,7 @@ const SettingsModalAdminContent = {
|
||||||
LinksTab,
|
LinksTab,
|
||||||
JobQueuesTab,
|
JobQueuesTab,
|
||||||
AuthTab,
|
AuthTab,
|
||||||
|
HTTPTab,
|
||||||
MonitoringTab
|
MonitoringTab
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -92,14 +92,6 @@
|
||||||
<LimitsTab />
|
<LimitsTab />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
|
||||||
:label="$t('admin_dash.tabs.mailer')"
|
|
||||||
icon="envelope"
|
|
||||||
data-tab-name="mailer"
|
|
||||||
>
|
|
||||||
<MailerTab />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
:label="$t('admin_dash.tabs.uploads')"
|
:label="$t('admin_dash.tabs.uploads')"
|
||||||
icon="upload"
|
icon="upload"
|
||||||
|
|
@ -124,6 +116,14 @@
|
||||||
<LinksTab />
|
<LinksTab />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
:label="$t('admin_dash.tabs.mailer')"
|
||||||
|
icon="envelope"
|
||||||
|
data-tab-name="mailer"
|
||||||
|
>
|
||||||
|
<MailerTab />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
:label="$t('admin_dash.tabs.federation')"
|
:label="$t('admin_dash.tabs.federation')"
|
||||||
icon="circle-nodes"
|
icon="circle-nodes"
|
||||||
|
|
@ -132,6 +132,14 @@
|
||||||
<FederationTab />
|
<FederationTab />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
:label="$t('admin_dash.tabs.http')"
|
||||||
|
icon="globe"
|
||||||
|
data-tab-name="http"
|
||||||
|
>
|
||||||
|
<HTTPTab />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
:label="$t('admin_dash.tabs.job_queues')"
|
:label="$t('admin_dash.tabs.job_queues')"
|
||||||
icon="gears"
|
icon="gears"
|
||||||
|
|
|
||||||
|
|
@ -1161,6 +1161,7 @@
|
||||||
"links": "Links",
|
"links": "Links",
|
||||||
"job_queues": "Job Queues",
|
"job_queues": "Job Queues",
|
||||||
"auth": "Auth",
|
"auth": "Auth",
|
||||||
|
"http": "HTTP",
|
||||||
"federation": "Federation"
|
"federation": "Federation"
|
||||||
},
|
},
|
||||||
"federation": {
|
"federation": {
|
||||||
|
|
@ -1168,7 +1169,12 @@
|
||||||
"restrictions": "Restrictions",
|
"restrictions": "Restrictions",
|
||||||
"activitypub": "ActivityPub"
|
"activitypub": "ActivityPub"
|
||||||
},
|
},
|
||||||
|
"http": {
|
||||||
|
"outbound": "Outbound HTTP requests",
|
||||||
|
"socks5": "SOCKS5"
|
||||||
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
|
"MFA": "Multi-factor Authentication",
|
||||||
"LDAP": "LDAP Settings",
|
"LDAP": "LDAP Settings",
|
||||||
"OAuth": "Oauth2 settings",
|
"OAuth": "Oauth2 settings",
|
||||||
"TOTP": "One-time Passwords (TOTP)",
|
"TOTP": "One-time Passwords (TOTP)",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue