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 React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {Label} = WeUI;
describe('<Label></Label>', ()=> {
[undefined, null, 'custom_class'].map(clazz => {
describe(`<Label className=${clazz}></Label>`, ()=> {
const wrapp... | woshisbb43/coinMessageWechat | test/label.js | JavaScript | mit | 815 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-... | Kagami/material-ui | packages/material-ui-icons/src/Autorenew.js | JavaScript | mit | 442 |
/* eslint-disable flowtype/require-valid-file-annotation */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import Dialog, {
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
} from 'material-ui/Dialog';
import Typography from '... | AndriusBil/material-ui | examples/nextjs/pages/index.js | JavaScript | mit | 1,720 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetValue = require('../object/GetValue');
var Shuffle = require('./Shuffle');
var BuildChunk = function (a, b, qty)
{
var out = [];
... | mahill/phaser | src/utils/array/Range.js | JavaScript | mit | 3,203 |
"use strict";
// START A WEB SERVER INSTANCE FOR EACH CPU CORE. START WITH COMMAND: forever startWebServers.js
var cluster = require('cluster');
var os = require('os');
var redisService = require('./server/service/redisService');
var log = require('./server/service/logFunction.js');
var service = 'WEB SERVERS STARTU... | jarnovirta/angularBlog | startWebServers.js | JavaScript | mit | 2,746 |
/*
* Copyright 2016-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'backbone',
'find/app/util/merge-collection'
], function(Backbone, MergeCollection) {
'use strict';... | hpe-idol/find | webapp/core/src/test/js/spec/app/util/merge-collection.js | JavaScript | mit | 2,981 |
import React from 'react'
export default () => (
<div>
<h1>Features</h1>
</div>
)
| nabil-jazoul/react-starter | app/routes/Feature/components/FeatureView.js | JavaScript | mit | 91 |
var searchData=
[
['handler',['Handler',['../classHandler.html',1,'']]],
['host',['Host',['../classHost.html',1,'']]]
];
| zatricion/NetSim | CS_143/docs/html/search/classes_68.js | JavaScript | mit | 125 |
'use strict';
angular.module('rastros')
.directive('loader', function (loader) {
return {
restrict : 'E',
templateUrl: 'app/templates/directives/loader-directive-template.html',
scope : {},
link : function (scope) {
scope.activities = loader.activities;
... | jSilverize/OsRastrosApp | app/scripts/directives/loader-directive.js | JavaScript | mit | 492 |
import _ from 'lodash';
import 'ui/paginated_table';
import popularityHtml from 'plugins/kibana/management/sections/indices/_field_popularity.html';
import controlsHtml from 'plugins/kibana/management/sections/indices/_field_controls.html';
import dateScripts from 'plugins/kibana/management/sections/indices/_date_scrip... | phupn1510/ELK | kibana/kibana/src/core_plugins/kibana/public/management/sections/indices/_scripted_fields.js | JavaScript | mit | 3,749 |
'use strict';
module.exports = require('tough-cookie');
| asahu/node-force | node_modules/faye/src/util/cookies/node_cookies.js | JavaScript | mit | 57 |
/**
* Autocomplete User @ Mentions in Chat
*/
/* global Dubtrack */
var settings = require("../lib/settings.js");
var modal = require('../utils/modal.js');
var options = require('../utils/options.js');
var myModule = {};
myModule.id = "custom_mentions";
myModule.moduleName = "Custom Mentions";
myModule.description... | coryshaw1/DubPlus | src/js/modules/customMentions.js | JavaScript | mit | 1,676 |
module.exports = [
'socketFactory',
function (socketFactory) {
var socket = socketFactory({
url: '/socket'
});
socket._handlers = {};
socket.addHandler = function (name, handler) {
socket._handlers[name] = handler;
};
socket.doDeploy = function (project, environment) {
so... | mcuadros/dockership | client/js/factory/Socket.js | JavaScript | mit | 976 |
'use strict';
var Grid = require('nd-grid');
var datetime = require('nd-datetime');
var RbacRoleModel = require('../../../mod/model/rbac/role');
module.exports = function(util) {
if (!util.auth.hasAuth('=8')) {
return util.redirect('error/403');
}
var instance = new Grid({
parentNode: '#main',
pro... | balaixianren/dong-init | tpl/spa/app/rbac/role/index.js | JavaScript | mit | 2,140 |
'use strict';
var _ = require('lodash');
var Inherits = require('util').inherits;
var URI = require('urijs');
var sway = require('sway');
var Promise = require('bluebird');
var swagger2openapi = require('swagger2openapi');
var BaseFormat = require('../base_format.js');
var Util = require('../util.js');
var Swagger2 ... | LucyBot-Inc/api-spec-converter | lib/formats/swagger_2.js | JavaScript | mit | 2,462 |
"use strict";
/**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | u9520107/component-react-bootstrap | react-bootstrap/transpiled/react-es6/lib/emptyFunction.js | JavaScript | mit | 1,397 |
//
// Grunttask runners
//
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'tests/**/*.js'],
options: {
ignores: ['tests/specs/libs/*.js'],
// options here to override JSHint defaults
globals: {
... | kelonye/hello | Gruntfile.js | JavaScript | mit | 1,554 |
/*
Copyright (c) 2017 Jirtdan Team and other collaborators
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | adilek/jirtdan | docs/app/appLoader.js | JavaScript | mit | 3,839 |
const Product = require('../models/product');
exports.getAddProduct = (req, res, next) => {
res.render('admin/edit-product', {
pageTitle: 'Add Product',
path: '/admin/add-product',
editing: false
});
};
exports.postAddProduct = (req, res, next) => {
const title = req.body.title;
const imageUrl = r... | tarsoqueiroz/NodeJS | Udemy/NodeJS - The Complete Guide/Recursos/12/03-fetch-a-single-product/controllers/admin.js | JavaScript | mit | 2,756 |
module.exports={title:'Fedora',slug:'fedora',svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Fedora icon</title><path d="M12 0C5.375 0 .005 5.368 0 11.992v9.286A2.728 2.728 0 0 0 2.728 24h9.277C18.63 23.997 24 18.626 24 12c0-6.627-5.373-12-12-12zm4.595 5.577c-.379 0-.516-.073-1.072-.0... | cdnjs/cdnjs | ajax/libs/simple-icons/1.13.0/fedora.js | JavaScript | mit | 991 |
var INSTALLED={
"keys":["G/Town Roads","Caribbean","Guyana","World","Iceland","Greenland"],
"Caribbean":{
"path":"./static/ggmc/data/caribbean/",
"bbox":[-90.,-2.,-53.,30.],
"center":[-71.5,14.5],
"color":"rgba(255,255,0,0)",
"fill":"rgba(0,100,40,0)",
"width":2,
"polygon_sources":[
{"filename":"cari... | asymptopia/ggmc | static/ggmc/js/config.js | JavaScript | cc0-1.0 | 3,340 |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | HeartCrafter/xataface | lib/FCKeditor/editor/_source/fckeditorapi.js | JavaScript | gpl-2.0 | 5,101 |
define("dijit/form/HorizontalRule", [
"dojo/_base/declare", // declare
"../_Widget",
"../_TemplatedMixin"
], function(declare, _Widget, _TemplatedMixin){
// module:
// dijit/form/HorizontalRule
return declare("dijit.form.HorizontalRule", [_Widget, _TemplatedMixin], {
// summary:
// Hash marks for ... | hariomkumarmth/champaranexpress | wp-content/plugins/dojo/dijit/form/HorizontalRule.js.uncompressed.js | JavaScript | gpl-2.0 | 1,883 |
jQuery(document).ready(function($) {
var handsontable = $('#dataTable'),
$wpbody = $('#wpbody');
var loadingScreen = function() {
$wpbody.before('<div id="rjqc-loading">' +
'<h1 style="top:' +
($(document).scrollTop()+100) +
... | SoloTodo/solonotebooks_blog | wp-content/plugins/rj-quickcharts/ajax/ajax.js | JavaScript | gpl-2.0 | 8,794 |
var searchData=
[
['data_5fthr',['data_thr',['../classdataManager.html#a509a1915ab57d91969f4d7075a138c2e',1,'dataManager']]],
['datamanager',['dataManager',['../classdataManager.html#a53882fb8b2d08f1b73f6c8e9202c5ae4',1,'dataManager']]]
];
| devintaietta/Remote-Player-Audio | doxygen/docs/html/search/functions_64.js | JavaScript | gpl-2.0 | 244 |
/* Marker cluster styles */
var styles = [[{
url: '/js/js-marker-cluster/images/union2bluemarker.png',
height: 56,
width: 40,
anchor: [16, 0],
textColor: '#000000',
textSize: 10
}, {
url: '/js/js-marker-cluster/images/union10bluemarker.png',
... | Bibihelper/bibihelper | bibihelper/web/js/map.js | JavaScript | gpl-2.0 | 5,181 |
var smart_energy_lenslider_fn = function(inparr) {
jQuery(".ls_sm_en_ib_manage li").hover(
function() {
jQuery(this).addClass("hvr");
},
function() {
jQuery(this).removeClass("hvr");
}
);
jQuery(".ls_sm_en_ib_manage").prepend("<div class=\"labs\"></div... | PixelPushingPunk/oftb | wp-content/plugins/len-slider/skins/smart_energy/output/js/smart_energy.skin.js | JavaScript | gpl-2.0 | 778 |
'use strict';
/*
* The goal of this test is to cover the Workers' implementation of
* Worker.prototype.destroy. Worker.prototype.destroy is called within
* the worker's context: once when the worker is still connected to the
* master, and another time when it's not connected to it, so that we cover
* both code pat... | domino-team/openwrt-cc | package/gli-pub/openwrt-node-packages-master/node/node-v6.9.1/test/parallel/test-cluster-worker-destroy.js | JavaScript | gpl-2.0 | 998 |
/**
* @package ZT Headline module for Joomla! 1.7
* @author http://www.zootemplate.com
* @copyright (C) 2011- ZooTemplate.Com
* @license PHP files are GNU/GPL
**/
var ZTVerHeadLine = new Class({
options:{
duration: 2000,
transition: Fx.Transitions.Quart.easeInOut
},
initialize... | yuri12015/leluan | templates/zt_meda25/html/modules/mod_zt_headline/assets/js/vertical.js | JavaScript | gpl-2.0 | 3,875 |
jQuery( window ).load( function() {
if ( 'true' == woo_localized_data.slideshow ) { woo_localized_data.slideshow = true; } else { woo_localized_data.slideshow = false; }
if ( 'true' == woo_localized_data.directionNav ) { woo_localized_data.directionNav = true; } else { woo_localized_data.directionNav = false; }... | mssdeepakkumar/keenlo | wp-content/themes/hub/includes/js/featured-slider.js | JavaScript | gpl-2.0 | 2,020 |
/*
* Title : Pinpoint Booking System WordPress Plugin (PRO)
* Version : 2.1.2
* File : assets/js/templates/backend-templates.js
* File Version : 1.0.2
* Created / Last Modified : 11 October 2015
* Author : Dot on Paper
* Copyright ... | blueSkyVacations/blueSkyVacations | wp-content/plugins/booking-system/assets/js/templates/backend-templates.js | JavaScript | gpl-2.0 | 889 |
/*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dojox.gfx.move"],
["require", "dojox.gf... | fedora-infra/packagedb | pkgdb/static/js/dojox/gfx/move.xd.js | JavaScript | gpl-2.0 | 696 |
/**
* jQuery Roundabout - v2.4.2
* http://fredhq.com/projects/roundabout
*
* Moves list-items of enabled ordered and unordered lists long
* a chosen path. Includes the default "lazySusan" path, that
* moves items long a spinning turntable.
*
* Terms of Use // jQuery Roundabout
*
* Open source under the BSD li... | ducdongmg/joomla_tut25 | plugins/jsnimageshow/themecarousel/assets/js/jquery/jquery.roundabout.js | JavaScript | gpl-2.0 | 35,076 |
(function ($) {
/**
* This script transforms a set of fieldsets into a stack of vertical
* tabs. Another tab pane can be selected by clicking on the respective
* tab.
*
* Each tab may have a summary which can be updated by another
* script. For that to work, each fieldset has an associated
* 'verticalTabCallba... | develmedia/socialtripebre | sites/default/files/js/js_Et3GnV1UsdPQdVayyt1s5LLq16UKl5DWdTmfJ41NC2E.js | JavaScript | gpl-2.0 | 29,808 |
/*
* Copyright (C) 2016 Max Prettyjohns
*
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is d... | bookbrainz/bookbrainz-data-js | src/models/titleUnlock.js | JavaScript | gpl-2.0 | 1,219 |
function clientEditRow(baseURL, elementID, dbID) {
console.log("inside clientEditRow function, variables:", elementID, ",",dbID);
var hostPort = "http://";
if (baseURL.port) { hostPort = baseURL.hostname.concat(':', baseURL.port); }
else { hostPort = baseURL.hostname; }
var URL = hostPort.concat(baseURL.p... | Maker23/osu_classes | cs340/DBWebsite/views/Backup.script.js | JavaScript | gpl-2.0 | 2,055 |
function stream_context_get_params (stream_or_context) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// * example 1: var params = {notification:function (notification_code, severity, message, message_code, bytes_transferred, bytes_max) {}};
// * examp... | thebillkidy/desple.com | wp-content/themes/capsule/ui/lib/phpjs/functions/stream/stream_context_get_params.js | JavaScript | gpl-2.0 | 627 |
function selectDate(str, obj) {
var now = new Date(); //获取当前时间
var year = now.getFullYear(); //获取当前日期的年份部分
// if ($.browser.mozilla) { year = year + 1900; } //如果是火狐浏览器,则需要加上1900年
// if ($.browser.opera) { year = year + 1900; } //如果是opera浏览器,则需要加上1900年
// if ($.browser.safari) { year = ... | piaolinzhi/fight | dubbo/pay/pay-web-boss/src/main/webapp/js/common.js | JavaScript | gpl-2.0 | 2,667 |
/// <reference path="../intellisense/jquery-1.2.6-vsdoc-cn.js" />
/* --------------------------------------------------
参数说明
option: {width:Number, items:Array, onShow:Function, rule:JSON}
成员语法(三种形式) -- para.items
-> {text:String, icon:String, type:String, alias:String, width:Number, items:Array} -- 菜单组
-> {te... | leeoo/xjplugin | ControlsSample/Javascripts/Plugins/jquery.contextmenu.js | JavaScript | gpl-2.0 | 8,227 |
/*
* This file is part of the Doodle3D project (http://doodle3d.com).
*
* Copyright (c) 2013, Doodle3D
* This software is licensed under the terms of the GNU GPL v2 or later.
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
*/
// http://stackoverflow.com/questions/14... | Doodle3D/doodle3d-client | js/utils.js | JavaScript | gpl-2.0 | 1,365 |
var config = require('../config'),
db_name = config.couchdb.db_name,
nano = require('nano')(config.couchdb.server_url),
Utils = require('../utils/Utils.js');
/* If database already exists, an error will be returned by CouchDB
but we can still use that database. */
nano.db.create(db_name);
var keg_db... | kgeorgiou/keg | interfaces/CouchInterface.js | JavaScript | gpl-2.0 | 1,904 |
// Facebook Friend
angular.module('FriendFB', [])
.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('//');
$interpolateProvider.endSymbol('//');
})
.controller('Controller', function($scope, $http){
// TODO: needs to be a domain for Facebook app. ex: sitio.co... | damianpv/exercise | static/js/script_friend.js | JavaScript | gpl-2.0 | 458 |
Ext.define('Bloodbank.bloodbank.shared.com.model.healthcontext.StockUpdateModel.StockUpdateModel', {
"extend": "Ext.data.Model",
"fields": [{
"name": "numberofUnits",
"type": "int",
"defaultValue": ""
}, {
"name": "bloodGroup",
"type": "string",
... | applifireAlgo/appDemoApps201115 | bloodbank/src/main/webapp/app/bloodbank/shared/com/model/healthcontext/StockUpdateModel.js/StockUpdateModel.js | JavaScript | gpl-3.0 | 447 |
(function(App) {
'use strict';
var Config = {
title: 'Guimovie',
platform: process.platform,
genres: [
'All',
'Action',
'Adventure',
'Animation',
'Biography',
'Comedy',
'Crime',
'Documentary'... | bokzor/guimovie | src/app/lib/config.js | JavaScript | gpl-3.0 | 3,701 |
import React from "react";
import PropTypes from "prop-types";
/**
* Represents the textarea HTML element.
*
* @param {Object} props The properties to use.
* @returns {JSX} A representation of the textarea HTML element based on the passed props.
* @constructor
*/
class Textarea extends React.Component {
/**
*... | Yoast/yoast-components | forms/Textarea.js | JavaScript | gpl-3.0 | 1,565 |
// Placeholder file for cordova.js | dukex/padlock | cordova.js | JavaScript | gpl-3.0 | 34 |
define(
"jbundle/back", ["dojo/hash", "dojo/topic"],
function(hash, topic) {
return {
// module:
// jbundle/back
// summary:
// The code skeleton was copied from the deprecated module dojo/back. Thanks!
forwardStack: [],
historyStack: [],
initialized: false,
CRAWLABLE: false, // Change this to tr... | jbundle/osgi-webstart | js/src/main/resources/org/jbundle/res/docs/styles/js/jbundle/back.js | JavaScript | gpl-3.0 | 6,137 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.stock");
frappe.ui.form.on("Stock Reconciliation", {
onload: function(frm) {
frm.add_fetch("item_code", "item_name", "item_name");
// end of life
frm.set_que... | patilsangram/erpnext | erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js | JavaScript | gpl-3.0 | 5,930 |
"use strict";
/*
Copyright (C) 2012 by Jeremy P. White <jwhite@codeweavers.com>
This file is part of spice-html5.
spice-html5 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 ... | SPICE/spice-html5 | display.js | JavaScript | gpl-3.0 | 39,037 |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'forms', 'bs', {
button: {
title: 'Button Properties',
text: 'Text (Value)',
type: 'Type',
typeBtn: 'Button',
typeSbm: 'Submit',
... | vanpouckesven/cosnics | src/Chamilo/Libraries/Resources/Javascript/HtmlEditor/Ckeditor/src/plugins/forms/lang/bs.js | JavaScript | gpl-3.0 | 1,573 |
/*
Highcharts Gantt JS v9.3.1 (2021-11-05)
CurrentDateIndicator
(c) 2010-2021 Lars A. V. Cabrera
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/current-da... | Martin-Gleiss/smartvisu | vendor/plot.highcharts/modules/current-date-indicator.js | JavaScript | gpl-3.0 | 1,654 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Controller_1 = require("./lib/Controller");
exports.Controller = Controller_1.default;
const Route_1 = require("./lib/Route");
exports.Route = Route_1.default;
const Router_1 = require("./lib/Router");
exports.Router = Router_1.default;
... | InHeap/es-controller | dist/index.js | JavaScript | gpl-3.0 | 597 |
var adminStore = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
children: [
{ text: "Variables", leaf: true },
{ text: "Machines", leaf: true },
{ text: "Users", leaf: true },
{ text: "Projects", leaf: true }
]
}
});
Ext.define... | chenc4/RedwoodHQ | public/view/Administration.js | JavaScript | gpl-3.0 | 880 |
import Ember from 'ember';
import layout from '../templates/components/tooltip-on-parent';
const { computed, on, warn } = Ember;
export default Ember.Component.extend({
attributeBindings: ['style'],
layout,
style: computed(function() {
return Ember.String.htmlSafe('display:none;');
}),
registerOnParen... | fpauer/Single-Page-Application-AngularJs | node_modules/ui-bootstrap/node_modules/ember-tooltips/addon/components/tooltip-on-parent.js | JavaScript | gpl-3.0 | 634 |
import React from 'react'
import {TouchableOpacity, Image} from 'react-native'
import {ResponsiveStyleSheet} from 'react-native-responsive-stylesheet'
import {resource} from '../utils/image'
export const ControlButton = ({onPress, type, backgroundColor}) => {
const s = makeStyles()
return (
<TouchableOpacity
... | madox2/fortune-app | src/components/ControlButton.js | JavaScript | gpl-3.0 | 895 |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('series-column', function (Y, NAME) {
/**
* Provides functionality for creating a column series.
*
* @module charts
* @submodule series-column
*/
... | murilotimo/moodle | lib/yuilib/3.17.2/series-column/series-column.js | JavaScript | gpl-3.0 | 6,929 |
var serverUrl = 'http://sms.varsoftng.com/http/';
//var serverUrl = 'http://sms.initsng.com/http/';
//var serverUrl = 'http://localhost/sms_proxy.php/';
var isBlackberry = false;
var activeView = '#dashboard';
var curUsername, curPassword, curSenderId;
var deviceIsOnline = false;
var apiUrls = {
login: serve... | dftaiwo/smspond | www/js/smspond.js | JavaScript | gpl-3.0 | 10,869 |
import React from 'react'
import { Map } from 'immutable'
import Path from 'path'
const ResizeDialogModal = ({ resizePath, resizeSize, initialSize, actions }) => {
const handleSettingInput = (e) => actions.updateModal('resizeSize', e.target.value)
const hideResizeDialog = (newSize) => actions.hideResizeDialog(Map({ ... | patel344/Mr.Miner | Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Hosting/js/components/resizeDialog.js | JavaScript | gpl-3.0 | 1,506 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'print', 'ja', {
toolbar: '印刷'
} );
| Mediawiki-wysiwyg/WYSIWYG-CKeditor | WYSIWYG/ckeditor_source/plugins/print/lang/ja.js | JavaScript | gpl-3.0 | 210 |
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is dis... | iomad/iomad | course/amd/src/events.js | JavaScript | gpl-3.0 | 1,050 |
import React, {Component, PropTypes} from 'react'
import {Card, CardTitle, CardText, CardActions} from 'react-mdl'
import {autobind} from 'core-decorators'
import {t} from 'utils/i18n'
import _styles from './index.scss'
export default class CustomImage extends Component {
static propTypes = {
url: PropTypes.str... | unindented/puzzle-creator | src/components/image/src/index.js | JavaScript | gpl-3.0 | 1,424 |
var status = -1;
function action(mode, type, selection) {
var em = cm.getEventManager("Juliet");
if (em == null) {
cm.dispose();
return;
}
if (!cm.canHold(4001131,1)) {
cm.sendOk("I will need 1 ETC space.");
cm.dispose();
return;
}
if (cm.getPlayer().getMapId() == 926110000) { //just first... | swordiemen/Mushy | scripts/npc/2112013.js | JavaScript | gpl-3.0 | 642 |
/**
* Represents a filter that can be applied to a {@link Ext.util.MixedCollection MixedCollection}. Can either simply
* filter on a property/value pair or pass in a filter function with custom logic. Filters are always used in the
* context of MixedCollections, though {@link Ext.data.Store Store}s frequently create... | jmpolom/ampd | static/extjs4/src/util/Filter.js | JavaScript | gpl-3.0 | 5,316 |
/* 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 { clearDocuments } from "../utils/editor";
import { getSources } from "../reducers/sources";
import { wai... | borian/debugger.html | src/actions/navigation.js | JavaScript | mpl-2.0 | 1,478 |
var fs = require("fs");
var moment = require("moment");
/*
* Serve JSON to our AngularJS client
*/
// For a real app, you'd make database requests here.
// For this example, "data" acts like an in-memory "database"
// GET
exports.posts = function (req, res) {
fs.readFile("data/data.txt", 'utf-8', function (error, ... | luguanxing/Web-Projects | Web2.0/homework12-Blog/routes/api.js | JavaScript | mpl-2.0 | 3,224 |
// 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 https://mozilla.org/MPL/2.0/.
/* global builtinFunctions, builtinObjects, builtinProperties, loopCount, makeAsmJSFunction, makeAsmJSModule */
/* ... | nth10sd/funfuzz | src/funfuzz/js/jsfunfuzz/gen-type-aware-code.js | JavaScript | mpl-2.0 | 25,342 |
/* Copyright (C) 2017 Canonical Ltd. */
'use strict';
const classNames = require('classnames');
const PropTypes = require('prop-types');
const React = require('react');
class ExpandingRow extends React.Component {
constructor() {
super();
this.state = {
expanded: false,
styles: {
height:... | mitechie/juju-gui | jujugui/static/gui/src/app/components/expanding-row/expanding-row.js | JavaScript | agpl-3.0 | 2,942 |
angular.module('sislegisapp').factory('ReuniaoProposicaoResource', function($resource) {
var resource = $resource('http://localhost:8080/sislegis/rest/reuniaoProposicao/:ReuniaoId/:ProposicaoId/', {
ReuniaoId : '@idReuniao',
ProposicaoId : '@idProposicao'
}, {
'queryAll' : {
method : 'GET',
isArray : true... | paulojeronimo/sislegis-app-frontend | scripts/services/ReuniaoProposicaoFactory.js | JavaScript | agpl-3.0 | 446 |
function pybossaNotify(msg, showNotification, type){
$("#pybossa-notification").remove();
var div = $("<div/>");
div.attr("id", "pybossa-notification");
var icon = $("<li/>");
var close = $("<li/>");
close.addClass("fa fa-2x fa-close pull-right");
close.on('click', function(){
$("#py... | PyBossa/mrallergen-theme | static/js/flashmessages.js | JavaScript | agpl-3.0 | 1,451 |
// Modified from Original Code by Blazyb and his Innervate module.
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import A... | fyruna/WoWAnalyzer | src/parser/monk/mistweaver/modules/talents/RenewingMistDuringManaTea.js | JavaScript | agpl-3.0 | 2,042 |
/**
* @module timed
* @submodule timed-components
* @public
*/
import Component from "@ember/component";
/**
* Target component for the sy modal
*
* @class SyModalTargetComponent
* @extends Ember.Component
* @public
*/
export default Component.extend({
/**
* The id of the container. This is the wormhole... | anehx/timed-frontend | app/components/sy-modal-target/component.js | JavaScript | agpl-3.0 | 416 |
// Electrometeor uses the convenience script shelljs/global to reduce verbosity.
// If polluting your global namespace is not desirable, simply require shelljs.
//
// Example:
//
// var shell = require('shelljs');
// shell.echo('hello world');
'use strict';
console.log('Starting Distribution Script...');
require('shel... | justincharles/core-modules | desktop-app/dist.js | JavaScript | agpl-3.0 | 7,640 |
/*
* Spreed WebRTC.
* Copyright (C) 2013-2014 struktur AG
*
* This file is part of Spreed WebRTC.
*
* 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... | tymiles003/spreed-webrtc | static/js/directives/socialshare.js | JavaScript | agpl-3.0 | 2,710 |
module.exports = {
extends: ["@adfinis-sygroup/eslint-config/ember-app"],
rules: {}
};
| anehx/timed-frontend | .eslintrc.js | JavaScript | agpl-3.0 | 91 |
import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common... | fyruna/WoWAnalyzer | src/parser/warlock/destruction/modules/talents/Flashover.js | JavaScript | agpl-3.0 | 3,229 |
var mode_ajout = false;
$(function(){
var ajaxRequest = 'action=afficheTekosMatos';
var dateStartPick = $( "#modPlanStart" ).datepicker("getDate");
var dateStart = $.datepicker.formatDate('yymmdd', dateStartPick );
var dateEndPick = $( "#modPlanEnd" ).datepicker("getDate");
var dateEnd = $.datepicker.for... | RobertManager/robert | fct/modif_plan_Ajax.js | JavaScript | agpl-3.0 | 6,359 |
/* eslint-env node, mocha */
const mongoose = require('mongoose');
const logger = require('../../../../lib/logger');
var indexBuiltCallback = function() {};
before(function(done){
mongoose.model('EnterpriseInternationalPublic').on('index', handleIndexBuild);
done();
});
function handleIndexBuild(err) {
if (err... | chimo/social-enterprise-directory | test/api/helpers/db/db_util.js | JavaScript | agpl-3.0 | 926 |
$(document).ready(function(){
// body...
if($(window).width()<=410){
$(".weather pre").css("margin-left","0em");
}
});
$( window ).on( "orientationchange", function() {
if ($(window).width()<=320) {
$(".weather pre").css("margin-left","3em");
$(".weather pre").append($(window).width()+"");
}
else{
$("... | jflash49/mits_intern_app | js/index.js | JavaScript | lgpl-2.1 | 419 |
define(
['jquery', 'underscore', 'backbone', 'app', 'reports/report'],
function ($, _, Backbone, app, reports) {
'use strict';
var exports = {
View: app.createChild(reports.View)
},
template = function (nodeID) {
return {
... | dtklein/vFense | tp/wwwstatic/js/application/modules/node.js | JavaScript | lgpl-3.0 | 8,908 |
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... | dukeboard/kevoree-modeling-framework | drivers/org.kevoree.modeling.microframework.databases.webrtc/src/main/resources/bower_components/polymer/polymer.js | JavaScript | lgpl-3.0 | 344,007 |
"use strict";
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
const { stripAndCollapseASCIIWhitespace } = require("../helpers/strings");
const { domSymbolTree } = require("../helpers/internal-constants");
const { closest } = require("../helpers/traversal");
const { formOwner } = require("../helpe... | diegopacheco/scala-playground | scala-js-1.0-fun/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js | JavaScript | unlicense | 3,087 |
import _ from 'lodash';
import request from 'superagent';
import Promise from 'bluebird';
import { Feedable } from 'models/feedable';
import { User } from 'models/user';
import { Verification } from 'models/verification';
/**
* Signs up or logs in the user from either facebook or google
*
* Each user can have mult... | webcoding/soapee-api | src/services/form/signUpOrLoginFromThirdParty.js | JavaScript | unlicense | 5,018 |
import {describe, ddescribe, it, iit, xit, xdescribe, expect, beforeEach} from 'angular2/test_lib';
import {bootstrap, appDocumentToken, appElementToken}
from 'angular2/src/core/application';
import {Component} from 'angular2/src/core/annotations/annotations';
import {DOM} from 'angular2/src/dom/dom_adapter';
impor... | lgalfaso/angular | modules/angular2/test/core/application_spec.js | JavaScript | apache-2.0 | 4,441 |
Ext.define('Ozone.components.admin.stack.StackManagementPanel', {
extend: 'Ozone.components.admin.ManagementPanel',
alias: ['widget.stackmanagement'],
layout: 'fit',
gridStacks: null,
pnlStackDetail: null,
txtHeading: null,
lastAction: null,
guid_EditCopyWidget: null,
... | ozoneplatform/owf-framework | web-app/js/components/admin/stack/StackManagementPanel.js | JavaScript | apache-2.0 | 11,437 |
/**
* 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"); you... | apache/incubator-superset | superset-frontend/plugins/legacy-plugin-chart-sunburst/src/index.js | JavaScript | apache-2.0 | 1,855 |
/**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | jlhughes/foam | js/foam/u2/md/TimePicker.js | JavaScript | apache-2.0 | 12,686 |
var searchData=
[
['senderrmessage',['sendERRMessage',['../class_merg_c_b_u_s.html#a08c4a666820ed63f2b574c75cc66482f',1,'MergCBUS']]],
['setcanid',['setCanId',['../class_message.html#afb26a027ffa7e45750f1c738017bb41c',1,'Message::setCanId()'],['../class_merg_memory_management.html#afda2b8368819f35abb28e812b3d02130'... | amaurial/mergCanBus | doxygen/html/search/functions_b.js | JavaScript | apache-2.0 | 6,639 |
module.exports = function(HAPnode, config, functions)
{
var Accessory = HAPnode.Accessory;
var Service = HAPnode.Service;
var Characteristic = HAPnode.Characteristic;
var uuid = HAPnode.uuid;
var debug = HAPnode.debug;
var module = {};
module.newDevice ... | damianxd/homebridge-vera | lib/types/tempsense.js | JavaScript | apache-2.0 | 2,614 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2013 SAP AG. All rights reserved
*/
/* ----------------------------------------------------------------------------------
* Hint: This is a derived (generated) file. Changes should be done in the underlying
* source files only (*.control, *.js... | org-scn-design-studio-community/sdkpackage1.6 | src/org.scn.community.m.basics/os/sapui5/suite/TileContent-dbg.js | JavaScript | apache-2.0 | 10,424 |
Meteor.methods({
"userExists": function(username){
return !!Meteor.users.findOne({username: username});
},
}); | metroidhq/metroidhq | server/methods/userExists.js | JavaScript | apache-2.0 | 118 |
var SetCache = require('./_SetCache'),
arrayIncludes = require('./_arrayIncludes'),
arrayIncludesWith = require('./_arrayIncludesWith'),
arrayMap = require('./_arrayMap'),
baseUnary = require('./_baseUnary'),
cacheHas = require('./_cacheHas');
/** Used as the size to enable large array optimization... | ionutbarau/petstore | petstore-app/src/main/resources/static/node_modules/form-data/node_modules/lodash/_baseDifference.js | JavaScript | apache-2.0 | 2,133 |
import PlaylistItemView from 'foreground/view/leftPane/playlistItemView';
import PlaylistItem from 'background/model/playlistItem';
import StreamItems from 'background/collection/streamItems';
import ListItemType from 'common/enum/listItemType';
import ViewTestUtility from 'test/foreground/view/viewTestUtility';
desc... | umair-gujjar/StreamusChromeExtension | src/js/test/foreground/view/leftPane/playlistItemView.spec.js | JavaScript | apache-2.0 | 804 |
CNVR_onResponse('HELLO WORLD');
| conversant/adlibs | public/jsonp-test.js | JavaScript | apache-2.0 | 32 |
/**
* Copyright 2017 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | aghassemi/amphtml | extensions/amp-story/1.0/animation.js | JavaScript | apache-2.0 | 15,660 |
// Copyright 2014 The Oppia 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... | DewarM/oppia | core/templates/dev/head/components/BarChartDirective.js | JavaScript | apache-2.0 | 1,985 |
/**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
CLASS({
packag... | mdittmer/foam | js/foam/apps/calc/CalcView.js | JavaScript | apache-2.0 | 9,287 |
import { registerBidder } from '../src/adapters/bidderFactory.js'
import { deepAccess } from '../src/utils.js';
const BIDDER_CODE = 'justpremium'
const ENDPOINT_URL = 'https://pre.ads.justpremium.com/v/2.0/t/xhr'
const JP_ADAPTER_VERSION = '1.7'
const pixels = []
export const spec = {
code: BIDDER_CODE,
time: 600... | mcallari/Prebid.js | modules/justpremiumBidAdapter.js | JavaScript | apache-2.0 | 6,308 |
/**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | yangjae/google-api-nodejs-client | lib/requests.js | JavaScript | apache-2.0 | 11,309 |
var typeSelected = new Array("contact", "geo");
var HASHTAGS_LIST = new Array();
var idPlace = new Array("contact", "geo");
var timeout = setTimeout('', 1000);
var countrycodes = "fr";
var dataContact;
//gère la correspondance entre les btn et les icons
var listIcoScope = { "contact" : "user",
"gro... | pixelhumain/network | assets/js/news/formScope.js | JavaScript | apache-2.0 | 18,996 |
/**
* Isotope v1.1.110507
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
* Commercial use requires one-time license fee
* http://metafizzy.co/#licenses
*
* Copyright 2011 David DeSandro / Metafizzy
*/
(function(k,f,s){var m=function(){var a=["Moz","Webkit","Khtml","O","Ms"];re... | nikhilk/scriptsharp | samples/Photos/PhotosWeb/Scripts/jquery.isotope.min.js | JavaScript | apache-2.0 | 15,473 |