code
stringlengths
2
1.05M
export const UNIVERSE = "universe" export const KIBITZ = "kibitz" export const LEAVE ="leave" export const ROTATE = "rotate" export const LOGIN = "login" export const GAME = "game" export const REVISION = "revision" export const PLAY = "play" export const START = "start" export const MOVE = "move" export const DRO...
describe('teamform-admin-app module', function() { beforeEach(module('teamform-admin-app')); var $controller; beforeAll(function() { window.onbeforeunload = () => 'Oh no!'; }); beforeEach(inject(function(_$controller_) { // The injector unwraps the underscores (_) from around the parameter names w...
// @flow import pg from 'pg'; import type { ResultSet, ResultBuilder, QueryType, PG_ERROR, Client, Row, DoneCallback, PoolClient, Pool, PGType } from 'pg'; pg.types.setTypeParser(1184, v => v); pg.types.setTypeParser(1184, 'text', (v: string) => v); // $ExpectError pg.types.setTypeParser(1184, 'bin...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var androidFolderOpen = exports.androidFolderOpen = { "viewBox": "0 0 512 512", "children": [{ "name": "path", "attribs": { "d": "M437.334,144H256.006l-42.668-48H74.666C51.197,96,32,115.198,32,138.667v234.666C32,396.802,51.197,416,74.666,41...
import React from "react"; import * as ReactDom from "react-dom"; import { Router, Route } from "react-router"; import { Provider } from "react-redux"; import getMuiTheme from "material-ui/styles/getMuiTheme"; import MuiThemeProvider from "material-ui/styles/MuiThemeProvider"; import configureStore, { configureHistor...
module.exports.db = [{ code:'sol', name:'Sol', dimensions:[10,10], price:50, layout:'l', description:'How do you imagine her?', isCommission:false, isSold:false }, { code:'eleclad', name:'Electric Ladies', dimensions:[10,10], price:50, layout:'l', description:'', isCommission:false, isSo...
/* eslint no-var:0 */ var lodash = require('lodash'); module.exports = lodash.assign(require('./webpack.config.client.deploy'), { watch: true, });
setCssToHead([".",[1],"scroll-Y { height: ",[0,300],"; }\n.",[1],"scroll-view_H { white-space: nowrap; width: 100%; }\n.",[1],"scroll-view-item { height: ",[0,300],"; line-height: ",[0,300],"; text-align: center; font-size: ",[0,36],"; }\n.",[1],"scroll-view-item_H { display: inline-block; width: 100%; height: ",[0,300...
var JumperBot = function () { var canvas = document.getElementById('swingbot'), bot = {}, bullet = {}, bars = [], // Game variables barCount = 3, barWidth = 100, barHeight = 15, bulletSpeed = 15, // Higher it is, faster the bullet will be s...
const { version } = require('../package.json'); module.exports = { 'github-link': (contractPath) => { if (typeof contractPath !== 'string') { throw new Error('Missing argument'); } return `https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v${version}/contracts/${contractPath}`; }, };
/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.drawing.stencil.Text"]){ //_hasResource checks added by build. Do not use _hasResource directl...
import React, { Component } from "react"; import { Button, Form, FormGroup, Input, FormText, Label, Row, Container, Col, Jumbotron, Card } from 'reactstrap'; // import Input from "./components/Input"; // import SubmitButton from "./components/SubmitButton"; // import { Container, Row, Col } from "./components/Grid"; im...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
/*jslint nomen: true, vars: true, unparam: true*/ /*global angular*/ (function () { 'use strict'; angular.module('core').service('ServerMessageBroker', ['$http', 'MessagingEngineFactory', 'AppVersionService', '$rootScope', function ($http, MessagingEngineFactory, AppVersionService, $rootScope) { ...
/* * * Wijmo Library 5.20163.254 * http://wijmo.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the Wijmo Commercial License. * sales@wijmo.com * http://wijmo.com/products/wijmo-5/license/ * */ "use strict"; var __extends=this && this.__extends...
'use strict'; !function (win) { var MutationObserver = win.MutationObserver || win.WebKitMutationObserver; var doc = win.document; var listen = 'attachEvent' in win ? function (element, event, callback) { return element.attachEvent('on' + event, callback); } : function (element, event, callbac...
angular.module('futurism') .directive('cardMagnify', function($, _, scrollToElement) { 'use strict'; return { restrict: 'E', replace: true, templateUrl: 'views/card-magnify.html', scope: { size: '@', magnify: '@', ...
/** * @module run-task * @author Toru Nagashima * @copyright 2015 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict" //------------------------------------------------------------------------------ // Requirements //-----------------------------------------...
'use strict'; import React from 'react'; export default function About() { return ( <main className="doc"> <h2>About</h2> <p> This app provides the capability to copy a Google Drive folder. It will copy all contents of the folder and preserve the internal structure of the fi...
'use strict' const defaults = require('lodash.defaults') const escape = require('lodash.escape') const DefaultPosition = { position: 0, lineAndCharacter: { character: 0, line: 0, }, } class Formatter { constructor(settings) { this.settings = defaults(settings, { severity: 'error', }) ...
$(document).ready(function(){ $("#frmAddCategory").submit(function(ev){ ev.preventDefault(); guardarCategoria(); }); function agregarCategoria(oCat){ var $detCategorias = $("#detCategorias"); var html = '<div class="row">' + '<div class="col-xs-12 col-md-2">' + oCat.idCategoria + '</div>' + '<d...
// -------------------- // hints module // -------------------- // modules var acorn = require('acorn'), _ = require('lodash'); // exports /** * Parse hints from code. * * @param {string} code - Code to be parsed * @param {string} identifier - Name of hint comments * @param {Object} [options] - Options obje...
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" }, ...
/** * @fileoverview * @enhanceable * @public */ // GENERATED CODE -- DO NOT EDIT! goog.provide('proto.tensorflow.serving.InferenceTask'); goog.require('jspb.Message'); goog.require('jspb.BinaryReader'); goog.require('jspb.BinaryWriter'); goog.require('proto.tensorflow.serving.ModelSpec'); /** * Generated by Js...
//<script> (function(){ var new_campaigns = false; bouncex.brandStyles = false; bouncex.webfonts = false; bouncex.gbi.stacks = false var campaign_added = false; for(var ca_id in new_campaigns){ if(new_campaigns.hasOwnProperty(ca_id)){ if(!bouncex.cookie.campaigns){ bouncex.cookie.campaigns = {}; } ...
var config = require('config'); var os = require('os'); exports.index = function(req, res) { res.render('framework/index',{ title : 'Sashimi - Framework', page : 'framework', // host : getLocalAddress().ipv4[0].address/*'miura2'*/, host : 'location.hostname',//for server with multiple ip addresse...
import BaseModel from '../BaseModel'; import app from '../../app'; import Items from '../../collections/purchase/Items'; export default class extends BaseModel { constructor(attrs, options = {}) { super(attrs, options); this.shippable = options.shippable || false; this.moderated = options.moderated || fa...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
const THREE = require('three') export default class Cell //class for rooms or corridors { constructor( _name, _center, _width, _length, _mesh ) { this.name = _name; this.center = _center.clone(); this.mesh = _mesh.clone(); this.cellWidth = _width; //a x axis term this.cellLength = _length; //a z axis term ...
var path = require('path'), RewirePlugin = require("rewire-webpack"), webpack = require('webpack'); module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['jasmine'], // list of fil...
/* * * https://github.com/jkuetemeier/hexo-plugin-multilanguage * * Copyright (c) 2014 Jörg Kütemeier * Licensed under the MIT license. */ require('./lib/helper/multi-language');
/** * Panel is an element that can be in two states - opened and closed. * Those states are controlled by a Pad or directly via methods. */ Smudge.Panel = function(element, direction, range) { this.element = element; /** * Direction of movement when opened * @type {Enum ["up", "down", "left", "rig...
import { createStore } from 'redux'; import reducers from '../reducers'; function reduxStore(initialState) { const store = createStore(reducers, initialState, window.devToolsExtension && window.devToolsExtension()); if (module.hot) { // Enable Webpack hot module replacement for reducers module.hot.acc...
'use strict'; module.exports = { app: { title: 'Performance', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection: 'sessions',...
'use strict'; const Command = require('../../Command.js'); const FrameEmbed = require('../../embeds/FrameEmbed.js'); const frames = require('../../resources/frames.json'); /** * Displays the stats for a warframe */ class FrameStats extends Command { /** * Constructs a callable command * @param {Genesis} bot...
// import enzyme from 'enzyme' import React from 'react' import AdjustSpeed from '../adjust-speed' import {mockFeed, mockModification} from '../../../utils/mock-data' describe('Report > AdjustSpeed', () => { it('renders correctly', () => { const props = { feedsById: {1: mockFeed}, modification: {......
/* * Copyright (c) 2014 airbug Inc. All rights reserved. * * All software, both binary and source contained in this work is the exclusive property * of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering * the source code of this software is prohibited. This work is protected un...
const fs = require('fs'); const path = require('path'); const Product = require('../models/Product'); const Category = require('../models/Category'); module.exports.addGet = (req, res) => { let filePath = path.normalize( path.join(__dirname, '../views/products/add.html')); fs.readFile(filePath, (err,...
'use strict'; var highScores = []; var tbody = document.getElementById('tableBody'); if(localStorage.currentHighScore){ var dataString = localStorage.currentHighScore; highScores = JSON.parse(dataString); writeScoresToPage(highScores); } else { var newTRow = document.createElement('tr'); tbody.appendChild(n...
import BaseValidator from './base'; var PostValidator = BaseValidator.create({ properties: ['title', 'metaTitle', 'metaDescription'], title: function (model) { var title = model.get('title'); if (validator.empty(title)) { model.get('errors').add('title', '必须为博文设置一个标题。'); ...
var development = false; var container; $(document).ready(function() { mturk_ready(function() { mturk_blockbadworkers(boot); }); }); function isIE () { var myNav = navigator.userAgent.toLowerCase(); return (myNav.indexOf('msie') != -1) ? parseInt(myNav.split('msie')[1]) : false; } function boot(...
var appModule = angular.module( "TagThisApp", [], function( $locationProvider ) { $locationProvider.html5Mode( true ); } ); var stackExchangeAccessToken = ""; function TagThisController( $scope, $location, $http ) { // Check if we got an access token through OAuth with the SE API. var accessToken = $location.pa...
/*! jCarousel - v0.3.1 - 2014-05-05 * http://sorgalla.com/jcarousel * Copyright (c) 2014 Jan Sorgalla; Licensed MIT */ (function(t){"use strict";t.jcarousel.fn.scrollIntoView=function(i,s,e){var r,n=t.jCarousel.parseTarget(i),o=this.index(this._fullyvisible.first()),l=this.index(this._fullyvisible.last());if(r=n.relati...
/** * @jest-environment ./__tests__/html/__jest__/WebChatEnvironment.js */ describe('Markdown', () => { test('should not render URL with "javascript" scheme', () => runHTMLTest('markdown.noJavaScriptScheme.html')); });
#pragma strict var FirstForce:Vector3 = Vector3(300, 300, 0); function Start () { rigidbody.AddForce(FirstForce); } function Update () { // ゲームオーバー判定 if(transform.position.x < 1.48) { Application.LoadLevel(7) ; } } function OnCollisionEnter(col : Collision) { var count : int = 0 ; // 削除判定 if (col.gameO...
/** Gamepads related functionality. * * The object also works as an array of gamepads, thus * PLAYGROUND.Gamepads[0] is the first one. * * Properties: * - app: the main application object * - buttons: maps numeric ids to button names * - gamepads: * - gamepadmoveEvent: cached event * - gamepaddownEvent: cac...
angular.module('movieCore', ['ngResource']) .factory('PopularMovies', function($resource) { var token = 'teddybear'; // TBD return $resource('popular/:movieId', { movieId: '@id' }, { update: { method: 'PUT', headers: { 'authToken': token } }, get: { method: 'GET', ...
(function () { angular.module('profile', [ ]); })();
/** * @Author: robin * @Date: 2017-03-07 17:30:24 * @Email: xin.lin@qunar.com * @Last modified by: robin * @Last modified time: 2017-03-07 17:30:24 */ 'use strict' var _ = require('lodash'), swiftUtils = require('../common/swiftUtils'), utils = require('../common/utils'); /*@Command({ "name": "swift...
const answers = [ 'Maybe.', 'Certainly not.', 'I hope so.', 'Not in your wildest dreams.', 'There is a good chance.', 'Quite likely.', 'I think so.', 'I hope not.', 'I hope so.', 'Never!', 'Fuhgeddaboudit.', 'Ahaha! Really?!?', 'Pfft.', 'Sorry, bucko.', 'Hell, yes.', 'Hell to the no.', 'The future is bleak.', 'The futu...
import './api/methods'; import './models'; import './publications';
import test from 'ava'; import sinon from 'sinon'; import ApiServer from '../../../src/server/api/server'; import ServerSettingsManager from '../../../src/server/setting/server-settings-manager'; test.beforeEach((t) => { t.context.sandbox = sinon.sandbox.create(); t.context.sandbox.stub(ServerSettingsManager, 'ge...
var express = require('express'); var router = express.Router(); /* GET contact page. */ router.get('/', function(req, res) { res.render('contact'); }); module.exports = router;
/***************** Sends information to the Simulation/Stats file *****************/ function statsController(){ console.log("Creating Stats Controller"); /* DECLARATIONS */ this.statsView = new statsView(); /* OBSERVABLE METHODS */ this.observers = []; this.addObserver = function(observer){ this.observers.p...
var class_v_global = [ [ "ChangeState", "class_v_global.html#a6912456eee6d25949756504b9fe439d0", null ], [ "ClearState", "class_v_global.html#aab319618a34b8ec21cbfbdd380d1f05b", null ], [ "Collides", "class_v_global.html#a081f153646fc33751cb3a969f4d64c34", null ], [ "CollidesCircle", "class_v_global.htm...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({widgetLabel:"Zoom",zoomIn:"Acercar",zoomOut:"Alejar"});
import React, { Component } from 'react' import Reflux from 'Reflux' import mui, { AppBar, Card, FlatButton, TextField, RaisedButton, CircularProgress } from 'material-ui' import DashboardActions from '../actions/DashboardActions' import Store from '../stores' import { History } from 'react-router' const Login = React...
import angular from 'angular'; import appConfig from './app.config'; import explorerCoreModule from './explorer-core.module'; import explorerLayoutModule from './layout/explorer-layout.module'; import explorerTwoDimensionalBrushModule from './features/explorer-two-dimensional-brush/explorer-two-dimensional-brush.mod...
import { connect } from 'react-redux' import ForgotPassword from '../components/ForgotPassword' import { errorHandler } from 'util/common' import axios from 'axios' import { forgotRequest, forgotFailure, forgotSuccess } from '../modules/forgotPassword' import APP_SETTINGS from 'config' const mapDispatchToProps = (disp...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors'), Database = mongoose.model('Database'), User = mongoose.model('User'), _ = require('lodash'); /** * Create a Database */ exports.create = function(req, res) { var database = new Database(req.bod...
var domMatch = /^[#\.a-zA-Z]/, clsMatch = /^\$/; Fly.def('Fly.Controller', { singleton: true, /** * * * .class * #id * $className as in Fly.ns(__className__) * $className[foo=bar] * * * * control: { * 'something' : { * event: 'fn' * ...
'use strict'; var clc = require('cli-color'), path = require('path'), fs = require('fs-extra'); var utils = { path: process.cwd(), package: require(path.resolve(__dirname, '..', '..', 'package.json')), banner: function(text) { if (text && typeof text == 'object' && text.length) { text = text...
import FlowBuilder from 'ember-cli-flowbuilder/components/flow-builder'; export default FlowBuilder;
import {TeamService} from "../../../both/service/TeamService" import {Utils} from "../../../client/service/Utils" export class TaskListComponent extends BlazeComponent { constructor() { super(); this.taskListAdvancedSearch = new ReactiveVar(false); this.isAfterFilterOn = new ReactiveVar(false); this....
function foo() {} export default foo
var app = (function(document) { 'use strict'; var docElem = document.documentElement, _userAgentInit = function() { docElem.setAttribute('data-useragent', navigator.userAgent); }, _foundationInit = function() { // if we see .js-randomize class, we will randomize items for Orbit slider $('.js-randomiz...
import React from 'react'; export default class NameOutput extends React.Component { render() { return ( <div> Hello {this.props.name}! </div> ); } }
import React from 'react'; import renderer from 'react-test-renderer'; import AppContainer from './AppContainer'; describe('<AppContainer />', () => { test('it should match the snapshot', () => { const component = renderer.create(<AppContainer />).toJSON(); expect(component).toMatchSnapshot(); }); });
angular.module('starter', ['ionic']) .run(function($ionicPlatform) { $ionicPlatform.ready(function() { // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard // for form inputs) if (window.cordova && window.cordova.plugins.Keyboard...
var fs = require("fs"); // Synchronously reading filesystems. //var files = fs.readdirSync('./lib'); // Async read fs.readdir('./lib', function(err, files){ if(err){ throw err; } console.log(files); }) global.console.log("readling files...");
/** * Stripe Bank Account Model * * <%= whatIsThis %>. * * Refer to Stripe Documentation https://stripe.com/docs/api#bank_accounts */ module.exports = { autoPK: false, attributes: { id: { type: 'string', //"ba_16q4nxBw8aZ7QiYmwqM3lvdR" primaryKey: true, unique: true }, object: { type: 's...
"use strict"; //# sourceMappingURL=ReactComponentType.js.map
({ mustDeps: [ {block: 'i-ajax-proxy'}, {block: 'i-promise'}, {block: 'i-state'} ] })
exports.create = require('./create'); exports.change = require('./change'); exports.remove = require('./remove');
function PrintMessage(msg) { var span = document.getElementById('elementName'); span.innerHTML = msg; }
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const authToken = 'your_auth_token'; const IpMessagingClient = require('twilio').IpMessagingClient; const client = new IpMessagingClient(accountSid, authToken); const service = client.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); service .channels('CHXXXXXX...
describe("jB.count", function () { it("should be able to count Objects", function () { var testOB = { foo1: 1, foo2: 2 }; expect(jB.count(testOB)).toEqual(2); delete testOB.foo1; expect(jB.count(testOB)).toEqual(1); testOB.foo3 = 1; tes...
(function(){ var express = require('express'); var path = require('path'); var app = express(); var config = require('./config/server-config')(app); var router = require('./routes/index')(app); // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('view engine'...
// import scss from './assets/sass/app.scss' const sass = require('./assets/sass/app.sass'); const navvar = require('./assets/js/bulma.navvar.js'); const jquery = require("jquery"); const flickity = require('../node_modules/flickity/dist/flickity.pkgd.js'); const main = require('./assets/js/main.js'); console.log(...
Desktop = Backbone.Collection.extend({ /* -- Backbone Collection -- */});
var provider = { safe_color_names: [ 'preto', 'marrom', 'verde', 'roxo', 'azul', 'laranja', 'cinza', 'amarelo', 'branco','vermelho', 'violeta' ], color_names: [ 'Azul', 'Azul claro', 'Azul marinho', 'Azul celeste', 'Azul cobalto', 'Azul turquesa', 'Amarelo', 'Amarelo claro', 'Amarelo Mostarda', 'Âmbar', 'Am...
import styled from "styled-components" import { FONTS } from "../../../../themes/constants" export const Container = styled.div` text-align: right; ` export const Label = styled.span` font-size: 9px; font-family: ${FONTS.sansSerif}; text-transform: uppercase; margin: 0 0 10px 0; opacity: 0.45; ` export ...
'use strict'; class TickCounter { constructor(max) { this.ticks = 0; this.max = max; this.countTicks(); } countTicks() { setImmediate(() => { this.ticks += 1; if (this.max > this.ticks) { this.countTicks(); } }); } } module.exports = TickCounter;
var Commands = require('commands'); var express = require('express'); var app = express(); (require('properties-reader')('src/properties/' + process.env.NODE_ENV + '.properties')) .bindToExpress(app, __dirname, true); (require('properties-reader')('src/properties/i18n.properties')).each(function (key, value) { ...
'use strict'; // register photos component along with its controller and template angular.module('photos'). component('photosComponent', { templateUrl: 'pictures/photos.template.html', controller: ['Photos', function PhotosController(Photos) { var self = this; self.photos = []; ...
//import liraries import React, { Component } from 'react'; import { Image } from 'react-native'; // create a component export default class TabBarItem extends Component { render() { let selectedImage = this.props.selectedImage ? this.props.selectedImage : this.props.normalImage return ( ...
import React, { PropTypes } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './ProfileInfo.css'; import Avatar from 'material-ui/Avatar'; import AvatarImage from './images/ed_sheeran.jpeg'; import List from 'material-ui/List/List'; import ListItem from 'material-ui/List/List...
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];retu...
'use strict'; /* Services */ var socialrServices = angular.module('socialr.services', ['ngResource']); // Demonstrate how to register services // In this case it is a simple value service. socialrServices.value('version', '0.1'); socialrServices.factory('City', ['$resource', function($resource) { return $reso...
function solve() { return function (selector) { var template = '<table class="items-table">' + '<thead>' + '<tr>' + '<th>#</th>' + '{{#headers}}' + '<th>{{this}}</th>' + '{{/headers}}' + ...
import React, { Component, PropTypes } from 'react' import { AppRegistry, StyleSheet, View } from 'react-native' import NavigatorComp from './App/Components/Navigator' AppRegistry.registerComponent('RN_HiApp', () => NavigatorComp)
/* */ "format cjs"; "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;...
var Helper = require("@kaoscript/runtime").Helper; module.exports = function() { class Foobar { constructor() { this.__ks_init(); this.__ks_cons(arguments); } __ks_init() { } __ks_cons(args) { if(args.length !== 0) { throw new SyntaxError("Wrong number of arguments"); } } __ks_func_foo_0(...
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); module.exports = () => new CaseSensitivePathsPlugin();
// @flow /** * Copyright (c) 2017, Dirk-Jan Rutten * 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 { graphql, GraphQLObjectType, GraphQLSchema } from 'graphql' import { GraphQLDateTime } from '../dis...
// Generated by CoffeeScript 1.10.0 (function() { var XMLProcessingInstruction, create; create = require('lodash/create'); module.exports = XMLProcessingInstruction = (function() { function XMLProcessingInstruction(parent, target, value) { this.options = parent.options; this.stringify = parent.s...
// создаем примесь Ergo.alias('includes:expand-path', { expandPath: function(path, effects) { var path_a = path.split(':'); if(path_a.length > 1) { var found = null; var item_name = path_a.shift(); this.items.each(function(item) { if(item.prop('name') == item_name) found = item; }); ...
/* global describe, it, afterEach, after */ 'use strict' const chokidarEvEmitter = require('../server') const fs = require('fs') const chai = require('chai') const expect = chai.expect describe('chokidar-socket-emitter', function () { let chokidarServer this.timeout(3000) it('should fire a change event when fil...
import { storageAvailable } from './helpers'; // DOM const welcomeDOM = document.getElementById('js-welcome-modal'); const welcomeButtonDOM = document.getElementById('js-welcome-dismiss'); export default function () { // Only display the welcome modal if localStorage is available, // so that we can easily keep ...
/** * Module dependencies. */ var express = require('express') , mongoStore = require('connect-mongo')(express) , flash = require('connect-flash') module.exports = function (app, config) { app.set('showStackError', true) // should be placed before express.static app.use(express.compress({ filter: fun...