Центральный элемент redux - action. Выглядит он примерно так:
{
type: ADD_TODO,| function toBlob(func) { | |
| const funcString = func.toString(); | |
| const code = funcString.substring( | |
| funcString.indexOf('{') + 1, | |
| funcString.lastIndexOf('}'), | |
| ); | |
| const blob = new Blob([code], { type: 'application/javascript' }); | |
| return URL.createObjectURL(blob); | |
| } |
| startQuery() { | |
| return Promise.all([ | |
| this._createCampaign(this.$models), | |
| this._createCreative(this.$models), | |
| ]).then(resps => { | |
| this.setStore('campaign', resps[0]); | |
| this.setStore('creative', resps[1]); | |
| return this._createStrategy(this.$models, this.$store) | |
| }).then(strategy => { | |
| this.setStore('strategy', strategy); |
| <div id="cont" data-precent="100"> | |
| <svg id="svg" width="200" height="200" viewPort="0 0 100 100" version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
| <circle r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle> | |
| <circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle> | |
| </svg> | |
| </div> | |
| <label for="percent">Type a percent!</label> | |
| <input id="percent" name="percent"> |
scale.linear -> scaleLineard3.time.format -> d3.timeFormatd3.time.scale -> d3.scaleTimed3.svg.line -> d3.lined3.svg.brush().x() -> d3.brushX()d3.svg.brush().y() -> d3.brushY()d3.svg.brush().x().y() -> d3.brush() ???https://github.com/d3/d3/blob/master/CHANGES.md#brushes-d3-brush
Для того чтобы залогинить существующего пользователя воспользуйтесь методом signInWithEmailAndPassword
firebase.auth().signInWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// ...
});| const { ApolloServer, gql } = require('apollo-server'); | |
| const { libraryAPI, bankAPI } = require('./mocks'); | |
| const typeDefs = gql` | |
| type Book { | |
| title: String | |
| author: Author | |
| } |
| /** | |
| * @author Boggddan <github.com/boggddan> | |
| * Запускается в браузерах которые не поддерживают свойство background-blend-mode. | |
| * Полифил применяется к тегам помеченым атрибутом `data-background-blend-mode` в свойтвах которого нужно передать режим смешивания. | |
| * Поддерживается: normal, multiply, lighten, screen, darken. (протестировано в IE 11) | |
| * @example: <div data-background-blend-mode="multiply"></div> | |
| */ | |
| /* Element.prepend polyfill for IE 11 */ | |
| function prependPolyfill() { |
| const https = require('https'); | |
| const { StringDecoder } = require('string_decoder'); | |
| /** | |
| * Simple Node.js script to turn a specific page on a Google Sheet | |
| * into a JSON object for the main purpose of HTML Templating. | |
| * | |
| * @author jonobr1 / http://jonobr1.com | |
| * @author akiyamka / [email protected] | |
| * |
| function createSVG(d) { | |
| const xmlns = "http://www.w3.org/2000/svg"; | |
| const boxWidth = 300; | |
| const boxHeight = 300; | |
| const svgElem = document.createElementNS(xmlns, "svg"); | |
| svgElem.setAttributeNS(null, "viewBox", "0 0 " + boxWidth + " " + boxHeight); | |
| svgElem.setAttributeNS(null, "width", boxWidth); | |
| svgElem.setAttributeNS(null, "height", boxHeight); | |
| svgElem.setAttributeNS(null, "fill", "none"); |