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
11 changed files with 24 additions and 23 deletions
Showing only changes of commit daf6765f41 - Show all commits

View file

@ -1,5 +1,5 @@
const { checkChannelAvailability } = require('../../controllers/publishController.js'); const { checkChannelAvailability } = require('controllers/publishController.js');
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js'); const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
/* /*

View file

@ -1,4 +1,4 @@
const { getChannelClaims } = require('../../controllers/serveController.js'); const { getChannelClaims } = require('controllers/serveController.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
const NO_CHANNEL = 'NO_CHANNEL'; const NO_CHANNEL = 'NO_CHANNEL';

View file

@ -1,4 +1,4 @@
const { getChannelData } = require('../../controllers/serveController.js'); const { getChannelData } = require('controllers/serveController.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
const NO_CHANNEL = 'NO_CHANNEL'; const NO_CHANNEL = 'NO_CHANNEL';

View file

@ -1,5 +1,5 @@
const { claimNameIsAvailable } = require('../../controllers/publishController.js'); const { claimNameIsAvailable } = require('controllers/publishController.js');
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js'); const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
/* /*

View file

@ -1,4 +1,4 @@
const { getClaim } = require('../../helpers/lbryApi.js'); const { getClaim } = require('helpers/lbryApi.js');
const { addGetResultsToFileData, createFileData } = require('../../helpers/publishHelpers.js'); const { addGetResultsToFileData, createFileData } = require('../../helpers/publishHelpers.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');

View file

@ -1,4 +1,4 @@
const { getClaimId } = require('../../controllers/serveController.js'); const { getClaimId } = require('controllers/serveController.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
const NO_CHANNEL = 'NO_CHANNEL'; const NO_CHANNEL = 'NO_CHANNEL';

View file

@ -1,8 +1,9 @@
const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('../../helpers/publishHelpers.js'); const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('helpers/publishHelpers.js');
const { claimNameIsAvailable, publish } = require('../../controllers/publishController.js'); const { claimNameIsAvailable, publish } = require('controllers/publishController.js');
const { authenticateUser } = require('../../auth/authentication.js'); const { authenticateUser } = require('auth/authentication.js');
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js'); const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { details: { host } } = require('siteConfig.js');
/* /*
@ -10,7 +11,7 @@ const { handleErrorResponse } = require('helpers/errorHandlers.js');
*/ */
const claimPublish = (db, host) => { const claimPublish = (db) => {
return ({ body, files, headers, ip, originalUrl, user }, res) => { return ({ body, files, headers, ip, originalUrl, user }, res) => {
// define variables // define variables
let channelName, channelId, channelPassword, description, fileName, filePath, fileType, gaStartTime, license, name, nsfw, thumbnail, thumbnailFileName, thumbnailFilePath, thumbnailFileType, title; let channelName, channelId, channelPassword, description, fileName, filePath, fileType, gaStartTime, license, name, nsfw, thumbnail, thumbnailFileName, thumbnailFilePath, thumbnailFileType, title;

View file

@ -1,4 +1,4 @@
const { resolveUri } = require('../../helpers/lbryApi.js'); const { resolveUri } = require('helpers/lbryApi.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
/* /*

View file

@ -1,4 +1,4 @@
const { getClaimList } = require('../../helpers/lbryApi.js'); const { getClaimList } = require('helpers/lbryApi.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js'); const { handleErrorResponse } = require('helpers/errorHandlers.js');
/* /*

View file

@ -1,7 +1,7 @@
const { sendGAServeEvent } = require('../../helpers/googleAnalytics'); const { sendGAServeEvent } = require('helpers/googleAnalytics');
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js'); const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js'); const lbryUri = require('helpers/lbryUri.js');
const handleShowRender = require('../../helpers/handleShowRender.jsx'); const handleShowRender = require('helpers/handleShowRender.jsx');
const SERVE = 'SERVE'; const SERVE = 'SERVE';
/* /*

View file

@ -1,7 +1,7 @@
const { sendGAServeEvent } = require('../../helpers/googleAnalytics'); const { sendGAServeEvent } = require('helpers/googleAnalytics');
const { determineResponseType, flipClaimNameAndIdForBackwardsCompatibility, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js'); const { determineResponseType, flipClaimNameAndIdForBackwardsCompatibility, logRequestData, getClaimIdAndServeAsset } = require('helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js'); const lbryUri = require('helpers/lbryUri.js');
const handleShowRender = require('../../helpers/handleShowRender.jsx'); const handleShowRender = require('helpers/handleShowRender.jsx');
const SERVE = 'SERVE'; const SERVE = 'SERVE';