Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
pleroma-fe
Commits
a3cc7811
Commit
a3cc7811
authored
6 years ago
by
Hakaba Hitoyo
Browse files
Options
Downloads
Patches
Plain Diff
rename apiStatusnetConfigSitePleromafe to apiConfig
parent
a81c3b13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!312
serverside-frontend-configuration-2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.js
+13
-13
13 additions, 13 deletions
src/main.js
with
13 additions
and
13 deletions
src/main.js
+
13
−
13
View file @
a3cc7811
...
...
@@ -96,23 +96,23 @@ window.fetch('/api/statusnet/config.json')
window
.
fetch
(
'
/api/statusnet/config.json
'
)
.
then
((
res
)
=>
res
.
json
())
.
then
((
data
)
=>
{
var
api
StatusnetConfigSitePleromafe
=
data
.
site
.
pleromafe
var
api
Config
=
data
.
site
.
pleromafe
window
.
fetch
(
'
/static/config.json
'
)
.
then
((
data
)
=>
{
var
staticConfig
=
data
var
theme
=
(
api
StatusnetConfigSitePleromafe
.
theme
||
staticConfig
.
theme
)
var
background
=
(
api
StatusnetConfigSitePleromafe
.
background
||
staticConfig
.
background
)
var
logo
=
(
api
StatusnetConfigSitePleromafe
.
logo
||
staticConfig
.
logo
)
var
redirectRootNoLogin
=
(
api
StatusnetConfigSitePleromafe
.
redirectRootNoLogin
||
staticConfig
.
redirectRootNoLogin
)
var
redirectRootLogin
=
(
api
StatusnetConfigSitePleromafe
.
redirectRootLogin
||
staticConfig
.
redirectRootLogin
)
var
chatDisabled
=
(
api
StatusnetConfigSitePleromafe
.
chatDisabled
||
staticConfig
.
chatDisabled
)
var
showWhoToFollowPanel
=
(
api
StatusnetConfigSitePleromafe
.
showWhoToFollowPanel
||
staticConfig
.
showWhoToFollowPanel
)
var
whoToFollowProvider
=
(
api
StatusnetConfigSitePleromafe
.
whoToFollowProvider
||
staticConfig
.
whoToFollowProvider
)
var
whoToFollowLink
=
(
api
StatusnetConfigSitePleromafe
.
whoToFollowLink
||
staticConfig
.
whoToFollowLink
)
var
showInstanceSpecificPanel
=
(
api
StatusnetConfigSitePleromafe
.
showInstanceSpecificPanel
||
staticConfig
.
showInstanceSpecificPanel
)
var
scopeOptionsEnabled
=
(
api
StatusnetConfigSitePleromafe
.
scopeOptionsEnabled
||
staticConfig
.
scopeOptionsEnabled
)
var
collapseMessageWithSubject
=
(
api
StatusnetConfigSitePleromafe
.
collapseMessageWithSubject
||
staticConfig
.
collapseMessageWithSubject
)
var
theme
=
(
api
Config
.
theme
||
staticConfig
.
theme
)
var
background
=
(
api
Config
.
background
||
staticConfig
.
background
)
var
logo
=
(
api
Config
.
logo
||
staticConfig
.
logo
)
var
redirectRootNoLogin
=
(
api
Config
.
redirectRootNoLogin
||
staticConfig
.
redirectRootNoLogin
)
var
redirectRootLogin
=
(
api
Config
.
redirectRootLogin
||
staticConfig
.
redirectRootLogin
)
var
chatDisabled
=
(
api
Config
.
chatDisabled
||
staticConfig
.
chatDisabled
)
var
showWhoToFollowPanel
=
(
api
Config
.
showWhoToFollowPanel
||
staticConfig
.
showWhoToFollowPanel
)
var
whoToFollowProvider
=
(
api
Config
.
whoToFollowProvider
||
staticConfig
.
whoToFollowProvider
)
var
whoToFollowLink
=
(
api
Config
.
whoToFollowLink
||
staticConfig
.
whoToFollowLink
)
var
showInstanceSpecificPanel
=
(
api
Config
.
showInstanceSpecificPanel
||
staticConfig
.
showInstanceSpecificPanel
)
var
scopeOptionsEnabled
=
(
api
Config
.
scopeOptionsEnabled
||
staticConfig
.
scopeOptionsEnabled
)
var
collapseMessageWithSubject
=
(
api
Config
.
collapseMessageWithSubject
||
staticConfig
.
collapseMessageWithSubject
)
store
.
dispatch
(
'
setOption
'
,
{
name
:
'
theme
'
,
value
:
theme
})
store
.
dispatch
(
'
setOption
'
,
{
name
:
'
background
'
,
value
:
background
})
...
...
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