Error [404]: {{currentPath}} does not exist.
diff --git a/client/templates/globals/not-found.js b/client/templates/globals/not-found.js new file mode 100644 index 0000000..23dc485 --- /dev/null +++ b/client/templates/globals/not-found.js @@ -0,0 +1,5 @@ +Template.notFound.helpers({ + currentPath() { + return FlowRouter.current().path; + } +}); diff --git a/client/templates/public/login.js b/client/templates/public/login.js index d49c1d1..95795db 100644 --- a/client/templates/public/login.js +++ b/client/templates/public/login.js @@ -1,7 +1,7 @@ -import { login } from '../../modules/login'; +import login from '../../modules/login'; Template.login.onRendered( () => { - login( { form: "#login", template: Template.instance() } ); + login( { form: '#login', template: Template.instance() } ); }); Template.login.events({ diff --git a/client/templates/public/recover-password.js b/client/templates/public/recover-password.js index f4a5fbf..16ace83 100644 --- a/client/templates/public/recover-password.js +++ b/client/templates/public/recover-password.js @@ -1,10 +1,7 @@ -import { recoverPassword } from '../../modules/recover-password'; +import recoverPassword from '../../modules/recover-password'; Template.recoverPassword.onRendered( () => { - recoverPassword({ - form: "#recover-password", - template: Template.instance() - }); + recoverPassword( { form: '#recover-password', template: Template.instance() } ); }); Template.recoverPassword.events({ diff --git a/client/templates/public/reset-password.js b/client/templates/public/reset-password.js index 05595fa..b1fb78e 100644 --- a/client/templates/public/reset-password.js +++ b/client/templates/public/reset-password.js @@ -1,10 +1,7 @@ -import { resetPassword } from '../../modules/login'; +import resetPassword from '../../modules/reset-password'; Template.resetPassword.onRendered( () => { - resetPassword({ - form: "#reset-password", - template: Template.instance() - }); + resetPassword( { form: '#reset-password', template: Template.instance() } ); }); Template.resetPassword.events({ diff --git a/client/templates/public/signup.js b/client/templates/public/signup.js index 70ed3b0..f82137a 100644 --- a/client/templates/public/signup.js +++ b/client/templates/public/signup.js @@ -1,7 +1,7 @@ -import { signup } from '../../modules/signup'; +import signup from '../../modules/signup'; Template.signup.onRendered( () => { - signup( { form: "#signup", template: Template.instance() } ); + signup({ form: '#signup', template: Template.instance() }); }); Template.signup.events({ diff --git a/collections/documents.js b/collections/documents.js index 7f0f8cb..db488fc 100644 --- a/collections/documents.js +++ b/collections/documents.js @@ -13,9 +13,9 @@ Documents.deny({ }); let DocumentsSchema = new SimpleSchema({ - "title": { + 'title': { type: String, - label: "The title of this document." + label: 'The title of this document.' } }); diff --git a/node_modules/.bin/eslint b/node_modules/.bin/eslint deleted file mode 120000 index 810e4bc..0000000 --- a/node_modules/.bin/eslint +++ /dev/null @@ -1 +0,0 @@ -../eslint/bin/eslint.js \ No newline at end of file diff --git a/node_modules/eslint-config-airbnb/.eslintrc b/node_modules/eslint-config-airbnb/.eslintrc deleted file mode 100644 index 4b3b1fa..0000000 --- a/node_modules/eslint-config-airbnb/.eslintrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "airbnb", - "rules": { - // disable requiring trailing commas because it might be nice to revert to - // being JSON at some point, and I don't want to make big changes now. - "comma-dangle": 0 - } -} diff --git a/node_modules/eslint-config-airbnb/CHANGELOG.md b/node_modules/eslint-config-airbnb/CHANGELOG.md deleted file mode 100644 index 75febdd..0000000 --- a/node_modules/eslint-config-airbnb/CHANGELOG.md +++ /dev/null @@ -1,102 +0,0 @@ -5.0.0 / 2016-02-03 -================== - - [breaking] disallow unneeded ternary expressions - - [breaking] Avoid lexical declarations in case/default clauses - - [dev deps] update `babel-tape-runner`, `eslint-plugin-react`, `react`, `tape` - -4.0.0 / 2016-01-22 -================== - - [breaking] require outer IIFE wrapping; flesh out guide section - - [minor] Add missing `arrow-body-style`, `prefer-template` rules (#678) - - [minor] Add `prefer-arrow-callback` to ES6 rules (to match the guide) (#677) - - [Tests] run `npm run lint` as part of tests; fix errors - - [Tests] use `parallelshell` to parallelize npm run-scripts - -3.1.0 / 2016-01-07 -================== - - [minor] Allow multiple stateless components in a single file - -3.0.2 / 2016-01-06 -================== - - [fix] Ignore URLs in `max-len` (#664) - -3.0.1 / 2016-01-06 -================== - - [fix] because we use babel, keywords should not be quoted - -3.0.0 / 2016-01-04 -================== - - [breaking] enable `quote-props` rule (#632) - - [breaking] Define a max line length of 100 characters (#639) - - [breaking] [react] Minor cleanup for the React styleguide, add `react/jsx-no-bind` (#619) - - [breaking] update best-practices config to prevent parameter object manipulation (#627) - - [minor] Enable react/no-is-mounted rule (#635, #633) - - [minor] Sort react/prefer-es6-class alphabetically (#634) - - [minor] enable react/prefer-es6-class rule - - Permit strict mode in "legacy" config - - [react] add missing rules from eslint-plugin-react (enforcing where necessary) (#581) - - [dev deps] update `eslint-plugin-react` - -2.1.1 / 2015-12-15 -================== - - [fix] Remove deprecated react/jsx-quotes (#622) - -2.1.0 / 2015-12-15 -================== - - [fix] use `require.resolve` to allow nested `extend`s (#582) - - [new] enable `object-shorthand` rule (#621) - - [new] enable `arrow-spacing` rule (#517) - - [docs] flesh out react rule defaults (#618) - -2.0.0 / 2015-12-03 -================== - - [breaking] `space-before-function-paren`: require function spacing: `function- [+] {{this.filePath}} - {{renderText this.errorCount this.warningCount}} - | -
---|