Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
admin-fe
Commits
ab5a7158
Commit
ab5a7158
authored
5 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Replace regular tabs with tabs rendered dynamically
parent
12b70840
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!125
WIP: Release/2.0.3
,
!102
Implement settings search
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/views/settings/components/tabs.js
+68
-0
68 additions, 0 deletions
src/views/settings/components/tabs.js
src/views/settings/index.vue
+13
-70
13 additions, 70 deletions
src/views/settings/index.vue
with
81 additions
and
70 deletions
src/views/settings/components/tabs.js
0 → 100644
+
68
−
0
View file @
ab5a7158
import
_
from
'
lodash
'
export
const
tabs
=
{
'
activity-pub
'
:
{
label
:
'
settings.activityPub
'
,
activitypub
:
()
=>
this
.
settings
.
description
.
find
(
setting
=>
setting
.
key
===
'
:activitypub
'
),
activitypubData
:
()
=>
_
.
get
(
this
.
settings
.
settings
,
[
'
:pleroma
'
,
'
:activitypub
'
])
||
{},
user
:
()
=>
this
.
settings
.
description
.
find
(
setting
=>
setting
.
key
===
'
:user
'
),
userData
:
()
=>
_
.
get
(
this
.
settings
.
settings
,
[
'
:pleroma
'
,
'
:user
'
])
||
{}
},
'
authentication
'
:
{
label
:
'
settings.auth
'
},
'
auto-linker
'
:
{
label
:
'
settings.autoLinker
'
},
'
esshd
'
:
{
label
:
'
settings.esshd
'
},
'
captcha
'
:
{
label
:
'
settings.captcha
'
},
'
frontend
'
:
{
label
:
'
settings.frontend
'
},
'
gopher
'
:
{
label
:
'
settings.gopher
'
},
'
http
'
:
{
label
:
'
settings.http
'
},
'
instance
'
:
{
label
:
'
settings.instance
'
},
'
job-queue
'
:
{
label
:
'
settings.jobQueue
'
},
'
logger
'
:
{
label
:
'
settings.logger
'
},
'
mailer
'
:
{
label
:
'
settings.mailer
'
},
'
media-proxy
'
:
{
label
:
'
settings.mediaProxy
'
},
'
metadata
'
:
{
label
:
'
settings.metadata
'
},
'
mrf
'
:
{
label
:
'
settings.mrf
'
},
'
rate-limiters
'
:
{
label
:
'
settings.rateLimiters
'
},
'
relays
'
:
{
label
:
'
settings.relays
'
},
'
web-push
'
:
{
label
:
'
settings.webPush
'
},
'
upload
'
:
{
label
:
'
settings.upload
'
},
'
other
'
:
{
label
:
'
settings.other
'
}
}
This diff is collapsed.
Click to expand it.
src/views/settings/index.vue
+
13
−
70
View file @
ab5a7158
...
...
@@ -34,65 +34,14 @@
</div>
</div>
<el-tabs
v-model=
"activeTab"
tab-position=
"left"
>
<el-tab-pane
:label=
"$t('settings.activityPub')"
:disabled=
"configDisabled"
name=
"activityPub"
lazy
>
<activity-pub/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.auth')"
:disabled=
"configDisabled"
name=
"auth"
lazy
>
<authentication/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.autoLinker')"
:disabled=
"configDisabled"
name=
"autoLinker"
lazy
>
<auto-linker/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.esshd')"
:disabled=
"configDisabled"
name=
"esshd"
lazy
>
<esshd/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.captcha')"
:disabled=
"configDisabled"
name=
"captcha"
lazy
>
<captcha/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.frontend')"
:disabled=
"configDisabled"
name=
"frontend"
lazy
>
<frontend/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.gopher')"
:disabled=
"configDisabled"
name=
"gopher"
lazy
>
<gopher/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.http')"
:disabled=
"configDisabled"
name=
"http"
lazy
>
<http/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.instance')"
:disabled=
"configDisabled"
name=
"instance"
>
<instance/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.jobQueue')"
:disabled=
"configDisabled"
name=
"jobQueue"
lazy
>
<job-queue/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.logger')"
:disabled=
"configDisabled"
name=
"logger"
lazy
>
<logger/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.mailer')"
:disabled=
"configDisabled"
name=
"mailer"
lazy
>
<mailer/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.mediaProxy')"
:disabled=
"configDisabled"
name=
"mediaProxy"
lazy
>
<media-proxy/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.metadata')"
:disabled=
"configDisabled"
name=
"metadata"
lazy
>
<metadata/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.mrf')"
:disabled=
"configDisabled"
name=
"mrf"
lazy
>
<mrf/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.rateLimiters')"
:disabled=
"configDisabled"
name=
"rateLimiters"
lazy
>
<rate-limiters/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.relays')"
lazy
name=
"relays"
>
<relays/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.webPush')"
:disabled=
"configDisabled"
name=
"webPush"
lazy
>
<web-push/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.upload')"
:disabled=
"configDisabled"
name=
"upload"
lazy
>
<upload/>
</el-tab-pane>
<el-tab-pane
:label=
"$t('settings.other')"
:disabled=
"configDisabled"
name=
"other"
lazy
>
<other/>
<el-tab-pane
v-for=
"(value, componentName) in tabs"
:label=
"$t(value.label)"
:disabled=
"configDisabled"
:key=
"componentName"
:name=
"componentName"
lazy
>
<component
:is=
"componentName"
/>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -127,17 +76,7 @@
</el-button>
</el-link>
</div>
<div
class=
"settings-search-input-container"
>
<el-autocomplete
v-model=
"state2"
:fetch-suggestions=
"querySearch"
:trigger-on-focus=
"false"
placeholder=
"Search"
prefix-icon=
"el-icon-search"
class=
"settings-search-input"
@
select=
"handleSelect"
/>
</div>
<div
class=
"settings-search-input-container"
/>
<activity-pub
v-if=
"activeTab === 'activityPub'"
/>
<authentication
v-if=
"activeTab === 'auth'"
/>
<auto-linker
v-if=
"activeTab === 'autoLinker'"
/>
...
...
@@ -164,6 +103,7 @@
<
script
>
import
i18n
from
'
@/lang
'
import
{
tabs
}
from
'
./components/tabs
'
import
{
ActivityPub
,
Authentication
,
...
...
@@ -263,6 +203,9 @@ export default {
},
searchData
()
{
return
this
.
$store
.
state
.
settings
.
searchData
},
tabs
()
{
return
tabs
}
},
mounted
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment