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
{"lastUpload":"2018-06-03T18:31:43.380Z","extensionVersion":"v2.9.2"} |
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 push = results => res => { | |
results.push(res); | |
return results; | |
}; | |
const chainPromises = results => ( | |
(promise, func) => promise.then(func).then(push(results)) | |
); | |
const series = (...promises) => promises.reduce( |
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
export const shalowCompareArgs = (args, _args) => ( | |
_args == null || | |
args.length !== _args.length || | |
args.some((a, index) => a !== _args[index]) | |
); | |
export const memorize = (func, compare = shalowCompareArgs) => { | |
let _args; | |
let _res; | |
return (...args) => { |
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 { api } from '../api'; | |
import { regUser } from './creators'; | |
export const loadProject = projectId => async dispatch => { | |
const user = await api.loadProject(projectId); | |
dispatch( | |
regUser(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
// --- EventEmitter Factory Implementation --- | |
const { call, numberCalls, removeItem, append } = require('./helpers'); | |
const unsibsribe = (_handlers, event, handler) => { | |
_handlers[event] = removeItem(_handlers[event], handler); | |
}; | |
const on = _handlers => (event, handler) => { |
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
<script type="text/javascript"> | |
if(window.performance && window.performance.timing) { | |
var dom_content_loaded = ( | |
window.performance.timing.domContentLoadedEventEnd - window.performance.timing.navigationStart | |
); | |
var dom_complete = ( | |
window.performance.timing.domComplete - window.performance.timing.navigationStart | |
); | |
var payload = { | |
url: '/api_v3/visit/track?appKey={/literal}{$smarty.const.PDFFILLER_API_KEY}{literal}', |
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 calls = func => { | |
const _F = (...args) => { | |
_F.calls.push(args); | |
return func(...args); | |
} | |
_F.calls = []; | |
return _F | |
} | |
const memorize = func => { |
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 { PropTypes } from 'prop-types'; | |
export const SomeComponent = ({ title, onClick }) => ( | |
<button onClick={onClick}>{title}</button> | |
); | |
SomeComponent.propTypes = { | |
title: PropTypes.string, | |
onClick: PropTypes.func, | |
}; |
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 { post } from '../api'; | |
import * as urls from '../api/end-points'; | |
import { logger } from '../logger'; | |
import AC from './actions-registry'; | |
export const saveSchema = (schemaName, schema) => async dispatch => { | |
const { res, err } = await post(urls.addSchema(), schema); | |
if (err) { | |
logger.error(err); | |
throw err; |
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
'use strict'; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
exports.saveSchema = undefined; | |
var _api = require('../api'); | |
var _endPoints = require('../api/end-points'); |
OlderNewer