diff options
| author | Mark Felder <feld@FreeBSD.org> | 2020-05-13 15:40:13 -0500 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2020-05-13 15:40:13 -0500 |
| commit | e80fa3ff6d620dfe09ca373e7761b6c2f1775a12 (patch) | |
| tree | 096e6c1a26005fc4cf3a6ba77e4d6b51047b8811 /src/modules/instance.js | |
| parent | d91f5189ef6bf540e9ba34a5650be52afb746235 (diff) | |
Split apiConfig options from static/config.json options;
Move safeDM to nasty section, alpha sort things
Diffstat (limited to 'src/modules/instance.js')
| -rw-r--r-- | src/modules/instance.js | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/modules/instance.js b/src/modules/instance.js index 8be8ba63..a8029dc1 100644 --- a/src/modules/instance.js +++ b/src/modules/instance.js @@ -4,10 +4,16 @@ import { CURRENT_VERSION } from '../services/theme_data/theme_data.service.js' import { instanceDefaultProperties } from './config.js' const defaultState = { - // not user configurable + // not configurable 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, background: '/static/aurora_borealis.jpg', collapseMessageWithSubject: false, @@ -28,29 +34,25 @@ const defaultState = { redirectRootLogin: '/main/friends', redirectRootNoLogin: '/main/all', registrationOpen: true, - safeDM: true, scopeCopy: true, - server: 'http://localhost:4040/', showFeaturesPanel: true, showInstanceSpecificPanel: false, subjectLineBehavior: 'email', - textlimit: 5000, theme: 'pleroma-dark', - themeData: undefined, - vapidPublicKey: undefined, // Nasty stuff - pleromaBackend: true, - emoji: [], - emojiFetched: false, customEmoji: [], customEmojiFetched: false, - restrictedNicknames: [], + emoji: [], + emojiFetched: false, + pleromaBackend: true, postFormats: [], + restrictedNicknames: [], + safeDM: true, // Feature-set, apparently, not everything here is reported... - mediaProxyAvailable: false, chatAvailable: false, + mediaProxyAvailable: false, gopherAvailable: false, suggestionsEnabled: false, suggestionsWeb: '', |
