code
stringlengths
2
1.05M
/** * Global config setters/getters. Chainable ;) * * @usage * config.duration(500) // * config.duration() // => 500 * config.duration(600).duration() // 600 */ // Number of millseconds for each message to last var _duration = 10000; /** * (s|g)etter for the duration * * @parmam {int} ms * @return {this|in...
/** * This method start authentication workflow. * It should be called by application which require authentication. * * Author: Yuriy Movchan Date: 11/06/2013 */ var uuid = require('uuid'); var async = require('async'); var oxutil = require('../util/util.js'); var state = require('../shared/state.js'); var push =...
const { yellow, cyan, gray } = require('chalk'); const EslintCLI = require('eslint').CLIEngine; const eslintConfig = require('../config/eslint/eslintConfig'); const runESLint = ({ fix = false, paths }) => new Promise((resolve, reject) => { console.log(cyan(`${fix ? 'Fixing' : 'Checking'} code with ESLint`)); ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
import NumeralFieldComponent from './Numeral' const numeral = global.numeral if (!numeral) { throw new Error('Numeral is required in global variable') } export default class MoneyComponent extends NumeralFieldComponent { unformatValue(label) { return label === '' ? undefined : numeral._.stringToNumber(label) ...
var gulp = require("gulp"); var util = require("gulp-util"); var config = require("../config") gulp.task("watch", () => { gulp.watch(`${config.src.ts}`, ["compile:ts"]).on("change", reportChange).on("error", swallowError); gulp.watch(`${config.test.files}`, ["compile:test"]).on("change", reportChange).on("error"...
var gulp = require('gulp'), plumber = require('gulp-plumber'), browserify = require('gulp-browserify'), concat = require('gulp-concat'), gulpif = require('gulp-if'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), stylish = require('jshint-stylish'), sequence = require(...
var gulp = require('gulp'); var sass = require('gulp-sass'); var browserSync = require('browser-sync'); var useref = require('gulp-useref'); var uglify = require('gulp-uglify'); var gulpIf = require('gulp-if'); var cssnano = require('gulp-cssnano'); var imagemin = require('gulp-imagemin'); var cache = require('gulp-cac...
(function () { var Demo = { init: function () { this.syntaxHighlight(); this.sticky(); }, syntaxHighlight: function () { hljs.initHighlighting(); }, sticky: function () { var $sticky = $('[data-sticky]'); $sticky....
var Tile = function (type, x, y) { this.type = type; this.tint = 0; this.hover = false; this.isAllowed = undefined; this.isAllowedForBeat = undefined; this.x = x; this.y = y; this.graphic = new fabric.Rect({ left: Tile.size * x, top: Tile.size * y, fill: type === Tile.TileType.NONPLAYABLE ?...
define( 'type.Integer', { // class configuration alias : 'int integer', extend : __lib__.type.Number, // public properties precision : 0, // public methods valid : function( v ) { return this.parent( v, true ) && Math.floor( v ) === v; }, // internal methods init : function() { var...
var fs = require('fs'), es = require('event-stream'), asyncJoin = require('gwm-util').asyncJoin; module.exports = function(options) { var type = options.buildType, configFileName = './config/' + type + '.json', fileData = {}, successCallback, errorText, blocker = asyncJoin(funct...
var postData = querystring.stringify({ 'value' : '55', 'room_id' : '1' }); var options = { hostname: 'localhost', port: 80, path: '/temperatures', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': postData.length } }; var req = http.request(optio...
'use strict'; /** * Created by x on 11/23/15. */ var path = require('path'); var webpack = require('webpack'); var os = require('os'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config.dev'); var pathToBuild = path.resolve(__dirname, 'www'); var IPv4 for(var i=0;i<os.networ...
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
import{B as t,K as e}from"./index-82df5684.js";export default class extends t{connected(){const{host:t,params:s}=this,{name:o}=s,i=`--nu${o?"-"+o:""}-offset-x`,n=`--nu${o?"-"+o:""}-offset-y`,r=e=>{this._active=!0;const s=t.getBoundingClientRect(),o=e.clientX-s.left,r=e.clientY-s.top,h=o/s.width*2-1,c=r/s.height*2-1;t.s...
search_result['3225']=["topic_00000000000007B9.html","ApplicantDetailRequestDto.Notes Property",""];
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Portal = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto...
/* global HTMLImageElement */ /* global HTMLCanvasElement */ /* global SVGElement */ import getOptionsFromElement from "./getOptionsFromElement.js"; import renderers from "../renderers"; import {InvalidElementException} from "../exceptions/exceptions.js"; // Takes an element and returns an object with information ab...
import EVENTS from '../events.js'; import external from '../externalModules.js'; import mouseButtonTool from './mouseButtonTool.js'; import touchTool from './touchTool.js'; import pointInsideBoundingBox from '../util/pointInsideBoundingBox.js'; import toolColors from '../stateManagement/toolColors.js'; import isMouseBu...
import assert from 'assert'; import sinon from 'sinon'; import fs from 'fs'; import stream from 'stream'; import { InsertStream } from '../'; /** * Transform class to turn our string JSON data into objects. */ class TransformToObject extends stream.Transform { constructor() { super({objectMode:true}); } ...
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum.js 33082 2013-04-18 11:13:53Z zhengqingpeng $ */ function saveData(ignoreempty) { var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty; var obj = $('postform') && (($('fwin_newthread') && $(...
/*jslint node: true */ 'use strict'; var npm = require('npm'); module.exports = Npm; function Npm (callback) { var conf = { jobs: 1 }; npm.load(conf, callback); } Npm.prototype.search = function (searchTerms, callback) { npm.commands.search(searchTerms, true, callback); }; Npm.prototype.view = function...
import { EmailTemplate } from 'email-templates' import Promise from 'bluebird' const sendgrid = require('sendgrid')(process.env.SENDGRID_MAILER_KEY) const sendEmail = Promise.promisify(sendgrid.send, { context: sendgrid }) const DEVELOPMENT = process.env.NODE_ENV === 'development' const sanitize = DEVELOPMENT ? require...
/* globals __dirname */ 'use strict'; var autoprefixer = require('autoprefixer-core'); var Webpack = require('webpack'); var HtmlWebpack = require('html-webpack-plugin'); var path = require('path'); var npmPath = path.resolve(__dirname, 'node_modules'); var config = { sassOptions : ( ...
MD.Keyboard = function(){ const keys = { "v": { name: "Select tool", cb: ()=> state.set("canvasMode", "select") }, "q": { name: "Freehand tool", cb: ()=> state.set("canvasMode", "fhpath") }, "l": { name: "Line tool", cb: ()=> state.set("canvasMode", "fhplineath")}, "r": { name...
const path = require('path') const sassTrue = require('sass-true') const sassFile = path.join(__dirname, 'flex-columns.test.scss') sassTrue.runSass({ file: sassFile }, describe, test)
// React app import React from 'react' import {render} from 'react-dom' import App from './components/base_layout/App.jsx' // Redux state manager import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers from './state_manager/reducers' // Electron IPC communication events import ipcRe...
var mongoose = require('mongoose'), bcrypt = require('bcrypt'), userSchema = mongoose.Schema({ fullName: { type: String }, email: { type: String, required: true, unique: true, lowercase: true }, password: { type: String, required: true }, user_avatar...
Ext.define('sisprod.view.MobileUnit.UpdateMobileUnit', { extend: 'sisprod.view.base.BaseDataWindow', alias: 'widget.updateMobileUnit', messages: { basicDataTitle: 'Basic Data', componentsTitle: 'Allocation of Components', featuresTitle: 'Additional Features', equipment...
// 对字符串头尾进行空格字符的去除、包括全角半角空格、Tab等,返回一个字符串 function trim(str) { var regex1 = /^\s*/; var regex2 = /\s*$/; return (str.replace(regex1, "")).replace(regex2, ""); } // 给一个element绑定一个针对event事件的响应,响应函数为listener function addEvent(element, event, listener, isCorrect) { if (element.addEventListener) { el...
import * as React from 'react'; import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util'; import { Button, LinearProgress, CircleProgress } from '@bizfe/biz-mobile-ui'; const styles = { progress: { width: '90%', margin: '20px auto 0', }, } export default class Progress extends Re...
/* Copyright (C) 2012 Kory Nunn 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, modify, merge, publish, distribute, subli...
const fs = require('fs'); const dns = require('dns'); const argv = require('yargs').argv; const Seismometer = require('./seismometer'); const Communicator = require('./communicator'); function assertOnline() { return new Promise((fulfill, reject) => { dns.resolve('www.google.com', err => { if (err) { ...
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import IncredibleOffersContainer from './IncredibleOffers/IncredibleOfferContainer'; export default ( <Route path="/" component={App}> <IndexRoute component={IncredibleOffersContainer} /> <Route path="/spec...
console.style('<css="color: rgba(0, 0, 0, 0.6);font-size: 30px;background-color: rgb(110, 110, 110);text-shadow: rgba(255, 255, 255, 0.2) 3px 2px 3px; padding-left:10px;">Welcome to Ivy Theme</css>');
function normalizePort(val) { var port = parseInt(val, 10); if (isNaN(port)) { // named pipe return val; } if (port >= 0) { // port number return port; } return false; } var port = normalizePort(process.env.PORT || '3000'); module.exports = { port: port, db: 'mongodb://'+proce...
(function() { 'use strict'; angular .module('lcRegistration') .config(["$routeProvider", function($routeProvider) { $routeProvider .when("/", { templateUrl: "/client/app/regForm/regForm.html", controller: "registrationControlle...
export{C as CreateGameReducer,G as Game}from"./reducer-b8b81041.js";import"immer";export{I as InitializeGame}from"./initialize-2ee3d05a.js";export{A as Async}from"./base-c99f5be2.js";
var express = require('express'); var http = require('http'); var path = require('path'); var app = express(); app.use(express.bodyParser()); app.use(app.router); app.use(express.static(__dirname + '/public')); // Simple REST server. var users = []; app.post('/user', function(req, res) { users[req.body.name] = ...
'use strict'; function getBetterUpgradeMessage(foundVersion) { let version = (foundVersion && foundVersion[1]) ? `(${foundVersion[1]}) ` : ''; return `A new version of Ghost Core ${version}is available! Hot Damn. \ <a href="http://support.ghost.org/how-to-upgrade/" target="_blank">Click here</a> \ to learn mor...
'use strict' var PassThrough = require('stream').PassThrough var statistics = require('vfile-statistics') var fileSetPipeline = require('./file-set-pipeline') module.exports = run // Run the file set pipeline once. // `callback` is invoked with a fatal error, or with a status code (`0` on // success, `1` on failure)...
'use strict'; import {should as should_} from 'chai'; const should = should_(); import {spy, stub} from 'sinon'; import {setCanvas, canvas, context} from '../src/canvas'; import draw from '../src/draw'; // import {Sprite} from '../../../script/src/sprite'; describe('draw.js', () => { let ctx; before(() => { ...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1277',"Tlece.Recruitment.Helpers Namespace","topic_00000000000004A2.html"],['1364',"StaffAuthorizeRequirement Class","topic_00000000000004FA.html"],['1365',"Properties","topic_00000000000004FA_props--.html"],['1366'...
"use strict"; var Piece = require('../lib/Piece'), map = require('../lib/map'); describe('Piece.js', function() { var piece; beforeEach(function() { piece = new Piece(1, 'black', 0, 0); }); describe('Piece Constructor', function() { // めんどくせいらね }); describe('Piece.prototype.getPiece()', fu...
process.env.NODE_ENV = 'development'; // Load environment variables from .env file. Suppress warnings using silent // if this file is missing. dotenv will never modify any environment variables // that have already been set. // https://github.com/motdotla/dotenv require('dotenv').config({silent: true}); var chalk = r...
define([], () => { 'use strict'; class FeedsError extends Error { constructor(...args) { console.error('FeedsError', args); super(args); } } class ServerError extends Error { constructor(...args) { super(args); } } function q...
export default { analytics: () => { return { logEvent: () => {}, setCurrentScreen: () => {} }; } };
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'preview', 'ca', { preview: 'Visualització prèvia' } );
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Discount = mongoose.model('Discount'); /** * Globals */ var user, discount; /** * Unit tests */ describe('Discount Model Unit Tests:', function() { beforeEach(function(...
/** * SIP Transactions module. */ (function(JsSIP) { var C = { // Transaction states STATUS_TRYING: 1, STATUS_PROCEEDING: 2, STATUS_CALLING: 3, STATUS_ACCEPTED: 4, STATUS_COMPLETED: 5, STATUS_TERMINATED: 6, STATUS_CONFIRMED: 7, // Transaction types NON_INVITE_CLIE...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.10.0 (2021-10-11) */ (function () { 'use strict'; ...
/* * ajaxify.js * Ajaxify - The Ajax Plugin * https://4nf.org/ * * Copyright Arvind Gupta; MIT Licensed */ /* INTERFACE: See also https://4nf.org/interface/ Simplest plugin call: let ajaxify = new Ajaxify({options}); Ajaxifies the whole site, dynamically replacing the elements specified in "elements" ac...
/** * @license Highstock JS v8.1.0 (2020-05-05) * * Indicator series type for Highstock * * (c) 2010-2019 Sebastian Bochan * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.e...
/*! * FilePond 4.26.0 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */ /* eslint-disable */ (function(global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'func...
import"./chunk-1fafdf15.js";import"./helpers.js";import"./chunk-953eb524.js";import"./chunk-36c7966f.js";import"./chunk-1f5e2a99.js";import{r as registerComponent,u as use}from"./chunk-cca88db8.js";import"./chunk-ed52317d.js";import"./chunk-ade7667b.js";import"./chunk-f1608931.js";import"./chunk-42f463e6.js";import"./c...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('vega'), require('vega-lite')) : typeof define === 'function' && define.amd ? define(['vega', 'vega-lite'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : glob...
import propertyTest from '../../helpers/propertyTest' propertyTest('DTEND', { transformableValue: new Date('1991-03-07 09:00:00'), transformedValue: '19910307T090000' })
module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { EXTEND_PROTOTYPES: false, FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'wit...
/** * Created by fengyuanzemin on 17/2/15. */ import Vue from 'vue'; import Vuex from 'vuex'; import * as actions from './actions'; import * as mutations from './mutations'; Vue.use(Vuex); const state = { isShow: false, msg: '出错了', isBig: true, token: localStorage.getItem('f-token'), init: false }; expor...
/*global describe, it, expect, require*/ const nodeToBox = require('../../../src/core/layout/node-to-box'); describe('nodeToBox', function () { 'use strict'; it('should convert node to a box', function () { expect(nodeToBox({x: 10, styles: ['blue'], y: 20, width: 30, height: 40, level: 2})).toEqual({left: 10, style...
//= require redactor-rails/plugins/clips //= require redactor-rails/plugins/fontcolor //= require redactor-rails/plugins/fontfamily //= require redactor-rails/plugins/fontsize //= require redactor-rails/plugins/fullscreen //= require redactor-rails/plugins/table //= require redactor-rails/plugins/textdirection //= requ...
import webpack from "webpack" import { spawn } from "child_process" import appRootDir from "app-root-dir" import path from "path" import { createNotification } from "./util" import HotServerManager from "./HotServerManager" import HotClientManager from "./HotClientManager" import ConfigFactory from "../webpack/Confi...
"use strict"; exports.__esModule = true; // istanbul ignore next var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value"...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SyncDisabled = props => <SvgIcon {...props}> <path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.2...
// Generated by CoffeeScript 1.6.3 (function() { var Stl, stl_parser; stl_parser = require('../parser/stl_parser'); Stl = (function() { function Stl() {} return Stl; })(); Stl.PovRay = (function() { function PovRay() {} PovRay.prototype._povHeaders = function(name) { return "#decla...
ace.define("ace/snippets/apache_conf",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText = ""; exports.scope = "apache_conf"; }); (function() { ace.require(["ace/snippets/apache_conf"], function(m) { if (ty...
// @flow var React = require('react') var {assign} = require('lodash') import {Source, emptySource} from './model/source' import {displayIf, Colors} from './style' // but get the images at 2x resolution so they can be retina yo // or just get the photos at that ratio // 200x320 x2 // 150x240 // 100x160 // Blank Imag...
define([ 'jquery', 'underscore', 'backbone', 'views/AdminView', 'authentication', 'models/Beach' ], function ( $, _, Backbone, AdminView, Authentication, BeachModel) { var AdminRouter = Backbone.Router.extend({ routes: { 'admin' : 'index...
const labels = { collectionFilterLabels: { edit: { name: 'Event name', event_type: 'Type of event', address_country: 'Country', uk_region: 'UK Region', organiser: 'Organiser', start_date_after: 'From', start_date_before: 'To', }, }, } module.exports = labels
(function ($) { var smileys = [ ":(", ":)", ":O", ":D", ":p", ":*", ":-)", ":-(", ":-O", ":-D" ], extras = { "<3": true, "&lt;3": true }, smileParts = { "O": "middle-mouth", "D": "middle-mouth", "d": "middle-mouth", "p": "low-mouth", "*": "high-mouth", "-":...
/* * jQuery UI 1.7.2 * * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ (function($) { var _remove = $.fn.remove, isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9...
//@flow var x = 42; x = "true"; var y = 42; if (x) { y = "hello world"; } (42: string); // should still have some errors!
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BeachAccess = props => <SvgIcon {...props}> <path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95-3.9...
/* A proxy for observing object state changes. var obj={person:'Eddie',age:22}; _o.onUpdate(obj,{ age:function(value){ if(value>this.oldValue) console.log('Happy birthday, Peter!') }, person:function(value){ console.log(this.oldValue+' is now '+value); } }); _o(obj).person='Peter'; //> Eddie is...
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"1 2 3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"2":"1 2 7 9 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r DB SB AB BB...
{ var x = f; x = items[0]; x = items[1]; }
import xhr from './lib/xhr'; class ShowsModel { constructor() { this.shows = []; } fetch(cb) { xhr('https://raw.githubusercontent.com/dashersw/erste.js-demo/master/src/static/data/shows.json', (err, data) => { this.shows = data.slice(0, 20); cb(this.shows); ...
export default function calculateScore (subject, chosenId, time) { const isCorrectAnswer = subject.id === chosenId let score if(isCorrectAnswer) { if(time < 7) { score = 3 } else { // Needs review score = .9 + (2 * (1/subject.seenCount)) } } else { // Degrees of failure sco...
import { createRouter, createWebHistory } from "vue-router/dist/vue-router.esm.js"; import Home from "./views/Home.vue"; const routerHistory = createWebHistory("/"); let router = createRouter({ history: routerHistory, routes: [ { path: '/', component: Home, name: '' }, { path: '/who', component: Ho...
'use strict'; var crypto = require('crypto'); exports.typeOf = function(obj) { var classToType; if (obj === void 0 || obj === null) { return String(obj); } classToType = { '[object Boolean]': 'boolean', '[object Number]': 'number', '[object String]': 'string', '[object Function]': 'function...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M17 3H3v18h18V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z" }), 'SaveSharp');
import fulfillQuery from '../../../src/webserver/db/fulfillQuery' // eslint-disable-line describe('webserver/db/fulfillQuery', () => { it('should work') })
'use strict'; var Foundationify = (function () { // Initalize product image gallery function on product pages function initProductImages() { // Define the scope var $productImages = $('#product-images', 'body.product'); // Select the thumbnails var $thumbs = $('ul img', $productImages); if ($thumbs.len...
"use strict"; var SourceLine_1 = require("../source/SourceLine"); var Prop_1 = require("../entities/Prop"); var Method_1 = require("../entities/Method"); var MethodKind_1 = require("../kind/MethodKind"); var ProgramError_1 = require("../errors/ProgramError"); var ClassDefn_1 = require("../define/ClassDefn"); var Struct...
/* eslint-env mocha */ import { Controller } from '../' import assert from 'assert' import { equals } from './' import { state, props } from '../tags' describe('operator.equals', () => { it('should go down path based on props', () => { let count = 0 const controller = Controller({ state: { foo:...
module.exports = function(EmailAddress) { };
import { create } from 'ember-cli-page-object'; import leadershipCollapsed from 'ilios-common/page-objects/components/leadership-collapsed'; import overview from './overview'; import header from './header'; import leadershipExpanded from './leadership-expanded'; const definition = { scope: '[data-test-program-detail...
version https://git-lfs.github.com/spec/v1 oid sha256:07e25b6c05d06d085c2840d85f2966476dc38544be904c978d7c66dbe688decb size 4672
/** * Copyright 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule relayUnstableBatchedUpdates * * @format */ 'use strict'; module.exports = require('react-dom').unstable_batchedUpdate...
// support CommonJS, AMD & browser /* istanbul ignore next */ if (typeof exports === T_OBJECT) module.exports = riot else if (typeof define === 'function' && define.amd) define(function() { return (window.riot = riot) }) else window.riot = riot })(typeof window != 'undefined' ? window : void 0);
/* $(document.body).ready(function() { FormKit.install(); FormKit.initialize(document.body); }); Inside Ajax Region: $(document.body).ready(function() { FormKit.initialize( div element ); }); */ var FormKit = { register: function(initHandler,installHandler) { $(FormKit).bind('for...
// webpack.config.js module.exports = { module: { rules: [ { test: /\.css$/, use: [ 'vue-style-loader', { loader: 'css-loader', options: { importLoaders: 1 } }, 'postcss-loader' ] } ] } }
/** * Validates the inputted Firebase reference. * * @param {Firebase} firebaseRef The Firebase reference to validate. */ var _validateFirebaseRef = function(firebaseRef) { var error; if (typeof firebaseRef === "undefined") { error = "no \"firebaseRef\" specified"; } else if (firebaseRef instanceof Fire...
/** * @module kat-cr/lib/fetch * @description * Wraps request in a Promise */ /** * The HTTP response class provided by request * @external HTTPResponse * @see {@link http://github.com/request/request} */ "use strict"; const request = (function loadPrivate(module) { let modulePath = require.resolve(module)...
/** * Method to set dom events * * @example * wysihtml.dom.observe(iframe.contentWindow.document.body, ["focus", "blur"], function() { ... }); */ wysihtml.dom.observe = function(element, eventNames, handler) { eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames; var handlerWrapper, ...
import { includes } from './array_proxy' /** * Given a record and an update object, apply the update on the record. Note * that the `operate` object is unapplied. * * @param {Object} record * @param {Object} update */ export default function applyUpdate (record, update) { for (let field in update.replace) ...
#!/usr/bin/env node var logger = require('../lib/logger')('test-logger'); var config = require('../lib/config'); var count = 1; setInterval(function() { logger.debug(count); logger.info(count); count += 1; }, 1000);
/** * Parse an array of chromsizes, for example that result * from reading rows of a chromsizes CSV file. * @param {array} data Array of [chrName, chrLen] "tuples". * @returns {object} Object containing properties * { cumPositions, chrPositions, totalLength, chromLengths }. */ function parseChromsizesRows(data) {...
'use strict'; /** * Module dependencies */ var hbs = require('express-hbs'); function content(options) { return new hbs.handlebars.SafeString(this.html || ''); } module.exports = content; // downsize = Tag-safe truncation for HTML and XML. Works by word!