code
stringlengths
2
1.05M
// Generated on 2014-09-24 using generator-chrome-extension 0.2.9 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load gru...
$(window).load(function() { getCountCart(); getListaCarrinho(); if (frmLog === 'FALSE') ativaLoginho(); else ativaRegistrar(); }); $( "form#formRetiraCidade" ).on('submit',function( event ) { var form = this; var dados = $( this ).serialize(); var myUrl = $(form).attr('action'); v...
version https://git-lfs.github.com/spec/v1 oid sha256:2e7e7ece8701d40f2144962ccc0c579261a7ef30b36d3d8d24f705a2488a52b5 size 12284
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var util = require('util'); /* jshin...
var wru = require('wru'); var collection = []; var functions = require('./..'); var phpFunction = functions.phpFunction; var result; collection.push( { name: "phpFunction #0", test: function() { wru.assert("phpFunction function exists", typeof phpFunction == "function"); } }, { name: "phpFunction #1", test: ...
var gulp = require('gulp'); var plugins = require('gulp-load-plugins')(); var paths = { css: './css/' }; gulp.task('css', function () { gulp.src([paths.css + 'src/normalize.styl', paths.css + 'src/*.styl']) .pipe(plugins.concat('common.styl')) .pipe(plugins.stylus({ compress: true })) .pipe(plugins.autop...
/** * @ngdoc object * @name buildConfig.dist * @object * * @description * This exports configuration values that are specific to the distribution of the * project source. * * All paths should be relative to the project root. * * @type {{dir: string}} */ var config = { /** * @ngdoc property * @name b...
export * from './datestamp.view'
/* this is Eveline - she now replaces cq.framework property */ (function(window, undefined) { var MOBILE = /FFOS|Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent); window.requestAnimationFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || wi...
var assert = require('assert'); var nodeql = require('..'); describe('squel integration tests', function(){ var actual, expected; var error = function(){ return "Expected: '"+expected+"' but was '"+actual+"'"; }; describe('select', function(){ it('select should be available', function(){ assert...
var make = require('../src/ample').make; var play = require('../src/play'); var utils = require('../src/utils'); var loop = utils.loop; var barRest = utils.barRest; var melody = ['', `24,1: 'C/'b'-b'g/-'B'B ` ]; var harmony = ['', `24,1: 'E/'-e'd'b/'D-'E `, `12,1: E//-e//d//b//D/-E/ `, ]; var octaves = ['',...
function Redirect(){ window.location="game.html"; } var robot = { //MY ROBOT PROPERTIES - WHAT YOUR ROBOT HAS colour: 'blue', name: 'Robo', type: '', vocabulary: [ "Hello, how are you?", "You look lovely today", "Have a good day", "Ever need a friend, I'll always be here buddy", "Nice c...
// @flow import url from "url"; import retryRequest from "retry-request"; import getLink from "get-link"; import wildcard from "wildcard-named"; import setPrototypeOf from "setprototypeof"; const defaultOptions = { noResponseRetries: 0, retries: 1 }; export default { /** * Registered callbacks. * * @t...
function textFilter (text) { state.search = text; state.refresh(); } function hasSearch (item) { if (!state.search) return true; var regexp = new RegExp(state.search, 'i'); return item.name.match(regexp) || item.description.match(regexp) || hasAnySearch(item, regexp, state._strings, 0); } function hasAnySea...
/** * DocuSign REST API * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2.1 * Contact: devcenter@docusign.com * * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc4 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.icon * @description * Icon */ angular.module('material.components.icon', [ 'material.core' ]); angul...
/* Info: JavaScript for JavaScript Basics Lesson 3, JavaScript Loops, Arrays, Strings, Task 1, Number Checker Author: Removed for reasons of anonymity Successfully checked as valid in JSLint Validator at: http://www.jslint.com/ and JSHint Validator at: http://www.jshint.com/ */ 'use strict'; function printNumbers(input...
version https://git-lfs.github.com/spec/v1 oid sha256:3072570fd55ee9bb7f10c69aacf662d873755e0740cca735b1765f95cc0d6253 size 112292
//= require 'refinery/admin/wymeditor_monkeypatch.js.erb'
// server/app.js const express = require('express'); const path = require('path'); const XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; const app = express(); var bodyParser = require('body-parser'); // Serve static assets app.use(express.static(path.resolve(__dirname, '..', 'build'))); app.use(bodyParser...
var webpack = require('webpack'); var path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.join(__dirname, 'dist'), filename: 'backbone.readonly.js', libraryTarget: 'umd', library: 'backbone.readonly', }, externals: { 'backbone': { root: 'Backbone',...
BASE.require([ "app.Entity", "app.properties.Position", "app.properties.Size", "app.properties.Collidable" ], function () { BASE.namespace("app.systems"); var Entity = app.Entity; var Position = app.properties.Position; var Size = app.properties.Size; var Collision = app.propertie...
var uid = require('uid-safe').sync; var logger = require('./logger')('[Interface][session]'); var cookie = require('./cookie'); //cookie的name var KEY = 'IF_SID'; //cookie签名信息 var DEFAULT_SECRET = 'DEF_INTERFACE_SECRET'; //默认session的存活时间,单位分钟 var DEFAULT_MAX_AGE = 20; //保存session的容器 var sessions = Object.create(null...
// @flow import cx from 'classnames'; import * as React from 'react'; type Props = { className: ?string, close: number, date: Date, high: number, low: number, open: number, width: number, x: Function, y: Function, }; const OHLC = (props: Props) => { const {className, width, x, y} = props; const...
module.exports = function (ngModule) { 'use strict'; // @ngInject function FeedbackCtrl () { var create = this; } ngModule.controller('FeedbackCtrl', FeedbackCtrl); };
var QFS = require('q-io/fs'), bemhtml = require('bemhtml/blocks-common/i-bem/__html/lib/bemhtml/api'); exports.lintFile = function lintFile(file) { return QFS.read(file) .then(function(source) { return lintSource(source, file); }); }; function lintSource(source, fileName) { tr...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue'; import VueRouter from 'vue-router'; import ElementUI from 'element-ui'; import 'element-ui/lib/theme-default/index.css'; import NProgress from 'nprogress'; i...
var zlib = require('zlib'); var tar = require('tar'); var fstream = require('fstream'); var fstreamNpm = require('fstream-npm'); module.exports = function build(options, callback) { var dir = options.path; var tmp = '/tmp/santa.tgz'; // TODO: generate a temp dirname fstreamNpm({ path: dir }) .pipe(tar.Pack(...
import React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { shallow } from 'enzyme'; import Button from '../../../src/components/util/Button'; import { Link } from 'react-router-dom'; import Icon from '../../../src/components/svg/icon/X'; describe('<Button />', () => { it('rende...
const { promises: fs } = require('fs') const L = require('./leaflet') const _ = require('lodash') const capDecimals = n => Math.trunc(n * 100000) / 100000 const getCoordinates = ({ x, y, width, height, xoffset, yoffset }) => { const widthBigger = width > height const pixel = L.point(x, y) .add(L.point(xoffset...
var NAVTREEINDEX0 = { "algorithmFunc.html":[11,2], "algorithmFunc.html#BlankCheck":[11,2,0], "algorithmFunc.html#EraseChip":[11,2,1], "algorithmFunc.html#EraseSector":[11,2,2], "algorithmFunc.html#Init":[11,2,3], "algorithmFunc.html#ProgramPage":[11,2,4], "algorithmFunc.html#UnInit":[11,2,5], "algorithmFunc.ht...
import React from 'react'; import { Link } from 'react-router-dom'; import { green } from '../../constants/styles'; const Breadcrumbs = ({ children }) => ( <ul> { children } <style jsx>{` ul { margin: 0 0 20px; opacity: 0.5; } `}</style> </ul> ); const Breadcrumb = ({ to,...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('rui-button', 'Integration | Component | rui button', { integration: true }); test('it renders', function(assert) { assert.expect(2); // Set any properties with this.set('myProperty', 'value...
define(function () { "use strict"; var glb = typeof(window) === 'undefined'?global:window; if (typeof(XMLHttpRequest) !== 'undefined' && !XMLHttpRequest.prototype.sendAsBinary && 'Uint8Array' in glb) { XMLHttpRequest.prototype.sendAsBinary = function (sData) { var nBytes = sData....
/** * 此处须把所有过滤器全局化 */ import Vue from 'vue' import massFormatter from './massFormatter' import ecFormatter from './ecFormatter' Vue.filter('massFormatter', massFormatter) Vue.filter('ecFormatter', ecFormatter)
// CICLO DE VIDA Polymer.AppartmentliveCycleBehaviors = { logBehaviour: function(callbackCycle, msg) { var hasInitProperties = function() { // [created calllback] hasnt initialized its prototype properties return callbackCycle.toLowerCase().indexOf('created') === -1 && !!this.debug; }; if ( h...
'use strict'; // eslint-disable-line semi const app = require('APP'); const {env} = app; const debug = require('debug')(`${app.name}:auth`); const passport = require('passport'); const User = require('APP/db/models/user'); const OAuth = require('APP/db/models/oauth'); const auth = require('express').Router(); // esli...
import Ember from 'ember'; import ValidationError from '../error'; import defaultMessages from '../messages'; import getOwner from 'ember-getowner-polyfill'; function createValidationError(model) { const messageResolver = lookupMessageResolver(getOwner(model)); const errors = model.get('errors'); let message = mess...
"use strict"; // setup context let canvas = document.querySelector('canvas'); let context = canvas.getContext('2d'); // setup size of canvas let width = window.innerWidth * 2; let height = window.innerHeight * 2; canvas.width = width; canvas.height = height; // load image let image = new Image(); image.src = 'head.p...
var DefaultResourceProvider = require("../../../../lib/provider/resource/default"), DM = require("../../../../lib/dm"), Async = require("../../../../lib/async"), Chance = require("chance"), chai = require("chai"), sinon = require("sinon"), RSVP = require("rsvp"), chance; expect = ...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Home from '../components/Home/Home'; import * as RegisterActions from '../actions/register'; function mapStateToProps(state) { return { serviceOrders: state.register.serviceOrders }; } function mapDispatchToProps(dispatc...
'use strict'; var https = require('https'); var pjson = require('../package.json'); var Xml2js = require('xml2js'); exports.create = function (config) { config.RECURLY_HOST = config.SUBDOMAIN + '.recurly.com'; var parser = new Xml2js.Parser(config.XML2JS_OPTIONS || { explicitArray: false }); return { reque...
var stream = require('stream'); function isStream (obj) { return obj instanceof stream.Stream } function isReadable (obj) { return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object' } function isWritable (obj) { return isStream(obj) && typeof obj._write == 'function' && t...
'use strict'; const express = require('express'); const bodyParser = require('body-parser'); const restService = express(); restService.use(bodyParser.json()); restService.post('/hook', function (req, res) { console.log('hook request'); try { var speech = 'empty speech'; if (req.body) { ...
import curry from './curry'; import is from './is'; import reduce from './reduce'; import mustBe from './mustBe'; const map = (fn, x) => { mustBe(Function, fn); if (x && is(Function, x.map)) return x.map(fn); if (is(String, x)) return x.split().map(fn).join(); if (is(Object, x)) { return reduce((res, v,...
var fs = require('fs'); var readline = require('readline'); var google = require('googleapis'); var googleAuth = require('google-auth-library'); // If modifying these scopes, delete your previously saved credentials // at ~/.credentials/gmail-nodejs-quickstart.json var SCOPES = ['https://www.googleapis.com/auth/gmail....
import defprotocol from '../defprotocol' import Function from '../types/Function' const Keyed = defprotocol({ get: Function, has: Function }) export default Keyed
/* The MIT License Copyright 2012-2014 (c) Peter Širka <petersirka@gmail.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 in the Software without restriction, including without limitation the rights to use, ...
/*jshint unused: false */ /*jslint indent: 4, nomen: true, plusplus: true */ /*global console, jasmine, process, require, define, describe, it, xit, expect, beforeEach, afterEach, afterLast, Date */ (function () { 'use strict'; // @see https://github.com/SBoudrias/class-extend/blob/master/test/base.js va...
define([], function () { version_number = '0.6.5'; return version_number; });
cbDepsPrezi = function(){} /*** Video Modal Functions ***/ cbDepsPrezi.init=function(){ VidService = new VideoService(); console.log('Video Service Ready!'); DiscusService = new DiscusService(); DiscusService.init(); console.log('Application Javascript Ready!'); }; $(document).ready(function(){ cbDepsPrez...
'use strict'; var path = require('path'); var conf = require('./gulp/conf'); var _ = require('lodash'); var wiredep = require('wiredep'); var pathSrcHtml = [ path.join(conf.paths.src, '/**/*.html') ]; function listFiles() { var wiredepOptions = _.extend({}, conf.wiredep, { dependencies: true, devDepende...
/* * consolify * * Copyright (c) 2013 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; var through = require('through'); var fs = require('fs'); var template1 = __dirname + '/template1.html'; var template2 = __dirname + '/template2.html'; var template3 = __dirname + '/template3.html'...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.GrowingList. sap.ui.define(['jquery.sap.global', './List', './library'], function(jQuery, List, library) {...
import PropTypes from 'prop-types'; import React from 'react'; import { View, ViewPropTypes, StyleSheet, Animated, } from 'react-native'; import Avatar from './Avatar'; import Bubble from './Bubble'; import Day from './Day'; import {isSameUser, isSameDay} from './utils'; export default class Message extends ...
import readModelList from '../src/api-handlers/event-broker-read-models-list' import sagasList from '../src/api-handlers/event-broker-sagas-list' describe('@resolve-js/module-admin', () => { test('handler "readModelList" should tolerate to errors', async () => { let result = null const req = { resolve...
'use strict' const styles = {} styles.contanier = { backgroundImage: "url('images/banner.jpg')", backgroundRepeat: 'no-repeat', color: 'red' } styles.subtitulo = { color: 'blue' } module.exports = styles
"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...
var Code = require('code'); var Lab = require('lab'); // Test shortcuts var lab = exports.lab = Lab.script(); var expect = Code.expect; var describe = lab.experiment; var it = lab.test; var Utils = require('../../lib/utils'); describe('Utils methods -', function () { it('gets width', function (done) { ...
import React from 'react'; import { Menu, Icon } from 'antd'; import { connect } from 'react-redux'; import { setActiveTab } from '../../../actions'; const menu = [{ key: 1, icon: 'key', title: 'Quests' },{ key: 2, icon: 'flag', title: 'Arena' },{ key: 3, icon: 'shop', title: 'Shop'...
const fs = require("fs"); const path = require("path"); const parseProto = require("../"); const p = parseProto([["a", "buffer", 5], ["b", "buffer", 10], ["c", "string", 5], ["d", "string"]], { sourceCode: true, }); console.log(p); fs.writeFileSync(path.resolve(__dirname, "my.js"), p);
const postsQuery = `{ posts: allMarkdownRemark( sort: { fields: frontmatter___date, order: DESC } ) { edges { node { objectID: id fields { slug } frontmatter { title date_timestamp: date date(locale: "en-us", formatString: "MMMM D...
var linkedList = function(value) { this.value = value; this.next = null; }; var findKthToLast = function(k, head) { // do recursively if (head === null || k < 1) { return; } else if (k === 1) { console.log(head.value); findKthToLast(k, head.next); } else { findKthToLast(k-1, head.next); }...
goog.require('Odyssey.Generics.extend'); goog.require('Odyssey.Events.EventDispatcher'); goog.require('Odyssey.Events.EventDispatchInterface'); goog.require('Odyssey.Model.ModelAttributor'); goog.require('Odyssey.View.ViewAttributor'); goog.require('Odyssey.Events.MapClickEvent'); goog.require('Odyssey.Model.Matrix3D')...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({basic:"Basisvormen",preview:"Voorbeeld",shape:"Vorm",fill:"Vulling",outline:"Omtreklijn",px:"px",pixels:"pixels",meters:"meter",symbolSize:"Symboolgrootte",...
/** * Created by yaoyao on 15/2/6. */ var express = require('express'); var router = express.Router(); var paginator = require('../node_modules/bootstrap.pagination.js/bootstrap.pagination.js'); var allItems = []; for (var i = 0; i < 123; i++) { allItems.push({ name: (i * i).toString(), age: i ...
var should = require('should'), getAuthorUrl = require('../../../../server/data/meta/author_url'); describe('getAuthorUrl', function () { it('should return author url if context contains author', function () { var authorUrl = getAuthorUrl({ context: ['post'], ...
/*! * ResponsiveLazyVids 1.2.1 * * Copyright 2014, Jacob Peters - http://jacobpeters.co * Credit to: * FitVids.js: Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Intrinsic Ratio Method: Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Release...
/* @flow */ import getEntries from './getEntries' import setEntries from './setEntries' export default function(newEntry: string): void { const currentEntries = getEntries() if (!currentEntries.includes(newEntry)) { setEntries([newEntry].concat(currentEntries)) } }
require('../../../css/panel.less') import React from 'react'; var {createActiveRouteComponent} = require('../NavLink'); var NavLink = createActiveRouteComponent('li'); class Portals extends React.Component { render(){ return( <div className="pure-g mt-25"> <div className="pure-u-18-24 ask ask-o...
(function( angular ) { /*global window, angular */ 'use strict'; var $resourceMinErr = angular.$$minErr('ngResourceIO'); /** * Create a shallow copy of an object and clear other fields from the destination */ function shallowClearAndCopy(src, dst) { dst = dst || {}; angular....
import React, { PropTypes } from 'react'; import styles from './StaticLabelResult.css'; import withViewport from '../../decorators/withViewport'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import PubSub from 'pubsub-js'; @ withViewport@ withStyles(styles) class StaticLabelRes...
import { combineReducers } from 'redux-immutablejs' import { ADD_ITEM, ADD_ARCHIVE, SET_ACTIVE_ARCHIVE, ARCHIVES_RECEIVED, ARCHIVES_NOT_RECEIVED, ARCHIVE_ADDED, ARCHIVE_NOT_ADDED, ITEM_ADDED, ITEM_NOT_ADDED, ITEMS_RECEIVED, ITEMS_NOT_RECEIVED, DISPLAY_ARCHIVES } from '../actions' import { DEFAULT_ARCHIVE_ID } from '.....
// Utility functions. var M = module.exports = {}; M.numeric = function (a, b) { return a - b; }; M.toArray = function (coll) { return Array.prototype.slice.call(coll || [], 0); }; M.flatten = function (a) { while (a.some(Array.isArray)) a = Array.prototype.concat.apply([], a); return a; }; ...
'use strict' import AVAudioNode from './AVAudioNode' export default class AVAudioMixerNode extends AVAudioNode { constructor() { super() this._gainNode = null } get volume() { return this._gainNode.gain.value } set volume(newValue) { this._gainNode.gain.value = newValue } }
import React from 'react' const Icon = ({ name, size }) => { return <i style={{ fontSize: size }} className={`ico fa fa-${name}`} /> } Icon.defaultProps = { size: 12 } export default Icon
module.exports = [ { type: "input", name: "install.user", message: "Enter the admin user name", default: "admin" }, { type: "input", name: "install.userEmail", message: "Enter the admin email", validate(email) { if (!email || email.trim() === "" || email.indexOf("@") === -1) ...
//TODO: Disable buttons during validation save. // Variables. var app = angular.module("umbraco"); // Associate directive/controller. app.directive("formulateValidationDesigner", directive); app.controller("formulate.validationDesigner", controller); // Directive. function directive(formulateDirectives) { return...
var geotools = function($) { var DEFAULT_PRECISION = 12; var BITS = [16, 8, 4, 2, 1]; var BASE32_CHARS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']; var BASE32_DECODE_MAP = {}; for (...
/*! * ajax.js * * Copyright (c) 2013 Yoshi * This software is distributed under the MIT License.(../../MIT-LICENSE.txt) */ function getRotationArray (id, src, dst, type) { if(typeof type === 'undefined') type = 'default'; $.ajax({ url: "../../lib/cgi/get_rotation_array.cgi?src="+src+"&dst="+dst+"&id="+id, ...
(function( $ ) { var disabled = TestHelpers.tabs.disabled, equalHeight = TestHelpers.tabs.equalHeight, state = TestHelpers.tabs.state; module( "tabs: options" ); test( "{ active: default }", function() { expect( 4 ); var element = $( "#tabs1" ).tabs(); equal( element.tabs( "option", "active" ), 0, ...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var createClass = require('create-react-class'); var DeviceBattery30 = createClass({ displayName: 'DeviceBattery30', render: function render() { return React.createElement( SvgIcon, this.prop...
"use strict"; var grunt = require('grunt'), _ = grunt.util._, path = require('path'); module.exports = function(opts) { var syntax = 'Syntax: <dest>', args = opts.args; if (!_.isString(args)) grunt.fail.warn('Missing arguments. ' + syntax); var contents = opts.contents, target = this.options.target, out...
/* emit.test.js - TelemetryEvents.emit() test The MIT License (MIT) Copyright (c) 2014-2019 Tristan Slominski, Leora Pearson 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,...
// @flow import * as React from 'react' export default class Drone extends React.PureComponent<{}> { processor = new Processor() componentDidMount() { this.processor.generate() } componentWillUnmount() { this.processor.destroy() } render() { return null } } /** * Adopted from @mattdiamon...
// @flow import isEvent from './isEvent' import type { Event } from '../types' const getSelectedValues = options => { const result = [] if (options) { for (let index = 0; index < options.length; index++) { const option = options[index] if (option.selected) { result.push(option.value) ...
'use strict'; var expect = require('chai').expect; var ConsoleLogHandler = require('../src/ConsoleLogHandler'); var Log = require('../src/Log'); describe('ConsoleLogHandler', function() { it('can log an alert as an error with no context', function(done) { var log = new Log('alert', 'test'); var co...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_phonelink = exports.ic_phonelink = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1...
import { GET_ORDER, GET_ORDERS, CHANGE_ORDER_STATE, CLOSE_ORDER, ADD_ORDERLINE, ADD_ORDERLINE_PROMO, DELETE_ORDERLINE_PROMO, CHANGE_STATUS_ORDERLINE_PROMO, ADD_ORDERLINE_PRODUCT, DELETE_ORDERLINE_PRODUCT, CHANGE_STATUS_ORDERLINE_PRODUCT, ADD_ORDERLINE_DISH, DELETE_ORDERLINE_DISH, CHANGE_STAT...
const React = require('react') const Component = React.Component const klassName = require('./util/className') const timeInputCmp = require('./high-order/timeInputCmp') class TimeInput extends Component { constructor(props) { super(props); this.handleInputChange = this.handleInputChange.bind(this) ...
module.exports = function disableInclude(Model) { Model.beforeRemote('**', function(ctx, station, next) { if (typeof ctx.args.filter == 'string') { // jshint ignore:line try { ctx.args.filter = JSON.parse(ctx.args.filter); } catch(e) {} } if (ctx.args.filter && ctx.args.filter.inclu...
'use strict'; /** * Definition for Mocha's default ("run tests") command * * @module * @private */ const symbols = require('log-symbols'); const ansi = require('ansi-colors'); const Mocha = require('../mocha'); const { createUnsupportedError, createInvalidArgumentValueError, createMissingArgumentError } = ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M5.58 16.89l5.77-4.07c.56-.4.56-1.24 0-1.63L5.58 7.11C4.91 6.65 4 7.12 4 7.93v8.14c0 .81.91 1.28 1.58.82zM13 7.93v8.14c0 .81.91 1.28 1.58.82l5.77-4.07c.56-.4.56-1.24 0-1.63l-5.77-4.07c-.67-.47-1.58...
$(function () { var hoodieAdmin = top.hoodieAdmin; function getConfig(callback) { hoodieAdmin.request('GET', '/app/config') .fail(function(error) { callback(error); }) .done(function(response) { callback(null, response); }) } function setConfig(doc, callback) { hoodieAdmin.r...
import Ember from 'ember'; import XSelectComponent from './x-select'; var isArray = Ember.isArray; /** * Used to wrap a native `<option>` tag and associate an object with * it that can be bound. It can only be used in conjuction with a * containing `x-select` component * * @class Ember.XOptionComponent * @exten...
/** * Created by david on 6/4/15. */ var formplay = function(angular2){ }; module.exports = formplay;
// Import the Express module var express = require('express'); // Import the 'path' module (packaged with Node.js) var path = require('path'); // Create a new instance of Express var app = express(); // Create a simple Express application app.configure(function() { // Turn down the logging activity app.use(e...
import React, { Component } from 'react' import { Menu } from 'stardust' export default class Fitted extends Component { state = {} handleItemClick = (e, { name }) => this.setState({ activeItem: name }) render() { const { activeItem } = this.state return ( <Menu> <Menu.Item nam...