From a9109835fbc7c7c64d552fb59ecd5f6fe7146be6 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 16 Oct 2019 15:08:45 +0200 Subject: [PATCH 1/3] hide forceSSL logs --- app/helpers/forceSSL.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/forceSSL.js b/app/helpers/forceSSL.js index e1b0502..c95621f 100644 --- a/app/helpers/forceSSL.js +++ b/app/helpers/forceSSL.js @@ -5,15 +5,15 @@ module.exports = function(environments, status) { environments = environments || ["production"]; status = status || 301; - console.log("New force SSL "); - console.log("\tenvs : ", environments); - console.log("\tstatus: ", status); - console.log("\tENV : ", process.env.NODE_ENV); + // console.log("New force SSL "); + // console.log("\tenvs : ", environments); + // console.log("\tstatus: ", status); + // console.log("\tENV : ", process.env.NODE_ENV); return function(req, res, next) { if (environments.indexOf(process.env.NODE_ENV) >= 0) { if (req.headers["x-forwarded-proto"] !== "https") { const urlToRedirectTo = `https://${req.hostname}${req.originalUrl}`; - console.log("\tRedirect :", urlToRedirectTo); + // console.log("\tRedirect :", urlToRedirectTo); res.redirect(status, urlToRedirectTo); } else { next(); From 8fca523bb53ab8203c25db47e6217d65fdd3513c Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 16 Oct 2019 15:09:05 +0200 Subject: [PATCH 2/3] change slider ranges for land and garage --- app/common/enums.js | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/app/common/enums.js b/app/common/enums.js index 0601a9e..0feafed 100644 --- a/app/common/enums.js +++ b/app/common/enums.js @@ -32,6 +32,38 @@ const GARDEN_SIZE_SLIDER_OPTIONS = { tooltips: true }; +const LAND_SIZE_SLIDER_OPTIONS = { + start: [5000, 15000], + range: { + min: [0], + max: [100000] + }, + step: 100, + connect: true, + tooltips: true +}; +const GARAGE_SIZE_SLIDER_OPTIONS = { + start: [10, 20], + range: { + min: [0], + max: [50] + }, + step: 2, + connect: true, + tooltips: true +}; + +const GARAGE_PRICE_SLIDER_OPTIONS = { + start: [2000, 10000], + range: { + min: [0], + max: [100000] + }, + step: 500, + connect: true, + tooltips: true +}; + const AD_TYPE = { AD_TYPE_SALE: "SALE", AD_TYPE_RENT: "RENT" @@ -65,7 +97,7 @@ const AD_CATEGORY = { title: "Zemljište", hasGardenSize: false, priceSliderOptions: PRICE_SLIDER_OPTIONS, - sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS + sizeSliderOptions: LAND_SIZE_SLIDER_OPTIONS }, APARTMENT: { id: "APARTMENT", @@ -78,8 +110,8 @@ const AD_CATEGORY = { id: "GARAGE", title: "Garaža", hasGardenSize: false, - priceSliderOptions: PRICE_SLIDER_OPTIONS, - sizeSliderOptions: HOME_SIZE_SLIDER_OPTIONS + priceSliderOptions: GARAGE_PRICE_SLIDER_OPTIONS, + sizeSliderOptions: GARAGE_SIZE_SLIDER_OPTIONS }, COTTAGE: { id: "COTTAGE", From 8e5bc199a548043fa518c5a2bb33f96b67173e79 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Wed, 16 Oct 2019 15:33:25 +0200 Subject: [PATCH 3/3] increase garage max size --- app/common/enums.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/enums.js b/app/common/enums.js index 0feafed..f72d0bd 100644 --- a/app/common/enums.js +++ b/app/common/enums.js @@ -46,7 +46,7 @@ const GARAGE_SIZE_SLIDER_OPTIONS = { start: [10, 20], range: { min: [0], - max: [50] + max: [150] }, step: 2, connect: true,