code
stringlengths
2
1.05M
import React from 'react'; const Footer = () => <p>Footer</p>; export default Footer;
/* License: MIT. * Copyright (C) 2013, 2014, Uri Shaked. */ 'use strict'; module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt.initConfig({ karma: { unit: { configFile: 'karma.conf.js', singleRun: true ...
'use strict' const { lt, inRange } = require('lodash') module.exports = boardSize => { if (lt(boardSize, 70)) return '<70l' if (inRange(boardSize, 70, 80)) return '70l to 80l' if (inRange(boardSize, 80, 90)) return '80l to 90l' if (inRange(boardSize, 90, 100)) return '90l to 100l' if (inRange(boardSize, 100...
'use strict'; module.exports = { up: function(queryInterface, Sequelize) { return queryInterface.createTable('Choices', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, QuestionId: { type: Sequelize.UUID }, ...
#!/usr/bin/env node var express = require('express'), package = require('./package.json'), program = require('commander'), _ = require('underscore'), Assets = require('./lib/assets.js'); program .version(package.version) .option('-s, --store <store>', 'Location of storage') .option('-u, --url <...
export default { data () { return { selected: null, options: [ { id: 1, label: 'Richard Hendricks' }, { id: 2, label: 'Bertram Gilfoyle' }, { id: 3, label: 'Dinesh Chugtai' }, { id: 4, label: 'Jared Dunn', disabled: true...
'use strict'; describe('Service: mainService', function () { // load the service's module beforeEach(module('catsGoApp')); // instantiate service var mainService; beforeEach(inject(function (_mainService_) { mainService = _mainService_; })); it('randomArray testing', function () { var a=mainSe...
export default { props: { things: [ { id: 1, name: 'a' }, { id: 2, name: 'b' }, { id: 3, name: 'c' }, { id: 4, name: 'd' }, { id: 5, name: 'e' } ] }, html: ` <div>a</div> <div>b</div> <div>c</div> <div>d</div> <div>e</div> `, test({ assert, component, raf }) { let divs = document.q...
import React, {Component} from 'react'; import { Router, IndexRoute, Route, browserHistory } from 'react-router'; import UserCard from './UserCard'; import firebase from './firebase'; import NewContact from './NewContact'; class UserCards extends Component { constructor() { super(); this.state = { cont...
var urls = [ "https://vk.com/igor.suvorov", "https://twitter.com/suvorovigor", "https://telegram.me/skillbranch", "@skillbranch", "https://vk.com/skillbranch?w=wall-117903599_1076",]; function getName(url) { const reg = /(@|\/)?[\w\9.]+/ig; const reg1 = /[\w\9.]+/ig; const matches = url.match(reg); console.log...
version https://git-lfs.github.com/spec/v1 oid sha256:8a773d7f07d6a2ce3c6379427f1a5aa12f7545b4da9579eae9b6a31ec13a11b7 size 43336
import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import fetchMock from 'fetch-mock'; import { fetchLogin, testing, } from './login'; const mockStore = configureMockStore([thunk]); beforeEach(() => { fetchMock.restore(); }); test('fetch login with success', done => { fetchM...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('keyboard-navigable-list', 'Integration | Component | keyboard navigable list', { integration: true }); test('if passed in an array it renders the items in a list.', function(assert) { //this....
define(['knockout', 'Q', 'model', 'css!mediaelement-css', 'css!dataTables-bootstrap-css', 'css!datatables-scroller-css', 'text!./mim-video-playlist.html', 'datatables', 'knockout.punches', 'mediaelement', 'datatables-bootstrap', 'datatables-scroller'], function (ko, Q, model, css, dataTablesBootstrapCss,dat...
import { encode } from 'vlq'; function Chunk ( start, end, content ) { this.start = start; this.end = end; this.original = content; this.intro = ''; this.outro = ''; this.content = content; this.storeName = false; this.edited = false; // we make these non-enumerable, for sanity while debugging Object.defi...
export * from './PostProcessor.js'; export * from './EffectComposer.js'; export * from './pass/index.js'; export * from './shader/index.js';
'use strict'; module.exports = function intervalTime(startIntervalTime){ return function(done){ var endTime = Date.now(); var runTime = endTime - startIntervalTime; done(null,{'intervalTime': runTime}); }; };
/** * description * Author: Oded Sagir * @param Object require for adding dependencies * @return Object Class Object */ define(function(require) { var database = { posts: require("text!api/posts.json") }; return database; });
/* http://prismjs.com/download.html?themes=prism&languages=git&plugins=line-numbers */ self = (typeof window !== 'undefined') ? window // if in browser : ( (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) ? self // if in worker : {} // if in node js ); /** * Prism: Lightwei...
const express = require('express'); const router = express.Router(); const bodyParser = require('body-parser'); const { validateSignInForm, isLoggedIn } = require('../middlewares/validation'); const { signOutUser } = require('../../models/helper-functions'); const user = require('../../models/users'); const reviews = ...
define(function(require,exports,module){"use strict";var PreferencesManager=brackets.getModule("preferences/PreferencesManager");PreferencesManager.set("openSVGasXML",true)});
define(function () { return { registerExtenders: registerExtenders }; function registerExtenders() { registerDateBinding(); registerMoneyExtension(); } function registerDateBinding () { ko.bindingHandlers.dateString = { //Credit to Ryan Rahlf http://stackoverflow....
'use strict'; /* * AngularJS Toaster * Version: 0.4.4 * * Copyright 2013 Jiri Kavulak. * All Rights Reserved. * Use, reproduction, distribution, and modification of this code is subject to the terms and * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php * * A...
/*! * Redback * Copyright(c) 2011 Chris O'Hara <cohara87@gmail.com> * MIT Licensed */ /** * Module dependencies. */ var Structure = require('../Structure'); /** * See https://gist.github.com/chriso/54dd46b03155fcf555adccea822193da * * Count the number of times a subject performs an action over an interval ...
var _ = require('lodash') var assert = require('assert') var common = require('./common') module.exports = function() { var adapter = { wrap: column => `"${column}"` } adapter.createTimestamps = function(data, options) { options = options || {} var table = this.wrap(data.identity.name) var schem...
module.exports = function( grunt ) { // Project configuration. grunt.initConfig( { pkg : grunt.file.readJSON( "bower.json" ), jshint : { options : { jshintrc : true }, src : { src : [ "src/*.js" ] } }, uglify : { js : { src : "src/<%= pkg.name %>.js"...
export function initialize(application) { application.inject('route', 'session', 'service:session'); application.inject('route', 'sessionAccount', 'service:session-account'); application.inject('controller', 'session', 'service:session'); application.inject('controller', 'sessionAccount', 'service:session-accou...
import Canvas from '../tool/Canvas.js'; import Animation from './Animation/Animation.js'; import Frame from './Animation/Frame.js'; import Player from '../engine/Player.js'; class Avatar { static radius = 360; static shakeTime = 300; constructor(player, direction) { this.player = player; ...
const PlotCard = require('../../plotcard.js'); class TheSpidersWeb extends PlotCard { setupCardAbilities(ability) { this.reaction({ limit: ability.limit.perPhase(1), when: { onClaimApplied: event => event.player === this.controller && event.challenge.challengeType ==...
// All code points in the Buginese block as per Unicode v5.1.0: [ 0x1A00, 0x1A01, 0x1A02, 0x1A03, 0x1A04, 0x1A05, 0x1A06, 0x1A07, 0x1A08, 0x1A09, 0x1A0A, 0x1A0B, 0x1A0C, 0x1A0D, 0x1A0E, 0x1A0F, 0x1A10, 0x1A11, 0x1A12, 0x1A13, 0x1A14, 0x1A15, 0x1A16, 0x1A17, 0x1A18, 0x1A19, 0x1A1A, 0x1A1B, 0...
'use strict'; 'use strict'; angular.module('appModule', [ 'ngRoute', 'appControllers' ]) .config(function($routeProvider) { $routeProvider.when('/home', { controller : 'SettingCtrl', templateUrl : '/views/public/setting.html' }).when('/postcodes', { controller : 'PostCodeCtrl', templateUrl : '/views/...
'use strict'; const assert = require('assert'); const context = require('../helpers/context'); describe('ctx.search=', () => { it('should replace the search', () => { const ctx = context({ url: '/store/shoes' }); ctx.search = '?page=2&color=blue'; assert.equal(ctx.url, '/store/shoes?page=2&color=blue')...
/* Thing > Intangible > Enumeration > WarrantyScope - A range of of services that will be provided to a customer free of charge in case of a defect or malfunction of a product. Commonly used values: http://purl.org/goodrelations/v1#Labor-BringIn http://purl.org/goodrelations/v1#PartsAndLabor-BringIn http://purl.org/go...
/* pointbreak.js - PointBreak provides a friendly interface to matchMedia with named media queries and easy to create callbacks. Authors & copyright (c) 2013: WebLinc, David Knight. */ (function(win) { 'use strict'; var EVENT_TYPE_MATCH = 'match', EVENT_TYPE_UNMATCH = 'unmatch'; // Cr...
var cc = require('closure-compiler'); var vinylTransform = require('vinyl-transform'); var mapStream = require('map-stream'); module.exports = function () { return vinylTransform(function () { return mapStream(function (data, next) { cc.compile(data, {}, function afterCompile (err, stdout) { ...
import { StaticResource } from 'iab-vast-model' export default ($staticResource) => { const res = new StaticResource() res.creativeType = $staticResource.creativeType res.uri = $staticResource._value return res }
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import ScrollableTabView, { ScrollableTabBar, } from 'react-native-scrollable-tab-view'; class wsapp extends Component { render() { return <ScrollableTabView sty...
'use strict'; var expect = require('chai').expect; var Config = require('../lib/dalek/config.js'); describe('dalek-internal-config', function () { it('should exist', function () { expect(Config).to.be.ok; }); it('can be initialized', function () { var config = new Config({}, {tests: []}, {}); expe...
SirTrevor.Locales = { en: { general: { 'delete': 'Delete?', 'drop': 'Drag __block__ here', 'paste': 'Or paste URL here', 'upload': '...or choose a file', 'close': 'close', 'position': 'Position', 'wait': ...
// telegram.link // Copyright 2014 Enrico Stara 'enrico.stara@gmail.com' // Released under the MIT License // http://telegram.link // Dependencies: var api = require('../api'); var utility = require('../utility'); // *** // This module wraps API methods required to manage the session updates // Se...
(function() { function setUpTopLevelInteraction() { var TopLevelInteraction = new ITPHelper({ redirectUrl: document.body.dataset.redirectUrl, }); TopLevelInteraction.execute(); } document.addEventListener("DOMContentLoaded", setUpTopLevelInteraction); })();
/// <reference path="./typings/globals.d.ts"/> /// <reference path="./typings/lib.d.ts"/> var angular = require('angular'); var magics_scene_1 = require('./directives/magics-scene'); var magics_spy_1 = require('./directives/magics-spy'); var magics_stage_1 = require('./directives/magics-stage'); var constants_1 = requi...
/** * Array.from ponyfill. * * @param {Object} iterable * * @returns {Array} */ export default function arrayFrom(iterable) { const arr = []; for (let i = 0; i < iterable.length; i += 1) { arr.push(iterable[i]); } return arr; }
import { expect } from 'chai' import _drop from '../../src/array/_drop2' describe('_drop', function(){ it('is a function', function(){ expect(_drop).to.be.a('function') }) it('returns an array', function(){ const droppedArray = _drop([5,7,2]) expect(droppedArray).to.be.a('array') }) it('return...
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react' import { Col, Row } from 'react-bootstrap' import WorkPageLayout from '../../components/work-page-layout' import './index.scss'...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
angular.module('fishTank') .controller('PostsCtrl', [ '$scope', 'postsFactory', 'post', function($scope, postsFactory, post){ $("input.tags").tagsinput('items') // $("input.form-control").show() $scope.post = post; $scope.incrementUpvotes = function(comment) { postsFactor...
export default [ { name: 'Types', examples: [ { name: 'List', description: 'A list groups related content', file: 'List', }, { description: 'You can also pass an array of items as props', file: 'ListShorthand', }, { file: 'ListIcon'...
/* * docs-mixin: used by any page under /docs path */ import { updateMetaTOC, scrollTo, offsetTop } from '~/utils' import { bvDescription, nav } from '~/content' const TOC_CACHE = {} // @vue/component export default { head() { return { title: this.headTitle, meta: this.headMeta } }, comput...
/** * Data that contains a string. * @param {string} value * @param {boolean} [isValid=true] * @constructor */ function StringData(value, isValid) { Data.call(this, Data.types.string, value, isValid); } StringData.prototype = Object.create(Data.prototype); StringData.prototype.constructor = StringData; /** * If...
$(document).ready(function(){ ///Declare variables var unitSwap = true; var latitude = $('#latitude'); var longitude = $('#longitude'); var location = $('#location'); var temperature = $('#temperature'); var weather = $('#weather'); var weatherIcon; var clock = $('#clock'); var ...
app.controller('ThumbnailCtrl', function($http, Upload, $timeout, $location, $anchorScroll, $stateParams, $cookies){ thumbnailCtrl = this; thumbnailCtrl.sendEmail = function(){ $http.get('/api/sendEmail').success(function(response){ console.log('Ok') }).catch(function(err){ console.log(err) ...
import Component from '@ember/component'; import layout from '../templates/components/google-docs'; import { computed, get } from '@ember/object'; import { capitalize } from '@ember/string'; const GoogleDocs = Component.extend({ layout, tagName: 'a', attributeBindings: ['href', 'rel', 'target'], type: 'refere...
/* * Exemplo de Readline (Input via console) * * @author André Ferreira <andrehrf@gmail.com> */ const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); rl.question('Qual sua idade? ', (idade) => { console.log('Sua idade é :', idad...
// For info about this file refer to webpack and webpack-hot-middleware documentation // For info on how we're generating bundles with hashed filenames for cache busting: https://medium.com/@okonetchnikov/long-term-caching-of-static-assets-with-webpack-1ecb139adb95#.w99i89nsz import webpack from 'webpack'; import Extra...
/* Set the width of the side navigation to 250px */ function openNav() { document.getElementById("mySidenav").style.width = "250px"; } /* Set the width of the side navigation to 0 */ function closeNav() { document.getElementById("mySidenav").style.width = "0"; }
var App = angular.module('validationApp', []); App.controller('mainController', function ($scope) { $scope.submitForm = function (isValid) { if (isValid) { alert('Our form is Amazing'); } else { alert('Please enter the values and click submit'); }...
var dikoServices = angular.module('diko.basic.service', []); dikoServices.factory('dikoShareObject', [dikoServicesFunction]); function dikoServicesFunction() { var tabActive= "planets"; return { setTabActive: function(name) { if(typeof name !== 'undefined') tabActive = name; ...
/*global tarteaucitron */ tarteaucitron.lang = { "adblock": "Benvenuto! Questo sito ti permette di attivare i servizi di terzi di tua scelta.", "adblock_call": "Disabilita il tuo adblocker per iniziare la navigazione.", "reload": "Aggiorna la pagina", "alertBigScroll": "Continuando a scorrere,", ...
// index.js import { LocalStateForm, SimpleValidation } from 'immutable-react-form'; import Form from './form'; import validation from './validation'; import {GetData,UpdateData} from './data'; export default LocalStateForm( props => (GetData()), validation, submit )(Form); async function submit(model,prop...
JsonRecordApp.contorller(getCtrl, ['$scope', '$http', function($scope, $http){ var testArray = new Array(); var errorChar = 1; for (var i = 10001; i < 10101; i++) { var query = jQuery.ajax({ url: jsonUrl + jsonName + i + ".json", type: "GET", async: false, dataType: 'json', succe...
import React, { Component } from 'react'; import { View, TextInput, Text } from 'react-native'; const Input = ({ label, securetxt, maxlen, keytype, value, onChangeText, placeHolder }) => { return ( <View style={styles.containerStyle}> <Text style={styles.labelStyle}>{label}</Text> ...
import { RocketChat } from 'meteor/rocketchat:lib'; RocketChat.settings.addGroup('Logs', function() { this.add('Log_Exceptions_to_Channel', '', { type: 'string' }); });
const EventEmitter = require("events"); const ssh2 = require("ssh2"); const Client = ssh2.Client; class Connection extends EventEmitter { constructor (connectOptions, dimensions) { this.connectOptions = connectOptions; this.dimensions = dimensions; this.errorCallback = errorCallback; if (!this.errorCallback) ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ramda_1 = require("ramda"); var render_instance_1 = require("./render-instance"); var types_1 = require("./types"); function deepResolver(mapper, renderer) { return function (comp) { var resolve = deepResolver(mapper, renderer)...
const express = require('express'); const mongodb = require('mongodb') const request = require('request'); const app = express(); const server = require('http').createServer(app) const io = require('socket.io').listen(server) const mongo_url = 'mongodb://localhost:27017/rally' const mongo = mongodb.MongoClient() app...
import e3AnimatedChild from '../e3-animated-child'; export default e3AnimatedChild.extend({ shadowType: 'text', enterState: { x: 0, y: 0, text: '' }, activeState: { x: null, y: null, text: null } });
describe('my app', function() { it('should redirect `index.html` to `index.html#!/countries/countries', function() { browser.get('index.html'); expect(browser.getLocationAbsUrl()).toBe('/home'); }); describe('home', function() { beforeEach(function() { browser.get('index.html'); }); ...
var webpack = require('webpack'); var path = require('path'); var APP_DIR = path.resolve(__dirname, 'react'); var BUILD_DIR = path.resolve(__dirname, 'project/static/js'); var config = { entry: { public: APP_DIR + '/public.main.jsx', private: APP_DIR + '/private.main.jsx', }, output: { path: BUILD_D...
var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Task Schema * @type {Object} */ var TaskSchema = new Schema({ title: { type: String, default: '', trim: true }, project: { type: String, default: '', trim: true }, date: { ...
'use strict'; var Promise = require('bluebird'), git = require('../index'); describe('isClean command', function() { var command = git.isClean; it('should exists', function(){ expect(command).to.be.a('function'); }); it('should issue a git diff-index', function() { return command() .tap...
import {SuiteModuleBuilder} from 'ember-runtime/tests/suites/suite'; import {fmt} from 'ember-runtime/system/string'; var suite = SuiteModuleBuilder.create(); suite.module('objectAt'); suite.test('should return object at specified index', function() { var expected = this.newFixture(3); var obj = this.newObj...
export var meanDocs = { name: 'mean', category: 'Statistics', syntax: ['mean(a, b, c, ...)', 'mean(A)', 'mean(A, dim)'], description: 'Compute the arithmetic mean of a list of values.', examples: ['mean(2, 3, 4, 1)', 'mean([2, 3, 4, 1])', 'mean([2, 5; 4, 3])', 'mean([2, 5; 4, 3], 1)', 'mean([2, 5; 4, 3], 2)',...
import InfiniteScroll from './directive'; import 'bh-mint-ui2/src/style/empty.css'; import Vue from 'vue'; const install = function(Vue) { Vue.directive('InfiniteScroll', InfiniteScroll); }; if (!Vue.prototype.$isServer && window.Vue) { window.infiniteScroll = InfiniteScroll; Vue.use(install); // eslint-disable...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("../models/config"); const version_1 = require("../upgrade/version"); const common_tags_1 = require("common-tags"); const Command = require('../ember-cli/lib/models/command'); const config = config_1.CliConfig.fromProj...
/* Add Fish Form */ import React from 'react'; import autobind from 'autobind-decorator'; class AddFishForm extends React.Component{ @autobind createFish(event){ //1. Stop the form from submitting event.preventDefault(); //2. Take the data from the form and create an object var fish = { ...
import Ember from 'ember'; export default Ember.Route.extend({ appState: Ember.inject.service('app-state'), actions: { toggleLeftSidebar(){ this.set('appState.isLeftSidebarOpen', !this.get('appState.isLeftSidebarOpen')); }, toggleRightSidebar(){ this.set('appState.isRightSidebarOpen', !thi...
const Webpack = require('webpack') const CopyWebpackPlugin = require('copy-webpack-plugin') const package = require('./package.json') const { join } = require('path') const externals = () => { const dependencies = package.dependencies return Object .keys(dependencies) .reduce((modules, module) => Ob...
/** * todo service */ class Todo { // id = 0; // text = ''; // checked = false; constructor(id, text, checked) { this.id = id; this.text = text; this.checked = checked; } }
var mongoose = require('mongoose'); var urlSchema = require('../schemas/UrlSchema'); var Url = mongoose.model('Url', urlSchema); var insertUrl = function(url, urlMinifie) { var link = new Url({ url, urlMinifie }); link.save(function(err) { if (err) return handleError(err); }); };...
Template.botanikaLogo.events({ 'click .botanika-logo' (evt) { evt.preventDefault(); Meteor.swiperV.slideTo(0); } });
const event = { on(element, type, listener, options) { element.addEventListener(type, listener, options); return () => event.off(element, type, listener, options); }, off(element, type, listener, options) { element.removeEventListener(type, listener, options); }, once(element...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'iframe', 'bg', { border: 'Показва рамка на карето', noUrl: 'Моля въведете URL за iFrame', scrolling: 'Активира прелиств...
/* * y * * * Copyright (c) 2013 ssddi456 * Licensed under the MIT license. */ 'use strict'; var iconvLite = require('iconv-lite'); var _ = require('underscore'); var path = require('path'); module.exports = function(grunt) { function detectDestType (dest) { if (grunt.util._.endsWith(dest, ...
var Bluebird = require('bluebird'); var connection = require('./connection'); var errors = require('./errors'); var mockOptions = {}; var offlineMode = false; module.exports.errors = errors; module.exports.connect = function connect(options) { if (offlineMode) { throw new Error('Real connections to ' + options...
"use strict"; const hamt = require('../hamt'); const assert = require('chai').assert; describe('entries', () => { it('should be empty for empty map', () => { const h = hamt.make(); const it = hamt.entries(h); let v = it.next(); assert.ok(v.done); for (let x...
import { each } from "../helpers"; import TablesHandler from "../TablesHandler"; each("table", table => { const tables = new TablesHandler(table); tables.enable(); });
#!/usr/bin/env node 'use strict'; var program = require('commander'); var pluck = require('pluck-keys'); var credential = require('../credential'); var stdin = ''; program .command('hash [password]') .description('Hash password') .option('-w --work <work>', 'relative work load (0.5 for half the work)', Number) ....
var app = angular.module('app',[]); app.controller('adderController', function($scope) { $scope.firstNumber = 2; $scope.secondNumber = 2; $scope.lvalue = 2+2; $scope.thirdNumber = function () { if (!$scope.firstNumber || !$scope.secondNumber) { return $scope.lvalue; } else { $scope.lvalue=parseInt($scope....
var expect = require('expect.js'); var request = require('supertest'); var app = require(process.cwd() + '/app.js'); describe('GET /api/artists', function() { this.timeout(15000); it('should return a single JSON artist object', function(done) { request(app) .get('/api/artists') ...
/* Copyright (c) 2012 Jacob Rus 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, publish, distribute, s...
var searchData= [ ['upmixtype',['UpmixType',['../struct_upmix_type.html',1,'']]] ];
import { suite, test, equal, isUndefined, isFalse, isTrue } from "../assert"; import CompositeContext from "di/CompositeContext"; import Context from "di/Context"; suite("CompositeContext", () => { test("no contexts", () => { const composite = new CompositeContext(); const hasFirst = composite.has("first")...
var xue =xue || {}; xue.formCheck = xue.formCheck || {}; var fCheck = xue.formCheck; /* 提示信息的css样式 */ fCheck.setTips = function(select, tips){ $(select).css({ 'display': 'block', }).html(tips); }; /* 输入正确时,清除提醒 */ fCheck.clearTips = function(select){ $(select).css({ 'display':'none' }).html(null);...
'use strict'; var chai = require('chai') , Sequelize = require('../../../index') , expect = chai.expect , Support = require(__dirname + '/../support') , DataTypes = require(__dirname + '/../../../lib/data-types') , datetime = require('chai-datetime') , async = require('async'); chai.use(datetime); chai.co...
webpackJsonp([2,3],[function(n,c){}]);
import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; export default class TaskForm extends Component { constructor(props, context) { super(props, context); this.state = { text: this.props.text || '' }; } componentWillReceiveProps(nextProps) { this.state...
export default class Storage { constructor(type, storageItemName) { this.type = type || 'localStorage'; this.itemName = storageItemName || 'document'; this.available = Storage.storageAvailable(this.type); } static storageAvailable(type) { try { let storage = window[type];...
import TriggerableMixin from '../Common/TriggerableMixin.js'; import Introspectable from '../Common/Introspectable.js'; class GenericWrapper extends TriggerableMixin(Introspectable) { constructor (options) { super(); this.index = options.index; this.table = options.table; if (this.index === undefined...
'use strict'; var getSubplotCalcData = require('../get_data').getSubplotCalcData; var counterRegex = require('../../lib').counterRegex; var createPolar = require('../polar/polar'); var constants = require('./constants'); var attr = constants.attr; var name = constants.name; var counter = counterRegex(name); var att...