#130 redux refactor (#208)

* mocks for redux refactor - for discussion

* more API design on redux refactor

* add new reuqired dependencies for build

* change babel target to use modern browser

* remove dead code

* remove dead code - joy plots

* checkpoint on redux refactoring

* checkpoint on redux refactoring

* fix mistaken rebase conflict resolution

* dead code removal; add name to dataframe backmap

* rename dataframe to universe

* update eslint config to more closely match prettier

* lint

* more eslint updates to match prettier

* additional config to make eslint match prettier

* add expression data to Universe/World

* remove obsolete reducers

* lint fixes

* more eslint cleanup

* lint

* lint

* fix but in countAllOnes when dimensions gt 1

* lint; do not display name metadata field

* lint; colors refactor

* lint; colors refactor

* update comments

* first cut at regraph and reset

* enable object-curly-braces consistent mode

* lint, handle regraph with no selection

* fix expression scatterplot bugs

* fix regression legend display

* add expression data cache

* remove console logging

* reset cell color on regraph/reset

* remove obsolete server URLs

* rename UniverseV01 to Universe_REST_API_v01

* add additional comments on the varDataCache

* merge universe reducer into controls reducer; simplify initialization-related actions

* use spread operator

* fix erroneous comment

* convert universe and world state to plain objects, and functionalize supporting code (remove ES6 classes)

* use spread operator

* lint

* improve variable names

* rename obsCrossfilter to crossfilter and obsDimensionMap to dimensionMap

* rename controls2 to controls
This commit is contained in:
Bruce Martin
2018-09-17 20:43:39 -07:00
committed by GitHub
parent 7b00fea44d
commit d4e850d18f
40 changed files with 2008 additions and 1584 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
module.exports = {
babelrc: false,
cacheDirectory: true,
presets: [["env", { loose: true, modules: false }], "stage-0", "react"],
presets: [
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
],
plugins: [
"react-hot-loader/babel",
"babel-plugin-transform-decorators-legacy"
+5 -1
View File
@@ -1,6 +1,10 @@
module.exports = {
babelrc: false,
presets: [["env", { loose: true, modules: false }], "stage-0", "react"],
presets: [
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
],
plugins: [
"babel-plugin-transform-react-constant-elements",
"babel-plugin-transform-decorators-legacy",
+3 -3
View File
@@ -1,9 +1,9 @@
module.exports = {
babelrc: false,
presets: [
"babel-preset-env",
"babel-preset-stage-0",
"babel-preset-react"
["modern-browsers", { loose: true, modules: false }],
"stage-0",
"react"
],
plugins: ["istanbul"]
};
+15 -2
View File
@@ -5,7 +5,7 @@ module.exports = {
env: { browser: true, commonjs: true, es6: true },
globals: { expect: true },
parserOptions: {
ecmaVersion: 6,
ecmaVersion: 2017,
sourceType: "module",
ecmaFeatures: {
jsx: true,
@@ -17,6 +17,19 @@ module.exports = {
"func-style": "off",
"arrow-parens": "off",
"no-use-before-define": "off",
"react/jsx-filename-extension": "off"
"react/jsx-filename-extension": "off",
"comma-dangle": "off",
"no-underscore-dangle": "off",
quotes: ["error", "double"],
"implicit-arrow-linebreak": "off",
"operator-linebreak": [
"error",
"after",
{ overrides: { "?": "before", ":": "before" } }
],
"no-console": "off",
"spaced-comment": ["error", "always", { exceptions: ["*"] }],
"no-param-reassign": "off",
"object-curly-newline": ["error", { consistent: true }]
}
};