-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend paths are no longer defined within the Spree::Core routes and are now coming directly from the main app. Removed `Spree::` namespaces where they're no longer needed. Adjusted selectors for the updated HTML. Some specs have been changed to reduce the usage of `let` and appease rubocop. Use vanilla JS instead of relying on `window.Spree` and jQuery, which are no longer available in SSF.
- Loading branch information
Showing
9 changed files
with
249 additions
and
171 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...stall/templates/app/assets/javascripts/spree/frontend/solidus_paypal_commerce_platform.js
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
//= require spree/frontend/solidus_paypal_commerce_platform/namespace | ||
//= require spree/frontend/solidus_paypal_commerce_platform/button_actions | ||
//= require spree/frontend/solidus_paypal_commerce_platform/buttons | ||
//= require_self | ||
|
||
Object.assign(SolidusPaypalCommercePlatform, { | ||
current_order_id: null, | ||
current_order_token: null, | ||
api_key: null, | ||
}) |
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
Oops, something went wrong.