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
scalar Date | |
scalar File | |
scalar Url | |
schema { | |
query: Query | |
} | |
type Query { | |
me: User! |
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
const handleError = (err: AxiosError): Promise<ISignUpResponse> => { | |
if (!err.response) { | |
return Promise.reject({ | |
error: { | |
code: 'UnresolvedError', | |
fields: [], | |
description: i18n.t('common:error.unresolvedError') | |
} | |
}); | |
} |
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
import * as isEmpty from 'lodash/isEmpty'; | |
import { createAction } from '4game-core/utils/createAction'; | |
import * as ShopService from 'src/services/Shop'; | |
import { IAction } from '4game-core/types/IAction'; | |
import { IOption } from '4game-core/types/IOption'; | |
import { IProductCard } from '4game-core/store/ShopService'; | |
import { IGetWebshopUserProducts } from 'src/services/Shop'; |
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
import { createAction } from 'src/utils/createAction'; | |
import * as ShopService from 'src/services/Shop'; | |
import { IAction } from 'src/types/IAction'; | |
import { IGetWebshopUserProducts } from 'src/services/Shop'; | |
import { IOption } from 'src/types/IOption'; | |
import { IShopCategory } from 'src/store/ShopCategories'; | |
import { IWebShopServices } from 'src/types/IWebShopServices'; | |
interface ISetProductsParams { |
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
import { handleActions } from 'redux-actions'; | |
import * as find from 'lodash/find'; | |
import * as each from 'lodash/each'; | |
import * as a from 'src/actions/Shop'; | |
import { IWebShopServices, IWebShopService } from 'src/types/IWebShopServices'; | |
import { IProductCard, IShopService, IShopServices } from 'src/store/ShopService'; | |
import { IShopCategory } from 'src/store/ShopCategories'; |
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
// @flow | |
import * as ProfileService from '../services/Profile'; | |
import constants from '../constants/Profile'; | |
export const getUserProfile = () => (dispatch: Function, getState: Function) => { | |
const auth = getState().auth; | |
return ProfileService.getUserProfile({ |
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
@import 'nib' | |
/* ======================= | |
------- iSlider ------- | |
======================= */ | |
b = '.islider' | |
{b} | |
position relative |
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
Теоретическая часть: | |
1) ES6 | |
https://ponyfoo.com/articles/es6 | |
https://github.com/lukehoban/es6features | |
2) Babel | |
http://babeljs.io | |
http://browserify.org |
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
(function( $ ) { | |
'use strict'; | |
var ElementRegion = function( $el ) { | |
this.cacheObjects( $el ); | |
this.bindEvents(); | |
}; | |
ElementRegion.prototype = { | |
cacheObjects: function( $el ) { |
NewerOlder