code stringlengths 2 1.05M |
|---|
/** @namespace */
var geo = {};
window.geo = geo;
geo.renderers = {};
geo.features = {};
geo.fileReaders = {};
geo.rendererLayerAdjustments = {};
//////////////////////////////////////////////////////////////////////////////
/**
* Convenient function to define JS inheritance
*/
/////////////////////////////////////... |
// Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("cellProperties",function(g){function d(a){return function(b){for(var c=a(b[0]),d=1;d<b.length;d++)if(a(b[d])!==c){c=null;break}"undefined"!=typeof c&&(thi... |
/*! places UNRELEASED | © Algolia | github.com/algolia/places */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports ==... |
/**
* @preserve
* Project: Bootstrap Hover Dropdown
* Author: Cameron Spear
* Version: v2.2.0
* Contributors: Mattia Larentis
* Dependencies: Bootstrap's Dropdown plugin, jQuery
* Description: A simple plugin to enable Bootstrap dropdowns to active on hover and provide a nice user experience.
* License: MIT
* ... |
/*! UIkit 2.16.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (jQuery && UIkit) {
component = addon(jQuery, UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-htmleditor", ["uikit"], function(){
r... |
/*!
SerializeJSON jQuery plugin.
https://github.com/marioizquierdo/jquery.serializeJSON
version 2.6.2 (May, 2015)
Copyright (c) 2012, 2015 Mario Izquierdo
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
... |
/* ===========================================================
* es.js
* Spanish translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Moisés Márquez
* Email : moises.marquez.g@gmail.com
*/
jQuery.trumbowyg.langs.es={viewH... |
/**
* Module dependencies
*/
var should = require('should');
var $Sails = require('../helpers/sails');
describe('`sails.router`', function() {
var sails = $Sails.load.withAllHooksDisabled();
it('should be exposed on the `sails` global', function () {
sails
.router
._priv... |
/*!
* type-is
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module dependencies.
* @private
*/
var typer = require('media-typer')
var mime = require('mime-types')
/**
* Module exports.
* @public
*/
module.exports = typeofrequest... |
if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);
Template.hello.helpers({
counter: function () {
return Session.get('counter');
}
});
Template.hello.events({
'click button': function () {
// increment the counter when button is clicked
Session.set... |
"use strict";!function(e){void 0===e.cs&&(e.cs={"mejs.plural-form":8,"mejs.download-file":"Stáhnout soubor","mejs.fullscreen":"Celá obrazovka","mejs.play":"Přehrát","mejs.pause":"Pozastavit","mejs.time-slider":"Posuvný běžec nastavení času","mejs.time-help-text":"Použijte tlačítka se šipkami doleva / doprava pro posun ... |
CKEDITOR.plugins.setLang("div","sl",{IdInputLabel:"Id",advisoryTitleInputLabel:"Predlagani naslov",cssClassInputLabel:"Razredi slogovne predloge",edit:"Uredi div",inlineStyleInputLabel:"Slog v vrstici",langDirLTRLabel:"Od leve proti desni (LTR)",langDirLabel:"Smer jezika",langDirRTLLabel:"Od desne proti levi (RTL)",lan... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
// Copyright 2010 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
(function (api, window, document){
var
encode = window.encodeURIComponent,
FormData = window.FormData,
Form = function (){
this.items = [];
}
;
Form.prototype = {
append: function (name, blob, file, type){
this.items.push({
name: name
, blob: blob && blob.blob || (blob == void 0 ? '' : b... |
/**
* @fileoverview An inherited `glob.GlobSync` to support .gitignore patterns.
* @author Kael Zhang
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const Sync = requi... |
//! moment.js locale configuration
//! locale : Welsh (cy)
//! author : Robert Allen
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment']... |
/* version: 0.3.31, born: 17-10-2014 23:48 */
var Organic = (function(w){
var o = {
helpers: {},
lib: {
atoms: {},
molecules: {}
}
}
var require = function(v) {
if(v == "./helpers/extend") {
return o.helpers.extend;
} else if(v == "/helpers/snippets" || v == "../../helpers/snippets") {
return o.helpers.sni... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var page = WinJS.UI.Pages.define("/html/scenario6.html", {
ready: function (element, options) {
document.getElementById("Delete").addEventListener("click", Delete_Click, false);
}
});
... |
;(function(define){define(function(require,exports,module){
function denodeify(nodeStyleFunction, filter) {
'use strict';
return function() {
var self = this;
var functionArguments = new Array(arguments.length + 1);
for (var i = 0; i < arguments.length; i += 1) {
functionArguments[i] = arguments[i]... |
module.exports = function(hljs) {
var Q_KEYWORDS = {
keyword:
'do while select delete by update from',
constant:
'0b 1b',
built_in:
'neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _seq = require('./seq');
var _seq2 = _interopRequireDefault(_seq);
var _baseRest = require('lodash/_baseRest');
var _baseRest2 = _interopRequireDefault(_baseRest);
function _interopRequireDefault(obj) { return obj && obj.__esModule... |
/*!
* Qoopido.js library v3.2.7, 2014-5-19
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(t){window.qoopido.register("support/element/canvas/todataurl",t,["../../../support","../canvas"])}(function(t,e,n,o,a,s,r){"use strict";var c=t.support;return c.addTest... |
Accounts.validateNewUser(function (user) {
if (user.profile && user.profile.invalidAndThrowException)
throw new Meteor.Error(403, "An exception thrown within Accounts.validateNewUser");
return !(user.profile && user.profile.invalid);
});
Accounts.onCreateUser(function (options, user) {
if (options.testOnCrea... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("echarts"));
else if(typeof define === 'function' && define.amd)
define(["echarts"], factory);
else if(typeof exports === 'object')
exports["bmap"] = factor... |
import {createValidator, required, maxLength, integer, oneOf} from 'utils/validation';
export const colors = ['Blue', 'Fuchsia', 'Green', 'Orange', 'Red', 'Taupe'];
const widgetValidation = createValidator({
color: [required, oneOf(colors)],
sprocketCount: [required, integer],
owner: [required, maxLength(30)]
}... |
var OpenLayers={VERSION_NUMBER:"Release 2.12",singleFile:!0,_getScriptLocation:function(){for(var e,t,i=RegExp("(^|(.*?\\/))(OpenLayers[^\\/]*?\\.js)(\\?|$)"),n=document.getElementsByTagName("script"),r="",s=0,o=n.length;o>s;s++)if(e=n[s].getAttribute("src"),e&&(t=e.match(i))){r=t[1];break}return function(){return r}}(... |
/* @flow */
'use strict';
const _ = require('lodash');
const parseAmount = require('./amount');
import type {Amount, RippledAmount} from '../../common/types.js';
import type {GetPaths, RippledPathsResponse} from '../pathfind-types.js';
function parsePaths(paths) {
return paths.map(steps => steps.map(step =>
_.om... |
(function () {
var STEP_STOP = 15;
var root = typeof self == 'object' && self.self === self && self ||
typeof global == 'object' && global.global === global && global ||
this;
var previousNba = root.nba;
var nba = function(array) {
if (!array.hasOwnProperty('length')... |
class Model_NPC extends Model_Abstract_Entity {
}
ObjectHelper.extend(Model_NPC.prototype, {
url: '/npcs',
name: 'npc',
fields: ObjectHelper.extend({
id: {
type: Enum_FieldTypes.KEY
},
name: {
type: Enum_FieldTypes.STRING,
max_length: 255
},
subtype: {
type: Enum_FieldTypes.INT,
... |
// http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html#mongoclient-connection-pooling
var db = exports.db = require('monk')(process.env.MONGO_URL);
var articles = exports.articles = db.get(process.env.ARTICLES_COLLECTION)
, comments = exports.comments = db.get(process.env.COMMENTS_COLLECTIO... |
import React from 'react'
import Helmet from 'react-helmet'
import { ThemeProvider } from 'styled-components'
import Online from 'shared/components/Online'
import Offline from 'shared/components/Offline'
import InjectGlobalCSS from 'shared/components/InjectGlobalCSS'
const App = ({online, theme, _text}) => {
... |
import mod1889 from './mod1889';
var value=mod1889+1;
export default value;
|
module.exports = {
Container: require('./SVGContainer'),
Controller: require('./SVGController'),
Creep: require('./SVGCreep'),
Extension: require('./SVGExtension'),
Extractor: require('./SVGExtractor'),
KeeperLair: require('./SVGKeeperLair'),
Lab: require('./SVGLab'),
Link: require('./SVGLink'),
Mineral: requi... |
var express = require('express');
var path = require('path');
var http = require('http');
var app = express();
var Twitch = require('twit');
var html_dir = 'views/';
/*var session = require('express-session');
var MongoStore = require('connect-mongo')(session);
app.use(session({
secret: 'foo',
store: new Mongo... |
'use strict'
/* global describe, it */
const expect = require('unexpected')
const proxyquire = require('proxyquire').noPreserveCache()
const EventEmitter = require('events')
const caches = require('../../lib/caches')
const forks = {}
class Child extends EventEmitter {
constructor () {
super()
this.wasDisco... |
import 'mocha';
import {assert} from 'chai';
import Asset from '../src/asset';
import Percent from '../src/percent';
import USD from '../src/usd'; const $ = USD;
import Portfolio from '../src/portfolio';
import Immutable from '../src/immutable';
describe('Portfolio', () => {
describe('#constructor', () => {
it('... |
'use strict';
var gulp = require('gulp');
var watch = require('gulp-watch');
var config = require('../config');
var _ = require('lodash');
function build() {
gulp.start('build');
}
module.exports = function () {
build();
var watchable = _.chain(config.paths).omit('dest').values().value();
return watch(watcha... |
var chai = require('chai');
var assert = chai.assert;
var Immy = require('../../src/immy');
describe('ListPatches.Add', function () {
describe('#apply()', function () {
it('should add the given value at the given index', function () {
var array = [0, 1, 2, 3];
var patch = new Immy.L... |
// REDEEMING /////////////////////////////////////////////////////////
window.handleRedeemResponse = function(data, textStatus, jqXHR) {
if(data.error) {
alert('Couldn’t redeem code. It may be used up, invalid or you have redeemed it already. (Code: '+data.error+')');
return;
}
var text = 'Success! Ho... |
"use strict";
var ViewRendererPlugin;
/**
* The view renderer plug-in is used to render the main view and minimap. The
* plug-in sends the <code>viewReady</code> event with the current
* <code>View</code> instance once the view has been initialized.
*/
ViewRendererPlugin = function () {
var view, map, x, y, bo... |
import mod155 from './mod155';
var value=mod155+1;
export default value;
|
import * as React from 'react';
import { expect } from 'chai';
import { createClientRender, createMount, describeConformanceV5 } from 'test/utils';
import Icon, { iconClasses as classes } from '@material-ui/core/Icon';
describe('<Icon />', () => {
const render = createClientRender();
const mount = createMount();
... |
'use strict';
module.exports = (function () {
return require('./env/' + process.env.NODE_ENV);
})();
|
version https://git-lfs.github.com/spec/v1
oid sha256:b30a7ec010b2352452ab09324c5ac80e8fc97de454b937cd62efb1a461c769cb
size 83171
|
version https://git-lfs.github.com/spec/v1
oid sha256:0ae681debd6acdfeb3fb1958cc9a5ce43236201b48ca063230d5057f5e2809e9
size 21510
|
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
function get(n, m, s, prices) {
var store = {}
for (var c in prices) {
if (prices.hasOwnProperty(c)) {
prices[c] = Math.min(prices[c].add, prices[c].remove)
}
}
function f(i, j) {
var key = i + '-' + j
if (store[key]) return store[key];
var min = 0
... |
/**
* A very basic Nightwatch custom command. The command name is the filename and the
* exported "command" function is the command.
*
* Example usage:
* browser.customExecute(function() {
* console.log('Hello from the browser window')
* });
*
* For more information on writing custom commands see:
* ... |
import { observable, action } from 'mobx'
const <%= name %> = observable({
})
<%= name %>.replaceMeWithAnAction = action(() => {
})
export default <%= name %>
|
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { propType } from 'v2/util/inlinedGraphqlAnywhere'
import { graphql } from '@apollo/client/react/hoc'
import styled from 'styled-components'
import isEmail from 'lib/is_email.coffee'
import collaboratorSearchResultsQuery from 'v2/compo... |
'use strict';
const Fs = require('fs');
const Hoek = require('hoek');
const internals = {};
exports.Player = module.exports.Player = internals.Player = function (id) {
Hoek.assert(this instanceof internals.Player, 'Player must be instantiated using new');
this.id = id;
};
exports.Team = module.exports.Team... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
var searchData=
[
['ddbuilder',['DdBuilder',['../classtdzdd_1_1DdBuilder.html',1,'tdzdd']]],
['ddbuildermp',['DdBuilderMP',['../classtdzdd_1_1DdBuilderMP.html',1,'tdzdd']]],
['dddumper',['DdDumper',['../classtdzdd_1_1DdDumper.html',1,'tdzdd']]],
['ddeval',['DdEval',['../classtdzdd_1_1DdEval.html',1,'tdzdd']]],
... |
import ApplicationRoutes from "./ApplicationRoutes.js";
export default ApplicationRoutes;
|
/**
* TIPOS DE ACCIONES
*
*/
// Muestra el loading
export const SHOW_LOADING = 'SHOW_LOADING';
// Oculta el loading
export const HIDDEN_LOADING = 'HIDDEN_LOADING';
// Deshabilita el loading para que no se pueda mostrar
export const DISABLE_LOADING = 'DISABLE_LOADING';
// Vuelve a habilitar el loading
export const ... |
/**
* Created by chris on 1/9/17.
*/
import {Observable} from 'rxjs';
import {getCurrentUserId, getUser, getCurrentGameId, getGame, getGamePlayerFromUser} from 'utils/stateTraversal';
import {gameCanStart, checkForVictory} from 'utils/validators';
import {wordList, CardColor, CardState} from 'models/card';
import {... |
'use strict';
var factory = require('../octicon.js');
// This is an auto-generated ES2015 icon from the modularize script. Please do not modify this file.
var quote = factory('quote', 14, 16, {"fill-rule":"evenodd","d":"M6.16 3.5C3.73 5.06 2.55 6.67 2.55 9.36c.16-.05.3-.05.44-.05 1.27 0 2.5.86 2.5 2.41 0 1.61-1.03 2.... |
describe('mobie.core.helpers', function () {
describe('Helpers', function () {
beforeEach(module('mobie.core.helpers'));
it('should generate an id', function () {
assert.equal('number', typeof nextId())
});
});
}); |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isEmptyObjectOrArray = exports.makeFlattenedShallow = undefined;
var _typeOf = require('type-of');
var _typeOf2 = _interopRequireDefault(_typeOf);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defa... |
var React = require('react');
var Reflux = require('reflux');
var Example3Store = require('../../stores/example3Store');
var InputAChangeActions = require('../../actions/InputAChangeAction');
var Child1 = React.createClass({
mixins: [Reflux.connect(Example3Store, 'store')],
handleChange: function(name, event... |
var pump__8py_8js =
[
[ "pump_8py", "pump__8py_8js.html#a9e35fb16373682bd01b46640ceb90119", null ]
]; |
const choo = require('choo');
const html = require('choo/html');
const http = require('xhr');
const find = require('lodash/find');
const queryString = require('query-string');
const store = require('./utils/localstorage.js');
const scrollIntoView = require('scroll-into-view');
const app = choo();
const appURL = 'https... |
import {
CHECKFLOAT
} from './mutation-types.js'
export default {
checkFloat({ commit }, obj) {
// let regex = new RegExp('/^[+|-]?/d*/.?/d*$/')
// if (!regex.test(obj.value)) {
// return obj.cb(new Error('类型错误'))
// }
if (obj.value === '9090') {
obj.value = 9090
}
commit(CHECKFLOA... |
module.exports = function(grunt) {
grunt.initConfig({
jsbeautifier: {
files: [
"src/**/*.js",
"test/**/*.js",
"Gruntfile.js"
]
},
jshint: {
options: {
es3: true,
unused: true,... |
expect(getType(true)).toBe("boolean");
|
var repl = require("repl"),
count = 1;
// Ported from
// https://github.com/jgautier/firmata
function Repl(opts) {
if (!Repl.active) {
Repl.active = true;
if (!(this instanceof Repl)) {
return new Repl(opts);
}
// Store context values in instance property
// this will be used for man... |
version https://git-lfs.github.com/spec/v1
oid sha256:32e58cb27429f505009c74aaf7263f62d0b338cba2f925c5595c9f14a9467dfa
size 1533
|
var david = require('david');
var manifest = require('../../package.json');
var chalk = require('chalk');
david.getDependencies(manifest, function (er, deps) {
console.log(chalk.green.underline.bold('latest dependencies information for', manifest.name));
listDependencies(deps);
});
david.getDependencies(manifest,... |
import { expect } from "chai"
import Home from "../pages/home.page"
import MyCounterparts from "../pages/myCounterparts.page"
describe("Home page", () => {
describe("When checking the navigation items", () => {
it("Should see a link to my counterparts page when the user is an advisor", () => {
Home.open()
... |
/* globals cc */
(function () {
'use strict';
var GameController = require('./gameController'); // cylic(!)
var ScreenDimensions = require('./screenDimensions');
// Menu (initial screen)
//
var MenuLayer = cc.Layer.extend({
ctor: function () {
this._super();
cc.associateWithNative(th... |
var Vector = require('vector2d')
, utils
, topSpeed
;
function Mover(cx, canvas) {
utils = require('utils')(cx, canvas);
this.cx = cx;
this.canvas = canvas;
this.topSpeed = 5;
this.location = new Vector.ObjectVector(utils.halfX(), utils.halfY());
this.velocity = new Vector.ObjectVector(utils.range(-2, 2... |
import ButtonContainer from './Button.container';
export const route = {
routeName: 'Button',
screen: ButtonContainer
};
export default from './Button.component';
|
exports['utilPicker'] = function(assert) {
var done = assert.done || assert.async();
assert.expect(1);
assert.ok(1);
console.warn('no utilPicker tests!');
done();
};
|
import React, {Component} from 'react'
import List from 'react-toolbox/lib/list/List'
import ListItem from 'react-toolbox/lib/list/ListItem'
import Icon from 'react-toolbox/lib/font_icon/FontIcon'
import Tooltip from 'react-toolbox/lib/tooltip'
import Button from 'react-toolbox/lib/button/Button'
import ConfirmDeleteBu... |
const WebpackOnBuildPlugin = require('on-build-webpack')
const replace = require('replace')
const path = require('path')
const fs = require('fs')
// Workaround for https://github.com/ethereum/web3.js/issues/555:
module.exports = new WebpackOnBuildPlugin(function () {
const bundle = path.resolve(__dirname, '..', 'dis... |
/**
* API:
*
* ifNeeded([ignoreNativeAPNG bool]) → Promise()
* animateImage(img HTMLImageElement) → Promise()
*
* animateContext(url String, CanvasRenderingContext2D context) → Promise(Animation)
* parseBuffer(ArrayBuffer) → Promise(Animation)
* parseURL(url String) → Promise(Animation)
* checkNativeFeatures()... |
const nunjucksRender = require('gulp-nunjucks-render');
const cache = require('gulp-cached');
const flatmap = require('gulp-flatmap');
const site_data = require('./../site_data.js');
const nunjucksMarkdown = require('nunjucks-markdown');
const marked = require('marked');
const data = site_data.site_data();
marked.set... |
const { circumferenceOfACircle } = require("../lib");
describe("circumferenceOfACircle", () => {
test("circle with a radius of 10 to equal a circumference of 62.83", () => {
expect(circumferenceOfACircle(10)).toBe(62.83);
});
test("circle with a radius of 10 (passed as string) to equal a circumference of 62... |
var mongoose = require('mongoose');
var randtoken = require('rand-token');
var bcrypt = require('bcrypt-nodejs');
var deviceSchema = mongoose.Schema({
name : {type : String, required : true},
token : {type : String, required : true},
description : {type : String},
owner : {type : mongoose.Schema.Type... |
'use strict';
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const limiter = require('limiter');
const config = require('../../../shared/config');
const gcloudTranslate = require('@google-cloud/translate');
const gcloudVision = require('@google-cloud/vision');
co... |
/* =========================================================
* bootstrap-datepicker.js
* http://www.eyecon.ro/bootstrap-datepicker
* =========================================================
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
*
* Licensed under the Apache License, Version 2.0 (the "Lic... |
/*!
* Jinja Templating for JavaScript v0.1.7
* https://github.com/sstur/jinja-js
*
* This is a slimmed-down Jinja2 implementation [http://jinja.pocoo.org/]
*
* In the interest of simplicity, it deviates from Jinja2 as follows:
* - Line statements, cycle, super, macros and block nesting are not implemented... |
import path from 'path'
import fs from 'fs'
import images from 'images'
import _ from 'lodash'
import layout from 'layout'
import message from './message'
import { plainBgCSS, plainItemCss, keyframeCSS } from './template'
/**
* 合并图片、生成css
*/
export default class SpriteImage {
// 默认配置
config = {
... |
import React, { PropTypes } from 'react'
import { Link } from 'react-router'
// Imported Link from react-router which is an easy way to make a link that causes a route change
export default function QuizListItem (props) {
let handleClick = (event) => {
props.onClick(props.id)
}
return (
<div style={{curso... |
var assert = require('assert');
var Template = require('../lib/template');
var Config = require('../lib/config');
var Permalink = require('../lib/permalink');
describe('Template', function() {
var config = new Config({
layoutsDirectory: 'test/fixtures'
});
describe('#constructor', function() {
it('cre... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../../core/tsSupport/awaiterHelper ../../core/tsSupport/generatorHelper ../../core/tsSupport/assignHelper ../../request ../../core/Logger .... |
import styled from 'styled-components';
const Input = styled.input`
width: 50%;
height: 40px;
font-size: 16px;
color: #727272;
background-color: #403F44;
border: none;
border-radius: 2px;
padding-left: 18px;
padding-right: 18px;
font-family: 'Open Sans', sans-serif;
:focus {
background-color: #F1... |
import { apiProxyAxios } from '../../../../../../client/components/Task/utils'
export const updateInvestorDetails = (values) => {
const { id, investor_company_id } = values
return apiProxyAxios.patch(
`v4/large-investor-profile/${id}?investor_company_id=${investor_company_id}`,
values
)
}
|
'use strict';
angular.module('mean').controller('NotesController', ['$scope','$rootScope','$sce','$upload', '$stateParams','$http', '$location', 'Global', 'Notes', 'Comments', 'Classes','Socket',
function($scope,$rootScope, $sce, $upload, $stateParams, $http, $location, Global, Notes, Comments,Classes,Socket) {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, hashHistory, Link, Redirect } from 'react-router';
import Containment from './pages/containment';
import Dynamic from './pages/dynamic';
import HOC from './pages/hoc';
import Image from './pages/image';
import Handle from './pages/han... |
/* eslint-env mocha */
'use strict'
const hat = require('hat')
const { getDescribe, getIt, expect } = require('../utils/mocha')
const delay = require('delay')
module.exports = (common, options) => {
const describe = getDescribe(options)
const it = getIt(options)
describe('.files.touch', function () {
this.... |
var React = require('react-native');
var Dimensions = require('Dimensions');
var {
PixelRatio
} = React;
var Util = {
//单位像素
pixel: 1 / PixelRatio.get(),
//屏幕尺寸
size: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
},
//post
post: function (url, data, callb... |
var babel = require('../lib/gulp-blueprint-babel');
babel({
dependencies: [],
input: 'app.js',
browserify: {
debug: true,
basedir: 'app/client'
}
}); |
/*! Loop protect | (c) 2014 JS Bin | jsbin.mit-license.org */
/**
* Protect against infinite loops.
* Look for for, while and do loops, and insert a check function at the start of
* the loop. If the check function is called many many times then it returns
* true, preventing the loop from running again.
*/
if (typ... |
import log from "../log"
import execute from "./execute"
// End the current session and release the acquired connection
// to the connection pool.
export default function end() {
let d = process.domain
if (d == null ||
d.context == null ||
d.context.bardo == null) {
// TODO: Report an error that we... |
/*global define*/
define([
'../Core/Cartesian2',
'../Core/Cartesian3',
'../Core/Cartographic',
'../Core/defaultValue',
'../Core/defined',
'../Core/DeveloperError',
'../Core/EasingFunction',
'../Core/Math',
'./PerspectiveFrustum',
'./Perspec... |
import React from 'react'
import PropTypes from 'prop-types'
import {Platform} from 'react-native'
import Svg, {LinearGradient, Text, Defs, Stop} from 'react-native-svg'
Slogan.propTypes = {
fontSize: PropTypes.number,
width: PropTypes.number,
height: PropTypes.number
}
export default function Slogan ({fontSize... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.