Speech as a package #416
8 changed files with 14 additions and 15 deletions
|
@ -14,7 +14,7 @@ import { Reducers, GAListener, App } from 'spee.ch-components';
|
|||
import renderFullPage from './renderFullPage.js';
|
||||
import Helmet from 'react-helmet';
|
||||
|
||||
const siteConfig = require('siteConfig.js');
|
||||
const siteConfig = require('../../config/siteConfig.js');
|
||||
|
||||
module.exports = (req, res) => {
|
||||
let context = {};
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
const Certificate = require('models/certificate.js');
|
||||
const Channel = require('models/channel.js');
|
||||
const Claim = require('models/claim.js');
|
||||
const File = require('models/file.js');
|
||||
const Request = require('models/request.js');
|
||||
const User = require('models/user.js');
|
||||
const Certificate = require('./certificate.js');
|
||||
const Channel = require('./channel.js');
|
||||
const Claim = require('./claim.js');
|
||||
const File = require('./file.js');
|
||||
const Request = require('./request.js');
|
||||
const User = require('./user.js');
|
||||
|
||||
const Sequelize = require('sequelize');
|
||||
const logger = require('winston');
|
||||
|
|
|
@ -12,7 +12,7 @@ const claimShortId = require('./claimShortId');
|
|||
const claimList = require('./claimList');
|
||||
const fileAvailability = require('./fileAvailability');
|
||||
|
||||
const multipartMiddleware = require('helpers/multipartMiddleware');
|
||||
const multipartMiddleware = require('../../helpers/multipartMiddleware');
|
||||
|
||||
module.exports = (app) => {
|
||||
// channel routes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const handlePageRender = require('helpers/handlePageRender.jsx');
|
||||
const handlePageRender = require('../../helpers/handlePageRender.jsx');
|
||||
|
||||
const sendReactApp = (req, res) => {
|
||||
handlePageRender(req, res);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const passport = require('passport');
|
||||
const localLoginStrategy = require('./local-login.js');
|
||||
const localSignupStrategy = require('./local-signup.js');
|
||||
const { serializeSpeechUser, deserializeSpeechUser } = require('helpers/authHelpers.js');
|
||||
const { serializeSpeechUser, deserializeSpeechUser } = require('../helpers/authHelpers.js');
|
||||
|
||||
passport.deserializeUser(deserializeSpeechUser);
|
||||
passport.serializeUser(serializeSpeechUser);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const PassportLocalStrategy = require('passport-local').Strategy;
|
||||
const logger = require('winston');
|
||||
const db = require('models');
|
||||
const db = require('../models');
|
||||
|
||||
const returnUserAndChannelInfo = (userInstance) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const PassportLocalStrategy = require('passport-local').Strategy;
|
||||
const lbryApi = require('../helpers/lbryApi.js');
|
||||
const logger = require('winston');
|
||||
const db = require('models');
|
||||
const db = require('../models');
|
||||
|
||||
module.exports = new PassportLocalStrategy(
|
||||
{
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// load dependencies
|
||||
const logger = require('winston');
|
||||
const db = require('models');
|
||||
// configure logging
|
||||
require('helpers/configureLogger.js')(logger);
|
||||
const db = require('../models');
|
||||
require('../helpers/configureLogger.js')(logger);
|
||||
|
||||
let totalClaims = 0;
|
||||
let totalClaimsNoCertificate = 0;
|
||||
|
|
Loading…
Reference in a new issue