From 4c76f21b02e9383f09b4773b29a3688ddac3978b Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Thu, 22 Sep 2016 09:59:39 +0200 Subject: [PATCH] Update schema and data for dev --- dev/data.js | 2 ++ dev/schema.js | 31 ++++++++++++++----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/dev/data.js b/dev/data.js index 2151b2bb..4dd80470 100644 --- a/dev/data.js +++ b/dev/data.js @@ -45,6 +45,8 @@ module.exports = { if (user.type == "business") user.company = fakerator.entity.company(); + user.income = [ fakerator.random.number(50000), fakerator.random.number(50000, 100000)]; + res.push(user); console.log(user); } diff --git a/dev/schema.js b/dev/schema.js index 0a5bff20..15a1fb1b 100644 --- a/dev/schema.js +++ b/dev/schema.js @@ -1,11 +1,8 @@ import moment from "moment"; -import Fakerator from "fakerator"; import {} from "lodash"; import { validators } from "../src"; -let fakerator = new Fakerator(); - module.exports = { fields: [ @@ -437,20 +434,20 @@ module.exports = { }, validator: validators.integer }, -// { -// type: "rangeSlider", -// label: "Income", -// model: "income", -// multi: true, -// min: 0, -// max: 100000, -// rangeSliderOptions: { -// type: "double", -// prefix: "$", -// step: 1000, -// force_edges: true -// } -// }, +{ + type: "rangeSlider", + label: "Income", + model: "income", + multi: true, + min: 0, + max: 100000, + rangeSliderOptions: { + type: "double", + prefix: "$", + step: 1000, + force_edges: true + } +}, { type: "dateTimePicker", label: "DOB (dateTimePicker field)",