code stringlengths 2 1.05M |
|---|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4 18h16V6H4v12zm14-2h-2v-2h2v2zm-8-6h8v2h-8v-2zm-4 0h2v2H6v-2zm0 4h8v2H6v-2z" opacity=".3" /><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h... |
version https://git-lfs.github.com/spec/v1
oid sha256:a3a880a32036375418717996f5c6c1e9e7803709d65e111d55b056998b45271f
size 2657
|
/**
Combodate input - dropdown date and time picker.
Based on [combodate](http://vitalets.github.com/combodate) plugin (included). To use it you should manually include [momentjs](http://momentjs.com).
<script src="js/moment.min.js"></script>
Allows to input:
* only date
* only time
* both date and time ... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
* @jest-environment node
*/
'use strict';
let createRenderer;
let PropTypes;
let React;
describe('ReactSh... |
const path = require('path');
const fs = require('fs');
const getTestConfig = require('../models/webpack-configs/test').getTestConfig;
function isDirectory(path) {
try {
return fs.statSync(path).isDirectory();
} catch (_) {
return false;
}
}
const init = (config) => {
// load Angular CLI config
if ... |
jQuery(document).ready(function ($) {
if (!$('.divi-100-article-card').length) {
return false;
} else {
$('.et_pb_blog_grid').find('.et_pb_post').each(function() {
var $this = $(this);
/**
* Adds article-card class to div
*/
$this
.addClass('article-card');
/*... |
'use strict'
const assert = require('assert')
const context = require('../../test-helpers/context')
describe('ctx.response.has(name)', () => {
it('should check a field value, case insensitive way', () => {
const ctx = context()
ctx.set('X-Foo', '')
assert.ok(ctx.response.has('x-Foo'))
assert.ok(ctx... |
export default {
he: {
name: "Hebrew",
dir: "rtl",
assessment: {
unansweredQuestionWarning: "Warning There are unanswered questions", // Warning displayed on last question if there are unanswered questions
leavingQuizPopup: "Don’t leave!", // Text displayed on javascript window alert when a st... |
function Control(selector) {
var self = this,
button = document.querySelector(selector);
button.onclick = function() {
self.onClick();
};
this.show = function () {
button.classList.remove(ViewState.HIDDEN);
};
this.hide = function () {
button.classList.add(ViewState.HIDDEN);
};
this.onClick = fun... |
'use strict';
/* jshint unused: false */
var should = require('chai').should();
var expect = require('chai').expect;
var _ = require('lodash');
var bitcore = require('../../..');
var Transaction = bitcore.Transaction;
var PrivateKey = bitcore.PrivateKey;
var Address = bitcore.Address;
var Script = bitcore.Script;
var... |
define( "JBrowse/View/FeatureGlyph/_FeatureLabelMixin", [
'dojo/_base/declare',
'dojo/_base/lang'
],
function(
declare,
lang
) {
return declare( null, {
/**
* Estimate the height and width, in pixels, of the given
* feature's label ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.01-1.07.86-1.... |
export auth from './auth'
export database from './database' |
const assert = require("assert");
const examples = require("./examples");
const base58 = require("..");
function exampleRunner(callback) {
Object.keys(examples).forEach(function(str) {
callback(str, examples[str]);
});
}
describe("Base58", function() {
before(function() {
var valid = true;
var count... |
;modjewel.define("weinre/client/Client", function(require, exports, module) { // Generated by CoffeeScript 1.3.3
var AutoConnect, Binding, Callback, Client, IDGenerator, IDLTools, InspectorBackendImpl, InspectorFrontendHostImpl, MessageDispatcher, RemotePanel, Weinre, WeinreClientEventsImpl, WeinreExtraTargetEventsImpl... |
const { isContributor } = require('./permissions');
module.exports = (model, userID) => {
if (model.anonymize && !isContributor(model, userID)) model.anonymize();
Reflect.deleteProperty(model, `_attachments`);
Reflect.deleteProperty(model, `_rid`);
Reflect.deleteProperty(model, `_self`);
Reflect.deleteProper... |
var v_nodeOrganizationCode = "";
var v_cp_code_99300 ="";
/**
* @함수명: onLoad
* @작성일: 2014. 09. 29.
* @작성자:
* @설명: 로딩 및 Event
* @param
*/
$(document).ready(function(){
//이벤트 등록
fnMakeEventComponent_99300();
v_cp_code_99300 = $("#login_cp_cd_99300").val();
//트리
fnMakeFtree99300();
... |
const errors = require('@tryghost/errors');
const should = require('should');
const sinon = require('sinon');
const crypto = require('crypto');
const fs = require('fs-extra');
const settingsCache = require('../../../../core/server/services/settings/cache');
const privateBlogging = require('../../../../core/frontend/app... |
import React from 'react'
import { connect } from 'react-redux'
import { withLazyReducer } from 'lazy-reducer'
import lazyCounterReducer, { increase, decrease } from './reducer'
const LazyCounter = props => {
return (
<div style={{ margin: '12px' }}>
LazyCounter result: <span style={{ fontWeigh... |
'use strict';
const forks = require('./forks');
const bundleTypes = require('./bundles').bundleTypes;
const UMD_DEV = bundleTypes.UMD_DEV;
const UMD_PROD = bundleTypes.UMD_PROD;
const UMD_PROFILING = bundleTypes.UMD_PROFILING;
// For any external that is used in a DEV-only condition, explicitly
// specify whether it... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.be.tarask');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Дадаць камэнтар";
Blockly.Msg.CHANGE_VALUE_TITLE = "Зьмяніць значэньне:";
Blockly.Msg.CLEAN_UP = "Ачысьціць блёкі";
Blockly.Msg.COLLAPSE_ALL = "Згарн... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('uicolor','cy',{uicolor:{title:"Dewisydd Lliwiau'r UI",preview:'Rhagolwg Byw',config:"Gludwch y llinyn hwn i'ch ffeil config.js",predefined:"Se... |
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var gulp = require('gulp'),
p... |
var searchData=
[
['hammersley_2eh',['Hammersley.h',['../_hammersley_8h.html',1,'']]]
];
|
{
"FullName":"John Cleese",
"LastName":"Cleese",
"FirstName":"John",
"EmailAddress":"john@montypython.com",
"OfficePhone":"330.123.4567",
"MobilePhone":"330.987.6543"
} |
(function() {
if(!mocha) {
throw new Exception("mocha library does not exist in global namespace!");
}
/*
* Mocha Events:
*
* - `start` execution started
* - `end` execution complete
* - `suite` (suite) test suite execution started
* - `suite end` (suite)... |
module.exports = function( grunt ) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/*\n <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n' +
' Built: <%= grunt.template.today("yyyy-mm-dd hh:mm") %> - ' + '<%= pkg.homepage %>\n' +
' Copyright (c) <%= grunt.templat... |
var gulp = require("gulp"),
git = require("gulp-git"),
bump = require("gulp-bump"),
paths = require("./paths.js"),
filter = require("gulp-filter"),
tag_version = require("gulp-tag-version"),
runSequence = require("run-sequence").use(gulp),
spawn = require("child_process").spawn;
function inc(importance) ... |
/* @ngInject */
function AuthLoginDirectiveFactory(AuthService) {
return {
restrict: 'A',
link: function(iScope, iElement, iAttributes) {
var _form = null;
var credentials = iScope[ iAttributes['authLogin'] ];
var resolve = iScope.$eval( iAttributes['authLoginOnResolve'] );
... |
var palettes = require('../palettes.json');
exports.randomPalette = function(req, res) {
// get a random palette from the top ones
var randomPalette = palettes[Math.floor(palettes.length * Math.random())];
//var palette = palettes[randomPalette];
res.json(randomPalette);
} |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
var host = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '')
window.getFileName = function(dir, testCaseItem) {
var file = testCaseItem.format;
if (testCaseItem.directory) file += '/' + testCaseItem.directory;
file += '/' + testCaseItem.file;
return host + '/test/' + dir + '/' + ... |
'use strict';
/**
* Module dependencies.
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Deals Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/deals',
permissi... |
function CodeFlask(indent) {
this.indent = indent || " ";
}
CodeFlask.prototype.run = function(selector, opts) {
var target = document.querySelectorAll(selector);
if(target.length > 1) {
throw 'CodeFlask.js ERROR: run() expects only one element, ' +
target.length + ' given. Use .runAll() ... |
'use strict';
yeomanApp.controller('AlertsCtrl'
, ['$scope', '$rootScope', 'AlertService', 'AlertFactory', 'EditAlertService'
, function($scope, $rootScope, AlertService, AlertFactory, EditAlertService) {
$scope.Alerts = AlertService.Alerts;
/**
* Creates a new alert
*/
$scope.AddAlert = fu... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. 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.
*/
import FailedTestsInteractivePlugin from '../FailedTestsInteractive';
describe('FailedTestsInteractive', () ... |
'use strict';
ApplicationConfiguration.registerModule('app.ecommerce');
|
/**
* View for "avatar view"
* @module views/avatars/AvatarViewView
*/
var AvatarsViewView = {
/**
* Renders the "avatar" view
*/
render: function(){
$('body').addClass('plugpro-avatars');
},
/**
* Destroys the "avatar" view
*/
destroy: function(){
$('body').removeClass('plugpro-avatars');
}
};
... |
import alt from '../libraries/alt';
class StatsActions {
constructor() {
this.generateActions(
'getStatsSuccess',
'getStatsFail'
);
}
getStats() {
$.ajax({ url: '/api/stats' })
.done((data) => {
this.actions.getStatsSuccess(data);
})
.fail((jqXhr) => {
t... |
describe('Shopify#cancellation-request', () => {
'use strict';
const expect = require('chai').expect;
const fixtures = require('./fixtures/cancellation-request');
const common = require('./common');
const shopify = common.shopify;
const scope = common.scope;
afterEach(() => expect(scope.isDone()).to.b... |
/// @argument {type} name-of-variable - argument alias
/// @param {type} name-of-variable - param alias
/// @parameter {type} name-of-variable - parameter alias
|
value |> do {
try { JSON.parse(%); }
catch (error) { console.error(%); }
}
|
var events = require('events');
var util = require('util');
var Adder = exports.Adder = function() {
events.EventEmitter.call(this);
};
util.inherits(Adder, events.EventEmitter);
Adder.prototype.add = function(a, b) {
this.emit('result', a + b);
};
|
var React = require('react');
var blacklist = require('blacklist');
var classNames = require('classnames');
module.exports = React.createClass({
displayName: 'RadioGroup',
propTypes: {
alwaysValidate: React.PropTypes.bool,
className: React.PropTypes.string,
inline: React.PropTypes.bool,
label: React.PropType... |
const config = require('../../jest.config');
module.exports = {
...config,
roots: [__dirname],
};
|
var fs= require('fs')
, path = require('path')
, colorsTmpl = require('colors-tmpl')
function credits () {
fs.readFile(path.join(__dirname, './credits.txt'), 'utf8', function (err, data) {
if (err)
throw err
console.log(colorsTmpl(data))
})
}
module.exports = credits
|
/**
* Copyright 2016 Facebook, Inc.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrat... |
var Todo = Backbone.Model.extend({
validate: function (attrs) {
if (attrs.title.length < 1) {
alert("no title provided");
return "no title provided";
}
if (attrs.description.length < 1) {
alert("no title provided");
return "no description provided"; // need to return something for... |
/*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
/**
* AngularUI - The companion suite for AngularJS
* @version v0.3.2 - 2012-12-18
* @link http://angular-ui.github.com
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
angular.module('ui.config', []).value('ui.config', {});
angular.module('ui.filters', ['ui.config']);
angular.module('ui.directi... |
/*global $:false , console:false*/
'use strict';
function getURLFromLyricWiki(artist, title)
{
if(artist === 'Not found') artist ='';
$
.ajax({
url : 'http://lyrics.wikia.com/api.php',
data : {
artist : artist,
song : title,
fmt : 'xml',
action:'lyrics',
func:'getSong'
},
... |
if (typeof JSDOC == "undefined") JSDOC = {};
/**
Create a new DocComment. This takes a raw documentation comment,
and wraps it in useful accessors.
@class Represents a documentation comment object.
*/
JSDOC.DocComment = function(/**String*/comment) {
this.init();
if (typeof comment != "undefined") {
... |
import React from 'react'
import Navbar from 'containers/Navbar/Navbar'
import classes from './CoreLayout.scss'
import 'styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className={classes.container}>
<Navbar />
<div className={classes.children}>
{children}
</div>
</div>
)
Cor... |
import nem from 'nem-sdk';
class createMosaicCtrl {
/**
* Initialize dependencies and properties
*
* @params {services} - Angular services to inject
*/
constructor(Wallet, Alert, DataStore, $filter, $timeout) {
'ngInject';
//// Module dependencies region ////
this... |
idrinth.observer = {
/**
*
* @type MutationObserver[]
*/
list: {},
/**
*
* @param {MutationRecord[]} mutations
* @param {boolean} isPrivate
* @returns {undefined}
*/
handle: function(mutations, isPrivate) {
/**
*
* @param {HTMLElement} element
... |
import run from 'ember-metal/run_loop';
import EmberView from 'ember-views/views/view';
import compile from 'ember-template-compiler/system/compile';
import { set } from 'ember-metal/property_set';
import o_create from 'ember-metal/platform/create';
import { runAppend, runDestroy } from "ember-runtime/tests/utils";
v... |
import m from 'mithril';
import h from '../h';
import adminUser from './admin-user';
const adminUserItem = {
view: function({state, attrs}) {
return m(
'.w-row', [
m('.w-col.w-col-4', [
m(adminUser, attrs)
])
]
);
}
};
... |
import React from 'react'
import cssm from 'react-css-modules'
import cx from 'classnames'
import { Raw } from '../../components'
import homeHtml from './home.md'
import * as readmes from './readmes.js'
import ComponentList from './ComponentList.js'
import ComponentView from './ComponentView.js'
import Playground fr... |
/*! jQuery UI integration for DataTables' Responsive
* ©2015 SpryMedia Ltd - datatables.net/license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery', 'datatables.net-jqui', 'datatables.net-responsive'], function ($) {
return factory($,... |
var el = d3.select('#chart-mean'),
margin = {top: 0, right: 0, bottom: 0, left: 0}, // margin used for axis
elWidth = parseInt(el.style('width'), 10),
elHeight = parseInt(el.style('height'), 10),
width = elWidth - margin.right - margin.left,
height = elHeight - margin.top - margin.bottom,
fillColor = '#2d32... |
'use strict';
var app = angular.module('resume-pages', []);
app.directive('aboutMoser', function(){
return {
restrict: 'E',
templateUrl: 'views/resume/about-moser.html'
};
});
app.directive('plansTimeline', [ '$http', function($http){
return {
restrict: 'E',
templateUrl: 'views/resume/plans.html',
con... |
import assert from 'assert';
import driver from '../chromeDriver';
import editPageFactory from '../pages/EditPage';
describe('Edit Page', () => {
const EditPage = editPageFactory('http://localhost:8083/#/posts/5')(driver);
beforeEach(async () => await EditPage.navigate());
describe('TabbedForm', () => {
... |
global.toTitleCase = function(str){return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});}
global.replaceAll = function(find, replace, str) {return str.replace(new RegExp(find, 'g'), replace);}
global.WordCount = function(str) { return str.split(" ").length;}
g... |
export default function() {
this.After(function() {
require.clear('app/');
});
} |
/*eslint-env node */
module.exports = function (response) {
response.on('error', function(e) {
console.log('--- HANDLE_RESPONSE: ')
console.error(e);
});
response.on('data', function() {
// we don't care about data here, but have to listen for it.
});
response.on('end', function() {
swi... |
'use strict';
var EventEmitter = require('events').EventEmitter;
var apply = function apply(obj) {
obj._emitter = new EventEmitter();
obj._emitterProxy = function (event, args) {
obj._emitter[event].apply(obj._emitter, args);
};
obj.addListener = function () {
obj._emitterProxy('addL... |
import {
defaultAction,
} from '../actions';
import {
DEFAULT_ACTION,
} from '../constants';
describe('Tags actions', () => {
describe('Default Action', () => {
it('has a type of DEFAULT_ACTION', () => {
const expected = {
type: DEFAULT_ACTION,
};
expect(defaultAction()).toEqual(ex... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Offsets the Ellipse by the values given in the `x` and `y` properties of the Point object.
*
* @function Phaser.Geom.Ellipse.OffsetPoin... |
/*Chinese (Simplified, PRC) locale*/
webix.i18n.locales["zh-CN"] = {
groupDelimiter:",",
groupSize:3,
decimalDelimiter:".",
decimalSize:2,
dateFormat:"%Y/%m/%j",
timeFormat:"%G:%i",
longDateFormat:"%Y'年'%m'月'%j'日'",
fullDateFormat:"%Y'年'%m'月'%j'日' %G:%i",
am:["上午","上午"],
pm:["下午","下午"],
price:"¥{... |
import React from 'react'
import Icon from 'react-icon-base'
const FaGoogle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20.1 17.5h16.2q0.3 1.5 0.3 2.9 0 4.8-2 8.7t-5.8 5.9-8.7 2.1q-3.5 0-6.6-1.3t-5.5-3.7-3.7-5.4-1.3-6.7 1.3-6.7 3.7-5.4 5.5-3.7 6.6-1.3q6.7 0 11.5 4.4l-4.6 4.5q-2.8-2.6-6... |
'use strict';
// <%= humanizedModuleName %> module config
/**
* @ngdoc object
* @name <%= slugifiedModuleName %>.config
* @description <%= slugifiedModuleName %> description
*/
angular
.module('<%= slugifiedModuleName %>')
.config([
/**
* @ngdoc event
* @name <%= slugifiedModuleN... |
var searchData=
[
['head',['head',['../structgraph.html#a41bbb7c4402ab2357a1e1b5ab7f2fd4c',1,'graph']]]
];
|
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
var test = require('tap').test;
var log4js = require('../lib/log4js_stub');
var Route = require('../lib/route');
///--- Tests
test('throws on missing options', function(t) {
t.throws(function() {
return new Route();
}, new TypeError('options (Objec... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 15c-.55 0-1 .45-1 1v3c0 1.1.9 2 2 2h3c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1-.45-1-1v-2c0-.55-.45-1-1-1zm1-9c0-.55.45-1 1-1h2c.55 0 1-.45 1... |
/*
* Author: Digital Zoom Studio
* Website: http://digitalzoomstudio.net/
* Portfolio: http://codecanyon.net/user/ZoomIt/portfolio
* Version: 2.01
*/
(function($) {
$.fn.prependOnce = function(arg, argfind) {
var _t = $(this) // It's your element
// console.info(argfind);
if(typeof(ar... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z" /></g></React.Fragment>
, 'TurnedInOutlined');
|
export { LocalConnector } from './tangojs-connector-local/LocalConnector'
|
// FIXME not work in resetPassword.jsp
Ext.define('MyApp.util.Validator', {
singleton : true,
alternateClassName : [ 'MyApp.Validator' ],
// constructor : function() {
// },
noSpecialChar : function(value) {
if (/[^a-zA-Z0-9]/.test(value)) {
return 'Only allow a-z, A-Z, and 0-9';
}
return true;
},
not... |
/**
*
* Remove
*/
import React from 'react';
import styles from './styles.scss';
const Remove = (props) => <span className={styles.remove} {...props} />;
export default Remove;
|
var app = require('../');
var should = require('should');
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
[1,2,3].indexOf(5).should.equal(-1);
[1,2,3].indexOf(0).should.equal(-1);
})
})
})
|
//handle messages coming from server socket
$(function(){
pm2d.events.on('announce', function(msg){
console.log(JSON.stringify(msg));
if (msg.error) {
noty({text: msg.error, type: 'error', timeout: 4000});
};
if (msg.success) {
noty({text: msg.success, type: 'success', timeout: 4000})
... |
version https://git-lfs.github.com/spec/v1
oid sha256:a0ce78359d3e22839c61dfe7595a52e28ef3808a47ce74b520ad536a75f41858
size 6437
|
/* ------------------------------------------------------------------------
Modified by TrueThemes
Developers:
- To uncompress this file check out: http://jsbeautifier.org/
- We've Added <span> to direction nav and removed "next/prev text" for easier FontAwesome integration
- Search for directionNavScaffold to adjus... |
/* eslint-disable max-len */
/**
* Playground
*
* The playground with UI fuzz testing
*/
import React, { PropTypes } from 'react';
import { VelocityComponent } from 'velocity-react';
// import Frame from 'react-frame-component';
// import map from 'lodash/map';
import reactDOM from 'react-dom';
import IFrame fr... |
'use strict';
// this should be the entry point to your library
module.exports = {};
|
/**
* H3 class
*/
global.H3 = CLASS({
preset : function() {
'use strict';
return DOM;
},
params : function() {
'use strict';
return {
tag : 'h3'
};
}
});
|
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M3 15h.78c.55-.61 1.34-1 2.22-1s1.67.39 2.22 1H15V6H3v9z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M17 8V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 ... |
import React from 'react';
import Relay from 'react-relay';
import MyComponent from "./my-component";
const relayComponent = Relay.createContainer(
MyComponent,
{
fragments: {
ship: () => Relay.QL`
fragment on Ship {
name
}
`,
}
}
);
export default relayComponent;
|
define(function() {
var URL = require('er/URL');
var url = 'http://www.baidu.com/mypath#myhash~myquery=diaoshi';
var path = 'http://www.baidu.com/mypath#myhash';
describe('URL', function() {
it('should export `parse` method', function() {
expect(URL.parse).toBeOfType('function')... |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('angularjs-cordova generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
|
/*
* Name: Notification Dialog
* Date: 04 June 2014
* Author: Pir Abdul Wakeel
* Description: Used to fetch all notifications , anouncement
* Dependency: Notificaiton Model
*/
define(['backbone', 'services/models/service'], function (Backbone, ModelService) {
'use strict';
return Backbone.Collection.extend({... |
var test = require('tape');
var grunt = require('grunt');
test('build tape specs', function(t) {
t.plan(2);
var actual_base = grunt.file.read('test/fixtures/specs/base_tapeSpec.js');
var expected_base = grunt.file.read('test/fixtures/expected/base_tapeSpec.js');
var actual_edge = grunt.file.read('test/fixtures... |
module.exports={A:{A:{"1":"B","2":"M D H mB","8":"F A"},B:{"1":"C E q L O I J K"},C:{"1":"0 1 2 3 4 6 8 9 q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB","2":"5 jB AB G M D H F A B C E eB cB"},D:{"1":"0 1 2 3 4 6 8 9 X Y Z a b c d f g h i j k l m n o p N r s... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Group = require('./Group');
var GameObjectFactory = require('../GameObjectFactory');
/**
* Creates a new Group Game Object and adds it to ... |
const favicons = require("../src");
const test = require("ava");
const { snapshotManager } = require("ava/lib/concordance-options");
const { factory } = require("concordance-comparator");
const { logo_png } = require("./util");
const { Image, snapshotResult } = require("./Image");
snapshotManager.plugins.push(factor... |
define([
'./AdapterRegistry',
'./Deferred',
'./Evented',
'./Stateful',
'./_base/all',
'./aspect',
'./cache',
'./cldr/monetary',
'./cldr/supplemental',
'./colors',
'./currency',
'./date',
'./date/locale',
'./date/stamp',
'./debounce',
'./errors/all',
'./fx/easing',
'./i18n',
'./io-query',
'./json',
... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.testReset = testReset;
exports.default = exports.styles ... |
'use strict';
var bot = require('../'),
led1 = new bot.Led(bot.pins.p9_26),
led2 = new bot.Led(bot.pins.p9_27);
bot.once('ready', [led1, led2], function () {
led1.blink(500, 500); // Blink at 1Hz. Cycle = 1000ms, on for 500ms, off for 500ms.
led2.blink(1, 19); // Blink at 50Hz. Cycle = 20ms, on for 1ms, of... |
/* global module:false */
module.exports = function(grunt) {
var port = grunt.option('port') || 8888;
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd... |
var util = require('racer').util
, viewPath = require('./viewPath')
, extractPlaceholder = viewPath.extractPlaceholder
, dataValue = viewPath.dataValue
, ctxPath = viewPath.ctxPath
, pathFnArgs = viewPath.pathFnArgs
, setBoundFn = viewPath.setBoundFn
, arraySlice = [].slice
exports.splitEvents = splitEve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.