discourse-subscriptions/assets/javascripts/discourse/routes
Justin DiRose 3a5078ded6
REFACTOR: Simplify controller setup (#24)
The code in the plugin needed a dramatic cleanup. This refactor collapses the Plan/Product/Subscription controllers on the backend into one new controller: `SubscribeController`.

This reduces N+1 calls to the back end during the subscription process and simplifies use of the code. 

I've also removed a bunch of dead code and refactored some logic into methods for easier readability. No feature/functionality changes in this commit; only refactoring. However, refactoring will allow for implementation of better anonymous user handling, so this is largely a foundation to enable making that change.
2020-10-21 13:36:31 -05:00
..
admin-plugins-discourse-subscriptions-plans-index.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
admin-plugins-discourse-subscriptions-plans.js.es6 remove subscribe index 2019-12-13 11:54:32 +11:00
admin-plugins-discourse-subscriptions-products-index.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
admin-plugins-discourse-subscriptions-products-show-plans-show.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
admin-plugins-discourse-subscriptions-products-show.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
admin-plugins-discourse-subscriptions-products.js.es6 remove subscribe index 2019-12-13 11:54:32 +11:00
admin-plugins-discourse-subscriptions-subscriptions.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
admin-plugins-discourse-subscriptions.js.es6 remove subscribe index 2019-12-13 11:54:32 +11:00
s-index.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
s-show.js.es6 REFACTOR: Simplify controller setup (#24) 2020-10-21 13:36:31 -05:00
s.js.es6 remove subscribe index 2019-12-13 11:54:32 +11:00
user-billing-index.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
user-billing-payments.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
user-billing-subscriptions.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00
user-billing.js.es6 DEV: Update to new prettier standards 2020-09-16 09:53:50 -05:00