text
stringlengths
2
1.04M
import React, { Component } from "react"; import config from '../config.js'; import fetchJsonp from 'fetch-jsonp'; // had to effing use this because Petfinder doesn't use CORS and I won't get data otherwise. import Tile from '../components/tile'; import Profile from '../components/profile'; import { Router, Route, Swit...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'justify', 'fi', { block: 'Tasaa molemmat reunat', center: 'Keskitä', left: 'Tasaa vasemmat reunat', right: 'Tasaa oikeat reunat' } );
//Code from https://github.com/mapbox/delaunator //Many Thanks!
(function($) { /* Parameter für Timing-Sequenzen in der Ausführung des Codes */ var params = { // Langsames sliden eines Elements slideLangsam : 400, // Schnelles sliden eines Elements slideSchnell : 200, // Timeout in Millisekunden für den AJA...
cc.Class({ extends: cc.Component, properties: { radius:0 }, onLoad: function (){ }, runAction: function (point1){ var point2 = {}; point2 = this.node.convertToWorldSpaceAR(this.node.position); point2.radius = this.radius; cc.log(cc.wy.utils); c...
YUI.add('yui2-containercore', function(Y) { Y.use('yui2-container'); }, '3.3.0' ,{"requires": ["yui2-yahoo", "yui2-dom", "yui2-event"]}); YUI.add('yui2-container', function(Y) { var YAHOO = Y.YUI2; /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.y...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
/** * Copyright (c) 2014 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
const _package = require(`../package.json`); const config = { host: `localhost`, port: `8080`, dest: `./docs/`, patterns: [ `*.md`, ], title: _package.packagename, description: _package.description, themeConfig: { displayAllHeaders: true, lastUpdated: `Last updated`, nav: [ { text: `Home`, link...
var should = require("should"); define("regular", function(require, exports, module) { module.exports = "regular-module"; }); define("override-exports", function(require, exports, module) { exports = "this one overrides exports reference"; }); define("return-module", function(require, exports, module) { return "m...
module.exports={A:{A:{"2":"pB","8":"I D F E","260":"A B"},B:{"1":"b KB NB R S T M V W G bB","260":"C N O Q","1284":"J K L"},C:{"8":"iB YB wB zB","4612":"0 1 2 3 4 5 6 7 8 9 H c I D F E A B C N O Q J K L d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB eB IB TB P LB MB X OB PB QB RB JB HB a Z UB VB WB ...
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */ /*! UIkit 3.0.0-rc.6 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */ /* ///////////////////////////// */ /*! UIkit 3.0.0-rc.6 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */
const v = require('./index.js') test('transition', () => { expect(v(false)).toEqual({ transitionProperty: 'none' }) expect(v(['background-color', 'color', 'fill'])).toEqual({ transitionProperty: 'background-color,color,fill', }) expect(v('opacity')).toEqual({ transitionProperty: 'opacity' }) expect(v(nul...
let variableList = []; let uniqueVariables = []; const takeAction = ({action, data, id}) => { switch(action) { case 'setData': variableList = data; for (let i in variableList){ variableList[i] = variableList[i].trim(); if (variableList[i] == '') bugs.splice(i, 1); } uniqueVariables = []; ...
export function mapRequestParams(routeParams, pathname) { if (!pathname) throw new Error('Param missing pathname'); if (routeParams.subscription_id && pathname.startsWith('/subscriptions')) { return { subscription_id: +routeParams.subscription_id }; } else if (routeParams.category_id && pathname.startsWith('...
'use strict'; var $ = require('../internals/export'); var aFunction = require('../internals/a-function'); var newPromiseCapabilityModule = require('../internals/new-promise-capability'); var perform = require('../internals/perform'); var iterate = require('../internals/iterate'); // `Promise.allSettled` method // http...
import fetch from 'electron-fetch' import userConfig from '../../.user-config.js' const { feedbackAPI } = userConfig /** * 发送一封邮件 * @param {Object} data 邮件的主体内容 * @param {*} telUser 主题中第三个框中的内容 * @param {Object} appInfo 邮件的相关信息 */ // eslint-disable-next-line import/prefer-default-export export function newEmai...
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { red500, green800, green900 } from 'material-ui/styles/colors' import getMuiTheme from 'material-ui/styles/getMui...
/** * Virtual DOM patching algorithm based on Snabbdom by * Simon Friis Vindum (@paldepind) * Licensed under the MIT License * https://github.com/paldepind/snabbdom/blob/master/LICENSE * * modified by Evan You (@yyx990803) * * Not type-checking this because this file is perf-critical and the cost * of making f...
import 'bootstrap-table'; import '@/../../node_modules/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile'; import '@/../../node_modules/bootstrap-table/dist/locale/bootstrap-table-es-SP'; export default { fillBSTable(tableId, content) { const $table = $(tableId); $table.bootstrapTable('destroy');...
import { useQuery } from 'react-query'; import { useOkapiKy } from '@folio/stripes/core'; import { CUSTPROP_ENDPOINT } from '../constants/endpoints'; const useLicensesContexts = () => { const ky = useOkapiKy(); const path = `${CUSTPROP_ENDPOINT}/contexts`; return useQuery( [path, 'ui-licenses', 'settings...
/*! * Clean Blog v1.0.0 (http://startbootstrap.com) * Copyright 2015 Start Bootstrap * Licensed under Apache 2.0 (https://github.com/IronSummitMedia/startbootstrap/blob/gh-pages/LICENSE) */ // Tooltip Init $(function() { $("[data-toggle='tooltip']").tooltip(); }); // Contact Form Scripts $(function() { ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | The with statement adds a computed object to the front of the scope chain of the current execution context es5id: 12.10_A1.3_T5 description: > Using "with" state...
import React from 'react' import { color } from 'styled-system' import styled from 'styled-components' import { Typography } from '@andy-wynyard/mcclane-components' import { Link } from 'gatsby' const { H1 } = Typography export const GalleryLink = styled(Link)` text-transform: uppercase; margin: 1rem; text-deco...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import {headerComponent} from './header.component'; let headerModule = angular.module('header', [ uiRouter ]) .component('header', headerComponent) .name; export default headerModule;
var logger = require('winston'); module.exports = function(req, res) { return function(err) { logger.error("Unexpected error", { err: err, req: req }); return res.status(500).send({ status: "error", message: "Unexpected internal error occurred", err: err }); }; };
const express = require('express'); const router = express.Router(); /** * @openapi * /: * get: * description: For health check. * produces: * - application/json * responses: * 200: * description: Returns alive = true if all good. * schema: * type: object...
// ================== // EXTENSION MANIFEST // ================== module.exports = { "name": "YouTube-Utils", "description": "A chrome-extension with utility features for YouTube", "version": "0.1.0", "manifest_version": 3, // POPUP HTML // ========== // "action": { // "defau...
var returnVal; var returnDim; var mouseX = 0, mouseY = 0; var windowHalfX = window.innerWidth / 2; var windowHalfY = window.innerHeight / 2; setElementsWithInfos(init()); function setElementsWithInfos(manager) { manager.onLoad = functi...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */
import React from 'react'; import { List, Drawer, NavBar, Icon ,WingBlank,WhiteSpace} from 'antd-mobile'; import { DatePicker } from 'antd-mobile'; import { routerRedux } from 'dva/router'; import { connect } from 'react-redux'; import { Tabs,Badge } from 'antd-mobile'; import { Grid } from 'antd-mobile'; import Popov...
// Copyright IBM Corp. 2013,2016. All Rights Reserved. // Node module: loopback-datasource-juggler // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT // This test written in mocha+should.js 'use strict'; var should = require('./init.js'); var async = requi...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Renderer2 } from '@angular/core'; import { BsDropdownState } from './bs-dropdown.state'; import { isBs3 } from 'ngx-bootstrap/utils'; export class BsDropdownCont...
/** * @license AngularJS v1.7.9-build.26825+sha.55075b8 * (c) 2010-2018 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular) {'use strict'; /* global shallowCopy: true */ /** * Creates a shallow copy of an object, an array or a primitive. * * Assumes that there are no proto properties...
import React from 'react'; import { Card } from 'semantic-ui-react'; import SeasonCastMemberCardContent from './SeasonCastMemberCardContent'; export default props => ( <Card fluid> <Card.Content> <SeasonCastMemberCardContent seasonCastMemberId={props.seasonCastMemberId} firstName={props.fir...
// -- Sammy.js -- /plugins/sammy.storage.js // http://sammyjs.org // Version: 0.7.0 // Built: 2011-07-30 16:55:51 -0700
export default { 'conditional': { 'eq': '', 'when': null, 'show': '' }, 'type': 'selectboxes', 'validate': { 'required': false }, 'persistent': true, 'protected': false, 'inline': false, 'values': [ { 'label': 'Red', 'value': 'red' }, { 'label': 'Blue', ...
const actionTypes = { GET_REDDIT_POST: 'GET_REDDIT_POST', GET_REDDIT_POST_SUCCESS: 'GET_REDDIT_POST_SUCCESS', GET_REDDIT_POST_FAILED: 'GET_REDDIT_POST_FAILED' }; export default actionTypes;
import React, { Component } from 'react' import { findDOMNode } from 'react-dom' import TestUtils from 'react-addons-test-utils' import AutoComplete from '../index' describe('AutoComplete', () => { it('should onChange works', () => { const handleChange = jest.fn() const instance = TestUtils.renderIntoDocume...
const { expect } = require('test/util/chai'); const { request, testApp, withSession } = require('test/util/supertest'); const { stubReq } = require('test/util/validations'); const RespondentDetails = require('app/steps/respondent/details'); const HUSBAND_OR_WIFE = 'former partner'; const fullApplication = { current...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; exports.getInputLabelUtilityClasses = getInputLabelUtilityClasses; var _core = require("@mui/core"); function getInputLabelUtilityClasses(slot) { return (0, _core.generateUtilityClass)('MuiInputLabel', slot); }...
// Karma configuration // Generated on Sat Nov 12 2016 08:35:15 GMT+0100 (Central European Standard Time) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https:/...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ module.exports = { /* Your site config here */ plugins: [ { resolve: `gatsby-plugin-typography`, options: { pathToConfigModule: `src/utils/typography`, }, }, ], };
window.onload = function() { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, theme: "light2", title: { text: "Daily Visitors" }, axisY: { includeZero: false }, data: [ { type: "line", dataPoints: [ { y: 450 }, ...
// Authentication pages function togglePass() { let pwd = document.getElementById("pwd"), displayText = document.getElementById("hidePass"); if (pwd.type === "password") { pwd.type = "text"; displayText.innerText = "Hide"; } else { pwd.type = "password"; displayText.innerText = "Show"; } } ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Decimal = factory()); }(this, function () { 'use strict'; var padEnd = function (string, maxL...
import React from "react"; import { shallow } from "enzyme"; import NodeHeader from "../src/components/NodeHeader"; import defaultTheme from "../src/themes/default"; import defaultDecorators from "../src/components/Decorators"; import defaultAnimations from "../src/themes/animations"; import data from "./mocks/data"; ...
const DrawCard = require('../../drawcard.js'); class SerDavosSeaworth extends DrawCard { setupCardAbilities() { this.reaction({ when: { onBypassedByStealth: event => event.source === this && !event.target.isLoyal() }, ...
import React from 'react'; import PropTypes from 'prop-types'; const UilHeartSign = (props) => { const { color, size, ...otherProps } = props return React.createElement('svg', { xmlns: 'http://www.w3.org/2000/svg', width: size, height: size, viewBox: '0 0 24 24', fill: color, ...otherProps ...
var path = require('path'), fs = require('fs'); var less = require('../lib/less-node'); var file = path.join(__dirname, 'benchmark.less'); if (process.argv[2]) { file = path.join(process.cwd(), process.argv[2]) } fs.readFile(file, 'utf8', function (e, data) { var start, end, total; console.log("Benchmar...
module.exports = function (grunt) { // load all grunt tasks require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), notify: { browserify: { options: { message: '"Browserify task is done "' } }, uglify: { options...
'use strict'; import './styles.postcss'; import React from 'react'; class Modal extends React.Component { constructor(props) { super(props); this.state = { open: this.props.visible }; } componentWillReceiveProps(nextProps) { this.setState({ open: nextProps.visible }); } close(e) { ...
exports.desktopAccessDisabledImpl = require('@material-ui/icons/DesktopAccessDisabled').default;
'use strict'; //Microphones service used to communicate Microphones REST endpoints angular.module('microphones').factory('Microphones', ['$resource', function($resource) { return $resource('microphones/:microphoneId', { microphoneId: '@_id' }, { update: { method: 'PUT' } }); } ]);
function rAb(){} function lAb(){} function PTb(){} function UTb(){} function WTb(b){this.b=b} function RTb(b,c){this.b=b;this.c=c} function aUb(b){rEb(b.c,KTb(b.b))} function p_(b,c){var d;d=O_((J_(),c));return q_(b,d,c,false)} function qAb(){var b;while(mAb){b=mAb;mAb=mAb.c;!mAb&&(nAb=null);aUb(b.b)}} function zTb(b,c...
// Styles import 'bootstrap/dist/css/bootstrap.min.css'; import './main.css'; // 3rd party modules //import bootstrap from 'bootstrap'; import angular from 'angular'; import angularAnimate from 'angular-animate'; import angularUiBootstrap from 'angular-ui-bootstrap'; // Modules import app from './app/app.module'; imp...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Serializer | application', function(hooks) { setupTest(hooks); // Replace this with your real tests. test('it exists', function(assert) { let store = this.owner.lookup('service:store'); let serializer = store.s...
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ // This file is a heavily modified fork of Jasmine. Original license: /* Copyright (c) 2008-2016 Pivotal Labs Pe...
(()=>{(function(){"use strict";var er=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},sn={exports:{}};/* @preserve * Leaflet 1.7.1, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2019 Vladimir Agafonkin,...
/*! For license information please see 16.76684f33.iframe.bundle.js.LICENSE.txt */
/* Copyright (c) 2018 Graham Dyson. All Rights Reserved. Licensed under the MIT license. See LICENSE file in the repository root for full license information. */ const fsExtra = require("fs-extra"), path = require("path"); module.exports = ({ javascriptFileExtension, nodeModulesDirectoryPath, requirePath, }...
({ show: function (cmp, event, helper) { cmp.set('v.readyToRender', true); }, hide: function (cmp, event, helper) { cmp.set('v.readyToRender', false); } })
//>>built define("dojox/editor/plugins/nls/ro/BidiSupport",{ltr:"Direc\u0163ie text de la st\u00e2nga la dreapta",rtl:"Direc\u0163ie text de la dreapta la st\u00e2nga"}); //# sourceMappingURL=BidiSupport.js.map
var React = require('react') var ReactDOM = require('react-dom') var HelloWorld = React.createClass({displayName: "HelloWorld", render: function() { return ( React.createElement("div", null, React.createElement("h1", null, "Hello World"), Re...
/* Ported to JavaScript by Lazar Laszlo 2011 lazarsoft@gmail.com, www.lazarsoft.info */ /* * * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
/** * author Christopher Blum * - based on the idea of Remy Sharp, http://remysharp.com/2009/01/26/element-in-view-event-plugin/ * - forked from http://github.com/zuk/jquery.inview/ */ (function ($) { var inviewObjects = {}, viewportSize, viewportOffset, d = document, w = window, documentElement = d.d...
import config from '../config/environment'; import Bugsnag from 'bugsnag'; import BugsnagConfiguration from 'ember-cli-bugsnag/utils/bugsnag-configuration'; export default { name: 'ember-cli-bugsnag', initialize: function() { let configVariables = config.bugsnag || {}; let releaseStage = config.bugsnag.r...
import Logger from "./logger"; import Codemetrics from "codemetrics-core"; import cli from "./cli"; //console.log(config,input); const handlePluginHelper = require("./handlePluginHelper.js"); //TODO check input //console.log(config,cli.args); //var parsers,processors,reporters; const { config, input } = cl...
const test = require('tape'); const ary = require('./ary.js'); test('Testing ary', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof ary === 'function', 'ary is a Function'); const firstTwoMax = ary(Math.max, 2); t.deepEquals([[...
const Reviews = require("../models/Review"); const Campground = require("../models/campground"); module.exports.AddReviews = async(req, res) => { // res.send("You Made Bro You Madve Till here"); const Campgrounds = await Campground.findById(req.params.id); const Review = new Reviews(req.body.Review); R...
// @flow import { string, optional, number, shape, constant } from '..'; import validate from '../validate'; const Tweet = shape( Object.freeze({ text: string, quote: optional(shape(Object.freeze({ id: string }))) }) ); validate(Tweet, { text: '4', quote: { id: 'bar' } }); validate(Tweet, { text: '4', q...
window.bookSummaryJSON = "<p>Fans of Junie B. Jones and Ivy and Bean will love this new story about the spunky little rascal with big ideas. </p> <p>The star of <i>Dory Fantasmagory</i> is heading to school. Her older siblings, Luke and Violet, warn her to leave her imaginary friend, Mary, at home - or, better yet, lea...
import Vue from 'vue'; import App from './App.vue'; new Vue({ el: '#app', render: h => h(App) });
module('apis.Github').requires('apis.OAuth', 'lively.Network', 'lively.net.SessionTracker').toRun(function () { /* usage apis.Github.requestGithubAccess(['public_repo'], (err, token) => { err && show(String(err)) show(token); }); apis.Github.doRequest( "/user", {auth: token}, (err, answer) => { show(err ? ...
const { join,basename } = require('path'); const assert = require('assert'); const chalk = require('chalk'); /* 私有方法不自动触发:(定义方式) _private_method:下划线 constructor:(){ this.methods=noop} 可用优先级为(按运行顺序): initializing -您的初始化方法(检查当前项目状态,获取配置等) prompting-在提示用户输入选项的地方(您要致电的地方this.prompt()) configuring-保存配置并配置项目(创建.editorcon...
var context = require.context('./spec', true, /.+\.spec\.js?$/) context.keys().forEach(context) module.exports = context
import Mock from 'mockjs' import { param2Obj } from '../src/utils' import user from './user' import search from './remote-search' const mocks = [ ...user, ...search ] // for front mock // please use it cautiously, it will redefine XMLHttpRequest, // which will cause many of your third-party libraries to be inval...
$(document).ready(function(){ $('#alert').hide(); var today_month = moment().format('MMMM'); var today_year = moment().format('YYYY'); $('.monthtext').val(today_month); $('.year').val(today_year); $('#slctyear').change(function(e){ $('.year').val($('#slctyear').val()); $('.day_area').remove(); $.ajaxSet...
import React from 'react'; import { shallow } from 'enzyme'; import { Button, Select, StepIncrementer } from '@data-ui/forms'; import ControlPanel from '../src/components/ControlPanel'; import EventTypeLegend from '../src/components/EventTypeLegend'; import EventTypeRadialChart from '../src/components/EventTypeRadialC...
// Generated on 2014-08-12 using generator-angular 0.5.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { require('load-grunt-tas...
async function getZkAccountInfo(zkWallet) { // Committed state is not final yet // let committedETHBalance = await zkWallet.getBalance("ETH"); // console.log("CommittedETHBalance: ",committedETHBalance.toString()) // Verified state is final const verifiedETHBalance = await zkWallet.getBalance("ETH"...
"use strict"; function handler(routeConfig) { const eventProcessorMapping = extractEventProcessorMapping(routeConfig); return async (event, context, callback) => { if (routeConfig.debug) { console.log("Lambda invoked with request:", event); console.log("Lambda invoked with cont...
var homophonizerFactory = require('../metaphone/metaphonehomophonizer'); var homophonizer = homophonizerFactory({ dbLocation: '../metaphone/metaphone.db' }); var word = process.argv[2]; if (word.length > 0) { homophonizer.getHomophones(word, showHomophones); } function showHomophones(error, homophones) { if (e...
module.exports = { root: true, env: { node: true }, extends: ["plugin:vue/essential"], rules: { "no-unused-vars": 0, "no-console": 0, "consistent-return": 0, "curly": 2, "dot-notation": 2, "eqeqeq": 2, "func-names": ["error", "always"], "guard-for-in": 2, "indent": [2, ...
import React, { useRef, useState } from "react" import { Form, Button, Card, Alert } from "react-bootstrap" import { useAuth } from "../contexts/AuthContext" import { Link } from "react-router-dom" import firebase from '../firebase' export default function Signup() { const locationRef = useRef() const checkinRef =...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _activeElements = require('../get/active-elements'); var _activeElements2 = _interopRequireDefault(_activeElements); var _decorateService = require('../util/decorate-service'); var _decorateService2 = _interopRequireDefault(_decorat...
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ /* Ordnance Survey Grid Reference functions (c) Chris Veness 2005-2021 */ /* MIT Licence */ /* www.movable-ty...
const Article = require('../models/article'); // Defining methods for the main controller module.exports = { findAll: function(req, res) { Article .find(req.query) .sort({ savedDate: -1 }) .then(data => res.json(data)) .catch(err => console.log(err)); }, create: function(req, res) { ...
var clearInterval = require("timers").clearInterval var setInterval = require("timers").setInterval var setTimeout = require("timers").setTimeout var test = require("tape") var choke = require("../index") test("choke is a function", function (assert) { assert.equal(typeof choke, "function") assert.end() }) t...
var fs = require('fs'); var path = require('path'); var async = require('async'); var mkdirp = require('mkdirp'); var rmdir = require('rimraf'); var config = require('./config'); exports.get = function(filename, done) { var filepath = path.join(config.local.cacheFolder, filename); async.waterfall([ fun...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); tslib_1.__exportStar(require("./components/Spinner/index"), exports); //# sourceMappingURL=Spinner.js.map
Component({ behaviors: ['wx://form-field'], externalClasses: ['i-class'], properties: { title: { type: String }, // text || textarea || password || number type: { type: String, value: 'text' }, disabled: { type: Boolean, value: false }, placeholder: ...
'use strict'; module.exports = appInfo => { const config = {}; // should change to your own config.keys = appInfo.name + '_1504238727360_7498'; // add your config here return config; };
var indexSectionsWithContent = { 0: "_abcdefghiklmnopqrstuvwxyz", 1: "bcehrv", 2: "bcs", 3: "cek", 4: "abcdefghiklmnopqrstuvwxyz", 5: "cgv", 6: "ce", 7: "aces", 8: "c", 9: "abcdeghloprsx", 10: "a" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", 3: "functions", 4: "varia...
import {elementType} from 'prop-types' import React from 'react' const style = { border: 0, clip: 'rect(0 0 0 0)', height: '1px', width: '1px', margin: '-1px', padding: 0, overflow: 'hidden', position: 'absolute' } export default function VisuallyHidden(props) { const {as: Component, ...otherProps} ...
/* eslint-disable flowtype/require-valid-file-annotation */ import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import uglify from 'rollup-plugin-uglify'; import babel from 'rollup-plugin-babel'; import replace from 'rollup-plugin-replace'; import strip from 'rollup-plugin-...
// // Generated by validator_gen.py - do not edit. // goog.provide('amp.validator.AmpLayout'); goog.provide('amp.validator.AmpLayout.Layout'); goog.provide('amp.validator.AtRuleSpec'); goog.provide('amp.validator.AtRuleSpec.BlockType'); goog.provide('amp.validator.AttrList'); goog.provide('amp.validator.AttrSpec'); go...
import axios from 'axios' export function requestandorid(config) { const instanceandorid=axios.create({ baseURL:'http://123.207.32.32:8000', timeout:5000 }) return instanceandorid(config) }
/* ScrollMagic v1.0.9 | (c) 2014 Jan Paepke (@janpaepke) | license & info: http://janpaepke.github.io/ScrollMagic */
const lambdify = require('./../src/index'); const createRouter = require('./../src/router/index'); it('router 404', async () => { const router = createRouter(); const handler = lambdify(router.serve); const res = await handler({}, {}); await expect(res.statusCode).toEqual(404); }); it('router simple path', ...