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
/** * Utility to have the page wait for a given length. * * Site Kit by Google, Copyright 2021 Google 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 * * https://www.apache.o...
google/site-kit-wp
tests/e2e/utils/page-wait.js
JavaScript
apache-2.0
1,162
define([], function () { return function (v1, v2, options) { if (v1 > v2) { return options.fn(this); } return options.inverse(this); }; });
Redmart/os-mobilizer
frontend/source/js/helpers/greaterthan.js
JavaScript
apache-2.0
153
function Controller() { function selectItem(item) { item.addEventListener("click", function() { Alloy.Globals.openLoading(args.window); Alloy.Globals.getAjax("/manga", { id: item.dataId, userId: Titanium.Facebook.getUid() }, function(respon...
markofevil3/truyenAlloy
Resources/alloy/controllers/mangaListRow.js
JavaScript
apache-2.0
10,216
var Alectryon; (function(Alectryon) { (function (slideshow) { function anchor(sentence) { return "#" + sentence.id; } function current_sentence() { return slideshow.sentences[slideshow.pos]; } function unhighlight() { var sentence = current_sentence(); if (sentence)...
project-oak/silveroak
docs/demo/alectryon.js
JavaScript
apache-2.0
6,586
(function($) { module("applicationDeployment1"); // Test case : Application Deployment 1 _asyncTest("Application Deployment 1", function() { expect(6); var gitana = GitanaTest.authenticateFullOAuth(); gitana.then(function() { // create a web host to store deployme...
gitana/gitana-javascript-driver
tests/js/testApplicationDeployment1.js
JavaScript
apache-2.0
2,446
/** * echarts图表类:地图 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * */ define(function (require) { var ComponentBase = require('../component/base'); var ChartBase = require('./base'); // 图形依赖 var TextShape = r...
nature2014/nature
WebContent/jslib/echart-2.0.1/chart/map.js
JavaScript
apache-2.0
57,260
export default { data() { return { msg: 'Welcome to Your Vue.js App' } }, render(h) { return ( <div>{this.msg}</div> ) } }
wulichenyang/vue-newspaper
src/components/test/RenderComponent.js
JavaScript
apache-2.0
159
/* Copyright 2016 Kii 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
KiiConsortium/DKiiMacaroni
web_front/js/templates/layout.js
JavaScript
apache-2.0
36,787
/** * @license * Copyright 2015 The Lovefield Project 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 ...
GerHobbelt/lovefield
lib/proc/index_cost_estimator.js
JavaScript
apache-2.0
7,451
/** * Created by Geo on 2016/2/27. * 在jqGrid中需要显示特定的种类或者状态 **/ //格式化账户类型 function styleAccType(cellvalue, options, rowObject) { if(cellvalue==""||cellvalue==null) return "未知"; switch (cellvalue){ case 1: return "IPS个人账户"; break; default : return "...
VVVXYZ/TACTAC
src/main/webapp/assets/js/chainwin-custom-common/status-type-formatter.js
JavaScript
apache-2.0
1,588
define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); require("$"); exports.run = function() { var $container = $('#quiz-table-container'); require('../../util/batch-select')($container); require('../../util/batch-delete')($container); ...
18826252059/im
web/bundles/topxiaweb/js/controller/test-paper/index.js
JavaScript
apache-2.0
1,415
'use strict' import * as InCrawl from './crawl' import * as InMovies from './movies' import * as InSearch from './search' // Top Level State Selectors. // // For nexted states, we delegate to the state's internal selector to mitigate // risk of accidental ripple effects if/when the state's shape is modified. // export...
blenoski/movie-night
app/renderer/model/selectors.js
JavaScript
apache-2.0
937
/* * ../../../..//jax/input/MathML/entities/i.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.or...
GerHobbelt/MathJax
jax/input/MathML/entities/i.js
JavaScript
apache-2.0
2,816
module.exports = { scopeNeedTransformPathname: '<<CURRENT_PATHNAME>>', };
websage-team/super-project
packages/koot/defaults/defines-service-worker.js
JavaScript
apache-2.0
78
function Situar(gasolinera) { //declare module dependencies var Buttons = require('lib/Buttons'); //create module instance var buttons = new Buttons(); var self = Ti.UI.createWindow({ title:gasolinera.rotulo, backgroundColor:'white', barColor:'#638F0C' }); var mapview = Titanium.Map.createView({ m...
markitosgv/Repostaje
Resources/ui/Situar.js
JavaScript
apache-2.0
1,826
import React from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; class IntInput extends React.Component { constructor(props) { super(props); this.state = { value : this.props.field.defaultValue || "", validationMessage: "" } } onBlur(e) { ...
demyanenko/hutel
server/ViewModels/FieldInput/IntInput.js
JavaScript
apache-2.0
1,346
//Copyright {2016} {NIIT Limited, Wipro 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 ap...
stackroute/QuizRT2
routes/gameManager/leaderboard.js
JavaScript
apache-2.0
1,563
/** * @license * Copyright 2015 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 ...
priyajeet/shaka-player
lib/polyfill/promise.js
JavaScript
apache-2.0
9,251
var lens = nanoscope({ a: { b: 100, C: 99 } }); lens.pluck(/[a-z]/).get();
5outh/nanoscope-site
api_functions/code/recursivePluck.js
JavaScript
apache-2.0
79
angular.module('bookList', []);
googleinterns/step-2020-wipeout-jr
portfolio/src/main/webapp/book-list/book-list.module.js
JavaScript
apache-2.0
32
function Controller() { function createUser() { var win = Alloy.createController("input").getView("inputWindow"); Cloud.Users.create({ username: $.username.value, password: $.password.value, password_confirmation: $.confirmPassword.value }, function(e) { ...
federico1525/PlaceMark
Resources/alloy/controllers/signup.js
JavaScript
apache-2.0
3,207
/* * Copyright (c) 2015, 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.apache.org/li...
lakshani/carbon-mobile-appmgt
features/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/publisher/themes/mobileapp/js/logic/create.mobileapp.js
JavaScript
apache-2.0
14,329
import { gap } from '../../../../styles/constants' import styles from '../../../../styles/styles' export default { ...styles, main: { width: '100%' }, card: { marginBottom: gap } }
OpenWiseSolutions/openhub-framework
admin-console/src/routes/ErrorsOverview/components/ErrorsOverview/errorsOverview.styles.js
JavaScript
apache-2.0
200
var chan = Channel.build({ window: window.document.getElementById('child').contentWindow, origin: '*', scope: 'CurrentStep' }); var itemsMsgs = {}; chan.call({ method: 'configure', params: { activeTabs: ['enrich'] }, success: function () { console.log("Tool configured"); }, error: function (...
alexkalderimis/show-list-tool
indices/test.js
JavaScript
apache-2.0
2,412
'use strict'; import type { Action } from '../actions/types'; import { globalNav } from '../AppNavigator'; import { PUSH_NEW_ROUTE, POP_ROUTE, POP_TO_ROUTE, REPLACE_ROUTE, REPLACE_OR_PUSH_ROUTE, RESET_ROUTE } from '../actions/route'; import { REHYDRATE } from 'redux-persist/constants' export type State = { routes...
chris50bn/Between
js/reducers/route.js
JavaScript
apache-2.0
2,820
import {isPresent, BaseException} from 'angular2/src/facade/lang'; import {ListWrapper, MapWrapper} from 'angular2/src/facade/collection'; import {ProtoView} from '../view'; import {ChangeDetection} from 'angular2/change_detection'; import {CompileStep} from './compile_step'; import {CompileElement} from './compile_e...
ajoslin/angular
modules/angular2/src/core/compiler/pipeline/proto_view_builder.js
JavaScript
apache-2.0
3,024
'use strict'; // BUILD // // The only purpose of this gulpfile is to build a XOS view and copy the correct files into // .html => dashboards // .js (minified and concat) => static/js // // The template are parsed and added to js with angular $templateCache var gulp = require('gulp'); var ngAnnotate = require('gulp-ng...
zdw/xos
views/ngXosViews/contentProvider/gulp/build.js
JavaScript
apache-2.0
6,424
// platform-specific service angular.module('app.customService', []). factory('customService', function($timeout) { // custom functions for iOS var createBannerView = function() { var am = window.plugins.AdMob; am.createBannerView({ 'publisherId': 'ca-app-pub-8928397865273246/5854175810', 'adS...
psydrake/bitcoinEasyCheck
merges/ios/js/customService.js
JavaScript
apache-2.0
1,656
/** * Created by asus on 2017/4/23. */ function getPersonalBasePageController($scope){ $.get('/api/getPersonBase',{userId:sessionStorage.Key},function(res){ //从缓存里拿到用户Id,并将其传递给后台程序,根据用户Id获取到该用户的信息 if(res.text=='ok'){ $scope.$apply(function(){ $scope.userDatas=res.data.r...
mochenyin/mySchoolProject
www/mochenyin/js/personalBase.js
JavaScript
apache-2.0
1,562
/* jshint strict: false, sub: true */ /* global print, params */ 'use strict'; // ////////////////////////////////////////////////////////////////////////////// // / DISCLAIMER // / // / Copyright 2019 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache License, Version 2.0 (the "License") // / you may...
fceller/arangodb
js/client/modules/@arangodb/testsuites/paths_server.js
JavaScript
apache-2.0
2,404
var CONSTANTS = require('src/constants.json'); var utils = require('src/utils.js'); var bidmanager = require('src/bidmanager.js'); var bidfactory = require('src/bidfactory.js'); var adloader = require('src/adloader.js'); var Adapter = require('src/adapter.js').default; var adaptermanager = require('src/adaptermanager')...
LiranMotola/Prebid.js
modules/piximediaBidAdapter.js
JavaScript
apache-2.0
6,175
/** * @public * @namespace */ var nyc = nyc || {}; /** * @desc Class for managing data and user interactions * @public * @class * @constructor * @param {pka.ApplicationPeriod} applicationPeriod Determines the existence of an active application period * @param {ol.Map} map The map * @param {Ob...
CityOfNewYork/pka
src/main/webapp/js/app.js
JavaScript
apache-2.0
16,759
// @flow import Bourne from '@hapi/bourne'; import { jitsiLocalStorage } from '@jitsi/js-utils'; import _ from 'lodash'; import { parseURLParams } from '../util'; import CONFIG_WHITELIST from './configWhitelist'; import { _CONFIG_STORE_PREFIX, FEATURE_FLAGS } from './constants'; import INTERFACE_CONFIG_WHITELIST fro...
jitsi/jitsi-meet
react/features/base/config/functions.any.js
JavaScript
apache-2.0
9,098
sap.ui.define(['exports', 'sap/ui/webc/common/thirdparty/base/asset-registries/Illustrations', './sapIllus-Dialog-ResizeColumn', './sapIllus-Scene-ResizeColumn', './sapIllus-Spot-ResizeColumn', '../generated/i18n/i18n-defaults'], function (exports, Illustrations, sapIllusDialogResizeColumn, sapIllusSceneResizeColumn, s...
SAP/openui5
src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/illustrations/ResizeColumn.js
JavaScript
apache-2.0
942
function upper(id) { document.getElementById(id).value = document.getElementById(id).value.toUpperCase(); var charset = "0123456789ABCDEFX"; var saveFalse = []; var found = false; for(var i = 0; i < document.getElementById(id).value.length; i++) { found = false; for(var p = 0; p < charset.length; ...
Biomass2857/Kurssystem
Javascript/register.js
JavaScript
apache-2.0
1,500
//number of objects added to request params var id_inc = 1; $(document).ready(function() { console.log("model create template loaded!"); $("#form_").validate(); }); // initialize jquery validator /* * Add the input values whose name contains prefix within div to an object * assign object json string to...
chubbz327/Zoe
lib/Zoe/Zoe_files/public/assets/js/zoe.js
JavaScript
apache-2.0
5,062
/** * @license * Copyright 2014 The Lovefield Project 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 ...
GerHobbelt/lovefield
lib/proc/logical_plan_factory.js
JavaScript
apache-2.0
2,128
/* global describe, it, xit, sinon, expect */ // var sinon = require("sinon"); var should = require("chai").should(); var expect = require("chai").expect; var GPT = require("../../src_new/controllers/gpt.js"); var UTIL = require("../../src_new/util.js"); var CONSTANTS = require("../../src_new/constants.js"); var CONFI...
PubMatic/OpenWrap
test/controllers/gpt.spec.js
JavaScript
apache-2.0
112,361
import List from "../../../../../src/js/structs/List"; import PodInstance from "./PodInstance"; class PodInstanceList extends List {} PodInstanceList.type = PodInstance; module.exports = PodInstanceList;
jcloud-shengtai/dcos-ui_CN
plugins/services/src/js/structs/PodInstanceList.js
JavaScript
apache-2.0
207
var a00551 = [ [ "Color", "a00551.html#a100504544a5423a94222149ee9ed0fe8", [ [ "NONE", "a00551.html#a100504544a5423a94222149ee9ed0fe8a77673d8f27617bcfe50a6ebdd81e8c79", null ], [ "BLACK", "a00551.html#a100504544a5423a94222149ee9ed0fe8a38a1ed82a4151b9fa1d57620f5bc886c", null ], [ "WHITE", "a00551.h...
stweil/tesseract-ocr.github.io
3.x/a00551.js
JavaScript
apache-2.0
8,596
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { moment } from 'meteor/momentjs:moment'; import { Session } from 'meteor/session'; import { BigNumber } from 'meteor/ethereum:web3'; import { _ } from 'meteor/underscore'; import { web3Obj } from 'meteor/makerotc:dapple'; impo...
peculiarity/oasis
frontend/imports/ui/client/widgets/chart.js
JavaScript
apache-2.0
19,652
/** * Renders popup for chrome extension. */
chynu/edusearch
popup.js
JavaScript
apache-2.0
47
/** * Helper module */ /** * Array helpers * @type {Object} */ exports.array = { max: function(_array) { return Math.max.apply( Math, _array ); }, min: function(_array) { return Math.min.apply( Math, _array ); }, remove: function(array, from, to) { var rest = array.slic...
alanleard/scaffold-demo
Resources/modules/lib/helpers.js
JavaScript
apache-2.0
7,630
var a01283 = [ [ "kMaxRectangularFraction", "a01283.html#ae6dc7638052b18db703d824259f9d39e", null ], [ "kMaxRectangularGradient", "a01283.html#ac980c05231fe3f7a8cb4c7ed7f9b6516", null ], [ "kMinColorDifference", "a01283.html#aa76be4c175875d95748cec9f9d5467e3", null ], [ "kMinImageFindSize", "a01283.html...
stweil/tesseract-ocr.github.io
4.0.0/a01283.js
JavaScript
apache-2.0
631
// Copyright 2016 The HongJiang Library Project Authors. All right reserved. // Use of this source code is governed by a Apache-style // license that can be found in the LICENSE file. // // Administrator服務之首页设置 // // @authors hjboss <hongjiangproject@gmail.com> 2016-07-05 13:45:04 CST $$ // @version 0.1.0 const init = ...
hongjiangboss/collavis.com.cn
administrator/modules/page/slideshows.js
JavaScript
apache-2.0
2,381
import {int, isBlank} from 'angular2/src/facade/lang'; import {DOM} from 'angular2/src/dom/dom_adapter'; import {MapWrapper} from 'angular2/src/facade/collection'; import {Parser, Lexer, ChangeDetector, ChangeDetection} from 'angular2/change_detection'; import {ExceptionHandler} from 'angular2/src/core/exception_h...
CarrieKroutil/angular
modules/benchmarks/src/naive_infinite_scroll/index.js
JavaScript
apache-2.0
3,501
const assert = require('assert'); const Connection = require('mongodb-connection-model'); const connect = Connection.connect; const { getInstance } = require('../lib/instance-detail-helper'); const helper = require('./helper'); const DataService = require('../lib/data-service'); const _ = require('lodash'); describe('...
mongodb-js/data-service
test/instance-detail-helper.test.js
JavaScript
apache-2.0
3,263
/************************** * * APP Settings and Configuration **************************/ // APP api domain Ti.API.API_DOMAIN = 'onlinetrader.com.my'; // APP authenticate user and key Ti.API.USER = 'biomas'; Ti.API.KEY = '06b53047cf294f7207789ff5293ad2dc'; // APP URL called Ti.API.CHECKSESSION = "http://"+T...
geomilano/OnlineTrader.v1
app/alloy.js
JavaScript
apache-2.0
9,323
define(['layout/module', 'datatables', 'datatables-bootstrap', 'datatables-colvis', 'datatables-tools', 'datatables-responsive' ], function (module) { 'use strict'; return module.registerDirective('imagetableTableTools', function ($compile) { return { restrict: 'A', ...
Orpheus11/nile
web/app/layout/directives/imagetableTableTools.js
JavaScript
apache-2.0
4,475
/* * * MarkDownRender * */ import React from 'react' import T from 'prop-types' import { replace } from 'ramda' import { Remarkable } from 'remarkable' import emojiPlugin from 'remarkable-emoji' import mentionsPlugin from 'remarkable-mentions' import Prism from 'mastani-codehighlight' import { MENTION_USER_ADDR }...
mydearxym/mastani
src/widgets/MarkDownRender/index.js
JavaScript
apache-2.0
2,327
/** * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/repl/lib/commands/load_workspace.js
JavaScript
apache-2.0
5,457
"use strict"; /*eslint-env browser*/ angular.module('hypercat.directives') .directive('lexicographicSearch', [ '$rootScope', function($rootScope) { var link = function(scope) { scope.usingFilter = false; scope.data = {}; scope.data.type = ...
HyperCatIoT/hc2-server
server/public/js/directives/lexi-search.js
JavaScript
apache-2.0
2,794
/** * Parse byte `size` string. * * @param {String} size * @return {Number} * @api public */ module.exports = function (size) { if ('number' == typeof size) { return convert(size); } var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb)$/) , n = parseFloat(parts[1]) , type = pa...
DeinDesign/css
node_modules/grunt-contrib-connect/node_modules/connect/node_modules/bytes/index.js
JavaScript
apache-2.0
901
/// <reference path="../../../../typings/globals/es6-shim/index.d.ts" /> "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof...
CAH-FlyChen/Evolution.Framework
src/Evolution.Web.Html/wwwroot/app/core/common/side-bar.component.js
JavaScript
apache-2.0
2,360
import Header from '../components/Header/Header.js'; import Home from './Home/Home.js'; import Login from './Login/LoginContainer.js'; import Group from './Group/Group.js'; import Project from './Project/Project.js'; import Follows from './Follows/Follows.js'; import AddProject from './AddProject/AddProject.js'; expor...
YMFE/yapi
client/containers/index.js
JavaScript
apache-2.0
384
$(document).on('select2:select', function(evt) { if ($(evt.target).hasClass('viaf-lookup')) { console.log('viaf selected!'); console.log(evt); // when a VIAF id is selected, update viaf link var data = evt.params.data; $('#viaf_uri').attr('href', data.id).text(data.id); ...
Princeton-CDH/derrida-django
derrida/people/static/admin/viaf-lookup.js
JavaScript
apache-2.0
1,182
/** * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/math/base/special/ellipk/examples/index.js
JavaScript
apache-2.0
851
/* * Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * * 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...
andrewyatz/public-plugins
genoverse/htdocs/genoverse/Track/View/Patch.js
JavaScript
apache-2.0
2,478
/** * Module dependencies. */ var express = require('express') , routes = require('./routes') , user = require('./routes/user') , http = require('http') , path = require('path') , https = require('https'); https.globalAgent.keepAlive=true; https.globalAgent.maxSockets=25; var app = express(); var apiKe...
cicorias/nodejsapiperf
src/simplenode/server.js
JavaScript
apache-2.0
1,786
/* * Copyright 2020 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleinterns/voxetta
ui/src/styles/components/ToS.css.js
JavaScript
apache-2.0
2,159
/**@preserve https://github.com/ralfhergert/jquery-normalize * jQuery wrapper for DOM normalization */ /** Normalization is the process of joining together adjacent textNodes. In DOM * there is node-method called normalize specified for this task, but apparently * IE has a bug joining two text nodes if they are spli...
ralfhergert/jquery-normalize
jquery.normalize.js
JavaScript
apache-2.0
2,330
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/stats/base/smaxsorted/test/test.ndarray.js
JavaScript
apache-2.0
4,898
angular.module('app.services', []) .factory('DB', function($cordovaSQLite, $ionicPlatform){ var DB = {}; return DB; });
bcgov/bearmon
BearWatch/www/js/services.js
JavaScript
apache-2.0
126
var presence = (function () { var exports = {}; // This module just manages data. See activity.js for // the UI of our buddy list. exports.presence_info = {}; /* Mark users as offline after 140 seconds since their last checkin, * Keep in sync with zerver/tornado/event_queue.py:receiver_is_idle */ var OFFLINE_THR...
SmartPeople/zulip
static/js/presence.js
JavaScript
apache-2.0
4,778
/* * Copyright © 2016 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
caskdata/cdap
cdap-ui/app/cdap/components/HeaderBrand/index.js
JavaScript
apache-2.0
885
window.ServerInfo = Backbone.Model.extend({ defaults: { loaded: false, version: null, servertype: 'public', port: 80, ssl: false, algorithms: [] }, initialize: function () { }, getServerInfo: function (callback) { var that = this; wi...
ToureNPlaner/tourenplaner-web
js/mylibs/models/serverinfo.js
JavaScript
apache-2.0
1,333
/*! * ${copyright} */ sap.ui.define([ "jquery.sap.global", "sap/ui/core/Component", "sap/ui/fl/FlexControllerFactory", "sap/ui/fl/Utils", "sap/ui/fl/LrepConnector", "sap/ui/fl/ChangePersistenceFactory", "sap/ui/fl/ChangePersistence" ], function(jQuery, Component, FlexControllerFactory, Utils, LrepConnector, C...
olirogers/openui5
src/sap.ui.fl/src/sap/ui/fl/XmlPreprocessorImpl.js
JavaScript
apache-2.0
4,170
function browser(parent_div, music_ui_ctx){ this.tables = [];//This is an array of panes/tables that will use to create playlists. //Wipe ids from query parameters object this.wipe_ids = function(query_parameters){ query_parameters.artist_id = []; query_parameters.album_id = []; query_parameters.song_id= [...
soda0289/mod_MP
data/www/javascript/ui/browser.js
JavaScript
apache-2.0
6,600
/*eslint-env node*/ // This application uses express as its web server // for more info, see: http://expressjs.com var express = require('express'); var bodyParser = require('body-parser'); var path = require('path'); var cookieParser = require('cookie-parser'); var Cloudant = require('cloudant'); var fs = require('fs'...
Minho-Lee/bowling-nodejs
app.js
JavaScript
apache-2.0
12,174
import Decimal from 'decimal.js' import Dividend from './' describe('Dividend', () => { describe('constructor', () => { it('sets dividendRate', () => { const testDiv = new Dividend({}) expect(testDiv.dividendRate).toEqual(new Decimal(0)) testDiv.dividendRate = 5.67 expect(testDiv.dividend...
amaas-fintech/amaas-core-sdk-js
src/corporateActions/Dividend/dividend.test.js
JavaScript
apache-2.0
520
if (typeof require != 'undefined') { var sage = require('..') , expect = require('expect.js'); } describe('Base', function(){ });
mikepb/sage
test/base-test.js
JavaScript
apache-2.0
140
import UnsaveNotificationMixin from 'ember-cli-idcos/mixin/unsave-notification'; export default { name: 'unsave-notification', initialize() { Ember.Route.reopen(UnsaveNotificationMixin); Ember.Controller.reopen(UnsaveNotificationMixin); } }
idcos/antd-ember
app/initializers/unsave-notification.js
JavaScript
apache-2.0
249
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-umd-wrapper'); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: [ 'build' ], umd_wra...
quandora/qed
Gruntfile.js
JavaScript
apache-2.0
1,484
exports.EditWindow = function(_rowID, _rowName, _rowTitle) { console.log(_rowID,_rowTitle); var db = require('db'); var self = Ti.UI.createWindow({ modal: true, title: 'Update Attendee', backgroundColor: '#fff', layout: 'vertical' }); var nameField = Ti.UI.createLabel({ width: '300dp', height: '45dp', ...
michaelplant/attendeesapp
Resources/ui/EditWindow.js
JavaScript
apache-2.0
1,960
(function() { var AppComponent = ng.core.Component({ selector: 'my-app', template: '<h1>Hello World!</h1>' }) .Class({ constructor: function() { } }); var AppModule = ng.core.NgModule({ imports: [ng.platformBrowser.BrowserModule], declarations:[AppComponent], boo...
munifgebara/angular4
hello/app.js
JavaScript
apache-2.0
495
/** * Copyright (c) 2013-present, 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. * * @provides...
zhangjunhd/react-examples
relay-demo/relay-treasurehunt/node_modules/react-relay/lib/RelayPublic.js
JavaScript
apache-2.0
1,491
(function (exports) { 'use strict'; exports.domUtils = { preventFiring: function preventFiring(evt) { evt.preventDefault(); evt.stopPropagation(); } }; })(window.bbc = window.bbc || {})
mediascape/discovery-bbc-radio
js/dom-utils.js
JavaScript
apache-2.0
214
module.exports = function(express) { var validator = require('../utils/validator'); var dbHelper = require('../utils/dbHelper'); var owners = express.Router(); owners.get( '/', function( req, res ) { if( !!req.query ) { var Owners = thymol.database.owners; if( !!Owners ) { var lastNam...
thymol/thymol.thymeleafexamples-petclinic
src/main/webapp/resources/thymol/server/routes/owners.js
JavaScript
apache-2.0
9,405
define( "dojo/cldr/nls/rw/number", //begin v1.x content { "group": ".", "decimal": "," } //end v1.x content );
WASdev/skunkworks.libertycar
LibertyCar/WebContent/remote/dojo-release-1.7.4/dojo/cldr/nls/rw/number.js
JavaScript
apache-2.0
112
"use strict"; // DO NOT EDIT THIS FILE, EDIT THE GRUNT TASK NGCONSTANT SETTINGS INSTEAD WHICH GENERATES THIS FILE angular.module('bikemanApp') .constant('ENV', 'dev') .constant('VERSION', '0.0.1-SNAPSHOT') ;
RWTH-i5-IDSG/BikeMan
src/main/webapp/scripts/app/app.constants.js
JavaScript
apache-2.0
210
import React from "react"; const Bio = ({ id, bio }) => ( <span> {bio && bio.split("\n").map((part, i) => ( <span key={`bio-${id}-${i}`}> {part} <br /> </span> ))} </span> ); export default Bio;
prattl/teamfinder
client/src/components/utils.js
JavaScript
apache-2.0
253
'use strict'; /** * Requirements * @ignore */ const Filter = require('./Filter.js').Filter; const DocumentationTextSection = require('../../model/documentation/DocumentationTextSection.js').DocumentationTextSection; const DocumentationText = require('../../model/documentation/DocumentationText.js').DocumentationTex...
entoj/entoj-system
source/nunjucks/filter/MarkdownFilter.js
JavaScript
apache-2.0
4,008
var http = require('follow-redirects').http , https = require('follow-redirects').https , FormData = require('form-data') , magnetId = require('node-uuid') , fs = require('fs') , _ = require('underscore'); var MMXManager = function(){ this.createFolderIfNotExist('./tmp'); }; MMXManager.prototy...
magnetsystems/message-console-server
lib/MMXManager.js
JavaScript
apache-2.0
24,201
/** * Copyright 2015-2016, Google, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
GoogleChromeLabs/gulliver
controllers/api/favorite-pwa.js
JavaScript
apache-2.0
4,253
(function() { 'use strict'; angular.module('app').controller('ConversationsDetailCtrl', ConversationsDetailCtrl); ConversationsDetailCtrl.$inject = ['$scope', '$meteor', '$state', 'speakLocal', 'ConversationsService']; function ConversationsDetailCtrl($scope, $meteor, $state, speakLocal, ConversationsService) { ...
fdelia/speaklocal
client/Conversations/conversations.detail.controller.js
JavaScript
apache-2.0
1,509
/* @flow */ import React, {Component} from 'react'; import ReactDOM from 'react-dom' import type {LoggerDatum} from 'lib/typedefs/data' import moment from 'moment' type LogViewerProps = { logs: LoggerDatum[], } export default class LogViewer extends Component { props: LogViewerProps scrollPane: any calcula...
mtford90/ssh-system-monitor
src/app/containers/Logs/LogViewer.js
JavaScript
apache-2.0
1,830
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
AdaptiveMe/adaptive-arp-javascript
adaptive-arp-js/src_units/NetworkInfoBridge.js
JavaScript
apache-2.0
2,703
(function(){ 'use strict'; angular.module('rentITApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider.state('app', { abstract: true, views: { 'navbar@': ...
rpopescu92/rentIT
src/main/resources/static/app/app.state.js
JavaScript
apache-2.0
508
'use strict' import React, {Component,PropTypes} from 'react'; import { Animated } from 'react-native' class AniImage extends React.Component { static propTypes = { url: PropTypes.string, inputRange: PropTypes.array, outputRange: PropTypes.array }; render () { var { st...
iqysf/hiccsu
util/AniImage.js
JavaScript
apache-2.0
999
/** * Copyright 2015 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...
aghassemi/amphtml
extensions/amp-analytics/0.1/test/test-transport.js
JavaScript
apache-2.0
5,238
// @flow import BigNumber from 'bignumber.js'; /* Convert unix timestamp to time elapsed */ export function toDuration(timestamp) { let millis = Date.now() - (timestamp * 1000); const dur = []; const units = [ { label: 'millis', mod: 1000 }, { label: 'seconds', mod: 60 }, { label: 'mins', mod: 60 }...
ethereumproject/emerald-wallet
packages/desktop/src/lib/convert.js
JavaScript
apache-2.0
4,023
module.exports = { // Your bot name. Typically, this is your bot's username without the discriminator. // i.e: if your bot's username is MemeBot#0420, then this option would be MemeBot. name: "CupBot", // The bot's command prefix. The bot will recognize as command any message that begins with it. // i.e: "-sched...
SamuelWM/CupBot
config.js
JavaScript
apache-2.0
2,226
/** * Created by pvmeira on 18/06/17. */ angular.module('app').factory('AppResource', [ '$resource', function($resource) { return function(url, params, methods) { var defaults = { update : { method : 'put', isArray : false }, create : { ...
PvMeira/LunchTime
src/main/resources/public/js/services/app-resource.service.js
JavaScript
apache-2.0
756
var gulp = require('gulp'); var babel = require('gulp-babel'); var jison = require('gulp-jison') gulp.task('compile-jison', function () { return gulp.src('src/lib/svglengthparser.jison') .pipe(jison({ moduleType: 'commonjs' })) .pipe(gulp.dest('lib/')); }); gulp.task('transpile-es6-s...
Andrew-Dunn/svgsize
gulpfile.js
JavaScript
apache-2.0
727
(function() { 'use strict'; angular .module('house.api') .directive('acmeMalarkey', acmeMalarkey); /** @ngInject */ function acmeMalarkey(malarkey) { var directive = { restrict: 'E', scope: { extraValues: '=' }, template: '&nbsp;', link: linkFunc, contro...
breathingdust/house.app
src/app/components/malarkey/malarkey.directive.js
JavaScript
apache-2.0
1,585
describe("Jasmine", function() { it("Needs to make me happy", function() { var me = 'happy'; expect(me).toBe('happy'); }); });
just-cloud/ClourCoreTests
src/test/javascript/main.js
JavaScript
apache-2.0
132
// Copyright 2005 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 conditions ...
jijeshmohan/webdriver-rb
third_party/goog/util/disposable.js
JavaScript
apache-2.0
2,803
const expect = require("chai").expect const { getContentAssistSuggestions } = require("./content_assist_complex") describe("The Official Content Assist Feature example Example", () => { const symbolTable = ["foo", "bar", "average"] context( "can perform content assist for simple statements parser (K > 1) for ...
SAP/chevrotain
examples/parser/content_assist/content_assist_complex_spec.js
JavaScript
apache-2.0
2,697
// 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 0.11.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. ...
amarzavery/cool_sdk
lib/services/resourceManagement/lib/resource/operations/providers.js
JavaScript
apache-2.0
25,374
export default (list, string) => { return list.length > 2 ? `${list[0]}, ${list[1]}...` : `${string.substring(0, string.length - 2)}`; };
folio-org/ui-users
src/components/Loans/OpenLoans/helpers/getListPresentation.js
JavaScript
apache-2.0
148