Speech as a package #416

Merged
bones7242 merged 89 commits from speech-as-a-package into master 2018-04-18 21:47:34 +02:00
7 changed files with 11 additions and 10 deletions
Showing only changes of commit d29c44973f - Show all commits

View file

@ -1,10 +1,10 @@
import dynamicImport from 'utils/dynamicImport.js';
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import AboutPage from 'pages/AboutPage';
import LoginPage from 'pages/LoginPage';
import ShowPage from 'pages/ShowPage';
import FourOhFourPage from 'containers/FourOhFourPage';
const dynamicImport = require('utils/dynamicImport.js');
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
const App = () => {

View file

@ -1,4 +1,4 @@
const { componentsConfig } = require('../config/siteConfig.js');
const { componentsConfig } = require('../../config/siteConfig.js');
function getDeepestChildValue (parent, childrenKeys) {
let childKey = childrenKeys.shift(); // .shift() retrieves the first element of array and removes it from array

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

View file

@ -17,6 +17,7 @@ function SpeechServer () {
};
this.configureSite = (siteConfig) => {
require('./config/siteConfig.js').configure(siteConfig);
console.log(require('./config/siteConfig.js'));
this.sessionKey = siteConfig.auth.sessionKey;
this.PORT = siteConfig.details.port;
};