Split apiConfig options from static/config.json options;
Move safeDM to nasty section, alpha sort things
This commit is contained in:
parent
d91f5189ef
commit
e80fa3ff6d
|
@ -4,10 +4,16 @@ import { CURRENT_VERSION } from '../services/theme_data/theme_data.service.js'
|
||||||
import { instanceDefaultProperties } from './config.js'
|
import { instanceDefaultProperties } from './config.js'
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
// not user configurable
|
// not configurable
|
||||||
name: 'Pleroma FE',
|
name: 'Pleroma FE',
|
||||||
|
|
||||||
// Stuff from static/config.json and apiConfig
|
// Stuff from apiConfig
|
||||||
|
server: 'http://localhost:4040/',
|
||||||
|
textlimit: 5000,
|
||||||
|
themeData: undefined,
|
||||||
|
vapidPublicKey: undefined,
|
||||||
|
|
||||||
|
// Stuff from static/config.json
|
||||||
alwaysShowSubjectInput: true,
|
alwaysShowSubjectInput: true,
|
||||||
background: '/static/aurora_borealis.jpg',
|
background: '/static/aurora_borealis.jpg',
|
||||||
collapseMessageWithSubject: false,
|
collapseMessageWithSubject: false,
|
||||||
|
@ -28,29 +34,25 @@ const defaultState = {
|
||||||
redirectRootLogin: '/main/friends',
|
redirectRootLogin: '/main/friends',
|
||||||
redirectRootNoLogin: '/main/all',
|
redirectRootNoLogin: '/main/all',
|
||||||
registrationOpen: true,
|
registrationOpen: true,
|
||||||
safeDM: true,
|
|
||||||
scopeCopy: true,
|
scopeCopy: true,
|
||||||
server: 'http://localhost:4040/',
|
|
||||||
showFeaturesPanel: true,
|
showFeaturesPanel: true,
|
||||||
showInstanceSpecificPanel: false,
|
showInstanceSpecificPanel: false,
|
||||||
subjectLineBehavior: 'email',
|
subjectLineBehavior: 'email',
|
||||||
textlimit: 5000,
|
|
||||||
theme: 'pleroma-dark',
|
theme: 'pleroma-dark',
|
||||||
themeData: undefined,
|
|
||||||
vapidPublicKey: undefined,
|
|
||||||
|
|
||||||
// Nasty stuff
|
// Nasty stuff
|
||||||
pleromaBackend: true,
|
|
||||||
emoji: [],
|
|
||||||
emojiFetched: false,
|
|
||||||
customEmoji: [],
|
customEmoji: [],
|
||||||
customEmojiFetched: false,
|
customEmojiFetched: false,
|
||||||
restrictedNicknames: [],
|
emoji: [],
|
||||||
|
emojiFetched: false,
|
||||||
|
pleromaBackend: true,
|
||||||
postFormats: [],
|
postFormats: [],
|
||||||
|
restrictedNicknames: [],
|
||||||
|
safeDM: true,
|
||||||
|
|
||||||
// Feature-set, apparently, not everything here is reported...
|
// Feature-set, apparently, not everything here is reported...
|
||||||
mediaProxyAvailable: false,
|
|
||||||
chatAvailable: false,
|
chatAvailable: false,
|
||||||
|
mediaProxyAvailable: false,
|
||||||
gopherAvailable: false,
|
gopherAvailable: false,
|
||||||
suggestionsEnabled: false,
|
suggestionsEnabled: false,
|
||||||
suggestionsWeb: '',
|
suggestionsWeb: '',
|
||||||
|
|
Loading…
Reference in New Issue