code
stringlengths
2
1.05M
module.exports = { options: { filepathTransform: function(filepath) { filepath.replace('ember-model', 'ember-model/lib'); return 'packages/' + filepath.replace('ember-model', 'ember-model/lib'); } }, 'dist/ember-model.js': 'packages/ember-model/lib/main.js' };
// DATA_TEMPLATE: empty_table oTest.fnStart( "Custom data source property - array only" ); $(document).ready( function () { var oInit = { "sAjaxSource": "../../../examples/ajax/sources/array_only.txt", "bDeferRender": true, "sAjaxDataProp": "" }; $('#example').dataTable( oInit ); oTest.fnWaitT...
version https://git-lfs.github.com/spec/v1 oid sha256:eb0c3092c0ce1efef8f00af22725ffa9b58617a078063ee9e157ff2045cc170c size 2806
module.exports={title:"Odnoklassniki",hex:"F4731C",source:"http://v.ok.ru/logo.html",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Odnoklassniki icon</title><path d="M14.505 17.44c1.275-.29 2.493-.794 3.6-1.49.834-.558 1.058-1.686.5-2.52-.536-.802-1.604-1.044-2.435-.553-2.55 1.595-5...
/************************************************************* * * MathJax/localization/uk/TeX.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy...
var path = require('path'); var webpack = require('webpack'); module.exports = { cache: true, entry: path.join(__dirname, '/modules/index.js'), externals: [ { "react": { root: "React", commonjs2: "react", commonjs: "react", amd: "react" } } ], output: { ...
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),AccordionContext=React.createContext({});"production"!==process.env.NODE_ENV&&(AccordionCont...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
/* flatpickr v4.0.6, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.pt = {}))); }(this, (function (exports) { 'use strict'; var fp = typeof wi...
// Copyright (c) 2017, Frappe Technologies and contributors // For license information, please see license.txt frappe.ui.form.on('Salutation', { refresh: function() { } });
/*! * froala_editor v2.6.2 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2017 Froala Labs */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory)...
/** * Entry point for the Firebase functions of the Screenshot tool. Firebase functions only support * JavaScript files and therefore the TypeScript files needs to be transpiled. Using ts-node * seems to be more elegant for now, because Firebase requires the `node_modules` to be copied * to the output directory and...
// File: chapter13/directive-no-transclusion/directive.js angular.module('stockMarketApp') .directive('stockWidget', [function() { return { templateUrl: 'stock.html', restrict: 'A', scope: { stockData: '=' }, link: function($scope, $element, $attrs) { $scope.getChange...
var punycode = {}; try { punycode = require("punycode"); } catch (e) { } module.exports = punycode;
var miniSurvey ={ bid:0, serviceURL: $("input[name=miniSurveyServices]").val() + '?block=form&', init: function(){ this.tabSetup(); /* for(var i=0;i<this.answerTypes.length;i++){ this.answerTypes[i].onclick=function(){miniSurvey.optionsCheck(this);miniSurvey.settingsCheck(this);} this.answerTyp...
/* YUI 3.18.1 (build f7e7bcb) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-synthetic', function (Y, NAME) { /** * Define new DOM events that can be subscribed to from Nodes. * * @module event * @submodule event-synthetic */ var C...
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M405.34 405.332H106.66V106.668H240V64H106.66C83.19 64 64 83.197 64 106.668v298.664C64 428.802 83.19 448 106.66 448h298.68c23.47 0 42.66-19.197 42.66-42.668V272h-42.66v133.332zM288 64v42....
describe('tooltip template', function() { var elm, elmBody, scope, elmScope, tooltipScope; // load the popover code beforeEach(module('ui.bootstrap.tooltip')); // load the template beforeEach(module('template/tooltip/tooltip-template-popup.html')); beforeEach(inject(function($temp...
/*! * jQuery JavaScript Library v1.3.2 * * Copyright (c) 2009 John Resig, http://jquery.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 ...
/** * @license Highcharts JS v6.0.1 (2017-10-05) * * Indicator series type for Highstock * * (c) 2010-2017 Sebastian Bochan * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { ...
/* Highcharts JS v6.0.0 (2017-10-04) Money Flow Index indicator for Highstock (c) 2010-2017 Grzegorz Blachliski License: www.highcharts.com/license */ (function(e){"object"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(e){function p(b){return b.reduce(function(c,b){retur...
window.addEventListener("load", function() { console.log("Hello World!"); });
IntlMessageFormat.__addLocaleData({locale:"to", messageformat:{pluralFunction:function (n) { return"other"; }}});
describe('$meteorStopper service', function() { var $meteorStopper; var $rootScope; var $scope; var $mock; var $meteorMock = function() { return { stop: function() {} }; }; beforeEach(angular.mock.module('angular-meteor.stopper')); beforeEach(angular.mock.inject(function(_$meteorStopper...
/* Highcharts plugin to handle text symbols */ (function (H) { function symbolWrap(proceed, symbol, x, y, w, h, options) { if (symbol.indexOf('text:') === 0) { var text = unescape(JSON.parse('"\\u' + symbol.split(':')[1] + '"')), svgElem = this.text(text, x, y) ...
'use strict'; var angular = require('angular'); angular .module('mwl.calendar') .filter('calendarTruncateEventTitle', function() { return function(string, length, boxHeight) { if (!string) { return ''; } //Only truncate if if actually needs truncating if (string.length >= len...
/* * Sugar Library v1.3.6 * * Freely distributable and licensed under the MIT-style license. * Copyright (c) 2012 Andrew Plummer * http://sugarjs.com/ * * ---------------------------- */ (function(){ /*** * @package Core * @description Internal utility and common methods. ***/ // A few optimi...
/** @module ember @submodule ember-htmlbars */ import Ember from 'ember-metal/core'; import { get } from 'ember-metal/property_get'; import updateScope from 'ember-htmlbars/utils/update-scope'; export default function updateSelf(env, scope, _self) { let self = _self; if (self && self.hasBoundController) { le...
CKEDITOR.plugins.setLang("colorbutton","ru",{auto:"Автоматически",bgColorTitle:"Цвет фона",colors:{"000":"Чёрный",8E5:"Бордовый","8B4513":"Кожано-коричневый","2F4F4F":"Темный синевато-серый","008080":"Сине-зелёный","000080":"Тёмно-синий","4B0082":"Индиго",696969:"Тёмно-серый",B22222:"Кирпичный",A52A2A:"Коричневый",DAA...
var env = require('../environment.js'), q = require('q'); // Make sure that borwser-related plugin hooks work with browser sync on exports.config = { seleniumAddress: env.seleniumAddress, framework: 'jasmine2', // Spec patterns are relative to this directory. specs: [ 'specs/browser_get_wait_spec.js'...
var AbstractFilter = require('./AbstractFilter'), math = require('../../../math'); // @see https://github.com/substack/brfs/issues/25 var fs = require('fs'); /** * The SpriteMaskFilter class * * @class * @extends PIXI.AbstractFilter * @memberof PIXI * @param sprite {Sprite} the target sprite */ function S...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v3.3.2 * @link http://www.ag-grid.com/ * @license MIT */ var utils_1 = require('../utils'); var column_1 = require("../entities/column"); var MoveColumnController = (function () { function Move...
/** * @author lxxxvi / https://github.com/lxxxvi * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch) */ QUnit.module( "SetRotationCommand" ); QUnit.test( "Test SetRotationCommand (Undo and Redo)", function( assert ) { // setup var editor = new Edito...
import WebpackDevMiddleware from 'webpack-dev-middleware' import applyExpressMiddleware from '../lib/apply-express-middleware' import _debug from 'debug' import config from '../../config' const paths = config.utils_paths const debug = _debug('app:server:webpack-dev') export default function (compiler, publicPath) { ...
'use strict'; var should = require('chai').should(); var fs = require('hexo-fs'); var pathFn = require('path'); var Promise = require('bluebird'); describe('Load plugins', function(){ var Hexo = require('../../../lib/hexo'); var hexo = new Hexo(pathFn.join(__dirname, 'plugin_test'), {silent: true}); var loadPlu...
module.exports={title:"KTM",slug:"ktm",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>KTM icon</title><path d="M0 15.735h3.354l.843-2.06 1.55 2.06h7.225l2.234-2.081-.372 2.081h2.83L20 13.675l-.32 2.06h3.052L24 9.99h-3.068l-2.486 2.191.48-2.19h-2.942l-3.209 3.216 1.342-3.938h4.907l.22...
/* * /MathJax/localization/fi/fi.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
/** * Dimensions.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * This module measures nodes and returns client rects. The client rects has an * extra node pro...
(function() { var errorMessage = "You have modified configuration"; var needToConfirm = false; function confirm() { needToConfirm = true; } function clearConfirm() { needToConfirm = false; } function confirmExit() { if (needToConfirm) { return errorMessage; ...
/*! jquery.atwho - v0.4.9 - 2014-04-12 * Copyright (c) 2014 chord.luo <chord.luo@gmail.com>; * homepage: http://ichord.github.com/At.js * Licensed MIT */ (function() { (function(factory) { if (typeof define === 'function' && define.amd) { return define(['jquery'], factory); } else { return fact...
/*jshint node:true*/ module.exports = function(grunt) { "use strict"; var banner, umdStart, umdMiddle, umdEnd, umdStandardDefine, umdAdditionalDefine, umdLocalizationDefine; banner = "/*!\n" + " * jQuery Validation Plugin v<%= pkg.version %>\n" + " *\n" + " * <%= pkg.homepage %>\n" + " *\n" + " * Copyrigh...
var moment = require('../../moment'); /************************************************** English *************************************************/ exports['locale:en'] = { setUp : function (cb) { moment.locale('en'); moment.createFromInputFallback = function () { thro...
/* * bootstrap-table - v1.10.0 - 2016-01-18 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2016 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.fn.bootstrapTable.locales["ur-PK"]={formatLoadingMessage:function(){return"براۓ مہربانی انتظار کیجئے"},formatRecordsPerPage:function(a){return ...
CKEDITOR.plugins.setLang("docprops","eu",{bgColor:"Atzeko planoko kolorea",bgFixed:"Korritze gabeko atzeko planoa (finkoa)",bgImage:"Atzeko planoko irudiaren URLa",charset:"Karaktere-jokoaren kodeketa",charsetASCII:"ASCII",charsetCE:"Erdialdeko Europakoa",charsetCR:"Zirilikoa",charsetCT:"Txinatar tradizionala (Big5)",c...
/*! * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScri...
// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc. // Underscore is freely distributable under the terms of the MIT license. // Portions of Underscore are inspired by or borrowed from Prototype.js, // Oliver Steele's Functional, and John Resig's Micro-Templating. // For all details and documentation: /...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v3.3.0 * @link http://www.ag-grid.com/ * @license MIT */ // class returns unique instance id's for columns. // eg, the following calls (in this order) will result in: // // getInstanceIdForKey('cou...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'liststyle', 'pt', { armenian: 'Numeração armênia', bulletedTitle: 'Bulleted List Properties', circle: 'Círculo', decimal: 'Decimal (1, 2, 3, etc....
function strcspn (str, mask, start, length) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // * example 1: strcspn('abcdefg123', '1234567890'); // * returns 1: 7 // * example 2: strcspn('123abc', '1234567890'); // * returns 2: 3 start = start ? s...
'use strict'; var path = require('path'); var BinWrapper = require('bin-wrapper'); var pkg = require('../package.json'); var url = 'https://raw.githubusercontent.com/imagemin/jpegtran-bin/v' + pkg.version + '/vendor/'; module.exports = new BinWrapper() .src(url + 'macos/jpegtran', 'darwin') .src(url + 'linux/x86/jp...
/*! * FullCalendar v2.7.3 Google Calendar Plugin * Docs & License: http://fullcalendar.io/ * (c) 2016 Adam Shaw */ (function(factory) { if (typeof define === 'function' && define.amd) { define([ 'jquery' ], factory); } else if (typeof exports === 'object') { // Node/CommonJS module.exports = factory(requir...
/* * input.js * * All javascript needed for ACF to work * * @type awesome * @date 1/08/13 * * @param N/A * @return N/A */ var acf = { // vars ajaxurl : '', admin_url : '', wp_version : '', post_id : 0, nonce : '', l10n : null, o : null, // helper functions helpers : { ge...
'use strict'; /* globals getInputCompileHelper: false */ describe('ngModel', function() { describe('NgModelController', function() { /* global NgModelController: false */ var ctrl, scope, ngModelAccessor, element, parentFormCtrl; beforeEach(inject(function($rootScope, $controller) { var attrs = ...
YUI.add('swfdetect', function(Y) { /** * Utility for Flash version detection * @module swfdetect */ // Shortcuts and helper methods var version = 0, uA = Y.UA, lG = Y.Lang, sF = "ShockwaveFlash", mF, eP, vS, ax6, ax; function makeInt(n) { return parseInt(n, 10); } function parseFlashVersion (flashVer) { if...
'use strict'; describe('HTML', function() { var expectHTML; beforeEach(module('ngSanitize')); beforeEach(function() { expectHTML = function(html) { var sanitize; inject(function($sanitize) { sanitize = $sanitize; }); return expect(sanitize(html)); }; }); describe('h...
/** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize exports="node" -o ./compat/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investiga...
tinyMCE.addI18n('ja.paste_dlg',{"word_title":"Ctrl V(\u30ad\u30fc\u30dc\u30fc\u30c9)\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002","text_linebreaks":"\u6539\u884c\u3092\u4fdd\u6301","text_title":"Ctrl V(...
var SPARTAN_HOST = "localhost"; var SPARTAN_PORT = "80"; /* * Semi-short callback script for SPARTAN. * * There may well be bugs. You have been warned. (Especially if you set * useRawForm to false, as iframes are buggy, and form submission in iframes is * really buggy.) * * Example: * var spartan = n...
// Update the `ghost-*` clients so that they definitely have a proper secret var models = require('../../../../models'), _ = require('lodash'), Promise = require('bluebird'), crypto = require('crypto'), message = 'Updating client secret'; module.exports = function updateGhostClientsSecrets(opt...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Barn=e()}}(function(){var define,module,exports;retur...
YUI.add('profiler', function (Y, NAME) { /** * The YUI JavaScript profiler. * @module profiler */ //------------------------------------------------------------------------- // Private Variables and Functions //-----------------------------------------------------------------------...
'use strict'; exports.LOCAL_FILE_HEADER = "PK\x03\x04"; exports.CENTRAL_FILE_HEADER = "PK\x01\x02"; exports.CENTRAL_DIRECTORY_END = "PK\x05\x06"; exports.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x06\x07"; exports.ZIP64_CENTRAL_DIRECTORY_END = "PK\x06\x06"; exports.DATA_DESCRIPTOR = "PK\x07\x08";
/*! Qoopido.js library 3.7.0, 2015-07-23 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */ !function(o){window.qoopido.register("pool/module",o,["../pool","../function/unique/uuid"])}(function(o,u,n,t,e,i,r){"use strict";var l=o["function/unique/uuid"],d=o.pool.extend({_module:null,_destroy:null,_construc...
/*! * numbro.js language configuration * language : Thai * locale : Thailand * author : Sathit Jittanupat : https://github.com/jojosati */ (function(){"use strict";var a={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน"...
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved. * * The software, this file, and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying, or distributing this...
import test from 'blue-tape'; import { percentile } from '../utils'; test('utils/percentile', t => { t.test('throws without a list or percentile', t => { t.throws( () => percentile(undefined, .5) ); t.throws( () => percentile([1,2,3,4,5], undefined) ); t.end() }) t.test('percentileing th...
angular.module('app') .controller('ApplicationCtrl', ['$scope', '$mdSidenav', function ($scope,$mdSidenav) { var self = this; self.title = "Created by SaKKo" self.toggleSidenav = function(menuId) { $mdSidenav(menuId).toggle(); } }])
'use strict'; const http = require('http'); const url = require('url'); const BufferHelper = require('bufferhelper'); const proto = require('./proto.js'); const restriction = require('./restriction.js'); const Signer = require('./signer.js'); function setError(code, name, err) { err.code = code; err.name = name;...
import resolve from 'rollup-plugin-node-resolve'; import serve from 'rollup-plugin-serve' import livereload from 'rollup-plugin-livereload' export default { input: './src/index.js', output: { file: 'public/game.js', format: 'iife', }, plugins: [ resolve(), serve({ contentBase: ['public'] ...
var api = require('./api/api'); var express = require('express'); var path = require('path'); var morgan = require('morgan'); var argv = require('yargs') .usage('Start the server') .default('port', process.env.WEB_PORT || 3000) .alias('port', 'p') .describe('port', 'port...
/** * * Wait for an element (selected by css selector) for the provided amount of * milliseconds to be (un)checked. If multiple elements get queryied by given * selector, it returns true (or false if reverse flag is set) if at least one * element is (un)checked. * * @param {String} selector element to wait for...
/** * DShare Client Configuration * * Copy this file to config.js and edit to suit your preferences. */ var Options = { server: { trace : true, trusted: true, local_signing: true, servers: [ { host: 's_west.ripple.com', port: 443, secure: true }, { host: 's_east.ripple...
var assert = require('assert'); var Readable = require('stream').Readable; var parsePage = require('./lib/page-parser.js'); module.exports = function (options) { var fetchPage = options.fetcher || require('./lib/page-fetcher.js'); return { comments: fetchComments }; // support passing in a fetcher inst...
/* @flow weak */ import _ from 'lodash'; import hash from '../../helpers/hash.js'; export type QuestionT = { id:number, condition:string, choices:[string], text:string }; // Make questions for an email, describe choices. export const InsubordinationScenarios = { choices() { return [ 'ignore the ...
// ONLY WORKS WITH mongodb@1.4.2 mongoose@3.8.8 // NEWER VERSIONS DEPRECIATED MongoClient.open() var MongoClient = require('mongodb').MongoClient, Server = require('mongodb').Server; var client = new MongoClient(new Server('localhost', 27017, { socketOptions: { connectTimeoutMS: 500 }, poolSize: 5, auto...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.factorialDependencies = void 0; var _dependenciesGamma = require("./dependenciesGamma.generated"); var _dependenciesTyped = require("./dependenciesTyped.generated"); var _factoriesNumber = require("../../factoriesNumber.js"); /*...
class AsyncFactory { constructor(constructor: Function, ...args: Array<any>): void { this._args = args; this._constructor = constructor; this._instance = null; } replaceConstructor(constructor: Function): void { this._constructor = constructor; this._instance = null; } getInstance(): Obj...
/* Tracking position with draggable in angular. http://stackoverflow.com/questions/15470666/angularjs-directive-attribute-binding-left-top-positions-after-dragging-with-ng */ angular.module('cardboard').controller('cards-board', ['$scope', 'cardboardService', 'modalService', function($scope, cardboardService, ...
/** * A NodeJS module for interfacing with Foursquare. * @module node-foursquare * @version 0.1.3 * @author Clint Andrew Hall * @description A NodeJS module for interacting with Foursquare. * @param {Object} config A valid configuration. */ var qs = require('querystring'), sys = require("util"), defaultConfi...
version https://git-lfs.github.com/spec/v1 oid sha256:cbbbf2485e19370b114a4a9b47b068ad29d255d461990d29896e5f9960f0c6d8 size 32771
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import mdlUpgrade from './utils/mdlUpgrade'; class Radio extends React.Component { static propTypes = { checked: PropTypes.bool, className: PropTypes.string, disabled: PropTypes.bool, name: PropTypes.stri...
(function(gulp, gulpLoadPlugins){ var $ = gulpLoadPlugins({ pattern: '*', lazy: true }), _ = { app: 'app', dist: 'dist', sass: 'app/sass', tmpl: 'app/src', js: 'app/js', css: 'app/css', img: 'app/img' }, files = [ 'app...
/** * Created by ZHAN on 2016/3/25. */ //电极,不需要刷新 var ArcFurnace = ArcFurnace || {}; ArcFurnace.Actor = ArcFurnace.Actor || {}; ArcFurnace.Actor.Electrode = fabric.util.createClass(ActorsBase, { initialize: function (canvas, X, Y, Width, Height, RotateAngle, Flip, centerPX, centerPY) { this.callSuper(...
const util = require("util") const config = require("config") const user = config.has("browserstack_user") ? config.get("browserstack_user") : process.env.BROWSERSTACK_USER const key = config.has("browserstack_key") ? config.get("browserstack_key") : process.env.BROWSERSTACK_ACCESS_KEY const localIdentifier = c...
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import { Router } from 'express'; import User from '../db/models/user.js'; const router = new Router(); router.post('/check', async (req, res, next) => { if (req.session.user) { res.status(200).json(req.session.user); } else { res.st...
import React, { Component } from 'react' import { connect } from 'react-redux' import { addTicket } from '../actions' class AddTicket extends Component { render() { return ( <div> <button label="ADD" onClick ={ () => { this.props.dispatch(addTicket('hogeee1',this.props.boardType)); ...
import React, {Component} from "react"; import NameForm from "./components/NameForm"; export default class Start extends Component { render() { return ( <NameForm/> ); } }
angular.module('starter.services') .factory('Chats', function() { // Might use a resource here that returns a JSON array // Some fake testing data var chats = [{ id: 0, name: 'Ben Sparrow', lastText: 'You on your way?', face: 'https://pbs.twimg.com/profile_images/514549811765211136/9SgAuHeY.png' ...
'use strict'; var _ = require('../utils/lodash'); var Command = require('../command'); var SubscriptionSet = require('../subscription_set'); var debug = require('../utils/debug')('ioredis:reply'); var Parser = require('redis-parser'); var ReplyError = require('../reply_error'); /** * Init the parser * * @method _i...
"use strict"; var domain = require("domain"), util = require("util"), Room = require("../models/Room"), ScoresList = require("../models/ScoresList"); // Private helpers. function bySession(session, room) { return room.session === session; } function updateScoreOnlyForPlayer(nick, score, player) { ...
declare module 'history' { declare type HistoryOptions = Object; declare type Action = 'PUSH' | 'REPLACE' | 'POP'; declare type Hash = string; declare type Href = string; declare type Path = string; declare type Pathname = string; declare type Query = Object; declare type Search = string; declare ty...
test("activate navigation tabs", function() { $('#lineup .js-tabitem').each(function() { $(this).trigger('click'); var $that = $(this); ok($that.hasClass('t-tab__navitem--active'), 'The clicked navigation item has the correct active class'); $('.js-tabitem').not($that).each(function() { ok(!$(this...
var inflection = require('../app/lib/inflection'); var fs = require('fs'); var path = require('path'); var fileExists = fs.existsSync || path.exists; /** * Some TrinteBridge method that will server requests from * routing map to application * * @param {String} namespace * @param {String} controller * @param {Str...
import BaseProxy from './BaseProxy'; class Auth extends BaseProxy { constructor(parameters = {}) { super('/api/v1', parameters); } async login(params = {}) { return this.submit('post', '/login', params); } async register(params = {}) { return this.submit('post', '/register...
var bbt = require('beebotte'); var Pubsub = require('../lib/eventchannel'); var bclient = new bbt.Connector({ keyId: process.env.NODE_BEEBOTTEB_ACCESS_KEY, secretKey: process.env.NODE_BEEBOTTEB_SECRET_KEY }); var variables = { t: 'temperature', //temperature h: 'humidity', //humidity l: 'light', /...
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidSubway extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,48c-93.864,0-176,10.668-176,85.334v213.332c0,41.604,33.062,74.666,74.667,74.666L128,448v16h256v-16l-26.66...
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './CatalogItems.css'; import Link from '../Link'; class Park extends React.Component { constructor(props) { super(props); this.state={ park: [] } } componentDidMount() { fetch('http://maysternja...
var cloneSteal = function(System){ var loader = System || this.System; var steal = makeSteal(loader.clone()); steal.loader.set("@steal", steal.loader.newModule({ "default": steal, __useDefault: true })); steal.clone = cloneSteal; return steal; }; var ArraySet; if(typeof Set === "function") { ArraySet = Se...
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { fetchArticlesIfNeeded, postArticle, viewArticle, changeScreen } from '../actions' import Article from '../components/Article' import Articles from '../components/Articles' import ArticleEditor from '../components/ArticleE...
define([ './km-control-group', './km-date', './km-document-validation', './km-form-languages', './km-form-std-buttons', './km-form-material-buttons', './km-inputtext-list', './km-inputtext-ml', './km-link', './km-notes', './km-reference', './km-select', './km-tab', './km-terms-check', './km-terms-radio',...