code
stringlengths
2
1.05M
{ "version": 1484610532, "fileList": [ "data.js", "c2runtime.js", "jquery-2.1.1.min.js", "images/player-sheet0.png", "images/water.png", "images/bullet-sheet0.png", "images/enemy-sheet0.png", "images/spawner-sheet0.png", "images/bullet2-sheet0.png", "images/endscreen.png", "images/...
'use strict'; N.wire.once(module.apiPath, function blog_entry_setup_handlers() { // Click report button // N.wire.on(module.apiPath + ':report', async function entry_report(data) { let params = { messages: t('@blogs.abuse_report.messages') }; let id = data.$this.data('entry-id'); await N.wire.emit...
const nrp = require('./redis-connection') const requestPromise = require('request-promise'); nrp.on('research', async (data, channel) => { console.log('redis receive research event'); //call pixabay API let option = { url: `https://pixabay.com/api/?key=6046842-3f4bef53f6c1393f1e9fad569&q=${data.sea...
angular.module('exampleApp', ['ngRoute', 'hljs']) .constant('exampleRoutes', [ '/hljs', '/hljs-source', '/hljs-include', '/hljs-language', '/hljs-compile' ]) .config(['$routeProvider', 'exampleRoutes', function ($routeProvider, exampleRoutes) { angular.forEach(exampleRoutes, function (path) { $routeProvide...
/****************************** NOTIFICATION ******************************/ function Notification() { } //// @title is optional //// @button is ignored as this can't be specified in WP7 Notification.prototype.alert = function (message, title, button) { PhoneGap.exec("Notification.Alert;" + message + ";" + title +...
/** @constructor */ ScalaJS.c.scala_runtime_AbstractFunction2$mcDIJ$sp = (function() { ScalaJS.c.scala_runtime_AbstractFunction2.call(this) }); ScalaJS.c.scala_runtime_AbstractFunction2$mcDIJ$sp.prototype = new ScalaJS.inheritable.scala_runtime_AbstractFunction2(); ScalaJS.c.scala_runtime_AbstractFunction2$mcDIJ$sp.p...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("preview","mk",{preview:"Preview"});
"use strict"; var webpack = require("webpack"); var pkg = require("../package.json"); var now = new Date(); function pad(num) { return (num < 10 ? "0" : "") + num; } var banner = [ pkg.name + " - v" + pkg.version, "License: " + pkg.license, "Date: " + now.getFullYear() + "-" + pad(now.getMonth() + 1) + "-" + p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require("react"); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Title = function Title() { return _react2.default.cre...
"use strict"; const { defer } = require('sdk/core/promise'); const request = require("sdk/request").Request; const tabs = require("sdk/tabs"); const CLIENT_ID = "8d4d19ba6f6287bd528d7c351eb8d272f87f0afc"; const REDIRECT_URI = "http://arlogn.github.io/easyshare/"; /* Shorten long URLs */ function shorten (longUrl, t...
/*global defineSuite*/ defineSuite([ 'Scene/GroundPrimitive', 'Core/Cartesian3', 'Core/Color', 'Core/ColorGeometryInstanceAttribute', 'Core/ComponentDatatype', 'Core/destroyObject', 'Core/Ellipsoid', 'Core/Geometry', 'Core/GeometryAttribute', ...
var gulp = require('gulp'), gulpLoadPlugins = require('gulp-load-plugins'), plugins = gulpLoadPlugins({ rename: { 'gulp-minify-css': 'minifyCss' } }), env = 'dev', minify = false; /** * help! */ if (plugins.util.env.help) { plugins.util.log(plugins.util.colors.cyan...
function homepage(request, response) { response.send('login is here'); } export default homepage;
var plot, ymax,xmax; $(function(){ var graph = $('.plot'); graph.height(graph.width()/2); updateGraph(); $('.scaley').click(function(){ $(this).toggleClass('success'); $('.gymax').parents('.columns').toggleClass('invisible'); if($('.gxmax').is(':visible')){ $('.gymax').val(ymax); } }); ...
function wordsUppercase(str) { console.log(str.toUpperCase() .split(/\W+/) .filter(w => w !== '') .join(', ')); } wordsUppercase('Hi, how are you?');
/*jslint es5: true, devel: true, node: true, indent: 2, vars: true, nomen: true */ /*global */ 'use strict'; var express = require('express'), staticRenderer = require('./staticRenderer'), port = process.env.PORT || 3000; var server = express(); server.configure(function () { server.use...
/* Angular Clear Input directive (c) 2014 Daniel Cohen. http://dcb.co.il License: MIT */ angular.module('dcbClearInput', []) .directive('clearInput', ['$parse', function($parse) { return { restrict: 'A', require: 'ngModel', link: function(scope...
export { default } from 'ember-fhir/serializers/nutrition-order-oral-diet';
import SelectItem from "@/objects/SelectItem"; export default { id: 0, num: "", contact_id: 0, contact: SelectItem, company_id: 0, company: SelectItem, cert_date: "", note: "", };
const defaults = { hideClassName: 'h-hide', showClassName: 'h-show', }; export default defaults;
const fs = require('fs'); var csproj = fs.readFileSync('./generators/webapi/templates/webapi.csproj', 'utf8'); csproj = csproj.substring(0, csproj.lastIndexOf('</ItemGroup>')) + '\t<% if (includeSwagger) { %><PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" /><% } %>\n\t' + csproj.substring(csproj...
(function ($) { "use strict"; $.fn.circleChart = function (options) { const defaults = { color: "#3459eb", backgroundColor: "#e6e6e6", background: true, speed: 2000, widthRatio: 0.2, value: 66, unit: 'percent',...
"use strict"; // For security, we must avoid malicious command injection. // At least we should use `arg`, but better use the more strict others. // Of course, since we use `execFile` rather than `exec`, // even if we don't validate, it's moderately safe because `&&`, `;` and `|` // can't have special meanings. But we...
'use strict'; const auth = require('./authentication'); const router = require('express').Router(); const ContactController = require('./../controller/contactCtrl'); router.post('/', auth.requiresRole("admin"), ContactController.create); router.put('/', auth.requiresRole("admin"), ContactController.update); router.g...
var should = require('should'), S = require('string'), base = require('./base.js'); describe('findTemplateAndValidate error', function() { beforeEach(base.beforeEachFn); it('should error where file is a stream', function() { base.file.isStream = function() { return true; } var emit = function(name, error...
version https://git-lfs.github.com/spec/v1 oid sha256:6ad63e425e6af0884f2e80b41934083108406ccf6ea010f6a4ef2cb0611e89c7 size 359685
import React from 'react'; import { Row, Col, BackTop} from 'antd'; import MobileHeader from './mobile_Header'; import MobileFooter from './mobile_Footer'; import CommonComments from './common_comments' export default class MobileNewsDetails extends React.Component { constructor() { super(); this.state =...
var classServicioInexistente = [ [ "ServicioInexistente", "classServicioInexistente.html#a562d7649003fb65bdd6641b02df58eb1", null ], [ "~ServicioInexistente", "classServicioInexistente.html#a5a0266dae9a6c48651363c5ff51cd7cd", null ] ];
(function() { 'use strict'; angular.module('daksportsApp') .directive('gdCarousel', function($interval) { return { restrict: 'E', scope: { items: '=data', animated: '=', shuffled: '=', ...
// Generated on 2015-02-25 using generator-angular 0.9.8 '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 grunt tasks au...
function UserShowTempChartXAxisGroup(svgObj, optionsObj) { this.data = svgObj.data; this.svg = svgObj.svg; this.margin = optionsObj.margin; this.x = svgObj.x; this.startDate = svgObj.startDate; this.endDate = svgObj.endDate; this.height = optionsObj.height; this.xAxis = this.setXAxis(); this.strokeWid...
module.exports = function (error, message) { assert.isAbove(error.message.search('VM Exception'), -1, message); }
import Ember from 'ember'; export default Ember.Mixin.create({ queryParams: { sort: { refreshModel: true } }, /** * Десериализовать строку с параметрами сортировки. Ожидается строка следующего вида: '+Имя1-Имя2{...}', * где '+' и '-' - направления сортировки, 'ИмяX' - имя свойства для сортировки. *...
const React = require('react'); const { filterChildren, mapChildren } = require('idyll-component-children'); class CustomComponent extends React.Component { componentDidMount() { const { currentSlide, tag, children } = this.props; const slides = filterChildren(children, c => { return c.type.name && c.t...
"use strict"; function trace(x) { console.log(x); return x; }
import common from '../common'; export default { jpath: ['spectra', 'icp'], find: common.basenameFind, getProperty: common.getTargetProperty, process: common.getMetaFromJcamp, };
'use strict'; card.guozhan={ connect:true, card:{ yuxi:{ mode:['guozhan'], fullskin:true, type:'equip', subtype:'equip5', skills:['yuxi_skill'], ai:{ equipValue:9 } }, xietianzi:{ fullskin:true, type:'trick', lianheng:true, enable:function(card,player){ if(get.mode()=='g...
/* Easing functions ---------------------------------------- Generates and provides easing functions based on baseFunction definitions A call to easingFunction.get('functionName') returns a function that can be passed: @param [number]: Progress 0-1 @param [number] (optional): A...
let _ = require('lodash'); let utils = { objectToQueryString: function(obj) { let qs = _.reduce(obj, function(result, value, key) { return (!_.isNull(value) && !_.isUndefined(value)) ? (result += key + '=' + value + '&') : result; }, '').slice(0, -1); return qs; }, capitalizeFirst: funct...
import { createNavigationProp } from '../../testutils'; import { View, ScrollView } from 'react-native'; import NavigationButtonListView from './NavigationButtonListView'; import Separator from '../common/Separator'; describe('components:navigation:NavigationButtonListView', () => { let component; const renderRow ...
(function(window, document, undefined, snch) { 'use strict'; function FramesJS(id, options) { this.id = id || 'FramesJS'; this.version = FramesJS.VERSION; this.options = merge(options || {}, FramesJS.defaults); var preloader = new snch.PreloaderJS(this.options.sprites, this.setup.bind(this)); } ...
#!/usr/bin/env node var path = require("path"); var fs = require("fs"); var rsa = require('node-rsa'); var Promise = require('es6-promise').Promise; var program = require("commander"); var ChromeExtension = require(".."); var pkg = require('../package.json'); var resolve = path.resolve; var join = path.join; var cw...
var staticLocator = function(latlng) { var logger = require("winston"); /** * Get GPS location from URL. */ function getLocation(callback, error) { logger.info("Using static location:", latlng); var response = { lat: latlng.lat, lng: latlng.lng }; ...
/** * 进行定义请求Action类型 */ 'use strict' export const HOME_PAGE_STATUS = { START_LOADING: 'FETCH_LOAD_HOME_LIST', SUCCESS: 'SUCCESS_RECEIVED_HOME_LIST', FAILURE: 'FAILURE_RECEIVED_HOME_LIST', }
/* Especificação Jasmine para os serviços de regras de negócio */ (function () { 'use strict'; describe('test setCreds', function() { var $rootScope; var setCreds; beforeEach(module('blogBusinessServices')); beforeEach(inject(function ($injector) { $rootScope = $inj...
import sqf from "refractor/lang/sqf.js";; export default sqf;
/** * 用户/授权相关 servcie */ /** * 监听用户登陆状态变化 */ export const authStateChange = (onSuccess, onError) => { firebase.auth().onAuthStateChanged(user => { if (user) { user.getToken().then(accessToken => { onSuccess && onSuccess({ isLogin: true, ...
(function () { /** * AuthService handles user permissions * * @param $http * @returns {AuthService} * @constructor * @param $cookies * @param $location */ function AuthService($http, $location) { /** * logout a user and * @param next - a url to ...
'use strict'; //Cars service used to communicate Cars REST endpoints angular.module('cars').factory('Cars', ['$resource', function($resource) { return $resource('cars/:carId', { carId: '@_id' }, { update: { method: 'PUT' } }); } ]).factory('Views', ['$resource', function($resource) { retu...
import reducer from '..' describe('Schedule Reducers module', () => { it('provides events reducer', () => { expect(reducer(undefined, {})).toHaveProperty('events') }) })
/** * @class Oskari.userinterface.extension.EnhancedExtension * * */ Oskari.clazz.define("Oskari.elf.extension.EnhancedExtension", /** * @method create called automatically on construction * @static * @param name {String} bundle name to be used for communication with sandbox * @param tileCl...
'use strict'; const authenticator = require('../services/authenticator'); module.exports = (yargs) => { authenticator.logout(); };
/* ========================== Vertical Responsive Menu ========================== */ 'use strict'; var tid = setInterval( function () { if ( document.readyState !== 'complete' ) return; clearInterval( tid ); var querySelector = document.querySelector.bind(document); var nav = document.querySelector('.vert...
/* global angular, $ */ var app = angular.module("prsApp", []); app.directive("prsFileUpload", function() { return { restrict: 'E', templateUrl: 'tpl/fileUpload.tpl', replace: 'true', link: function(scope, element, attrs) { $(element).fileuploa...
/** * @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 */ !function() { 'use strict'; // tslint:disable-next-line:no-console console.log('Hello, Alice in Wonderland'); ...
'use strict' /*! * imports. */ var curry2 = require('curry2') /*! * exports. */ module.exports = curry2(or) /** * Returns `expr1` if it can be converted to true; otherwise, returns `expr2`. * * @param {*} expr2 * Expression #2. * * @param {*} expr1 * Expression #1. * * @return {*} * `expr1` if it can...
var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'GitHub', version:'0.3', prepareImgLinks:function (callback) { var res = []; $('a > img[data-canonical-src]').each(function () { var img = $(this); img.data('hoverZoomSrc', [img.attr...
/** * @author mrdoob / http://mrdoob.com/ * @author Larry Battle / http://bateru.com/news */ var THREE = module.exports = { REVISION: '52' }; self.console = self.console || { info: function () {}, log: function () {}, debug: function () {}, warn: function () {}, error: function () {} }; self.Int32Array = s...
const path = require("path"); const merge = require("webpack-merge"); const baseConfig = require("./webpack.config.js"); const VueSSRClientPlugin = require("vue-server-renderer/client-plugin"); const CompressionPlugin = require('compression-webpack-plugin'); const BundleAnalyzerPlugin = require('webpack-bundle-analyze...
/** * @ngdoc directive * @name axis.directive:buildChart * @description * Builds the chart preview and sets titles. Watches for specific scope changes * and redraws when appropriate. * * This file is admittedly a bit of a mess and needs a bit of a rewrite. */ (function(){ 'use strict'; angular.module('a...
'use strict'; const express = require('express'); const router = express.Router(); const wholeMonth = require('node-cal/lib/month').wholeMonth; const calendar = require('node-cal/lib/year').calendar; // const backButton = `<a class="back" href="http://localhost:3000/">Back</a>`; const title = `.cal.js`; // month cale...
// 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...
var table = 3; // Unit of table var operator = 'addition' // Type of calculation (defaults to addition) var i = 1; // Set counter to 1 var msg = ''; // Message if (operator === 'addition') { // If the operator variable says addition while (i < 11) { // While counter is less than 11 msg += i + ' + ' ...
Ext.define("Com.GatotKaca.ERP.store.Employee",{extend:"Ext.data.Store",model:"Com.GatotKaca.ERP.module.HumanResources.model.Employee",autoLoad:false,autoSync:false,proxy:{type:"ajax",api:{read:BASE_URL+"human_resources/employee/getbyjoblevel"},actionMethods:{read:"POST"},reader:{type:"json",root:"data",successProperty:...
'use strict'; var util = require('util'); var Orchestrator = require('orchestrator'); var gutil = require('gulp-util'); var deprecated = require('deprecated'); var vfs = require('vinyl-fs'); var testvar = "testvar1" var testvar2 = "testvar2" var testvar3 = "testvar3" function Gulp() { Orchestrator.call(this); } uti...
//# sourceURL=manager.js $(function () { var dt=$("#listSettles").jDataTables({ "order": [[1, "desc"]], "columnDefs": [ { "searchable": false, "orderable": false, "targets": 9 }], "columns":[ {"data":"id","orderable": false,width:'3%'}...
// tiny wrapper with default env vars module.exports = { NODE_ENV: (process.env.NODE_ENV || 'development'), PORT: (process.env.PORT || 3000) };
/** * Created by ryancornillie on 1/21/17. */ angular.module('myApp.officeService', ['ngWebSocket']) .factory("OfficeService", function ($http, $q, API, $websocket) { var service = {}; service.dataLoaded = false; var dataStream = $websocket('ws://localhost:3333/test'); servi...
/* eslint-env mocha */ require('should') var prune = require('../lib/prune.js') describe('prune', function () { var model beforeEach(function () { model = { namespace: 'jsreport', entityTypes: { 'UserType': { '_id': { 'type': 'Edm.String', key: true ...
/** * @since 150610 10:31 * @author vivaxy */ var http = require('http'); var approach = require('./approach'); var longitude = { valid: 121.4156, }; var latitude = { valid: 31.21716, }; var getUrl = function (lo, la) { return '/app/checkin/loadSign?longitude=' + lo + '&latitude=' + la; }; var request = fun...
Asyncplify.range = function (options) { return new Asyncplify(RangeOp, options); }; function RangeOp(options, sink) { this.end = typeof options === 'number' ? options : options && options.end || 0; this.i = options && options.start || 0; this.sink = sink; this.sink.source = this; this.state = ...
var _CONST = { ROOT_RIGHT_SYMBOL: '*' }; var mod = {}; module.exports = mod; mod.isAllowed = function(has, requires) { has = has || []; requires = requires || []; requires = isArray(requires) ? requires : [requires]; return isEmpty(requires) || isRoot(has) || checkOr(has, requires); }; function isArray(ma...
var vows = require('vows'), fs = require('fs'), assert = require('assert'), iconv = require(__dirname + '/../'); var testString = "中国abc",//unicode contains GBK-code and ascii testStringGBKBuffer = new Buffer([0xd6, 0xd0, 0xb9, 0xfa, 0x61, 0x62, 0x63]); vows.describe("GBK tests").addBatch({ "Vows ...
Template.war.onCreated(function () { var instance = Template.instance(); instance.autorun(function () { instance.subscribe('bops', FlowRouter.getParam("warId")); }); }); Template.war.helpers({ war: function () { return FlowRouter.getParam("warId"); } }); Template.war.events({ 'click .war': functio...
/*! fact - v0.1.0 - 2012-09-14 * https://github.com/rwldrn/fact * Copyright (c) 2012 Rick Waldron; Licensed MIT */ (function(exports, undefined) { var isArray = Array.isArray ? Array.isArray : function _isArray(obj) { return Object.prototype.toString.call(obj) === "[object Array]"; }; var defaultMaxListener...
var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return chi...
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term...
/* * grunt-git-ftploy * https://github.com/joseadrian/grunt-git-ftploy * * Copyright (c) 2013 Joseadrian OB * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ "git-ftploy": { production: { connect: { ...
'use strict'; (function(angular, q, _) { var analysisModule = angular.module('analysis', ['storage', 'AwesomeChartJS']); q.analysis = { getViewModel: function(questions, answers) { var numbers = { 'positive': 0, 'negative': 0, 'neutral': 0 }; _.each(questions, _.bind(function(question) { ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Collapse from 'react-collapse'; import { selectDisabilityStatus, selectDisabilityType, } from '../../../../redux/actions/personalInfo'; class DisabilityStatus extends Component { constructor(props) { super(props); thi...
'use strict'; const debug = require('./util')('config'); /** * @function createConfig * @description * Load the config from the specified path * @param {string} file The path to the config file * @returns {Object} the loaded object **/ exports = module.exports = file => { let json; debug('loading config at',...
var path = require('path'); var exec = require('child_process').exec; var fs = require('fs'); var god = require('./helpers/godModule'); var defaultConfigFile = path.join(__dirname, '/../templates/data-json/default/_data.json'); var input = path.join(__dirname + '/../configurations/dataConfig'), websitePath = path...
'use strict'; function InvalidArgumentError(message, data) { this.name = 'InvalidArgumentError'; this.message = message || 'Invalid argument!'; this.stack = (new Error()).stack; Object.assign(this, data || {}); } function ObjectUndefinedError(message, data) { this.name = 'ObjectUndefinedError'; this.mess...
'use strict'; var eventsApp = angular.module('eventsApp', ['ngResource', 'ngRoute']) .config(function ($routeProvider) { $routeProvider.when('/newEvent', { templateUrl: 'templates/NewEvent.html', controller: 'EditEventController' }); $routeProvider.when('/events', {...
import 'react-native'; import React from 'react'; //import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; // it('renders correctly', () => { // const tree = renderer.create( // <Index /> // ); // }); it('should pass', ...
version https://git-lfs.github.com/spec/v1 oid sha256:bb7bee9f828b9a8d7592e5941618891d9d5a6bbbb378951ae2ffc9118d7f40f6 size 450
window.setTimeout(function onLoad() { 'use strict'; var scene, camera, renderer, container, material, geometry, mesh, theLight1, theLight2, orbitControls, mouseVector, rayCaster, lastIntersected, highlightMaterial, physijsMaterial, planeGeometry, planeMaterial, planePhysiMaterial, planeMesh, ...
module.exports = Vue.extend({ mixins: [ require('../lib/package') ], data: function () { return _.extend(window.$data, { package: {}, view: '', updates: null, search: '', status: '' }) }, ready: function () { ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
const path = require('path') const webpack = require('webpack') const config = { js: { src : './js.src/', dev : './js/', dist : './js/', }, css: { src : './css.src/', dev : './css/', dist : './css/' } } module.exports = { entry: { 'toy' : [ path.resolv...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable global-require */ // The top-level (...
// modified from react-component-gulp-tasks // https://github.com/JedWatson/react-component-gulp-tasks var deploy = require('gulp-gh-pages'), git = require('gulp-git'); module.exports = function(gulp, config) { gulp.task('publish:tag', function(done) { var pkg = JSON.parse(require('fs').readFileSync('./pack...
$(function() { $('.item-swipe').swipeTo({ minSwipe: 100, angle: 10, wrapScroll: 'body', binder: true, swipeStart: function() { console.log('start'); }, swipeMove: function() { console.log('move'); }, swipeEnd: function() { console.log('end'); }, }); deleteItem(); getIe(); }) var delet...
switch (process.env.NODE_ENV) { case 'prod': case 'production': module.exports = require('./webpack/prod.conf.js'); break; case 'test': module.exports = require('./webpack/test.conf.js'); break; default: module.exports = require('./webpack/dev.conf.js'); }
var expect = require('chai').expect; var fs = require('fs'); var rl = require('../index'); var stream = require('stream'); describe('EndNote XML parser - encode / decode custom fields', ()=> { var ref; before(function(next) { this.timeout(60 * 1000); rl.parse(fs.createReadStream(__dirname + '/data/endnote-sm.xm...
import React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { shallow } from 'enzyme'; import Racials from '../../../src/components/Character/Racials'; import Ability from '../../../src/components/Character/styled/Ability'; import AbilityGroup from '../../../src/components/Character/s...
/* * grunt-angular-extender * https://github.com/mariocasciaro/grunt-angular-extender * * Copyright (c) 2013 Mario Casciaro * Licensed under the MIT license. */ 'use strict'; var angularExtender = require('angular-extender'), path = require('path'), fs = require('fs'); module.exports = function(grunt) { ...
'use strict'; import Immutable from 'immutable'; import {Disposable} from 'event-kit'; export default class ValidatorContext { constructor(fieldName, store, i18n) { this.fieldName = fieldName; this.store = store; this.i18n = i18n; this.fields = Immutable.Set(); } subscription() { return new ...
jQuery(function($) { // Local File $('.field.type-localfile').each(function() { var $el = $(this), data = $el.data(); var $action = $el.find('.field-action'), $upload = $el.find('.field-upload'); var $uploadBtn = $el.find('.btn-upload-file'), $deleteBtn = $el.find('.btn-delete-file'), $cancelBtn...
"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...