Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: main/package.json
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- main/package.json (revision 59844a8bd21fdf853fea7b21c693297b18e28411)
- +++ main/package.json (date 1528970936000)
- @@ -30,7 +30,7 @@
- "yargs": "^3.30.0"
- },
- "dependencies": {
- - "angular": "^1.4.1",
- + "angular": "^1.6.6",
- "angular-animate": "^1.5.0-beta.2",
- "angular-cookies": "^1.5.0-beta.2",
- "angular-css": "^1.0.7",
- @@ -42,6 +42,7 @@
- "angular-paging": "^2.2.2",
- "angular-resource": "^1.5.0-beta.2",
- "angular-route": "^1.5.0-beta.2",
- + "angular-sanitize": "^1.6.6",
- "angular-ui-bootstrap": "^0.14.3",
- "angular-ui-router": "^1.0.3",
- "angular-ui-slider": "^0.1.2",
- Index: main/app/config.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- main/app/config.js (revision 59844a8bd21fdf853fea7b21c693297b18e28411)
- +++ main/app/config.js (date 1528970064000)
- @@ -18,7 +18,7 @@
- routes.initRoutes($urlRouterProvider, $stateProvider, CHECKOUT_STATES, CUSTOM_STATES);
- $sceProvider.enabled(true);
- - localStorageServiceProvider.setStorageType('sessionStorage');
- + localStorageServiceProvider.setStorageType('localStorage');
- $translateProvider
- .useStaticFilesLoader({
- Index: core/services/Customer.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- core/services/Customer.js (revision 414587dcb03ec98627c8d6aa8d6c1d028f6310db)
- +++ core/services/Customer.js (date 1528973267000)
- @@ -6,8 +6,8 @@
- 'core/services/CheckoutService'
- ], function (module) {
- - return module.factory('Customer', ['$q', '$rootScope', 'Notification', 'ModelFactory', 'LocalStorageService', 'jwtHelper', 'ShoppingCartService', 'CheckoutService', '$cookieStore',
- - function ($q, $rootScope, Notification, ModelFactory, LocalStorageService, jwtHelper, ShoppingCartService, CheckoutService, $cookieStore) {
- + return module.factory('Customer', ['$q', '$rootScope', 'Notification', 'ModelFactory', 'LocalStorageService', 'jwtHelper', 'ShoppingCartService', 'CheckoutService', '$cookies',
- + function ($q, $rootScope, Notification, ModelFactory, LocalStorageService, jwtHelper, ShoppingCartService, CheckoutService, $cookies) {
- var _currentUser = LocalStorageService.read('_currentUser');
- if (!_currentUser) {
- @@ -282,10 +282,11 @@
- _currentUser = {};
- CheckoutService.setType('guest');
- LocalStorageService.remove("_token");
- - $cookieStore.remove('checkoutType');
- + $cookies.remove('checkoutType');
- LocalStorageService.remove('_currentUser');
- LocalStorageService.remove('_visitedStates');
- ShoppingCartService.loadCart();
- + $rootScope.$emit("UserLoggedOut");
- },
- register: function (user) {
- var ref = $q.defer();
- Index: core/directives/catalog/details/ProductDetails.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- core/directives/catalog/details/ProductDetails.js (revision 414587dcb03ec98627c8d6aa8d6c1d028f6310db)
- +++ core/directives/catalog/details/ProductDetails.js (date 1528975403000)
- @@ -36,10 +36,6 @@
- controller: ['$rootScope', '$scope', '$window', '$location', '$state', '$sce', 'ShoppingCartService', 'TemplateService', 'FileUploadService', 'md5', 'ShopService', 'SessionValuesService', 'ProductService', 'Customer', 'Notification', 'ConfiguratorService', 'WishlistService',
- function ($rootScope, $scope, $window, $location, $state, $sce, ShoppingCartService, TemplateService, FileUploadService, md5, ShopService, SessionValuesService, ProductService, Customer, Notification, ConfiguratorService, WishlistService) {
- - $rootScope.$on("UserLoggedIn", function () {
- - $window.location.reload();
- - });
- -
- $scope.showMoreDescription = false;
- $scope.fullDescription = $scope.productRoot.description;
- $scope.filterPages = [];
- @@ -86,6 +82,15 @@
- $scope.isLoggedIn = Customer.isLoggedIn();
- + $rootScope.$on("UserLoggedIn", function () {
- + $scope.isLoggedIn = Customer.isLoggedIn();
- +
- + if (!$scope.hideConfigurator)
- + ConfiguratorService.calculatePrice($scope.product.id, $scope.amount);
- + else
- + ConfiguratorService.calculatePriceNoPrint($scope.product.id, $scope.amount);
- + });
- +
- $scope.configurableProductChoosen = function () {
- if($scope.productRoot.variants == undefined || $scope.productRoot.variants.length == 0) {
- Index: core/directives/priceTag/PriceTag.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- core/directives/priceTag/PriceTag.js (revision 414587dcb03ec98627c8d6aa8d6c1d028f6310db)
- +++ core/directives/priceTag/PriceTag.js (date 1528973916000)
- @@ -23,7 +23,13 @@
- function ($scope, $location, $rootScope, Customer, ProductService) {
- $scope.isPriceOnRequest = ProductService.isPriceOnRequest;
- - $scope.loggedIn = Customer.isLoggedIn();
- + $scope.updateLoggedIn = function() {
- + $scope.loggedIn = Customer.isLoggedIn();
- + };
- + $scope.updateLoggedIn();
- +
- + $rootScope.$on("UserLoggedIn", $scope.updateLoggedIn);
- + $rootScope.$on("UserLoggedOut", $scope.updateLoggedIn);
- }]
- }
- }
- Index: core/modules/checkout/controllers/CheckoutSuccessController.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- core/modules/checkout/controllers/CheckoutSuccessController.js (revision 414587dcb03ec98627c8d6aa8d6c1d028f6310db)
- +++ core/modules/checkout/controllers/CheckoutSuccessController.js (date 1528969829000)
- @@ -9,8 +9,8 @@
- ],
- function (module, models) {
- 'use strict';
- - module.controller('CheckoutSuccessController', ['$rootScope', '$cookieStore', '$scope', '$state', 'StateFader', 'LocalStorageService', 'ModelFactory', 'ShoppingCartService', 'CheckoutService', 'SessionValuesService', 'Notification', '$window',
- - function ($rootScope, $cookieStore, $scope, $state, StateFader, LocalStorageService, ModelFactory, ShoppingCartService, CheckoutService, SessionValuesService, Notification, $window) {
- + module.controller('CheckoutSuccessController', ['$rootScope', '$cookies', '$scope', '$state', 'StateFader', 'LocalStorageService', 'ModelFactory', 'ShoppingCartService', 'CheckoutService', 'SessionValuesService', 'Notification', '$window',
- + function ($rootScope, $cookies, $scope, $state, StateFader, LocalStorageService, ModelFactory, ShoppingCartService, CheckoutService, SessionValuesService, Notification, $window) {
- $scope.cleanLocalStorage = function () {
- if (CheckoutService.getType() === 'guest') {
- @@ -23,7 +23,7 @@
- LocalStorageService.remove('_payPalPlusApprovalURL');
- LocalStorageService.remove('_visitedStates');
- LocalStorageService.remove('_currentCheckoutState');
- - $cookieStore.remove('checkoutType');
- + $cookies.remove('checkoutType');
- };
- var shoppingCart;
- Index: core/services/CheckoutService.js
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- core/services/CheckoutService.js (revision 414587dcb03ec98627c8d6aa8d6c1d028f6310db)
- +++ core/services/CheckoutService.js (date 1528969829000)
- @@ -5,8 +5,8 @@
- 'core/services/Notification'
- ], function (module) {
- - return module.factory('CheckoutService', ['$window', '$cookieStore', '$q', '$location', 'StateFader', 'SHOP_MAP', 'ModelFactory', 'LocalStorageService', 'CHECKOUT_STATES', 'Notification', '$rootScope', '$state', 'SessionValuesService', 'ShoppingCartService',
- - function ($window, $cookieStore, $q, $location, StateFader, SHOP_MAP, ModelFactory, LocalStorageService, CHECKOUT_STATES, Notification, $rootScope, $state, SessionValuesService, ShoppingCartService) {
- + return module.factory('CheckoutService', ['$window', '$cookies', '$q', '$location', 'StateFader', 'SHOP_MAP', 'ModelFactory', 'LocalStorageService', 'CHECKOUT_STATES', 'Notification', '$rootScope', '$state', 'SessionValuesService', 'ShoppingCartService',
- + function ($window, $cookies, $q, $location, StateFader, SHOP_MAP, ModelFactory, LocalStorageService, CHECKOUT_STATES, Notification, $rootScope, $state, SessionValuesService, ShoppingCartService) {
- var _availableCountries;
- var _availablePaymentMethods;
- var _availableShippingMethods;
- @@ -37,11 +37,11 @@
- };
- var _setType = function (type) {
- - $cookieStore.put('checkoutType', type);
- + $cookies.put('checkoutType', type);
- };
- var _getType = function () {
- - return $cookieStore.get('checkoutType');
- + return $cookies.get('checkoutType');
- };
- var _goToNextStep = function (shoppingCart, customer) {
- @@ -117,10 +117,10 @@
- };
- var _isGuestCheckout = function () {
- - if (!$cookieStore.get('checkoutType')) {
- + if (!$cookies.get('checkoutType')) {
- return false;
- }
- - return $cookieStore.get('checkoutType') === "guest";
- + return $cookies.get('checkoutType') === "guest";
- };
- var _showPayPalPlusPaymentWall = function (approvalUrl, shoppingCart) {
- @@ -319,10 +319,10 @@
- return _isGuestCheckout();
- },
- setState: function (state) {
- - $cookieStore.put('checkoutState', state);
- + $cookies.put('checkoutState', state);
- },
- getState: function () {
- - return $cookieStore.get('checkoutState');
- + return $cookies.get('checkoutState');
- },
- goTo: function (state) {
- StateFader.go(state);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement