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
Merge requests
!65
Update server configuration
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update server configuration
linafilippova/admin-fe:feature/update-server-configuration
into
develop
Overview
0
Commits
102
Pipelines
23
Changes
44
Merged
Angelina Filippova
requested to merge
linafilippova/admin-fe:feature/update-server-configuration
into
develop
5 years ago
Overview
0
Commits
102
Pipelines
23
Changes
44
Expand
0
0
Merge request reports
Compare
develop
version 23
58760ac4
5 years ago
version 22
eabc4464
5 years ago
version 21
edc8fe58
5 years ago
version 20
df5ddd14
5 years ago
version 19
a60a0cae
5 years ago
version 18
c48b08ef
5 years ago
version 17
00dce737
5 years ago
version 16
a518cc49
5 years ago
version 15
222697d0
5 years ago
version 14
51f6ed61
5 years ago
version 13
a8037483
5 years ago
version 12
529a8469
5 years ago
version 11
5700f362
5 years ago
version 10
401c980e
5 years ago
version 9
37cdff37
5 years ago
version 8
864b8a14
5 years ago
version 7
957d87d7
5 years ago
version 6
a4718fb8
5 years ago
version 5
a4718fb8
5 years ago
version 4
01dfa80b
5 years ago
version 3
265ecd66
5 years ago
version 2
383397f6
5 years ago
version 1
2f733043
5 years ago
develop (base)
and
latest version
latest version
306c79ea
102 commits,
5 years ago
version 23
58760ac4
101 commits,
5 years ago
version 22
eabc4464
100 commits,
5 years ago
version 21
edc8fe58
98 commits,
5 years ago
version 20
df5ddd14
93 commits,
5 years ago
version 19
a60a0cae
92 commits,
5 years ago
version 18
c48b08ef
90 commits,
5 years ago
version 17
00dce737
84 commits,
5 years ago
version 16
a518cc49
79 commits,
5 years ago
version 15
222697d0
78 commits,
5 years ago
version 14
51f6ed61
75 commits,
5 years ago
version 13
a8037483
73 commits,
5 years ago
version 12
529a8469
71 commits,
5 years ago
version 11
5700f362
70 commits,
5 years ago
version 10
401c980e
66 commits,
5 years ago
version 9
37cdff37
63 commits,
5 years ago
version 8
864b8a14
62 commits,
5 years ago
version 7
957d87d7
50 commits,
5 years ago
version 6
a4718fb8
47 commits,
5 years ago
version 5
a4718fb8
47 commits,
5 years ago
version 4
01dfa80b
40 commits,
5 years ago
version 3
265ecd66
33 commits,
5 years ago
version 2
383397f6
31 commits,
5 years ago
version 1
2f733043
29 commits,
5 years ago
44 files
+
2827
−
3683
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
44
Search (e.g. *.vue) (Ctrl+P)
src/api/settings.js
+
19
−
0
Options
@@ -2,6 +2,15 @@ import request from '@/utils/request'
import
{
getToken
}
from
'
@/utils/auth
'
import
{
baseName
}
from
'
./utils
'
export
async
function
fetchDescription
(
authHost
,
token
)
{
return
await
request
({
baseURL
:
baseName
(
authHost
),
url
:
`/api/pleroma/admin/config/descriptions`
,
method
:
'
get
'
,
headers
:
authHeaders
(
token
)
})
}
export
async
function
fetchSettings
(
authHost
,
token
)
{
return
await
request
({
baseURL
:
baseName
(
authHost
),
@@ -21,6 +30,16 @@ export async function updateSettings(configs, authHost, token) {
})
}
export
async
function
removeSettings
(
configs
,
authHost
,
token
)
{
return
await
request
({
baseURL
:
baseName
(
authHost
),
url
:
`/api/pleroma/admin/config`
,
method
:
'
post
'
,
headers
:
authHeaders
(
token
),
data
:
{
configs
}
})
}
export
async
function
uploadMedia
(
file
,
authHost
,
token
)
{
const
formData
=
new
FormData
()
formData
.
append
(
'
file
'
,
file
)
Loading