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
/** * File: app/pancity/ui/PanCityLog.js * Author: liusha */ Ext.define('zhwh.pancity.ui.PanCityLog', { extend: 'Ext.panel.Panel', id: 'PanCityLog', layout: { type: 'border' }, closable: true, iconCls: 'service_tabs', title: '平安城市维护日志', initComponent: function() { ...
flowsha/zhwh
web_root/app/static/app/pancity/ui/PanCityLog.js
JavaScript
apache-2.0
7,235
import { shallow } from 'enzyme'; import React from 'react'; import { ApiError, InternalError, RequestError } from 'redux-api-middleware'; import Error from '../../src/components/Error.jsx'; function setup(error) { return shallow(<Error error={error} />) } describe('Error', () => { it('should render generic erro...
maniksurtani/qs
admin/public/__tests__/components/Error-test.js
JavaScript
apache-2.0
1,708
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
cloudera/hue
apps/security/src/security/static/security/js/sentry.ko.js
JavaScript
apache-2.0
48,227
/** * Created by Armin on 25.05.2017. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd"...
moru1012/IWIBot
Gruntfile.js
JavaScript
apache-2.0
2,605
// Makes a menu out of the element on which it's called. // Options can be passed to this function aswell. // Animate (default - true): A boolean that indicates wether the menu should be displayed using an animation; // AnimateDirection (default - up): When animate is enabled, thi...
AppManics/OfficeUI.OLD
Resources/Scripts/Plugins/Menu/OfficeUI.Menu.js
JavaScript
apache-2.0
7,019
/* * Copyright (C) 2008 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 ...
Primosbookkeeping/gxp
javascript/src/gxp/js/javascript-closure.js
JavaScript
apache-2.0
986
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pr...
yoyocms/YoYoCms.AbpProjectTemplate
src/YoYoCms.AbpProjectTemplate.Web/Scripts/i18n/angular-locale_sw-tz.js
JavaScript
apache-2.0
2,748
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pr...
yoyocms/YoYoCms.AbpProjectTemplate
src/YoYoCms.AbpProjectTemplate.Web/Scripts/i18n/angular-locale_wae.js
JavaScript
apache-2.0
2,928
/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview The interface for an AST node location. */ 'use strict'; /** * The interface for an AST node location. * @namespace Blockly.IASTNodeLocation */ goog.module('Blockly.IASTNodeLocation'); /** * An AST node...
rachel-fenichel/blockly
core/interfaces/i_ast_node_location.js
JavaScript
apache-2.0
480
function RegisterServiceTO() { this.id; this.cehrtLabel; this.organizationName; this.directEmailAddress; this.pointOfContact; this.pocFirstName; this.pocLastName; this.timezone; this.directTrustMembership; this.availFromDate; this.availToDate; this.userEmailAddress; this.notes; }
monikadrajer/direct-vendor-tools
site-login/src/main/webapp/js/to/RegisterServiceTO.js
JavaScript
bsd-2-clause
293
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-boolean.prototype.tostring info: | The toString function is not generic, it cannot be transferred to other kinds of objects for use as a method and there is should...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Boolean/prototype/toString/S15.6.4.2_A2_T4.js
JavaScript
bsd-2-clause
1,194
"use strict"; var coefficient_table = [ { "p" : 0.10, "co_eff" : 1.22 }, { "p" : 0.05, "co_eff" : 1.36 }, { "p" : 0.025, "co_eff" : 1.48 }, { "p" : 0.01, "co_eff" : 1.63 }, { "p" : 0.005, "co_eff" : 1.73 }, { "p" : 0.001, "co_eff" : 1.95 } ]; // CDFs, not CSFs function ks_test(perc_one, perc_two, len_one,...
logV/snorkel
snorkel/app/client/ks_test.js
JavaScript
bsd-2-clause
2,166
/*! jQuery UI - v1.10.4 - 2016-01-24 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.ta={closeText:"மூடு",prevText:"முன்னையது",nextText:"அடுத்தது",currentText:"இன்று",monthNames:["தை","மாசி","பங்குனி","சித்திரை","வைகாசி","ஆனி","ஆடி","...
glebstar/guides
web/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ta.min.js
JavaScript
bsd-3-clause
1,412
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, LLC * * 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 la...
twosigma/beaker-sharing-server
nbviewer/static/v2/src/outputdisplay/bko-plot/plotconverter.js
JavaScript
bsd-3-clause
11,237
'use strict'; var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default']; exports.__esModule = true; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactLibWarning = require('react/lib/warning'); var _reactLibWarning2 = _interopRequireDefaul...
principle-systems/react-shopping-cart-starter-kit
node_modules/react-bootstrap/lib/factories/Jumbotron.js
JavaScript
bsd-3-clause
722
/* Yes */ import UnityScript.Tests.CSharp; var foo = FooBarEnum.None; foo |= FooBarEnum.Foo; if ((foo & FooBarEnum.Foo) != 0) print ("Yes");
bamboo/unityscript
tests/integration/enum-2.js
JavaScript
bsd-3-clause
143
/* eslint-disable sort-keys */ const http = require('http'); const path = require('path'); const fs = require('fs'); const connect = require('connect'); const optimist = require('optimist'); const reactMiddleware = require('react-page-middleware'); const convert = require('./convert.js'); const translationPre = requir...
mpontus/jest
website/server/server.js
JavaScript
bsd-3-clause
2,260
var colog = require('colog'); module.exports = (function () { 'use strict'; colog.success('\t[\u2714] Auction'); /** * Imports for the Auction model. */ var AuctionSchema = require('./auction-schema'); require('./auction-life-cycle'); require('./auction-model'); return AuctionSchema; })();
Mickael-van-der-Beek/wow-ah
src/database/models/auction/auction.js
JavaScript
bsd-3-clause
308
//= require 'upload_selection' describe("tab selection", function(){ fixture.set("<ul class='nav nav-tabs' role='tablist'>" + "<li role='presentation' class='active'>" + "<a href='#local-file' aria-controls='local-file' role='tab' data-toggle='tab'>Local file</a>" + "</li>" + "<li r...
SynthSys/seek
spec/javascripts/upload_selection_spec.js
JavaScript
bsd-3-clause
1,041
// setup Elm.Native = Elm.Native || {}; Elm.Native.Graphics = Elm.Native.Graphics || {}; Elm.Native.Graphics.Element = Elm.Native.Graphics.Element || {}; // definition Elm.Native.Graphics.Element.make = function(localRuntime) { 'use strict'; // attempt to short-circuit if ('values' in Elm.Native.Graphics...
slava-sh/core
src/Native/Graphics/Element.js
JavaScript
bsd-3-clause
16,290
// Copyright (c) 2014 Readium Foundation and/or its licensees. All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // 1. Redistributions of source code must retain the above copyright notice, ...
cene-co-za/readium-js-viewer
chrome-app/storage/FileSystemStorage.js
JavaScript
bsd-3-clause
10,052
import {NavigationView, Page, contentView} from 'tabris'; new NavigationView({layoutData: 'stretch'}) .append(new Page({title: 'Albums'})) .appendTo(contentView);
eclipsesource/tabris-js
doc/api/Page.js
JavaScript
bsd-3-clause
168
define(['test/mocks/lazo'], function (lazo) { function createView(ctl, id, LazoView, _) { var el; var template = _.template('I am a template!'); el = LAZO.app.isClient ? $('<div class="view-"' + id + '>') : null; return new LazoView({ el: el, templateEngine:...
rodfernandez/lazojs
test/unit/utils.js
JavaScript
mit
2,508
/** * Copyright (c) 2008-2010 The Open Source Geospatial Foundation * * Published under the BSD license. * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text * of the license. */ /** * @requires GeoExt/widgets/tips/SliderTip.js */ /** api: (extends) * GeoExt/widgets/tips/SliderTip.js ...
ksetyadi/Sahana-Eden
static/scripts/gis/GeoExt/lib/GeoExt/widgets/tips/LayerOpacitySliderTip.js
JavaScript
mit
2,088
/* eslint-env mocha */ /* eslint max-nested-callbacks: ["error", 5] */ 'use strict' const chai = require('chai') const dirtyChai = require('dirty-chai') const expect = chai.expect chai.use(require('chai-checkmark')) chai.use(dirtyChai) const sinon = require('sinon') const PeerBook = require('peer-book') const parallel...
diasdavid/node-libp2p-swarm
test/dial-fsm.node.js
JavaScript
mit
12,799
'use strict'; var gulp = require('gulp'); var bump = require('gulp-bump'); var concat = require('gulp-concat'); var filter = require('gulp-filter'); var inject = require('gulp-inject'); var minifyCSS = require('gulp-minify-css'); var minifyHTML = require('gulp-minify-html'); var plumber = require('gulp-plumber'); var ...
uxnivek/angular2-seed
gulpfile.js
JavaScript
mit
9,897
goog.provide('interactionbtngroup'); goog.require('ngeo.DecorateInteraction'); goog.require('ngeo.btngroupDirective'); goog.require('ngeo.mapDirective'); goog.require('ol.FeatureOverlay'); goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.interaction.Draw'); goog.require('ol.layer.Tile'); goog.require(...
gberaudo/ngeo
examples/interactionbtngroup.js
JavaScript
mit
2,434
/* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ /** * CryptoJS core components. */ var CryptoJS = CryptoJS || (function (Math, undefined) { /** * CryptoJS namespace. */ var C = {}; /** ...
GrdMe/GrdMe
Firefox/src/lib/aes.js
JavaScript
mit
74,606
var assert = require('assert'), error = require('../../../lib/error/index'), math = require('../../../index'), string = math.string; describe('string', function() { it('should be \'\' if called with no argument', function() { assert.equal(string(), ''); }); it('should convert a boolean to a str...
jeslopcru/code-refactoring-course
class6/ejercicio/mathjs-solucion/test/function/construction/string.test.js
JavaScript
mit
1,925
/* Our App is an Angular Module */ var gnaWithService = angular.module('gnaWithService', []); /* Creating a new directive for aur app */ gnaWithService.directive('gna', function($interval, gnaService) { return { restrict: 'A', template: ' <div id="gna-container"> ' + ' <div class="btn t...
redradix/Redradix-course-angular-november2015
TEMA4/EJERCICIOS/SERVICIO PROPIO/Solucion Mia/gna.js
JavaScript
mit
1,745
//= require jquery //= require jquery_ujs //= require bootstrap-sprockets $(document).ready(function(){ $('.dropdown-toggle').dropdown(); });
BrilliantChemistry/NotifyOn
spec/dummy/app/assets/javascripts/application.js
JavaScript
mit
145
"use strict"; const releases = new Map(); // keep test data isolated afterEach(() => { releases.clear(); }); const client = { repos: { createRelease: jest.fn((opts) => { releases.set(opts.name, opts); return Promise.resolve(); }), }, }; module.exports.createGitLabClient = jest.fn(() => cli...
kittens/lerna
commands/__mocks__/@lerna/gitlab-client.js
JavaScript
mit
381
import React from 'react'; import { IntlProvider } from 'react-intl'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router-dom'; import { render } from 'react-testing-library'; import ReposList from '../index'; import configureStore from '../../../configureStore'; describe('<ReposList ...
rlagman/raphthelagman
app/components/ReposList/tests/index.test.js
JavaScript
mit
1,804
'use strict'; angular.module('ngDependencyGraph.models', []);
rajexcited/AngularJS-Birbal
vendor/ng-dependency-graph/scripts/models/models.module.js
JavaScript
mit
63
/* globals LivechatVideoCall, Livechat */ // Functions to call on messages of type 'command' this.Commands = { survey: function() { if (!($('body #survey').length)) { Blaze.render(Template.survey, $('body').get(0)); } }, endCall: function() { LivechatVideoCall.finish(); }, promptTranscript: function() {...
fazilou/chat
packages/rocketchat-livechat/app/client/lib/commands.js
JavaScript
mit
1,594
AlmReport.Item = DS.Model.extend({ doi: DS.attr('string'), title: DS.attr('string'), journal: DS.attr('string'), publisher_id: DS.attr('number'), issued: DS.attr(), published: function () { var parts = this.get('issued')['date-parts'][0] if(parts[1]) { parts[1] = parts[1] - 1; } return...
mfenner/alm-report
app/assets/javascripts/models/item.js
JavaScript
mit
832
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication', function($scope, Authentication) { //Watch user login $scope.user = User.get(); $scope.isAuthenticated = Authentication.isAuthenticated(); $rootScope.$on('Auth',function(){ $sc...
buildproto/sean-fixups
public/modules/core/controllers/home.client.controller.js
JavaScript
mit
519
module.exports = { plugins: [ require('postcss-import'), require('autoprefixer'), require('postcss-css-variables'), require('postcss-color-mod-function'), require('cssnano'), require('postcss-custom-properties') ] };
EdwardStudy/myghostblog
versions/2.16.4/core/server/lib/members/static/auth/postcss.config.js
JavaScript
mit
273
const precedence = { ':link': 4, ':visited': 3, ':hover': 2, ':focus': 1.5, ':active': 1 } export default function sortPseudoClasses(left, right) { const precedenceLeft = precedence[left]; // eslint-disable-line const precedenceRight = precedence[right] // Only sort if both properties are listed // T...
rofrischmann/react-look
packages/react-look/modules/utils/sortPseudoClasses.js
JavaScript
mit
476
/* * 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. */ '...
lmazuel/azure-sdk-for-node
lib/services/datafactoryManagement/lib/models/oracleSource.js
JavaScript
mit
2,119
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
shikun2014010800/manga
web/console/node_modules/element-ui/lib/steps.js
JavaScript
mit
6,005
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
danielbrenners/react-synthesizer
node_modules/belle/lib/vendor/react/lib/CSSCore.js
JavaScript
mit
3,627
import React from 'react' import StudentData from './StudentData' class Students extends React.Component { constructor(props){ super(props); this.state = { displayListener: this.props.displayListener, className : this.props.className, }; } render(){ if(this.props.display[0] === ...
absurdSquid/thumbroll
client/desktop/app/components/teacher/classes/students/Students.js
JavaScript
mit
654
version https://git-lfs.github.com/spec/v1 oid sha256:71107fdbe7d8247624add6c7dad911fba362e157c32ad1bd98372c5c86dbd98e size 4009
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.4.1/event-simulate/event-simulate-min.js
JavaScript
mit
129
Package.describe({ summary: "Collection of small helpers: _.map, _.each, ...", version: '1.0.9' }); Package.onUse(function (api) { // Like all packages, we have an implicit depedency on the 'meteor' // package, which provides such things as the *.js file handler. Use // an undocumented API to allow 'meteor' ...
jdivy/meteor
packages/underscore/package.js
JavaScript
mit
1,553
function Tile(position, value) { this.x = position.x; this.y = position.y; this.value = value; this.previousPosition = null; } Tile.prototype.toString = function(){ return "["+this.x+","+this.y+","+this.value+"]"; } Tile.prototype.savePosition = function () { this...
hscaizh/html5chess
js/tile.js
JavaScript
mit
612
// MySQL Schema Compiler // ------- import inherits from 'inherits'; import SchemaCompiler from '../../../schema/compiler'; import { assign } from 'lodash' function SchemaCompiler_MySQL(client, builder) { SchemaCompiler.call(this, client, builder) } inherits(SchemaCompiler_MySQL, SchemaCompiler) assign(SchemaComp...
EdwardStudy/myghostblog
versions/1.25.7/node_modules/knex/src/dialects/mysql/schema/compiler.js
JavaScript
mit
1,345
'use strict'; const assert = require('./../../assert'); const common = require('./../../common'); let battle; describe('Primordial Sea', function () { afterEach(function () { battle.destroy(); }); it('should activate the Primordial Sea weather upon switch-in', function () { battle = common.createBattle(); ...
Zarel/Pokemon-Showdown
test/sim/abilities/primordialsea.js
JavaScript
mit
7,291
'use strict'; // Template for context menu commands var template = [ { label: 'Edit', submenu: [ { label: 'Undo', accelerator: 'CmdOrCtrl+Z', role: 'undo' }, { label: 'Redo', accelerator: 'Shift+CmdOrCtrl+Z', role: 'redo' }, { type: 'separator' }, { label: 'Cut', accelerator: 'CmdOrCtrl+X', role: 'cu...
Mingling94/Sia-UI
js/mainjs/contextMenu.js
JavaScript
mit
2,978
Package.describe({ name: 'rocketchat:livechat', version: '0.0.1', summary: 'Livechat plugin for Rocket.Chat' }); Package.registerBuildPlugin({ name: 'Livechat', use: [], sources: [ 'plugin/build-livechat.js' ], npmDependencies: { 'shelljs': '0.5.1', 'uglify-js': '2.7.5' } }); Npm.depends({ 'ua-parser-...
ealbers/Rocket.Chat
packages/rocketchat-livechat/package.js
JavaScript
mit
10,300
import Component from '@ember/component'; import { computed } from '@ember/object'; import { empty } from '@ember/object/computed'; export default Component.extend({ emptySnippet: empty('snippet'), exampleFrameClass: 'col s12 position-relative', partialName: computed('snippet', { get() { return `snippe...
sgasser/ember-cli-materialize
tests/dummy/app/components/example-snippet.js
JavaScript
mit
577
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;return e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},input...
jpaoletti/java-presentation-manager-2
modules/jpm2-web-bs5/src/main/webapp/static/js/locale/select2/nl.js
JavaScript
mit
867
import Mirage from 'ember-cli-mirage'; export default Mirage.Factory.extend({ id: (i) => (i+1), user: (i) => (i+1), username: (i) => (i+1), });
stopfstedt/frontend
app/mirage/factories/authentication.js
JavaScript
mit
151
/* Tailwind - The Utility-First CSS Framework A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink), David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger). Welcome to the Tailwind config file. This is where you can customize Tailwind specifically for your project. Don't be intimidated by th...
merelinguist/ludolatin
tailwind.js
JavaScript
mit
25,586
/** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, isNumber = Lang.isNumb...
inikoo/fact
libs/yui/yui3/src/datatable/js/body.js
JavaScript
mit
41,858
import React from 'react'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import {matchLibraries} from 'utils/utils'; import {codeFromSchema} from '...
me-box/iot.red
src/client/assets/js/nodes/processors/function/node.js
JavaScript
mit
11,552
import utility from './Utility.js'; /** * @method queryAll * @param {String} expression * @return {Array} */ let queryAll = function queryAll(expression) { "use strict"; expression = Array.isArray(expression) ? expression.join(',') : expression; return utility.toArray(this.querySelectorAll(expression...
SerkanSipahi/Maple.js
src/helpers/Selectors.js
JavaScript
mit
2,254
global.options = { heartbeat: 1 }; require('./harness'); connects = 0; var closed = 0; var hb = setInterval(function() { puts(" -> heartbeat"); connection.heartbeat(); }, 1000); setTimeout(function() { assert.ok(!closed); clearInterval(hb); setTimeout(function() { assert.ok(closed); }, 3000); }, 5000); c...
gotbadger/node-amqp
test/test-heartbeat.js
JavaScript
mit
935
type A = [AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC | DDDDDDDDDDDDDDDDDDDDDD] type B = [ | AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC | DDDDDDDDDDDDDDDDDDDDDD ] type C = [ | [AAAAAAAAAAAAAAAAAAAAAA | BBBBBBBBBBBBBBBBBBBBBB | CCCCCCCCCCCCCCCCCCCCCC...
prettier/prettier
tests/format/flow/union/within-tuple.js
JavaScript
mit
453
// Karma configuration // Generated on Tue Aug 25 2015 19:01:57 GMT-0500 (CDT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
KevinAst/ReduxEvaluation
karma.conf.js
JavaScript
mit
1,933
cordova.define("com.blackberry.ui.dialog.client", function(require, exports, module) { /* 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 thi...
Pushwoosh/pushwoosh-blackberry-sdk
Samples/Blackberry-10-HTML5-Webworks/plugins/com.blackberry.ui.dialog/www/client.js
JavaScript
mit
1,967
define( [ 'jquery', 'jqueryui' ], function( $, jqueryui ) { var FieldConstructor = function() {}; FieldConstructor.prototype.__makeDom = function() { var self = this, dom = $("<div />"), div = $( "<div></div>" ) .addClass( 'field-list' ) .appendTo( dom ), lastVal = [this.field.options.min,...
targos/VisuMol
lib/lib/forms/types/slider/element.js
JavaScript
mit
3,209
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
arumoy-shome/24pullrequests
app/assets/javascripts/application.js
JavaScript
mit
908
/* eslint-env mocha */ import React from 'react'; import Dialog from './Dialog'; import {spy} from 'sinon'; import {mount} from 'enzyme'; import {assert} from 'chai'; import TestUtils from 'react-dom/test-utils'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Dialog />', () => { const muiTheme = getMuiT...
hai-cea/material-ui
src/Dialog/Dialog.spec.js
JavaScript
mit
2,906
'use strict'; var metadataExtract = require('./metadata-extract'); var fs = require('fs'); var Promise = require('bluebird'); var marklogic = require('marklogic'); var path = require('path'); var connection = { host: 'localhost', port: 8010, user: 'admin', password: 'admin' }; var db = marklogic.createDataba...
katsur0/ml8demo
webapp/import/import.js
JavaScript
mit
4,444
/** * [IL] * Library Import */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /** * [IV] * View Import */ import Mobile from './Views/Mobile'; import Desktop from './Views/Desktop'; /** * [IBP] * Breakpoints */ import BP from 'lib/breakpoi...
LifeSourceUA/lifesource.ua
src/components/Common/List/Components/Scroll/index.js
JavaScript
mit
1,527
exports.dir = "a/b/c";
marko-js/marko
packages/marko/test/taglib-finder/fixtures/deeply-nested/test.js
JavaScript
mit
23
var AGENDA_ALL_DAY_EVENT_LIMIT = 5; // potential nice values for the slot-duration and interval-duration // from largest to smallest var AGENDA_STOCK_SUB_DURATIONS = [ { hours: 1 }, { minutes: 30 }, { minutes: 15 }, { seconds: 30 }, { seconds: 15 } ]; fcViews.agenda = { 'class': AgendaView, defaults: { allD...
pietervisser/fullcalendar
src/agenda/config.js
JavaScript
mit
581
var tag = "User::"; /** * 用户数据模型 */ angular.module("commons.models").service("User", [ '$q', '$filter', 'UserRest', 'constants', 'AdminRest', 'Security', userCreator ]); function userCreator($q, $filter, UserRest, constants, ...
yliyun-team/yli-cmd
test/app/support/models/user/User.js
JavaScript
mit
5,496
#!/usr/bin/env node 'use strict'; var driver = require('../lib/driver'); var options = require('../lib/options'); driver(process.stdin, options(), function (err) { if (err) { process.nextTick(function () { process.exit(1); }); } }).pipe(process.stdout);
wenjoy/homePage
node_modules/geetest/node_modules/request/node_modules/karma/node_modules/grunt-coffeelint/node_modules/coffeelint-stylish/node_modules/del/node_modules/fs-extra/node_modules/secure-random/node_modules/mochify/node_modules/min-wd/bin/cmd.js
JavaScript
mit
275
const VALUE = '1'; export function fn1 ( value ) { switch ( value ) { case VALUE: return 'correct'; default: return 'not matched'; } }
corneliusweig/rollup
test/function/samples/switch-cases-are-deconflicted/mod1.js
JavaScript
mit
148
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v20.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extend...
extend1994/cdnjs
ajax/libs/ag-grid/20.0.0/lib/headerRendering/header/headerWrapperComp.js
JavaScript
mit
17,045
var _ = require('underscore') , path = require('path') , passport = require('passport') , AuthCtrl = require('./controllers/auth') , UserCtrl = require('./controllers/user') , User = require('./models/User.js') , userRoles = require('../client/js/routingConfig').userRoles ...
edenchen123/front-end-security-POC
server/routes.js
JavaScript
mit
4,182
/* DO NOT MODIFY - This file has been generated and will be regenerated Semantic UI v2.1.5 */ /*! * # Semantic UI - Visibility * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, ...
rubengarciam/dropbox-file-requests-audit
client/lib/semantic-ui/definitions/behaviors/visibility.js
JavaScript
mit
39,412
import { apiRunner, apiRunnerAsync } from "./api-runner-browser" import React from "react" import ReactDOM from "react-dom" import { Router, navigate, Location, BaseContext } from "@gatsbyjs/reach-router" import { ScrollContext } from "gatsby-react-router-scroll" import { StaticQueryContext } from "gatsby" import { s...
gatsbyjs/gatsby
packages/gatsby/cache-dir/production-app.js
JavaScript
mit
9,189
// Returns a random integer between 1 and max function randInt( max ) { return Math.floor( Math.random() * ( max - 1 ) ) + 1; } bot.registerCommand( "roll", function( name, _, _, arg_str, group ) { if ( /(\d+)?d\d+/.test( arg_str ) ) { var match = arg_str.match( /(\d+)?d(\d+)/ ); var num = match[1] ? Math....
SwadicalRag/hash.js
plugins/roll.js
JavaScript
cc0-1.0
842
/* jshint unused: false */ exports.excludeFile = function (file) { // The platform mapping is "not mapped" for the following tests, // and this has not changed during the ARIA + Core AAM 1.1 cycle. if (/aria-autocomplete_both-manual.html/.test(file)) return true; if (/aria-autocomplete_inline-manual.ht...
w3c/test-results
core-aam-1.1/axapi/WK/filter.js
JavaScript
cc0-1.0
1,899
// http://microformat2-node.jit.su/h-review.html { "items": [{ "type": ["h-review"], "properties": { "item": [{ "value": "Crepes on Cole", "type": ["h-item"], "properties": { "photo": ["http://example.com/images/photo....
jeena/microformats2
spec/support/cases/microformat2-node.jit.su/h-review/h-review-4.js
JavaScript
cc0-1.0
519
/* * BEGIN NIGHTINGALE GPL * * This file is part of the Nightingale Media Player. * * Copyright(c) 2013 * http://getnightingale.com * * This file may be licensed under the terms of of the * GNU General Public License Version 2 (the "GPL"). * * Software distributed under the License is distributed * on a...
freaktechnik/nightingale-hacking
extensions/libnotify-notifs/chrome/content/track-metadata.js
JavaScript
gpl-2.0
4,761
var searchData= [ ['false',['FALSE',['../core_8h.html#aa93f0eb578d23995850d61f7d61c55c1',1,'core.h']]] ];
SSS4910/CudaP
www/doc/search/defines_2.js
JavaScript
gpl-2.0
108
jQuery(document).ready(function(){ var flash = [[0, 2], [1, 6], [2,3], [3, 8], [4, 5], [5, 13], [6, 8]]; //for (var i = 0; i < 14; i += 0.5) // flash.push([i, Math.sin(i)]); function showTooltip(x, y, contents) { jQuery('<div id="tooltip" class="tooltipflot">' + contents + '</div>').css( { p...
mentordeveloper/ums
themes/starlight/js/custom/dashboard.js
JavaScript
gpl-2.0
5,608
// Copyright 2014 Todd Fleming // // This file is part of jscut. // // jscut 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. // // j...
jarretluft/bCNC
static/jscut/js/TabsViewModel.js
JavaScript
gpl-2.0
7,252
$(document).ready(function(){ $('#slideshow').cycle({ fx:'fade', pager:'#slideshow_nav', timeout:6000, before:function(currSlideElement, nextSlideElement, options, forwardFlag){ setTimeout ( function(){$(nextSlideElement).find('.slide-text').animate({height:'show'})} , 15...
cumulusclips/cumulusclips
cc-content/themes/default/js/jcycle.js
JavaScript
gpl-2.0
500
(function ($) { /** * Attach the machine-readable name form element behavior. */ Drupal.behaviors.machineName = { /** * Attaches the behavior. * * @param settings.machineName * A list of elements to process, keyed by the HTML ID of the form element * containing the human-readable value. Each ele...
NROER/drupal-intranet
sites/default/files/js/js_KpSoYDDttoYJZ4QA9FeVWWfEWxhNl3ZbCi3QiZkj2us.js
JavaScript
gpl-2.0
17,659
jQuery( document ).ready( function ( $ ) { var xhr; $( '.job_listings' ).on( 'update_results', function ( event, page, append ) { if ( xhr ) { xhr.abort(); } var data = ''; var target = $( this ); var form = target.find( '.job_filters' ); var showing = target.find( '.showing_jobs' ); var results ...
ecreative-studios/cec
wp-content/plugins/wp-job-manager/assets/js/ajax-filters.js
JavaScript
gpl-2.0
4,757
Drupal.settings.spotlight_settings = Drupal.settings.spotlight_settings || {}; (function ($) { /** * Form behavior for Spotlight */ Drupal.behaviors.panopolySpotlight = { attach: function (context, settings) { if ($('.field-name-field-basic-spotlight-items').length) { var rotation_time = Drupal.set...
andikasulis/warkop-performance.older
profiles/panopoly/modules/panopoly/panopoly_widgets/panopoly-widgets.js
JavaScript
gpl-2.0
3,136
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */ (function(d){var a=function(){};d.extend(a.prototype,{name:"accordionMenu",options:{mode:"default",display:null,collapseall:false,toggler:"span.level1.parent",content:"ul.level2"},initialize:function(a,b){var b=d.exte...
rzhamaletdinov/foolsday.ru
wp-content/themes/yoo_bigeasy_wp/warp/js/accordionmenu.js
JavaScript
gpl-2.0
1,526
/** * Copyright (C) 2015 Austin Peterson * * 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 option) any later version. * * This program is ...
feildmaster/AKP48
AKP48/Processors/CommandResponders/googlesearch.js
JavaScript
gpl-3.0
1,920
import React from "react"; import PropTypes from "prop-types"; import CartSubTotals from "../container/cartSubTotalContainer"; import CartItems from "./cartItems"; const cartDrawer = ({ productItems, pdpPath, handleRemoveItem, handleCheckout, handleImage, handleLowInventory, handleShowProduct }) => { return ( <d...
spestushko/reaction
imports/plugins/core/checkout/client/components/cartDrawer.js
JavaScript
gpl-3.0
1,638
/*! * Express - request * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Module dependencies. */ var http = require('http') , utils = require('./utils') , connect = require('connect') , parse = require('url').parse , mime = require('mime'); /** * Request prototype. */ ...
rj45/synphony
node_modules/express/lib/request.js
JavaScript
gpl-3.0
8,979
import {fragmentToQL} from 'relax-framework'; import actionTypes from './types'; import request from '../helpers/request'; import stringifyFields from '../helpers/stringify-fields'; const stringifiableFields = ['properties', 'data']; export function getSchema (fragments, slug) { return (dispatch) => ( request(...
ABaldwinHunter/relax-classic
lib/client/actions/schema.js
JavaScript
gpl-3.0
2,507
"use strict"; tutao.provide('tutao.tutanota.ctrl.MailFolderViewModel'); /** * A mail folder including mails. * @param {tutao.entity.tutanota.MailFolder} mailFolder The persistent mailFolder. * @param {?tutao.tutanota.ctrl.MailFolderViewModel} parentFolder The parent folder. Must be null if this is a system folder....
elninosi/tutanota
web/js/ctrl/MailFolderViewModel.js
JavaScript
gpl-3.0
22,136
// This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle is dis...
Roemke/moodle
lib/form/amd/src/dynamicform.js
JavaScript
gpl-3.0
13,276
/* .prependTo() Description: Insert every element in the set of matched elements to the beginning of the target. http://api.jquery.com/prependTo/ */ prependTo: function(target) { var ret = [], me = this, arr = $(target).e, last = arr.length - 1, elems; __ITERATE__(<@ arr @>, <@ function(t, ...
rosell-dk/picoQuery
0.6/builder/inc/methods/prependTo/prependTo.js
JavaScript
gpl-3.0
493
import 'angular/angular.min' import translation from 'angular-ui-translation/angular-translation' import NumberDirective from './NumberDirective' angular.module('FieldNumber', ['ui.translation']).directive('formNumber', () => new NumberDirective)
ClaroBot/Distribution
main/core/Resources/modules/form/Field/Number/module.js
JavaScript
gpl-3.0
249
odoo.define('base_import.import', function (require) { "use strict"; var ControlPanelMixin = require('web.ControlPanelMixin'); var core = require('web.core'); var time = require('web.time'); var ListView = require('web.ListView'); var KanbanView = require('web_kanban.KanbanView'); var Model = require('web.DataModel');...
chienlieu2017/it_management
odoo/addons/base_import/static/src/js/base_import.js
JavaScript
gpl-3.0
25,954
var ControlBaseItemView = require( 'elementor-views/controls/base' ), ControlWPWidgetItemView; ControlWPWidgetItemView = ControlBaseItemView.extend( { ui: function() { var ui = ControlBaseItemView.prototype.ui.apply( this, arguments ); ui.form = 'form'; ui.loading = '.wp-widget-form-loading'; return ui; }...
cobicarmel/elementor
assets/dev/js/editor/views/controls/wp_widget.js
JavaScript
gpl-3.0
969
initSidebarItems({"mod":[["mem","Basic functions for dealing with memory."],["raw","Raw OS-specific types for the current platform/architecture"]],"trait":[["Send","Types that can be transferred across thread boundaries."]]});
servo/doc.servo.org
glutin/api/x11/ffi/glx_extra/__gl_imports/sidebar-items.js
JavaScript
mpl-2.0
226
/** * Within tags -- meaning between < and > -- encode [\ ` * _ ~ =] so they * don't conflict with their use in Markdown for code, italics and strong. */ showdown.subParser('escapeSpecialCharsWithinTagAttributes', function (text, options, globals) { 'use strict'; text = globals.converter._dispatch('escapeSpecial...
mapcentia/vidi
bower_components/showdown/src/subParsers/escapeSpecialCharsWithinTagAttributes.js
JavaScript
agpl-3.0
1,030
const redis = require('redis') const client = redis.createClient(process.env.REDIS_URL) module.exports = client
ben-pr-p/assemble
server/redis/client.js
JavaScript
agpl-3.0
112