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 Component from 'components/component';
import React from 'react';
import PropTypes from 'prop-types';
import {dataConnect} from 'relate-js';
import GoogleMap from './google-map';
@dataConnect(
() => ({
fragments: {
setting: {
_id: 1,
value: 1
}
},
variablesTypes: {
... | relax/relax | lib/shared/elements/google-maps/container.js | JavaScript | gpl-3.0 | 752 |
/**
* Copyright (c) 2006-2017, JGraph Ltd
* Copyright (c) 2006-2017, Gaudenz Alder
*/
(function()
{
/**
* Version
*/
EditorUi.VERSION = '@DRAWIO-VERSION@';
/**
* Overrides compact UI setting.
*/
EditorUi.compactUi = uiTheme != 'atlas';
/**
* Overrides compact UI setting.
*/
EditorUi.isElectronAp... | fisherMartyn/draw.io | war/js/diagramly/EditorUi.js | JavaScript | gpl-3.0 | 228,454 |
import Toast from '../../src/toast'
/** Test helpers */
import { getFixture, clearFixture, createEvent, jQueryMock } from '../helpers/fixture'
describe('Toast', () => {
let fixtureEl
beforeAll(() => {
fixtureEl = getFixture()
})
afterEach(() => {
clearFixture()
})
describe('VERSION', () => {
... | kmcurry/3Scape | public/bower_components/bootstrap/js/tests/unit/toast.spec.js | JavaScript | gpl-3.0 | 18,246 |
import {Component, tag, props} from 'Component'
import {html} from 'lit-html/lib/lit-extended'
@tag('chtr-link')
@props({
href: {
type: 'string'
}
})
export class ChtrLink extends Component {
styles () {
return `
:host {
display: block;
text-decoration: none;
color: var(--dark-colo... | Pablo-Rodriguez/chatters-client | src/components/ui/chtr-link/index.js | JavaScript | gpl-3.0 | 636 |
/**
* Free and simple to use loginDialog for ExtJS 3.x
*
* @author Albert Varaksin (ExtJS 2.x)
* @author Sumit Madan (ExtJS 3.x)
* @license LGPLv3 http://www.opensource.org/licenses/lgpl-3.0.html
* @version 1.0 beta, 07/12/2008 - ExtJS 2.x
* @version 1.0, 05/03/2009 - ExtJS 3.x
* @version 1.1, 07/18/2009 - E... | uprel/gisapp | admin/logindialog/js/Ext.ux.form.LoginDialog.js | JavaScript | gpl-3.0 | 17,557 |
// Testacular configuration
// Generated on Mon Feb 11 2013 01:23:43 GMT+0900
// base path, that will be used to resolve files and exclude
basePath = '.';
// list of files / patterns to load in the browser
files = [
MOCHA,
MOCHA_ADAPTER,
'test/lib/chai.js',
'test/lib/sinon-chai.js',
'test/lib/sinon.js',
... | kyo-ago/klepto | testacular.conf.js | JavaScript | gpl-3.0 | 1,418 |
(function () {
var gateways = new BinartaInMemoryGatewaysjs();
angular.module('binarta-humanresourcesjs-inmem-angular1', [])
.provider('inmemBinartaHumanResourcesGateway', proxy(gateways.hr));
function proxy(gateway) {
return function() {
this.gateway = gateway;
thi... | binarta/binartajs-angular1 | src/binarta-humanresources-inmem-angular.js | JavaScript | gpl-3.0 | 409 |
import { connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import * as productActionCreators from '../actions/index.es6.js';
import ProductModelsAttributes from '../components/ProductModelsAttributes.es6.jsx';
const mapStateToProps = (state) => {
return {
products: state.products
... | manufarfaro/jebri-sample | app/assets/javascripts/containers/ProductModelsAttributesContainer.js | JavaScript | gpl-3.0 | 650 |
define({
"appCopyright": "All Rights Reserved",
"_widgetLabel": "ส่วนท้าย"
}); | EsriCanada-CE/ecce-app-challenge-2017 | Team_mAppers/app/themes/TabTheme/widgets/Footer/nls/th/strings.js | JavaScript | gpl-3.0 | 98 |
/**
* Created by itsmurfs on 17/08/14.
*/
if($===undefined)
//Use the one provided by django admin
$ = django.jQuery;
$(document).ready(function(){
$("form").submit(function() {
embedded_hidden_input = $(".embedded_fields input[type=hidden]");
if (embedded_hidden_input.length !== 0) {... | MeMpy/django-mongoadminforms | mongoadminforms/static/mongoadminforms/js/embedded_model_field_widget.js | JavaScript | gpl-3.0 | 616 |
function getCookieid() {
var cookies = document.cookie.split(";");
for(var i=0; i < cookies.length; i++) {
var gname = cookies[i].split("=");
if(gname[0].trim() == "cookie_cmput404_author_id") {
return gname[1];
}
}
return "";
}
$(document).ready(function() {
function getCookieid() {
v... | CMPUT404-Fall2016/cmput404-project | static/js/friendsdata.js | JavaScript | gpl-3.0 | 9,889 |
/**
Projeto OTTC - Operadora de Tecnologia de Transporte Compartilhado
Copyright (C) <2017> Scipopulis Desenvolvimento e Análise de Dados Ltda
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, eit... | scipopulis/ottc_backend | routes/user_api.js | JavaScript | gpl-3.0 | 4,415 |
var a00755 =
[
[ "SoC Library Error Codes", "a00756.html", "a00756" ],
[ "Defines", "a00935.html", "a00935" ],
[ "Types", "a00936.html", "a00936" ],
[ "Functions", "a00937.html", "a00937" ]
]; | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | nrf51_sdk/Documentation/s110/html/a00755.js | JavaScript | gpl-3.0 | 208 |
/**
* WCSAM Module script - Buy One Click
* @author DevDiamond <me@devdiamond.com>
* @version 1.0.0
*/
jQuery( function($)
{
/**
* @var object boc_obj - Global object
*/
var boc = {
// Scroll Top
scrollTopSave: 0,
// Ajax URL
ajax: boc_obj.ajaxurl,
// Aj... | DevDiamondCom/wc-snippets-and-mods | modules/buy-one-click/assets/js/boc-form.js | JavaScript | gpl-3.0 | 7,879 |
const nodemailer = require('nodemailer')
// let emailObject = {
// to: abc@xyz.com,
// subject: 'Testing mail',
// body: 'This is a simple silly testing mail sent from MCKVCC'
// }
exports = module.exports = function(emailObject) {
const transporter = nodemailer.createTransport({
service: 'Gmail',
auth:... | mckvie-cc/coder-dashboard | utils/mailer.js | JavaScript | gpl-3.0 | 710 |
var YDom = YAHOO.util.Dom;
// YConnect.setDefaultPostHeader(false);
// YConnect.initHeader("Content-Type", "application/xml; charset=utf-8");
// YConnect.
var YEvent = YAHOO.util.Event;
CStudioAuthoring.Dialogs = CStudioAuthoring.Dialogs || {};
/**
* Submit to go live
*/
CStudioAuthori... | rart/studio2 | src/main/webapp/default-site/static-assets/components/cstudio-dialogs/upload-asset-dialog.js | JavaScript | gpl-3.0 | 8,936 |
'use strict';
module.exports = {
old: {
name: '.',
title: '.',
description: '',
version: '0.0.1',
language: {id: 'en', name: 'English'},
translations: [{id: 'nl-nl', name: 'nl-nl'}],
license: '',
author: '',
resources: [{
path: 'ddf--concepts.csv',
name: 'ddf--concepts... | VS-work/git-csv-diff | test/e2e/data/commit-3-datapackage.js | JavaScript | gpl-3.0 | 7,281 |
/* 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/. */
import AuthErrors from '../auth-errors';
import BaseExperiment from './base';
/**
* Track metrics for the passwo... | shane-tomlinson/fxa-content-server | app/scripts/lib/experiments/password-strength.js | JavaScript | mpl-2.0 | 1,200 |
/* global ThreadSafeChromeUtils */
try {
// We might be running without privileges, in which case it's up to the
// harness to give us the 'ctypes' object.
Components.utils.import("resource://gre/modules/ctypes.jsm");
} catch (e) {
}
function open_ctypes_test_lib() {
return ctypes.open(do_get_file(ctypes.libr... | Yukarumya/Yukarum-Redfoxes | toolkit/components/ctypes/tests/unit/head.js | JavaScript | mpl-2.0 | 2,805 |
/* -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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 gTestfile = '10.1.4-1.j... | mozilla/rhino | testsrc/tests/ecma_3/ExecutionContexts/10.1.4-1.js | JavaScript | mpl-2.0 | 1,456 |
// ----------------------------------------------------------------------------
//
// browserid-verify.js - remote or local verification of a browserid assertion
//
// 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 ... | chilts/browserid-verify-node | browserid-verify.js | JavaScript | mpl-2.0 | 6,196 |
var express = require('express');
var app = express();
// configure Express
app.configure(function() {
app.use(express.logger());
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.static('www'));
});
app.listen(process.env.PORT); | jamon/cards | app.js | JavaScript | mpl-2.0 | 272 |
initSidebarItems({"constant":[["navigationStart_getterinfo",""],["sAttributes",""]],"fn":[["CreateInterfaceObjects",""],["DefineDOMInterface",""],["GetProtoObject",""],["Wrap",""],["_finalize",""],["_trace",""],["get_navigationStart",""]],"mod":[["PerformanceTimingConstants",""]],"static":[["Class",""],["PrototypeClass... | susaing/doc.servo.org | script/dom/bindings/codegen/Bindings/PerformanceTimingBinding/sidebar-items.js | JavaScript | mpl-2.0 | 424 |
'use strict';
app.component("eeaFooter", {
template: `<div id="pagefoot" style="max-width: none; border: none;">
<p><a href="http://www.eea.europa.eu/"><b>European Environment Agency</b></a> | Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark - Phone: +45 3336 7100</p>
</div>
`
});
| g-bo/eea.webforms.generator | src/client/webform/assets/components/eeafooter.js | JavaScript | mpl-2.0 | 305 |
var searchData=
[
['directory_20api',['Directory API',['../c_dir.html',1,'c_APIs']]],
['doubly_20linked_20list_20api',['Doubly Linked List API',['../c_doubly_linked_list.html',1,'c_APIs']]],
['data_20connection_20service',['Data Connection Service',['../c_le_data.html',1,'legatoServicesApplication']]],
['dynami... | legatoproject/legato-docs | 14_07/search/all_4.js | JavaScript | mpl-2.0 | 1,967 |
/* 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 ChiYoung Choi, Yoav Gurevich, Kieran Sedgwick,
* Alina Shtramwasser, Sene... | sedge/opendojo | server/models/message.js | JavaScript | mpl-2.0 | 880 |
import { mount } from 'enzyme';
import * as React from 'react';
import { Provider } from 'react-redux';
import ErrorPage, { ErrorPageBase } from 'core/components/ErrorPage';
import { createApiError } from 'core/api';
import { loadErrorPage } from 'core/reducers/errorPage';
import { getErrorComponent } from 'core/utils... | aviarypl/mozilla-l10n-addons-frontend | tests/unit/core/components/TestErrorPage.js | JavaScript | mpl-2.0 | 2,319 |
/* Any copyright is dedicated to the public domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// Test that the onmozbrowsermetachange event works.
"use strict";
SimpleTest.waitForExplicitFinish();
browserElementTestHelpers.setEnabledPref(true);
browserElementTestHelpers.addPermission();
function create... | Yukarumya/Yukarum-Redfoxes | dom/browser-element/mochitest/browserElement_Metachange.js | JavaScript | mpl-2.0 | 7,376 |
$(function () {
$('.-section').each(function () {
var $this = $(this),
hasDataImage = $this.attr('data-image');
if (hasDataImage) {
$this.css('background-image', 'url(' + hasDataImage + ')');
}
});
}());
| KrasiStoyanov/Piks-theme | Source/PiksTheme.Client/scripts/custom-background-image.js | JavaScript | mpl-2.0 | 233 |
var Lab = require('lab');
var lab = exports.lab = Lab.script();
var experiment = lab.experiment;
var test = lab.test;
var before = lab.before;
var after = lab.after;
var expect = require('code').expect;
var config = require('../../../lib/fixtures/projects').create;
var server;
before(function(done) {
require('../.... | sedge/publish.webmaker.org | test/api/handlers/projects/create.js | JavaScript | mpl-2.0 | 5,636 |
/*
* 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 2016, Joyent, Inc.
*/
/*
* CN interaction helpers
*/
'use strict';
var assert = require(... | joyent/sdc-fwapi | test/lib/cn.js | JavaScript | mpl-2.0 | 12,721 |
var Hapi = require('hapi');
var server = new Hapi.Server();
server.register({register: require('./')}, function() {
var config = server.plugins['hapi-config'].CurrentConfiguration;
var plugins = config.get('plugins');
console.log(plugins.security['seed-data'].MAIN.users);
server.connection({
... | Covistra/hapi-config | sample.js | JavaScript | mpl-2.0 | 577 |
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Image from '../components/image'
const NotFoundPage = () => (
<Layout>
<SEO title="Mozilla India" />
<div class="container">
<article class="notification is-danger">
<p ... | MozillaIndia/mozillaindia.github.io | src/pages/404.js | JavaScript | mpl-2.0 | 1,687 |
import React from 'react';
import ReactDOM from 'react-dom';
import OverflowMenu from './OverflowMenu';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<OverflowMenu/>, div);
});
| project-abigail/app | src/views/OverflowMenu.test.js | JavaScript | mpl-2.0 | 234 |
import Serializer from './application';
export default class PermissionSerializer extends Serializer {}
| hashicorp/consul | ui/packages/consul-ui/app/serializers/permission.js | JavaScript | mpl-2.0 | 105 |
/*
* The "kaltura player" embedPlayer interface for multi DRM
*/
(function (mw, $) {
"use strict";
mw.EmbedPlayerMultiDRM = {
//Instance Name
instanceOf: 'MultiDRM',
bindPostfix: '.multiDRM',
playerPrefix: 'EmbedPlayerMultiDRM',
// Flag to only load the video ( not play it )
onlyLoadFlag: false,
... | DBezemer/mwEmbed | modules/MultiDRM/resources/mw.EmbedPlayerMultiDRM.js | JavaScript | agpl-3.0 | 36,092 |
/* jshint esnext: true, node: true */
'use strict';
var BaseError = require('../../../../shared/base-error');
export default class ServerError extends BaseError {
constructor(name, message, data) {
super(message);
this.originalErrorName = name;
this.data = data;
}
} | Bornholm/yasp | lib/client/js/store/errors/server-error.js | JavaScript | agpl-3.0 | 286 |
/*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | venturehive/canvas-lms | app/jsx/bundles/react_outcome_alignment.js | JavaScript | agpl-3.0 | 1,116 |
require('../support')
import ScrollListener from '../../../src/components/ScrollListener'
import { mount } from 'enzyme'
import React from 'react'
import { spyify, unspyify } from '../../support/helpers'
describe('ScrollListener', () => {
var onBottom
beforeEach(() => {
onBottom = spy(() => {})
spyify(win... | Hylozoic/hylo-redux | test/client/components/ScrollListener.test.js | JavaScript | agpl-3.0 | 966 |
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its S... | ONLYOFFICE/sdkjs | word/Editor/GraphicObjects/Format/ChartSpacePrototype.js | JavaScript | agpl-3.0 | 20,882 |
// AUTOTEST GENERATOR: {"endpoint":"infomedia","params":{"pid":"870971-anmeld:34146233"}}
//
//
// AUTOMATED UNIT TEST
// DO NOT EDIT
//
//
const endpoint = 'infomedia';
const params = {pid: '870971-anmeld:34146233'};
const expected = {
statusCode: 200,
data: [
{
id: 'abcdefgh',
html: '<div>some co... | DBCDK/serviceprovider | src/transformers/__tests__/infomedia.auto.js | JavaScript | agpl-3.0 | 2,613 |
/* Chris
Victoria Road : Kerning City Repair Shop (103000006)
Refining NPC:
* Minerals
* Jewels
* Special - Iron Hog's Metal Hoof x 100 into Steel Plate
* Claws
*/
var status = 0;
var selectedType = -1;
var selectedItem = -1;
var item;
var mats;
var matQty;
var... | ronancpl/MapleSolaxiaV2 | scripts/npc/1052003.js | JavaScript | agpl-3.0 | 8,492 |
// Tradity.de Server
// Copyright (C) 2016 Tradity.de Tech Team <tech@tradity.de>
// 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 optio... | tradity/tradity-server | stockloaders/abstractloader.js | JavaScript | agpl-3.0 | 5,655 |
define([
'jquery',
'gizmo/superdesk',
config.guiJs('livedesk', 'models/themes'),
'tmpl!livedesk>configure/themes',
'tmpl!livedesk>configure/embed'
], function( $, Gizmo) {
return Gizmo.View.extend({
tmplData: {},
events: {
'[name="Theme"]': { change: 'change'}
}... | vladnicoara/SDLive-Blog | plugins/livedesk/gui-resources/scripts/js/views/configure/themes.js | JavaScript | agpl-3.0 | 3,824 |
/*
Sélectionne le texte de l'élément fourni.
*/
function adminSelectionneTexte(conteneur)
{
var oConteneur = document.getElementById(conteneur);
if (window.getSelection)
{
var selection = window.getSelection();
/* Safari. */
if (selection.setBaseAndExtent)
{
selection.setBaseAndExtent(oConteneur, 0, ... | jpfleury/squeletml | admin/js/squeletml.js | JavaScript | agpl-3.0 | 663 |
import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin, {
/** Configure how to handle query params. */
queryParams: {
offset: {
refreshModel: true,
scope: 'c... | DINA-Web/collections-ui | app/routes/collectionobject.js | JavaScript | agpl-3.0 | 761 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2010 Derrell Lipman
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/documents/epl-v10.php
See the LI... | Seldaiendil/meyeOS | devtools/qooxdoo-1.5-sdk/framework/source/class/qx/ui/treevirtual/MTreePrimitive.js | JavaScript | agpl-3.0 | 6,681 |
import Component from '@ember/component';
import frame_listener from '../utils/frame_listener';
import CoughDrop from '../app';
export default Component.extend({
willDestroyElement: function() {
frame_listener.unload();
},
actions: {
}
});
| CoughDrop/coughdrop | app/frontend/app/components/integration.js | JavaScript | agpl-3.0 | 253 |
function transferTS(tsURL,videoWrapper){
if(!videoWrapper) videoWrapper='#video-wrapper';
var vjsParsed,
video,
mediaSource;
// 定义通用的事件回调处理函数,只做打印事件类型
function logevent (event) {
console.log(event);
}
// ajax
let xhr = new XMLHttpRequest();
xhr.open('GET', tsURL);... | admpub/nging | public/assets/backend/js/behaviour/page/video-ts.js | JavaScript | agpl-3.0 | 4,876 |
'use strict';
let logger = require('../logging').getLogger(__filename);
exports.handlingError = function () {
return function (err, req, res, next) {
if (err instanceof Error) {
if (err.message === '401') {
logger.warn('User has no authentication', req, {httpStatusCode: 401, er... | transition-connect/transition-connect-server | commonLib/serverLib/lib/error/errors.js | JavaScript | agpl-3.0 | 906 |
class HealingValue {
_regular = 0;
/** Do not use this without really good reason! `effective` is almost always better; we WANT to include absorbed healing as this is most commonly related to mechanics that need to be removed and therefore significant. */
get regular() { return this._regular; }
_absorbed = 0;
... | mwwscott0/WoWAnalyzer | src/Parser/Core/Modules/HealingValue.js | JavaScript | agpl-3.0 | 946 |
// app/models/project.js
// load the things we need
var mongoose = require('mongoose');
var timestamps = require('mongoose-times');
// define the schema for our project model
var clientSchema = mongoose.Schema({
uuid : String,
createdBy : String,
createdByName : String,
logo : String,
name : { type: Str... | mapic/engine | models/client.js | JavaScript | agpl-3.0 | 814 |
/*
* This file is part of huborcid.
*
* huborcid 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.
*
* huborcid is distrib... | Cineca/OrcidHub | src/main/webapp/scripts/app/account/account.js | JavaScript | agpl-3.0 | 926 |
/*
* This file is part of huborcid.
*
* huborcid 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.
*
* huborcid is distrib... | Cineca/OrcidHub | src/main/webapp/bower_components/angular-i18n/angular-locale_th-th.js | JavaScript | agpl-3.0 | 4,018 |
/* @flow */
const autoBind = require('auto-bind')
const _ = require('lodash')
const path = require('path')
const conflictHelpers = require('./conflict')
const { TRASH_DIR_NAME } = require('../../../core/remote/constants')
/*::
import type cozy from 'cozy-client-js'
import type Pouch from '../../../core/pouch'
impor... | nono/cozy-desktop | test/support/helpers/remote.js | JavaScript | agpl-3.0 | 3,218 |
var clover = new Object();
// JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]}
clover.pageData = {"classes":[{"el":128,"id":252826,"methods":[{"el":56,"sc":4,"sl":50},{"el":58,"sc":2,"sl":44},{"el":67,"sc":2,"sl":61},{"el":76,"sc":2,"sl":70},{"el":85,"sc":2,"sl":78},{"el":90,"sc":2,"sl":87},{"el... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/operator/nio/RowFilteringTableModel.js | JavaScript | agpl-3.0 | 1,241 |
'use strict';
describe("PersistentFactoryNameResolver", function() {
var PersistentFactoryNameResolver;
beforeEach(module('isa', function($provide) {
$provide.value('$rootScope', {});
}));
beforeEach(inject(function(_PersistentFactoryNameResolver_) {
PersistentFactoryNameResolver = _PersistentFactoryNameReso... | SteveFortune/isometrica-app | client/app/tests/services.spec.js | JavaScript | agpl-3.0 | 769 |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import AuthenticatedComponent from "../../../components/AuthenticatedComponent";
import connectToStores from "../../../utils/connectToStores";
import TopNavBar from '../../../components/TopNavB... | nekuno/client | src/js/pages/Proposals/Edit/PreviewPage.js | JavaScript | agpl-3.0 | 9,948 |
/**
* German translation for bootstrap-datetimepicker
* Sam Zurcher <sam@orelias.ch>
*/
;(function($){
$.fn.fdatetimepicker.dates['de'] = {
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"],
daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam", "Son"],
d... | ervinb/Airesis | app/assets/javascripts/i18n/bootstrap-datetimepicker.de.js | JavaScript | agpl-3.0 | 823 |
'use strict';
var zotero = require('..'),
nock = require('nock'),
B = require('bluebird');
describe('When using Promises', function () {
before(function () {
zotero.promisify(B.promisify.bind(B));
});
after(function () { zotero.promisify.restore(); });
describe('Zotero.Client', function () {
var... | inukshuk/zotero-node | test/promises.js | JavaScript | agpl-3.0 | 1,930 |
$(function () {
var AssessmentsTable = $('#assessments-table').dataTable().api();
/*var AssessmentsTable = $('#assessments-table').DataTable({
dom: 'rtip',
iDisplayLength: 25,
"scrollX": true,
buttons: [
'colvis',
{
extend: 'csv',
text: 'Download... | EASOL/easol | assets/js/views/assessments.js | JavaScript | agpl-3.0 | 1,053 |
define([ "chroma-js", "map", "sidebar", "tabs", "container", "meshstats",
"legend", "linklist", "nodelist", "simplenodelist", "infobox/main",
"proportions", "forcegraph", "title", "about", "datadistributor",
"filters/filtergui" ],
function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Le... | freifunk-en/meshflix | lib/gui.js | JavaScript | agpl-3.0 | 3,448 |
define((require, exports, module)=>{
const Model = require('model');
const Org = require('models/org');
class TeamType extends Model.BaseModel {
}
TeamType.define({module, fields: {
name: {type: 'text', trim: true, required: true, maxLength: 200, unique: {scope: 'org_id'}},
org_id: 'belongs_to',
... | jacott/piki-scoreboard | app/models/team-type.js | JavaScript | agpl-3.0 | 421 |
//MWF.require("MWF.widget.PinYin", null, false);
MWF.xDesktop.requireApp("process.Xform", "Combox", null, false);
/** @class Address 地址选择组件。
* @o2cn 地址选择
* @example
* //可以在脚本中获取该组件
* //方法1:
* var address = this.form.get("name"); //获取组件
* //方法2
* var address = this.target; //组件本身的事件和脚本中获取
* @extends MWF.xApplica... | o2oa/o2oa | o2web/source/x_component_process_Xform/Address.js | JavaScript | agpl-3.0 | 9,888 |
console.log("Injected script loaded");
| kiboit/phast | test/test-app/js/injected.js | JavaScript | agpl-3.0 | 39 |
import AbstractFlash from './AbstractFlash';
class NoticeFlash extends AbstractFlash {
getName() {
return 'notice';
}
getAdditionalCssClass() {
return 'success';
}
}
export default NoticeFlash;
| panter/mykonote | client/src/NoticeFlash.js | JavaScript | agpl-3.0 | 213 |
import {GraphQLObjectType, GraphQLString, GraphQLFloat} from 'graphql'
import _ from 'lodash'
const get = _.get
const coordinates = exifGps => {
let lat = exifGps.GPSLatitude
let lon = exifGps.GPSLongitude
const latRef = exifGps.GPSLatitudeRef || 'N'
const lonRef = exifGps.GPSLongitudeRef || 'W'
lat = (lat... | madjam002/pix | packages/pix-server/src/graph/types/exif.js | JavaScript | agpl-3.0 | 2,607 |
MWF.xApplication.service.InvokeDesigner.LP = {
"title": "InvokeEditor",
"newInvoke": "Create Invoke",
"invokeLibrary": "Invoke Library",
"property": "Property",
"include": "Include",
"id": "ID",
"name": "Name",
"alias": "Alias",
"description": "Description",
"validated": "Is th... | o2oa/o2oa | o2web/source/x_component_service_InvokeDesigner/lp/en.js | JavaScript | agpl-3.0 | 2,581 |
(function() {
var firstRun = !window.polis;
window.polis = window.polis || {};
function cookiesEnabledAtTopLevel() {
// create a temporary cookie
var soon = new Date(Date.now() + 1000).toUTCString();
var teststring = "_polistest_cookiesenabled";
document.cookie = teststring + "=1; expires=" + so... | pol-is/polisClientParticipation | api/polisHost.js | JavaScript | agpl-3.0 | 2,407 |
exports.d = 3 ;
exports.m = 8 ;
exports.A = [
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ] ,
[ 1 , 1 , 1 ]
] ;
exports.b = [ -1000 , -0.001 , 15 , 23 , 10 , 10.0001 , 100 , 999999 ] ;
// ^
// ... | aureooms/js-cg | test/js/data/rayshoot/parallel-lines-3-0-0-1-1.js | JavaScript | agpl-3.0 | 769 |
function Character() {
PIXI.DisplayObjectContainer.call(this);
this.shadow = PIXI.Sprite.fromImage('sprites/shadow.png');
this.shadow.anchor.y = this.shadow.anchor.x = .5;
this.addChild(this.shadow);
this.actions = {};
this.activeAction = 'default';
this.experience = 0;
this.life = this.maxLif... | mafik/dungeon-loot | actors.js | JavaScript | agpl-3.0 | 26,410 |
const express = require('express');
const router = express.Router();
const models = require('../../models/index');
/* GET listing. */
// Get list of defined models
router.get('/', function (req, res, next) {
let definedModels = Object.keys(models).filter(function(model){
"use strict";
return model... | LearnNavi/Naranawm | routes/v1/models.js | JavaScript | agpl-3.0 | 1,741 |
import '../../src/js/jquery-wrapper.js';
import '../../src/js/jquery-ui-wrapper.js';
import 'jquery.browser';
import '../../BookReader/dragscrollable-br.js';
import 'jquery-colorbox';
import BookReader from '../../src/js/BookReader.js';
import * as util from '../../src/js/plugins/plugin.vendor-fullscreen.js';
let br;... | openlibrary/bookreader | tests/plugins/plugin.vendor-fullscreen.test.js | JavaScript | agpl-3.0 | 2,078 |
import { createBrowserHistory } from 'history';
export let history;
export default historyConfig => {
history = createBrowserHistory(historyConfig);
return history;
}; | blinard/better-bookmarks | web/src/services/History.js | JavaScript | agpl-3.0 | 176 |
/*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
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, o... | voidxnull/libertysoil-site | src/store/index.js | JavaScript | agpl-3.0 | 3,012 |
OC.L10N.register(
"bookmarks",
{
"Bookmarks" : "Отметки",
"Bookm." : "Отмет.",
"No file provided for import" : "Не беше предоставен файл за зареждане",
"Unsupported file type for import" : "Неподдържан файл за внасяне.",
"Bookmark added. You can close the window now." : "Отметката добавена. ... | tflidd/bookmarks | l10n/bg_BG.js | JavaScript | agpl-3.0 | 2,743 |
// Generated by CoffeeScript 1.8.0
var Tainted, jsonselect;
jsonselect = require('../lib/jsonselect-tainted.js');
Tainted = (function() {
function Tainted(target) {
if (!(this instanceof Tainted)) {
return new (Function.prototype.bind.apply(Tainted, [null].concat(Array.prototype.slice.call(arguments))));
... | yetanotherusernamebecausegithubisbugged/tainted | lib/tainted.js | JavaScript | agpl-3.0 | 4,174 |
// constraint is an object with index and point information that constrains the control
// point to an x/y position.
//
// for example:
// constraint = [
// { "index" : 2, "position": [ 30, 20] },
// { "index" : 4, "position": [ -30, 25] }
// ];
//
// coordinates are absolute
//
function oblong_circle_constra... | abetusk/scratch | src/teach/p5js-sandbox/oblong-circle-constrained_v0.1.5.js | JavaScript | agpl-3.0 | 7,265 |
"use strict";
//
// blackhighlighter.js
// Black Highlighter main Node.JS **server-side** routines
// Copyright (C) 2012-2014 HostileFork.com
//
// 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 F... | hostilefork/blackhighlighter | blackhighlighter.js | JavaScript | agpl-3.0 | 19,143 |
require('../../lib/setup');
var hoodieRequest = require('../../../src/hoodie/request');
describe('request()', function() {
beforeEach(function() {
var ajaxPromise = this.ajaxPromise = {};
ajaxPromise.done = this.sandbox.stub().returns(ajaxPromise);
ajaxPromise.fail = this.sandbox.stub().returns(ajaxPromis... | jcolag/mindlessChat | node_modules/hoodie-server/node_modules/hoodie/test/specs/hoodie/request.spec.js | JavaScript | agpl-3.0 | 5,170 |
class BackgroundImage{
static getImageBackgroundFromConfig(configName, forceConfigs){
let bgrounds,paramPrefix,bStyles,index, i;
if(forceConfigs){
bgrounds = forceConfigs;
paramPrefix = configName;
bStyles = [];
index = 1;
while(bgrounds[... | ChuckDaniels87/pydio-core | core/src/plugins/gui.ajax/res/js/ui/ReactUI/BackgroundImage.js | JavaScript | agpl-3.0 | 3,099 |
var ELEMENTS_QUERY, decodeEntities, lazy_load_image_in_noscript_wrapper, lazy_load_images, mediaQueryList, process_intersection_observer_entry, show_all_images;
ELEMENTS_QUERY = "noscript[data-lazy=\"lazy-load\"]";
decodeEntities = function(encodedString) {
var textArea;
// required for IE and Safari
textArea =... | qkunst/collectiebeheer | app/javascript/lazy_load_images.js | JavaScript | agpl-3.0 | 2,470 |
const { expect, knex, generateValidRequestAuhorizationHeader, insertUserWithRolePixMaster, cleanupUsersAndPixRolesTables } = require('../../test-helper');
const server = require('../../../server');
const _ = require('lodash');
describe('Acceptance | API | Certification Course', () => {
describe('GET /api/admin/cert... | sgmap/pix | api/tests/acceptance/application/certification-course-controller_test.js | JavaScript | agpl-3.0 | 8,622 |
// JSROOTCore.js
//
// core methods for Javascript ROOT IO.
//
// Globals
BIT = function(n) { return 1 << (n); }
var EAxisBits = {
kTickPlus : BIT(9),
kTickMinus : BIT(10),
kAxisRange : BIT(11),
kCenterTitle : BIT(12),
kCenterLabels : BIT(14),
kRotateTitle : BIT(15),
kPalette ... | benni0815/root | etc/http/JSRootIO/scripts/JSRootCore.js | JavaScript | lgpl-2.1 | 64,372 |
#!/usr/bin/env node
/*
* This file is part of Cockpit.
*
* Copyright (C) 2019 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (... | cockpituous/cockpit | test/common/firefox-cdp-driver.js | JavaScript | lgpl-2.1 | 17,129 |
//declaring javascript methods
//this way would be easier to read the code
cocktail = {
path: '', //path to the base cocktail folder
config: {} //basic app info for embedding
};
cocktail.js = {};
cocktail.swf = {};
cocktail.browser = {
scroll: {} //scrollbar related methods
} ;
/**
* Save cocktail path... | rafaelcordoba/cocktail-demo | www/cocktail/js/cocktail.js | JavaScript | lgpl-2.1 | 3,894 |
/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.3.1
*/
/**
* @module menu
* @description <p>The Menu family of components features a collection of
* controls that make it easy to add menus to your website or web applic... | cogtool/cogtool | java/edu/cmu/cs/hcii/cogtool/resources/ExportToHTML/menu.js | JavaScript | lgpl-2.1 | 221,428 |
YUI.add("series-marker",function(e,t){e.MarkerSeries=e.Base.create("markerSeries",e.CartesianSeries,[e.Plots],{_setStyles:function(t){return t.marker||(t={marker:t}),t=this._parseMarkerStyles(t),e.MarkerSeries.superclass._mergeStyles.apply(this,[t,this._getDefaultStyles()])}},{ATTRS:{type:{value:"marker"}}})},"patched-... | FuadEfendi/lpotal | tomcat-7.0.57/webapps/ROOT/html/js/aui/series-marker/series-marker-min.js | JavaScript | lgpl-2.1 | 382 |
/*************************
NOTE: To ensure all constants are loaded,
this must be declared after scene.js
**************************/
/*******************************
* Handy function to get degree from rotation matrix
// Parameter element should be a DOM Element object.
// Returns the rotation of the element in de... | epik/wAMP | STAGING/audiophile.wamp/scripts/widgets.js | JavaScript | lgpl-2.1 | 26,661 |
import '../Terms/Terms.css';
import $ from 'jquery';
import Footer from '../Footer/Footer.react';
import PropTypes from 'prop-types';
import StaticAppBar from '../StaticAppBar/StaticAppBar.react';
import React, { Component } from 'react';
class Privacy extends Component {
constructor(props) {
super(props);
t... | RMCoder198/chat.susi.ai | src/components/Privacy/Privacy.react.js | JavaScript | lgpl-2.1 | 16,952 |
var interface_c_g_t_k_fixed =
[
[ "FIXED", "interface_c_g_t_k_fixed.html#a1925c0249fec2f9cec85a596918bdf8d", null ],
[ "init", "interface_c_g_t_k_fixed.html#a4061944fd53a0e751dd598a5d8314657", null ],
[ "moveWithWidget:andX:andY:", "interface_c_g_t_k_fixed.html#afd6ffc0070ee2caadfeae4bfde329822", null ],
... | coregtk/coregtk | docs/html/interface_c_g_t_k_fixed.js | JavaScript | lgpl-2.1 | 427 |
var searchData=
[
['geq',['Geq',['../_external_objects_8h.html#a35c86fc94447ac21648d2d758df4b62ca7720707ff0053ffac468beef36f14355',1,'ExternalObjects.h']]],
['gt',['Gt',['../_external_objects_8h.html#a35c86fc94447ac21648d2d758df4b62ca5537aeeb812d680758d86f3a7a5f4008',1,'ExternalObjects.h']]],
['gtest_5ferror',['G... | fmartinelli/libqif | html/search/enumvalues_67.js | JavaScript | lgpl-2.1 | 970 |
const Sequelize = require('sequelize');
const db = require('../');
const Review = db.define('Review', {
review: {
type: Sequelize.STRING,
allowNull: false,
},
rating: {
type: Sequelize.INTEGER,
allowNull: false,
},
// timestamps: false,
},
{
timestamps: false,
},
);
module.exports = ... | Fuego-HIR/WorkoutBuddy | server/db/Reviews/ReviewModel.js | JavaScript | lgpl-3.0 | 328 |
/**
* @ngdoc function
* @name histograph.controller:CrowdCtrl
* @description
* # CrowdCtrl
* Handle crowdsourcing notification and points
*
*/
angular.module('histograph')
.controller('CrowdCtrl', function($scope, $log, $state, $timeout, UserFactory) {
$scope.short_delay = 180 * 1000;
$scop... | CVCEeu-dh/histograph | client/src/js/controllers/crowd.js | JavaScript | lgpl-3.0 | 3,219 |
define(["CC"],
function(CC) {
if (!UNIT_TEST) return;
var uexShakeViewCase = {};
uexShakeViewCase.open = function(){
var params ={
x:0,
y:window.screen.availHeight / 2,
w:300,
h:300
};
uexShakeView.open(params);
CC.confirm("检测UI是否正确", f... | android-plugin/uexJPush | assets/widget/case/js/uexShakeView.js | JavaScript | lgpl-3.0 | 839 |
/**
*Dragoon Project
*Arizona State University
*(c) 2014, Arizona Board of Regents for and on behalf of Arizona State University
*
*This file is a part of Dragoon
*Dragoon is free software: you can redistribute it and/or modify
*it under the terms of the GNU Lesser General Public License as published by
*the Fr... | Dragoon-Lab/LaitsV3 | tests/scripts/bugTests/2456.js | JavaScript | lgpl-3.0 | 3,518 |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | Javlo/javlo | src/main/webapp/WEB-INF/template-plugin/fancyBox_2.1.5/source/helpers/jquery.fancybox-thumbs.js | JavaScript | lgpl-3.0 | 3,835 |
import moment from 'moment';
import { escape } from 'lodash-es';
import { getDatePresentation, fromDuration } from './util';
import renderingContext from '../renderingContext';
import utils from '../../utils';
import system from '../../model/system';
const presenters = renderingContext.presenterRegistry;
// Presente... | MetaSolutionsAB/rdforms | src/view/jquery/text.js | JavaScript | lgpl-3.0 | 5,717 |
var predictors = (function () {
//Id
var id_predictors="#predictors",
id_editor="#editor",
id_graph="#graph",
id_sel_pred = "#sel_pred",
id_predList = "#predList",
id_predVarList="#predVarList",
id_predInfo = "#predInfo",
id_graphCanvas="#graphCanvas",
id_txtPredName="#txt_predName",
id_txtPredInit... | ik4tekniker/EMS-Insight | code/LIVINGLAB_UI/scripts/predictors.js | JavaScript | lgpl-3.0 | 19,672 |
'use strict';
angular.module('iframeScaffolder')
.config(function ($stateProvider, SCAFFOLDER) {
$stateProvider.state('json', {
url: '/json?' + Object.keys(SCAFFOLDER.state.params).join('&'),
templateUrl: 'app/json/json.html',
controller: 'JsonCtrl',
params: SCAFFOLDER.state.params
})... | pirhoo/iframe-scaffolder | src/app/json/json.js | JavaScript | lgpl-3.0 | 328 |