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 |
|---|---|---|---|---|---|
"use strict";
var assert = require("assert");
var getContextFn = Promise._getContext;
Promise.config({ asyncHooks: true });
var supportsAsync = Promise._getContext !== getContextFn;
Promise.config({ asyncHooks: false });
if (supportsAsync) {
runTests();
}
function runTests() {
var async_hooks = require('asyn... | petkaantonov/bluebird | test/mocha/async_hooks.js | JavaScript | mit | 4,646 |
/**
* @author: Jewway
* @version: v1.0.0
*/
!function ($) {
'use strict';
function getCurrentHeader(that) {
var header = that.$header;
if (that.options.height) {
header = that.$tableHeader;
}
return header;
}
function getFilterFields(that) {
return getCurrentHeader(that).find('[... | sistemaHergo/hergo | assets/plugins/table-boot/plugin/bootstrap-table-select2-filter.js | JavaScript | mit | 8,758 |
module.exports = {
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest'
},
resolver: '@nrwl/jest/plugins/resolver',
moduleFileExtensions: ['ts', 'js', 'html'],
coverageReporters: ['html']
};
| groupdocs-editor/GroupDocs.Editor-for-.NET | Demos/WebForms/src/client/jest.config.js | JavaScript | mit | 250 |
module.exports={A:{A:{"2":"H C G E A B EB"},B:{"2":"D p x J L N I"},C:{"2":"0 1 2 3 4 5 6 8 9 YB BB F K H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y WB QB"},D:{"16":"F K H C G E A B D p","33":"0 1 2 3 4 5 6 8 9 x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m ... | AngeliaGong/AngeliaGong.github.io | node_modules/caniuse-lite/data/features/css-line-clamp.js | JavaScript | mit | 835 |
import { createStore, applyMiddleware, compose } from 'redux'
import createLogger from 'redux-logger'
import createSagaMiddleware, { END } from 'redux-saga'
import sagaMonitor from '@redux-saga/simple-saga-monitor'
import DevTools from '../containers/DevTools'
import rootReducer from '../reducers'
export default funct... | yelouafi/redux-saga | examples/real-world/store/configureStore.dev.js | JavaScript | mit | 927 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z" /></g></React.Fragment>
, 'FlashAutoSha... | Kagami/material-ui | packages/material-ui-icons/src/FlashAutoSharp.js | JavaScript | mit | 326 |
// commands for packing and unpacking tarballs
// this file is used by lib/cache.js
var fs = require('graceful-fs')
var path = require('path')
var writeFileAtomic = require('write-file-atomic')
var writeStreamAtomic = require('fs-write-stream-atomic')
var log = require('npmlog')
var uidNumber = require('uid-number')
v... | node-hocus-pocus/thaumaturgy | lib/npm3/lib/utils/tar.js | JavaScript | mit | 13,220 |
import {expect} from 'chai'
import Ember from 'ember'
const {Logger} = Ember
import {stubRoutingService} from 'ember-frost-core/test-support/frost-link'
import windowUtils from 'ember-frost-core/utils/window'
import {$hook} from 'ember-hook'
import wait from 'ember-test-helpers/wait'
import {integration} from 'ember-te... | rox163/ember-frost-core | tests/integration/components/frost-link-test.js | JavaScript | mit | 17,966 |
'use strict';
/**
* Lints chosen source files and reports any errors.
*
* Example Usage:
* gulp lint
* gulp lint --filePath js/src/app.js
*/
var gulp = require('gulp'),
args = require('yargs').argv,
chalk = require('chalk'),
common = require('./_common'),
jshint = require('gulp-jshint');
gu... | antwan1986/websockets-canvas-drawing-app | run/tasks/lint/index.js | JavaScript | mit | 806 |
var searchData=
[
['warn',['warn',['../namespacerobotis__manipulator_1_1log.html#a0b7fa98d31c1beaf1c7d0989723a5fa2',1,'robotis_manipulator::log::warn(STRING str)'],['../namespacerobotis__manipulator_1_1log.html#aac4f8d437de82deb67e7e9c4688dfcdc',1,'robotis_manipulator::log::warn(STRING str, double data, uint8_t decim... | ROBOTIS-GIT/emanual | docs/en/software/robotis_manipulator_libs/doxygen/html/search/functions_11.js | JavaScript | mit | 647 |
$.ajaxSetup({
beforeSend: function (xhr) {
if (app.session === null) {
var s = localStorage.getItem('roadieSession');
if (s) {
var ps = JSON.parse(s);
if (ps) {
app.session = new Session(new app.models.User(), ps.bearerToken);
... | sphildreth/roadie | roadie/Content/js/main.js | JavaScript | mit | 1,523 |
var $ = require('jquery');
var Backbone = require('backbone');
var router = new(require('./Router'))();
var config = require('./conf');
Backbone.$ = $;
window.$ = $;
exports = module.exports = function() {
var checkLogin = function(callback) {
$.ajax({
url: config.api.host + '/login/check/' + router.appCode,
... | williambai/beyond-webapp | unicom/app/scripts/modules/superadmin/index.js | JavaScript | mit | 1,271 |
import { Observable } from 'rxjs';
import { ObservableCursor } from './ObservableCursor';
import { removeObserver } from './utils';
export var MongoObservable;
(function (MongoObservable) {
'use strict';
/**
* Creates a new MongoObservable.Collection from an existing of predefined Mongo.Collection.
*... | beciaha/spectro2 | node_modules/meteor-rxjs/dist/ObservableCollection.js | JavaScript | mit | 11,769 |
'use strict';
var util = require('../util/index'),
Unit = require('./Unit'),
number = util.number,
complexBuilder = require('./ComplexBuilder'),
complexParser = require('./NewComplexParser'),
isNumber = util.number.isNumber,
isUnit = Unit.isUnit,
isString = util.string.isString;
/**
* @... | jeslopcru/code-refactoring-course | class6/ejercicio/mathjs-refactor/lib/type/Complex.js | JavaScript | mit | 6,408 |
import React, { Component } from 'react';
import { Navigator } from 'react-native';
import { flatten, uniq } from 'underscore';
import Profile from '../profile/Profile';
import Conversation from './Conversation';
import Conversations from './Conversations';
import { DEV, API } from '../../config';
import { globals } f... | buildreactnative/assemblies | application/components/messages/MessagesView.js | JavaScript | mit | 2,437 |
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Tab = require('../components/Tab');
var _Tab2 = _interopRequireDefault(_Tab);
var _TabList = require('../components/TabList');
var _TabList2 = _interopRequireDefault(_TabList);
function _interopRequireDefault(obj) { r... | ngocson8b/6jar | public/assets/js/node_modules/react-tabs/lib/helpers/childrenPropType.js | JavaScript | mit | 1,728 |
CKEDITOR.plugins.setLang("about","bg",{copy:"Copyright © $1. All rights reserved.",dlgTitle:"Относно CKEditor",help:"Проверете $1 за помощ.",moreInfo:"За лицензионна информация моля посетете сайта ни:",title:"Относно CKEditor",userGuide:"CKEditor User's Guide"}); | nhtua/laravel-admin-template | public/backend/packages/ckeditor/plugins/about/lang/bg.js | JavaScript | mit | 343 |
import store from 'store';
import uuid from 'node-uuid';
import later from 'later';
import * as t from 'constants/ActionTypes';
import { markNotificationSent } from 'actions';
let worker;
let applicationStore; // save redux store reference
export function initDeviceID() {
let deviceID = store.get('device_id');
if ... | ComicsReader/reader | src/utils/index.js | JavaScript | mit | 2,227 |
define({group:".",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"∞",minusSign:"-",decimal:",",superscriptingExponent:"×",nan:"NaN",perMille:"‰",decimalFormat:"#,##0.###",currencyFormat:"¤#,##0.00",plusSign:"+","decimalFormat-long":"000 triliun","decimalFormat-short":"00... | cdnjs/cdnjs | ajax/libs/dojo/1.16.2/cldr/nls/id/number.min.js | JavaScript | mit | 334 |
/**
* Likes.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
attributes: {
feed: {
model: 'feeds',
},
use... | mlapierre/Winds | api/models/Likes.js | JavaScript | mit | 373 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PlayArrow = props =>
<SvgIcon {...props}>
<path d="M8 5v14l11-7z" />
</SvgIcon>;
PlayArrow = pure(PlayArrow);
PlayArrow.muiName = 'SvgIcon';
export default PlayArrow;
| AndriusBil/material-ui | packages/material-ui-icons/src/PlayArrow.js | JavaScript | mit | 287 |
var assert = require('assert');
var expect = require('expect');
var React = require('react/addons');
var ReactTestUtils = React.addons.TestUtils;
var DefaultRoute = require('../DefaultRoute');
var Routes = require('../Routes');
var Route = require('../Route');
var NullHandler = React.createClass({
render: function (... | appsforartists/react-router | modules/components/__tests__/DefaultRoute-test.js | JavaScript | mit | 2,629 |
const _ = require('lodash');
const localUtils = require('../../../index');
const tag = (attrs, frame) => {
if (localUtils.isContentAPI(frame)) {
const contentAttrs = _.pick(attrs, [
'description',
'feature_image',
'id',
'meta_description',
'meta_t... | JohnONolan/Ghost | core/server/api/v2/utils/serializers/output/utils/clean.js | JavaScript | mit | 4,486 |
import actionBuilder from './action-builder';
import loadAction from './load-action';
export {
actionBuilder,
loadAction
}
export default {
actionBuilder,
loadAction
} | KleeGroup/focus-core | src/list/index.js | JavaScript | mit | 185 |
module.exports={A:{A:{"1":"B A","2":"J C G E TB"},B:{"1":"D X g H L"},C:{"1":"1 2 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r","2":"3 RB PB OB"},D:{"1":"1 2 7 9 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r... | asrar7787/Test-Frontools | node_modules/caniuse-lite/data/features/input-placeholder.js | JavaScript | mit | 782 |
/*
* pkgcloud.js: Top-level include for the pkgcloud module
*
* (C) 2011 Nodejitsu Inc.
*
*/
var path = require('path');
var pkgcloud = exports;
pkgcloud.version = require('../package.json').version;
var components = [
'./pkgcloud/core/base',
'./pkgcloud/common',
'./pkgcloud/core/compute',
'./pkgcloud/... | soltrinox/vator-api-serv | node_modules/loopback-component-storage/node_modules/pkgcloud/lib/pkgcloud.js | JavaScript | mit | 2,053 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/dom'), require('@angular/forms')) :
typeof define === 'function' && define.amd ? define('primeng/keyfilter', ['exports', '@angular/... | cdnjs/cdnjs | ajax/libs/primeng/12.1.0/bundles/primeng-keyfilter.umd.js | JavaScript | mit | 25,275 |
/* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */
import * as React from 'react';
import PropTypes from 'prop-types';
import { exactProp, elementAcceptingRef } from '@material-ui/utils';
import ownerDocument from '../utils/ownerDocument';
import useForkRef... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.8/esm/Unstable_TrapFocus/Unstable_TrapFocus.js | JavaScript | mit | 9,486 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('echarts/lib/echarts'), require('echarts/lib/component/tooltip'), require('echarts/lib/component/legend'), require('echarts/lib/chart/pie')) :
typeof define === 'function' && define.amd ? de... | cdnjs/cdnjs | ajax/libs/v-charts/1.17.5/pie.js | JavaScript | mit | 33,559 |
/**
* This is the main class that encapsulates every object on the chart.
*
* If it's an element that is to be displayed on the screen at some point, its
* class must extend [[Sprite]] class.
*/
import { __extends, __values } from "tslib";
/**
* ============================================================... | cdnjs/cdnjs | ajax/libs/amcharts4/4.9.33/.internal/core/Sprite.js | JavaScript | mit | 310,852 |
/*
Product Name: dhtmlxGrid
Version: 5.1.0
Edition: Standard
License: content of this file is covered by DHTMLX Commercial or enterpri. Usage outside GPL terms is prohibited. To obtain Commercial or Enterprise license contact sales@dhtmlx.com
Copyright UAB Dinamenta http://www.dhtmlx.com
*/
/**
* @desc: skined chec... | dongnan-cn/electron-pm | release-builds/AKKA Project Management Tool-win32-ia32/resources/app.asar.unpacked/lib/dhtmlxGrid/sources/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_acheck.js | JavaScript | cc0-1.0 | 3,040 |
/**
* @file
* getlocations_views.js
* @author Bob Hutchinson http://drupal.org/user/52366
* @copyright GNU GPL
*
* Javascript functions for getlocations module in views using custom-content in infobubble/infowindow
* jquery stuff
*/
(function ($) {
Drupal.behaviors.getlocations_views = {
attach: function... | Mhassan73/ARHA | sites/all/modules/getlocations/js/getlocations_views.js | JavaScript | gpl-2.0 | 15,396 |
/**
* The TICKETS shortcode GUTENBERG block
*/
( function() {
var el = wp.element.createElement,
registerBlockType = wp.blocks.registerBlockType,
blockStyle = { backgroundColor: '#fff', color: '#000', padding: '20px' };
blockStyleSave = { } ;
var __ = wp.i18n.__; // The __() for internationalization.
/*... | ThemeAvenue/Awesome-Support | includes/admin/gutenberg/blocks/my-tickets/my-tickets-block.js | JavaScript | gpl-2.0 | 1,191 |
/*
* Copyright (c) 2012-2014 CoNWeT Lab., Universidad Politécnica de Madrid
*
* This file is part of Wirecloud Platform.
*
* Wirecloud Platform 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 Soft... | sixuanwang/SAMSaaS | wirecloud-develop/src/wirecloud/platform/static/js/wirecloud/Widget/PreferencesWindowMenu.js | JavaScript | gpl-2.0 | 3,574 |
jQuery(document).ready(function($) {
$('.cc-gallery-thumb-link').on( 'click', function( event ) {
event.preventDefault();
var ref = $(this).attr('data-ref');
$('.cc-gallery-full-image').hide();
$('#' + ref).show();
});
});
| trvinhlong/tanks | wp-content/plugins/cart66-cloud/resources/js/gallery-toggle.js | JavaScript | gpl-2.0 | 265 |
define(
({
placeholder: "Local de introdução de texto",
url: "Geocoder URL",
name: "Nome do Geocoder",
example: "Exemplo",
singleLineFieldName: "SingleLineFieldName",
portalConnectionError: 'Não é possível obter a configuração do geocodificador do portal',
actions: "Ações",
warning: ... | johnaagudelo/ofertaquequieres | visor-oferta/widgets/Geocoder/setting/nls/pt-pt/strings.js | JavaScript | gpl-2.0 | 1,584 |
/**
* @file
* Javascript functions for admin form enhancement
*
*/
( function ($) {
Drupal.behaviors.filepicker = {
attach: function(context) {
$("#edit-filepicker-quota-byrole", context).change(function() {
if ($(this).attr('checked')) {
$("#wrap-filepicker-quota-role", context).show... | varunarora/OpenCurriculum | sites/all/modules/filepicker/filepicker.js | JavaScript | gpl-2.0 | 1,286 |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnl... | pulibrary/recap | core/modules/ckeditor5/js/ckeditor5.js | JavaScript | gpl-2.0 | 15,452 |
/** @format */
/**
* External dependencies
*/
import { isFunction, isObject } from 'lodash';
/**
* Dispatch an action or function with additional properties.
*
* If the action is an object, it adds props as properties to the action.
* If the action is a function, it passes them to the function in the form
* o... | Automattic/woocommerce-connect-client | client/extensions/woocommerce/state/helpers.js | JavaScript | gpl-2.0 | 1,122 |
Herokit.init.app(); //Init Herokit app with default
| herokit/herokit-faq-demo | client/lib/app.js | JavaScript | gpl-2.0 | 52 |
/*
* (C) Copyright ${year} Nuxeo SA (http://nuxeo.com/) and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/... | zhangzuoqiang/GoodHuddle | src/main/resources/static/admin/lib/angular-1.2.22/i18n/angular-locale_ms-my.js | JavaScript | gpl-2.0 | 2,460 |
/** @format */
/**
* External dependencies
*/
import { get, isObject } from 'lodash';
/**
* Internal dependencies
*/
import { getSelectedSiteId } from 'state/ui/selectors';
import { LOADING } from 'woocommerce/state/constants';
const getShippingMethodSchemas = ( state, siteId = getSelectedSiteId( state ) ) => {
... | Automattic/woocommerce-connect-client | client/extensions/woocommerce/woocommerce-services/state/shipping-method-schemas/selectors.js | JavaScript | gpl-2.0 | 2,015 |
var net = require('net'),
log4jsAppender = require('../index');
module.exports = {
setUp: function (callback) {
"use strict";
var self = this;
this.config = {
"category": "TEST",
"type": "log4js-logstash",
"host": "localhost",
"port": 5959... | mercury2269/log4js-logstash | tests/test.js | JavaScript | gpl-2.0 | 2,432 |
( function( $ ){
if ( $( '.home' ).length ) {
var nav_icon = $( '<div id="nav-icon" />' );
nav_icon.html( '<a class="scroll" data-speed="1000" href="#main"><span class="dashicons dashicons-arrow-down-alt2"></span></a>' );
$( '#masthead' ).append( nav_icon );
$( 'a.scroll' ).click( function() {
var speed = ... | miya0001/three | src/three-theme.js | JavaScript | gpl-2.0 | 4,155 |
/**
* modules/iframe/iframe-edit.js
* Frontend code for iframe objects
*
* Copyright Gottfried Haider, Danja Vasiliev 2010.
* This source code is licensed under the GNU General Public License.
* See the file COPYING for more details.
*/
$(document).ready(function() {
//
// menu items
//
var elem = $('<img s... | k0a1a/hotglue2 | modules/iframe/iframe-edit.js | JavaScript | gpl-3.0 | 4,416 |
FullScreenMario.FullScreenMario.settings.maps.library["1-1"] = {
"name": "1-1",
"locations": [
{ "entry": "Plain" },
{ "entry": "PipeVertical" },
{ "area": 1 },
],
"areas": [
{
"setting": "Overworld",
"blockBoundaries": true,
"cre... | foss2016/foss2016.github.io | settings/maps/1-1.js | JavaScript | gpl-3.0 | 8,235 |
SpectralWorkbench.UI.TagForm = Class.extend({
init: function(_graph, callback) {
var tagForm = this;
tagForm.selector = "#tag-form-" + _graph.datum.id;
tagForm.el = $(tagForm.selector);
tagForm.input = tagForm.el.find('input.name');
tagForm.el.bind('submit', function(e){
e.preventDefaul... | alvaro283/spectral-workbench | app/assets/javascripts/spectralworkbench/SpectralWorkbench.UI.TagForm.js | JavaScript | gpl-3.0 | 3,411 |
/*
* Copyright (c) 2010-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | nicklv/neo4js | src/main/javascript/neo4j/services/ConsoleService.js | JavaScript | gpl-3.0 | 1,664 |
/* Config.js
*
* copyright (c) 2010-2022, Christian Mayer and the CometVisu contributers.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your ... | ChristianMayer/CometVisu | source/class/cv/Config.js | JavaScript | gpl-3.0 | 11,450 |
'use strict';
define(['angular', 'angular-mocks', 'gemtc-web/analyses/analyses'], function(angular) {
describe('the analysisController', function() {
var scope;
var analysisResource;
var stateParamsMock;
var modalMock;
beforeEach(angular.mock.module('gemtc.analyses'));
beforeEach(inject(func... | DanielReid/gemtc-web | app/js/analyses/analysisControllerSpec.js | JavaScript | gpl-3.0 | 1,171 |
#!/usr/bin/env node
var path = require('path');
var events = require('events');
var fs = require('fs');
var colors = require('./lib/colors');
var quote = require('shell-quote').quote;
var program = require('commander');
var display = require('./lib/console').Console;
var nf = require('./package.json');
... | eumesmoson/curso | node_modules/foreman/nf.js | JavaScript | gpl-3.0 | 8,151 |
const fs = require('fs');
const path = require('path');
const series = require('run-series');
const tar = require('tar-stream');
const ClientRequest = require('./ClientRequest');
const clientResponseUtil = require('../util/clientResponseUtil');
const clientSettingsMap = require('../../shared/constants/clientSettingsMa... | jfurrow/flood | server/models/client.js | JavaScript | gpl-3.0 | 11,368 |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import TableOptionsModal from 'Components/Table/TableOptions/TableOptionsModal';
import VirtualTableHeader from 'Components/Table/VirtualTableHeader';
im... | Radarr/Radarr | frontend/src/DiscoverMovie/Table/DiscoverMovieHeader.js | JavaScript | gpl-3.0 | 3,767 |
/*
* Copyright (C) 2009 GeoNetwork
*
* This file is part of GeoNetwork
*
* GeoNetwork is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ve... | OpenWIS/openwis | openwis-metadataportal/openwis-portal/src/main/webapp/scripts/map/widgets/PrintAction.js | JavaScript | gpl-3.0 | 3,183 |
'use strict';
import React, {Component} from "react";
import PropTypes from "prop-types";
import {withTranslation} from '../../lib/i18n';
import {LinkButton, requiresAuthenticatedUser, Title, Toolbar, withPageHelpers} from "../../lib/page";
import {
ButtonRow,
Dropdown,
filterData,
Form,
FormSendMe... | Mailtrain-org/mailtrain | client/src/lists/segments/CUD.js | JavaScript | gpl-3.0 | 15,014 |
describe("Ajax", function(){
var Users;
var Groups;
var users;
var groups;
beforeEach(function(){
Users = Spine.Controller.sub();
Groups = Spine.Controller.sub();
users = new Users;
groups = new Groups;
});
it("should toggle active class", function(){
new Spine.Manager(users... | aptivate/pyquip | pyquip/static/js/jquip/test/spine/specs/manager.js | JavaScript | gpl-3.0 | 2,121 |
/**
* Copyright (c) 2016-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import reducer from '../messagesReducer';
test('reducers/messages add message', () => {
let nextState = reducer([], {
type: 'ADD_MESS... | netliferesearch/ndla-frontend | src/containers/Messages/__tests__/messagesReducer-test.js | JavaScript | gpl-3.0 | 2,643 |
import {Repetir, Si, Sino, Hasta, Procedimiento} from 'pilas-engine-bloques/actividades/bloques';
import {ParaLaDerecha, ParaLaIzquierda,ParaArriba, ParaAbajo, MoverA} from 'pilas-engine-bloques/actividades/direccionesCuadricula';
import {EncenderLuz, TocandoLuz} from 'pilas-engine-bloques/actividades/bloquesTito';
imp... | bit0Ar/pilas-bloques | releases/pilas-engine-bloques-linux-ia32/resources/app/app/actividades/actividadTitoCuadrado.js | JavaScript | gpl-3.0 | 1,092 |
/**
* Axis
*
* This file is part of Axis.
*
* Axis is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Axis is distributed in... | rguedes/axiscommerce | js/axis/admin/community/catalog_index/tabs/review.js | JavaScript | gpl-3.0 | 4,347 |
import CursoAlumnoRoute from './curso-alumno';
export default CursoAlumnoRoute.extend({
afterModel(model, transition) {
this._super(model, transition);
return this.get("cursoAPI").obtener_solucion_xml_desde_hash(model.hash).
then((solucion_xml) => {
model.set("solucion", btoa(solucion_xml));
... | bit0Ar/pilas-bloques | releases/pilas-engine-bloques-linux-ia32/resources/app/app/routes/desafios/curso-docente.js | JavaScript | gpl-3.0 | 339 |
import { assert } from 'chai';
import parsers from './parsers';
import * as testconfig from './testconfig';
if (testconfig.modules['moduleES6'])
{
parsers.forEach((parser) =>
{
suite(`(${parser.name}): module (ES6):`, () =>
{
suite('Functions', () =>
{
s... | typhonjs-node-escomplex/escomplex-core | test/src/moduleES6.js | JavaScript | mpl-2.0 | 581,816 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.path.arcTo.shape.curve1
// Description:arcTo() curves in the right kind of shape
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("arcT... | larsbergstrom/servo | tests/wpt/web-platform-tests/offscreen-canvas/path-objects/2d.path.arcTo.shape.curve1.worker.js | JavaScript | mpl-2.0 | 1,986 |
/**
* Minds::mobile
* Push notification handler
*
* @author Mark Harding
*/
define(['angular'], function(angular) {
"use strict";
var factory = function(storage, Client, $ionicPlatform) {
var listeners = [];
var trigger = function(event, data) {
for (var i=0; i < listeners.length; i++) {
if (lis... | markharding/minds-mobile | www/js/services/push.js | JavaScript | agpl-3.0 | 4,398 |
import {Model} from 'models/base';
import log from 'logger';
export default class Reuse extends Model {
/**
* Fetch a reuse given its identifier, either an ID or a slug.
* @param {String} ident The reuse identifier to fetch.
* @return {Dataset} The current object itself.
*/
fetch(ide... | opendatateam/udata | js/models/reuse.js | JavaScript | agpl-3.0 | 1,177 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
// License: GNU General Public License v3. See license.txt
// render
wn.listview_settings['Sales Invoice'] = {
add_fields: ["`tabSales Invoice`.grand_total", "`tabSales Invoice`.outstanding_amount"],
add_columns: [{"content":"Percent Paid", width:"10%", type:"b... | Yellowen/Owrang | accounts/doctype/sales_invoice/sales_invoice_list.js | JavaScript | agpl-3.0 | 548 |
/* global Backbone, Handlebars, OC, _ */
(function (OC, Handlebars, $, _) {
'use strict';
OC.Settings = OC.Settings || {};
OC.Settings.TwoFactorBackupCodes = OC.Settings.TwoFactorBackupCodes || {};
var TEMPLATE = '<div>'
+ '{{#unless enabled}}'
+ '<button id="generate-backup-codes">' + t('twofactor_backupcod... | jbicha/server | apps/twofactor_backupcodes/js/settingsview.js | JavaScript | agpl-3.0 | 3,918 |
angular.module('talon.sys-admin')
.config(function config($stateProvider) {
$stateProvider
.state('sys-admin.actions', {
url: '/actions',
template: "<div ui-view></div>",
abstract: true,
data: {
settings: {
entityManager: 'adminEntityManager',
... | reyrodrigues/TalonSMS | TalonAdmin/Angular/src/app/sys-admin/action/action.js | JavaScript | agpl-3.0 | 1,365 |
/*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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
Lic... | kuali/research-coi | newclient/scripts/components/user/disclosure/index.js | JavaScript | agpl-3.0 | 12,532 |
/*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/context_cards/GraphQLStudentContextTray.js | JavaScript | agpl-3.0 | 3,302 |
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "... | cBioPortal/mutation-mapper | src/js/view/MutationDetailsView.js | JavaScript | lgpl-3.0 | 7,999 |
var inspect = require('eyes').inspector();
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var sesService = awssum.load('amazon/ses');
var env = process.env;
var accessKeyId = process.env.ACCESS_KEY_ID;
var secretAccessKey = process.env.SECRET_ACCESS_KEY;
var awsAccountId = process.env.AWS_A... | robintibor/rizzoma | node_modules/awssum/examples/amazon/ses/get-send-statistics.js | JavaScript | apache-2.0 | 839 |
require('../lib/node_loader');
var AWS = require('../lib/core');
var Service = AWS.Service;
var apiLoader = AWS.apiLoader;
apiLoader.services['rbin'] = {};
AWS.Rbin = Service.defineService('rbin', ['2021-06-15']);
Object.defineProperty(apiLoader.services['rbin'], '2021-06-15', {
get: function get() {
var model =... | GlideMe/aws-sdk-js | clients/rbin.js | JavaScript | apache-2.0 | 548 |
// Copyright 2012 The Obvious Corporation.
/*
* Daemon Sauce: Just sprinkle it on your Node program, to make it a proper
* *nix daemon.
*
* This assumes that the original script gets called with at least one
* option of the form --daemon=<mode>, where mode is one of "parent"
* "child" or "foreground". When runni... | TribeMedia/daemonsauce | lib/index.js | JavaScript | apache-2.0 | 16,006 |
var pbclient = require('libprofitbricks')
var prompt = require('prompt')
var helpers = require('../helpers')
var fs = require('fs')
require('console.table')
exports.process = processDataCenter
function processDataCenter(params) {
switch (params.datacenter) {
case 'list':
pbclien... | StackPointCloud/profitbricks-cli | features/datacenter.js | JavaScript | apache-2.0 | 3,509 |
import Component from '@ember/component';
export default Component.extend({
showBanner: true
});
| CosmicCoder96/open-event-frontend | app/components/orders/event-info.js | JavaScript | apache-2.0 | 100 |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... | namgk/node-red | packages/node_modules/@node-red/registry/lib/installer.js | JavaScript | apache-2.0 | 22,085 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | sekikn/ambari | ambari-admin/src/main/resources/ui/admin-web/test/unit/services/Pagination_test.js | JavaScript | apache-2.0 | 2,218 |
/**
* Created by Oleg Ivanov on 1/30/2018.
*/
var _transresitemcodes = [];
//var _transresitemcodesRun = false;
function transresUpdateInvoiceStatus(invoiceId,status) {
//console.log("transresUpdateInvoice: invoiceId="+invoiceId);
$("#modal-invoice-error-"+invoiceId).hide();
$("#modal-invoice-error-"+i... | victorbrodsky/order-lab | orderflex/public/orderassets/AppTranslationalResearchBundle/form/js/invoice.js | JavaScript | apache-2.0 | 36,481 |
var graphic = require("../../util/graphic");
var zrUtil = require("zrender/lib/core/util");
var ChartView = require("../../view/Chart");
/**
* Piece of pie including Sector, Label, LabelLine
* @constructor
* @extends {module:zrender/graphic/Group}
*/
function FunnelPiece(data, idx) {
graphic.Group.call(this);
... | falost/falost.github.io | static/libs/echarts/lib/chart/funnel/FunnelView.js | JavaScript | apache-2.0 | 5,067 |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... | mw75/node-red | packages/node_modules/@node-red/registry/lib/library.js | JavaScript | apache-2.0 | 2,865 |
define(
({
builder: {
layouts: {
tabTitle: "Sekmeli",
tabDescr: "Açıklama metni için isteğe bağlı paneli olan sekmeleri kullanarak harita ve diğer içeriği sunun.",
tabItem: "Sekme",
tabItems: "Sekmeler",
sideTitle: "Yana Doğru Genişleyen",
sideDescr: "Açıklama metni içeren genişletilebil... | totakoko/map-series-storytelling-template-js | src/resources/tpl/builder/nls/tr/template.js | JavaScript | apache-2.0 | 7,720 |
Scalr.regPage('Scalr.ui.farms.roles.extendedinfo', function (loadParams, moduleParams) {
return Ext.create('Ext.form.Panel', {
title: 'Farms » ' + moduleParams['farmName'] + ' » ' + moduleParams['roleName'] + ' » Extended information',
scalrOptions: {
'modal': true
},
width: 900,
tools: ... | kikov79/scalr | app/www/ui2/js/ui/farms/roles/extendedinfo.js | JavaScript | apache-2.0 | 549 |
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
const fse = require('fs-extra');
describe('JHipster generator export jdl', () => {
describe('exports entities to a JDL file without argument', () => {
before(done => {
helpers
... | danielpetisme/generator-jhipster | test/export-jdl.spec.js | JavaScript | apache-2.0 | 1,218 |
var PointerPath = require("./PointerPath");
var graphic = require("../../util/graphic");
var ChartView = require("../../view/Chart");
var _number = require("../../util/number");
var parsePercent = _number.parsePercent;
var round = _number.round;
var linearMap = _number.linearMap;
function parsePosition(seriesModel... | falost/falost.github.io | static/libs/echarts/lib/chart/gauge/GaugeView.js | JavaScript | apache-2.0 | 11,250 |
/*
* LoginWindow.js is the simple login form for the app. If a user and pass does not exist in
* ACS, then a new account is automatically created using those credentials.
*/
function LoginWindow() {
var todo = require('todo');
var self = Ti.UI.createWindow({
backgroundColor:'#fff',
layout:'vertical',
title:'... | appcelerator-developer-relations/TodoListACS | Resources/ui/LoginWindow.js | JavaScript | apache-2.0 | 1,639 |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
main: {
src: 'src/content/assets/js/<%= pkg.name %>.js',
dest: 'src/content/assets/js/<%= pkg.name %>.min.js'
... | g3r4/g3r4.github.io | Gruntfile.js | JavaScript | apache-2.0 | 2,387 |
/*global define*/
define([
'../ThirdParty/when',
'./Check',
'./defined',
'./DeveloperError',
'./loadImage'
], function(
when,
Check,
defined,
DeveloperError,
loadImage) {
'use strict';
/**
* @private
*/
function l... | esraerik/cesium | Source/Core/loadImageFromTypedArray.js | JavaScript | apache-2.0 | 1,023 |
/*
* Copyright 2018 Red Hat 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 to... | EnMasseProject/enmasse | agent/test/podgroup.js | JavaScript | apache-2.0 | 2,093 |
var searchData=
[
['todatatype',['toDataType',['../class_p_c_a.html#a9ff798cd56fc9376da243a4f65980077',1,'PCA']]]
];
| InScience/DAMIS | Docs/html/search/functions_74.js | JavaScript | apache-2.0 | 119 |
var Acceleration = require('cordova/plugin/Acceleration');
module.exports = {
getAcceleration: function(successCallback, errorCallback, options) {
var success = function(acceleration) {
console.log("Accelermometer:getAcceleration:success");
var accel = new Acceleration(acceleration.... | modulexcite/incubator-cordova-js | lib/bada/plugin/bada/Accelerometer.js | JavaScript | apache-2.0 | 1,458 |
/**
* Copyright 2016 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 to... | chihuahua/beautiful-audio-editor | src/js/original/action/zoom/zoom-to-default-action.js | JavaScript | apache-2.0 | 2,182 |
import * as utils from '../src/utils'
import { Renderer } from '../src/Renderer'
import { registerBidder } from '../src/adapters/bidderFactory'
import { VIDEO } from '../src/mediaTypes'
function configureUniversalTag (exchangeRenderer) {
if (!exchangeRenderer.config) throw new Error('UnrulyBidAdapter: Missing render... | olafbuitelaar/Prebid.js | modules/unrulyBidAdapter.js | JavaScript | apache-2.0 | 4,248 |
#!/usr/bin/env node
var root = process.env.AZK_ROOT_PATH;
var fs = require('fs');
var version = require(root + '/package.json').version;
require('source-map-support').install({
retrieveSourceMap: function(source) {
var map_file = source + '.map';
if (fs.existsSync(map_file)) {
var map = JSON.p... | saitodisse/azk-travis-test | bin/azk.js | JavaScript | apache-2.0 | 863 |
if (!window.emp3) {
emp3 = {};
}
if (!window.emp3.api) {
emp3.api = {};
}
if (!window.emp3.api.events) {
emp3.api.events = {};
}
/**
* @class
* @classdesc Generated when the user interacts with a {@link emp3.api.Map}.
* @extends emp3.api.events.UserInteractionEvent
*
* @param {Object} args - Parameters are p... | missioncommand/emp3-web | src/sdk/api/events/emp3.api.events.MapUserInteractionEvent.js | JavaScript | apache-2.0 | 3,045 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... | 100star/echarts | src/visual/visualSolution.js | JavaScript | apache-2.0 | 7,109 |
(function(){module.exports = balanced;
function balanced(a, b, str) {
var r = range(a, b, str);
return r && {
start: r[0],
end: r[1],
pre: str.slice(0, r[0]),
body: str.slice(r[0] + a.length, r[1]),
post: str.slice(r[1] + b.length)
};
}
balanced.range = range;
function range(a, b, str) {
v... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js | JavaScript | apache-2.0 | 1,008 |
$(document).ready(function(){
//$("#tableClass tr").height(40);
$.formValidator.initConfig({formID:"form1",theme:"ArrowSolidBox",submitOnce:true,
onError:function(msg,obj,errorlist){
$("#errorlist").empty();
$.map(errorlist,function(msg){
$("#errorlist").append("<li>" + msg + "</li>")
});
alert(msg)... | lz1988/ddglass | Public/Admin/js/advert/advert_add.js | JavaScript | apache-2.0 | 1,662 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.11/esri/copyright.txt for details.
//>>built
define("esri/nls/de/jsapi",{io:{proxyNotSet:"esri.config.defaults.io.proxyUrl wurde nicht festgelegt. Wenn Sie eine Anforderung an einen CORS-aktivierten Server sen... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.11/3.11compact/esri/nls/de/jsapi.js | JavaScript | apache-2.0 | 76,808 |
<script type="text/javascript" src="http://127.0.0.1:3000/socket.io/socket.io.js"></script>
<script type="text/javascript">
(function(window) {
var socket = io('http://127.0.0.1:3000');
var previousConsole = window.console || {};
window.console = {
log:function(msg){
previousConsole.log ... | 28f7638e5aa88893ed84d47ec62977f7/8090c7511d3688bd6ee9b6bd4544c2dc | node_modules/connect-phonegap/res/middleware/consoler.js | JavaScript | apache-2.0 | 963 |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// 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 ap... | directorlive/oppia | extensions/rich_text_components/Image/Image.js | JavaScript | apache-2.0 | 1,610 |