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 |
|---|---|---|---|---|---|
/* global define */
define([
'underscore',
'backbone',
'marionette',
'jquery',
'loglevel',
'./core',
'./ui'
], function(_, Backbone, Marionette, $, loglevel, c, ui) {
// Set configuration options for corresponding APIs
c.templates.set(c.config.get('templates', {}));
c.controls.... | chop-dbhi/omop_harvest | omop_harvest/static/cilantro/js/cilantro/setup.js.src.js | JavaScript | bsd-2-clause | 6,345 |
/**
* @module lpp
* @module router
* @author fsjohnhuang
* @description 路由器
* 这里将url切割为下列2个部分
* ns 命名空间, 分割为4个部分
* protocol: 协议
* host: 主机名/域名
* port: 端口号
* pathname: 目录路径
* hash: 包含#的锚, 又分割为下列2个部分
* hashPrefix: 锚前缀,#!
* fragment: 锚,又分割为下列2个部分
* id: 锚id (不区分大小写)
* queryString: 查询参数(区分大小写)
*... | fsjohnhuang/lpp | src/v1.0.0/src/router/Router.js | JavaScript | bsd-2-clause | 13,915 |
var expect = require('chai').expect;
var _ = require('lodash');
var jsonData = require('./fixture/flat');
var MemFS = require('../lib/memory-fs');
var memfs = new MemFS(_.cloneDeep(jsonData));
var getNode = function(path, callback) {
memfs.getattr(path, callback);
};
describe('Memory-FS unlink test', function() {
... | b37t1td/virtualfs-template | tests/unlink-fs.spec.js | JavaScript | bsd-2-clause | 1,702 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: If the property doesn't have the DontDelete attribute, remove the property
es5id: 11.4.1_A3.3
description: Checking declared variable
---*/
//CHECK#1
try {
x = 1;
delete ... | asgerf/parsejs.dart | test/testcases/test-262/ch11/11.4/11.4.1/S11.4.1_A3.3.js | JavaScript | bsd-2-clause | 1,792 |
// This file was procedurally generated from the following sources:
// - src/arguments/args-trailing-comma-null.case
// - src/arguments/default/func-decl.template
/*---
description: A trailing comma after null should not increase the arguments.length (function declaration)
esid: sec-arguments-exotic-objects
flags: [gen... | sebastienros/jint | Jint.Tests.Test262/test/language/arguments-object/func-decl-args-trailing-comma-null.js | JavaScript | bsd-2-clause | 1,074 |
// Copyright (c) 2018, Compiler Explorer Authors
// 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,
// thi... | mattgodbolt/compiler-explorer | test/fake-langs.js | JavaScript | bsd-2-clause | 1,553 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-rest-skip-non-enumerable.case
// - src/dstr-binding/default/cls-decl-meth-static.template
/*---
description: Rest object doesn't contain non-enumerable properties (static class expression method)
esid: sec-runtime-semanti... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/class/dstr-meth-static-obj-ptrn-rest-skip-non-enumerable.js | JavaScript | bsd-2-clause | 2,636 |
import Component from '@ember/component';
import { task } from 'ember-concurrency';
import FileSaverMixin from 'ember-cli-file-saver/mixins/file-saver';
import { inject as service } from '@ember/service';
export default Component.extend(FileSaverMixin,{
flashMessages: service(),
csa: task(function *() {
let pd... | barberscore/barberscore-web | app/components/download-csa.js | JavaScript | bsd-2-clause | 512 |
// @flow
import React from 'react'
import '../MyContent.scss'
import '../App.scss'
import MyHeader from '../components/MyHeader'
import DocumentTitle from 'react-document-title'
import {
Grid,
PageHeader
} from 'react-bootstrap'
/* Purely presentational component */
const AmodahlNo = () =>
<DocumentTitle title... | Korkemoms/amodahl.no | src/components/AmodahlNo.js | JavaScript | bsd-3-clause | 2,114 |
var searchData=
[
['setacceleration',['setAcceleration',['../classTrajectoryPoint.html#a27fecd9f51bc986fd19423fd91f34a47',1,'TrajectoryPoint']]],
['setchassisname',['setChassisName',['../classDriveSystem.html#add520db676d50658a45813bc4620ed28',1,'DriveSystem']]],
['setdegreesperfoot',['setDegreesPerFoot',['../cla... | mark1-umd/mtp-MCSF | docs/html/search/functions_9.js | JavaScript | bsd-3-clause | 4,401 |
/* eslint-disable import/no-extraneous-dependencies */
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: [
'react-hot-loader/patch',
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev... | DigixGlobal/web3-redux | example/webpack.config.js | JavaScript | bsd-3-clause | 1,268 |
module('baidu.ui.Carousel.Carousel$autoScroll');
function createCarousel(s, f, d, c) {
var op = {
// target : c,
orientation : s,
contentText : [ {
content : "item-0"
}, {
content : "item-1"
}, {
content : "item-2"
}, {
content : "item-3"
}, {
content : "item-4"
}, {
... | BaiduFE/Tangram-component | test/baidu/ui/Carousel/Carousel$autoScroll.js | JavaScript | bsd-3-clause | 9,102 |
/**
* P2P-Bomberman game lounge class.
* Handles pre-game management. Especially in multiplayer mode
* this means we have a lot of things to do:
* * creating a peer
* * maybe joining a peer
* * handling peer status messages
* * handling peer connection/disconnection events
* * etc.
*
* Author: Markus Konrad <... | internaut/p2p-bomberman | src/js/lounge.js | JavaScript | bsd-3-clause | 11,129 |
import React from "react";
import JSONTransform from "@nteract/transforms/lib/json";
import HTML from "@nteract/transforms/lib/html";
import Text from "@nteract/transforms/lib/text";
import Editor from "@nteract/notebook-preview/lib/editor";
const HokeyTable = props => (
<div>
<style>
{`
table {
... | cabhishek/commuter | packages/commuter-client/src/contents/zeppelin.js | JavaScript | bsd-3-clause | 4,397 |
'use strict';
import ActionTypes from './ActionTypes';
export default {
saveCampaign(campaign) {
return {
type: ActionTypes.SAVE_CAMPAIGN,
campaign: campaign
};
},
startCampaignCreation(sourceUrl) {
return {
type: ActionTypes.START_CAMPAIGN_CREATION,
sourceUrl: sourceUrl
};
},
startCampaign... | mairatma/campaign-manager | src/js/actions/Actions.js | JavaScript | bsd-3-clause | 631 |
var inputImageEventsDelegated = false;
/**
* <jquery-dialog-inputs>
*/
(function ($) {
var richEditToolbars = {
'basic': [
{name: 'document', items: ['Source']},
{name: 'undoRedo', items: ['Undo', 'Redo']},
{
name: 'basicstyles',
items: ... | bjanish/rcm-admin | public/plugin-admin/jquery-dialog-inputs.js | JavaScript | bsd-3-clause | 26,353 |
/*
* Copyright (c) 2013, 2014, Erik Wienhold
* All rights reserved.
*
* Licensed under the BSD 3-Clause License.
*/
/* global define */
/* global afterEach, beforeEach, context, describe, it */
define([
'shared',
'sulfur/schema/facet',
'sulfur/schema/facets',
'sulfur/schema/deserializer/resolver',
'sul... | ewie/sulfur | test/sulfur/schema/deserializer/type/simple.spec.js | JavaScript | bsd-3-clause | 19,835 |
// Define Bokeh specific subclasses
function BokehSelectionWidget() {
SelectionWidget.apply(this, arguments);
}
function BokehScrubberWidget() {
ScrubberWidget.apply(this, arguments);
}
// Let them inherit from the baseclasses
BokehSelectionWidget.prototype = Object.create(SelectionWidget.prototype);
BokehScrubberW... | vascotenner/holoviews | holoviews/plotting/bokeh/bokehwidgets.js | JavaScript | bsd-3-clause | 2,419 |
(function() {
'use strict';
function createEventController($scope, fileProperties, validateDates){
var eventCoverIsValid = false;
$scope.validDuration = true;
$scope.validDate = true;
function onCoverFunction(args) {
$scope.eventCover = args.file;
var fileFormat = fileProperties.getExt... | Zero-Projects/Mozart | mozart/static/app/js/events/createEventController.js | JavaScript | bsd-3-clause | 1,510 |
'use strict';
function minMaxNumericKey (obj) {
return Object.keys(obj).reduce(function (minMax, k) {
if (Number.isFinite(+k)) {
if (minMax.min === null) {
minMax.min = +k;
}
if (minMax.max === null) {
minMax.max = +k;
}
minMax.max = Math.max(minMax.max, +k);
m... | CartoDB/turbo-cartocss | src/helper/min-max-keys.js | JavaScript | bsd-3-clause | 453 |
/*
Copyright (c) 2015, Groupon, 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 and the following disc... | groupon/shared-store | lib/safe-merge.js | JavaScript | bsd-3-clause | 2,138 |
require([
'react',
'react-dom',
'react-router',
'./util/Routes'
], function(React, ReactDOM, {Router, browserHistory}, Routes) {
ReactDOM.render(
<Router history={browserHistory} routes={Routes} />,
document.getElementById('pdp-app')
);
});
| cod3rkane/project | public/a/js/index.js | JavaScript | bsd-3-clause | 261 |
function intersectBezier2Bezier2(a1, a2, a3, b1, b2, b3) {
var a, b;
var c12, c11, c10;
var c22, c21, c20;
var poly;
a = a2.multiply(-2);
c12 = a1.add(a.add(a3));
a = a1.multiply(-2);
b = a2.multiply(2);
c11 = a.add(b);
c10 = new Phaser.Point(a1.x, a1.y);
a = b2.multiply(... | PaulTodd/navEditor | www/lib/util/collision.js | JavaScript | bsd-3-clause | 49,640 |
import {Cell} from 'cell.js';
import {Offset} from 'offset.js';
import {PiecePlacement} from 'pieceplacement.js';
import {Point} from 'point.js';
import {Renderable} from 'renderable.js';
import {graphicPointOnBoard} from 'hexgraphicutils.js';
import type {Loggable} from 'renderable.js';
import type {PieceColor} from... | bluquar/hex-player | res/src/piece.js | JavaScript | bsd-3-clause | 1,662 |
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/BSD-3-Clause
* @link http://titon.io
*/
import Toolkit from 'Toolkit';
// TODO - test
/**
* Position the element relative to another element in the document, or to the mouse cursor.
* Determine the offsets thro... | thedatabank/toolkit | js-es6/libs/dom/positionTo.js | JavaScript | bsd-3-clause | 3,215 |
// This file was generated by GenerateJavaScriptI18nTask from javascript/lang/src/es_AR.js.
// See https://github.com/silverstripe/silverstripe-buildtools for details
if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
} else ... | Internetrix/advancedworkflow | javascript/lang/es_AR.js | JavaScript | bsd-3-clause | 804 |
/**
* Messages helper for interacting with folder messages.
*
* @module messages
*
* @copyright 2014, Digium, Inc.
* @license Apache License, Version 2.0
* @author Samuel Fortier-Galarneau <sgalarneau@digium.com>
*/
'use strict';
var moment = require('moment');
var Q = require('q');
var ari = require('ari-cli... | asterisk/node-voicemail-mailbox | lib/helpers/messages.js | JavaScript | bsd-3-clause | 14,098 |
'use strict';
angular.module('Portal.directives', ['Portal.services', 'Portal.templates', 'ui.utils'])
.directive('doAppVersion', ['version', function(version) {
return function(scope, elem, attrs) { // jshint ignore:line
elem.text(version);
};
}])
.directive('doAddItem', [function() {
return {... | certeu/do-portal | app/static/js/directives.js | JavaScript | bsd-3-clause | 15,585 |
/* Test Crossfire client and server correctly disconnecting. */
function runTest() {
FBTest.sysout("disconnectTest.started");
//Components.utils.import("resource://crossfire/SocketTransport.js");
var CrossfireModule = FW.Crossfire;
var status = CrossfireModule.status;
FBTest.sysout("disconnecting ... | mrennie/crossfire | test/fbtests/crossfire/disconnectTest.js | JavaScript | bsd-3-clause | 827 |
import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {IconTelescope} from 'app/icons';
import Button from 'app/components/button';
import {
Panel,
PanelAlert,
PanelHeader,
PanelBody,
PanelItem,
PanelTable,
} from 'app/components/panels';
import Field from 'app/views/settings/co... | beeftornado/sentry | docs-ui/components/panels.stories.js | JavaScript | bsd-3-clause | 3,265 |
/*global fdSlider: false, swfobject: false */
var jsPlayer = jsPlayer || {};
/**
* @module JAwesomePlayer
* @class detection
*/
jsPlayer.detection = {};
/**
* Guesses if the browser can play the file based upon mime type
* It is a guess because the browser itself is guessing as defined by W3C
* Also returns fals... | RoryO/JAweSomePlayer | src/base.js | JavaScript | bsd-3-clause | 6,007 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ApplicantSchema = new mongoose.Schema({
email: String,
name: String,
profile: String,
created_at: Date
});
module.exports = mongoose.model('Applicant', ApplicantSchema); | mishterious/Helper | server/models/applicant_model.js | JavaScript | bsd-3-clause | 249 |
define([], function() {
describe("checklist-pattern", function() {
beforeEach(function() {
$("<div/>", {id: "lab"}).appendTo(document.body);
});
afterEach(function() {
$("#lab").remove();
});
describe("jQuery plugin usage", function() {
... | Patternslib/require-experimental-build | tests/specs/pat/checklist.js | JavaScript | bsd-3-clause | 1,248 |
/*price range*/
$('#sl2').slider();
$('.catalog').dcAccordion({
speed: 300
});
/* Add To Cart */
function showCart(cart) {
$('#cart .modal-body').html(cart);
$('#cart').modal();
}
function getCart() {
$.ajax({
url: '/cart/show',
type: 'GET',
success: function (res) {
... | hovhannesabovyan/e-shopper | frontend/web/js/main.js | JavaScript | bsd-3-clause | 2,883 |
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var diff = require('difflet')({ indent : 2 });
var core;
var tile;
function readJSON(name) {
var json = fs.readFileSync(path.resolve(__dirname + '/fixtures/' + name + '.json'), 'utf8');
return JSON.parse(json);
}
function remo... | tilemill-project/tilemill | test/project.test.js | JavaScript | bsd-3-clause | 6,025 |
/* @flow */
import * as React from 'react';
import { useSelector } from 'react-redux';
import { Localized } from '@fluent/react';
import './Translation.css';
import * as entities from 'core/entities';
import { GenericTranslation } from 'core/translation';
import TranslationSource from './TranslationSource';
import... | jotes/pontoon | frontend/src/modules/machinery/components/Translation.js | JavaScript | bsd-3-clause | 4,401 |
// Copyright 2015 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | youtube/cobalt | cobalt/demos/content/animations-demo/layer_intro.js | JavaScript | bsd-3-clause | 1,248 |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
export default {"viewBox":"0 0 100 100","xmlns":"http://www.w3.org/2000/svg","g":{"path":[{"d":"M77.8 32.6c-3-.9-5.6-3-7.3-5.7-1.3-2.1-1.4-6.9-4.6-6.9H34.1c-3.3 0-3.3 4... | salesforce/design-system-react | icons/custom/custom91.js | JavaScript | bsd-3-clause | 924 |
/*
* jQuery contactList plugin
*
* Copyright (c) 2010 Shawn Chin.
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Usage:
* (JS)
*
* var item_list = [
* {"id":1, "name":"something", "desc":"some description"},
* {"id":9, "name":"another thing", "desc":"some descriptive text"},
* ... | shawnchin/bbotui | web/media/lib/cl/jquery-contactList.js | JavaScript | bsd-3-clause | 10,221 |
var NAVTREEINDEX9 =
{
"classIopx_1_1DecompositionDataBase.html#a9e32656ad93e46f723db259bc4fc0e27":[4,0,67,2,18],
"classIopx_1_1DecompositionDataBase.html#aa14572d794a79ee5793ee8514fa42863":[4,0,67,2,4],
"classIopx_1_1DecompositionDataBase.html#aa63b8817000f2408d26afb71d9c52057":[4,0,67,2,7],
"classIopx_1_1Decomposition... | nschloe/seacas | docs/ioss_html/navtreeindex9.js | JavaScript | bsd-3-clause | 20,283 |
/* eslint-env node */
/*
Provides the second half of the password reset API, and handles the last two steps. Before using this, a user must
have generated a reset code using the `forgot` API. They are sent a link via email that includes a reset code.
When they follow that link, the GET portion of this API che... | the-t-in-rtf/gpii-express-user | src/js/server/reset.js | JavaScript | bsd-3-clause | 7,560 |
/**
* @namespace
* @augments vonline.Base
*/
vonline.Rectangle = function(data) {
// inherit default values
this.data = $.extend({}, this.data, data);
}
vonline.Rectangle.prototype = new vonline.Base();
/**
* Creates the object on the given canvas
* @param {vonline.Canvas} canvas
*/
vonline.Rectangle.prototyp... | diagraph/diagraph | src/js/rectangle.js | JavaScript | bsd-3-clause | 807 |
/*
* Copyright (c) 2011, Lance Cooper (lance.m.cooper@gmail.com)
* See the included COPYING for licencing information.
*/
//= provide "./turn_order"
//= require <prototype>
//= require "base_controller"
//= require "turn_order"
var TurnOrderController = Class.create(BaseController, {
initialize: function($super)
... | deathwish/chrome-tic_tac_toe | public/javascripts/turn_order_controller.js | JavaScript | bsd-3-clause | 1,060 |
define([
'iwcotw',
'jqueryui',
'lodash',
'operations/non_ot/CollaborateInActivityOperation',
'text!templates/guidance_modeling/collaboration_guidance.html'
],function(IWCOTW, $,_, CollaborateInActivityOperation, selectToolGuidanceHtml) {
function CollaborationGuidance(id, label, activityId, obje... | Mortymus/syncmeta | src/js/canvas_widget/guidance_modeling/CollaborationGuidance.js | JavaScript | bsd-3-clause | 1,040 |
/**
* Created by Juan on 1/24/2017.
*/
function initMap() {
const DEFAULT_ZOOM = 5;
const DEFAULT_LATITUDE = 37.0902;
const DEFAULT_LONGITUDE = -95.7129;
const DEFAULT_POSITION = { lat: DEFAULT_LATITUDE, lng: DEFAULT_LONGITUDE };
var ZOOM_LEVEL = sessionStorage && parseInt(sessionStorage.getItem(... | ODM2/ODM2WebSDL | src/dataloaderinterface/static/dataloaderinterface/js/my-sites.js | JavaScript | bsd-3-clause | 4,508 |
var d3_raphael_selection = function(groups, d3_raphael_root) {
d3_arraySubclass(groups, d3_raphael_selectionPrototype);
groups.root = d3_raphael_root;
return groups;
};
var d3_raphael_selectionPrototype = [];
// todo: see if it is possible to generalize this method from the almost identical one in d3
/*... | webmonarch/d3 | src/raphael/selection.js | JavaScript | bsd-3-clause | 15,463 |
/*
Copyright (c) 2009- Boreal - Information Strategies, published under the BSD license.
See http://geoprisma.org/license for the full text of the license.
*/
/*
Class: OpenLayers.Control.Click
Todo: rename class
Inherits From:
- {OpenLayers.Control}
*/
OpenLayers.Control.Click = OpenLayers.Clas... | groupe-conseil-nutshimit-nippour/django-geoprisma | geoprisma/static/geoprisma/widgets/getmouseposition/js/GetMousePosition.js | JavaScript | bsd-3-clause | 2,818 |
module.exports = [
{
startX: 0,
startY: 0,
endX: 1,
endY: 1,
matrix: [[0, 0],
[1, 0]],
expectedLength: 3,
},
{
startX: 1,
startY: 1,
endX: 4,
endY: 4,
matrix: [[0, 0, 0, 0, 0],
[1, 0, 1,... | radify/PathFinding.js | test/PathTestScenarios.js | JavaScript | bsd-3-clause | 2,516 |
/* eslint-disable global-require */
const gulp = require('gulp');
const gutil = require('gulp-util');
const del = require('del');
const fs = require('fs.extra');
const config = require('./config/assets.config');
const WebpackWatcher = require('./config/webpack.watcher');
const { spawn } = require('child_process');
// ... | kriansa/amelia | gulpfile.js | JavaScript | bsd-3-clause | 6,518 |
/**
* @license
* Copyright (c) 2017 The expand.js authors. All rights reserved.
* This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt
* The complete set of authors may be found at https://expandjs.github.io/AUTHORS.txt
* The complete set of contributors may be fou... | expandjs/expandjs | lib/isUseful.js | JavaScript | bsd-3-clause | 1,194 |
import React from 'react';
import { HeadingCaption } from 'cf-component-heading';
import renderer from 'react-test-renderer';
test('should render', () => {
const component = renderer.create(
<HeadingCaption>Heading Caption</HeadingCaption>
);
expect(component.toJSON()).toMatchSnapshot();
});
| manatarms/cf-ui | packages/cf-component-heading/test/HeadingCaption.js | JavaScript | bsd-3-clause | 304 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... | NoiDee/ssdata | node_modules/vuetify/es5/components/VSubheader/VSubheader.js | JavaScript | mit | 1,109 |
django.jQuery(document).ready(function($){
// Removes ':' from form labels.
$('.form-row label').each(function(){
$(this).text($(this).text().replace(':', ''));
});
// Shows and hides cities and counties dynamically.
$('#id_agency_type').bind('change', HideShowFields);
function HideSho... | openrural/open-data-nc | opendata/static/js/admin.js | JavaScript | mit | 1,863 |
define(['../internal/baseDifference', '../internal/baseUniq', '../lang/isArguments', '../lang/isArray'], function(baseDifference, baseUniq, isArguments, isArray) {
/**
* Creates an array that is the symmetric difference of the provided arrays.
* See [Wikipedia](https://en.wikipedia.org/wiki/Symmetric_differenc... | tomek-f/shittets | require-js-amd/require-zepto-lodash/static/js/lib/lodash-amd/array/xor.js | JavaScript | mit | 1,065 |
/**
* @component Modal
* @description
*
* ## 弹出层 / Modal弹出页组件
*
* ## 补充
*
* Model组件用于当前页面的补充, 相当于在当前页面上再来弹一个页面, 这里并不改变路由, 但是会改变H5 history的popstate, 每打开一个Modal则新增一个历史记录, 可以通过后退关闭最后一次打开的modal.
*
* ## 注意点
*
* - 在modal中如果跳转到另一页之前希望能先关闭当前modal再操作
* - modal不会再url中留下记录
* - modal只是装菜的盘子, 盘子中的菜通过`component`传入, 数据通... | xiangsongtao/VueMobile | src/components/modal/index.js | JavaScript | mit | 6,347 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'font', 'sr-latn', {
fontSize: {
label: 'Veličina fonta',
voiceLabel: 'Font Size',
panelTitle: 'Veličina fonta'
},
label: ... | leon-mbs/zippynote | www/assets/js/ckeditor/plugins/font/lang/sr-latn.js | JavaScript | mit | 376 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var recruitSchema = new Schema({
type: String,
title: String,
content: String,
time: Date
}, {
collection: 'recruit'
});
recruitSchema.pre('save', function() {
this.update({},{ $set: { time: new Date() } });
});
recruitSchema.pre... | MiStudioX106/rbai | schema/recruit.js | JavaScript | mit | 491 |
/*
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
// Re-export assert module as global property "Assert".
Object.defineProperty(this, "Assert", {value: System.get("../suite/lib/assert.jsm")});
| jugglinmike/es6draft | src/test/scripts/suite2015/lib/assert.js | JavaScript | mit | 317 |
function getContacts() {
$.getJSON('contacts?action=list', function(data) {
$.each(data, function(key, val) {
var tr = $('<tr></tr>');
$.each(val, function(k, v) {
$('<td>' + v + '</td>').appendTo(tr);
});
$('<td><a href="#" onclick="removeBtn(... | meefik/java-examples | JavaWebApp/target/JavaWebApp-1.0-SNAPSHOT/js/app.js | JavaScript | mit | 1,533 |
/*
This is a HTML node Access Pointer to provider some shortcuts and cross-browser abilities
It provides these Access Points for HTML element:
text
class: set/get the class of an element. use"+" to add a class while "-" to remove a existing class
selectedData (for select only): get the selected ... | alexzhaosheng/knot.js | src/core/AddonHTMLAPProvider.js | JavaScript | mit | 11,939 |
(function() {
'use strict';
/**
* rating
*
* @description The rating component.
* @param {HTMLElement} el The HTMl element to build the rating widget on
* @param {Number} currentRating The current rating value
* @param {Number} maxRating The max rating for the widget
* @param {Function} callb... | DisruptiveAngels/draft | app/assets/javascripts/src/rating.js | JavaScript | mit | 4,643 |
var mapMocks = require('./map-mocks');
var mongoose = require('mongoose');
var exports = module.exports;
exports.xyzCache = {
"name":"XYZ",
"geometry":{
"type":"Feature",
"geometry":{
"type":"Polygon",
"coordinates":[[[-180,-85],[-180,85],[180,85],[180,-85],[-180,-85]]]
}
},
"tileSizeLi... | ngageoint/mapcache-server | mocks/cache-mocks.js | JavaScript | mit | 11,644 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M14 5h8v2h-8V5zm0 5.5h8v2h-8v-2zm0 5.5h8v2h-8v-2zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/LowPriorityOutlined.js | JavaScript | mit | 357 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" />
, 'TuneSharp');
| callemall/material-ui | packages/material-ui-icons/src/TuneSharp.js | JavaScript | mit | 265 |
import escapeStringRegexp from 'escape-string-regexp';
const escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> 'how much \$ for a unicorn\?'
new RegExp(escapedString);
// $FlowExpectedError
escapeStringRegexp(42);
// $FlowExpectedError
(escapeStringRegexp('how much $ for a unicorn?'): number);
| flowtype/flow-typed | definitions/npm/escape-string-regexp_v1.x.x/test_escape-string-regexp_v1.x.x.js | JavaScript | mit | 319 |
define([
], function(){
function SortOrder(column, direction){
this.column = column;
this.direction = direction || SortOrder.Directions.Asc;
}
SortOrder.Directions = {
'Asc': function(value1, value2) {
return value1<value2 ? -1 : (value1>value2 ? 1 : 0);
},
'Desc': function(value1, value2)... | h5table/h5table | src/js/h5table/types/sortOrders.js | JavaScript | mit | 1,234 |
const pickBy = (src, testFn) =>
Object.keys(src).reduce((o, k) => {
if (testFn(src[k], k, src)) o[k] = src[k] // eslint-disable-line
return o
}, {})
module.exports = pickBy
| dgeibi/p2p-chat | packages/p2p-chat-utils/pickBy.js | JavaScript | mit | 185 |
var expect = require('chai').expect;
var proxyMiddleware = require('../index');
var http = require('http');
var express = require('express');
var WebSocket = require('ws');
var WebSocketServer = require('ws').Server;
describe('option.ws - WebSocket proxy', function () {
var proxyS... | rbarilani/http-proxy-middleware | test/websocket.spec.js | JavaScript | mit | 2,263 |
'use strict';
const co = require('co');
const broccoliTestHelper = require('broccoli-test-helper');
const expect = require('chai').expect;
const EmberApp = require('../../../../lib/broccoli/ember-app');
const MockCLI = require('../../../helpers/mock-cli');
const Project = require('../../../../lib/models/project');
c... | Turbo87/ember-cli | tests/unit/broccoli/ember-app/app-and-dependencies-test.js | JavaScript | mit | 6,868 |
import { moduleFor, ApplicationTestCase, RenderingTestCase, runTask } from 'internal-test-helpers';
import Controller from '@ember/controller';
import { set } from '@ember/-internals/metal';
import { DEBUG } from '@glimmer/env';
moduleFor(
'{{link-to}} component (rendering tests)',
class extends ApplicationTestCa... | emberjs/ember.js | packages/@ember/-internals/glimmer/tests/integration/components/link-to/rendering-curly-test.js | JavaScript | mit | 3,067 |
'use strict';
var $ = require('jquery');
//this is a mapping from the class names (generic ones, for compatability with codemirror themes), to what they -actually- represent
var tokenTypes = {
"string-2": "prefixed",
"atom": "var"
};
module.exports = function(yasqe, completerName) {
//this autocompleter also fires ... | TeamSPoon/logicmoo_workspace | packs_web/ClioPatria/web/yasqe/src/autocompleters/prefixes.js | JavaScript | mit | 4,590 |
'use strict';
module.exports = {
js: {
files: ['src/js/**/*.js', 'server/**/*.js'],
tasks: ['eslint', 'mocha:console']
}
};
| Yuyuu/privacy | tasks/options/watch.js | JavaScript | mit | 137 |
const assert = require('assert');
const rp = require('request-promise');
const app = require('../server/app');
describe('Feathers application tests', () => {
before(function(done) {
this.server = app.listen(3030);
this.server.once('listening', () => done());
});
after(function(done) {
this.server.cl... | sametjan/feathers-webpack-react-boilerplate | test/app.test.js | JavaScript | mit | 1,243 |
var app = require('express')(),
wizard = require('hmpo-form-wizard'),
steps = require('./steps'),
fields = require('./fields');
app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' }));
app.use(wizard(steps, fields, { templatePath: 'prototype_170331/upload' }));
module.expo... | maxinedivers/pass-max | routes/prototype_170331/upload/index.js | JavaScript | mit | 331 |
/*
* Copyright (c) 2017. MIT-license for Jari Van Melckebeke
* Note that there was a lot of educational work in this project,
* this project was (or is) used for an assignment from Realdolmen in Belgium.
* Please just don't abuse my work
*/
/* @fileoverview
* Provides full Bootstrap based, multi-instance WYSIWYG... | N00bface/Real-Dolmen-Stage-Opdrachten | stageopdracht/src/main/resources/static/vendors/gentelella/vendors/bootstrap-wysiwyg/src/bootstrap-wysiwyg.js | JavaScript | mit | 11,001 |
/* eslint-env jasmine */
// Boilerplate code for every test.
"use strict";
var fse = require('fs-extra');
var pathUtil = require('path');
var os = require('os');
var customMatchers = require('./jasmine_matchers');
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000;
var originalCwd = process.cwd();
// The dire... | darkcl/OTA-Helper | nodejs/dist/template-app/node_modules/fs-jetpack/spec/support/spec_helper.js | JavaScript | mit | 1,763 |
/**
*
* @author xiaoping (edwardhjp@gmail.com)
* @type js
*
*/
module.exports = {
baseUrl: 'https://api.excaliburhan.com',
port: 4000,
}
| excaliburhan/api-es6 | src/config.js | JavaScript | mit | 151 |
$(document).ready(function() {
tinyMCE.init({
// General options
mode : "textareas",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreakin... | rsantellan/ventanas-html-proyecto | ventanas/src/AppBundle/Resources/public/admin/js/basicstarttinymce.js | JavaScript | mit | 1,112 |
Kanboard.BoardDragAndDrop = function(app) {
this.app = app;
this.savingInProgress = false;
};
Kanboard.BoardDragAndDrop.prototype.execute = function() {
if (this.app.hasId("board")) {
this.executeListeners();
this.dragAndDrop();
}
};
Kanboard.BoardDragAndDrop.prototype.dragAndDrop = fu... | oliviermaridat/kanboard | assets/js/src/BoardDragAndDrop.js | JavaScript | mit | 3,703 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | yyc-git/DYReactive | dist/es2015/stream/TakeUntilStream.js | JavaScript | mit | 2,788 |
import Head from 'next/head'
import {
MDBBtn,
MDBCard,
MDBCardBody,
MDBCardText,
MDBCardTitle,
MDBCol,
MDBContainer,
MDBFooter,
MDBRow,
} from 'mdbreact'
export default function Home() {
return (
<>
<Head>
<title>NextJS with Material Design Bootstrap for React</title>
<lin... | zeit/next.js | examples/with-mdbreact/pages/index.js | JavaScript | mit | 3,783 |
/* jshint node: true */
/*jshint -W079 */
(function(define) {
define([
'require',
'exports',
'./node!istanbul/lib/collector',
'./node!path',
'./node!fs',
'./node!source-map/lib/source-map-consumer'
], function (require, exports, Collector, path, fs, smc) {
/* global WeakMap */
var SourceMapConsumer = smc.Sourc... | gabrieldamaso7/innocircle | node_modules/remap-istanbul/lib/remap.js | JavaScript | mit | 13,873 |
// routes/scripts/db.js
var fs = require('fs');
var vors = require('cors');
var express = require('express');
var cors = require('cors');
var mongodb = require('mongodb');
var router = express.Router();
var tolCommon = require('./tolCommon');
// cors
var whitelist =
[
'https://throneoflies.com',
'https://www.t... | dylanh724/tol-node-public | tol2/routes/scripts/db.js | JavaScript | mit | 2,924 |
import _curry2 from './_curry2';
import _xfBase from './_xfBase';
function XTap(f, xf) {
this.xf = xf;
this.f = f;
}
XTap.prototype['@@transducer/init'] = _xfBase.init;
XTap.prototype['@@transducer/result'] = _xfBase.result;
XTap.prototype['@@transducer/step'] = function(result, input) {
this.f(input);
return... | paldepind/ramda | source/internal/_xtap.js | JavaScript | mit | 464 |
// Excel spreadsheet configuration:
var data_format = 'IDS'; //IDS (Chad), DHIS2 (Tonkolili), IDSR (previous Tonokolili)
// Configuration for IDS worksheet format - Chad
// Worksheet list
//var sheetListFirst = 1; // First sheet with data
//var sheetListNum = 15; // Number of sheets with data (disea... | heidieh/MSF-Dashboard | mod_datamanager/src/js/config.js | JavaScript | mit | 4,560 |
define(function(require) {
'use strict';
const $ = require('jquery');
const routing = require('routing');
return {
create: function(templateId, relatedEntityId) {
const url = routing.generate(
'oro_api_get_emailtemplate_compiled',
{id: templateId, en... | orocrm/platform | src/Oro/Bundle/EmailBundle/Resources/public/js/util/email-templates-provider.js | JavaScript | mit | 611 |
import React from 'react';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import logger from '../logger';
import reducer from '../reducer';
import routerStore from 'redux-router/routerStore';
import stateToUrl from '../stateToUrl';
import t... | leoasis/state-router | examples/master-detail/src/components/App.js | JavaScript | mit | 974 |
'use strict';
var escapeStringRegexp = require('escape-string-regexp');
var ansiStyles = require('ansi-styles');
var stripAnsi = require('strip-ansi');
var hasAnsi = require('has-ansi');
var supportsColor = require('supports-color');
var defineProps = Object.defineProperties;
var isSimpleWindowsTerm = process.platform ... | patelsan/fetchpipe | node_modules/fsevents/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/index-compiled.js | JavaScript | mit | 3,210 |
/************************************************************************
* Library: Web 2.0 UI for jQuery (using prototypical inheritance)
* - Following objects defined
* - w2grid - grid widget
* - $().w2grid - jQuery wrapper
* - Dependencies: jQuery, w2utils, w2toolbar, w2fields, w2alert... | ant9000/w2ui | src/w2grid.js | JavaScript | mit | 340,122 |
/* Controllers */
var quillControllers = angular.module('quillControllers', ['ui.bootstrap', 'ngMdIcons', 'angular-jqcloud']);
quillControllers.controller('webHomeCtrl', ['$scope', 'Phone',
function ($scope, Phone, $uibModal, $log, items) {
// $scope.phones = Phone.query();
// $scope.orderProp... | kushaltirumala/albatross | app/js/controllers.js | JavaScript | mit | 7,295 |
(function () {
var elementsToMaximize = [];
function maxSize(el) {
//return this.each(function() {
// this.el.style.cssText
var appWidth = el.offsetWidth; // el.style.cssText.width ||
var appHeight = el.offsetHeight; // el.style.cssText.height ||
el.dataset.origWidth = appWidth;
e... | hanslindetorp/imusic | demos/tapping/max.size.js | JavaScript | mit | 3,635 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* XBox 360 Gamepad Configuration.
*
* @name Phaser.Input.Gamepad.Configs.XBOX_360
* @type {object}
* @since 3.0.0
*/
module.exports = ... | TukekeSoft/phaser | src/input/gamepad/configs/XBox360_Controller.js | JavaScript | mit | 623 |
import { helper } from '@ember/component/helper';
import { isArray as isEmberArray } from '@ember/array';
import asArray from '../utils/as-array';
export function intersect([...arrays]) {
let confirmedArrays = asArray(arrays).map(array => {
return isEmberArray(array) ? array : [];
});
// copied from https://... | DockYard/ember-functional-helpers | addon/helpers/intersect.js | JavaScript | mit | 938 |
'use strict';
var todoData, mMt3VAL;
var taskL = [];
var namesList;
var MESSAGES = [];
var res = [];
var todoDiv = 'none';
var gameDiv = 'none';
var chatDiv = 'none';
var CHANGE = 'cow';
var chatNode;
var captionDiv = 'none';
var xs = xstream.default;
var h = h.h;
const messages = [];
var buttonNode;
var stat;
var sol... | dschalk/monads-for-functional-javascript | src/dist/monadB.js | JavaScript | mit | 51,154 |
import _ from 'lodash';
import clayHBS from 'clayhandlebars';
import { props } from '../utils/promises';
import { getObject } from '../core-data/api';
import { componentListProp } from '../utils/references';
import deepReduce from '../utils/deep-reduce';
import { normalizeSiteData } from '../core-data/site';
import { P... | nymag/clay-kiln | lib/preloader/actions.js | JavaScript | mit | 6,557 |
var searchData=
[
['debugdraw_2ecpp',['DebugDraw.cpp',['../_debug_draw_8cpp.html',1,'']]],
['debugdraw_2eh',['DebugDraw.h',['../_debug_draw_8h.html',1,'']]],
['defines_2eh',['defines.h',['../defines_8h.html',1,'']]],
['defines2d_2eh',['defines2D.h',['../defines2_d_8h.html',1,'']]],
['definesandroid_2eh',['def... | StarEngine/manual | html/search/files_64.js | JavaScript | mit | 1,320 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/TapAndPlayOutlined.js | JavaScript | mit | 727 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 5H8.12L12 8.88V6zM7 19h5v-4.46l-5-5z" opacity=".3" /><path d="M12 5v3.88l2 2V6h3v7.88l2 2V4h-5V3H6.12l2 2zM2.41 2.13L1 3.54l4 4V19H3v2h11v-4... | Kagami/material-ui | packages/material-ui-icons/src/NoMeetingRoomTwoTone.js | JavaScript | mit | 423 |
$(function(){
$(".sort-list, .sortatable").sortable({
stop: function(event, ui){
_items = $(this).children("li");
_sortResultArray = [];
_items.each(function(){
_sortResultArray.push({
parent_id: "root",
item_id: $(this).attr("id").slice(5)
});
});
_result = {
sectionID: $(this... | mrLSD/iron-cms | static/themes/admin/js/script.js | JavaScript | mit | 37,792 |
import m from 'mithril';
import h from '../h';
const footer = {
view: function() {
return m('footer.main-footer.main-footer-neg',
[
m('section.w-container',
m('.w-row',
[
m('.w-col.w-col-9',
... | catarse/catarse_admin | legacy/src/root/footer.js | JavaScript | mit | 14,558 |