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