forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ecommerce Basket Page -> micro-frontend
- Loading branch information
Showing
22 changed files
with
19 additions
and
1,666 deletions.
There are no files selected for viewing
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
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
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,27 +1,7 @@ | ||
|
||
|
||
from django.conf.urls import url | ||
from django.contrib.auth.decorators import login_required | ||
from oscar.apps.basket import apps | ||
from oscar.core.loading import get_class | ||
|
||
|
||
class BasketConfig(apps.BasketConfig): | ||
name = 'ecommerce.extensions.basket' | ||
|
||
# pylint: disable=attribute-defined-outside-init | ||
def ready(self): | ||
super().ready() | ||
self.basket_add_items_view = get_class('basket.views', 'BasketAddItemsView') | ||
self.summary_view = get_class('basket.views', 'BasketSummaryView') | ||
|
||
def get_urls(self): | ||
urls = [ | ||
url(r'^$', login_required(self.summary_view.as_view()), name='summary'), | ||
url(r'^add/(?P<pk>\d+)/$', self.add_view.as_view(), name='add'), | ||
url(r'^vouchers/add/$', self.add_voucher_view.as_view(), name='vouchers-add'), | ||
url(r'^vouchers/(?P<pk>\d+)/remove/$', self.remove_voucher_view.as_view(), name='vouchers-remove'), | ||
url(r'^saved/$', login_required(self.saved_view.as_view()), name='saved'), | ||
url(r'^add/$', self.basket_add_items_view.as_view(), name='basket-add'), | ||
] | ||
return self.post_process_urls(urls) |
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.