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 React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var ImageWbCloudy = React.createClass({ displayName: 'ImageWbCloudy', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M19.3...
jotamaggi/react-calendar-app
node_modules/react-material-icons/icons/image/wb-cloudy.js
JavaScript
mit
520
'use strict'; /** * Evaluate a compiled template for use on the server * @private * @param {string} code - Compiled JS code * @returns {function} */ function evaluate(code) { const context = { module: { exports: {}, }, }; // eslint-disable-next-line no-new-func const renderFunction = new Fu...
psychobunny/templates.js
lib/evaluate.js
JavaScript
mit
472
aleph.factory('Query', ['$route', '$location', function($route, $location) { var query = {}; var mode = function() { if ($route.current) { var ctrl = $route.current.$$route.controller; if (ctrl == 'SearchExportCtrl') return 'export'; if (ctrl == 'SearchTableCtrl') return 'table'; if (c...
nightsh/aleph
aleph/static/js/search/query.js
JavaScript
mit
2,443
var signinLink = document.getElementById('signin'); var currentUser = null; if (signinLink) { signinLink.onclick = function() { navigator.id.request(); }; } if(navigator.id) { navigator.id.watch({ loggedInUser: currentUser, onlogin: function(assertion) { $.post( '/login', { ass...
vladikoff/tincan
public/js/login.js
JavaScript
mit
642
// Styles the moderation table once the DOM loads for easy viewing of what needs to be approved window.onload = function () { var elements = $('[name^=form-][name$=-status]'); $.each(elements, function (index, element) { element = $(element); switch (element.children('option[selected=selected]').val()) { case ...
aspc/mainsite
static/js/admin/event_change_list.js
JavaScript
mit
539
import DS from 'ember-data'; import Ember from 'ember'; export default DS.Model.extend({ name : DS.attr('string'), task : DS.belongsTo('task'), displayName : Ember.computed('name', function() { return this.get('name'); }) });
ssendev/ember-aupac-typeahead
tests/dummy/app/models/sub-task.js
JavaScript
mit
239
define(['./main'], function(controller) { 'use strict'; var footerController = [ '$scope', 'AuthorizationService', function($scope, AuthorizationService) { $scope.loggedIn = !!AuthorizationService.accountId(); $scope.$watch(AuthorizationService.accountId, function(valu...
agjacome/smart-drug-search
src/main/assets/js/controller/footerController.js
JavaScript
mit
473
'use strict'; var should = require('should'), request = require('request'), expect = require('chai').expect, config = require('./../../../config/config'); var CorrectStatus, wrongStatus; describe('Are API routes authentication protected:', function() { before(function(done) { done(); }); ...
twistedSynapse/twitterStore
server/tests/routes/authorizedRoutes.js
JavaScript
mit
704
module.exports = { cmd: 'echo', args: [ 'doughnut' ], name: 'from js', sh: true, functionMatch: function (terminal_output) { return [ { file: '.atom-build.js', line: '5', type: 'Warning', html_message: 'mildly <b>bad</b> things', } ]; } };
noseglid/atom-build
spec/fixture/.atom-build.match-function-html.js
JavaScript
mit
304
$(function() { var menuItem = $('#left-sidebar-menu-calendar'); menuItem.addClass('active'); });
rachwal/WebApplication
WebApplication/Scripts/Calendar/Calendar-menu.js
JavaScript
mit
107
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'div', 'mn', { IdInputLabel: 'Id', advisoryTitleInputLabel: 'Зөвлөлдөх гарчиг', cssClassInputLabel: 'Stylesheet классууд', edit: 'Edit Div', // MIS...
SkyNetRU/GreatCMS
assets/vendor/ckeditor/plugins/div/lang/mn.js
JavaScript
mit
832
// Copyright (c) 2010 Barricane Technology Ltd., All Rights Reserved. // Released under the MIT open source licence. // This is the obligatory dumping ground modules for all those bits which don't // fit well elsewhere. // This finds all the objects keys. function ownKeys(o) { var accumulator = []; for (var ...
portertech/tails
node_modules/.npm/barricane-db/0.2.0/package/lib/util.js
JavaScript
mit
1,208
(function() { var Declaration, JustifyContent, flexSpec, _ref, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prot...
sela/quiz
web/sm/node_modules/grunt-autoprefixer/node_modules/autoprefixer/lib/hacks/justify-content.js
JavaScript
mit
2,031
/** * 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...
cdnjs/cdnjs
ajax/libs/ag-grid/20.0.0/lib/headerRendering/header/selectAllFeature.js
JavaScript
mit
9,640
import React, { PropTypes } from 'react'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { DRAWER } from '../identifiers.js'; import ActivableRenderer from '../hoc/ActivableRenderer.js'; import InjectOverlay from '../overlay/Overlay.js'; const factory = (Overlay) => { const Draw...
fonea/velon
themes/frontend/assets/vendor/node_modules/react-toolbox/components/drawer/Drawer.js
JavaScript
gpl-2.0
1,430
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'autoembed', 'ru', { embeddingInProgress: 'Пытаемся встроить вставленный URL...', embeddingFailed: 'Данный URL не может быть встроен автоматически...
jagnoha/website
profiles/varbase/profiles/varbase/libraries/ckeditor/plugins/autoembed/lang/ru.js
JavaScript
gpl-2.0
392
/*************************************************************************** * Copyright 2003-2020 © - Stendhal * *************************************************************************** * * * This pr...
AntumDeluge/arianne-stendhal
srcjs/stendhal/ui/settings.js
JavaScript
gpl-2.0
1,486
var mashTapePreferences = { populateServices: function(providerType) { var box = document.getElementById("services-" + providerType); var enabledKey = "extensions.mashTape." + providerType + ".enabled"; var enabled = Application.prefs.getValue(enabledKey, true); for each (var contract in this.providers[provid...
freaktechnik/nightingale-hacking
extensions/mashTape/chrome/content/prefs.js
JavaScript
gpl-2.0
9,375
/*! * VisualEditor DataModel LanguageAnnotation class. * * @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org */ /** * DataModel language annotation. * * Represents `<span>` tags with 'lang' and 'dir' properties. * * @class * @extends ve.dm.Annotation * @constructor * @param {...
gfabbh/mediawiki
extensions/VisualEditor/lib/ve/src/dm/annotations/ve.dm.LanguageAnnotation.js
JavaScript
gpl-2.0
1,892
/** * @copyright Copyright (C) 2012 Cedric KEIFLIN alias ced1870 * http://www.joomlack.fr * Module Maximenu CK * @license GNU/GPL * */ (function($){ //define the defaults for the plugin and how to call it $.fn.DropdownMaxiMenu = function(options){ //set default options var defaults = { ...
AxelFG/ckbran-inf
old/modules/mod_maximenuck/assets/maximenuck.js
JavaScript
gpl-2.0
18,443
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version...
Debian/openjfx
modules/web/src/main/native/Tools/Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests.js
JavaScript
gpl-2.0
2,688
/** * Javascript file (for Joomla 3.1) * * @package Sourcerer * @version 4.3.3 * * @author Peter van Westen <peter@nonumber.nl> * @link http://www.nonumber.nl * @copyright Copyright © 2014 NoNumber All Rights Reserved * @license http://www.gnu.org/licenses/gpl-...
lowt/projectset
media/sourcerer/js/script.31.js
JavaScript
gpl-2.0
11,683
/*! 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.clip=function(t,i){var s,a,n,r=e(this),o=["position","top","bottom","left","right","height","width"],l=e.effects.setMode(r,t.mode||"hide"),h="show"===l,u=t...
eblipsky/NOW-web
laravel/public/jquery/development-bundle/ui/minified/jquery.ui.effect-clip.min.js
JavaScript
gpl-2.0
733
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License. Syntax.register("go",function(a){a.push(["true","false","iota","nil"],{klass:"constant"});a.push([/u?int\d*/g,/float\d+/g,/complex\d+/g,"byte","uintptr","string"],{klass:"type"});a.push("break default func interface select ca...
savonet/liquidsoap-full
website/orig/assets/js/jquery.syntax/jquery.syntax.brush.go.js
JavaScript
gpl-2.0
1,075
jQuery(function($) { $(".jqCycle:not(.jqInitedCycle)").livequery(function() { var $this = $(this); var opts = $.extend({}, $this.metadata()); $this.addClass(".jqInitedCycle").cycle(opts); }); });
favioflamingo/wiki
static/var/lib/foswiki/pub/System/JQueryPlugin/plugins/cycle/jquery.cycle.init.uncompressed.js
JavaScript
gpl-3.0
212
/* * TODO LIST CUSTOM PLUGIN * ----------------------- * This plugin depends on iCheck plugin for checkbox and radio inputs * * @type plugin * @usage $("#todo-widget").todolist( options ); */ (function($) { $.fn.todolist = function(options) { // Render options var settings = $.extend({ ...
jovanepires/sige
public/lib/js/bootstrap-admin/todo-plugin.js
JavaScript
gpl-3.0
1,391
/*! jQuery UI - v1.11.4 - 2019-02-02 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, draggable.js, droppable.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. ...
ChristianMayer/CometVisu
source/resource/libs/jquery-ui.js
JavaScript
gpl-3.0
74,641
modules['bitcointip'] = { moduleID: 'bitcointip', moduleName: 'bitcointip', category: 'Users', disabledByDefault: true, description: 'Send <a href="http://bitcoin.org/" target="_blank">bitcoin</a> to other redditors via ' + '<a href="/r/bitcointip" target="_blank">bitcointip</a>. <br><br> For more information, '...
nddsg/Reddit-Enhancement-Suite
lib/modules/bitcointip.js
JavaScript
gpl-3.0
21,595
function invValuationDetails(rowClass, element_type, element_value, inv_abc_valuation_id, json_url) { json_url = (typeof json_url !== 'undefined') ? json_url : 'modules/inv/abc_valuation/json_abc_valuation.php'; inv_abc_valuation_id = (typeof inv_abc_valuation_id !== 'undefined') ? inv_abc_valuation_id : $('#inv_abc_...
htphuoc94/MyERP_Stable
modules/inv/count/count.js
JavaScript
mpl-2.0
1,964
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * BarChart is the main class for generating... bar charts (another surprise!). */ def .type('pvc.BarChart', ...
davidmsantos90/ccc
ccc-js/src/main/javascript/package-res/ccc/plugin/bar/bar-chart.js
JavaScript
mpl-2.0
2,991
import { isNone, isBlank } from '@ember/utils'; import { assign } from '@ember/polyfills'; import { decamelize } from '@ember/string'; import DS from 'ember-data'; export default DS.JSONSerializer.extend({ keyForAttribute: function(attr) { return decamelize(attr); }, normalizeItems(payload) { if (payloa...
quixoten/vault
ui/app/serializers/application.js
JavaScript
mpl-2.0
2,296
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; const TARGETS_FOR_GOOD_CAST = 3; class UnempoweredLunarStrike extends Analyzer { badCasts = 0; lastCast = null; lastCastBuffed = false; hits = 0; checkCast()...
sMteX/WoWAnalyzer
src/parser/druid/balance/modules/features/UnempoweredLunarStrike.js
JavaScript
agpl-3.0
2,260
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'flavours/glitch/components/icon'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { retu...
im-in-space/mastodon
app/javascript/flavours/glitch/features/notifications/components/clear_column_button.js
JavaScript
agpl-3.0
556
 var GameServiceStatus = { None: 0, Waiting: 1, Playing: 2 }; function GameService(apiURL, blobURL, serverInterface, socket) { this.status = GameServiceStatus.None; this.serverInterface = serverInterface; this.blobURL = blobURL; this.apiURL = apiURL; this.socket = socket; var service = this; ...
Evilazaro/MCSDAzureTraining
Design and Implement Cloud Services/HOLs/HOL-BuildingSocialGame/Source/Ex4-CreatingLeaderboard/Begin/NodeJs/TicTacToe.Web/Scripts/Game/GameService.js
JavaScript
agpl-3.0
3,607
Element.addMethods({ getSlotId: function(element) { element = $(element) return element.readAttribute('slot') || (element.id && element.id.match(/^page_slot_(\d+)$/) && RegExp.$1) } }) // Page controller object var Page = { SLOT_VERGE_BEFORE: 3, SLOT_VERGE_AFTER: 6, READONLY: false, init: fu...
codeforeurope/samenspel
app/javascripts/pages.js
JavaScript
agpl-3.0
9,804
v.setCursorPosition(0,11); v.enter(); v.type('ok');
hlamer/kate
tests/data/indent/cppstyle/comment13/input.js
JavaScript
lgpl-2.1
52
'use strict'; /** * @module br/presenter/control/datefield/JQueryDatePickerLocaleUtil */ var i18n = require('br/I18n'); /** * @class * @alias module:br/presenter/control/datefield/JQueryDatePickerLocaleUtil * * @classdesc utility class that sets the jQuery datepicker locale-specific properties to i18n properti...
trueadm/brjs
brjs-sdk/sdk/libs/javascript/br-presenter/src/br/presenter/control/datefield/JQueryDatePickerLocaleUtil.js
JavaScript
lgpl-3.0
4,129
(function () { function onJobOpportunityDetailClick(element) { var detailUrl = $(element).attr("data-url"); if (detailUrl) { window.location = detailUrl; } }; $('form[method="get"]').submit(function () { var self = $(this); var parameters = self.seriali...
Ronald2/empleo-dot-net
EmpleoDotNet/Scripts/app.js
JavaScript
unlicense
1,177
// by Jason McCreary October 10, 2008 // http://jason.pureconcepts.net/2008/10/javascript_cookie_object/ var Cookie = { data: {}, options: {expires: 1, domain: "", path: "", secure: false}, init: function(options, data) { Cookie.options = Object.extend(Cookie.options, options || {}); var payload = Co...
UIKit0/pouet2.0
cookie.js
JavaScript
unlicense
2,004
import createCompounder from './_createCompounder'; /** * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). * * @static * @memberOf _ * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the kebab cased string. * @ex...
Maxwelloff/react-football
node_modules/lodash-es/kebabCase.js
JavaScript
apache-2.0
635
import {parse as parseURL, format as formatURL} from './url'; import { config } from 'src/config'; var utils = require('./utils'); const XHR_DONE = 4; /** * Simple IE9+ and cross-browser ajax request function * Note: x-domain requests in IE9 do not support the use of cookies * * @param url string url * @param c...
indexexchange/Prebid.js
src/ajax.js
JavaScript
apache-2.0
2,960
var margin = {top: 75, right: 50, bottom: 75, left: 50}, width = 960 - margin.left - margin.right, height = 250 - margin.bottom - margin.top; var xs = d3.scale.linear() .domain([0, 100]) .range([0, width]); var brush = d3.svg.brush() .x(xs) .extent([0, 0]) .on("brush", brushed); var svgs...
sachsmc/sachsmc.github.io
talks/UseR-Talk/slidersummary.js
JavaScript
apache-2.0
3,325
define("lossincidentoptimization-bundle", ["sap_viz_ext_lossincidentoptimization-src/js/flow", "css!sap_viz_ext_lossincidentoptimization-src/style/default.css" ], function(flowDefinition, cssStyleDeclaration) { var cssString = "", rules, i; if (cssStyleDeclaration && cssStyleDeclaration.cssRules) { rules = cssSt...
denzalereese/lumira-extension-viz
Loss_Incident_Optimization/src/bundles/sap/viz/ext/lossincidentoptimization/lossincidentoptimization-bundle.js
JavaScript
apache-2.0
1,760
// Copyright 2011-2012 Norbert Lindenberg. All rights reserved. // Copyright 2012-2013 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * This file contains shared functions for the tests in the conformance test * suite for the ECMAScript Internatio...
m0ppers/arangodb
3rdParty/V8/V8-5.0.71.39/test/test262/data/harness/testIntl.js
JavaScript
apache-2.0
41,597
var C = (function () { function C() { } Object.defineProperty(C.prototype, "Foo", { get: function () { return "foo"; }, set: function (foo) { }, enumerable: true, configurable: true }); Object.defineProperty(C.prototype, "Bar"...
hippich/typescript
tests/baselines/reference/gettersAndSettersTypesAgree.js
JavaScript
apache-2.0
695
'use strict'; const { join } = require('path'); const fs = require('hexo-fs'); const Promise = require('bluebird'); const chalk = require('chalk'); module.exports = ctx => { if (!ctx.env.init || ctx.env.safe) return; return loadModules(ctx).then(() => loadScripts(ctx)); }; function loadModuleList(ctx) { if (c...
zhengxiexie/blog
node_modules/hexo/lib/hexo/load_plugins.js
JavaScript
apache-2.0
2,344
/// Copyright (c) 2009 Microsoft Corporation /// /// 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 conditions and /// ...
fholm/IronJS
Src/Tests/ietestcenter/chapter15/15.4/15.4.4/15.4.4.20/15.4.4.20-5-28.js
JavaScript
apache-2.0
2,005
/* * Copyright 2012-2016 the Flamingo Community. * * 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...
hyokun31/wisekb-management-platform
wisekb-web/src/main/webapp/flamingo/app/view/workflowdesigner/editor/WorkMixin.js
JavaScript
apache-2.0
4,897
/* * Rapid Interface Builder (RIB) - A simple WYSIWYG HTML5 app creator * Copyright (c) 2011-2012, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ "us...
smallertomato/rib
src/js/views/outline.js
JavaScript
apache-2.0
7,749
'use strict'; var through2 = require('through2'); var gutil = require('gulp-util'); var streamToArray = require('stream-to-array'); var escapeStringRegexp = require('escape-string-regexp'); var groupArray = require('group-array'); var extname = require('../extname'); var transform = require('../transform'); var tags = ...
mchiba52/mystocks-angularv2
server/node_modules/gulp-inject/src/inject/index.js
JavaScript
apache-2.0
7,760
// Copyright (C) 2015 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: String.prototype.toLowerCase() iterates over code points info: > 21.1.3.22 String.prototype.toLowerCase ( ) ... 4. Let cpList be a List containing in order th...
baslr/ArangoDB
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/String/prototype/toLowerCase/supplementary_plane.js
JavaScript
apache-2.0
4,432
module.exports = { description: "the default profile", createRecordMutator: function (metadata) { return function(record){ return record; } }, getMetadata: function () { return []; } };
SpykeBytes/CsvProjector
lib/profiles/default.js
JavaScript
apache-2.0
215
"use strict"; /** * Programmable Interrupt Controller * http://stanislavs.org/helppc/8259.html * * @constructor * @param {CPU} cpu * @param {PIC=} master */ function PIC(cpu, master) { /** * all irqs off * @type {number} */ this.irq_mask = 0; /** * @type {number} * * ...
bowlofstew/v86
src/pic.js
JavaScript
bsd-2-clause
8,409
const minilog = require('minilog'); minilog.enable(); module.exports = minilog('vm');
PaigeWw/scratch-vm
src/util/log.js
JavaScript
bsd-3-clause
87
/** * 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. * * @flow * @format */ 'use strict'; const React = require('react'); const { Alert, Image, NativeModules, StyleSheet, T...
exponentjs/react-native
RNTester/js/examples/Snapshot/SnapshotExample.js
JavaScript
bsd-3-clause
1,467
goog.provide('goog.testing'); goog.provide('goog.testing.FunctionMock'); goog.provide('goog.testing.GlobalFunctionMock'); goog.provide('goog.testing.MethodMock'); goog.require('goog.object'); goog.require('goog.testing.MockInterface'); goog.require('goog.testing.PropertyReplacer'); goog.require('goog.testing.St...
johnjbarton/qpp
traceur/test/closurebaseline/third_party/closure-library/closure/goog/testing/functionmock.js
JavaScript
bsd-3-clause
2,133
'use strict'; const createAstUtils = require('../util/ast'); module.exports = { meta: { type: 'problem', docs: { description: 'Disallow exclusive tests', url: 'https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-exclusive-tests.md' }, sc...
ChromeDevTools/devtools-frontend
node_modules/eslint-plugin-mocha/lib/rules/no-exclusive-tests.js
JavaScript
bsd-3-clause
1,020
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; /** * Rewrites module string literals according to the `map` and `prefix` options. * This allows other npm packages to ...
cpojer/fbjs
packages/babel-preset-fbjs/plugins/rewrite-modules.js
JavaScript
bsd-3-clause
3,751
/** * Constants used throughout application */ App.Template.extend({ }); // End of file
mikegioia/trunk-js-boilerplate
js/app/web/config/templates.js
JavaScript
mit
96
import React from 'react'; import {Component} from 'reactcss'; class Button extends Component { classes() { return { 'default': { container: { textAlign: 'center' }, button: { backgroundColor: '#ff0000', width: '320px', padding: '20px', ...
MicheleBertoli/css-in-js
reactcss/button.js
JavaScript
mit
616
/* jshint devel:true */ /* global define */ define(['underscore', 'translator', 'json'], function(_, Translator) { "use strict"; var dict = {}, debug = false, add = Translator.add, get = Translator.get, fromJSON = Translator.fromJSON; Translator.placeHolderPrefix = '{{ '; ...
MarkThink/OROCRM
web/bundles/orotranslation/js/translator.js
JavaScript
mit
2,411
(function($) { $.widget('ui.dmWidget', { _init : function() { this.initialize(); this.element.data('loaded', true); }, openEditDialog: function() { var widget = this, restoreState = {}, dialogClass = widget.element.attr('id')+'_edit_dialog'; $.dm.removeTipsy(); if ($('body > div.'+...
octavioalapizco/diem
dmFrontPlugin/web/js/page/dmWidget.js
JavaScript
mit
9,120
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The FunctionBody must be SourceElements es5id: 13_A7_T3 description: Checking if execution of "function __func(){\A\B\C}" fails negative: SyntaxError ---*/ function __func(){...
PiotrDabkowski/Js2Py
tests/test_cases/language/statements/function/S13_A7_T3.js
JavaScript
mit
329
/* This file is a part of simplebuttion project. Copyright (C) Thanh D. Dang <thanhdd.it@gmail.com> simplebuttion 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 yo...
hgabka/KunstmaanBundlesCMS
src/Kunstmaan/AdminBundle/Resources/public/default-theme/ckeditor/plugins/simplebutton/plugin.js
JavaScript
mit
1,326
var env, store, Person, Name; var all = Ember.RSVP.all; QUnit.module("unit/fragments - DS.hasOneFragment", { setup: function() { Person = DS.Model.extend({ name : DS.hasOneFragment("name"), title : DS.attr('string') }); Name = DS.ModelFragment.extend({ first : DS.attr("string"), ...
HelloWallet/ember-data.model-fragments
packages/model-fragments/tests/unit/fragments/has_one_test.js
JavaScript
mit
3,857
import React, { Component } from 'react'; import { AppRegistry, Text, Button, View, AlertIOS, StyleSheet } from 'react-native'; import STYLES from '../components/Counter.styles.js'; export default class CounterComponent extends Component{ constructor(){ super(); this.state = { counter: 0,...
victorditadi/IQApp
components/Counter.js
JavaScript
mit
821
/* tslint:disable: no-console */ const exec = require('shell-utils').exec; const semver = require('semver'); const fs = require('fs'); const _ = require('lodash'); const path = require('path'); // Workaround JS const isRelease = process.env.RELEASE_BUILD === 'true'; const ONLY_ON_BRANCH = 'origin/master'; const VERSI...
Jpoliachik/react-native-navigation
scripts/release.js
JavaScript
mit
4,218
describe("Stargate.File modules tests", function() { function logFail(){ console.log(arguments); } /** from Stargate import File as file*/ var file = stargateModules.file; var TEST_FOLDER_DIR, STORAGE_DIR, TEST_FOLDER_NAME = "Test"; function removeTestFolder(done){ window.resolveLocalFi...
BuongiornoMIP/StargateJsApps
spec/modules/stargate.file.test.js
JavaScript
mit
8,662
/* * Copyright (C) 2010 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...
lordmos/blink
Source/devtools/front_end/ShortcutsScreen.js
JavaScript
mit
7,151
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ // flowlint ambiguous-object-type:error 'use strict'; import type {RelayModernFlowtest_use...
facebook/relay
packages/react-relay/__flowtests__/RelayModernFlowtest_notref.graphql.js
JavaScript
mit
657
(function(){ 'use strict'; // custom default setting datatables $.extend( true, $.fn.dataTable.defaults, { 'autoWidth': false, // disabled smart width 'language': { 'lengthMenu': '_MENU_ records', 'search': '' } }); var datatables1 = $( '#datatables1' ).dataTable({ '...
elmanortiz/dgweb
web/Resources/wrapkit/scripts/demo/table-datatables-demo.js
JavaScript
mit
12,500
//#include inc_admin.js, inc_groups.js, inc_organizations.js, inc_making.js //#include inc_stores.js, inc_skills.js, inc_stats.js //#include inc_metabolics.js, inc_items.js //#include inc_buddies.js, inc_quests.js, inc_buffs.js //#include inc_tests.js, inc_houses.js, inc_acl_keys.js, inc_achievements.js //#include...
yelworc/eleven-gsjs
players/player.js
JavaScript
mit
92,133
define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(in...
sufuf3/cdnjs
ajax/libs/rollbar.js/2.6.1/rollbar.named-amd.js
JavaScript
mit
168,370
(function() { // Can't test what ain't there if ( !jQuery.fx ) { return; } var oldRaf = window.requestAnimationFrame; module("effects", { setup: function() { window.requestAnimationFrame = null; this.sandbox = sinon.sandbox.create(); this.clock = this.sandbox.useFakeTimers( 505877050 ); this._oldInterval =...
Viktor-s/f
web/vendor/jquery/test/unit/effects.js
JavaScript
mit
68,160
//this controller simply tells the dialogs service to open a mediaPicker window //with a specified callback, this callback will receive an object with a selection on it angular.module('umbraco') .controller("Umbraco.PrevalueEditors.TreeSourceController", function($scope, dialogService, entityResource, $log, iconHelp...
bowserm/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/views/prevalueeditors/treesource.controller.js
JavaScript
mit
1,668
const Utils = { text(text) { if (typeof text === 'undefined' || text === null) return ''; return text; }, noUndefinedProps(obj) { const o = {}; Object.keys(obj).forEach((key) => { if (typeof obj[key] !== 'undefined') o[key] = obj[key]; }); return o; }, isTrueProp(val) { retur...
iamxiaoma/Framework7
src/phenome/utils/utils.js
JavaScript
mit
2,746
import { platform, release } from 'os'; import { spawnSync } from 'child_process'; /** * @memberOf Jymfony.Component.Console */ export default class Terminal { /** * @returns {boolean} */ static get hasANSISupport() { if ('win32' === platform()) { return ( !! pro...
jymfony/console
src/Terminal.js
JavaScript
mit
1,789
/** * @fileOverview Error reporting. This file is not localized in order to * keep errors in that system from interfering with this one. * @author David Huynh * @author <a href="mailto:ryanlee@zepheira.com">Ryan Lee</a> */ /** * @namespace */ Exhibit.Debug = { silent: false }; /** * @static * @para...
zepheira/exhibit3
scripted/src/scripts/util/debug.js
JavaScript
mit
3,284
// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-connector-remote // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT /*! * Dependencies */ var relation = require('loopback-datasource-juggler/lib/relation-definition'); var Re...
tsiry95/openshift-strongloop-cartridge
strongloop/node_modules/loopback-connector-remote/lib/relations.js
JavaScript
mit
7,960
// @flow declare function foo(): void; export default foo(); // sig. verification error - dirA is whitelisted
popham/flow
tests/well_formed_exports_options/dirA/b.js
JavaScript
mit
111
/** * Fuse.js v6.5.0 - Lightweight fuzzy-search (http://fusejs.io) * * Copyright (c) 2021 Kiro Risk (http://kiro.me) * All Rights Reserved. Apache Software License 2.0 * * http://www.apache.org/licenses/LICENSE-2.0 */ undefined
cdnjs/cdnjs
ajax/libs/fuse.js/6.5.0/fuse.min.js
JavaScript
mit
234
// map of instancename -> FCKeditor object var fckInstances = {}; var fckActiveId = false; // this object will store teaser information var fckTeaser = { lookup : {}, lookupSetup : false, cache : {} }; /** * Drupal behavior that adds FCKeditors to textareas */ Drupal.behaviors.fckeditor = function(context) { // ma...
FinnBalor/Dota-2-tutorial
sites/all/modules/fckeditor/fckeditor.utils.js
JavaScript
gpl-2.0
12,074
/*! * VisualEditor DataModel MWExtensionNode class. * * @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * DataModel MediaWiki extension node. * * @class * @abstract * @mixins ve.dm.FocusableNode * @mixins ve.dm.GeneratedContentNode ...
felixonmars/app
extensions/VisualEditor/modules/ve-mw/dm/nodes/ve.dm.MWExtensionNode.js
JavaScript
gpl-2.0
4,591
import AbstractModel from 'hospitalrun/models/abstract'; import DS from 'ember-data'; import Ember from 'ember'; import NumberFormat from 'hospitalrun/mixins/number-format'; const { computed, get } = Ember; export default AbstractModel.extend(NumberFormat, { // Attributes department: DS.attr('string'), expenseA...
tsaron/dariya
app/models/line-item-detail.js
JavaScript
gpl-3.0
853
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
nipunn1313/parity
js/src/views/Application/Requests/index.js
JavaScript
gpl-3.0
745
/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2014 Cesium Contributors * * 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/l...
rbensa01/Cesium-ESIPE-Project-District
projet/cesium/Source/copyrightHeader.js
JavaScript
gpl-3.0
843
function tryParseLocalizedResource(text) { var localized = executeFunctionByName("Resources.Titles." + text, window); if (!localized) { var underscoreCase = toUnderscoreCase(text); localized = executeFunctionByName("Resources.ScrudResource." + underscoreCase, window); }; if (localized...
Johann-Schwarz/mixerp
src/FrontEnd/Scripts/Modules/ScrudFactory/shared/localization.js
JavaScript
gpl-3.0
767
define(["ng", "lodash"], function(ng, _){ var module = ng.module("mui.views.dataset.analysis.voom", []); module.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider){}]) .factory("VoomVMFactory", [function(){ return function voomVMFactory($scope, BoxPlotService, mevAnalysisTy...
apartensky/mev
web/src/main/javascript/edu/dfci/cccb/mev/web/ui/app/views/dataset/analysis/voom/views.dataset.analysis.voom.module.js
JavaScript
gpl-3.0
4,506
import debounce from 'mout/function/debounce' import view from '../../../view/mixin' import userStore from '../../../stores/user-store/user-store' import { domRender } from '../../../render/render' import { DropdownInput } from './dropdown/dropdown' import template from './template.jade' import itemTemplate from './dro...
DemocraciaEnRed/vicentelopez
lib/admin/admin-permissions/add-user-input/add-user-input.js
JavaScript
gpl-3.0
2,360
odoo.define('web_editor.loader', function (require) { 'use strict'; var ajax = require('web.ajax'); let wysiwygPromise; const exports = {}; function loadWysiwyg(additionnalAssets=[]) { return ajax.loadLibs({assetLibs: ['web_editor.compiled_assets_wysiwyg', ...additionnalAssets]}, undefined, '/web_editor/public_...
jeremiahyan/odoo
addons/web_editor/static/src/js/frontend/loader.js
JavaScript
gpl-3.0
2,964
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var test = require('../ptaptest') var crypto = require('crypto') var log = { trace: function() {} } var tokens = ...
chilts/fxa-auth-server
test/local/key_fetch_token_tests.js
JavaScript
mpl-2.0
4,621
/* * 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
packages/canvas-rce/src/rce/plugins/instructure_links/components/propTypes.js
JavaScript
agpl-3.0
1,416
/* * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.ap...
emswbandara/product-pc
modules/extensions/main/process-center/extensions/assets/process/asset.js
JavaScript
apache-2.0
7,400
exports.name = 'rimraf'; exports.category = 'filesystem'; exports.homepage = 'https://npmjs.org/package/rimraf';
ek1437/PeerTutor
www.peertutor.com/node_modules/nodeman/docs/rimraf.meta.js
JavaScript
apache-2.0
113
import Ember from 'ember'; export default Ember.Controller.extend({ selectedService: null, showAddtlInfo: false, actions: { openInfo: function(service) { this.set('selectedService', service); this.set('showAddtlInfo',true); }, dismiss: function() { this.set('showAddtlInfo',false);...
radishgz/ui-1.5.9
app/stack/chart/controller.js
JavaScript
apache-2.0
336
define([ '../Core/freezeObject', '../Core/WebGLConstants' ], function( freezeObject, WebGLConstants) { 'use strict'; /** * Determines how blending factors are computed. * * @exports BlendFunction */ var BlendFunction = { /** * The ble...
jasonbeverage/cesium
Source/Scene/BlendFunction.js
JavaScript
apache-2.0
3,286
/* * Copyright 2012 Amadeus s.a.s. * 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 i...
mlaval/ariatemplates
test/aria/utils/Dom.js
JavaScript
apache-2.0
26,954
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.12/esri/copyright.txt for details. //>>built define("esri/arcgis/Portal","dojo/_base/declare dojo/_base/lang dojo/_base/kernel dojo/_base/Deferred dojo/_base/array dojo/_base/sniff require ../kernel ../lang .....
aconyteds/Esri-Ozone-Map-Widget
vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/esri/arcgis/Portal.js
JavaScript
apache-2.0
17,904
// Copyright 2007 The Closure Library 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 requ...
xs2ranjeet/mdv
third_party/closure/closure/goog/net/networktester.js
JavaScript
apache-2.0
9,199
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.set-array-offset description: > Type conversions on ToNumber(src property value) info: | 22.2.3.23.1 %TypedArray%.prototype.set (array [ , ...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/TypedArray/prototype/set/array-arg-src-tonumber-value-type-conversions.js
JavaScript
bsd-2-clause
1,390