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 |
|---|---|---|---|---|---|
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import sessionReducer from 'reducers/session-reducer';
import configReducer from 'reducers/config-reducer';
import modalReducer from 'reducers/modal-reducer';
import articlesReducer from 'reducers/articles-reducer';
import adm... | opensupports/opensupports | client/src/reducers/_reducers.js | JavaScript | gpl-3.0 | 782 |
/**
* Angular JS slider directive
*
* (c) Rafal Zajac <rzajac@gmail.com>
* http://github.com/rzajac/angularjs-slider
*
* Licensed under the MIT license
*/
/*jslint unparam: true */
/*global angular: false, console: false, define, module */
(function(root, factory) {
'use strict';
/* istanbul ignore next */
... | jbylina/AkcjaMis-web | src/main/webapp/bower_components/angularjs-slider/src/rzslider.js | JavaScript | gpl-3.0 | 65,637 |
/**
* ColorSplitButton.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function(tinymce) {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, is = tinymce.is, ea... | favioflamingo/wiki | static/var/lib/foswiki/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/classes/ui/ColorSplitButton.js | JavaScript | gpl-3.0 | 7,888 |
/*
* core.js
*/
// Extend the function prototype to allow logging the full call trace
Function.prototype.trace = function() {
var trace = [];
var current = this;
while (current) {
trace.push(current.signature());
current = current.caller;
}
return trace;
}
Function.prototype.signature = function() {
var si... | HTTimer/Timer | js/core.js | JavaScript | gpl-3.0 | 2,128 |
/**
Untusoft (Untusoft Application)
Copyright (C) 2014 Untusoft.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This p... | untusoft/tutus | app/model/navigation/Navigation.js | JavaScript | gpl-3.0 | 958 |
/**
* Title: jqPlot Charts
*
* Pure JavaScript plotting plugin for jQuery.
*
* About: Version
*
* 1.0.0b2_r1012
*
* About: Copyright & License
*
* Copyright (c) 2009-2011 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT and GPL versio... | sistemi-territoriali/StatPortalOpenData | sp-odata/sites/all/modules/spodata/metadata/viewer/commons/jquery_plugins/jqPlot/jquery.jqplot.js | JavaScript | gpl-3.0 | 445,687 |
'use strict';
var Square;
Square = function (game, x, y, frame) {
Phaser.Sprite.call(this, game, x, y, 'square', frame);
// Add physic body
this.game.physics.arcade.enableBody(this);
//Anchor
this.anchor.setTo(0.5, 0.5);
// Kill the sprite if out of the world
this.checkWorldBounds = tru... | robomatix/click-the-black-squares | game/prefabs/square.js | JavaScript | gpl-3.0 | 1,809 |
var appDir = Ti.Filesystem.getResourcesDirectory();
var oM = new Message();
var oD = new Database('timer', true);
var oP = new Page();
var uT = new Utils();
$(document).ready(function(){
/**
* Array filled with all tables and fields
* @type Array
*/
aQueries = {
'projects': [
'id INTEGER NOT NULL PRIMARY... | harmo/Timer | Resources/js/app.js | JavaScript | gpl-3.0 | 3,532 |
'use strict';
const gulp = require('gulp'),
ts = require('gulp-typescript'),
plumber = require('gulp-plumber'),
clean = require('gulp-clean'),
less = require('gulp-less'),
browserSync = require('browser-sync').create(),
fallback = require('connect-history-api-fallback');
co... | delta62/chore-ui | gulpfile.js | JavaScript | gpl-3.0 | 1,222 |
var config = {
database: {
"development": {
"database": "../db.sqlite",
"dialect": "sqlite"
},
"test": {
"username": "root",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"dialect": "mysql"
},
"production": {
"username": "root",... | Jake0oo0/vulture | server/config.default.js | JavaScript | gpl-3.0 | 531 |
/**
* Created by Gyurasits Zoltán on 2016.08.17..
*/
exports.install = function() {
console.log('Install RCON service');
F.global.rcon = new Rcon();
};
function Rcon() {
var self = this;
rconData = {};
rconData.addr = F.config['rcon-host'];
rconData.port = F.config['rcon-port']... | gyurasitszoltan/BGAdminLite | modules/rconService.js | JavaScript | gpl-3.0 | 3,461 |
/**
* Default Keybindings Help Module for the Cloud9 IDE
*
* @copyright 2010, Ajax.org B.V.
* @license GPLv3 <http://www.gnu.org/licenses/gpl.txt>
*/
define(function(require, exports, module) {
var ext = require("core/ext");
var markup = require("text!ext/keybindings_default/keybindings_default.xml");
var css =... | nuclearsandwich/cloud9 | client/ext/keybindings_default/keybindings_default.js | JavaScript | gpl-3.0 | 4,802 |
/*
* left to right
* forward
* bands
*/
var bandY = 0;
do {
for (var x = 0; x < image.width; x++) {
for (var y = 0; y < image.bandSize; y++) {
image.addPoint(x, bandY + y);
}
}
bandY += image.bandSize;
} while (bandY < image.height);
| riuson/lcd-image-converter | resources/scan_scripts/scan_left2right_forward_band.js | JavaScript | gpl-3.0 | 280 |
import React, { Component } from 'react';
import { Button, FormGroup, ControlLabel, Col } from "react-bootstrap";
import Datetime from 'react-datetime';
import moment from 'moment';
import 'react-datetime/css/react-datetime.css';
class AddEventStep3 extends Component {
constructor(params) {
super(params);
... | jirkae/hobby_hub | src/Event/components/formSteps/AddEventStep3.js | JavaScript | gpl-3.0 | 3,322 |
/*
* Copyright (c) 2009, 2010 and 2011 Frank G. Bennett, Jr. All Rights
* Reserved.
*
* The contents of this file are subject to the Common Public
* Attribution License Version 1.0 (the “License”); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at:
*
*... | ptsefton/worddown | tools/recite/citeproc-js/src/obj_number.js | JavaScript | gpl-3.0 | 5,089 |
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
modals: {
layout: true,
style: true,
animation: 'scale'
}
});
app.import('app/styles/app.css');
app.import('app/styles/bootstrap.css');
app.import('app/styles/loader.css');
// ... | hugoruscitti/sacao | Brocfile.js | JavaScript | gpl-3.0 | 907 |
/**
* Given an index k, return the kth row of the Pascal's triangle.
*
* For example, given k = 3,
* Return [1,3,3,1].
*
* Note:
* Could you optimize your algorithm to use only O(k) extra space?
*/
/**
* @param {number} rowIndex
* @return {number[]}
* time:O(n^2)
* space:O(n)
* score:87.13(102ms)
*/
va... | whelan957/leetcode | javascript/Math/leetcode119_PascalTriangleII.js | JavaScript | gpl-3.0 | 575 |
import React, { Component } from 'react'
import { Provider } from 'react-redux'
import configureStore from '../configureStore'
import ThemeProvider from '../components/ThemeProvider'
const store = configureStore()
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... | andrew-hai/bdgt | uis/mp-react/src/containers/Root.js | JavaScript | gpl-3.0 | 375 |
(function() {
var app = angular.module('scan-directives', []);
app.directive("scanReports", function() {
return {
restrict: 'E',
templateUrl: "scan-reports.html"
};
});
})();
| madrisan/pyoocs | html/client/app/js/directives.js | JavaScript | gpl-3.0 | 202 |
var fs = require('fs');
var angular = require('angular');
var modernizr = require('modernizr');
angular.module('ui.user-avatar', []).directive('userAvatar', function ($compile) {
return {
restrict: 'E',
replace: true,
scope : {user: '=user', v: '@v'},
template: fs.readFileSync(__dirname + '/../../../... | sadne/partake | public/scripts/components/directives/user-avatar.js | JavaScript | gpl-3.0 | 2,605 |
/*
* Xataface Translation Memory Module
* Copyright (C) 2011 Steve Hannah <steve@weblite.ca>
*
* 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,... | shannah/swete | swete-admin/modules/tm/js/xataface/modules/tm/translation_memory.js | JavaScript | gpl-3.0 | 5,522 |
function calculate() {
// 变量定义,其中用new Number取代parseInt以解决后者参数为数字与非数字混合时,返回值为数字部分而非NaN的问题
var num1 = new Number(document.getElementById("num1").value);
var num2 = new Number(document.getElementById("num2").value);
var op = document.getElementById("operator");
var result = document.getElementById("res... | tjcslx/jkxy_projects | M2/w05_calc/app.js | JavaScript | gpl-3.0 | 1,429 |
var classpd_t_c_a_d_1_1_t_c_a_d =
[
[ "TCAD", "classpd_t_c_a_d_1_1_t_c_a_d.html#a9e6201cc1281486d1e8ecb3fff99731d", null ],
[ "TCAD", "classpd_t_c_a_d_1_1_t_c_a_d.html#a4ab510c3049001948e5470eb7b5bc4c8", null ],
[ "~TCAD", "classpd_t_c_a_d_1_1_t_c_a_d.html#ae772468332269580125cf6be18a4b368", null ]
]; | kshin264381/pdelay | doc/html/classpd_t_c_a_d_1_1_t_c_a_d.js | JavaScript | gpl-3.0 | 314 |
/* Code extracted from https://github.com/Tom-Alexander/regression-js/
Modifications of January 5, 2015
- Add dashStyle ('' by default)
*/
(function (H) {
H.wrap(H.Chart.prototype, 'init', function (proceed) {
var series = arguments[1].series ;
var extraSeries = [];
var i = 0 ;... | ZiBuDo/QVC-Data-Analytics | tech/public_html/js/highcharts-regression.js | JavaScript | gpl-3.0 | 17,113 |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | polyvi/xface-extension-messaging | test/autotest/tests/message.tests.js | JavaScript | gpl-3.0 | 9,173 |
// Получить случайное целое число в заданном диапазоне
// параметры:
// nMinValue - целое число. Начало диапазона для формирования случайного числа.
// nMaxValue - целое число. Конец диапазона для формирования случайного числа.
// Возвращает целое число. Случайное число в заданном диапазоне.
function getRandomInt(nMin... | infosoft-v/frontol5lib | getRandomInt.js | JavaScript | gpl-3.0 | 638 |
/**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... | ModuloM/kodokojo-ui | src/scripts/components/signup/signup.validator.js | JavaScript | gpl-3.0 | 1,020 |
import { EventEmitter } from 'events';
import Auth0Lock from 'auth0-lock';
import { AUTH_CONFIG } from './auth0-variables';
import history from '../history';
export default class Auth extends EventEmitter {
lock = new Auth0Lock(AUTH_CONFIG.clientId, AUTH_CONFIG.domain, {
oidcConformant: true,
autoclose: true... | santiagorp/auth0-spa-api-ae | spa/src/Auth/Auth.js | JavaScript | gpl-3.0 | 2,631 |
import { getValue } from './ducks/quantity/selectors'
//put this here instead of an action because it is like a component that dispatches actions on a certain condition
export const runTests = (state) => {
const isEqual = tests.isEqual(state, 't', 5)
}
const tests = {
isEqual: (state, quantity, value, tolerance=0.01... | bryanmehall/Zibit | dev/tests.js | JavaScript | gpl-3.0 | 457 |
$(document).ready(function() {
$('#planDropdown').addClass('active');
$(".js-example-basic-single").select2({
theme : "classic"
});
$('#phenomenon').on('change',function(){
if( $(this).val()==="other"){
$("#phenomenon-other").show();
document.getElem... | decidedss/playIdss | app/assets/javascripts/actionsResults.js | JavaScript | gpl-3.0 | 702 |
/*
var config= require('./config'); // get db and google config
process.env['PM2_HOME'] = config.pm2; // Enviroment for PM2 on openshift
// https://app.keymetrics.io/
var pm2 = require('pm2');
var MACHINE_NAME = 'sharespaces_server';
var PRIVATE_KEY = config.keymetrics.private;
var PUBLIC_KEY = config.keymetric... | fabianrocks/share-spaces | app.js | JavaScript | gpl-3.0 | 1,072 |
webpackHotUpdate(0,{
/***/ 293:
/***/ function(module, exports, __webpack_require__) {
'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];... | daviddsp/front_agence | dist/0.2f9c42ab896645b3d9cf.hot-update.js | JavaScript | gpl-3.0 | 4,252 |
/**
* @namespace Adds the structure for the page. Includes Functions to display objects.
*/
c.index = {
/**
* @namespace Includes functions to add viewers and generate views
*/
view: {
choosed: '',
viewers: new Array(),
dataPool: new Array(),
/**
* Adds a new viewer
... | charlie89/cweb | client/index.modern/index.js | JavaScript | gpl-3.0 | 5,572 |
/**
* Feature Name: Frontend jQuery
* Author: HerrLlama for Inpsyde GmbH
* Author URI: http://inpsyde.com
* Licence: GPLv3
*/
( function( $ ) {
var sf_frontend = {
init: function () {
// Bind buttons
sf_frontend.bind_buttons();
},
bind_buttons: function() {
$( document ).on( 'click', '.bt... | dasllama/Simple-Feedback | js/frontend.dev.js | JavaScript | gpl-3.0 | 1,562 |
import React from 'react';
import IconaStatoSistema from './IconaStatoSistema';
class ContenitoreIconeDiStato extends React.Component {
render() {
return (
<div id="status" className=" ">
<div className="row">
<IconaStatoSistema card={this.props.cardEthernet} stato={this.props.statoEthern... | fondazionebordoni/misurainternet-ui | src/ContenitoreIconeDiStato.js | JavaScript | gpl-3.0 | 735 |
var dir_b83358a15c32f6de97899a151d3c9752 =
[
[ "edge.h", "edge_8h.html", [
[ "Edge", "struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_edge.html", "struct_introduction_to_algorithm_1_1_graph_algorithm_1_1_edge" ]
] ],
[ "edge_test.h", "edge__test_8h.html", "edge__test_8h" ]
]; | huaxz1986/cplusplus-_Implementation_Of_Introduction_to_Algorithms | doc/html/dir_b83358a15c32f6de97899a151d3c9752.js | JavaScript | gpl-3.0 | 303 |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("placeholder","pt-br",{title:"Propriedades do Espaço Reservado",toolbar:"Criar Espaço Reservado",name:"Nome do Espaço Reservado",invalidName:"O espaço... | crunchmail/dentifrice | dist/ckeditor/plugins/placeholder/lang/pt-br.js | JavaScript | mpl-2.0 | 453 |
"use strict";
const cluster = require('cluster');
if (cluster.isMaster) {
console.log("I'm a master");
const createWorker = () => {
let worker = cluster.fork();
worker.on('exit', () => {
console.log('my worker just died');
});
setTimeout(() => {
console.log('killing the worker');
... | giltayar/cluster-talk | lib/server-memory-leak-ha-no-downtime-full.js | JavaScript | mpl-2.0 | 843 |
describe('DqElement', function() {
'use strict';
var DqElement = axe.utils.DqElement;
var fixture = document.getElementById('fixture');
var fixtureSetup = axe.testUtils.fixtureSetup;
var queryFixture = axe.testUtils.queryFixture;
afterEach(function() {
axe.reset();
});
it('should be exposed to ut... | dequelabs/axe-core | test/core/utils/dq-element.js | JavaScript | mpl-2.0 | 9,389 |
/*
* 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/.
*/
/*
* Copyright (c) 2015, Joyent, Inc.
*/
/*
* lib/sdc.js: library functions for working with SDC
*/
var ... | davepacheco/sdc-manta | lib/sdc.js | JavaScript | mpl-2.0 | 1,618 |
var topLists = [{
"name": "JS",
"url": "jsframeworks.json",
"id": "js"
}]; | hallvors/mobilewebcompat | data/frameworkandtoollists.js | JavaScript | mpl-2.0 | 81 |
(function () {
if (document.documentElement) {
initialize();
} else {
window.addEventListener('DOMContentLoaded', initialize);
}
function initialize () {
var SHEET_ID = 'messages-bigger-send-button';
var SHEET_SELECTOR = 'style#' + SHEET_ID;
var SHEET_CONTENT = [
'#messages-attach-b... | lmorchard/fxos-addon-messages-bigger-send-button | index.js | JavaScript | mpl-2.0 | 971 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
Cu.import("resource://gre/modules/LoginManagerParent.jsm", this);
function* registerConverter() {
Cu.import("resource://gre/modules/Services.jsm", this);
Cu.import("resource://gre/modules/NetUtil.jsm", this... | Yukarumya/Yukarum-Redfoxes | toolkit/components/passwordmgr/test/browser/browser_hasInsecureLoginForms_streamConverter.js | JavaScript | mpl-2.0 | 3,723 |
// -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
/* 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 dialog;
var gPrintBundle;
var gPrintSettings = null;
var... | Yukarumya/Yukarum-Redfoxes | toolkit/components/printing/content/printjoboptions.js | JavaScript | mpl-2.0 | 13,620 |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.fillStyle.parse.hsla-clamp-1
// Description:
// Note:<p class="notes">
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("");
var t_pass = t.done... | DominoTree/servo | tests/wpt/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.fillStyle.parse.hsla-clamp-1.worker.js | JavaScript | mpl-2.0 | 709 |
/* 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/. */
const config = require('./config').getProperties();
const version = config.api.version;
function v(url) {
retur... | mozilla/fxa-profile-server | lib/routing.js | JavaScript | mpl-2.0 | 1,634 |
/* eslint-disable no-underscore-dangle,no-param-reassign */
import environment from '../../../environment'
import { fetchWithToken } from '../api/api'
import geosearchFormatter from './geosearch-formatter'
import SEARCH_CONFIG from './search-config'
import { formatCategory } from './search-formatter'
function isNumber... | DatapuntAmsterdam/atlas_prototype | src/shared/services/search/geosearch.js | JavaScript | mpl-2.0 | 7,470 |
/* 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/. */
'use strict';
/**
* Functional suite for the mob_android_v1 broker. There are no "verify same browser" tests
* ... | shane-tomlinson/fxa-content-server | tests/functional/mob_android_v1.js | JavaScript | mpl-2.0 | 3,840 |
initSidebarItems({"enum":[["Shutdown","Possible values which can be passed to the `shutdown` method of `TcpStream`."],["SocketAddr","Representation of a socket address for networking applications."],["WebSocketStream","A useful stream type for carrying WebSocket connections."]],"struct":[["TcpStream","A structure which... | servo/doc.servo.org | websocket/stream/sidebar-items.js | JavaScript | mpl-2.0 | 394 |
// Se cargan los requerimientos para validación de formularios
dojo.require("dijit.form.NumberTextBox");
dojo.require("dijit.form.CurrencyTextBox");
dojo.require("dijit.form.TimeTextBox");
dojo.require("dijit.form.DateTextBox");
dojo.require("dijit.form.TextBo... | peyuco08/gulp-easy | build/assets/js/validaciones.js | JavaScript | mpl-2.0 | 367 |
var Reflux = require('reflux');
module.exports = Reflux.createActions([
'addActivity',
'editActivity',
'openModal'
]);
| drifterz28/feedMe | src/js/lib/actions.js | JavaScript | mpl-2.0 | 126 |
export const DEFAULT_HEIGHT = 29;
export const DEFAULT_WIDTH = 45; | GetConnectivity/react-payment-icons | src/const.js | JavaScript | mpl-2.0 | 66 |
import 'whatwg-fetch';
import Immutable from 'immutable';
const fetch = window.fetch;
import {TimelineActions} from '../actions/';
import {buildUrl} from '../utils/urls';
const BUGZILLA_API = 'https://bugzilla.mozilla.org/rest';
const fields = [
'assigned_to',
'blocks',
'depends_on',
'groups',
'id',
'las... | mythmon/edwin | edwin/client/static/js/utils/bzAPI.js | JavaScript | mpl-2.0 | 2,308 |
module.exports={A:{A:{"2":"H D G E A B nB"},B:{"1":"I J q","2":"C K f L N"},C:{"2":"kB","194":"0 1 2 3 4 5 6 8 OB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i j k l m n o p M r s t u v w x y z EB NB DB BB FB HB IB JB KB LB MB eB dB"},D:{"1":"0 1 2 3 4 5 6 8 L N I J P Q R S T U V W X Y Z a b c ... | mdranger/mytest | node_modules/caniuse-lite/data/features/ping.js | JavaScript | mpl-2.0 | 984 |
"use strict";
dopple.acorn =
{
prepare: function()
{
this.type = dopple.Type;
this.lookup["Literal"] = this.parseLiteral;
this.lookup["Identifier"] = this.parseIdentifier;
this.lookup["Property"] = this.parseProperty;
this.lookup["VariableDeclaration"] = this.parseVar;
this.lookup["VariableDeclarator... | InfiniteFoundation/dopple | src/acorn.js | JavaScript | mpl-2.0 | 8,733 |
import React from 'react';
function NewIcon(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="context-fill" d="M14 7H9V2a1 1 0 0 0-2 0v5H2a1 1 0 1 0 0 2h5v5a1 1 0 0 0 2 0V9h5a1 1 0 0 0 0-2z"></path>
</svg>
);
}
export default NewIcon;
| cedricium/notes | src/sidebar/app/components/icons/NewIcon.js | JavaScript | mpl-2.0 | 319 |
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2017 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms
* of the GNU Affero General Public License as published by the Free Software Foundation, e... | OpenLMIS/openlmis-stockmanagement-ui | src/stock-unpack-kit/stock-kit-unpack.routes.spec.js | JavaScript | agpl-3.0 | 4,679 |
angular.module('app').config(function ($stateProvider, $urlRouterProvider) {
$urlRouterProvider
.otherwise('/g/all');
$stateProvider
.state('app', {
abstract: true,
templateUrl: 'app.html'
})
.state('app.f', {
abstract: true,
url: '... | Strimoid/Angular-Frontend | app/routes.js | JavaScript | agpl-3.0 | 3,907 |
//MWF.xDesktop.requireApp("Deployment", "Actions.RestActions", null, false);
MWF.require("MWF.xAction.org.express.RestActions", null,false);
MWF.xDesktop.requireApp("Selector", "package", null, false);
//MWF.xDesktop.requireApp("Deployment", "Actions.RestActions", null, false);
MWF.require("MWF.widget.O2Identity", null... | o2oa/o2oa | o2web/source/x_component_Deployment/Main.js | JavaScript | agpl-3.0 | 22,061 |
export const basePreloginTemplate = ({contents, language, headerLinks = [], footerLinks = []}) => `
<div id="wait">
<i class="fa fa-spinner fa-pulse"></i>
</div>
<header class="fw-header prelogin">
<div class="fw-container">
<h1 class="fw-login-logo"><span class="fw-logo-text"></span><img src="${settings_ST... | fiduswriter/fiduswriter | fiduswriter/base/static/js/modules/prelogin/templates.js | JavaScript | agpl-3.0 | 2,271 |
import { uniq } from 'lodash/fp'
import { isProjectMember } from '../group/queryUtils'
export default {
isProject () {
return this.get('type') === Post.Type.PROJECT
},
members: function () {
return this.followers().query(q => q.whereRaw('project_role_id is not null'))
},
addProjectMembers: async fu... | Hylozoic/hylo-node | api/models/project/mixin.js | JavaScript | agpl-3.0 | 1,363 |
(function() {
'use strict';
angular.module('app.components')
.controller('MapFilterDialogController', MapFilterDialogController);
MapFilterDialogController.$inject = ['$scope', '$mdDialog', 'filterData', 'defaultFiltersFromController', 'mapUtils'];
function MapFilterDialogController($scope, $mdDialog,... | OrganicityEu-Platform/organicity-urban-data-observatory | src/app/components/dialog/mapFilterDialog.controller.js | JavaScript | agpl-3.0 | 1,338 |
L.Control.Draw = M.Control.extend({
options: {
position: 'topleft',
draw: {
polyline : false,
rectangle : false,
circle : false,
marker : false,
polygon : {
showArea : true,
allowIntersection: false, // Restricts shapes to simple polygons
drawError: {
color: 'red', // Color the sha... | mapic/mapic.js | js/src/controls/control.draw.js | JavaScript | agpl-3.0 | 9,608 |
/*
Copyright (C) 2014 Härnösands kommun
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
Th... | Sundsvallskommun/OpenEMap-WebUserInterface | src/main/javascript/ObjectFactory.js | JavaScript | agpl-3.0 | 5,190 |
'use strict';
const fs = require('fs');
const sinon = require('sinon');
const expect = require('chai').expect;
const MonitorConfig = require('../../lib/monitor/config');
describe('Monitor Config', function() {
const sandbox = sinon.sandbox.create();
let readFileSync;
let writeFileSync;
let mkdirSync;
let e... | bookchin/storj-bridge | test/monitor/config.unit.js | JavaScript | agpl-3.0 | 5,062 |
const { WEB_ORIGIN } = require('../constants')
const freeTrialExpiredAlertXpath = '//div[contains (text(), "Your free trial has ended.")]'
const membershipExpiredAlertXpath = '//div[contains (text(), "Your membership has expired.")]'
module.exports = {
before: function (browser) {
browser.url(`${WEB_ORIGIN}`)
... | podverse/podverse-web | __tests__/old_tests/auth.js | JavaScript | agpl-3.0 | 682 |
/**
* Created by neova on 12/05/15.
*/
(function () {
'use strict';
var _t = openerp._t;
openerp.Tour.register({
id: 'registrar_able_to_create_referrals',
name: _t("Reconcile the demo bank statement"),
path: '/web?debug=',
//mode: 'test',
// TODO : identify menu... | NeovaHealth/patientflow | nh_etake_list_theme/static/src/js/registrar_able_to_create_referrals.js | JavaScript | agpl-3.0 | 1,695 |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/* ----------------------------------------------------
/* NOTE:
/* "deleted" this config for not stepping in our way with
/* with the configuration... | musicEnfanthen/Knora | salsah1/src/public/vendor/ckeditor-4.7.2-Editor/config.js | JavaScript | agpl-3.0 | 1,556 |
import React, {lazy, Suspense} from 'react'
import AceEditorPropTypes from './AceEditorPropTypes'
const AceEditor = lazy(() => import(/* webpackChunkName: "code-editor" */ './AceEditor'))
const fallbackTextField = value => (
<div>
<p>{value}</p>
</div>
)
const LazyCodeEditor = props => (
<Suspense fallbac... | tocco/tocco-client | packages/core/tocco-ui/src/CodeEditor/LazyCodeEditor.js | JavaScript | agpl-3.0 | 479 |
import {SubmissionError} from 'redux-form/es/SubmissionError'
import {api} from 'tocco-util'
import rest from '../rest'
import formErrors from './formErrors'
import {formValuesToFlattenEntity, getDirtyFormValues, validationErrorToFormError} from './reduxForm'
import {hasError} from './utils'
import {asyncTypeValidateF... | tocco/tocco-client | packages/core/app-extensions/src/form/asyncValidation.js | JavaScript | agpl-3.0 | 2,211 |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | partner/partnerclient analytic', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let model ... | appknox/irene | tests/unit/models/partner/partnerclient-analytic-test.js | JavaScript | agpl-3.0 | 412 |
/*Copyright (C) 2015 Sao Tien Phong (http://saotienphong.com.vn)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This ... | Openroadvietnam/openaccounting | models/dmnguonvon.js | JavaScript | agpl-3.0 | 1,216 |
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies';
import BoringSpellValueText from 'parser/ui... | anom0ly/WoWAnalyzer | analysis/warlockdestruction/src/modules/talents/ChannelDemonfire.js | JavaScript | agpl-3.0 | 1,558 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/docume... | Seldaiendil/meyeOS | devtools/qooxdoo-1.5-sdk/framework/source/class/qx/fx/effect/core/Scale.js | JavaScript | agpl-3.0 | 7,510 |
/*exported PushManager */
/*globals _, ko, OneSignal, UserManager */
var PushManager = {
serverHasPushEnabled: ko.observable(false),
userHasPushEnabled: function() {
var deferred = $.Deferred();
if(PushManager.serverHasPushEnabled()) {
OneSignal.push(function() {
... | rythos42/Campaign | js/app/managers/PushManager.js | JavaScript | agpl-3.0 | 2,573 |
ItemUrgency.$inject = ['metadata', 'gettext'];
export function ItemUrgency(metadata, gettext) {
metadata.initialize();
return {
scope: {urgency: '='},
template: [
'<span ng-if="urgency" class="urgency-label urgency-label--{{ urgency }}" ',
'ng-style="{backgroundColor: co... | lnogues/superdesk-client-core | scripts/superdesk-archive/directives/ItemUrgency.js | JavaScript | agpl-3.0 | 865 |
function initTabs(parentElem) {
var tabsElem;
if (parentElem != null) {
tabsElem = parentElem.find("div.tabs");
} else {
tabsElem = $("div.tabs");
}
var itemsElem = tabsElem.find("div.tabsItem");
itemsElem.unbind('click')... | akuz/readrz-public | rz-www-search/src/main/webapp/js/tabs.js | JavaScript | agpl-3.0 | 697 |
var conf = {};
// Run the Kiwi server under a different user/group
conf.user = "";
conf.group = "";
// Log file location
conf.log = "kiwi.log";
/*
* Server listen blocks
*/
// Do not edit this line!
conf.servers = [];
// Example server block
conf.servers.push({
port: process.env.PORT || 7788,
addres... | pogoapp/KiwiIRC | config.example.js | JavaScript | agpl-3.0 | 4,680 |
/**
* Roundcube plugin - Keyboard Shortcuts NG
*
* Configurable keyboard shortcuts for Roundcube Webmail
*
* @author Bostjan Skufca <bostjan {at} a2o.si>
* @author Teon d.o.o.
* @licence GNU AGPL
*
* Inspired by:
* - Patrik Kullman / Roland 'rosali' Liebl / Cor Bosman <roundcube@wa.ter.net>
* - https://githu... | teonsystems/roundcube-plugin-keyboard-shortcuts-ng | keyboard_shortcuts_ng_actions.js | JavaScript | agpl-3.0 | 7,902 |
/**
* @author Serhii Maksymchuk from Ubrainians for imCode
* 22.06.18
*/
define(
'imcms-super-admin-page-builder',
[
'imcms-bem-builder', 'imcms-components-builder', 'imcms-super-admin-tabs-builder', 'imcms-i18n-texts',
'jquery', 'imcms'
],
function (BEM, components, superAdminTabs, t... | imCodePartnerAB/imcms | src/main/webapp/imcms/js/builders/windows/imcms-super-admin-page-builder.js | JavaScript | agpl-3.0 | 2,077 |
import {mount} from 'enzyme'
import React from 'react'
import {IntlProvider} from 'react-intl'
import PercentFormatter from './PercentFormatter'
describe('tocco-ui', () => {
describe('FormattedValue', () => {
describe('typeFormatters', () => {
describe('PercentFormatter ', () => {
test('should for... | tocco/tocco-client | packages/core/tocco-ui/src/FormattedValue/typeFormatters/PercentFormatter.spec.js | JavaScript | agpl-3.0 | 873 |
BranchViewController = BaseViewController.extend( {
el: '#branch_view_container',
status_array: null,
country_array: null,
province_array: null,
e_province_array: null,
company_api: null,
initialize: function() {
this._super( 'initialize' );
this.edit_view_tpl = 'BranchEditView.html';
this.permission_id... | wakuki14/hrm | interface/html5/views/company/branch/BranchViewController.js | JavaScript | agpl-3.0 | 16,283 |
import { createLocalVue } from '@vue/test-utils'
import actorStore from './actorStore'
import Vuex from 'vuex'
import { cloneDeep } from 'lodash'
import { PARTICIPANT } from '../constants'
describe('actorStore', () => {
let localVue = null
let store = null
beforeEach(() => {
localVue = createLocalVue()
localVu... | nextcloud/spreed | src/store/actorStore.spec.js | JavaScript | agpl-3.0 | 2,938 |
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2016 SalesAgility Ltd.
*
* This program is free so... | salesagility-davidthomson/SuiteCRM | modules/AOS_Products_Quotes/line_items.js | JavaScript | agpl-3.0 | 38,987 |
import {_next} from './_next.js';
/**
* Yields all permutations starting from a given one and ending at the last
* permutation.
*
* @param {Array} sigma The starting permutation.
* @param {number} n The size of the permutation.
* @returns {IterableIterator} Iterator over all permutations between the starting one... | aureooms/js-permutation | src/_permutations.js | JavaScript | agpl-3.0 | 464 |
/**
* ******************************* Default locale
* **************************************************
*/
var uploadBatchConstants = {
tabLabel_home: "Home",
tabLabel_batch_detail: "Batch Detail",
tabLabel_web_scanner: "Web Scanner",
tabLabel_upload_batch: "Upload Batch",
associate_bcf_button: ... | kuzavas/ephesoft | dcma-webapp/src/main/webapp/i18n/uploadbatch/locale.js | JavaScript | agpl-3.0 | 5,999 |
// Functions in this file provide functionality which is not present in
// one of { InternetExplorer 8, Chrome v28, Firefox 3 } but may be present
// in later verisons of the browsers and/or libriries such as Ext/Prototype
// However the goal was to release a dependency-free package, thus some
// of the mehtods availab... | veronikaslc/phenotips | components/pedigree/resources/src/main/resources/pedigree/model/helpers.js | JavaScript | agpl-3.0 | 8,951 |
module.exports = {
plugins: [
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-class-properties', { loose: true }],
],
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: false,
},
],
],
}
| andreas-p/nextcloud-server | babel.config.js | JavaScript | agpl-3.0 | 246 |
module.exports = {
formatSeconds (time) {
let days = Math.floor(time % 31536000 / 86400);
let hours = Math.floor(time % 31536000 % 86400 / 3600);
let minutes = Math.floor(time % 31536000 % 86400 % 3600 / 60);
let seconds = Math.round(time % 31536000 % 86400 % 3600 % 60);
... | CrimsonXV/JukeBot | util/timeParser.js | JavaScript | agpl-3.0 | 709 |
export const getSharingIdFromUrl = url => {
const urlSearchParams = new URLSearchParams(url.search)
return urlSearchParams.get('sharing')
}
| nono/cozy-files-v3 | src/drive/web/modules/navigation/duck/utils.js | JavaScript | agpl-3.0 | 144 |
const { expect } = require('../../../../test-helper');
const serializer = require('../../../../../lib/infrastructure/serializers/jsonapi/certification-course-serializer');
const Assessment = require('../../../../../lib/domain/models/Assessment');
const CertificationCourse = require('../../../../../lib/domain/models/Cer... | sgmap/pix | api/tests/unit/infrastructure/serializers/jsonapi/certification-course-serializer_test.js | JavaScript | agpl-3.0 | 2,636 |
/*
* Javascript translation definition
* Example to help translation of some English strings in some js files
*
* $Id: language.js 46619 2013-07-10 22:36:54Z arildb $
*/
lang = {
"Very Secure" : "Sehr sicher",
"Secure" : "Sicher",
"Very Strong" : "Sehr stark",
"Strong" : "Stark",
"Average" : "Durchschnittlich",... | maestrano/tikiwiki | lang/de/language.js | JavaScript | lgpl-2.1 | 2,828 |
/**
* Attempts to download the requested package from the file and prompts for the
* authentication credentials on rejection.
*
* @author Alexander Ebert
* @copyright 2001-2019 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module W... | MenesesEvandro/WCF | wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Package/PrepareInstallation.js | JavaScript | lgpl-2.1 | 3,042 |
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it wi... | luisse/SENAF | app/webroot/js/users/addusuario.js | JavaScript | lgpl-3.0 | 6,466 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":48,"id":23,"methods":[{"el":19,"sc":2,"sl":16},{"el":39,"sc":2,"sl":21},{"el":47,"sc":2,"sl":41}],"name":"Seller","sl":10}]}
// JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "na... | STAMP-project/dspot | dspot-diff-test-selection/src/test/resources/clover_report/target/clover/report/fr/inria/stamp/tavern/Seller.js | JavaScript | lgpl-3.0 | 927 |
import React from "react";
import ReactDOM from "react-dom";
import { Button, ListGroup, ListGroupItem } from "react-bootstrap";
import { makeRequest } from "../network.js";
import { T } from "../translation.js";
const assert = require("assert");
export default class Status extends React.Component {
constructor(... | shadowsocks-plus/shadowsocks-plus | src/frontend/components/Status.js | JavaScript | lgpl-3.0 | 2,131 |
/**
* @flow
*/
import {bindActionCreators} from 'redux';
import {_} from 'underscore';
import {Set, List} from 'immutable';
export type DispatchedSyncAction = {
type: string,
data: any
};
export type DispatchedAsyncAction = (dispatch: any, getState: () => any) => Promise<any>;
export class AsyncAction {
... | freiheit-com/redux-actions | src/index.js | JavaScript | lgpl-3.0 | 3,148 |
module.exports = {
"extends": "airbnb",
"rules": {
"no-console": "off",
"no-bitwise": "off",
"no-plusplus": "off",
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"yoda": ["error", "never", { "exceptRange": true }],
"strict": ["error", "function"],
"no-param-reassign": ... | nna774/piet-testutils | .eslintrc.js | JavaScript | lgpl-3.0 | 464 |
var searchData=
[
['vertex',['Vertex',['../struct_felt_1_1_impl_1_1_mixin_1_1_poly_1_1_geom_3_01_t_derived_00_012_01_4_1_1_vertex.html#a2e726e2409ff33b2218009d90a43120c',1,'Felt::Impl::Mixin::Poly::Geom< TDerived, 2 >::Vertex::Vertex(const Grid *grid, const Pos &pos)'],['../struct_felt_1_1_impl_1_1_mixin_1_... | feltech/Felt | docs/search/functions_10.js | JavaScript | lgpl-3.0 | 1,062 |
const angular = require('angular');
require('angular-route');
require('angular-recaptcha');
function loadScripts(r, t) {
r.keys().forEach((k) => {
let name = k.substr(2).split('.')[0];
switch(t) {
case 'controller':
app.controller(name, r(k));
break;
case 'service':
app.service(name, r(k));
... | planet-github/planet-frontend | src/main.js | JavaScript | lgpl-3.0 | 1,110 |