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
/* eslint-disable */ // not run locally - here for reference function pageFunction(context) { // called on every page the crawler visits, use it to extract data from it var $ = context.jQuery; var result = { constituency: $('#commons-constituency').text(), fullName: $('#commons-biography-header h1')....
peedeerich/revolution2
seed/scrapers/scrapeMps.js
JavaScript
apache-2.0
1,235
Ext.data.JsonP.controller_open_remoteCtrl({"tagname":"class","name":"controller.open_remoteCtrl","autodetected":{},"files":[{"filename":"open_remoteCtrl.js","href":"open_remoteCtrl.html#controller-open_remoteCtrl"}],"author":[{"tagname":"author","name":"GadflyBSD","email":null}],"members":[],"alternateClassNames":[],"a...
GadflyBSD/thinkAPP
docs/app_www/output/controller.open_remoteCtrl.js
JavaScript
apache-2.0
818
import difference from 'lodash/difference'; export const ActionTypes = { PERFORM_ACTION: 'PERFORM_ACTION', RESET: 'RESET', ROLLBACK: 'ROLLBACK', COMMIT: 'COMMIT', SWEEP: 'SWEEP', TOGGLE_ACTION: 'TOGGLE_ACTION', JUMP_TO_STATE: 'JUMP_TO_STATE', IMPORT_STATE: 'IMPORT_STATE' }; /** * Action creators to c...
Maxwelloff/react-football
node_modules/redux-devtools/src/instrument.js
JavaScript
apache-2.0
10,577
// Sanity test for removing documents with adjacent index keys. SERVER-2008 t = db.jstests_removec; t.drop(); t.ensureIndex({a: 1}); /** @return an array containing a sequence of numbers from i to i + 10. */ function runStartingWith(i) { ret = []; for (j = 0; j < 11; ++j) { ret.push(i + j); } ...
christkv/mongo-shell
test/jstests/core/removec.js
JavaScript
apache-2.0
1,114
"use strict"; var cases = module.exports = []; cases[0] = {}; cases[0].resources = [{ "resource": { "id": "Condition/c-0-0", "resourceType": "Condition", "status": "confirmed", "onsetDateTime": "2012-08-05", "dateAsserted": "2012-08-05", "abatementBoolean": true, ...
amida-tech/blue-button-fhir
test/fixtures/unit/condition.js
JavaScript
apache-2.0
2,758
app.controller('submissions', ['$scope', '$http', '$rootScope', 'globalHelpers', function ($scope, $http, $rootScope, globalHelpers) { $scope.stats = {}; $scope.getUrlLanguages = function(gitUrlId){ globalHelpers.getUrlLanguagesPromise(gitUrlId).then( function (response){ $scope.stats[git...
trobert2/gitRoulette
static/controllers/submissions.js
JavaScript
apache-2.0
2,774
function loadText() { var txtLang = document.getElementsByName("txtLang"); txtLang[0].innerHTML = "St\u00F8rrelse"; txtLang[1].innerHTML = "Egenskaber"; txtLang[2].innerHTML = "Typografi"; txtLang[3].innerHTML = "Bredde"; txtLang[4].innerHTML = "Bredde styret af indhold"; txtLang...
studiodev/archives
2009 - Team D4 (IxGamer)/include/Editor/scripts/language/danish/table_edit.js
JavaScript
apache-2.0
2,072
db = connect(mserver); db = db.getSiblingDB('kynetx'); db.schedev.ensureIndex({cron_id : 1}); db.schedev.ensureIndex({ken : 1}); db.schedev.ensureIndex({expired : 1},{expireAfterSeconds : 120});
kre/kre_standalone
kre01/dist/files/mongo08.js
JavaScript
apache-2.0
195
class TabList { constructor (tabs, parentTaskList) { this.tabs = tabs || [] this.parentTaskList = parentTaskList } //tab properties that shouldn't be saved to disk static temporaryProperties = ['hasAudio', 'previewImage', 'loaded'] add (tab = {}, options = {}) { var tabId = String(tab.id || Mat...
minbrowser/min
js/tabState/tab.js
JavaScript
apache-2.0
5,074
/* * ! JSRT JavaScript Library 0.1.1 lico.atom@gmail.com * * Copyright 2008, 2014 Atom Union, Inc. Released under the MIT license * * Date: Feb 11, 2014 */ Class.forName({ name: "class js.util.Iterator extends Object", "private _element": null, "private _cursor": 0, "private _lastRet": -1, Iterator: ...
ctripcorp/tars
tars/surface/static/jre/src/main/js/js/util/Iterator.js
JavaScript
apache-2.0
1,103
import React from 'react'; import { within, userEvent } from '@storybook/testing-library'; import { action } from '@storybook/addon-actions'; import { Badge } from '@talend/react-components'; import { useTranslation } from 'react-i18next'; import set from 'lodash/set'; import cloneDeep from 'lodash/cloneDeep'; import t...
Talend/ui
packages/faceted-search/stories/facetedSearch.stories.js
JavaScript
apache-2.0
11,370
/* * ../../../..//localization/cy/FontWarnings.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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.o...
GerHobbelt/MathJax
localization/cy/FontWarnings.js
JavaScript
apache-2.0
1,604
/*! * ${copyright} */ // Provides control sap.ui.commons.Tree. sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control'], function(jQuery, library, Control) { "use strict"; /** * Constructor for a new Tree. * * @param {string} [sId] id for the new control, generated automatically if no id i...
olirogers/openui5
src/sap.ui.commons/src/sap/ui/commons/Tree.js
JavaScript
apache-2.0
31,259
var parentchild = require('../'), assert = require('assert'); assert.deepEqual(parentchild('foo'), []); assert.deepEqual(parentchild({}), []); assert.deepEqual(parentchild([1, 2, 3]), [['inarray', undefined, 1], ['inarray', undefined, 2], ['inarray', undefined, 3]]); assert.deepEqual(parentchild({ a: { b: ...
emitdb/parentchild
test/index.js
JavaScript
apache-2.0
1,671
$('#confirmacaoExclusaoModal').on('show.bs.modal', function(event) { var button = $(event.relatedTarget); var codigoVinho = button.data('codigo'); var nomeVinho = button.data('nome'); var modal = $(this); var form = modal.find('form'); var action = form.data('url-base'); if (!action.endsWith('/')) { action...
EliasMG/wine
src/main/resources/static/layout/javascripts/exclusao.js
JavaScript
apache-2.0
497
/* Copyright 2015 Mozilla 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 required by applicable law or agreed...
xavier114fch/pdf.js
src/display/display_utils.js
JavaScript
apache-2.0
19,246
import { IconPathDetails } from '../config'; class ReactIcon { constructor(name, component) { this.name = name; this.file = `${IconPathDetails.iconDir}${name}.jsx`; this.component = component; } } export default ReactIcon;
cerner/terra-consumer
packages/terra-consumer-icon/scripts/src/generate-icon/ReactIcon.js
JavaScript
apache-2.0
241
const crypto = require('crypto') module.exports = function (doc) { doc._source.bar = crypto .createHash('md5') .update(String(doc._source.foo)) .digest('hex') }
taskrabbit/elasticsearch-dump
test/test-resources/transform.js
JavaScript
apache-2.0
176
$(function() { var search = $("#search"); var submissions = $("#submissions tbody tr"); search.on('keyup', function(event) { var filter = search.val(); submissions.each(function(index, elem) { var $elem = $(elem); $elem.toggle($elem.data("student").indexOf(filter) !== -1); }); }) });
josalmi/lapio-stats
app/assets/javascripts/submissions.js
JavaScript
apache-2.0
318
/******************************************************************************* * Copyright [2017] [Quirino Brizi (quirino.brizi@gmail.com)] * * 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...
quirinobrizi/buckle
src/interfaces/api/api-helper.js
JavaScript
apache-2.0
1,728
/* eslint-disable */ var webpack = require('webpack'); var path = require('path'); var nodeExternals = require('webpack-node-externals'); module.exports = { entry: './index.js', output: { path: path.join(__dirname, '..', '..', 'build'), filename: 'app.js' }, resolve: { modulesDirectories: ['shared'...
SmallShrimp/node-tpl
webpack/dev/webpack.node.config.js
JavaScript
apache-2.0
1,756
var searchData= [ ['checksyscall_2eh',['CheckSysCall.h',['../db/d19/_check_sys_call_8h.html',1,'']]], ['classid_2eh',['ClassID.h',['../dc/d14/_class_i_d_8h.html',1,'']]], ['comparator_2eh',['Comparator.h',['../d7/d0c/_comparator_8h.html',1,'']]] ];
AubinMahe/AubinMahe.github.io
doxygen/html/search/files_2.js
JavaScript
apache-2.0
255
sap.ui.define(['exports', './asset-registries/i18n', './asset-registries/LocaleData', './asset-registries/Themes', './asset-registries/Icons'], function (exports, i18n, LocaleData, Themes, Icons) { 'use strict'; exports.registerI18nLoader = i18n.registerI18nLoader; exports.registerLocaleDataLoader = LocaleData.reg...
SAP/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/AssetRegistry.js
JavaScript
apache-2.0
548
import { connect } from 'react-redux' import { increment, doubleAsync,callApiAsync } from '../modules/Login' /* This is a container component. Notice it does not contain any JSX, nor does it import React. This component is **only** responsible for wiring in the actions and state necessary to render a presenta...
vio-lets/Larkyo-Client
src/components/login/controllers/LoginController.js
JavaScript
apache-2.0
1,549
function getFunction(f,b){ return function myNextTick(){ console.log(f + " " + b); }; } process.nextTick(getFunction("foo", "bar"));
marcos-goes/livro_node
04/next-tick-gambi.js
JavaScript
apache-2.0
146
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
r2-studio/robotmon-scripts
scripts/com.r2studio.LineageM/index.js
JavaScript
apache-2.0
51,799
var CLIENT_ID = ''; var CLIENT_SECRET = ''; var OWNER = ""; var REPO = ""; /** * Manage Form Answer * Create a trigger by going to Resources > Current projet's triggers * Select function manageAnswer() and create a trigger at form submission */ function manageAnswer(e) { var form = e.source; var rep = { "...
St3ph-fr/my-apps-script-utils
anonymous-issues-github/Code.js
JavaScript
apache-2.0
3,674
"use strict"; let User = require("../../../../persistence").models.User; let debug = require("debug")("app:auth"); module.exports = (findUserEntity, createUserEntity, methodName) => { return (tokenA, tokenB, profile, done) => { return User.findOneQ(findUserEntity(profile)) .then((found) => foun...
atsid/drugfax-18f
server/initialization/sections/passport/strategies/common_oauth_callback.js
JavaScript
apache-2.0
571
/* Copyright 2016 ElasticBox 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 applicable law or agreed to in w...
ElasticBox/elastickube
src/ui/app/instances/ek-instance-filters/ek-instance-filters.controller.js
JavaScript
apache-2.0
2,031
var fs = require('fs'); fs.readFile('data/file1.txt', function (err, data) { console.log('Second'); }); console.log('First');
acoburn/interterm2014
async/async1.js
JavaScript
apache-2.0
130
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function drawSctDiagram(concept, parentDiv) { parentDiv.svg({settings: {width: '600px', height: '500px'}}); var svg = parentDi...
termMed/ihtsdo-daily-build-browser
js/diagramsTest.js
JavaScript
apache-2.0
2,348
var win = Ti.UI.createWindow({ backgroundColor:'white' }); win.open(); var GA = require('analytics.google'); //GA.optOut = true; GA.debug = true; GA.trackUncaughtExceptions = true; var tracker = GA.getTracker("UA-XXXXXX-X"); tracker.trackEvent({ category: "category", action: "test", label: "label", value: 1 }); ...
Tipasha/DivinityCraft
modules/iphone/analytics.google/1.0/example/app.js
JavaScript
apache-2.0
772
var __window = window; var destringify = function(date) { if (date != null && 'string' === typeof(date)) return new Date(date); return date; } var stringify = function(date) { if (!date) return null; return dateFormat(date, "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"); } var stringreplaceall = function(target, searc...
KritikalFabric/corefabric.io
a2/static/vendor/unclassified/destringify.js
JavaScript
apache-2.0
629
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {PostOptions} from '@support/ui/component'; import {isAndroid} from '@support/utils'; class EditPostScreen { testID = { editPostScreen: 'edit_post.screen', closeEditPostButton: 'c...
mattermost/mattermost-mobile
detox/e2e/support/ui/screen/edit_post.js
JavaScript
apache-2.0
1,454
/*! * ${copyright} */ sap.ui.define([ "sap/base/Log", "sap/ui/model/odata/v4/lib/_GroupLock" ], function (Log, _GroupLock) { "use strict"; //********************************************************************************************* QUnit.module("sap.ui.model.odata.v4.lib._GroupLock", { beforeEach : functio...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/lib/_GroupLock.qunit.js
JavaScript
apache-2.0
7,157
/*分页JS*/ var rsss = false; $(function () { $(".leftNav_side").css("min-height", $(".leftNav_side").height()); $(window).resize(function () { $(".leftNav_side").height($(window).height()); }).trigger("resize");//左侧菜单高度自适应,但是保留内容最小高度 //切换左导航一级菜单 $(".Nav_lvl dt").click(function () { ...
iminto/baicai
src/main/webapp/manage/js/navleft.js
JavaScript
apache-2.0
4,114
import { store } from '../store.js'; import { selectGameCurrentState, selectGameChest, selectGameName } from '../selectors.js'; import { deepCopy, getProperty, setPropertyInClone } from '../util.js'; export const UPDATE_GAME_ROUTE = 'UPDATE_GAME_ROUTE'; export const UPDATE_GAME_STATIC_INFO = "UPDATE_GA...
jkomoros/boardgame
server/static/src/actions/game.js
JavaScript
apache-2.0
7,052
/** * Copyright 2015 Wouter van Heeswijk * * 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 agree...
woutervh-/csgjson
js/assets/triangle.js
JavaScript
apache-2.0
740
import React from 'react'; import PropTypes from 'prop-types'; import Preselect from 'material-ui-icons/ThumbUp'; import IconWithTooltipButton from '../../common/iconWithTooltipButton'; import withApplicationStatusChange from '../../common/hoc/withApplicationStatusChange'; import { APPLICATION_STATUSES } from '../../.....
unicef/un-partner-portal
frontend/src/components/eois/buttons/preselectButton.js
JavaScript
apache-2.0
981
define([ "less!theme/textmate.less" ], function(cssContent) { return { 'isDark': false, 'cssClass': "ace-tm", 'cssText': cssContent } });
cethap/cbcompiled
addons/cb.files.editor/theme/textmate.js
JavaScript
apache-2.0
174
function PreferencesAssistant() { /* this is the creator function for your scene assistant object. It will be passed all the additional parameters (after the scene name) that were passed to pushScene. The reference to the scene controller (this.controller) has not be established yet, so any initializ...
brettcannon/oplop
WebOS/app/assistants/preferences-assistant.js
JavaScript
apache-2.0
2,299
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var q = req...
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/protractor/built/runner.js
JavaScript
apache-2.0
15,123
'use strict'; import React, {Component, PropTypes} from 'react'; import ReactNative, {Animated, Easing} from 'react-native'; var Animation = require('../Popover/Animation'); class TooltipAnimation extends Animation { prepareStyle() { const { placement, open, } = this.props; const tooltipPlacement = p...
glinjy/react-native-apex-ui
src/Tooltip/TooltipAnimation.js
JavaScript
apache-2.0
728
'use strict'; (function() { angular.module('openshiftConsole').component('processTemplate', { controller: [ '$filter', '$q', '$scope', '$uibModal', 'APIDiscovery', 'APIService', 'DataService', 'Navigate', 'NotificationsService', 'ProcessedTemplateServic...
openshift/origin-web-console
app/scripts/directives/processTemplate.js
JavaScript
apache-2.0
10,871
var zz = { Internal: { Local: { FS: { File: {}, Directory: {} } } } }; zz.Internal.Local.FS.File.read = function(path, successCallback, errorCallback) { Ti.API.debug("ZZ.Internal.Local.FS.File.read"); Ti.API.debug("ZZ.Internal.Loca...
Adriano72/ZiriZiri-Daniele
Resources/android/zz.api/zz.internal.local.fs.js
JavaScript
apache-2.0
5,650
/** Copyright 2011-2013 Here's A Hand Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
Heres-A-Hand/Heres-A-Hand-Web
public_html/js/rollovers.js
JavaScript
apache-2.0
1,099
/** * @license Copyright 2018 Google Inc. 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 applicable law or a...
mixed/lighthouse
lighthouse-core/test/gather/computed/metrics/estimated-input-latency-test.js
JavaScript
apache-2.0
2,976
/******************************************************************************\ | | | package-version-file-types-view.js | | ...
OWASP/open-swamp
registry-web-server/var/www/html/scripts/views/packages/info/versions/info/source/dialogs/package-version-file-types-view.js
JavaScript
apache-2.0
2,896
define(function (require) { var app = angular.module('easyCodeApp', ['ngRoute', 'ui.bootstrap', 'ui.codemirror', 'vtortola.ng-terminal', 'flow']); // controller for header actions app.controller('headerController', function($scope){ // add header properties for phone support $scope.header = { isCollapse...
deblockt/deblockt.github.io
javascripts/app.js
JavaScript
apache-2.0
3,056
(function() { var port = 8080; if (window.location.search) { var params = window.location.search.match(/port=(\d+)/); if (params) { port = params[1]; } // How often to poll params = window.location.search.match(/pollInterval=(\d+)/); if (params) { ...
jolokia-org/jolokia-client-javascript
test/qunit/js/jolokia-env.js
JavaScript
apache-2.0
470
/** * Symbol Art Editor * * @author malulleybovo (since 2021) * @license GNU General Public License v3.0 * * @licstart The following is the entire license notice for the * JavaScript code in this page. * * Copyright (C) 2021 Arthur Malulley B. de O. * * * The JavaScript code in this page is free softwar...
malulleybovo/SymbolArtEditorOnline
src/components/ui/UIAsset.js
JavaScript
apache-2.0
2,250
/** * Copyright 2018 The AMP HTML 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 require...
yandex-pcode/amphtml
build-system/compile/bundles.config.js
JavaScript
apache-2.0
26,113
// @flow /* eslint-env node */ /* global Restivus */ // Import Meteor :3 and Mongo :3 import { Meteor } from 'meteor/meteor' // Import fs and path to access the filesystem. And mime to get MIMETypes. import { readdirSync, lstatSync, readFileSync } from 'fs' import { join, sep, basename } from 'path' import { ...
ibujs/Area51
server/main.js
JavaScript
apache-2.0
2,481
/* * Copyright 2017-present Open Networking 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 required by appli...
sdnwiselab/onos
web/gui/src/main/webapp/app/fw/widget/tableDetail.js
JavaScript
apache-2.0
1,833
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
metasansana/arouca
lib/Request.js
JavaScript
apache-2.0
2,283
import content from "./content.md" import image from "./image.png" export default function() { return content + image }
sebastian-software/rollup-plugin-rebase
test/flat-multi/index.js
JavaScript
apache-2.0
123
// jQuery List DragSort v0.4 // Website: http://dragsort.codeplex.com/ // License: http://dragsort.codeplex.com/license (function($) { $.fn.dragsort = function(options) { var opts = $.extend({}, $.fn.dragsort.defaults, options); var lists = []; var list = null, lastPos = null; if (this.selector) $("head")...
coraldane/ops-meta
static/javascript/jquery.plugin/jquery.dragsort.js
JavaScript
apache-2.0
11,046
setTimeout(function() { $('.color-box').colpick({ layout:'hex', submit:0, colorScheme:'dark', onChange:function(hsb,hex,rgb,el,bySetColor) { $(el).css('background','#'+hex); // Fill the text box just if the color was set using the picker, and not the colpickSe...
emksaz/choicefrom
development/de-app/script/popup.js
JavaScript
apache-2.0
1,411
(function () { 'use strict'; angular.module('Pedal2Play') .directive('logoutModal', function () { return { restrict: 'E', templateUrl: 'partials/logout.modal.html' }; }); })();
kaelvofraga/Pedal-to-Play-App
www/js/directives/logout-modal.js
JavaScript
apache-2.0
230
'use strict'; angular.module('angularPHP') .controller('CreateorganizationCtrl', function ($scope, Session, Organizations, $timeout, $location) { Session.require(); $scope.name = ""; $scope.msg = ""; $scope.error = ""; $scope.create = function() { $scope.error = ""; $scope.msg = "...
smwa/angular-momentum
app/scripts/controllers/main/createorganization.js
JavaScript
apache-2.0
690
//# sourceMappingURL=audio.component.js.map
reTHINK-project/dev-smart-contextual-assistance-app
src/app/components/rethink/hypertyResource/audio/audio.component.js
JavaScript
apache-2.0
43
/* * 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...
srsharon/carbon-store
apps/publisher/themes/default/js/update_asset.js
JavaScript
apache-2.0
3,312
'use strict'; var React = require('react'), coreViews = require('../../core/views'), mixins = require('../mixins'); var Map = React.createBackboneClass({ mixins: [ mixins.LayersMixin() ], componentDidMount: function() { this.mapView = new coreViews.MapView({ el: '#map'...
kdeloach/raster-foundry
src/rf/js/src/home/components/map.js
JavaScript
apache-2.0
888
const FormatNumber = (value) => { return value.toLocaleString("en-GB", { minimumFractionDigits: 2 }); }; export default FormatNumber;
martincostello/credit-card-splitter
src/Helpers.js
JavaScript
apache-2.0
137
// This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved. var mldb = require('mldb') var unittest = require('mldb/unittest') function expectEmpty(query) { var expected = []; var resp = mldb.query(query); mldb.log(resp); unittest.assertEqual(resp, expected); } function expectFou...
mldbai/mldb
testing/MLDB-1678-rowname-optimizations.js
JavaScript
apache-2.0
3,118
import React, { Component } from 'react'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Content extends Component { render() { return ( <Key...
sampsasaarela/NativeBase
src/basic/Content.js
JavaScript
apache-2.0
1,015
/** * Malay translation for bootstrap-datetimepicker * Ateman Faiz <noorulfaiz@gmail.com> */ ;(function ($) { $.fn.datetimepicker.dates['ms'] = { days: ["Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu", "Ahad"], daysShort: ["Aha", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab", "Aha"], ...
txterm/txsprider
public/static/js/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.ms.js
JavaScript
apache-2.0
715
/* jquery±íµ¥ÑéÖ¤²å¼þ¡£last edit by rongrong 2011.03.29 */ var __check_form_last_error_info = []; var check_form = function (formname, opt) { var formobj; //Ö¸¶¨µ±Ç°±íµ¥ var e_error = ""; var focus_obj = ""; //µÚÒ»¸ö³öÏÖ´íÎó¶ÔÏñ var error = []; var _temp_ajax = new Array; //ajaxУÑéÇëÇóµÄ»º...
DullSky/his
WebRoot/Js/ckform.js
JavaScript
apache-2.0
12,288
/* * Copyright 2020 Verizon Media * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
yahoo/athenz
ui/src/pages/home.js
JavaScript
apache-2.0
5,975
(function () { 'use strict'; angular .module('brew_journal.layout', [ 'brew_journal.layout.controllers' ]); angular .module('brew_journal.layout.controllers', []); })();
moonboy13/brew-journal
brew_journal/static/js/layout/layout.module.js
JavaScript
apache-2.0
205
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'lodash'; import { api } from './Api'; import { formatJSON } from './utils'; export default createReactClass({ propTypes: { params: PropTypes.object, }, getInitialState() { r...
curious-containers/cc-ui
src/DataContainer.js
JavaScript
apache-2.0
1,124
var NAVTREEINDEX88 = { "classorg_1_1onosproject_1_1store_1_1trivial_1_1SimplePacketStore.html#acb74742b2981e7511bb15cefa1ba69d3":[2,0,29,3,56,24,20,0], "classorg_1_1onosproject_1_1store_1_1trivial_1_1SimpleStatisticStore.html":[2,0,29,3,56,24,21], "classorg_1_1onosproject_1_1store_1_1trivial_1_1SimpleStatisticStore.htm...
onosfw/apis
onos/apis/navtreeindex88.js
JavaScript
apache-2.0
29,115
(function() { 'use strict'; function HomeController($scope, $q, $timeout) { var self = this; self.time = 50; self.message = "Mensagem para mostrar"; var promiseTimeout; var deferredToast; self.mostrarToast = function() { esconderToast(); ...
fabiosandias/hotmilhas-recru
app/scripts/controllers/HomeController.js
JavaScript
apache-2.0
1,786
'use strict'; describe('GodHasAPlan.version module', function() { beforeEach(module('GodHasAPlan.version')); describe('interpolate filter', function() { beforeEach(module(function($provide) { $provide.value('version', 'TEST_VER'); })); it('should replace VERSION', inject(function(interpolateFil...
vargose/GodHasAPlan
app/components/version/interpolate-filter_test.js
JavaScript
apache-2.0
438
var BinaryWriter = require('./BinaryWriter'); function LeaderboardPosition(position) { this.place = position } module.exports = LeaderboardPosition; LeaderboardPosition.prototype.build = function() { var buf = new BinaryWriter(); buf.writeUInt8(0x30); buf.writeUInt16(this.place); return buf.toBuf...
proxiemind/MultiOgar-Edited
src/packet/LeaderboardPosition.js
JavaScript
apache-2.0
330
define( ({ loadingInfo: "Carregando...", emptyInfo: "Nenhum item a exibir", loadFailInfo: "Falha ao carregar dados!" }) );
andrescabrera/gwt-dojo-toolkit
src/gwt/dojo/gridx/public/dojo/gridx/nls/pt/Body.js
JavaScript
apache-2.0
127
Polymer('x-foo')
jarrodek/feed-reader
paper/lib_new/polymer/workbench/styling/host.html.0.js
JavaScript
apache-2.0
16
import IPTTProgram, { forIPTT } from '../models/ipttProgram'; describe("bare iptt program", () => { const Program = forIPTT; it("handles frequencies", () => { let program = Program({frequencies: [3, 4]}); expect(program.validFrequency(3)).toBeTruthy(); expect(program.validFrequency(2))....
mercycorps/TolaActivity
js/pages/iptt_report/__tests__/ipttProgram.test.js
JavaScript
apache-2.0
1,047
import SectionUtilities from '../../transform/SectionUtilities' /** * Hide or unhide a section. * @param {!string} sectionId * @param {?boolean} hidden * @return {void} */ const setHidden = (sectionId, hidden) => { if (!document) { return } SectionUtilities.setHidden(document, sectionId, hidden) } expo...
wikimedia/mediawiki-services-mobileapps
pagelib/src/pcs/c1/Sections.js
JavaScript
apache-2.0
396
"use strict"; window.mushroom.state.play2 = { preload: function(){ console.log("loading play2 state"); }, create: function(){ console.log("starting play2 state"); this.game.camera.x = 1800; this.redsea = mt.create("redsea"); this.Pathway2 = mt.create("Pathway2"); this.player=mt.create("weirdmushroo...
Byte-Camp/Website
static/best-ofs/2Dgame/Shengming - Mushroom/js/state/play2.js
JavaScript
apache-2.0
2,523
/****************************************************************************** * supplier.js * * Copyright 2016 Marcos Salomão * * 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 * * ...
salomax/livremkt
src/main/resources/static/app/supplier/supplier.js
JavaScript
apache-2.0
8,615
'use strict'; angular.module('Home').controller('ModalDeleteAssetCtrl', function ($scope, $modalInstance, parentScope, HomeService, asset, name, token, typeId, menuId) { $scope.name = name; $scope.message = "Are you sure you want to delete this asset ?"; $sc...
fixxit/MoknJ-WebUI
modules/templatetypes/asset/delete/controllers.js
JavaScript
apache-2.0
1,480
/** * guy * 异步树 * @class BI.TreeView * @extends BI.Pane */ BI.TreeView = BI.inherit(BI.Pane, { _defaultConfig: function () { return BI.extend(BI.TreeView.superclass._defaultConfig.apply(this, arguments), { _baseCls: "bi-tree", paras: { selectedValues: {} ...
fanruan/fineui
src/base/tree/ztree/treeview.js
JavaScript
apache-2.0
17,478
#!/usr/bin/env node /** * * Copyright 2014-2019 David Herron * * This file is part of AkashaCMS (http://akashacms.com/). * * 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 * * ...
akashacms/akasharender
cli.js
JavaScript
apache-2.0
24,258
cmapi.channel["map.view.clicked"].examples = [ { "title": "Map Clicked", "description": "Report that the map was clicked at a location", "valid": true, "payload": { "lat": 40.195659093364654, "lon": -74.28955078125, "button": "right", "type": "single", "keys": ["s...
CMAPI/cmapi
channels/map.view.clicked.examples.js
JavaScript
apache-2.0
1,202
'use strict'; var _ = require('underscore'); var express = require('express'); var router = express.Router(); var ObjectId = require('mongoose').Types.ObjectId; var path = require('path'); /** * @apiDefine group Group based access * Resource access controlled by user's groups */ /** * @apiDefine access Authentica...
vartomi/pmt-backend
routes/index.js
JavaScript
apache-2.0
886
/** * Websocket Client */ (function() { window.Socket = window.Socket || {} var PacketTypes = { Command : 0, Status : 1 } class Socket { constructor(uri, game) { uri = uri || "" if(uri.length <= 0) { let loc = window.location ...
BasalticStudio/Walrus-vs-Slime
js/Socket.js
JavaScript
apache-2.0
3,768
 (function() { function getParentIndex(levels, level, index) { if (level > 0) { for (var i = index - 1; i >= 0; i--) { if (levels[i] == level - 1) { return i; } } } return -1; } function hasL...
u0hz/FineUI
src/FineUI.Examples/extjs_builder/js/F/F.simulateTree.js
JavaScript
apache-2.0
3,857
/* @flow strict-local */ import React, { PureComponent } from 'react'; import { FlatList } from 'react-native'; import config from '../config'; import { Screen } from '../common'; import InfoItem from './InfoItem'; export default class VariablesScreen extends PureComponent<{||}> { render() { const variables = {...
vishwesh3/zulip-mobile
src/diagnostics/VariablesScreen.js
JavaScript
apache-2.0
857
import React from 'react'; import PropTypes from 'prop-types'; import ColumnChooserRow from '../ColumnChooserRow'; import { columnsPropTypes } from '../../columnChooser.propTypes'; const ColumnChooserTable = ({ columns = [], id, onChangeCheckbox, t }) => columns.map(column => ( <ColumnChooserRow key={column.key}> ...
Talend/ui
packages/components/src/List/Toolbar/ColumnChooserButton/ColumnChooser/ColumnChooserTable/ColumnChooserTable.component.js
JavaScript
apache-2.0
914
/** * Created by zura on 9/27/2016. */ (function () { 'use strict'; angular .module('app.pages', [ 'app.pages.auth.login' ]) .config(Config); /** @ngInject */ function Config(){ } })();
arboshiki/lobilist-angular
src/app/main/pages/pages.module.js
JavaScript
apache-2.0
246
var util = require('util'), querystring = require('querystring'), request = require('request'); function FacebookProvider(client_id, client_secret, redirect_uri) { this.client_id = client_id; this.client_secret = client_secret; this.redirect_uri = redirect_uri; } FacebookProvider.prototype.get...
michaelliao/oauth2-warp
providers/facebook.js
JavaScript
apache-2.0
2,957
define( ({ "sourceSetting": "搜索源设置", "instruction": "添加并配置地理编码服务或要素图层为搜索源。这些指定的源决定了搜索框中的可搜索内容。", "add": "添加搜索源", "addGeocoder": "添加地理编码器", "geocoder": "地理编码器", "setLayerSource": "设置图层源", "setGeocoderURL": "设置地理编码器 URL", "searchableLayer": "要素图层", "name": "名称", "cou...
fiskinator/WAB2.0_JBox_MutualAid
widgets/Search/setting/nls/zh-cn/strings.js
JavaScript
apache-2.0
1,903
/* globals describe, it, expect, hot, cold, expectObservable, expectSubscriptions */ var Rx = require('../../dist/cjs/Rx.KitchenSink'); var Observable = Rx.Observable; describe('Observable.prototype.windowCount', function () { it('should emit windows with count 2 and skip 1', function () { var source = hot('^-a-...
justinwoo/RxJS
spec/operators/windowCount-spec.js
JavaScript
apache-2.0
5,581
$(document).ready(function () { google.charts.load('current', { packages: ['corechart', 'bar'] }); google.charts.setOnLoadCallback(drawBuildSummary); function drawBuildSummary() { var elem = $('#elapsed_time_chart'); var data = [['Elapsed Time', 'Count']]; var categories = []; ...
jaredpar/jenkins
Dashboard/Scripts/elapsed-time.js
JavaScript
apache-2.0
1,729
var s = "Connected";
wojons/scalr
app/www/ui2/js/connection.js
JavaScript
apache-2.0
21
import React from 'react'; import Reflux from 'reflux'; import ChatActions from '../events/chat-actions'; import ChatStore from '../events/chat-store'; import classNames from 'classnames'; import {deepEqual} from '../events/chat-store-utils'; import {Dropdown, MenuItem} from 'react-bootstrap'; var GroupHeaderPane = Re...
JetChat/JetChat
public/javascripts/components/group-header-pane.js
JavaScript
apache-2.0
3,767
/** * @license Copyright 2017 The Lighthouse 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 applica...
umaar/lighthouse
lighthouse-viewer/app/src/lighthouse-report-viewer.js
JavaScript
apache-2.0
13,779
/** * @license * Copyright 2016 Google Inc. 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 requir...
GoogleChromeLabs/chromeos_smart_card_connector
common/js/src/logging/logging.js
JavaScript
apache-2.0
12,352
/** * SyntaxHighlighter * http://alexgorbatchev.com/SyntaxHighlighter * * SyntaxHighlighter is donationware. If you are using it, please donate. * http://alexgorbatchev.com/SyntaxHighlighter/donate.html * * @version * 3.0.90 (Sat, 18 Jun 2016 21:01:41 GMT) * * @copyright * Copyright (C) 2004-2013 Alex Gorbat...
guileschool/guileschool.github.io
assets/js/syntaxhighlighter3/shBrushPython.js
JavaScript
apache-2.0
2,469