Skip to content

Commit

Permalink
Merge development into marketplace (#2529)
Browse files Browse the repository at this point in the history
* Allow customer to move past validation after one pass

* Silencing needless warning

* Add missing imports

* When we get a "GetTax" error, revert to addressbook

* Capture and parse errors

* Creating a "review and fix" address review screen

* Show highlited diff. Copy over values on click.

* Removing "debug" HTML

* Add "review address" translation

* Basic "review address" flow working

* Remove console.log

* Fix missing import

* Fix import error

* Return to edit and refresh address when you cancel out of review

* Make edit behave the same as add

* Tweak styling

* More and more style changes

* Use proper color variables

* Create proper behaviors

* Fix bad evaluation

* Fix import order

* Add i18n

* Don't throwback a step if tax fails

* Make this more of an "exception" flag

* Adding the license description with link on README (#2365)

* added Nigerian Naira to currency list in (#2366)

private/data/Shops.json

* CollectionFS  cfs:tempstore and cfs:worker to fix concurrency issues with GridFS uploads (#2096)

* added cfs tempstore and worker to fix concurrency issues

* linting

* Correct the way we record tax overrides

* [WIP] Meteor 1.5 (#2371)

* Meteor 1.5

- include Buffer polyfill
- replaces abernix:standard-minifier-js with standard-minifier-js
- properly pins job-collections to 1.4.0

* Updated to 1.5.0 base image

* Pin react-meteor-data to 0.2.9

* Remove unused vars

Cherry pick
b36709c19
e47b25049f90643739df4bcf5210d64

* update to reactioncommerce/base:v2.0.0

* transliteration 1.6.2 (#2389)

- Related to #2090 and #2091
- Reduces minified footprint by315k
- updates client import

* Meteor1.5 and docker updates (#2390)

* fix error handling in CI deploy script

* fix CI build script

* add docker-compose.yml for CircleCI

* install Docker Compose in CI

* set docker/docker-compose versions in CI env

* fix missing curl issue in CI test

* Updated 1.5 packages

* Declare variable (#2401)

* Implement missing router functions (#2393)

* Implement missing router functions

- Implement `Router.setQueryParam()`
- Fix `Router.getRouteName()`

* Fix function name for `setQueryParams`

* Fixes and tests

- Added jest config to package.json
- Added some jest unit tests for Router
- Added mocks for some dependencies
- Fixed route matching in Router.isActiveClassName method

* fix package.json to run tests (#2396)

* Removed comment

* Remove duplicated setQueryParams function

Fixed variable

* 2332 Fix Improper Cart Merge (#2387)

* add test suite to replicate #2332

* fix improper cart merge when user cart has items in anonymous cart already

* update anonymous cart `variants._id` to equal user cart `variants_id`

* fix console error when merging into newly logged in user cart

* implement review

* Change line width to match GH PR review width (#2407)

* Orders updates (#2400)

* add expandable header to summary

* i18n - move keys into local package

* new npm package

* new Badge component

* i18n updates

* badge style updates

* add Badge and clicktocopy to components

* clickToCopy component

* badge component

* i18n updates

* badge and ClicktoCopy components

* add card to summary section of orders

* Merge branch 'ek-orders' into ek-orders-summaryPanel

# Conflicts:
#	package.json

* update orderSummary fields

* fix imports

* ordersList react-ivize

* fix prop validation

* validation fixes for Badge component

* remove no longer used files

* comment out old blaze templates

leaving them here for a bit just to make sure no errors occur

* remove blaze templates

* orders panel LESS

* update workflow loop to remove extra headers

* removed errant test text

* fix translations

* update shrinkwrap

* tests

* simpleschema

* comment killing

* New test for <ClickToCopy />

* lint fixes

* fix

* add more props to Badge test

* refund button coming in phase2

* fix import / console error

* Update random.js

* lint fixes

* use route permissions in register.js files (#2388)

* Milestone 54 / Convert Navbar to React (#2306)

* Navbar dropdowns conversion to React (#2230)

* Implement currencies using Dropdown Menu Component

* Add active prop on list item in Dropdown menu

* Resolve reactivity for currency drop down

* Add language dropdown implementation

* Add select on current selected language

* Remove extra code

* Have language icon div be larger

* Fix pop over arrangement

* Fix spacing, add caret on language dropdown

* Deal with display when switches are pff

* Fix overflow issues on dropdown-menu

* Fix linting

* Close dropdown on menu item click

* Add import for Match

* Convert login views to React (#2250)

* Initial component/container setup for sign in page

* Replicate look of sign in form

* Replicate look of sign up form

* Use composeWithTracker in signInContainer

* Replicate look of forgot password form

* Create parent login container to hold general login for views

* Add switching between views logic

* Set up sign in form submission

* Set up sign up form submission

* Set up forgot password form submission

* Handle sign in action and error message display

* Remove template methods

* Remove template methods and alert message template

* Rewrite renderPasswordErrors method

* Render social buttons on login

* Add social login functionality

* Remove unnecessary blaze templates

* Move functions to React

* Implement sign up functionality

* Merge signin and signup containers

* Put back helper methods needed by other templates

* Abstract loginFormMessaged into react container

* Add forgot password functionality (part1)

* Remove unnecessary component in helper

* Remove forgot password template

* Clean up folder structure

* Solve invariant violation browser error

* updatepasswordOverlay react component/container

* completed updayePasswordOverlay functionality

* Remove stopPropagation function

* Capitalize social login name

* Show loading spinner while processing button clicks

* Solve onClick not working by removing 'event.stopPropagation()' on parent template

* Remove JQuery and use lodash

* Using 'event' instead of 'e' to reference event handlers

* Add validation for no email input on forgot password

* Add error message on social login

* Move capitalize function to helper file

* Move capitalize function to helper file

* [WIP]Main navbar container conversion to React (#2277)

Main navbar container conversion to React

* Convert to react: Tag navigation (#2251)

* Test tagnav component

* Use existing tag component

* Update component setup

* Use existing tagsList container

* Remove debugging

* Edit button

* Use tagItem loop to match styles instead of existing

* Base tagTree init

* Fix structure

* Fix dropdown mouseover event

* Edit conditional

* Base tag editatble

* Button switch fix

* On edit fix

* Selectable button icon

* Enable drop of tagtree by icon

* Init edit mode for tagTree

* Tagtree second level new tag

* Typo fix

* Fix top level width and classes

* Show Base tagList

* Lint clean up

* Remove commented code

* Style fix and show new tag on edit

* i18n

* Init saving top level tags

* Saving tags - cont

* New tag save fix

* Switching to Taglist custom

* Saving top level

* Enable new tag option

* Move class names to base comp

* Style on create new tag item

* Fix Hover back

* Move file

* Tag select prop

* Rename files

* Fix save and delete

* Reorder element wrapper

* Init passing the functions down

* Init editing new tag item on tree

* Separate the two new tagItems

* Adding new tags on tree + refactor 🎉

* Fix delete on subtags

* Reset form after save and prevent saving empty tags

* Prevent close of tree after save

* Restructure tree state to fix input

* Init refactor on tagTree

* Props setup after refactor

* Reposition button

* Autocompletion fixing

* Add componentWillReceiveProps to fix re-render and reset

* Refactor into container comp

* Remove debugs

* Use composewithTracker

* Remove props with spread

* Update props list

* Fix logic breaking new tag style

* Tag sort order after drag

* Clean un-used vars

* Add react tagNav to main navbar container

* Fix lint issue

* Init toggle visibility

* Close tags with overlay

* Remove JQuery references(part 1)

* Add router.go for tag click

* Mobile fixes and remove blaze files

* Fix click on mobile

* Remove jquery

* Remove jquery .closest

* UI tagnav classes update

* Fixes

* Fix undefined refs after merge with development

* Remove unused vars

* Editing should turn off on toggle

* Use Translation component over data-i18n

* Fix Brand name glitch

* Prefer standalone PropTypes import over React.PropTypes

* Inport i18next and Reaction in same line

* Space at end of self-closing tag

* One-lining imports

* Place '&nbsp' inside span for less random-looking code

* Add comment about style

* Use Divider component as separator

* import order

* remove duplicate babel preset packages

* Updated yarn.lock and removed npm-shrinkwrap.json

I’ll try to add back in the release branch, but something funky is
going on with shrink-wrap

* Admin should be able to invite a user with the same name (#2386)

* turn the user name to lowercase

* turn the user name to a lowercase string with a random number e.g michael-alade49

* add custom name field to users and accounts schema

* create new env var for setting default admin’s name

* publish new name field for users

* remove unnecessary typeof check for Reaction var

* switch priority for user’s displayName source

* remove redundant email update and only add user’s name if exists

* Update version

* switch to Reaction’s new fork of Nodemailer (#2427)

* Added module aliases (#2436)

* Added module aliases

- Added module alias for `core/ui`
- Added module alias for `core/router`

* Revert jest module name mapper

* fix tests

- Fixed duplicated mocks warning
- added some new mocks
- fix translaton component test

* LingoHub Update 🚀 (#2420)

Manual push by LingoHub User: Aaron Judd.
Project: reaction

Made with ❤️ by https://lingohub.com

* Add css style to differentiate read from unread notifications (#2442)

* Remove acceptance tests (#2430)

* Remove non-working tests

* Remove unneeded dependencies

* Fixed console error when dragging product images (#2443)

* Add closeOnClick option to DropDownMenu component (#2418)

* Add closeOnClick option to DropDownMenu component

* Fix lint issue - move handleDropdownToggle after componentWillReceiveProps

* add missing "orders not found" text (#2424)

* Updated chai package

- tested with reaction test, tests seemed to work normal

* Bunyan and Loggly updates (#2425)

* switch to official Loggly lib for Node and write new Bunyan connector for it

* update bunyan to 2.0.0

* add REACTION_LOG_FORMAT config option

* add extra comments about log formatting options

* refactor default admin user creation (#2453)

* update memory usage in CircleCI build (#2462)

* Navbar hover issue (#2451)

* added default hover style for languages and currencies class #2444

* added accounts css class to div in mainDropdownContainer #2444

* added hover styles for account class #2444

* added hover style for notification class #2444

* set css property overflow on horizontal to hidden (#2458)

* [WIP] 2452 fix on UI icon toolbar (#2460)

2452 fix on UI icon toolbar

* [WIP] 2356 fix on tag menu-sidebar glitch (#2472)

Fix on tag menu-sidebar glitch

* update media gallery new / deleted image indicators (#2469)

* add new status for mediaGalleryIndicator

* i18n translations for tooltips

* status-badge styles for media gallery

* update media gallery image new / deleted indicator

* style updates

* lint fix

* Remove random regex checks on names. Fixes #2461 (#2471)

* remove older Blaze based launchdock plugin (#2467)

* 2459 router range error fix (#2476)

* simple fix

* fix typo & linting

* fix linting issues

* 2422 Fix on email invite link leading to blank screen (#2437)

* imported LoginFormValidation to forgotContainer

* imported LoginFormValidation to passwordOverlayContainer

* added setTimeout function to delay rendering

* wrap component in translations (#2434)

* removed setTimeouts from updatePassword.js

* added spinner before mounting the component

* replaced setTimeout with life-cycle hook(componentWillRecieveProps) #2422

* imported LoginFormValidation to prevent console error

* Update current user's name on Navbar and profile page when address is added. (#2455)

* Update current user's name and profile when address is added

* Update user's name when address is updated

* Get correct admin user's name from env variables

* Updated dependencies (#2463)

* Move babelrc into package.json

* Updated dependencies

* Define missing options variable

* Revert minifier to abernix fork (#2486)

* Use abernix:standard-minifier-js

Replace standard-minifier-js with
abernix:[email protected]

This should be compatible with current 1.5 tools, and is what we were
using before 1.5, because of the faster compilation and reduced memory
footprint.  Restoring in an attempt to diagnose build issues related to
memory.

* updated meteor package versions

* Release 1.3.0 (#2417)

## Features

-   **Meteor 1.5 (#2371)**
-   **Order fulfillment UI updates (#2400)**
-   **React Router updated (#2123)**
-   **React Navbar (and deprecated Blaze navbar) (#2306)**
-   **Re-introduce icon toolbar as shortcutBar (#2261)**
-   **React unit testing example (#2170)**
-   **[WIP] [Style guide](https://styleguide.reactioncommerce.com)**

## Changes / Fixes
- __Update current user&#39;s name on Navbar and profile page when address is added. (#2455)__
- __Fix #2422 on email invite link leading to blank screen (#2437)__
- __Fix #2459 router range error fix (#2476)__
- __Remove older Blaze based launchdock plugin (#2467)__
- __Remove random regex checks on names. Fixes #2461 (#2471)__
- __Update media gallery new / deleted image indicators (#2469)__
- __Fix #2356 on tag menu-sidebar glitch (#2472)__
- __Fix #2452 on UI icon toolbar (#2460)__
- __set css property overflow on horizontal to hidden (#2458)__
- __Navbar hover issue (#2451)__
- __update memory usage in CircleCI build (#2462)__
- __refactor default admin user creation (#2453)__
- __Bunyan and Loggly updates (#2425)__
- __Updated chai package__
- __add missing &#34;orders not found&#34; text (#2424)__
- __Add closeOnClick option to DropDownMenu component (#2418)__
-   **Fixed console error when dragging product images (#2443)**
-   **Remove unmaintained Browserstack acceptance tests (#2430)**
-   **Add css style to differentiate read from unread notifications (#2442)**
-   **Added module aliases @reactioncommerce/reaction-ui (#2436)**
-   **Switch to Reaction’s new fork of Nodemailer (#2427)**
-   **Admin should be able to invite a user with the same name (#2386)**
-   **Updated yarn.lock and removed npm-shrinkwrap.json**
-   **use route permissions in register.js files (#2388)**
-   **Updated, refreshed order/fulfillment UI (#2400)**
-   **Change line width to match GH PR review width (#2407)**
-   **Fix Improper Cart Merge (#2387)**
-   **Implement missing router functions (#2393)**
-   **Correct the way we record tax overrides**
-   **CollectionFS  cfs:tempstore and cfs:worker to Fix concurrency issues with GridFS uploads (#2096)**
-   **Fix typo in inventory test description (#2364)**
-   **Added Nigerian Naira to currency list in (#2366)**
-   **Fix git tagging on CircleCI 2.0 (#2362)**
-   **Adding the license description with link on README (#2365)**
-   **Better handling for unique routes for React Router (#2327)**
-   **Don't throwback a step if tax fails**
-   **Updated UI colors for styleguide (#2339)**
-   **Add loading component to Fix error (#2340)**
-   **Allow a MAIL_URL string without auth (#2330)**
-   **Defer Fixture load until the default shop is loaded (#2329)**
-   **Fix conditional in Circle deploy script (#2338)**
-   **Fix refunds not showing (#2317)**
-   **Add Verification Url to Welcome Email (#2216)**
-   **CircleCI 2.0 and docker base update (#2334)**
-   **i18n translation updates (#2302 #2420)**
-   **Change customer notification message when order is processed. (#2290)**
-   **Allow loader to show when one is passed in and defined BUGFIX (#2303)**
-   **Add the Vietnamese Dong as a supported currency (#2248)**
-   **Updated shipping / payment error messages in checkout (#2271)**
-   **Fix #2203 Long Strings Handling in Product Option Title (#2266)**
-   **Simplify core layout component (#2257)**
-   **Fix multiple refunds for stripe (#2260)**

* Fix error when inviting already invited user (#2433)

* Refactor invite function to send invites only to non invited members

* Refactor error message to show status code

* Change the error message to use inline Alert

* Clear input fields when there is error

* Use Reaction's blaze inlineAlerts for error message

* Eliminate console error on inviteShopMember call

* Updated timeout time. (#2492)

* Updated timeout time.

* don't autohide

This should not autohide, the error should display until a user resubmits with a new email address. If the error is hidden, they might not see it right away and miss it. This is a blocking error for this field so it should stay until resolved.

* Fixed product images not displaying on order completed page (#2490)

* Fix hard refresh on clicking tag link on product detail page (#2489)

* Provide tag component with missing click function

* Remove hard refresh on PDP link in Grid settings

* Remove redundant risul:moment-timezone (#2491)

* Fix ESLint4 errors correct eslint config errors (#2450)

* Properly nest ecmafeatures

* Fix indentation errors

* Change Proptype

* Use react-create-class until Erik finishes upgrading Griddle

* Add back in missing PropType imports

* More missing PropType imports

* Replcae `reaction-create-class` with `create-react-class`

* Add rule for un-undef

* Add missing `PropTypes` imports that ESLint is finally finding

* Add missing imports

* Ignore missing imports for Mocha

* Add missing imports

* Add missing imports

* remove import

* add in missing imports

* add in missing imports

* enforce react/jsx-indent linting

* Adding missing imports

* Missing Gravatar imports

* Remove unused helper

* Add in mocks to fix React tests

* Missing import

* Fix missing domain variable

* Change comment to reflect new version

* Adding local versions of `loadMoreProducts`

* Replacing Meteor package with npm package

* Correct use of amplify-store

* Remove call to missing function setCurrentProduct

* Ignoring these last few globals

* Fix missing lodash import

* Remove duplicate import

* Remove jsx indent rule that's causing files to fail incorrectly

* New SortableTable component to replace MeteorGriddle (#2416)

* rename TacoTable to Legacy

* upgrade griddle NPM

* rename MeteorGriddle to SortableTable

* break up sortable table from sortabletablelegacy (TacoTable)

* merge

* change object key names to use with react-table instead of griddle

* kill griddle, add react-table

* remove useGriddleStyles prop

* remove testData

* sortableTable updates

* sortableTable Styles

* remove old ui-grid, move into components sortableTable

* update size of Templates dashboard for better usability

* ridding the wrapper of old Griddle info

* more props passed to wrapper

* fixes for email table

* update Email table to use ReactTable

* email table convert to ReactTable

* custom pagination component for React-Table

* update Avalara to use ReactTable

* add spacing below tables

* remove leftover console.logs

* lint fixes

* lint fix

* query prop validation

* pagination updates

* componetize pagination

* move emailconfig css to LESS file

* style updates for sortableTable

* update translations

* custom full-table filter for ReactTable

* custom full table filter

* new match-sorter package for custom filter

* add translations for default table text

* translations

* kill translations for the moment, something is acting up

* add catch for error when no data is available

* various fixes

* fix shippo status

* Shippo table update

* lint fixes

* lint fixes

* remove log

* lint fix

* Fix linting problems introduced in new SortableTable (#2505)

* Show proper error messages when Stripe payments fail (#2499)

* Don't display random error messages to client

* Debugging upstream message flow

* Normalize/sanitize error so you can just show the error from the server to the client

* Remove logger statement

* Handle Match failures

* removing extra logging

* Fix tests

* Fix missing reference (#2507)

* Default to using shop country code or GeoIP result for new addresses (#2515)

* For new address default to using shop’s country code if it exists.

* use GeoIP to determine user’s country and set it in address form

* Add Tunisian Dinar currency (#2517)

* Add Tunisian Dinar currency

* Add entry in second shop (TND)

* Fix issue dragging images in PDP when settings drawer is open (#2506)

* Fix condition that enables images to be displayed to product grid

* Fix main image upload handler to upload main product image

* Fix send sms method to read settings of shop and buyer userId (#2508)

* Fix Errors importing exported product data  (#2513)

* remove _id fields from documents to be imported

* Use _id to look up product before updating

* Refactor product import callback

* Refactor import method to avoid single-line if statement

* Convert product grid to React: Milestone 57 (#2402)

* Add search input field

* React component boilerplate

* Render products with pdpPath

* Add class names to li

* Render visible class name and overlay

* Render media

* React alerts/content component boilerplate

* Remove unnecesarry div wrapper in prodict grid component

* Grid content

* Grid notices

* Grid controls (part 1)

* Grid controls (part 2)

* Remove grid control templates

* Add in functionality for modal

* Init product grid

* Products sub setup

* Use product object as props from productGrid component

* Refactor grid layout

* handleSelectProductItem handler on grid container

* Remove item and content templates

* Include itemSelectHandler in grid controls

* Add some more functions

* Handle product double click

* Handle product click of non-admins

* Init drag drop

* Add index to drag; and udpate call

* Update state indexes after drag release

* make method call after drag state change

* Fix css issue

* Enable drag based on permission

* Handle product click of admins(part 1)

* Use standalone PropTypes import over React.PropTypes

* Add componentDidMount and componentWillUnmount conditions to item container

* Subscription working right

* Handle product click of admins(part 2)

* Save products in state

* Add product grid to search grid

* Fix product display/click in search modal

* Handle product click of admins(part 3)

* Add order and account tables onto search

* Fix broken product drag & drop

* Display accounts and order tables using React

* Remove tag results when order/account search

* Add onRowClick for orders and accounts

* Change folder structure and add unMount

* Remove logs

* Replace unmountComponentAtNode with prop change

* Close modal working well

* Add proptypes

* Display products

* Fix import order

* Handle load more products

* Add permissions to search tabs

* Fix setState error

* Fix hover-over-preview on search, add it to default product-grid

* render loadMoreProducts button

* Fix search result onClick close modal

* Add active classes on tags

* Remove unused code

* Remove import on index

* Move react components/containers out of client folder into lib folder

* Move react components/containers out of lib folder

* Remove jquery

* Remove product hover over in grid

* Product search click of non-admins

* Use Translation component over data-i18n

* Fix error o searchorders

* Fix broken loadMoreProducts button

* Remove product hover over in grid: less file

* Remove infinite scroll on product grid

* Tweek orders search

* Remove logs

* Fix Bithound issues

* update state with new data when available

* update table to use SortableTableLegacy

* Fix switch of accounts on search

* Remove bnd

* Add on rowclick function to sortTableLegacy

* Fix bitHound failing file issue

* Add esc functionality on search

* Persist searchQuery on search re-open

* Set initialLoad state to false to avoid reload of all the product grid data on loadMoreProducts click (yet to fix setState error)

* Set initialLoad state to false on loadMoreProducts button click; fixes setState error on console

* Fix scroll in Search Modal when products go longer than the page

* Remove unnecessary function usage

* Fix import order

* Use Array.isArray over lodash

* Import $ from meteor/jquery

* Remove unnecessary variables

* Refactor repeated code into common function

* Correct error throwing

* update import alias

* use import alias

* use import alias

* use import alias

* use import alias

* update import order

* update import order

* import order

* Fix for no scrollbar in Dashboard (#2511)

* Add ability to scroll on dashbord

* Add scrolling to vertical toolbar only

* Hide horizontal scrollbar

* Remove duplicate declaration

* Eslint autofix indentation

* Fix missing imports

* Remove errant `only`

* Restore marketplace core methods

* This test sometimes returns an empty array and sometimes returns undefined. Either way it’s not returning products

* Restore missing marketplace helpers in profile.js

* Fix for issue #1993 (#2518)

* Fix for #1993

* Fix linter errors.

* Cleanup.

* Fix unable to open fulfill order action view (#2530)

* Fix hard refresh when clicking View All notifications

* Fix click action for rendering orders on dashboard

* Add click handler to render action panel

* Fix sneaky bug - someone changed `name` to `packageName` - caused shops not to create

* Fix Exception in delivering result of invoking 'email/verifySettings' (#2512)

* Only verify email settings when saving settings

* Move server method call to container component

* Fix import order

* Fix permissions issue blocking shop owners from updating their shop.

I _swear_ this worked before, but I’m not sure what got changed and when I go back to older commits, the same issue is present.
The apparent problem is that the Security.permit / Security.deny collection permission security methods are running before a users Id has been loaded.

The fix here is to create a new security method `ifHasRoleForActiveShop` that moves checking `Reaction.getShopId()` to the security method instead of on the `permit` or `deny` method.

* Remove leftover console.log

* update Docker base to v2.0.2 (#2537)

* Fix order action button reverting status to processing (#2541)

* correct order action workflow change

* always update selected order

* Update eslint to v4 (#2542)

* Update Eslint

* Auto-fix eslint errors

* Fix publish-counts module name map for jest

* Fixes typo

* Fix more typos
  • Loading branch information
spencern authored Jul 11, 2017
1 parent 5ba6833 commit 1d35b29
Show file tree
Hide file tree
Showing 474 changed files with 4,723 additions and 3,678 deletions.
54 changes: 33 additions & 21 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,44 @@
"env": {
"browser": true,
"node": true,
"es6": true
"es6": true,
"mocha": true
},
"globals": {
"browser": true,
"Assets": true, // Meteor global
"Package": true, // Meteor global
"FS": true, // gridFS,
"Alerts": true, // this needs to get cleaned up, but ignoring for now
"jest": true,
"expect": true,
"test": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
"allowImportExportEverywhere": true
},
"plugins": ["react"],
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
},
// NOTE: We're now using eslint-3
// NOTE: We're now using eslint-4
"rules": {
/**
* Strict mode
Expand Down Expand Up @@ -160,7 +171,8 @@
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
"no-with": 2, // http://eslint.org/docs/rules/no-with
"no-with": 2, // http://eslint.org/docs/rules/no-with,
"no-undef": 2,
"radix": 2, // http://eslint.org/docs/rules/radix
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
Expand Down
1 change: 0 additions & 1 deletion .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ [email protected]
[email protected]
[email protected]
[email protected]
amplify
mdg:validated-method
[email protected]
dynamic-import
Expand Down
1 change: 0 additions & 1 deletion .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ aldeed:[email protected]
aldeed:[email protected]
aldeed:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM reactioncommerce/base:v2.0.0
FROM reactioncommerce/base:v2.0.2

# Default environment variables
ENV ROOT_URL "http://localhost"
Expand Down
1 change: 1 addition & 0 deletions client/config/defaults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Session } from "meteor/session";
import { AutoForm } from "meteor/aldeed:autoform";

/**
* Misc. App. Configuration
Expand Down
2 changes: 1 addition & 1 deletion client/modules/accounts/components/auth/loginButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LoginButtons extends Component {
&nbsp;
<Translation defaultValue={this.props.capitalizeName(service.name)} i18nKey={`social.${service.name}`} />
</span>
</Button>
</Button>
))
}
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/modules/accounts/components/auth/signIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class SignIn extends Component {
value={this.state.email}
onChange={this.handleFieldChange}
/>
{this.renderEmailErrors()}
{this.renderEmailErrors()}
</div>

<div className={passwordClasses}>
Expand All @@ -149,7 +149,7 @@ class SignIn extends Component {
value={this.state.password}
onChange={this.handleFieldChange}
/>
{this.renderPasswordErrors()}
{this.renderPasswordErrors()}
</div>

<div className="form-group">
Expand Down
14 changes: 7 additions & 7 deletions client/modules/accounts/components/auth/signUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class SignUp extends Component {
value={this.state.password}
onChange={this.handleFieldChange}
/>
{this.renderPasswordErrors()}
{this.renderPasswordErrors()}
</div>

<div className="form-group">
Expand Down Expand Up @@ -170,14 +170,14 @@ class SignUp extends Component {
return (
<div>
<div className="loginForm-title">
<h2>
<Translation defaultValue="Create an Account" i18nKey="accountsUI.createAccount" />
</h2>
</div>
<h2>
<Translation defaultValue="Create an Account" i18nKey="accountsUI.createAccount" />
</h2>
</div>

{this.renderForm(emailClasses, passwordClasses)}
{this.renderForm(emailClasses, passwordClasses)}

</div>
</div>
);
}
}
Expand Down
16 changes: 8 additions & 8 deletions client/modules/accounts/components/dropdown/mainDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ class MainDropdown extends Component {
<div>
{this.props.currentUser ?
<div style={{ paddingRight: 5 }}>
<DropDownMenu
buttonElement={this.buttonElement()}
attachment="bottom right"
targetAttachment="top right"
menuStyle={menuStyle}
className="accounts-li-tag"
onChange={this.props.handleChange}
>
<DropDownMenu
buttonElement={this.buttonElement()}
attachment="bottom right"
targetAttachment="top right"
menuStyle={menuStyle}
className="accounts-li-tag"
onChange={this.props.handleChange}
>

{this.renderUserIcons()}
{this.renderAdminIcons()}
Expand Down
2 changes: 1 addition & 1 deletion client/modules/accounts/components/passwordReset/forgot.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Forgot extends Component {
data-event-category="accounts"
onClick={this.props.onSignInClick}
>
<Translation defaultValue="Sign In" i18nKey="accountsUI.signIn" />
<Translation defaultValue="Sign In" i18nKey="accountsUI.signIn" />
</a>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ class UpdatePasswordOverlay extends Component {
return (
<span className="help-block">
{this.props.onError(this.props.messages.errors && this.props.messages.errors.password) &&
this.props.messages.errors.password.map((error, i) => (
<Translation
key={i}
defaultValue={error.reason}
i18nKey={error.i18nKeyReason}
/>
))
this.props.messages.errors.password.map((error, i) => (
<Translation
key={i}
defaultValue={error.reason}
i18nKey={error.i18nKeyReason}
/>
))
}
</span>
);
Expand All @@ -80,7 +80,7 @@ class UpdatePasswordOverlay extends Component {
if (this.props.isDisabled === true) {
return (
<div className="col-sm-6" style={{ textAlign: "center" }}>
<i className="fa fa-spinner fa-spin" />
<i className="fa fa-spinner fa-spin"/>
</div>
);
}
Expand All @@ -100,9 +100,9 @@ class UpdatePasswordOverlay extends Component {

renderSpinnerOnLoad() {
return (
<div className="spinner-container">
<div className="spinner" />
</div>
<div className="spinner-container">
<div className="spinner"/>
</div>
);
}

Expand All @@ -114,17 +114,17 @@ class UpdatePasswordOverlay extends Component {
const { showSpinner } = this.state;

return (
<div>
<div>
{this.props.isOpen === true &&
<div>
<div className="modal-backdrop fade in" id={`modal-backdrop-${this.props.uniqueId}`} />
<div className="modal fade in" id={`modal-${this.props.uniqueId}`} style={{ display: "block" }}>
<div className="modal-dialog">
{showSpinner ? this.renderSpinnerOnLoad() :
<div>
<div className="modal-backdrop fade in" id={`modal-backdrop-${this.props.uniqueId}`}/>
<div className="modal fade in" id={`modal-${this.props.uniqueId}`} style={{ display: "block" }}>
<div className="modal-dialog">
{showSpinner ? this.renderSpinnerOnLoad() :
<form className="modal-content" onSubmit={this.handleSubmit}>
<div className="modal-header">
<h4 className="modal-title">
<Translation defaultValue="Update Your Password" i18nKey="accountsUI.updateYourPassword" />
<Translation defaultValue="Update Your Password" i18nKey="accountsUI.updateYourPassword"/>
</h4>
</div>

Expand All @@ -134,15 +134,15 @@ class UpdatePasswordOverlay extends Component {
{this.renderFormMessages()}

<div className={passwordClasses}>
<TextField
i18nKeyLabel="accountsUI.password"
label="Password"
name="password"
type="password"
id={`password-${this.props.uniqueId}`}
value={this.state.password}
onChange={this.handleFieldChange}
/>
<TextField
i18nKeyLabel="accountsUI.password"
label="Password"
name="password"
type="password"
id={`password-${this.props.uniqueId}`}
value={this.state.password}
onChange={this.handleFieldChange}
/>
{this.renderPasswordErrors()}
</div>

Expand All @@ -167,10 +167,10 @@ class UpdatePasswordOverlay extends Component {
</div>

</form>
}
</div>
}
</div>
</div>}
</div>
</div>}
</div>
);
}
Expand Down
3 changes: 2 additions & 1 deletion client/modules/accounts/containers/auth/authContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import _ from "lodash";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Meteor } from "meteor/meteor";
import { Accounts } from "meteor/accounts-base";
import { Router } from "/client/api";
import { composeWithTracker } from "/lib/api/compose";
import { SignIn, SignUp, LoginButtons } from "../../components";
Expand Down Expand Up @@ -202,7 +203,7 @@ class AuthContainer extends Component {
onSocialClick={this.handleSocialLogin}
capitalizeName={this.capitalizeName}
/>
{this.renderAuthView()}
{this.renderAuthView()}
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion client/modules/accounts/containers/auth/loginContainer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Random } from "meteor/random";
import { composeWithTracker } from "/lib/api/compose";
import AuthContainer from "./authContainer";
import { ForgotContainer } from "../passwordReset";
Expand Down Expand Up @@ -70,7 +71,6 @@ class LoginContainer extends Component {
);
}
}

}

function composer(props, onData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import React, { Component } from "react";
import { Meteor } from "meteor/meteor";
import { Accounts } from "meteor/accounts-base";
import { Roles } from "meteor/alanning:roles";
import { Reaction } from "/client/api";
import { Session } from "meteor/session";
import { Gravatar } from "meteor/jparker:gravatar";
import { Reaction, Logger } from "/client/api";
import { i18nextDep, i18next } from "/client/api";
import { composeWithTracker } from "/lib/api/compose";
import * as Collections from "/lib/collections";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import _ from "lodash";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { Accounts } from "meteor/accounts-base";
import { Random } from "meteor/random";
import { composeWithTracker } from "/lib/api/compose";
import { UpdatePasswordOverlay } from "/client/modules/accounts/components";
import { MessagesContainer } from "/client/modules/accounts/containers/helpers";
Expand Down
7 changes: 5 additions & 2 deletions client/modules/accounts/helpers/templates.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Reaction, i18next, i18nextDep } from "/client/api";
import * as Collections from "/lib/collections";
import { Meteor } from "meteor/meteor";
import { Template } from "meteor/templating";
import { Accounts } from "meteor/accounts-base";
import { Roles } from "meteor/alanning:roles";
import { Gravatar } from "meteor/jparker:gravatar";
import { Reaction, i18next, i18nextDep } from "/client/api";
import * as Collections from "/lib/collections";

Template.registerHelper("getGravatar", function (currentUser, size) {
const options = {
Expand Down
3 changes: 2 additions & 1 deletion client/modules/accounts/helpers/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import _ from "lodash";
import { Accounts } from "meteor/accounts-base";
import { ServiceConfiguration } from "meteor/service-configuration";

function capitalize(str) {
const finalString = str === null ? "" : String(str);
Expand Down Expand Up @@ -33,7 +35,6 @@ providers.Twitter.fields = function () {
};

export class ServiceConfigHelper {

availableServices() {
const services = Package["accounts-oauth"] ? Accounts.oauth.serviceNames() : [];
services.sort();
Expand Down
Loading

0 comments on commit 1d35b29

Please sign in to comment.