added components to site config

This commit is contained in:
bill bittner 2018-03-20 09:33:48 -07:00
parent 9bb38b78c2
commit 57ec269532

View file

@ -10,6 +10,7 @@ function SiteConfig () {
this.auth = { this.auth = {
sessionKey: 'default', sessionKey: 'default',
}; };
this.components = {};
this.details = { this.details = {
description: 'Open-source, decentralized image and video sharing.', description: 'Open-source, decentralized image and video sharing.',
host : 'default', host : 'default',
@ -30,10 +31,11 @@ function SiteConfig () {
if (!config) { if (!config) {
return console.log('No site config received.'); return console.log('No site config received.');
} }
const { analytics, assetDefaults, auth, details, publishing } = config; const { analytics, assetDefaults, auth, components, details, publishing } = config;
this.analytics = analytics; this.analytics = analytics;
this.assetDefaults = assetDefaults; this.assetDefaults = assetDefaults;
this.auth = auth; this.auth = auth;
this.components = components;
this.details = details; this.details = details;
this.publishing = publishing; this.publishing = publishing;
}; };