ducky/web

Paddy 2015-05-31 Parent:b9d0efb44eaa Child:3bdc03963abe

6:a641906b8267 Go to Latest

ducky/web/package.json

Enable catch-all in our ValidationError component. We're doing this an ugly, hacky way. But it works, and right now, that's what counts. To match our params/fields/headers properties on the ValidationError component, we're going to add the notParams/notFields/notHeaders properties--they match any error _not_ targeting those params/fields/headers. Basically, "any error that wouldn't be caught by these filters". Which is an ugly, but workable, solution for a catch-all ValidationError--just tell it to catch anything but the params/fields/headers that are being handled by the other ValidationErrors. Our implementation of this in the RegisterPage component validates (ha!) that it's at least workable model, if not overly pretty. Also, I anticipate some human error bugs in the future, where one of the field-specific ValidationErrors gets updated and the catch-all ValidationError does not. But whatever. For now, this is Good Enoughâ„¢.

History
1 {
2 "name": "ducky",
3 "version": "0.0.1",
4 "author": "Second Bit",
5 "license": "MIT",
6 "dependencies": {
7 "ampersand-app": "^1.0.4",
8 "ampersand-collection": "^1.4.5",
9 "ampersand-model": "^5.0.3",
10 "ampersand-react-mixin": "^0.1.2",
11 "ampersand-router": "^3.0.2",
12 "ampersand-sync": "^3.0.7",
13 "babel": "^5.1.13",
14 "babel-loader": "^5.0.0",
15 "css-loader": "^0.12.0",
16 "extract-text-webpack-plugin": "^0.7.0",
17 "file-loader": "^0.8.1",
18 "find-root": "^0.1.1",
19 "jwt-decode": "^1.1.0",
20 "ladda": "^0.9.8",
21 "local-links": "^1.4.0",
22 "lodash.debounce": "^3.0.3",
23 "lodash.isobject": "^3.0.1",
24 "minimist": "^1.1.1",
25 "node-bourbon": "^4.2.1-beta1",
26 "node-neat": "^1.7.1-beta1",
27 "node-sass": "^2.1.1",
28 "normalize.css": "^3.0.3",
29 "qs": "^2.4.1",
30 "react": "^0.13.2",
31 "react-ladda": "^2.0.4",
32 "react-script-loader": "0.0.1",
33 "sass-loader": "0.4.2",
34 "style-loader": "^0.12.0",
35 "url-loader": "^0.5.5",
36 "webpack": "1.8.9"
37 },
38 "devDependencies": {
39 "react-hot-loader": "^1.2.5",
40 "webpack-dev-server": "^1.8.2"
41 },
42 "scripts": {
43 "build": "NODE_ENV=production webpack",
44 "start": "bin/dev-server",
45 "deploy": "surge ./build/"
46 }
47 }