Skip to content

Latest commit

 

History

History
315 lines (203 loc) · 8.82 KB

REFERENCES.md

File metadata and controls

315 lines (203 loc) · 8.82 KB

References

Prototype Gauge w/ Dial

Implementations w/ d3.js:

Ideal dial is Jake Trent version using different color sections (red, grey, blue):

.chart-color1
  fill: steelblue

.chart-color2
  fill: #ccc

.chart-color3
  fill: #D62021

Ideal needle is ameyms version.

Implementations w/ react.js:

  • ...

Heroku

Clearing the slug, whaa?

du -sh * | sort -hr
du -sh node_modules/* | sort -hr
du -sh node_modules/.cache #> 1.4G WOW
heroku config:set NODE_MODULES_CACHE=false -r heroku-web

Create React App

Initializing the app:

npx create-react-app impeachment-web-prototype-react

React

React Bootstrap

npm install react-bootstrap bootstrap --save

Form controls:

Flexbox

React Router Bootstrap

npm install react-router-bootstrap react-router-dom --save

React Router

Bootstrap

Tools

Plotly React

npm install react-plotly.js plotly.js --save

Dotenv

Chrome Debugger for VS Code

If you're using VS code, also install this extension (msjsdiag.debugger-for-chrome) to enable interactive breakpoints.

Then setup ".vscode/launch.json" for the first time in this repo, following that last link.

It works to show you the variable values. To interact with them, must set a debugger; and then run the app and "View" the "Debug Console".

JavaScript Language

JavaScript Dates

Node.js

Lodash

npm install lodash --save

Gauge Dials

npm install react-gauge-chart

Recharts

Victory Charts

FTW AMAZING

BUT SOMEWHAT DISAPPOINTING

Color Scales

npm install d3 --save

Sliders

Bootstrap Slider

npm install react-bootstrap-range-slider

RC Slider:

URL Params

npm install query-string --save

Package Version Management

Security vulnerabilities whaa?

# doesn't work...
#npm update object-path
#npm install [email protected]

Peer dependencies whaa?

npm install _________
#> npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
#> npm WARN [email protected] requires a peer of popper.js@^1.16.1 but none is installed. You must install peer dependencies yourself.
#> npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

npm install jquery @popperjs/core --save
# npm uninstall  jquery @popperjs/core

Icons

Octicons

npm install @primer/octicons-react --save

React-Icons

Actually let's use all the icons

npm install react-icons --save