FUCKING BIG UPDATE: server, parallax, apis, new data models, style, layout, other

This commit is contained in:
tmshv committed 2016-03-03 01:34:45 +03:00
1 parent e0f54171a9
commit 359cc430f5
78 files changed
+1063 -445

No files matched your search

+2 -7
View File
@@ -2,14 +2,9 @@ import path from 'path';
import fs from 'mz/fs';
import config from '../config';
export function queryObject(){
let assign = (dict, key, value) => {
dict[key] = value;
return dict;
};
let map = (v, fn) =>
value => fn(value) ? v : value;
import {map, assign} from '../utils/common';
export function queryObject() {
let toTrue = map(true, i => i === 'true');
let toFalse = map(false, i => i === 'false');
const processors = [toTrue, toFalse];