This file contains hidden or 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
| var path = require('path'); | |
| var webpack = require("webpack"); | |
| var CleanPlugin = require('clean-webpack-plugin'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| module.exports = { | |
| debug: true, | |
| context: path.join(__dirname, "sources"), | |
| entry: { |
This file contains hidden or 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
| added_by_current_user: false | |
| coupon_code: null | |
| description: "Shop the Latest in Kids' Shoes, Starting at $16, at Nordstrom! Free Shipping and Free Returns!" | |
| discount_amount: null | |
| discount_text: null | |
| discount_type: "other" | |
| expiration_at: "2016-02-01" | |
| expired: false | |
| followed_by_current_user: false | |
| followers_amount: 0 |
This file contains hidden or 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
| worker:1 task (capture {"site":"http://thepiratebay.se"}) started +4ms | |
| CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://thepiratebay.se /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535882182.png +1ms | |
| worker:1 task (capture {"site":"http://thepiratebay.se"}) finished +4s | |
| worker:1 task (capture {"site":"http://waptrick.com"}) started +3ms | |
| CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://waptrick.com /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535886050.png +0ms | |
| worker:1 task (capture {"site":"http://waptrick.com"}) finished +7s | |
| worker:1 task (capture {"site":"http://divxtotal.com"}) started +3ms | |
| CaptureTask run cmd /home/vagrant/src/phantomjs/bin/phantomjs /home/vagrant/src/phantomjs/examples/rasterize.js http://divxtotal.com /home/vagrant/src/banner-checker/app/tasks/../../screenshots/1450535893123.png +0ms | |
| worker:1 |
This file contains hidden or 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
| class Controller { | |
| @route('get', '/index') | |
| @middleware('load_user') | |
| async index() { | |
| let user = await User.get() | |
| , value = await user.doSomething(); | |
| if (!value) { | |
| throw new Error('Some Error'); |
This file contains hidden or 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
| 'use strict'; | |
| let expect = require('chai').expect | |
| , AuthService = require('../../../app/services/auth') | |
| , policy = require('../../../app/policies/authenticated'); | |
| describe('app/policies/authenticated', function() { | |
| it('returns auth info when token is valid', async function() { | |
| let id = 1 | |
| , req = { headers: { authentication: await AuthService.generateToken(id) } } |
This file contains hidden or 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
| 'use strict'; | |
| require('dotenv').load(); | |
| require("babel-register")({ | |
| only: /app|test/, | |
| plugins: ['transform-async-to-generator'] | |
| }); | |
| let glob = require('glob') |
This file contains hidden or 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
| 'use strict'; | |
| let request = require('supertest') | |
| , expect = require('chai').expect | |
| , server = require('../../../api') | |
| , Campaign = require('../../../app/models/campaign') | |
| , AuthService = require('../../../app/services/auth'); | |
| describe('app/controllers/campaign', function() { | |
| let token; |
This file contains hidden or 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
| 'use strict'; | |
| let BaseTask = require('./base') | |
| , BaseNetwork = require('../networks/base'); | |
| class BlacklistTask extends BaseTask { | |
| async run() { | |
| if (process.env.DRY_RUN === 'true') { | |
| return; | |
| } |
This file contains hidden or 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 удачная регистрация | |
| 1 - заходим на landing page(lp) | |
| 2 - вводим firstName, lastName, email, phone, password | |
| 3 - после сабмита отправляется запрос на node app, где он отправляет запрос регистрации на tds | |
| 4 - после успешной регистрации, node app отправляет ответ с редирект линкой, | |
| типа https://www.optionstarsglobal.com/?hash=f55fe15c-cd7d-4e6b-8389-18874d40330c | |
| где хеш мы взяли из тела ответа tds api с поля data.user.sessionId | |
| 5 - фронт енд редиректит на линку юзера логинит на optionstarsglobal |
This file contains hidden or 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
| { | |
| "request": "api\/v2\/products\/week", | |
| "set": "New This Week", | |
| "page": 1, | |
| "count": 8, | |
| "limit": 16, | |
| "items": [{ | |
| "type": "product", | |
| "template": "single-media", | |
| "id": 4171, |