Speech as a package - export components #401

Merged
bones7242 merged 8 commits from speech-as-a-package-export-component-lib into speech-as-a-package 2018-03-22 06:11:03 +01:00
5 changed files with 55069 additions and 29 deletions
Showing only changes of commit 6713d660b3 - Show all commits

View file

@ -1,16 +1,16 @@
import ActiveStatusBar from 'components/ActiveStatusBar'; import ActiveStatusBar from './ActiveStatusBar';
import AssetPreview from 'components/AssetPreview'; import AssetPreview from './AssetPreview';
import ExpandingTextArea from 'components/ExpandingTextArea'; import ExpandingTextArea from './ExpandingTextArea';
import GAListener from 'components/GAListener'; import GAListener from './GAListener';
import InactiveStatusBar from 'components/InactiveStatusBar'; import InactiveStatusBar from './InactiveStatusBar';
import Logo from 'components/Logo'; import Logo from './Logo';
import NavBarChannelOptionsDropdown from 'components/NavBarChannelOptionsDropdown'; import NavBarChannelOptionsDropdown from './NavBarChannelOptionsDropdown';
import ProgressBar from 'components/ProgressBar'; import ProgressBar from './ProgressBar';
import PublishPreview from 'components/PublishPreview'; import PublishPreview from './PublishPreview';
import PublishUrlMiddleDisplay from 'components/PublishUrlMiddleDisplay'; import PublishUrlMiddleDisplay from './PublishUrlMiddleDisplay';
import SEO from 'components/SEO'; import SEO from './SEO';
const components = { module.exports = {
ActiveStatusBar, ActiveStatusBar,
AssetPreview, AssetPreview,
ExpandingTextArea, ExpandingTextArea,
@ -22,6 +22,4 @@ const components = {
PublishPreview, PublishPreview,
PublishUrlMiddleDisplay, PublishUrlMiddleDisplay,
SEO, SEO,
} };
export default components;

9282
index.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,7 @@ const http = require('http');
// logging dependencies // logging dependencies
const logger = require('winston'); const logger = require('winston');
function SpeechServer () { function Server () {
this.configureMysql = (mysqlConfig) => { this.configureMysql = (mysqlConfig) => {
require('../config/mysqlConfig.js').configure(mysqlConfig); require('../config/mysqlConfig.js').configure(mysqlConfig);
}; };
@ -96,4 +96,4 @@ function SpeechServer () {
}; };
}; };
module.exports = SpeechServer; module.exports = Server;

View file

@ -1,11 +1,11 @@
const server = require('server/server.js'); const Server = require('server/server.js');
const components = require('client/components'); const Components = require('client/components');
// const containers = require('client/containers'); // const containers = require('client/containers');
// const pages = require('client/pages'); // const pages = require('client/pages');
const exports = { const exports = {
SpeechServer: server, Server,
Components : components, Components,
// containers, // containers,
// pages, // pages,
}; };