Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Ilja
pleroma-fe
Commits
580aae1b
Commit
580aae1b
authored
6 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
Added more stuff that's actually being added to instanceConfig, simplified the whitelist.
parent
82fa5d08
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lib/persisted_state.js
+1
-0
1 addition, 0 deletions
src/lib/persisted_state.js
src/main.js
+3
-17
3 additions, 17 deletions
src/main.js
src/modules/instance.js
+11
-0
11 additions, 0 deletions
src/modules/instance.js
with
15 additions
and
17 deletions
src/lib/persisted_state.js
+
1
−
0
View file @
580aae1b
...
...
@@ -16,6 +16,7 @@ const saveImmedeatelyActions = [
'
markNotificationsAsSeen
'
,
'
clearCurrentUser
'
,
'
setCurrentUser
'
,
'
setHighlight
'
,
'
setOption
'
]
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
3
−
17
View file @
580aae1b
...
...
@@ -47,23 +47,7 @@ Vue.use(VueChatScroll)
const
persistedStateOptions
=
{
paths
:
[
'
config.collapseMessageWithSubject
'
,
'
config.hideAttachments
'
,
'
config.hideAttachmentsInConv
'
,
'
config.hideNsfw
'
,
'
config.replyVisibility
'
,
'
config.notificationVisibility
'
,
'
config.autoLoad
'
,
'
config.hoverPreview
'
,
'
config.streaming
'
,
'
config.muteWords
'
,
'
config.customTheme
'
,
'
config.highlight
'
,
'
config.loopVideo
'
,
'
config.loopVideoSilentOnly
'
,
'
config.pauseOnUnfocused
'
,
'
config.stopGifs
'
,
'
config.interfaceLanguage
'
,
'
config
'
,
'
users.lastLoginName
'
,
'
statuses.notifications.maxSavedId
'
]
...
...
@@ -129,6 +113,8 @@ window.fetch('/api/statusnet/config.json')
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
logo
'
,
value
:
logo
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
logoMask
'
,
value
:
logoMask
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
logoMargin
'
,
value
:
logoMargin
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
redirectRootNoLogin
'
,
value
:
redirectRootNoLogin
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
redirectRootLogin
'
,
value
:
redirectRootLogin
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
showInstanceSpecificPanel
'
,
value
:
showInstanceSpecificPanel
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
scopeOptionsEnabled
'
,
value
:
scopeOptionsEnabled
})
store
.
dispatch
(
'
setInstanceOption
'
,
{
name
:
'
formattingOptionsEnabled
'
,
value
:
formattingOptionsEnabled
})
...
...
This diff is collapsed.
Click to expand it.
src/modules/instance.js
+
11
−
0
View file @
580aae1b
import
{
set
}
from
'
vue
'
const
defaultState
=
{
// Stuff from static/config.json and apiConfig
name
:
'
Pleroma FE
'
,
registrationOpen
:
true
,
textlimit
:
5000
,
...
...
@@ -17,9 +18,19 @@ const defaultState = {
formattingOptionsEnabled
:
false
,
collapseMessageWithSubject
:
false
,
disableChat
:
false
,
// Nasty stuff
pleromaBackend
:
true
,
emoji
:
[],
customEmoji
:
[],
// Feature-set, apparently, not everything here is reported...
mediaProxyAvailable
:
false
,
chatAvailable
:
false
,
gopherAvailable
:
false
,
suggestionsEnabled
:
false
,
suggestionsWeb
:
''
,
// Html stuff
instanceSpecificPanelContent
:
''
,
tos
:
''
...
...
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