Skip to content

Instantly share code, notes, and snippets.

View KutsenkoA's full-sized avatar

Kutsenko Andrey KutsenkoA

View GitHub Profile
@KutsenkoA
KutsenkoA / payment-controller.ts
Created July 17, 2022 14:08
This component is processing user purchases from the cart
import { Inject, Injectable } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { ShopFacade, UserCartService, UserFacade } from '@rr/player/da';
import { InformationPopupComponent, InvalidLocationPopupComponent, ThanksForOrderPopUpComponent } from '@rr/player/ui';
import { SidenavService } from '@rr/player/util';
import { AuthFacade } from '@rr/shared/da-auth';
import { CheckoutPayee, PaymentGatewayEnum, StoreCheckout } from '@rr/shared/graphql/data-access';
import { checkGraphQlErrorByCategory } from '@rr/shared/graphql/util';
import { LOGGER_SERVICE, LoggerService, DeviceDetection } from '@rr/shared/util-angular';
@KutsenkoA
KutsenkoA / portfolioController.js
Created August 11, 2015 13:08
Client profile controller
'use strict';
/**
* @ngdoc controller
* @name sdtp_project.controller:profileController
* @description
* Controller of client profile. Has methods for edit/save/update profile
* and methods to work with additional sections
*/
angular.module('sdtp_project')
@KutsenkoA
KutsenkoA / User.js
Last active July 31, 2019 11:50
This is Sequelize user model with authorization by token. The generic salt stored with passwords.
module.exports = function(sequelize, DataTypes) {
var
User;
User = sequelize.define('User', {
name: {
type: DataTypes.STRING,
unique: false,
allowNull: true
},