Filipe
62f0de75ee
Merge pull request #8679 from Matt-Yorkley/drop-jquery-ujs
...
Drop jquery_ujs
2022-01-17 16:30:25 +00:00
Jean-Baptiste Bellet
2568d775ae
Create the guest view and its associated css
2022-01-10 09:39:46 +01:00
Matt-Yorkley
99b75c9a6a
Adjust usage of remote-method links on credit card deletion
2022-01-08 16:54:23 +00:00
Matt-Yorkley
9956d627fa
Use fixed theme
2022-01-04 19:41:42 +00:00
Matt-Yorkley
d00992c26c
Import additional jquery-ui files
2022-01-04 19:41:42 +00:00
Matt-Yorkley
312cc3fc25
Update import of changed stylesheet filename
2022-01-04 12:47:17 +00:00
Matt-Yorkley
39f0f56af7
Rename admin css pack
...
It looks like Webpacker can get confused sometimes when packs with different formats have the same name (eg: admin.js and admin.scss)...
2022-01-04 10:27:10 +00:00
Matt-Yorkley
f4262421a8
Fix capture styles
2022-01-03 14:07:33 +00:00
Matt-Yorkley
01f25cbd13
Move more assets after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2586ddc5ac
Fix a CSS compiling issue after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
eb224ec033
Move new CSS file after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
afd381cbad
Require fonts explicitly
2021-12-27 17:45:06 +00:00
Matt-Yorkley
469c4e69e0
Update broken variable reference
...
The previous font variable is only present in admin css
2021-12-27 17:45:06 +00:00
Matt-Yorkley
959c89a3ec
Move new image
2021-12-27 17:45:06 +00:00
Matt-Yorkley
8a34e8e762
Move new scss files
2021-12-27 17:45:06 +00:00
Matt-Yorkley
19fc4993d5
Delete unused Spree logo
2021-12-27 17:45:06 +00:00
Matt-Yorkley
12f51febd3
Enable Webpack compiling for all images
2021-12-27 17:45:06 +00:00
Matt-Yorkley
90956c9d10
Switch mail CSS to Webpacker
2021-12-27 17:45:06 +00:00
Matt-Yorkley
250f0c0a65
Bring in missing select2 image
...
This missing image was previously ignored, but now causes a compile error when not found.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
0e4d77a1bc
Move current select2-rails gem stylesheet to /vendor
...
This version isn't available via npm and we can't load it from the gem any more as we move to Webpack assets.
As a side note: I think we'll need to replace Select2 soon anyway, so we can delete this once we've done that.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
80be57a777
Install select2 via yarn and import CSS from node_modules
2021-12-27 17:45:06 +00:00
Matt-Yorkley
74bed15f7f
Fix crazy issue with @extend on icons
...
This one line of code was crashing asset compilation... :/
2021-12-27 17:45:06 +00:00
Matt-Yorkley
a38d495bef
Update admin css image paths
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2ac3cda2f4
Deal with deprecated @extend syntax
...
Errors:
```
SassError: SassError: compound selectors may no longer be extended.
Consider `@extend a, :hover` instead.
See http://bit.ly/ExtendCompound for details.
```
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2992439706
Include shared variables
2021-12-27 17:45:06 +00:00
Matt-Yorkley
df9f9c1c3b
Replace glob imports
...
Apparently glob imports aren't a thing in modern sass... *shrugs*
2021-12-27 17:45:06 +00:00
Matt-Yorkley
5bc02d1e74
Fix admin font paths and loading
2021-12-27 17:45:06 +00:00
Matt-Yorkley
6ee6fc733d
Remove duplicated imports
2021-12-27 17:45:06 +00:00
Matt-Yorkley
28f9f4245d
Fix deprecated syntax using @extend with :before
...
This is no longer valid scss
2021-12-27 17:45:06 +00:00
Matt-Yorkley
6f06205eed
Switch admin CSS to webpack
2021-12-27 17:45:06 +00:00
Matt-Yorkley
ba583dcf39
Install jquery-ui via yarn
...
We can delete the gem once the Javascript part has been handled
2021-12-27 17:45:06 +00:00
Matt-Yorkley
9d18f318ac
Remove Sprockets includes in admin scss
2021-12-27 17:45:06 +00:00
Matt-Yorkley
b33ac49442
Update vendor import paths
2021-12-27 17:45:06 +00:00
Matt-Yorkley
0057dbcb89
Remove Sprockets require statements
2021-12-27 17:45:06 +00:00
Matt-Yorkley
ec2213d2f0
Reduce duplicate import statements
...
It looks ike these CSS rules are actually being re-imported multiple times, which is bloating the output.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
825aeeae04
Migrate images and update assets
2021-12-27 17:45:06 +00:00
Matt-Yorkley
cb27081425
Install Foundation 5.5.2 via yarn
2021-12-27 17:45:05 +00:00
Matt-Yorkley
8dfc30438b
Move CSS to Webpacker
2021-12-27 17:45:05 +00:00
Matt-Yorkley
dd23e3d38a
Simplify payment method controller
2021-12-20 18:47:22 +00:00
Matt-Yorkley
b4dab46cf8
Remove unused code for changing required attributes
2021-12-20 18:36:28 +00:00
Matt-Yorkley
723d6489cd
Extract initSelectedCard()
2021-12-20 18:36:26 +00:00
Matt-Yorkley
9525e353a3
Don't try to select a card if there is no select element
...
This error was being thrown when the user had no cards saved:
```
TypeError: stripeCardsController is null
```
2021-12-20 18:36:09 +00:00
Matt-Yorkley
a64f654697
Don't try to select a card if there is no selectTarget
...
This error was being thrown when the user had no cards saved:
```
Error: Missing target element "stripe-cards.select"
```
2021-12-20 15:41:22 +00:00
Matt-Yorkley
f18fc3c2f3
Implement disconnect() to tidy up (remove) event listeners from the DOM when finished
2021-12-20 15:29:52 +00:00
Matt-Yorkley
d58f5aa25d
Move initialization to initialize()
2021-12-20 15:29:52 +00:00
Matt-Yorkley
33c156bb55
Extract (arrow) functions for callbacks used by event listeners and reduce variable assignments
2021-12-20 15:29:52 +00:00
Matt-Yorkley
24c051bad3
Simplify stripe selected check
2021-12-20 15:21:13 +00:00
Jean-Baptiste Bellet
2c5667ef56
Initialize stripe-cards controller when selecting a payment method
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
d4ec075dfc
Disabled stripe-cards input if a already registred card is select
...
And then re-enabled it, if use decide to register a new card
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
7b6aa99de2
Handle when input is already checked
...
ie. user hasn't click on anything
2021-12-20 15:34:58 +01:00