From 903b09184563bff704f71c52cc28ee59bdc2cc20 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Tue, 14 Nov 2017 18:08:51 +0100 Subject: [PATCH] cleanup constants --- package-lock.json | 18 +++++++++++++----- package.json | 1 - src/constants/general.js | 9 --------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5598ed..abb0068 100644 --- a/package-lock.json +++ b/package-lock.json @@ -482,6 +482,14 @@ "require-resolve": "0.0.2" } }, + "babel-plugin-ramda": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-ramda/-/babel-plugin-ramda-1.4.3.tgz", + "integrity": "sha1-JltUqS8p9e1WGAuVxJnRriqKJac=", + "requires": { + "ramda": "0.21.0" + } + }, "babel-plugin-syntax-async-functions": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", @@ -1263,11 +1271,6 @@ "hoek": "2.16.3" } }, - "bowser": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-1.8.1.tgz", - "integrity": "sha512-NMPaR8ILtdLSWzxQtEs16XbxMcY8ohWGQ5V+TZSJS3fNUt/PBAGkF6YWO9B/4qWE23bK3o0moQKq8UyFEosYkA==" - }, "brace-expansion": { "version": "1.1.8", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", @@ -4408,6 +4411,11 @@ } } }, + "ramda": { + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.21.0.tgz", + "integrity": "sha1-oAGr7bP/YQd9T/HVd9RN536NCjU=" + }, "randomatic": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", diff --git a/package.json b/package.json index e222090..270f1bc 100755 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "babel-plugin-transform-regenerator": "^6.26.0", "babel-preset-stage-0": "^6.24.1", "bezier-js": "^2.2.3", - "bowser": "^1.8.1", "fit-curve": "^0.1.6", "imports-loader": "^0.7.1", "memoizee": "^0.3.9", diff --git a/src/constants/general.js b/src/constants/general.js index 1cf0732..1071e34 100644 --- a/src/constants/general.js +++ b/src/constants/general.js @@ -1,13 +1,8 @@ import * as contextTools from './contextTools.js'; -import bowser from 'bowser'; export const VERSION = '0.16.6'; export const SHAPE_CACHE_LIMIT = 50; -export const IS_CORDOVA = typeof cordova !== 'undefined'; export const PIXEL_RATIO = 1.0; -// On android and iOS autofocus means the keyboard pops up for one second and then hides -// Disable autofocus on these devices -export const AUTO_FOCUS_TEXT_FIELDS = !(bowser.mobile || bowser.tablet); export const COLOR_STRING_TO_HEX = { [contextTools.LIGHT_BLUE]: 0xc8e4f7, @@ -42,7 +37,3 @@ COLOR_HEX_TO_STRING[0x7ab063] = contextTools.DARK_GREEN; COLOR_HEX_TO_STRING[0xb36984] = contextTools.DARK_PINK; COLOR_HEX_TO_STRING[0xf5e872] = contextTools.DARK_YELLOW; COLOR_HEX_TO_STRING[0x00DDFF] = contextTools.BLUE; - -export const REQUEST_CONFIG = { - LARGE: { timeout: 0 } -};