-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
6,119 additions
and
3,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,20 +6,22 @@ | |
"author": "Zach Bush <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-proposal-class-properties": "7.5.5", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@types/material-ui": "^0.21.7", | ||
"@types/react": "^16.9.4", | ||
"@types/react-dom": "^16.9.1", | ||
"airbnb-prop-types": "^2.8.1", | ||
"babel-core": "^6.24.0", | ||
"babel-eslint": "^7.2.1", | ||
"babel-loader": "^6.4.1", | ||
"babel-plugin-flow-react-proptypes": "^8.0.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-flow-react-proptypes": "^25.1.0", | ||
"babel-polyfill": "^6.23.0", | ||
"babel-preset-env": "^1.3.2", | ||
"babel-preset-flow": "^6.23.0", | ||
"babel-preset-react": "^6.23.0", | ||
"copy-webpack-plugin": "^4.0.1", | ||
"css-loader": "^0.28.0", | ||
"css-modules-typescript-loader": "^3.0.1", | ||
"d3-scale": "^1.0.6", | ||
"eslint": "^4.10.0", | ||
"eslint-config-airbnb": "^16.1.0", | ||
|
@@ -38,7 +40,7 @@ | |
"flow-watch": "^1.1.1", | ||
"formsy-material-ui": "^0.6.0", | ||
"formsy-react": "^0.19.2", | ||
"html-webpack-plugin": "^2.28.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"immutability-helper": "^2.1.2", | ||
"material-ui": "^0.19.4", | ||
"moment": "^2.19.2", | ||
|
@@ -55,8 +57,13 @@ | |
"recharts": "^1.0.0-beta.1", | ||
"sass-loader": "^6.0.3", | ||
"serviceworker-webpack-plugin": "^0.2.1", | ||
"source-map-loader": "^0.2.4", | ||
"style-loader": "^0.16.1", | ||
"typescript": "^2.3.1", | ||
"webpack": "^2.4.1" | ||
"ts-loader": "^6.2.0", | ||
"typescript": "^3.6.3", | ||
"webpack": "^4.41.0" | ||
}, | ||
"devDependencies": { | ||
"webpack-cli": "^3.3.9" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "./web/src", | ||
"outDir": "./dist/", | ||
"sourceMap": true, | ||
"module": "commonjs", | ||
"noImplicitAny": true, | ||
"strictNullChecks": true, | ||
"target": "es6", | ||
"jsx": "react", | ||
"lib": ["es2017"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'chipBag': string; | ||
'mainContent': string; | ||
'report': string; | ||
'reports': string; | ||
'spacer': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'category': string; | ||
'reportSection': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import * as React from "react"; | ||
import * as styles from "./style.scss"; | ||
|
||
type Props = { | ||
invert?: boolean; | ||
amount: string | number; | ||
}; | ||
|
||
const Money = (props: Props) => { | ||
let amount; | ||
if (typeof props.amount == "number") { | ||
amount = props.amount; | ||
} else { | ||
amount = parseFloat(props.amount); | ||
} | ||
if (props.invert) { | ||
amount = -amount; | ||
} | ||
const className = amount > 0 ? "positive" : "negative"; | ||
const dollars = amount.toLocaleString("en-US", { | ||
style: "currency", | ||
currency: "USD" | ||
}); | ||
return <span className={styles[className]}>{dollars}</span>; | ||
}; | ||
|
||
Money.defaultProps = { | ||
invert: false | ||
}; | ||
|
||
export default Money; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'negative': string; | ||
'positive': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'page': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'data': string; | ||
'graph': string; | ||
'main': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'inner_table': string; | ||
'normal_row': string; | ||
'table': string; | ||
} | ||
declare const cssExports: CssExports; | ||
export = cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2019 Zachary Bush. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
declare module "*.scss" { | ||
const content: { [className: string]: string }; | ||
export default content; | ||
} |
Oops, something went wrong.