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
// Marionette.Gauntlet v0.0.0 | |
// -------------------------- | |
// | |
// Build wizard-style workflows with an event-emitting state machine | |
// Requires Backbone.Picky (http://github.com/derickbailey/backbone.picky) | |
// | |
// Copyright (C) 2012 Muted Solutions, LLC. | |
// Distributed under MIT license | |
// Modifications by Tim Shnaider | |
// |
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
/** | |
* Override React Table pagination component to be able to control Previous/Next | |
*/ | |
import React, { Component } from 'react' | |
import classnames from 'classnames' | |
const defaultButton = props => ( | |
<button type="button" {...props} className="-btn"> | |
{props.children} |
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 axios = require("axios").default | |
const axiosCookieJarSupport = require("axios-cookiejar-support").default | |
const CookieJar = require("tough-cookie").CookieJar | |
const assert = require('assert') | |
let instanceId = 1 | |
const createAxiosInstance = () => { | |
const axiosInstance = axios.create({ | |
baseURL: "https://test.site/wp-json/cocart/v1", | |
withCredentials: true, | |
}) |