Simplify folder structure

This commit is contained in:
Daniel García Aubert 2019-10-07 09:40:50 +02:00
parent 0d638e6bad
commit 281a079a62
221 changed files with 175 additions and 175 deletions

6
app.js
View File

@ -6,7 +6,7 @@ var path = require('path');
var fs = require('fs');
var _ = require('underscore');
var semver = require('semver');
const setICUEnvVariable = require('./lib/cartodb/utils/icu_data_env_setter');
const setICUEnvVariable = require('./lib/utils/icu_data_env_setter');
// jshint undef:false
var log = console.log.bind(console);
@ -105,8 +105,8 @@ global.logger = global.log4js.getLogger();
// Include cartodb_windshaft only _after_ the "global" variable is set
// See https://github.com/Vizzuality/Windshaft-cartodb/issues/28
var cartodbWindshaft = require('./lib/cartodb/server');
var serverOptions = require('./lib/cartodb/server_options');
var cartodbWindshaft = require('./lib/server');
var serverOptions = require('./lib/server_options');
var server = cartodbWindshaft(serverOptions);

View File

@ -282,7 +282,7 @@ function createSurrogateKeysCacheBackends(serverOptions) {
return cacheBackends;
}
const timeoutErrorTilePath = __dirname + '/../../../assets/render-timeout-fallback.png';
const timeoutErrorTilePath = __dirname + '/../../assets/render-timeout-fallback.png';
const timeoutErrorTile = require('fs').readFileSync(timeoutErrorTilePath, {encoding: null});
function createRendererFactory ({ redisPool, serverOptions, environmentOptions }) {

View File

@ -1,7 +1,7 @@
'use strict';
const fs = require('fs');
const timeoutErrorVectorTile = fs.readFileSync(__dirname + '/../../../../assets/render-timeout-fallback.mvt');
const timeoutErrorVectorTile = fs.readFileSync(__dirname + '/../../../assets/render-timeout-fallback.mvt');
module.exports = function vectorError() {
return function vectorErrorMiddleware(err, req, res, next) {

View File

@ -1,6 +1,6 @@
'use strict';
const dataviews = require('./');
const dataviews = require('.');
module.exports = class DataviewFactory {
static get dataviews() {

View File

@ -1,7 +1,7 @@
'use strict';
var parentFactory = require('../factory');
var dataviews = require('./');
var dataviews = require('.');
function OverviewsDataviewFactory(queryRewriter, queryRewriteData, options) {
this.queryRewriter = queryRewriter;

Some files were not shown because too many files have changed in this diff Show More