Folder structure #398
7 changed files with 7 additions and 13 deletions
|
@ -1,12 +1,10 @@
|
||||||
const logger = require('winston');
|
|
||||||
|
|
||||||
function MysqlConfig () {
|
function MysqlConfig () {
|
||||||
this.database = 'default';
|
this.database = 'default';
|
||||||
this.username = 'default';
|
this.username = 'default';
|
||||||
this.password = 'default';
|
this.password = 'default';
|
||||||
this.configure = (config) => {
|
this.configure = (config) => {
|
||||||
if (!config) {
|
if (!config) {
|
||||||
return logger.warn('No MySQL config received.');
|
return console.log('No MySQL config received.');
|
||||||
}
|
}
|
||||||
const {database, username, password} = config;
|
const {database, username, password} = config;
|
||||||
this.database = database;
|
this.database = database;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
const logger = require('winston');
|
|
||||||
|
|
||||||
function SiteConfig () {
|
function SiteConfig () {
|
||||||
this.analytics = {
|
this.analytics = {
|
||||||
googleId: 'default',
|
googleId: 'default',
|
||||||
|
@ -27,7 +25,7 @@ function SiteConfig () {
|
||||||
};
|
};
|
||||||
this.configure = (config) => {
|
this.configure = (config) => {
|
||||||
if (!config) {
|
if (!config) {
|
||||||
return logger.warn('No site config received.');
|
return console.log('No site config received.');
|
||||||
}
|
}
|
||||||
const {analytics, publishing, details, assetDefaults, auth} = config;
|
const {analytics, publishing, details, assetDefaults, auth} = config;
|
||||||
this.analytics = analytics;
|
this.analytics = analytics;
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
const logger = require('winston');
|
|
||||||
|
|
||||||
function SlackConfig () {
|
function SlackConfig () {
|
||||||
this.slackWebHook = 'default';
|
this.slackWebHook = 'default';
|
||||||
this.slackErrorChannel = 'default';
|
this.slackErrorChannel = 'default';
|
||||||
this.slackInfoChannel = 'default';
|
this.slackInfoChannel = 'default';
|
||||||
this.configure = (config) => {
|
this.configure = (config) => {
|
||||||
if (!config) {
|
if (!config) {
|
||||||
return logger.warn('No slack config received.');
|
return console.log('No slack config received.');
|
||||||
}
|
}
|
||||||
const {slackWebHook, slackErrorChannel, slackInfoChannel} = config;
|
const {slackWebHook, slackErrorChannel, slackInfoChannel} = config;
|
||||||
this.slackWebHook = slackWebHook;
|
this.slackWebHook = slackWebHook;
|
||||||
|
|
2
index.js
2
index.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue