canon

Reusable React environment and components for creating visualization engines.

GPL-3.0 License

Downloads
1.4K
Stars
27
Committers
19
canon - v0.14.1

Published by davelandry over 6 years ago

  • removes unnecessary compile from release script (0fc67e3)
canon - v0.14.0

Published by davelandry over 6 years ago

[breaking] deprecating CanonComponent

With this release, CanonComponent has been renamed to CanonProfile, and d3plus and data contexts are now passed automatically to any children requesting them by using the new Canon component that should wrap your entire project. CanonProfile only remains for those sites that are currently using the "topic" logic for subnav. Check out the example App.jsx that is used in the parent route:

import React, {Component} from "react";
import {Canon} from "datawheel-canon";

export default class App extends Component {

  render() {
    return (
      <Canon>
        { this.props.children }
      </Canon>
    );
  }

}

[breaking] d3plus global config

The new Canon component requires default d3plus config to be located at app/d3plus.js.

canon-setup

datawheel-canon now comes with a script to initialize a new project. After creating a package.json file and installing datawheel-canon, setup is invoked like this:

node node_modules/datawheel-canon/bin/setup.js

It currently does the following:

  • sets up a simple app/ directory,
  • adds a static/ directory with a starter favicon
  • adds the canon scripts to your package.json
  • .gitignore
  • .eslintrc

If this script is run on an older project, it will not overwrite any files, only add any necessary ones that are missing (probably a good idea to run this script when upgrading to this version of canon).

fixes development server

Turns out, when we implemented tree-shaking, I totally borked the dev server build. It seems that it would run the webpack, but not actually output the file anywhere. Things should now be working alright (it was an issue with hot-module-reload being enabled on the server).

canon - v0.13.1

Published by davelandry over 6 years ago

  • fixes blueprint imports for buttons and forms (7b1ce31)
canon - v0.13.0

Published by davelandry over 6 years ago

  • updates fetchData usage in sample App (275599d)
  • adds d3-array to dependencies for cubeFold (5fdcee6)
  • implements cubeFold helper function (d5467f9)
  • [breaking] removes dataFold as the default formatter for fetchData (b83f5e6)
  • fixes redux state user info after non-redirected login/signup (88fe47d)
  • adds ability to disable login/signup redirects (3b51475)
canon - v0.12.6

Published by davelandry over 6 years ago

  • fixes #70 and #71 (#72) (20036f3)
canon - v0.12.5

Published by davelandry almost 7 years ago

  • fixes CSS flash during development browser refresh (352cbb8)
canon - v0.12.4

Published by davelandry almost 7 years ago

  • restructures the @jazzido object monstrosity to the @jspeis ES6 hotness (73f4d9d)
  • Fixes #66 — Resources need to be loaded at init() time. (#67) (783c0e6)
canon - v0.12.3

Published by davelandry almost 7 years ago

  • passes description with fetchData action (67dc796)
  • catches all need promises and descriptions at middleware level (credit to @frabarz) (833cd8a)
canon - v0.12.2

Published by davelandry almost 7 years ago

  • removes unused import from client side rendering (3cb3bf5)
  • implements a Canon provider component to handle SSR and default Helmet configuration (closes #64) (f2507ac)
  • updates d3plus dependencies (c77ee33)
canon - v0.12.1

Published by davelandry almost 7 years ago

  • removes unnecessary css stripping from SSR (ce7b2a3)
  • enables tree-shaking for blueprintjs/core and generalizes webpack loaders (1dd18a2)
  • fixes dev server pathing (3f0531d)
  • adds npmignore for test app (4838ebb)
canon - v0.12.0

Published by davelandry almost 7 years ago

  • tree-shaking (#63) (8e64ccc)
canon - v0.11.15

Published by davelandry almost 7 years ago

  • adds .DS_Store to gitignore (37e12a3)
  • fixes production build babel preset (e086333)
  • generates webpack analyses in static/reports (b59bc5f)
  • fixes example app in README (#61) (99ea8be)
  • updates d3plus (03818a1)
canon - v0.11.14

Published by davelandry almost 7 years ago

  • updates deprecated babel-preset-es2015 to babel-preset-env (5578d20)
  • removes faulty client webpack printout (fcf318f)
canon - v0.11.13

Published by davelandry almost 7 years ago

  • fixes another locales path bug (b9f72d4)
canon - v0.11.12

Published by davelandry almost 7 years ago

  • fixes locales scraper (5801be7)
  • only prints file load message in dev mode (266137c)
  • improves webpack client build output (b3866f4)
  • updates dependencies (fd19417)
  • fixes second viz in test app (7d7b09e)
canon - v0.11.11

Published by davelandry almost 7 years ago

  • fixes bug requiring multiple ES6 resources (5ff4f70)
  • prettifies up server rendered head and script tags (b537d38)
  • fixes i18n SSR (closes #60) (11337c6)
canon - v0.11.10

Published by davelandry almost 7 years ago

  • fixes resolve.js module import (7f9d264)
canon - v0.11.9

Published by davelandry almost 7 years ago

  • shows loading progress in default LoadingComponent (closes #53) (ed78951)
  • displays promise errors from the fetchData action (closes #5) (a383d5d)
  • fixes initial locale setting (closes #39) (3ce35a6)
  • helmet.js and store.js now support ES6 export syntax (51b9eff)
  • ports locale scraping to i18next-scanner, enabling use of component (d46db9d)
  • allows custom global environment variables (#40 and #55) (053e5a7 and 5b49736)
canon - v0.11.8

Published by davelandry almost 7 years ago

  • fixes localization for privacy/terms text in SignUp component (314a78b)
canon - v0.11.7

Published by davelandry almost 7 years ago

  • consilidates/updates i18next behavior (82abbfe)