Speech as a package #416
7 changed files with 11 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
||||||
import dynamicImport from 'utils/dynamicImport.js';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Switch } from 'react-router-dom';
|
||||||
import AboutPage from 'pages/AboutPage';
|
import AboutPage from 'pages/AboutPage';
|
||||||
import LoginPage from 'pages/LoginPage';
|
import LoginPage from 'pages/LoginPage';
|
||||||
import ShowPage from 'pages/ShowPage';
|
import ShowPage from 'pages/ShowPage';
|
||||||
import FourOhFourPage from 'containers/FourOhFourPage';
|
import FourOhFourPage from 'containers/FourOhFourPage';
|
||||||
|
const dynamicImport = require('utils/dynamicImport.js');
|
||||||
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
|
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const { componentsConfig } = require('../config/siteConfig.js');
|
const { componentsConfig } = require('../../config/siteConfig.js');
|
||||||
|
|
||||||
function getDeepestChildValue (parent, childrenKeys) {
|
function getDeepestChildValue (parent, childrenKeys) {
|
||||||
let childKey = childrenKeys.shift(); // .shift() retrieves the first element of array and removes it from array
|
let childKey = childrenKeys.shift(); // .shift() retrieves the first element of array and removes it from array
|
||||||
|
|
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
|
@ -17,6 +17,7 @@ function SpeechServer () {
|
||||||
};
|
};
|
||||||
this.configureSite = (siteConfig) => {
|
this.configureSite = (siteConfig) => {
|
||||||
require('./config/siteConfig.js').configure(siteConfig);
|
require('./config/siteConfig.js').configure(siteConfig);
|
||||||
|
console.log(require('./config/siteConfig.js'));
|
||||||
this.sessionKey = siteConfig.auth.sessionKey;
|
this.sessionKey = siteConfig.auth.sessionKey;
|
||||||
this.PORT = siteConfig.details.port;
|
this.PORT = siteConfig.details.port;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue