code
stringlengths
2
1.05M
import {test} from 'zora'; import {body, TAB_PANEL_TAG_NAME} from '../util.js'; /** * @test {TabPanel} */ test('TabPanel Component', ({test}) => { test('TabPanel is connected', t => { const el = document.createElement(TAB_PANEL_TAG_NAME); body.appendChild(el); t.eq(el.getAttribute('role'...
(function (exports) { exports.SkyBoxActor = SkyBoxActor; // The instance of this class is sent throght network. function SkyBoxActor(actorInfo, actorManager) { exports.Actor.call(this, actorInfo, actorManager); var cShape = new Ammo.btSphereShape(1); var inertia = new Ammo.btVector3(); cShape....
import * as React from "react"; import PropTypes from "prop-types"; import { withWrapper } from "../Icon"; const Vector = React.forwardRef(({ size, color, ...props }, ref) => ( <svg width={size} height={size} viewBox="4 4 32 32" xmlns="http://www.w3.org/2000/svg" ref={ref} aria-hidden={!props...
/** * Copyright (c) 2012 cocos2d-x.org * http://www.cocos2d-x.org * * Copyright 2012 Yannick Loriot. All rights reserved. * http://yannickloriot.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
/* jshint node:true */ 'use strict'; const methods = { TELLSTICK_TURNON: 1, TELLSTICK_TURNOFF: 2, //TELLSTICK_BELL: 4, //TELLSTICK_TOGGLE: 8, //TELLSTICK_DIM: 16, TELLSTICK_LEARN: 32, //TELLSTICK_EXECUTE: 64, //TELLSTICK_UP: 128, //TELLSTICK_DOWN: 256, //TELLSTICK_STOP: 512 }; function getStringSelflearning...
var options; chrome.runtime.sendMessage({method: "getSettings"}, function(response) { options = response; var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { WireUp(); clearInterval(readyStateCheckInterval); } }, 10); }); function WireUp(){...
/** * @file TwinkleAnimation.js * * * @author Jonathan Lee Marcus * * * @license Licensed under the MIT license. **/ (function () { "use strict"; var StarAnimation = require("./StarAnimation.js"); /** * @class TwinkleAnimation * * @classdesc Twlinky animation t...
'use strict'; angular.module('registryUiApp').controller('DashboardController', function($scope, $interval, _,LogsService,wsService){ var vm = this; $scope.sysinfo = wsService.collection; vm.totalCpu = '100'; vm.label = ['CPU', '内存', '磁盘']; LogsService.query({num: 7}).$promise.then(function(value, ...
/** * ListItemState allows a list item to track its state between sessions * @param {hash} options - hash of required parameters. * @param {string} options.identifier - the identifier for the list item * @returns {ListItemState} * */ function ListItemState(options) { var settings = { identifier:...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
import AuthActions from 'actions/AuthActions'; import AuthService from 'services/AuthService'; import BaseStore from 'stores/BaseStore'; import jwt_decode from 'jwt-decode'; import { LOGIN_USER, LOGOUT_USER } from 'constants'; class AuthStore extends BaseStore { constructor() { super(); this.subscribe(() =>...
var boot = require('../').boot, shutdown = require('../').shutdown, connectDB = require('../').connectDB, disconnectDB = require('../').disconnectDB, port = require('../').port, superagent = require('superagent'), expect = require('expect.js'); describe('server', function() {...
module.exports = { // App Configuration debug: true, mongo: { host: 'localhost', port: 27017, database: 'meteor', collection: 'your_collection_name' }, dbSocket: function () { return 'mongodb://' + this.mongo.host + ':' + this.mongo.port + '/' + this.mongo.database; }, prefix: '', ...
define([ 'main/home/HomeApp', 'main/home/controllers/HomeController', 'main/home/controllers/GaugeController', 'main/home/controllers/DonutController', 'main/home/controllers/PieChartController', 'main/home/controllers/MultiController' ], function(){ });
import styled from 'styled-components'; const Form = styled.form``; export default Form;
/*jslint browser: true, devel: true */ 'use strict'; app.directive('moleField', ['field', 'Cnf', 'Draw', function (field, Cnf, Draw) { return { restrict: 'EA', controller: 'MolePath', link: function (scope, element) { var context = element[0].getContext('2d'), fi...
$.ready( function(){ });
/*! Material Components for the web Copyright (c) 2017 Google Inc. License: Apache-2.0 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory)...
/*global window:false */ ( function ( $, mw ) { 'use strict'; // note: class=media-link-preMW125-core-hack kept for compatibility prior to MW 1.25 // you must edit the $IP/includes/Linker.php file, method makeMediaLinkFile() // and change this line: // $class = 'internal'; // to: // $class = 'internal m...
var typeis = require('type-is'); function typeIs(types) { if (!Array.isArray(types)) types = [].slice.call(arguments); return typeis(this, types); }; module.exports = function() { return function(req) { return typeIs.bind(req); }; };
'use strict'; var assert = require('chai').assert; var rule = require('../../../lib/rules/extension.js'); describe('extension', function () { it('should have a message', function () { assert.equal(rule.message, 'file extension is not supported'); }); it('should pass filenames with a valid extension', funct...
var gulp = require('gulp'); var exec = require('child_process').exec; var mkdirs = require('mkdirs'); var browserify = require('gulp-browserify'); var rename = require('gulp-rename'); var autoprefixer = require('gulp-autoprefixer'); var sass = require('gulp-sass'); var nodemon = require('gulp-nodemon') function runCo...
var path = require( 'path' ); module.exports = { pkgJSONPath: path.resolve( __dirname, '../package.json' ), configFile: { //defaultName: 'package.json', //pathToLocalConfig: path.resolve( __dirname, '../configs/bundly.json' ), description: 'Path to your `ico-mixins` config. This can be used to specify ...
/** * * Empty Values * * @author: Corey Hart <http://www.codenothing.com> * @description: Removes properties that don't have values * * @before: * .example { * color: red; * font-size:; * } * * * @after: * .example { * color: red; * } * */ var CSSCompress...
/* @flow */ export interface Story { data: { author: string, id: string, score: number, title: string, url: string, }; kind: 't3'; } export interface Subreddit { data: { display_name: string, id: string, subscribers: number, title: string, url: string, }; kind: 't5'...
/** @constructor */ ScalaJS.c.scala_collection_mutable_ObservableMap$$anon$2 = (function() { ScalaJS.c.scala_collection_script_Update.call(this); this.$$outer$2 = null; this.key$1$2 = null; this.old$1$2 = null }); ScalaJS.c.scala_collection_mutable_ObservableMap$$anon$2.prototype = new ScalaJS.inheritable.scala...
// Generated by CoffeeScript 1.8.0 var Account, CONSTANTS, Contact, Scheduler, Settings, async, cozydb, log, ramStore; Scheduler = require('../processes/_scheduler'); Account = require('../models/account'); Contact = require('../models/contact'); Settings = require('../models/settings'); CONSTANTS = require('../ut...
import {Vector3} from 'three'; import {Loop} from '@whs/core/Loop'; /** * StarOrbitModule Class */ export class StarOrbitModule { /** * Stable angular velocity * @type {boolean} */ stableAngularVelocity = false; /** * Default constructor * * @param {Star} parent_star ...
import { watch, unwatch } from './watching'; import { addListener, removeListener } from './events'; /** @module @ember/object */ const AFTER_OBSERVERS = ':change'; export function changeEvent(keyName) { return keyName + AFTER_OBSERVERS; } /** @method addObserver @static @for @ember/object/observers ...
"use strict" var shsapi = { shs: 'https://mighty-shelf-9974.herokuapp.com', //shs: 'http://localhost:3000', ajax: function(config, cb) { $.ajax(config).done(function(data, textStatus, jqxhr) { cb(null, data); }).fail(function(jqxhr, status, error) { cb({jqxher: jqxhr, status: status, error:...
/* * API covering the free interfaces */ function freeIntApi(db) { var colDevices = db.collection('devices'); var colLinks = db.collection('links'); var colIous = db.collection('ious'); function iouInterfaces(deviceId, cb) { colDevices.findOne({ id : parseInt(deviceId) }, function(err, devObj) { if...
/* * grunt-awot * https://github.com/lasselukkari/grunt-awot * * Copyright (c) 2015 Lasse Lukkari * Licensed under the MIT license. */ 'use strict'; var ejs = require('ejs'); var path = require('path'); var mime = require('mime'); var zlib = require('zlib'); module.exports = function (grunt) { grunt.register...
{ port : 8080 , verifyUrl : 'http://localhost:8080/verify' , authUrl : 'http://localhost:8080/auth' }
import React from 'react'; import {Paper} from 'material-ui'; import CallView from 'components/CallView'; import ConnectionStore from 'stores/ConnectionStore'; class CallList extends React.Component { constructor(props) { super(props); this.state = { calls: ConnectionStore.getCallList() }; } c...
/* DownloadBuilder.js - v0.6.0 - 2012-12-12 * http://www.gregfranko.com/downloadBuilder.js/ * Copyright (c) 2012 Greg Franko; Licensed MIT */ /*jslint browser:true*/ // Immediately-Invoked Function Expression (IIFE) [Ben Alman Blog Post](http://benalman.com/news/2010/11/immediately-invoked-function-expression/) that ca...
'use strict'; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } import isFunction from 'lodash.isfunction'; import isObject from 'lodash.isobject'; import { save as action...
const express = require('express'), router = express.Router(), SRTV = require('../lib/srtv.js'), moment = require('moment-timezone'), db = require('../db'); router.get('/', (req, res) => { res.render('srtv/index'); }); module.exports = router;
/* * Stateful things in runtime */ export default { component: null, driver: null, mountID: 1, // Roots rootComponents: {}, rootInstances: {}, };
version https://git-lfs.github.com/spec/v1 oid sha256:468600a2ba782c16f9edb62431bd778f814dba1c61f444c46afcf1f9c2b5c359 size 1606
export default function Fragment$detach () { var docFrag; if ( this.items.length === 1 ) { return this.items[0].detach(); } docFrag = document.createDocumentFragment(); this.items.forEach( item => { docFrag.appendChild( item.detach() ); }); return docFrag; }
import './main.css' import '../style/style.css' import React from 'react' import ReactDOM from 'react-dom' import App from './App.jsx' main() function main() { const app = document.getElementsByClassName('demonstration')[0] ReactDOM.render(<App />, app) }
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ /*--------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. *---------------...
(function (window) { var Muuri = window.Muuri; QUnit.module('Grid events'); QUnit.test('synchronize: should be triggered after grid.synchronize()', function (assert) { assert.expect(1); var container = utils.createGridElements(); var grid = new Muuri(container); var teardown = function () { ...
var fs = require('fs'), exec = require('child_process').exec; var modules = process.argv.slice(2)[0]; modules = modules ? modules.split('=')[1].split(',') : [ ]; var minifier = process.argv.slice(3)[0]; var mininfierCmd; minifier = minifier ? minifier.split('=')[1] : 'yui'; if (minifier === 'yui') { mininfierC...
/** * @license AngularJS v1.0.1-0d57f137 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) { 'use strict'; //////////////////////////////////// /** * @ngdoc function * @name angular.lowercase * @function * * @description Converts the specified string t...
import React from "react" import gray from "gray-percentage" import { StyleSheet, css } from "aphrodite" const styles = StyleSheet.create({ editor: { ":active": { borderColor: gray(75, 0, true), }, ":hover": { borderColor: gray(75, 0, true), }, ":focus": { borderColor: gray(75, ...
'use strict'; const path = require('path'); const getMimeType = require('./get-mime-type'); module.exports = function(filePath) { let ext = path.extname(filePath).toLowerCase(), isGzipped = false; if (ext === '.gz') { isGzipped = true; ext = path.extname(filePath.slice(0, -3)).toLowerCase(); } ...
import React from 'react'; const Cell = ({ value, columnKey }) => ( <td>{'' + value}</td> ); export default Cell;
/* ______________________________________ ________| |_______ \ | SmartAdmin WebApp | / \ | Copyright © 2014 MyOrange | / / |______________________________________| \ /__________) ...
var request = require('request') var static = require('../') var levelup = require('level-test')() var http = require('http') var tape = require('tape') var fs = require('fs') var db = levelup('level-static-test') var port = ~~(Math.random()*60000) + 1024 function url() { return 'http://localhost:'+port+'/'+[].sli...
import { createTranslator } from 'kolibri.utils.i18n'; import logger from 'kolibri.lib.logging'; import { OBJECTS, ADJECTIVES, VERBS } from './constants'; export const logging = logger.getLogger(__filename); /* Strings variations below are defined based on the following constructions: Item status: N Object(s) is...
'use strict'; var React = require('react'); var mui = require('material-ui'), RaisedButton = mui.RaisedButton, Paper = mui.Paper, Dialog = mui.Dialog, TextField = mui.TextField; var util = require('utils/util'); var toastr = require('toastr'); var api = require('utils/api'); var bootstrap = require('bootstrap...
var a, b; a = b; if (a) { console.log("a"); } //可以合併成為這樣(Bad) if (a = b) { console.log("a=b"); } //但我們常常會看成這樣 if (a == b) { console.log("a==b"); }
(function() { 'use strict'; require('structure/iterator'); var Set = require('structure/set'), Map = require('structure/map'); describe('set', function() { it('should be defined if required', function() { (Set != null).should.be.true; }); it('should instantiate correctly, and w...
'use strict'; let gulp = require('gulp'); let config = require('../config'); let $ = require('gulp-load-plugins')(); let _ = require('lodash'); let path = require('path'); let prefix = 'js'; let taskName = function(bundle) { return prefix + '-' + bundle.name; }; let bundles = config.js; gulp.task(prefix, _.map(bun...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
try { require('mongoose').connect(process.env.MONGODB_URI); } catch (e) {} const model = require('mongoose').model('User', { object: Object }); model._find = (args, exec) => { args.skip = args.skip - 0; args.limit = args.limit - 0; const _id = args._id || false; const sort = args.sort || {}; c...
import * as itoolz from '../src/itoolz'; let test = require('tape'); // {{{ accumulate test('accumulate - default func - list', function (t) { t.plan(1); let actual, expect; actual = itoolz.accumulate([1, 2, 3, 4, 5]); actual = [...actual]; expect = [1, 3, 6, 10, 15]; t.deepEqual(actual, expect); }); test...
(function () { "use strict"; function initController($scope, $rootScope, $timeout, $state, authenticationFactory, fpmUtilities) { var vm = this; function activateController() { authenticationFactory.logout(true); $timeout(function () { $rootScope.$broadcas...
Router.route('/', { name: 'home', data: {meteor: 'Meteor'} })
var fs = require ('fs'); var path = require('path'); var _ = require('underscore'); var apiGen = require('../src/apiGen'); var objectifyTree = require('../src/objectifyTree'); module.exports = function (grunt) { grunt.registerMultiTask ('api', 'Generates api docs', function () { grunt.log.writeln ("Starti...
/* * written by @alicelieutier */ var Listener = function(audioContext) { var analyserNode = null; var freqByteData = null; var inputPoint = null; var lastLog = 0; var start = 0; var that = {}; var intervalID = null; var ready = false; var onBeepCalled = false; var ob_callback = null; var ob_int...
/** * React (with addons) v15.2.0 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef...
var mongoose = require('mongoose') var Note = mongoose.Schema({ title: String, content: String, alias: String, created: {type: Date, default: Date.now}, updated: {type: Date, default: Date.now}, user_id: { type: mongoose.Schema.Types.ObjectId, ref: 'user', index: true } }) module.exports = m...
var koa = require('koa'); var request = require('supertest'); var unless = require('../index'); describe('koa-unless', function() { var middleware; beforeEach(function() { middleware = function *(next) { this.body = {executed: true}; }; middleware.unless = unless; }); describe('with ...
/** * Copyright (c) 2000 - 2017 XINHUANET.com All Rights Reserved. * BRF v0.12.52 * @time 2017-05-12-08.52.56 */ 'use strict'; /** * @Author: SuperMoo <SuperWoods> * @Date: 2017-05-05-15:52:35 * @Email: st_sister@me.com * @Filename: index.js * @Last modified by: SuperWoods * @Last modified time: 2017-05...
class upnp_soaprequest_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() GetLif...
version https://git-lfs.github.com/spec/v1 oid sha256:bb0a48d8e900f44c985c3d851c63f300488bc5cbbaf2ce978fd3f65b7c8660b8 size 4500
module.exports = { listAirPlayDevices: function (callback){ itunes = Application('iTunes'); airPlayDevices = itunes.airplayDevices(); airPlayResults = []; for (i = 0; i < airPlayDevices.length; i++) { airPlayDevice = airPlayDevices[i]; if (!airPlayDevice.networkAddress()) continue; ...
define(['jquery', 'knockout', './router', 'bootstrap', 'knockout-projections', 'knockout-select-on-focus'], function($, ko, router) { // Components can be packaged as AMD modules, such as the following: ko.components.register('home-page', { require: 'components/home-page/legacy/home' }); ko.components.register('...
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-10-15 using // generator-karma 1.0.0 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
var structlfgui_1_1event__function = [ [ "event_function", "structlfgui_1_1event__function.html#ab18ef7fc7527035959f81e5f6f8f8130", null ], [ "event_function", "structlfgui_1_1event__function.html#acd471e4c04c485dc49a27c77fa0ec694", null ], [ "event_function", "structlfgui_1_1event__function.html#a0b9174a75...
ModuleIntervenantFormation.InfosGeneralesModule = ModuleIntervenantFormation.InfosGeneralesModule || (function () { //args: // panelID // vueID var _args = {}; return { init: function (args) { _args = $.extend({ }, args); }, start: function () { ...
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uicolor', 'sl', { title: 'UI Izbiralec Barve', preview: 'Živi predogled', config: 'Prilepite ta niz v vašo config.js dat...
var moment = require('moment'); var _ = require('lodash'); var uuid = require('uuid'); /** * Initiate AWS DynamoDB bucket event. * @param {Object} options - Passed config options. * @param {Object} options.schema - DynamoDB table schema. * @param {string} options.region - Region of AWS S3 bucket. * @param {string...
'use strict' var React = require('react') var request = require('xhr') var object_assign = require('object-assign') var Spinner = require('../../shared/spinner.js') var make_query = function () { var email = this.refs.email.value var vals = { id: this.refs.id.value, last_name: this.refs.last_name.value, ...
const add = (x=0, y=0) => { return x + y } export default add
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.disposeScene = disposeScene; exports.disposeObject = disposeObject; var _three = require('three'); var Three = _interopRequireWildcard(_three); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } el...
import { Primitive } from './primitive.js'; /** * A single Unicode character. * Value type semantics, immutable and final. * * The parameter type signatures in this class and file are enforced * by RacketScript when called from RacketScript. * * No checks are performed here, allowing us to use it internally * ...
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const propTypes = { active: PropTypes.bool, }; const ROOT = 'mdc-text-field__bottom-line'; const ACTIVE = `${ROOT}--active`; const BottomLine = ({ active }) => ( <div className={classnames(ROOT, { [ACTIV...
(function(window, undefined) { /*********************** START STATIC ACCESS METHODS ************************/ jQuery.extend(jimMobile, { "loadScrollBars": function() { jQuery(".s-724d6129-a5ed-4b21-a1a7-3ef200a06710 .ui-page").overscroll({ showThumbs:true, direction:'vertical' }); ...
'use strict'; var express = require('express'); var routes = require('./app/routes/index.js'); var mongoose = require('mongoose'); var bodyParser = require('body-parser') var app = express(); // require('dotenv').load(); mongoose.connect(process.env.MONGO_URI); mongoose.Promise = global.Promise; // Configure server...
define([ 'underscore', 'backbone', 'handlebars', 'collections/Products', 'collections/Answers', 'collections/Reviews', 'collections/Notes', 'text!templates/result.handlebars' ], function(_, Backbone, Handlebars, ProductsCollection, AnswersCollection, ReviewCollection, NotesCollection, tpl) { 'use...
var x = require(["lib/react/react", "lib/jquery/dist/jquery", "login", "expense"], function(React, jQuery, Login, Expense) { var LoginPage = React.createClass({ displayName: 'Login', getInitialState: function() {return {username: '', password: '', message: undefined, error:undefined, joining: false, loading...
var http = require('http'); var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); var ip = request.headers['x-forwarded-for'] || request.connection.remoteAddress; response.end(ip); }); server.listen(8080, "0.0.0.0");
module.exports = function(ngModule) { ngModule.run(function($rootScope) { $rootScope.Date = Date; $rootScope.Math = Math; $rootScope.$endevAnnotation = false; $rootScope.$endevErrors = []; angular.element(document.body) .attr("ng-class","{'__endev_annotation_on__':$endevAnnotation}") ...
(function() { "use strict"; R.extendElement('addEventOnce', function(type, handler, elem) { R.addEvent(elem, type, function once(e) { handler.call(elem, e); R.removeEvent(type, once, elem); }); return elem; }); }());
"use strict"; export default (() => { let identity = (v) => v; return { id: identity, identity }; })();
/** * Opens provided file in browser. * * • Tabs should be opened using the terminal via this task. Doing * so will ensure the generated tab will auto-close when Gulp is * closed. Opening tabs by typing/copy-pasting the project URL * into the browser address bar will not auto-close the tab(s) * due to se...
'use strict'; var fs = require('fs') var path = require('path') var log = require('spm-log') var template = require('gulp-template') var inquirer = require('inquirer') var semver = require('semver') var vfs = require('vinyl-fs') module.exports = function(options) { if (!options.force && fs.readdirSync(process.cwd...
'use strict'; import * as actions from '../actions'; import DigitalAsset from '../models/DigitalAsset'; import Source from '../models/Source'; const initialDigitalAssetState = { digital_asset: new DigitalAsset(), dropzone: null, dropzone_file_stats: null, error: false, isSubmitting: false, source_options:...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * @fileOverview The "colorbutton" plugin that makes it possible to assign * text and background colors to editor contents. * */ CKEDITOR...
features["DOM.Node.replaceChild"] = !!(document.replaceChild);
// based on https://github.com/winstonjs/winston-loggly/blob/master/test/winston-loggly-test.js var vows = require('vows'); var assert = require('assert'); var helpers = require('winston/test/helpers'); var Keenio = require('../lib/winston-keenio'); var client; var config; try { config = require('./config'); } cat...
'use strict'; export default async function (hook) { delete hook.data.cash; return hook; };
import { expect } from 'chai'; import { justNotate, prettyPrint, _isFunction, _insert, _prepareStack, _getFirstLine, _getIndentation, } from 'src/notate'; const propertyIsEnumerable = Object.prototype.propertyIsEnumerable; describe('unit/notate', () => { // Public API // ======== describe('#pre...
var SOTH = {} || SOTH; var controls, renderer, stats, scene, camera; var geometry, material, mesh, wires; SOTH.addThreeJS = function() { renderer = new THREE.WebGLRenderer( { alpha: 1, antialias: true, clearColor: 0xffffff } ); renderer.setSize( window.innerWidth, window.innerHeight ); renderer.shadowMapE...
// Dependencies import { h, Component } from "preact"; // Material Components import Toolbar from "preact-material-components/Toolbar"; // Components import ComponentTable from "../../components/component-table"; import CodeBlock from "../../components/code-block"; import EventsTable from "../../components/events-tab...
import template from './group.hbs'; import LayoutBehavior from '../behaviors/LayoutBehavior'; import MenuButtonView from './MenuButtonView'; const defaultOptions = ({ view }) => ({ collapsed: false, collapsible: Boolean(view) }); const classes = { CLASS_NAME: 'layout-group', COLLAPSED_CLASS: 'group-co...
import { lpad } from '../../utils'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { ControlLabel, FormControl, FormGroup, HelpBlock } from 'react-bootstrap'; /** * Date Field - Used to create a three field component capturing the Day Month Year. * @class */ export default clas...