code
stringlengths
2
1.05M
import { createReducer, createActions } from 'reduxsauce' import Immutable from 'seamless-immutable' import R from 'ramda' /* ------------- Initial State ------------- */ export const INITIAL_STATE = Immutable({ notifications: [], specialTalks: [] }) /* ------------- Types and Action Creators ------------- */ co...
import { route as textInputRoute } from './TextInput'; export const routes = [ textInputRoute ]; export default from './Field.component';
import assert from "assert"; import createNode from "../../../src/scapi/utils/createNode"; import createRef from "../../../src/scapi/utils/createRef"; import isSCNode from "../../../src/scapi/utils/isSCNode"; import isSCRef from "../../../src/scapi/utils/isSCRef"; import createOpNode from "../../../src/scapi/operators/...
foo: if (true) break foo;
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'autoembed', 'fr', { embeddingInProgress: 'essaye d\'incorporer l\'URL collée...', embeddingFailed: 'Cette URL n\'a pas pu être incorporée ...
TestHelpers.commonWidgetTests('resizable', { defaults: { alsoResize: false, animate: false, animateDuration: 'slow', animateEasing: 'swing', aspectRatio: false, autoHide: false, cancel: 'input,textarea,button,select,option', containment: false, delay: 0, disabled: false, distance: 1, ...
export default { giant: { value: 1170, unit: 'px' }, desktop: { value: 992, unit: 'px' }, tablet: { value: 768, unit: 'px' }, phone: { value: 376, unit: 'px' }, }
'use strict'; const AbstractConnectionManager = require('../abstract/connection-manager'); const Utils = require('../../utils'); const debug = Utils.getLogger().debugContext('connection:pg'); const Promise = require('../../promise'); const sequelizeErrors = require('../../errors'); const semver = require('semver'); co...
export { default, emberNotificationAnd } from 'ember-notif-hub/helpers/ember-notification-and';
angular.module('firstClass').directive('fcsNightsOfCampingIcon', function () { return { restrict: 'E', scope: { nights: '=' }, templateUrl: 'scout/nights-of-camping-icon.template.html' } });
'use strict' var through2 = require('through2') var standard = require('standard') var gutil = require('gulp-util') var PLUGIN_NAME = require('./package.json').name var defaultReporter = require('./reporters/stylish') function gulpStandard (opts) { opts = opts || {} function processFile (file, enc, cb) { if ...
// All code points in the Letterlike Symbols block as per Unicode v5.0.0: [ 0x2100, 0x2101, 0x2102, 0x2103, 0x2104, 0x2105, 0x2106, 0x2107, 0x2108, 0x2109, 0x210A, 0x210B, 0x210C, 0x210D, 0x210E, 0x210F, 0x2110, 0x2111, 0x2112, 0x2113, 0x2114, 0x2115, 0x2116, 0x2117, 0x2118, 0x2119, 0x211A, ...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | head-layout', function (hooks) { setupRenderingTest(hooks); test('it renders', async function (assert) {...
import PropTypes from 'prop-types' import React from 'react' import config from 'config:@lyra/google-maps-input' import Button from 'part:@lyra/components/buttons/default' import Dialog from 'part:@lyra/components/dialogs/default' import Fieldset from 'part:@lyra/components/fieldsets/default' import { PatchEvent, s...
'use strict'; /** * @ngdoc function * @name mtViewApp.controller:SearchCtrl * @description * # SearchCtrl * Controller of the mtViewApp */ angular.module('mtViewApp') .controller('SearchCtrl',[ "$scope","$location","MTservice",function ($scope,$location,MTservice) { $scope.searchQuey = $location.$$sea...
/** * DevExtreme (viz/themes.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var $ = require("jquery"), vizUtils = require("./core/utils"), themes ...
"use strict"; var createDelimited = require('./manipulators/create-delimited'), getColorValues = require('./manipulators/get-color-values'), functionCreate = require('./manipulators/function-create'), defaultProps = require('./settings/default-props'), terms = require('./settings/dictionary').hsl; mod...
var Cat = require('./cat.js'); var cats = new Cat().getCats(); console.log(cats);
'use strict' /* global describe, it */ const assert = require('assert') describe('Company Model', () => { it('should exist', () => { assert(global.app.api.models['Company']) }) })
// flow-typed signature: f9f4fa8dbf1e89fa445e8deb2a98f812 // flow-typed version: <<STUB>>/eslint-plugin-prettier_v^3.0.0/flow_v0.89.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-prettier' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to s...
var pull = require("pull-stream"); var unwind = require("../"); var events = [ { name: "SomeEvent", value: 1 } ] pull( pull.values(events), unwind(3), pull.drain(console.log) )
import React, { Component } from 'react' import debounce from 'lodash/debounce' import { connect } from 'react-redux' import { updateSettings } from 'actions/settings' import { fileDialog } from 'helpers/fs' import Button from 'components/Button' import CheckBox from 'components/CheckBox' export default connect( s...
"use strict"; var React = require("react"), Slider = require("./common/Slider"); var Delay = React.createClass({ render: function() { return ( <div className="delay-group__wrapper"> <h3 className="param__title">Delay</h3> <section className="delay-group"> ...
var q = require('q'); var _ = require('underscore'); browser.addCommand('waitForVisibleAndClick', function (selector, message) { return this.waitForVisible(selector) .click(selector) .then(function () { if (message) { console.log(message); } }); }); browser.addCommand('waitALittle', ...
var app = angular.module("app", ["ngRoute", "ngAnimate", "ui.bootstrap"]); app.controller("SoundBoardController", [ "$scope", function ($scope) { $scope.toggle = true; $scope.models = { pageTitle: "Welcome to My Board!" }; $scope.toggleSidebar = function () { ...
/* eslint-disable camelcase */ import db from '../config/database/database' import { messagesQueries } from '../config/database/sqlQueries/index' // TODO: make db settable, so can use Messages' methods with either testdb or db export default class Message { /** * Retrieve all messages * @return {Promise} promi...
import { Router } from 'express'; import generate from './generate'; import verify from './verify'; const router = Router(); router.get('/', generate); router.post('/', verify); export default router;
var gotCharacters = [ // Stark { characterName: 'Eddard Stark', house: 'house-stark', status: 'dead' }, { characterName: 'Catelyn Stark', house: 'house-stark', status: 'dead' }, { characterName: 'Rodrik Cassel', house: 'house-stark', ...
const Conf = require('conf'); const { utils } = require('dext-core-utils'); const { DEXT_PATH } = utils.paths; module.exports = class extends Conf { constructor(opts) { const defaultOpts = { defaults: { theme: '', // specify the accelerators for toggling the Dext Bar. // @link http...
import React from 'react'; import ReactDOM from 'react-dom'; it('renders without crashing', () => { true });
var MarkupLine = { HandlesType: function(type) { return type == 'line'; }, Paint: function(elementObject) { $('#' + elementObject.Handle).css({ left: SizeCalculator.ToPixels(elementObject.x) + 'px', top: SizeCalculator.ToPixels(elementObject.y) + 'px', ...
import { request } from 'utils/request' export function fetchNotice (params) { return request({ wsfunction: 'mod_frontservice_get_ads', ...params }) } export function fetchCourseList (params) { return request({ wsfunction: 'mod_frontservice_my_contractccs', ...params }) } export function fetchRecordList (params)...
Rickshaw.namespace('Rickshaw.Graph.RangeSlider'); Rickshaw.Graph.RangeSlider = Rickshaw.Class.create({ initialize: function(args) { var $ = jQuery; var self = this; var element = this.element = args.element; var graphs = this.graphs = args.graphs; if (!graphs) { graphs = this.graph = args.graph; } ...
var render = require('./jml.js').render; var fs = require('fs'); module.exports = { oneTag: { simple: function (test) { var view = [['p']]; test.equal(render(view), '<p></p>', 'Simple tag'); test.done(); }, simpleEmpty: function (test) { var v...
/* This lazySizes extension removes scroll events implements a more lazier scrollintent event instead. */ (function(window, document){ /*jshint eqnull:true */ 'use strict'; var config, index; if(window.addEventListener){ config = (window.lazySizes && lazySizes.cfg) || window.lazySizesConfig; index = 0; if(!...
var socket = require('express.io')(); var moment = require('moment'); var settings = require('./settings'); var schedule = require('node-schedule'); var geolib = require('geolib'); socket.http().io(); socket.io.route('init', function(req){ req.io.join(req.data); req.io.join(req.data + ':ctrl'); var room =...
/* * Kendo UI v2014.2.716 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
/* Jquery Validation using jqBootstrapValidation example is taken from jqBootstrapValidation docs */ $(function() { $("input,textarea").jqBootstrapValidation( { preventSubmit: true, submitError: function($form, event, errors) { // something to have when submit produces an error ? // ...
var searchData= [ ['magenta',['magenta',['../_logger_8cpp.html#a9c3c2560b6f423f7902776457532fdba',1,'Logger.cpp']]], ['maxsamples',['maxsamples',['../class_audio_signal.html#a5d68faf1ab7f19197b93cc2cc0a7e645',1,'AudioSignal']]], ['mps_5fvt',['mps_vt',['../struct_h_r_t_f_model.html#ae01efd7375e498a14624bbeebb93fa8...
let generator = function* () { yield 'hello'; yield 'world'; return 'end'; } let hw = generator(); console.log(hw.next()); console.log(hw.next());
import TestContainer from 'mocha-test-container-support'; import { act } from '@testing-library/preact'; import { bootstrapPropertiesPanel, changeInput, clickInput, inject } from 'test/TestHelper'; import { query as domQuery, queryAll as domQueryAll } from 'min-dom'; import CoreModule from 'bpmn-js/lib/c...
//~ name c130 alert(c130); //~ component c131.js
import controller from './controller'; import consts from '../constants'; export default { init(io) { let broadcast = update => { io.of('playerSync').emit('update', update); }; setInterval(() => { try { controller.sendUpdates(broadcast); } catch(err) { console.log('Erro...
'use strict'; var browserify = require('browserify-middleware'); var express = require('express'); var logger = require('morgan'); var app = express(); app.use(logger()); app.get('/index.js', browserify('../../client/profileservice/index.js')); app.use(express.static('./client/profileservice/')); app.get('/profiles...
/// <reference path="ChangeLinr-0.2.0.ts" /> /// <reference path="ObjectMakr-0.2.2.ts" /> /// <reference path="PixelRendr-0.2.0.ts" /> /// <reference path="QuadsKeepr-0.2.1.ts" /> /// <reference path="StringFilr-0.2.1.ts" /> var PixelDrawr; (function (PixelDrawr_1) { "use strict"; /** * A front-end to Pixe...
define( [ 'jquery', 'lib/lodash' ], function ($, _) { 'use strict'; $.fn.cssNumber = function(prop) { var v = parseFloat($(this).css(prop), 10); return isNaN(v) ? 0 : v; }; var exports = { checkNumber: function (value) { return (!_.isNaN(value) && !_.isNull(value) && _.isNumber(value...
describe('Options', function () { var map; var el; beforeEach('initialize map', function () { el = document.createElement('div'); // DOM needs to be visible: appended to the body and have dimensions // in order for .focus() to work properly el.style.cssText = 'position: absolute; left: 0; top: 0;...
import lookupClasses from './utils/lookup-classes'; export default function classify(inputName) { return lookupClasses(inputName).join(' '); }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); let express = require("express"); let app = express(); const ThorIO_1 = require("../src/ThorIO"); const MyController_1 = require("../example/controllers/MyController"); const Broker_1 = require("../src/Controllers/BrokerController/Broker"); le...
sm.Main.directive('smHomeContent', [ function() { return { restrict: 'E', templateUrl: './scripts/modules/home/templates/home.content.html', controller:['$scope', function($scope) { $scope.hopfarmUrl = '/#hopreport'; $scope.testFunc = function() { console.log('YYYYYYSD...
angular .module('cocktailApp') .controller('CocktailEditCtrl', ['$location', '$routeParams', 'navigator', 'cocktailCollection', function($location, $routeParams, navigator, cocktailCollection) { var self = this; self.isDisabled = true; if (!$routeParams.id) { self.cocktail = {}; ...
'use strict'; 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; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ global.electronRequire = require; global.electronProcess = process; require('./main.bundle.js');
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import {HackerNewsIcon, GitHubIcon, ProductHuntIcon} from '../Icons'; import {hackernews, github, producthunt} from '../../data'; import NewsList from '../NewsList'; import styles from './index.css'; class News extends React.Component { constr...
import { test, getTSParsers, getNonDefaultParsers } from '../utils'; import { RuleTester } from 'eslint'; import eslintPkg from 'eslint/package.json'; import semver from 'semver'; import flatMap from 'array.prototype.flatmap'; const ruleTester = new RuleTester(); const rule = require('rules/order'); function without...
import { connect } from 'react-redux'; import Search from './presenter'; import { Nt } from '../../utils/ntseq'; import * as actions from '../../modules/search'; import { multiSelect } from '../../modules/selection'; const mapStateToProps = state => { const search = state.search; return { value: search.value,...
'use strict'; const assert = require('assert'); const fs = require('fs'); const ntwitch = require('../index'); //{ // credentials: { // id: '<id>', // secret: '<secret>', // uri: '<uri>', // token: '<token>', // }, // data: { // user: 'test_user1', // channe...
import config from '../config' import compile from 'react-esc/bin/compile' (async function () { await compile(config) })()
import $ from 'jquery'; import SC from 'soundcloud'; import SoundCloudAudio from 'soundcloud-audio'; $(document).ready(function () { const client_id = '4a39a5fc90a81d598101eeaf122056bc'; SC.initialize({ client_id : client_id }); // TODO find a better way to stream soundcloud tracks var scPlayer = new S...
define(["require", "exports", 'durandal/app', 'knockout'], function(require, exports, app, ko) { var Models; (function (Models) { var CartLine = (function () { function CartLine() { var _this = this; this.category = ko.observable(''); this.pro...
(function (console, $hx_exports) { "use strict"; $hx_exports.hxGeomAlgo = $hx_exports.hxGeomAlgo || {}; var $estr = function() { return js_Boot.__string_rec(this,''); }; var HxOverrides = function() { }; HxOverrides.__name__ = true; HxOverrides.iter = function(a) { return { cur : 0, arr : a, hasNext : function() { r...
var searchData= [ ['testconnection',['testConnection',['../class_m_p_u6050.html#a95ffab7b44fce3834236e0813687d11a',1,'MPU6050::testConnection()'],['../class_m_p_u6050.html#a95ffab7b44fce3834236e0813687d11a',1,'MPU6050::testConnection()'],['../class_m_p_u6050.html#a95ffab7b44fce3834236e0813687d11a',1,'MPU6050::testCon...
'use strict'; var babelHelpers = require('../util/babelHelpers.js'); exports.__esModule = true; var _configure = require('../configure'); var _configure2 = babelHelpers.interopRequireDefault(_configure); function endOfDecade(date) { date = new Date(date); date.setFullYear(date.getFullYear() + 10); date.setMi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ao; /* * ao * https://github.com/jwalsh/aojs * * Copyright (c) 2013 * Licensed under the MIT license. */ function ao() { 'use strict'; var ua = arguments.length <= 0 || arguments[0] === undefined ? window.navig...
 Type.registerNamespace("Strings"); Strings.OfficeOM = function() { }; Strings.OfficeOM.registerClass("Strings.OfficeOM"); Strings.OfficeOM.L_InvalidNamedItemForBindingType = "Norādītais saistīšanas tips nav saderīgs ar norādīto nosaukto vienumu."; Strings.OfficeOM.L_EventHandlerNotExist = "Norādītais notikuma ...
// flow-typed signature: aa361ad6f824f985f1402af76a9059ec // flow-typed version: <<STUB>>/postcss-loader_v^1.1.0/flow_v0.45.0 /** * This is an autogenerated libdef stub for: * * 'postcss-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work w...
var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; import { createThemedClasses } from '../....
import BinaryHeap from './BinaryHeap' import defaults from './defaults' import utils from './utils' const assignMsg = `Cannot assign to read only property` /** * Provide a custom storage medium, e.g. a polyfill for `localStorage`. Default: `null`. * * Must implement: * * - `setItem` - Same API as `localStorage.s...
/* global $ */ 'use strict'; $(function () { $('input[name="code-theme"]:radio').on('change', function (event) { var theme = $(this).val(); $('link[href^="hljs-"]').attr('disabled', true); $('link[href^="hljs-' + theme + '"]').attr('disabled', false); $('pre.code--block').toggleClas...
var path = require('path'); module.exports = function(config) { var manifest; try { manifest = require(path.resolve(process.cwd(), config.manifest)); } catch(e) { manifest = {}; } return function(req, res, next) { res.locals.rev = function(path) { return config.prepend.toString() + '/' +...
const expect = require('chai').expect const supertest = require('supertest') const cheerio = require('cheerio'); const app = require('../app.js'); describe('call', function () { describe('POST to /call/connect', function () { context('when connecting from a phone number', function () { it('response verb ...
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
app.shell = (function () { var configMap = { anchor_schema_map : { chat : { opened : true, closed : true } }, resize_interval : 200, main_html : String() + '<div class="app-shell-head">' + '<div class="app-shell-head-logo"></div>' + ...
var express = require('express'); var router = express.Router(); var React = require('react'); var ReacDOMServer = require('react-dom/server'); // 服务端引入MyComponent组件 var MyComponent = React.createFactory(require('../components/MyComponent')); /* 主页 */ router.get('/', function(req, res) { var num = Math.random(); ...
var express = require('express'); var path = require('path'); var logger = require('morgan'); var bodyParser = require('body-parser'); var secure = require('./routes/secure'); var config = require('./config.json'); var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('vi...
'use strict'; /** * 内存缓存 * @param {number} defaultCacheTime 缓存时间长度,毫秒,默认 5 分钟 */ function Cache(defaultCacheTime) { // 内存 this._mem = {}; // 默认缓存时长,默认 5 分钟 this._dct = defaultCacheTime || 300000; } /** * 从缓存中取出 * @param {string} key 缓存的 key * @return {object} 缓存的 val */ Cache.prototype.g...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.minDocs = void 0; var minDocs = { name: 'min', category: 'Statistics', syntax: ['min(a, b, c, ...)', 'min(A)', 'min(A, dim)'], description: 'Compute the minimum value of a list of values.', examples: ['min(2, 3, 4, 1)', 'm...
;(function () { 'use strict'; alert('Welcome to my website!'); }());
'use strict'; angular.module('mean.base-theme').factory('BaseTheme', [ function() { return { name: 'base-theme' }; } ]);
angular. module('myApp', []). directive('bootstrapSlider', function() { return { // scope:{sub_t:} link: function(scope, element, attrs) { $(document).ready(function() { // var init = scope.$eval(attrs.ngModel); var min = scope.$ev...
import Icon from '../components/Icon.vue' Icon.register({"thermometer-4":{"width":1024,"height":1792,"paths":[{"d":"M640 1344q0 80-56 136t-136 56-136-56-56-136q0-60 35-110t93-71v-907h128v907q58 21 93 71t35 110zM768 1344q0-77-34-144t-94-112v-768q0-80-56-136t-136-56-136 56-56 136v768q-60 45-94 112t-34 144q0 133 93.5 226...
import React, { Children, PropTypes } from 'react'; const ContextType = { // Enables critical path CSS rendering // https://github.com/kriasoft/isomorphic-style-loader insertCss: PropTypes.func.isRequired, // Integrate Redux // http://redux.js.org/docs/basics/UsageWithReact.html store: PropTypes.shape({ subscr...
/** * Users * Pokemon Showdown - http://pokemonshowdown.com/ * * Most of the communication with users happens here. * * There are two object types this file introduces: * User and Connection. * * A User object is a user, identified by username. A guest has a * username in the form "Guest 12". Any user whose u...
import request from 'request-promise'; import url from 'url'; /** * @name JiraApi * @class * Wrapper for the JIRA Rest Api * https://docs.atlassian.com/jira/REST/6.4.8/ */ export default class JiraApi { /** * @constructor * @function * @param {JiraApiOptions} options */ constructor(options) { ...
var MongoClient = require('mongodb').MongoClient; var dropLowest = function(arry) { var minVal = Number.MAX_VALUE; var minIdx = -1; var newArray = []; for (i=0; i<arry.length; i++) { var val = arry[i]['score']; var type = arry[i]['type']; if (type === 'homework' && val < minVal) { minVal = val...
angular.module('app').factory('Utilities', [ '$window', function ($window) { var QueryString = (function (a) { if (a == "") { return {}; } var i; var b = {}; for (i = 0; i < a.length; ++i) { var p = a[i].split('='); if (p.length != 2) { ...
//Observable qui récupère sa valeur la 1ère fois seulement ko.onDemandObservable = function (callback, target) { var _value = ko.observable(); var result = ko.dependentObservable({ read: function () { //si données non charger exécuter la fonction callback if (!result.load...
var tests = []; for (var file in window.__karma__.files) { if (window.__karma__.files.hasOwnProperty(file)) { if (/.*\.spec\.js$/.test(file)) { tests.push(file); } } } requirejsConfig.baseUrl = '/base'; requirejsConfig.deps = tests; requirejsConfig.callback = window.__karma__.start; requirejs.confi...
Clazz.declarePackage ("J.adapter.smarter"); Clazz.load (["J.api.JmolAdapterStructureIterator"], "J.adapter.smarter.StructureIterator", ["J.api.JmolAdapter"], function () { c$ = Clazz.decorateAsClass (function () { this.structureCount = 0; this.structures = null; this.structure = null; this.istructure = 0; this.b...
module.exports = new (require('events').EventEmitter)();
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Start from './components/start'; import App from './App'; const routes = ( <Route path="/" component={App}> <IndexRoute component={Start}/> </Route> ); export default routes;
export const myiso ={ constructor () { var fso, ts, s ; var ForReading = 1; fso = new ActiveXObject("Scripting.FileSystemObject"); ts = fso.OpenTextFile("d:\\1.txt", ForReading); s = ts.ReadLine(); return s; } }
import Dexie from 'dexie' const db = new Dexie('metaDb') db.version(1).stores({ player: '++id, name', game: '++id, team, season, day' }) db.open().catch(e => { console.error(`metaDb open failed: ${e.stack}`) }) export const resetPlayer = () => db.table('player').clear() .catch(e => console.log(`error resetti...
/** * Created by guangqiang on 2017/9/7. */ import {createAction} from 'redux-actions' import type from '../../constants/actionType' import Action from '../../actionCreators/music' const getMusicId = createAction(type.MUSIC_ID_LIST, Action.musicIdList) const getMusicDetail = createAction(type.MUSIC_DETAIL, Action.mus...
/** * Helper function for getting & setting variable bits */ /* globals ENGINE */ module.exports = function (player, key, value) { if (typeof(value) !== "undefined") { ENGINE.setVarBit(player, key, value); } else { return ENGINE.getVarBit(player, key); } };
'use strict'; angular.module('app').service('userPreferencesService', [ 'localStorageService', 'VIEW_TYPES', (localStorageService, VIEW_TYPES) => { const USER_PREFERENCES_KEYS = { DEFAULT_VIEW: 'DEFAULT_VIEW' }; class UserPreferencesService { /** * @return {String} */ ...
import { GET_TABLE_CONTENT, CONNECT, CHANGE_VIEW_MODE } from '../actions/currentTable'; export default function currentTable(currentTableDefault = { items: [], isConnected: false, isFetching: true, totalCount: 0, order: [], page: 1, isContent: true, structureTable: [], titleTable: [] }, action) { ...
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import Search from '../search/default'; import Map from './default'; test('It should be able to render the map;', t => { const wrapper = shallow(<Map />); t.is(wrapper.find('section.map').length, 1); t.is(wrapper.find(Sear...
var getDefaultValues = require('../lib/getDefaultValues') var assert = require('assert') describe('getDefaultValues', function() { it ('pulls default values out of a schema', function() { var defaults = getDefaultValues({ properties: { name: { type: 'string', default: 'Bill' ...
/* Author: Darren Schnare Keywords: javascript,amd,browser,define,module License: MIT ( http://www.opensource.org/licenses/mit-license.php ) Repo: https://github.com/dschnare/definejs */ define("browser",{window:window,document:document,navigator:window.navigator,console:window.console||{}})