code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
Bridge.merge(new System.Globalization.CultureInfo("mgo-CM", true), { englishName: "Metaʼ (Cameroon)", nativeName: "metaʼ (Kamalun)", numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), { nanSymbol: "NaN", negativeSign: "-", positiveSign: "+", negativeInfi...
AndreyZM/Bridge
Bridge/Resources/Locales/mgo-CM.js
JavaScript
apache-2.0
3,330
/* * Copyright (c) 2012 Capgemini Technology Services (hereinafter “Capgemini”) * * License/Terms of Use * * Permission is hereby granted, free of charge and for the term of intellectual property rights on the Software, to any * person obtaining a copy of this software and associated documentation files (the "So...
gdrouet/wuic
modules/core/src/test/resources/cgsg/node/collision/class.collision.manager.js
JavaScript
apache-2.0
2,966
var chai = require('chai'), chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); chai.should(); var ValidationManager = require('model/validationmanager').ValidationManager; var subjectSchema = require('model/things/retrieve/response'); var config = require('./../../../config'); var findProp...
ArrowElectronics/aws-iot-dragonpulse-js
lambda/test/unit/model/things/retrieve/response.js
JavaScript
apache-2.0
2,376
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
xingwu1/azure-sdk-for-node
lib/services/resourceManagement/lib/resource/models/deploymentListResult.js
JavaScript
apache-2.0
1,623
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
khartec/waltz
waltz-ng/client/survey/survey-utils.js
JavaScript
apache-2.0
7,319
import { test } from 'ember-qunit'; import moduleForComponent from 'open-event-frontend/tests/helpers/component-helper'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('notification-dropdown', 'Integration | Component | notification dropdown'); const unreadNotifications = [ { title : 'Ne...
geekyd/open-event-frontend
tests/integration/components/notification-dropdown-test.js
JavaScript
apache-2.0
1,898
/** * Copyright 2009 Google Inc. * * 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/LICENSE-2.0 * * Unless required by applicable law or agreed t...
whackpad/whackpad
infrastructure/net.appjet.ajstdlib/streaming-client.js
JavaScript
apache-2.0
32,536
/* Copyright 2016 Streampunk Media Ltd. 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/LICENSE-2.0 Unless required by applicable law or agreed...
danickd/ledger
scratch/SmokeQueryAPI.js
JavaScript
apache-2.0
1,017
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; const CLASS_ROOT = CSSClassnames.CONTROL_ICON; const COLOR_IN...
codeswan/grommet
src/js/components/icons/base/UserWorker.js
JavaScript
apache-2.0
1,813
module.exports = { namespace: "com.example.kirin.bridge", classes: { "MyScreen": { implementedBy: "native", methods: { // only methods allowed "do:times:plus": [{ x : "int" }, { y : "int" }, { z : "int" }], // capitalise properly "...
KirinJS/kirin-build
test/idl-test-package/idl/DummyIDL.js
JavaScript
apache-2.0
1,997
angular.module('product-products') .controller('SelectObjectsModalController', ['$scope', '$modalInstance', '_allObjects', '_oldObjects', function ($scope, $modalInstance, _allObjects, _oldObjects) { var oldObjects = angular.copy(_oldObjects); var allObjects = a...
tchernobyl/APED-UI
app/components/product-products/select-objects/select-objects-controller.js
JavaScript
apache-2.0
2,041
'use strict' const path = require('path') const ActionHero = require('./../index.js') const api = ActionHero.api /** * Countains routing options for web clients. Can associate routes with actions or files. * * @namespace api.routes * @property {Object} routes - This servers routes, defined. * @property {Object}...
crrobinson14/actionhero
initializers/routes.js
JavaScript
apache-2.0
7,203
(function(){ window.BIGREAD = window.BIGREAD || {}; $('.bigread-social-btn[data-type="twitter"]').click(function(e){ BIGREAD.sendTweet(e); e.stopPropagation() return false }); $('.bigread-social-btn[data-type="facebook"]').click(function(e){ BIGREAD.sendFbShare(e); }); $('.bigread-social-b...
dfriedla/MOLtest
js/social-buttons.js
JavaScript
apache-2.0
2,797
var setBoard = function() { if ($('#board').length && $('#board2').length && $('#board3').length) { var cfg = { pieceTheme: '/assets/{piece}.png', showNotation: false, position: 'start' }; cfg.position = 'rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R' var board = new ChessBoard('...
tgoldenberg/ChessMentor
app/assets/javascripts/set_board.js
JavaScript
artistic-2.0
936
var assert = require("assert"); var _ = require("underscore"); var optionsReader = require("../lib/options-reader"); var standardOptions = optionsReader._standardOptions; var readOptions = optionsReader.readOptions; var test = require("./test")(module); test('standard options are used if options is undefined', func...
mwilliamson/mammoth.js
test/options-reader.tests.js
JavaScript
bsd-2-clause
2,312
/* * The function below takes a string as input and should: * * 1) Replace the word "today" with the current date using the * `toDateString' method (present on date objects). * * 2) Replace the word "pi" with the numeric value of PI, to the 2nd * decimal place. * * 3) Count how many occurrences...
devalot/corejs
www/string/string.js
JavaScript
bsd-2-clause
637
/* @preserve TW-Guard */ /*\ title: $:/plugins/felixhayashi/tiddlymap/js/MapElementType type: application/javascript module-type: library @preserve \*/ /* @preserve TW-Guard */ /*** Imports *******************************************************/ import utils from '$:/plugins/felixhayashi/tiddlymap/js/utils'; /**...
flibbles/TW5-TiddlyMap
src/plugins/felixhayashi/tiddlymap/js/graph/MapElementType.js
JavaScript
bsd-2-clause
5,146
import React from 'react'; import ReactDOM from 'react-dom'; import { Link, browserHistory } from 'react-router'; const CardModal = React.createClass({ componentDidUpdate() { ReactDOM.findDOMNode(this.refs.front).focus(); }, render() { let { card, onDelete } = this.props; return (<div className='mod...
robshox/boostv1
src/components/CardModal.js
JavaScript
bsd-2-clause
1,335
/** * @name Widget * @class */ /** * Widget is a 'abstract class used to construct Dom based ui element classes and control their position on screen' * @param {Object} options object with x, y, container and el */ var Widget = function(options) { this.x = options.x || null; this.y = options.y || null; this.cs...
CamHenlin/roguish
classes/widget.js
JavaScript
bsd-3-clause
1,381
var mongoose = require('mongoose'); var schemaCurso = new mongoose.Schema({ idCurso:{ type: mongoose.Schema.Types.ObjectId}, //Id del Curso tipo:String, nombre:String //Nombre del Curso }); var schemaProfesor = new mongoose.Schema({ nombres: String, apPaterno: String, apMaterno:String, cursos : [s...
janusnic/sisacademico
node/modelosDB/profesor.js
JavaScript
bsd-3-clause
395
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @fileoverview Suite of tests for extension-sidebar. */ cr.define('extension_manager_tests', function() { /** @enum {string} */ var TestNames = { ...
danakj/chromium
chrome/test/data/webui/extensions/extension_manager_test.js
JavaScript
bsd-3-clause
6,561
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2014 pimcore GmbH (http://www.pimcore...
yasarkunduz/pimcore
pimcore/static6/js/pimcore/object/helpers/edit.js
JavaScript
bsd-3-clause
11,160
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** @suppress {duplicate} */ var remoting = remoting || {}; (function() { 'use strict'; var instance_ = null; /** * @constructor * @implements {remo...
CTSRD-SOAAP/chromium-42.0.2311.135
remoting/webapp/base/js/auth_dialog.js
JavaScript
bsd-3-clause
2,625
// ---------------------------------------------------------------------------- // Copyright (c) 2016-2021, QIIME 2 development team. // // Distributed under the terms of the Modified BSD License. // // The full license is in the file LICENSE, distributed with this software. // -----------------------------------------...
qiime2/qiime-studio
app/js/reducers/index.js
JavaScript
bsd-3-clause
1,019
/*jslint nomen: true */ var path = require('path'), fs = require('fs'), vm = require('vm'), rimraf = require('rimraf'), mkdirp = require('mkdirp'), OUTPUT_DIR = path.resolve(process.cwd(), 'output'), COMMAND = 'instrument', DIR = path.resolve(__dirname, 'sample-project'), helper = requir...
bigeasy/istanbul
test/cli/test-instrument-command.js
JavaScript
bsd-3-clause
5,034
/*global QUnit:false, module:false, test:false, asyncTest:false, expect:false*/ /*global start:false, stop:false ok:false, equal:false, notEqual:false, deepEqual:false*/ /*global notDeepEqual:false, strictEqual:false, notStrictEqual:false, raises:false*/ define(function(require){ var $ = require('jquery'); var html ...
kinghigh/bootstrap
test/checkbox-test.js
JavaScript
bsd-3-clause
5,626
;(function($B){ eval($B.InjectBuiltins()) var object = _b_.object, str_hash = _b_.str.__hash__, $N = _b_.None // dictionary function $DictClass($keys,$values){ this.iter = null this.__class__ = dict dict.clear(this) var setitem = dict.__setitem__, i = $keys.length while(i--){seti...
Hasimir/brython
www/src/py_dict.js
JavaScript
bsd-3-clause
23,132
$(function() { $('#loginForm').submit(function(){ var valid1 = true; var valid2 = true; $('.validationErrorDiv').each(function() { $(this).remove(); }); }); $('#userNameValue').focus(); }); function validateValue(inputID){ if ($.trim($('#'+inputID).val()) == "") { $('#'+inputID).parent().parent().f...
xe1gyq/OpenAttestation
portals/TrustDashBoard/src/main/webapp/Scripts/login.js
JavaScript
bsd-3-clause
677
var dir_393ec44309f325ad795146db0095cd1c = [ [ "roadsigndetectionLib", "dir_e187d33fa91ff0d61243fac2cc30bb38.html", "dir_e187d33fa91ff0d61243fac2cc30bb38" ] ];
KAtana-Karlsruhe/AADC_2015_KAtana
doc/html/dir_393ec44309f325ad795146db0095cd1c.js
JavaScript
bsd-3-clause
163
/* global jest, jasmine, describe, it, expect, beforeEach */ import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { Component as ProportionConstraintField } from '../ProportionConstraintField'; // eslint-disable-next-line react/prop-types const FieldGroup = ({ children }) => <div>{chil...
open-sausages/silverstripe-asset-admin
client/src/components/ProportionConstraintField/tests/ProportionConstraintField-test.js
JavaScript
bsd-3-clause
2,385
var Code = require('code'), Lab = require('lab'), lab = exports.lab = Lab.script(), describe = lab.experiment, before = lab.before, afterEach = lab.afterEach, after = lab.after, it = lab.test, expect = Code.expect, generateCrumb = require("../handlers/crumb.js"), emailMock, server; var MockTransp...
watilde/newww
test/company/contact-support.js
JavaScript
isc
8,115
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
weexteam/weex-toolkit
packages/@weex/plugins/debug/frontend/src/assets/inspector/timeline/CountersGraph.js
JavaScript
mit
17,834
'use strict'; import { IterableDiffers, DefaultIterableDiffer } from '@angular/core'; import { MongoCursorDifferFactory } from './mongo_cursor_differ'; import { isListLikeIterable } from './utils'; export var DefaultIterableDifferFactory = (function () { function DefaultIterableDifferFactory() { } DefaultIt...
alcuster/swaptime
node_modules/angular2-meteor/dist/providers.js
JavaScript
mit
944
const canvas = document.body.appendChild(document.createElement('canvas')) const gl = require('gl-context')(canvas, render) const camera = require('lookat-camera')() const Geom = require('gl-geometry') const Shader = require('gl-shader') const mat4 = require('gl-mat4') const glslify =...
nodesource/understanding-npm
unpm-storyboard/demo.js
JavaScript
mit
2,231
(function(c){var a="fil-PH",b=c.cultures,e=b.en,f=e.calendars.standard,d=b[a]=c.extend(true,{},e,{name:a,englishName:"Filipino (Philippines)",nativeName:"Filipino (Pilipinas)",language:"fil",numberFormat:{currency:{symbol:"PhP"}},calendars:{standard:c.extend(true,{},f,{days:{names:["Linggo","Lunes","Martes","Mierkoles"...
Leandro-b-03/SmartBracelet
public/library/javascripts/jquery.GlobalMoneyInput/globinfo/jQuery.glob.fil-PH.min.js
JavaScript
mit
771
const debug = require('ghost-ignition').debug('importer:base'), _ = require('lodash'), Promise = require('bluebird'), ObjectId = require('bson-objectid'), common = require('../../../../lib/common'), sequence = require('../../../../lib/promise/sequence'), models = require('../../../../models'); ...
EdwardStudy/myghostblog
versions/2.16.4/core/server/data/importer/importers/data/base.js
JavaScript
mit
12,531
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils...
yungsters/react
packages/react-dom/src/__tests__/ReactDOMServerIntegrationNewContext-test.js
JavaScript
mit
15,715
module.exports = { description: 'take actual parameters into account when determining side-effects of calls to arrow functions' };
corneliusweig/rollup
test/form/samples/arrow-function-call-parameters/_config.js
JavaScript
mit
134
'use strict'; /** * Here is the problem: http://bugs.jquery.com/ticket/7292 * basically jQuery treats change event on some browsers (IE) as a * special event and changes it form 'change' to 'click/keydown' and * few others. This horrible hack removes the special treatment */ if (window._jQuery) _jQuery.event.spec...
Ore4444/angular.js
test/testabilityPatch.js
JavaScript
mit
8,158
import Subscriber from '../Subscriber'; import tryCatch from '../util/tryCatch'; import { errorObject } from '../util/errorObject'; /** * Catches errors on the observable to be handled by returning a new observable or throwing an error. * @param {function} selector a function that takes as arguments `err`, which is t...
binariedMe/blogging
node_modules/angular2/node_modules/@reactivex/rxjs/dist/es6/operators/catch.js
JavaScript
mit
1,585
import DS from 'ember-data'; import Ember from 'ember'; import User from './user'; import AttestationValidationError from '../utils/attestation-validation-error'; let Attestation = DS.Model.extend({ handle: DS.attr('string'), userUrl: DS.attr('string'), userName: DS.attr('string'), userEmail: DS.attr('string')...
blakepettersson/dashboard.aptible.com
app/models/attestation.js
JavaScript
mit
1,971
/* eslint-env mocha */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {shallow, mount} from 'enzyme'; import {assert} from 'chai'; import keycode from 'keycode'; import {spy} from 'sinon'; import DropDownMenu from './DropDownMenu'; import getMuiTheme from '../styles/getMuiTheme'; imp...
mit-cml/iot-website-source
src/DropDownMenu/DropDownMenu.spec.js
JavaScript
mit
6,984
// An extremely basic translation library // // Example usage: // // Set some html to be translated. Do this using the 'data-translate' attribute: // // <div data-translate>Test</div> // <div data-translate-html><em>keep em tag</em></div> // <input data-translate-placeholder placeholder="Example placeholder"> // ...
chrisrico/bip39
src/js/translate.js
JavaScript
mit
4,707
'use strict'; /* Filters */ angular.module('myApp.filters', []) .filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); } }]) .filter('formatTimer', function() { return function(input) { function z(n) ...
yishu4geek/IOS-World-Clock-App
www/js/filters.js
JavaScript
mit
1,480
import FrameLoop from './FrameLoop'; describe('FrameLoop', function() { it('queues and runs functions in a step', function() { var loop = new FrameLoop(); var update = jasmine.createSpy('update'); var context = {}; var data = {}; loop.onNextTick(update, context, data); loop.step(); ex...
infamous/famin
src/core/FrameLoop.spec.js
JavaScript
mit
492
OC.L10N.register( "files", { "Storage is temporarily not available" : "Складот е привремено недостапен", "Storage invalid" : "Складиштето не е валидно", "Unknown error" : "Непозната грешка", "All files" : "Сите датотеки", "File could not be found" : "Датотеката не е пронајдена", "Home" :...
phil-davis/core
tests/data/themes/abc/apps/files/l10n/mk.js
JavaScript
mit
13,607
myApp.controller('RegistrationController', function($scope, $firebaseSimpleLogin, $location, Authentication) { $scope.login = function() { Authentication.login($scope.user) .then(function(user) { $location.path('/meetings'); }, function(error) { $scope.message = error.toString(); }...
alex16nba/alexTest
builds/development/js/controllers/registration.js
JavaScript
mit
633
'use strict'; module.exports = { type: 'error', error: { line: 2, column: 1, message: 'Unexpected end of file. Type parameters at 1:9 should be followed by a closing pointy bracket \'>\'.', }, };
fatfisz/binapi
test/fixtures/parser/type parameters error 6/config.js
JavaScript
mit
215
define(['footwork'], function(fw) { return function() { registerFootworkEntity(fw.viewModel.boot(this, { namespace: 'registered-regexp-component-location' })); }; });
footworkjs/footwork
tests/assets/fixtures/registeredRegExpComponentLocation/registered-regexp-component-location.js
JavaScript
mit
185
import React from 'react'; import { FAQs } from 'components/FAQs'; import { shallow } from 'enzyme'; describe('(Component) FAQs', () => { let _wrapper; beforeEach(() => _wrapper = shallow(<FAQs/>)); it('Renders an FAQ', () => { const faq = _wrapper.find('h2'); expect(faq).to.exist; expect(faq.text(...
trussworks/DoDidDone
tests/components/FAQs.spec.js
JavaScript
mit
351
'use strict'; const forks = require('./forks'); const {UMD_DEV, UMD_PROD, UMD_PROFILING} = require('./bundles').bundleTypes; // For any external that is used in a DEV-only condition, explicitly // specify whether it has side effects during import or not. This lets // us know whether we can safely omit them when they ...
cpojer/react
scripts/rollup/modules.js
JavaScript
mit
3,177
import React from 'react'; import {findDOMNode} from 'react-dom' import {config} from '../../../config/config'; const $script = require('scriptjs'); require('./D3Map.css'); export default class D3Map extends React.Component { /* countries: any; zoom: any; container: any; width: any; height: any; ...
backpackcoder/world-in-flames
src/app/components/graphs/d3/D3Map.js
JavaScript
mit
7,318
import {a as renamedX, b} from './resources/m.js'; import {a} from './resources/m.js'; import * as m2 from './resources/m.js'; expect(a).toBe(1); expect(renamedX).toBe(1); expect(b).toBe(2); import * as m from './resources/m.js'; expect(renamedX).toBe(a); expect(m.a).toBe(a); import * as m3 from './resources/m.js';...
kellyselden/babel
packages/babel-preset-es2015/test/fixtures/traceur/Modules/ImportFromModule.module.js
JavaScript
mit
363
module.exports = { scenarios: [ { name: 'default', dependencies: { } }, { name: 'ember-release', dependencies: { 'ember': 'components/ember#release' }, resolutions: { 'ember': 'release' } }, { name: 'ember-beta', dependencies: {...
anderslime/ember-bootstrap-datetimepicker
config/ember-try.js
JavaScript
mit
702
const gulp = require('gulp'); const { clean, replace, logger } = require('egg-web/build/gulp.config'); gulp.task('_clean', clean); gulp.task('_replace', replace); gulp.task('_logger', logger);
hbrls/weixin-api-debug
mockup/gulpfile.js
JavaScript
mit
197
/* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. */ (function ($) { function entityRating(element) { this._element = $(element); this._urlSave = this._element.attr("data-url-save"); this._logicalName = ...
Adoxio/xRM-Portals-Community-Edition
Samples/MasterPortal/js/rating.js
JavaScript
mit
3,667
const obj1 = { x: false }, obj2 = { x: false }; ((() => obj1) || (() => obj2))().x = true; if (!obj1.x || obj2.x) { throw new Error('Reassignment not tracked'); }
corneliusweig/rollup
test/function/samples/track-logical-expression-return-reassignments/main.js
JavaScript
mit
167
import { useEffect } from 'react' import { useFrame } from '@react-three/fiber' import { useAnimations, useGLTF } from '@react-three/drei' export default function Bird({ speed, factor, url, ...props }) { const { nodes, animations } = useGLTF(url) const { ref, mixer } = useAnimations(animations) useEffect( (...
zeit/next.js
examples/with-three-js/components/Bird.js
JavaScript
mit
1,183
#!/usr/bin/env node 'use strict'; // stdlib var fs = require('fs'); var path = require('path'); // 3rd-party var ArgumentParser = require('argparse').ArgumentParser; var shellwords = require('shellwords').split; // internal var Mincer = require('..'); ////////////////////////////////////////////...
somenathghosh/Chat_Client
node_modules/mincer/bin/mincer.js
JavaScript
mit
2,538
Ergo.defineClass('Ergo.widgets.TableGrid', 'Ergo.widgets.Box', { defaults: { cls: 'table-grid', components: { header: { cls: 'grid-header', components: { content: { etype: 'grid-header' } } }, content: { cls: 'grid-content', autoHeight: true, components: { ...
eliace/ergojs-site
lib/ergo-js/js/widgets/grids/table-grid.js
JavaScript
mit
5,793
import { Component } from 'react'; import Spin from '../Spin'; import Alert from '../../alert'; import Button from '../../button'; import style from './index.css'; export default class SpinDemo extends Component { constructor(props) { super(props); this.state = { isShow1: true, isShow2: false, ...
quark-ui/quark-ui
src/components/spin/demo/index.js
JavaScript
mit
3,579
var deserialize = require('./deserialize'); var serialize = require('./serialize'); var shell = require('./modes/shell'); var log = require('./modes/log'); var es = require('event-stream'); var JSONStream = require('JSONStream'); var raf = require('raf'); var util = require('util'); var format = util.format; var deprec...
w4rlock/vue-js-mongo
modules-mongo/mongodb-extended-json/lib/index.js
JavaScript
mit
3,680
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ const {inBrowser} = require(`@ciscospark/common`); if (inBrowser) { throw new Error(`ciscospark/env cannot be used in browser environments`); } const CiscoSpark = require(`ciscospark`); const spark = new CiscoSpark({ credentials: process.env...
CiscoHRIT/spark-js-sdk
packages/node_modules/ciscospark/env.js
JavaScript
mit
374
/* global angular */ angular.module('afkl.lazyImage', []);
lanyu-op/ionic-cordova-case
www/lib/angular-lazy-image/lazy-image.module.js
JavaScript
mit
58
import LocalStorageAdapter from "ember-localstorage-adapter/adapters/ls-adapter"; export default LocalStorageAdapter.extend({ namespace: "auth" });
streamlink/streamlink-twitch-gui
src/app/data/models/auth/adapter.js
JavaScript
mit
151
(function(undefined) { const mongoose = require('mongoose') const should = require('should') const validate = require('..') const extend = validate.extend const defaultErrorMessages = validate.defaultErrorMessages const Schema = mongoose.Schema // http...
abhinavralhan/shiny-goggles
node_modules/mongoose-validator/test/test.js
JavaScript
mit
22,189
'use strict'; var _get = require('babel-runtime/helpers/get')['default']; var _inherits = require('babel-runtime/helpers/inherits')['default']; var _createClass = require('babel-runtime/helpers/create-class')['default']; var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default']; var _inter...
html-document/html-document
lib/ParentNode.js
JavaScript
mit
15,074
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _ca_ES = require('rc-calendar/lib/locale/ca_ES'); var _ca_ES2 = _interopRequireDefault(_ca_ES); var _ca_ES3 = require('../../time-picker/locale/ca_ES'); var _ca_ES4 = _interopRequireDefault(_ca_ES3); var _objectAssign = require('...
maty21/statistisc
node_modules/antd/lib/date-picker/locale/ca_ES.js
JavaScript
mit
976
"use strict"; var helper = module.exports = { }; var Joi = require("joi"); var responseHelper = require("../responseHelper.js"); var router = require("../router.js"); helper.validate = function(someObject, someDefinition, callback) { Joi.validate(someObject, someDefinition, function (err) { if (err) { re...
Artanis/jsonapi-server
lib/routes/helper.js
JavaScript
mit
1,608
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
andeemarks/conf-gen-div-react
node_modules/react-mdl/lib/Icon/index.js
JavaScript
mit
1,382
const got = require("got"); it("works with async/await", async () => { const { body } = await got("http://localhost:3000/dev", { responseType: "json", }); expect(body).toEqual("ok"); });
ar90n/serverless-s3-local
example/webpack_support/webpack_support.test.js
JavaScript
mit
198
'use strict'; var React = require('react'); module.exports = { propTypes: { showTooltip: React.PropTypes.bool, tooltipFormat: React.PropTypes.func }, getDefaultProps() { return { showTooltip: true, tooltipFormat: (d) => String(d.yValue) }; }, getInitialState() { ret...
tobyredd/rd3
src/mixins/TooltipMixin.js
JavaScript
mit
1,046
jQuery.fn.liScroll = function(settings) { settings = jQuery.extend({ travelocity: 0.07 }, settings); return this.each(function(){ var $strip = jQuery(this); $strip.addClass("newsticker") var stripWidth = 0; var $mask = $strip.wrap("<div class='mask'></div>"); var $tickercontainer = $strip....
AndyDune/ok62.ru
viewfiles/ver_1/edinstvo/js/jquery.li-scroller.js
JavaScript
mit
1,250
/* * @package jsDAV * @subpackage DAVACL * @copyright Copyright(c) 2013 Mike de Boer. <info AT mikedeboer DOT nl> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ "use strict"; var jsDAV_ServerPlugin = require("./../DAV/plugin"); ...
pascience/cloxp-install
win/life_star/node_modules/lively-davfs/node_modules/jsDAV/lib/DAVACL/plugin.js
JavaScript
mit
55,978
var utils = require('../../../lib/offshore/utils/schema'), assert = require('assert'); describe('Schema utilities', function() { describe('`normalizeAttributes`', function() { describe('with shorthand attributes', function() { var attributes; before(function() { attributes = { ...
atiertant/offshore
test/unit/utils/utils.schema.js
JavaScript
mit
5,912
/** * The goal of this file is to provide the basic understanding: * -> Using default task. * * How to run this example. * 1. Locate to this folder and execute the command `grunt` or `grunt default`. */ module.exports = function(grunt) { "use strict"; /** * @function: print "Hello World" on consol...
hegdeashwin/learning-js-taskrunners
codes/example-1/Gruntfile.js
JavaScript
mit
935
describe('Built in DOM helpers', function () { var server = meteor(); var client = browser(server); it('should be able to use sendKeys', function () { return client .sendKeys('input[type=text]', 'abc') .expectValueToEqual('input[type=text]', 'abc'); }); it('should be able to use click', fun...
anticoders/gagarin
tests/specs/helpersDOM.js
JavaScript
mit
3,284
/*! merchello * https://github.com/meritage/Merchello * Copyright (c) 2015 Merchello; * Licensed MIT */ (function() { /** * @ngdoc resource * @name auditLogResource * @description Loads in data and allows modification of audit logs **/ angular.module('merchello.resources').factory('au...
bjarnef/Merchello
src/Merchello.Web.UI/App_Plugins/Merchello/js/merchello.resources.js
JavaScript
mit
62,907
"use strict"; module.exports = { // ## Server settings // ### `public` // // When set to `true`, The Lounge starts in public mode. When set to `false`, // it starts in private mode. // // - A **public server** does not require authentication. Anyone can connect // to IRC networks in this mode. All IRC conne...
MaxLeiter/lounge
defaults/config.js
JavaScript
mit
16,441
define( [ "./core", "./core/access", "./var/document", "./var/documentElement", "./css/var/rnumnonpx", "./css/curCSS", "./css/addGetHookIf", "./css/support", "./core/init", "./css", "./selector" // contains ], function( jQuery, access, document, documentElement, rnumnonpx, curCSS, addGetHookIf, support ) { ...
BeaverGuo/react-boilerplate
other_notes/design_pattern_notes/jQuery_notes/src/offset.js
JavaScript
mit
6,230
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.breadcrumbs = { all: {}, preferred: { "File": "" }, set_doctype_module: function(doctype, module) { localStorage["preferred_breadcrumbs:" + doctype] = module; }, get_doctype_module: function(doctyp...
Amber-Creative/amber-frappe
frappe/public/js/frappe/views/breadcrumbs.js
JavaScript
mit
2,570
/* * MediaWiki FCKeditor plugin * * Finnish (Suomi) language file. * @file * @ingroup Language * @author Jack Phoenix <jack@countervandalism.net> */ FCKLang.wikiTabEdit = 'Muokkaa'; //FCKLang.wikiTabManual = 'Manual'; FCKLang.wikiBtnTemplate = 'Lisää/Muokkaa mallinetta'; FCKLang.wikiBtnReference = ...
SuriyaaKudoIsc/wikia-app-test
extensions/FCKeditor/plugins/mediawiki/lang/fi.js
JavaScript
gpl-2.0
4,654
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero Genera...
lightryuzaki/project1
scripts/npc/1032009.js
JavaScript
gpl-2.0
1,580
/*! jQuery UI - v1.10.3 - 2013-09-10 * http://jqueryui.com * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function(e){e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&a()}function a(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var n,r,o,l,h,...
eblipsky/NOW-web
laravel/public/jquery/development-bundle/ui/minified/jquery.ui.effect-explode.min.js
JavaScript
gpl-2.0
985
/** * Copyright (c) 2008-2011 The Open Planning Project * * Published under the GPL license. * See https://github.com/opengeo/gxp/raw/master/license.txt for the full text * of the license. */ /** * @requires plugins/WMSSource.js */ /** api: (define) * module = gxp.plugins * class = CatalogueSource */ /...
piensa/worldmap
src/geonode-client/app/static/externals/gxp/src/script/plugins/CatalogueSource.js
JavaScript
gpl-3.0
3,261
export default class UserListController { constructor($http, ClarolineSearchService, $stateParams, GroupAPIService, ClarolineAPIService, $uibModal) { this.$http = $http this.ClarolineSearchService = ClarolineSearchService this.ClarolineAPIService = ClarolineAPIService this.$statePara...
om64/CoreBundle
Resources/modules/groups/Controller/UserListController.js
JavaScript
gpl-3.0
6,383
/*eslint-env mocha */ /*eslint no-unused-vars: [2, { "args": "none" }]*/ var assert = require( "assert" ); var fs = require( "fs" ); var path = require( "path" ); var inline = require( "../src/inline.js" ); var util = require( "../src/util.js" ); var fauxJax = require( "faux-jax" ); var mime = require( "mime-ty...
boycaught/njwo
node_modules/web-resource-inliner/test/spec.js
JavaScript
gpl-3.0
17,906
/** @constructor */ JSDOC.Token = function(data, type, name) { this.data = data; this.type = type; this.name = name; } JSDOC.Token.prototype.toString = function() { return "<"+this.type+" name=\""+this.name+"\">"+this.data+"</"+this.type+">"; } JSDOC.Token.prototype.is = function(what) { return this.name === w...
j9recurses/whirld
vendor/assets/components/cartagen/lib/jsdoc/app/lib/JSDOC/Token.js
JavaScript
gpl-3.0
348
/* variables */ var bInc = document.getElementsByClassName('inc'); var bDec = document.getElementsByClassName('dec'); var bAdd = document.getElementsByClassName('add'); var bRemove = document.getElementsByClassName('remove'); var vLastClass = 'bleu'; /* function */ function increment(selected...
ambientelivre/Sankore-3.1
resources/library/applications/Compteur.wgt/js/main.js
JavaScript
gpl-3.0
5,891
var textBase = require("ui/text-base"); var enums_1 = require("ui/enums"); var Label = (function (_super) { __extends(Label, _super); function Label() { _super.apply(this, arguments); } Object.defineProperty(Label.prototype, "textWrap", { get: function () { return this.style....
ngydat/connect
platforms/android/src/main/assets/app/tns_modules/ui/label/label-common.js
JavaScript
gpl-3.0
640
/* exported RSubprojectRelations */ import React, {Component} from 'react'; /** * Subproject Relations React Component */ class SubprojectRelations extends Component { /** * Get the default React properties. * Invoked once and cached when the class is created. * Values in the mapping will be set if not sp...
aces/Loris
modules/configuration/jsx/SubprojectRelations.js
JavaScript
gpl-3.0
1,207
var lizAttributeTable = function() { lizMap.events.on({ 'uicreated':function(evt){ // Attributes var config = lizMap.config; var layers = lizMap.layers; var hasAttributeTableLayers = false; var attributeLayersActive = false; var attri...
3liz/lizmap-web-client
lizmap/www/assets/js/attributeTable.js
JavaScript
mpl-2.0
138,567
// @flow /** * Source Map Worker * @module utils/source-map-worker */ const networkRequest = require("devtools-network-request"); const { parse } = require("url"); const path = require("./path"); const { SourceMapConsumer, SourceMapGenerator } = require("source-map"); const { getContentType } = require("./source")...
rrandom/debugger.html
src/utils/source-map-worker.js
JavaScript
mpl-2.0
6,534
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; class Heartbreaker ex...
ronaldpereira/WoWAnalyzer
src/parser/deathknight/blood/modules/talents/Heartbreaker.js
JavaScript
agpl-3.0
1,683
/* * Copyright 2014 Rick Van Tassel<rickvt@gmail.com> * * This file is part of Coin-chance. * * Coin-chance is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
Ruzihm/coin-chance
src/routes/roll.js
JavaScript
agpl-3.0
1,954
/** * ForceBlocks.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Makes sure that everything gets wrapped in paragraphs. * * @private * @class tinymce.Force...
jtark/tinymce
src/core/src/main/js/ForceBlocks.js
JavaScript
lgpl-2.1
4,446
// 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/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed...
kennho/oppia
core/tests/karma-globals.js
JavaScript
apache-2.0
705
'use strict'; /* global __dirname */ const chai = require('chai'); const sinon = require('sinon'); const chaiAsPromised = require('chai-as-promised'); global.expect = chai.expect; global.sinon = sinon; global.chaiAsPromised = chaiAsPromised; chai.use(chaiAsPromised); global.rootRequire = name => { return require(`...
kubacka/alexia-starter-kit
test/test-bundler.js
JavaScript
apache-2.0
350
/** * @license AngularJS v1.3.8 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /** * @ngdoc module * @name ngRoute * @description * * # ngRoute * * The `ngRoute` module provides routing and deeplinking services and directives for angu...
andrzejszywala/openkp
src/main/webapp/vendor/angularjs/angular-route.js
JavaScript
apache-2.0
35,977
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.auth', name: 'LastModifiedByAwareDAO', extends: 'foam.dao.ProxyDAO', methods: [ { name: 'put_', code: function(x, obj) { if ( ! f...
jacksonic/vjlofvhjfgm
src/foam/nanos/auth/LastModifiedByAwareDAO.js
JavaScript
apache-2.0
1,376