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 TruncateMarkup from 'react-truncate-markup';
import ProfileImage from '../../general/ProfileImage.component';
import SkeletonText from '../../base/Skeleton/Text';
import SkeletonUser from '../../base/Skeleton/User';
import Link from '../../general/Link.component';
import toColor from '... | DBCDK/content-first | src/client/components/list/card/ListCard.component.js | JavaScript | gpl-3.0 | 4,569 |
// Suluvir streaming server
// Copyright (C) 2018 Jannis Fink
//
// 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, version 3.
//
// This program is distributed in the hope that it will be usef... | suluvir/server | layout/js/src/reducers/reducers.js | JavaScript | gpl-3.0 | 4,997 |
/**
* This file specifies any system Action permission keys that are used by the
* apps in this Module.
*
* Action Keys are assigned to a user in the system by the Roles & Permission
* system. An Action Key is a unique string usually specified in the following
* format: "[application].[subapp].[verb]" which ... | appdevdesigns/appdev-opsportal | setup/permissions/actions.js | JavaScript | gpl-3.0 | 1,542 |
import operators from "/imports/utils/operators";
import propertyTypes from "/imports/utils/propertyTypes";
/**
* @summary Filter surcharges based on surcharge restriction data
* @param {Object} surcharge - surcharge to check attributes and destination against
* @param {Object} extendCommonOrder - details about the... | anthonybrown/reaction | imports/plugins/included/surcharges/server/no-meteor/util/surchargeCheck.js | JavaScript | gpl-3.0 | 2,982 |
import dude from 'debug-dude'
const { /*debug,*/ log, info /*, warn, error*/ } = dude('bot')
import { version } from '../package.json'
info(`jdnet bot v${version} starting`)
import config from '../config.json'
import { connect, message } from 'coffea'
const networks = connect(config)
import fs from 'fs'
import path... | Joshua1337/JDnet-Telegram-Bot | index.js | JavaScript | gpl-3.0 | 1,715 |
/**
* @file Controller for the metadata creation UIs
* @author Joseph Ferraro <@joeferraro>
*/
'use strict';
var Promise = require('bluebird');
var jobQueue = require('../../job-queue');
var TemplateService = require('../../template');
var MetadataController = function(req) {
this.client = req.ap... | prabhat11/MavensMate | lib/mavensmate/ui/controllers/metadata.js | JavaScript | gpl-3.0 | 2,157 |
'use strict';
require('es6-promise').polyfill();
import fetch from 'isomorphic-fetch';
import {
ALERT_ADD,
ALERT_REMOVE
} from './action-types';
import * as messages from './message-types';
export function addAlert(message, resultType){
return {
type: ALERT_ADD,
message,
resultType
}
}
export function ... | luisfbmelo/reda | public/assets/scripts/actions/alerts.js | JavaScript | gpl-3.0 | 374 |
function saveLocalStorageForm() {
updateEditorValue2JSON();
saveLocalStorage('all');
alert("SAVE:\nProject saved in LocalStorage of your Browser");
};
function clearLocalStorageForm() {
clearLocalStorage('all');
alert("CLEAR:\nProject deleted in LocalStorage of your Browser\nNext reload will load the default... | niebert/JavascriptClassCreator | docs/js/localstorage.js | JavaScript | gpl-3.0 | 15,698 |
var dir_6e3735f50398b4ebf5f2b8e6ac22d046 =
[
[ "EchelleTest.java", "d8/dcb/_echelle_test_8java.html", [
[ "EchelleTest", "d9/d0d/classfr_1_1iessa_1_1vue_1_1_echelle_test.html", "d9/d0d/classfr_1_1iessa_1_1vue_1_1_echelle_test" ]
] ]
]; | avaret/simuroul | doxydoc/html/dir_6e3735f50398b4ebf5f2b8e6ac22d046.js | JavaScript | gpl-3.0 | 249 |
// Main script file for jokeswaps
function jokeType()
{
if(document.getElementById("knock").checked)
{
document.getElementById("line1").innerHTML = "Knock Knock";
document.getElementById("line2").innerHTML = "Who's there?";
document.getElementById("line3").innerHTML = ".... who?";
}
else
{
document.getElementBy... | karwalski/JokeSwaps | js/script.js | JavaScript | gpl-3.0 | 9,042 |
const https = require('https');
var express = require('express');
var app = express();
var fs = require('fs');
var bodyParser = require('body-parser');
var multer = require('multer');
var exec = require('child_process').exec;
app.all('/*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
... | mathieulagrange/iomTraining | iomNode.js | JavaScript | gpl-3.0 | 5,240 |
/*
* Copyright (C) 2015 Telosys-tools-saas project org. ( http://telosys-tools-saas.github.io/ )
*
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | ludo1026/telosys-tools-saas | src/main/webapp/scripts/components/form/form.directive.js | JavaScript | gpl-3.0 | 1,708 |
{
"Enable": false,
"Minute": 60,
"Items": null
} | tianvcms/tianvcms-seo | files/widgets/cache.js | JavaScript | gpl-3.0 | 57 |
"use strict";
var async = require('async');
var winston = require('winston');
var nconf = require('nconf');
var templates = require('templates.js');
var nodemailer = require('nodemailer');
var sendmailTransport = require('nodemailer-sendmail-transport');
var smtpTransport = require('nodemailer-smtp-transport');
var ht... | rockq-org/cnodebb | src/emailer.js | JavaScript | gpl-3.0 | 4,266 |
module.exports = {
usage:
`Send a **feature request** to the bot developer, or in other words, sends a \
message to a secret channel somewhere in the abyss. Requests can have a max \
length of **1950 characters**.
\`[command prefix]featurerequest [feature to request]\``,
aliases: ['suggest'],
dm: false,
... | ddlr/WishBot | commands/bot/featurerequest.js | JavaScript | gpl-3.0 | 2,700 |
/**
* Created by MikeRiy on 17/1/3.
*/
var PACKET_HEADER_SIZE = 4;
function SocketPacket()
{
this.buffer = [];
//this.buffSize = 0;
this.readPos = 0;
this.packetSize = 0;
}
SocketPacket.prototype =
{
construct: SocketPacket,
reset:function()
{
this.buffer = [];
this.rea... | mikestrange/shell | html/js/chat/soy/net/SocketPacket.js | JavaScript | gpl-3.0 | 2,375 |
var async = require('async');
var helpers = require('../../../helpers/aws');
module.exports = {
title: 'Empty Groups',
category: 'IAM',
description: 'Ensures all groups have at least one member',
more_info: 'While having empty groups does not present a direct security risk, it does broaden the manageme... | cloudsploit/scans | plugins/aws/iam/emptyGroups.js | JavaScript | gpl-3.0 | 2,742 |
$(document).ready(function() {
$.fn.extend({
animateCss: function(animationName) {
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
this.addClass('animated' + animationName).one(animationEnd, function() {
$(this).remov... | sumeetsd700/sirus | js/dashboard.js | JavaScript | gpl-3.0 | 7,968 |
/*
Nodics - Enterprice Micro-Services Management Framework
Copyright (c) 2017 Nodics All rights reserved.
This software is the confidential and proprietary information of Nodics ("Confidential Information").
You shall not disclose such Confidential Information and shall use it only in accordance with ... | Nodics/nodics | gDeap/dataConsumer/src/service/event/handlers/defaultExternalDataEventHandlerService.js | JavaScript | gpl-3.0 | 2,462 |
/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
Modified by Robert M. Kuhnhenn, D.O.
on 5/30/2006 to count down to a specific date AND time,
on 10/20/2007 to a new format, and 1/10/2010 to include
time zone offset.
*/
/* Change the items below to create you... | BronyTV/bronytv.net | static/js/vendor/countdown.js | JavaScript | gpl-3.0 | 3,428 |
var searchData=
[
['pack',['pack',['../classDbEntity.html#a0015a01794df0e99d118e4809f40fb18',1,'DbEntity::pack()'],['../classDbEntity.html#a00e8d15dcba2cfe4147c8d3482de2eaf',1,'DbEntity::pack(std::string &key, std::string &value)']]],
['packkey',['packKey',['../classAccessToken.html#a6e5a0576aeb0ea47c1730a7... | NickCis/7552-taller-prog-2-2015-C1 | server/doc/html/search/functions_d.js | JavaScript | gpl-3.0 | 2,905 |
// Librivox Search Angular Module
'use strict';
var librivoxSearch = angular.module('librivoxSearch', []);
librivoxSearch.controller('librivoxSearchController', function ($scope, $http) {
// book data:
baseURL = 'https://librivox.org/api/feed/audiobooks/'; // base URL
$scope.hideDesc... | pkosenko/librivox-search | librivox_search.js | JavaScript | gpl-3.0 | 3,255 |
exports.main = function(options)
{
var deferred = require.API.Q.defer();
// NOTE: You can also use `require.resolve()` instead of `require.id()`.
// We use the latter so we can load this module in the browser as well.
// (The browser loader only supports `require.id()` out of the box)
var uri = requi... | ashking/Cloud9 | node_modules/sourcemint-loader-js/node_modules/sourcemint-platform-nodejs/examples/02-LoaderFeatures/08-ResourceURI/main.js | JavaScript | gpl-3.0 | 717 |
/*
Hooks into the Bugzilla JSONRPC API to get the status of any bugs relating to the spec.
*/
(function() {
if (isDocbuilderWindow()) {
//if (true) { // <- used when debugging locally
var cache = {};
var foundBugs = false;
function clearPresszillaLinksAndWarnings() {
jQ... | pressgang-ccms/DocBuilder2 | presszilla/PressZillaBugzillaSearchIntegration_v4.2.0.js | JavaScript | gpl-3.0 | 25,312 |
/*
Questioning is a kind of BB system completely written using MeteorJS that
implements Ann Kerwin's Ignorance Map and a rewarding system to involve users.
Copyright (c) 2015, Author: Marco Scordino, Advisor: Paolo Ceravolo http://www.di.unimi.it/ceravolo/
This file is part of Questioning.
Questioning is free softwar... | marcosco/meteorQuestioning | client/templates/answers/answer_form.js | JavaScript | gpl-3.0 | 1,436 |
$(function() {
// Configures Flickity Carousel
$('.carousel-main').flickity({
wrapAround: true,
draggable: true,
adaptiveHeight: true,
prevNextButtons: false,
pageDots: false
});
// 2nd carousel, navigation
$('.carousel-nav').flickity({
asNavFor: '.carousel-main',
contain: true,
... | guava/tropicalconf.com | source/javascripts/site.js | JavaScript | gpl-3.0 | 376 |
/**
* ShippingMethod Schema
*/
/**
* @summary EFrameworkCore.Schemas.ShippingMethod
* @description
* @todo DOCUMENTACION y DESCRIPCION
*/
EFrameworkCore.Schemas.ShippingMethod = new SimpleSchema({
_id: {
type: String,
label: "Shipment Method Id",
autoValue: EFrameworkCore.schemaIdAutoValue
},
n... | abalmaceda/eframework-core | common/schemas/shipping.js | JavaScript | gpl-3.0 | 5,643 |
/**
* @preserve jquery.layout.state 1.0
* $Date: 2011-07-16 08:00:00 (Sat, 16 July 2011) $
*
* Copyright (c) 2010
* Kevin Dalman (http://allpro.net)
*
* Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
* and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
*
* @dependanc... | GerHobbelt/jquery.layout | source/dev/plugins/jquery.layout.state-1.1.js | JavaScript | gpl-3.0 | 10,973 |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import routing from './main.routes';
import OrientacionesComponent from './orientaciones.component';
import TransversalesComponent from './transversales.component';
export class MainController {
/*@ngInject*/
constructor($http, $rootScope) ... | Dte-ba/pad | client/app/main/main.component.js | JavaScript | gpl-3.0 | 990 |
(function (j, h, c, g, d, k, f) { /*! Jssor */
new(function () {});
var e = j.$Jease$ = {
$Swing: function (a) {
return -c.cos(a * c.PI) / 2 + .5
},
$Linear: function (a) {
return a
},
$InQuad: function (a) {
return a * a
},
$OutQuad: function (a) {
return -a * (... | 4x4-chris/mdt | app/assets/lib/jssor-slider/jssor.slider.js | JavaScript | gpl-3.0 | 93,027 |
import { Form } from 'form/Form';
describe("Checks the Form object", function() {
let obj = null;
beforeEach(function() {
obj = new Form();
obj.init('name', document.body);
});
afterEach(function() {
obj.destroy();
});
it("checking if the object is defined", function() {
expect(obj).toBeDefined();... | igalarza/dhtmlx-e6 | test/form/Form.spec.js | JavaScript | gpl-3.0 | 329 |
(function () {
'use strict';
angular
.module('smartmarket-web')
.controller('UserController', UserController);
UserController.$inject = ['$scope', '$rootScope', 'API', '$state'];
/**
* TodoController
* @param $scope
* @param $rootScope
* @param API
* @param $sta... | sm-hackaton/smartmarket-web | resources/app/components/user/controller.js | JavaScript | gpl-3.0 | 427 |
/*
Given a binary tree, return all root-to-leaf paths.
For example, given the following binary tree:
1
/ \
2 3
\
5
All root-to-leaf paths are:
["1->2->5", "1->3"]
Credits:
Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.
*/
/**
* Definition for a binary tree ... | matrixki/LeetCode | 257. Binary Tree Paths.js | JavaScript | gpl-3.0 | 1,081 |
const defaults = {
'debug': false,
'positionClass': 'toast-top-right',
'onclick': null,
'fadeIn': 300,
'fadeOut': 100,
'timeOut': 3000,
'extendedTimeOut': 1000
};
function showToaster(message) { // eslint-disable-line no-unused-vars
toastr.options = defaults; // eslint-disable-line no-undef
t... | vvcb/PatManPlus | app/js/notification.js | JavaScript | gpl-3.0 | 385 |
/**
* Created by Bainesing with PhpStorm on 2017/10/15.
*/
jQuery(window).load(function(){
/**
* 第一部分 输出系统初始化信息
*/
$('#cursor').before('<p class="log" id="start_command">欢迎使用 Nebula OS 1.01<br/>' +
'版权所有 ©2018 nebula software studio 保留所有权利。</p>');
setTimeout(function () {
$... | bainesing/nebula-os-terminal-for-web | js/main.js | JavaScript | gpl-3.0 | 29,445 |
/**
* @author Greg Rozmarynowycz <greg@thunderlab.net>
*/
const MDT = require('../mallet/mallet.dependency-tree').MDT;
const IOEvent = require('pulsar-lib').EventTypes.IOEvent;
const MatchEvent = require('pulsar-lib').EventTypes.MatchEvent;
module.exports = {clientFactory,
resolve: ADT => [
ADT.network.Connecti... | thunder033/RMWA | pulsar/app/network/client.js | JavaScript | gpl-3.0 | 1,773 |
/**
STONE RAIDER II
Copyright 2017
Steven Goodwin.
This file is released under the GNU General Public License Version 3.
Please see the licensing conditions for details.
The latest version is generally available at:
https://github.com/marquisdegeek/stoneraider
Play it at:
https://marquisdegeek.c... | MarquisdeGeek/stoneraider | src/js/player.js | JavaScript | gpl-3.0 | 12,422 |
/*
* This file is part of MystudiesMyteaching application.
*
* MystudiesMyteaching application 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 l... | UH-StudentServices/mystudies-myteaching-frontend | profile/src/app/directives/freeTextContent/addFreeTextContent.directive.js | JavaScript | gpl-3.0 | 1,549 |
function addhidden(hidname, hidvalue){
var newinput = document.createElement("input");
newinput.setAttribute("type", "hidden");
newinput.setAttribute("name", hidname);
newinput.setAttribute("value", hidvalue);
document.forms[0].appendChild(newinput);
}
function onload(){
// sendxhr("action=onloadxhraction");
... | dmelian/imywa | www/script/testing.js | JavaScript | gpl-3.0 | 1,365 |
exports.lowercaseUrl = lowercaseUrl;
exports.addTrailingSlash = addTrailingSlash;
function lowercaseUrl(req, res, next) {
var originalUrl = req.originalUrl;
if (/[A-Z]/.test(originalUrl)) {
var newUrl = originalUrl.toLowerCase();
console.log("301 to " + newUrl);
//return res.send("red... | EastpointSoftware/popcms | helpers/routingHelpers.js | JavaScript | gpl-3.0 | 954 |
/*
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( 'docprops', 'gu', {
bgColor: 'બૅકગ્રાઉન્ડ રંગ',
bgFixed: 'સ્ક્રોલ ન થાય તેવું બૅકગ્રાઉન્ડ',
bgImage: 'બૅકગ્રાઉન્ડ ચિત્ર URL',
c... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/docprops/lang/gu.js | JavaScript | gpl-3.0 | 2,387 |
module.exports = function (grunt) {
return {
"nodeWithNativesTest": {
command: "node --allow-natives-syntax <%=env.TEST_DIR%>/src/optimisation-test-runner.js",
options: {
stdout: true,
stderr: true,
failOnError: true,
execOptions: {
cwd: "<%=env.PROJECT_DIR%>"... | simudream/micro-tasks | grunt/shell.js | JavaScript | gpl-3.0 | 626 |
//Functions to call
//Permissions
function getPermissions() {
return $.ajax({
type: "POST",
url: "/data/getPermissions.php"
});
}
//Hide language depending on preference
function hideLanguages() {
$(".es").hide();
$(".en").hide();
var idioma = localStorage.getItem("strCodigoIdioma");
idioma = "." + ... | grantjm9992/ERPApp | mobile/js/s3.web.slim.js | JavaScript | gpl-3.0 | 63,222 |
/**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... | telldus/telldus-live-mobile-v3 | js/App/Reducers/User.js | JavaScript | gpl-3.0 | 13,292 |
var _n_b_link_possibility_matrix_8h =
[
[ "NBLinkPossibilityMatrix", "dd/d0a/_n_b_link_possibility_matrix_8h.html#a7df6c20963bc86ad74fb32796ed1b831", null ]
]; | cathyyul/sumo-0.18 | docs/doxygen/dd/d0a/_n_b_link_possibility_matrix_8h.js | JavaScript | gpl-3.0 | 163 |
/* eslint max-len: 0 */
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NumericBox3 = (props) => (
<SvgIcon {...props}>
<path d="M15,10.5A1.5,1.5 0 0,1 13.5,12C14.34,12 15,12.67 15,13.5V15C15,16.11 14.11,17 13,17H9V15H13V13H11V11H13V9H9V7H13C14.11,7 15... | devteamreims/4me.react | src/core/components/icons/NumericBox/NumericBox3.js | JavaScript | gpl-3.0 | 541 |
/*jslint forin: true, nomen: true*/
/*global _, MAPJS, observable*/
MAPJS.MapModel = function (layoutCalculatorArg, selectAllTitles, clipboardProvider) {
'use strict';
var self = this,
layoutCalculator = layoutCalculatorArg,
clipboard = clipboardProvider || new MAPJS.MemoryClipboard(),
analytic,
currentLayout... | MatrixSofts/MatrixWebEngine | js/libs/jq-mapjs/map-model.js | JavaScript | gpl-3.0 | 30,909 |
'use strict';
/* eslint-env es6 */
const test = require('tap').test;
const extend = require('lodash.assign');
const get_url_object = require('../modules/get_url_object');
test('get_url_object is a function', (assert) => {
// Get typeof string
const expected = get_url_object && {}.toString.call(get_url_object);
... | nuxeo/doc.nuxeo.com | test/get_url_object.js | JavaScript | gpl-3.0 | 4,002 |
/**
* Created by Drew Lemmy, 2016
*
* This file is part of Krist.
*
* Krist 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.
*
... | Lemmmy/Krist | src/websocket_routes/addresses.js | JavaScript | gpl-3.0 | 1,515 |
module.exports = {
url : 'mongodb://sa:sa@ds036638.mongolab.com:36638/ticketresale'
}
/*
//local test
module.exports = {
url : 'mongodb://localhost/ticketresale'
} */ | shanmugakannan/ticketresale | app/config/db.js | JavaScript | gpl-3.0 | 193 |
var should = require('should');
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/weblogtests');
var user = require('../lib/user');
var schemas = require('../lib/schemas');
var User = mongoose.model('User', schemas.user);
var hash = require('sha256');
describe('user', function() {
describe(... | hmngwy/weblog.sh | tests/user.js | JavaScript | gpl-3.0 | 5,736 |
(function() {
'use strict';
angular
.module('weatheropendataApp')
.factory('errorHandlerInterceptor', errorHandlerInterceptor);
errorHandlerInterceptor.$inject = ['$q', '$rootScope'];
function errorHandlerInterceptor ($q, $rootScope) {
var service = {
responseError... | hackathinho/open-clean-energy | backend-weather/src/main/webapp/app/blocks/interceptor/errorhandler.interceptor.js | JavaScript | gpl-3.0 | 718 |
/*global $*/
var default_nodes = {
"dhcp" : {"x": 20, "y": 20, "type": "dhcp", "start_ip": "", "end_ip": ""},
"internet" : {"x": 20, "y": 20, "type": "internet"},
"router": {"x": 20, "y": 20, "type": "router"},
"captive": {"x": 20, "y": 20, "type": "captive"},
"radius" : {"x": 20, "y": 20, "type": ... | f-losilla/NetEval | public/libs/nodelib.js | JavaScript | gpl-3.0 | 1,028 |
import React from 'react';
import './Input.css';
const Input = ({
type = 'text',
inputRef = null,
value = '',
placeholder,
onChange,
children,
className,
...props
}) => {
return (
<div className="Input__wrap">
{children && <label className={`Input__label`}>{children}</label>}
<input
... | DBCDK/content-first | src/client/components/base/Input/Input.js | JavaScript | gpl-3.0 | 633 |
/**
* @file:
* Converts textfield to a autocomplete deluxe widget.
*/
(function($) {
Drupal.autocomplete_deluxe = Drupal.autocomplete_deluxe || {};
Drupal.behaviors.autocomplete_deluxe = {
attach: function(context) {
var autocomplete_settings = Drupal.settings.autocomplete_deluxe;
$('input.au... | buruhsd/job | profiles/recruiter/modules/autocomplete_deluxe/autocomplete_deluxe.js | JavaScript | gpl-3.0 | 14,522 |
"use strict";
import Controller from 'gp-module-base/Controller';
import DomModel from 'gp-module-base/DomModel';
export default Controller.extend({
modelConstructor: DomModel.extend({
session: {
checked: {
type: 'boolean',
required: true
}
}... | GrabarzUndPartner/gp-boilerplate-documentation | src/modules/elements/Checkbox.js | JavaScript | gpl-3.0 | 722 |
/*globals Alexander Backbone Handlebars $ _ L lvector Modernizr */
var MyPhillyRising = MyPhillyRising || {};
(function(NS, A) {
// Router ===================================================================
NS.scrollTops = {};
NS.Router = Backbone.Marionette.AppRouter.extend({
appRoutes: {
'contact': ... | CityOfPhiladelphia/myphillyrising | website/myphillyrising/static/myphillyrising/js/app.js | JavaScript | gpl-3.0 | 16,280 |
var OrderModel = require('./OrderModel');
function Order(order) {
this.name = order.name;
this.sex = order.sex;
this.age = order.age;
this.mobile = order.mobile;
this.price = order.price;
this.userId = order.userId;
this.activityId = order.activityId;
this.activityTitle = order.activity... | waverzy/little | models/order.js | JavaScript | gpl-3.0 | 1,986 |
/* ------------------------------------------------------------------------
Class: prettyPhoto
Use: Lightbox clone for jQuery
Author: Stephane Caron (http://www.no-margin-for-errors.com)
Version: 3.0.1
------------------------------------------------------------------------- */
(function($) {
$.prettyPhot... | ekesken/istatistikciadamlazim | static/js/lib/jquery.prettyphoto.js | JavaScript | gpl-3.0 | 28,599 |
var express = require('express');
var app = express();
app.set('view engine', 'pug');
app.use(express.static('public'));
app.get('/', function(req, res){
res.render('index', { title: 'Jobby'} );
})
app.get('/signup', function(req, res){
res.render('index', { title: 'Jobby - Signup' } );
})
app.g... | jesmarquez/design | server.js | JavaScript | gpl-3.0 | 562 |
/* eslint-disable react/prop-types */
// disable prop type validation since hocs consume different props then component
import React from 'react';
import PropTypes from 'prop-types';
import { compose, onlyUpdateForKeys, withHandlers, setPropTypes } from 'recompose';
import { translate } from 'instances/i18n';
import { ... | BramscoChill/BlendleParser | information/blendle-frontend-react-source/app/modules/item/components/MobileStickySharing/OpenInAppButton.js | JavaScript | gpl-3.0 | 1,504 |
$(document).ready(() => {
const href = window.location.href;
const last = href.substr(href.lastIndexOf('/') + 1);
if (last == '' || last == 'index') {
loadImageSlider();
} else if (last == 'signup' || last == 'admin-signup') {
// Validation and state population
$(".error").hi... | akshay-nair/RepuTech | static/scripts/global.js | JavaScript | gpl-3.0 | 3,114 |
import"../../../@polymer/iron-icon/iron-icon.js";import"../../../@polymer/iron-iconset-svg/iron-iconset-svg.js";import{html as A}from"../../../@polymer/polymer/lib/utils/html-tag.js";const t=A`
<iron-iconset-svg name="mdi-outline" size="24">
<svg>
<g id="arrow-down-bold-circle-outline">
<path
... | elmsln/elmsln | core/dslmcode/cores/haxcms-1/build/es6/node_modules/@lrnwebcomponents/mdi-iconset-svg/lib/mdi-outline-iconset-svg.js | JavaScript | gpl-3.0 | 8,515 |
'use strict';
module.exports = function(grunt) {
// Configuración del proyecto
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
docco: {
debug: {
src: ['*.js', './api/models/*.js', './api/controllers/*.js', './test/*.js'],
options: {
output: 'docs/'
}
... | adrianmorente/PracticasIV | Gruntfile.js | JavaScript | gpl-3.0 | 522 |
define(["jquery","core/ajax"],function(a,b){var c=function(a){var c={methodname:"core_calendar_delete_calendar_events",args:{events:[{eventid:a,repeat:1}]}};return b.call([c])[0]},d=function(a){var c={methodname:"core_calendar_get_calendar_event_by_id",args:{eventid:a}};return b.call([c])[0]},e=function(a){var c={metho... | pramithkm/moodle | calendar/amd/build/repository.min.js | JavaScript | gpl-3.0 | 622 |
angular.module('sg.app.view.admin').controller('AdminController', function () {
}); | kornicameister/RSpringAtom-Client | src/app/view/admin/admin.controller.js | JavaScript | gpl-3.0 | 84 |
var mongoose = require('mongoose');
module.exports.init = function(app){
app.use(function(req, res, next){
next();
});
} | alenagy/restful-api | controllers/auth/auth.js | JavaScript | gpl-3.0 | 125 |
/**
* Copyright Intermesh
*
* This file is part of Group-Office. You should have received a copy of the
* Group-Office license along with Group-Office. See the file /LICENSE.TXT
*
* If you have questions write an e-mail to info@intermesh.nl
*
* @version $Id: Stores.js 22502 2017-08-30 08:33:43Z mschering $
* @... | deependhulla/powermail-debian9 | files/rootdir/usr/local/src/groupoffice-6.3/modules/tickets/Stores.js | JavaScript | gpl-3.0 | 2,505 |
var searchData=
[
['image',['Image',['../structutil_1_1_image.html',1,'util']]]
];
| nshkurkin/VitalK | docs/html/search/classes_7.js | JavaScript | gpl-3.0 | 85 |
/* Copyright (C) 2017 Omri Abend, The Rachel and Selim Benin School of Computer Science and Engineering, The Hebrew University. */
(function () {
'use strict';
angular.module('zAdmin.pages.edit.sources')
.service('editSourcesService', editSourcesService);
/** @ngInject */
function editSourcesService(ap... | omriabnd/UCCA-App | Client/src/app/pages/edit/sources/edit.sources.service.js | JavaScript | gpl-3.0 | 1,765 |
import gql from 'graphql-tag';
export const getTodayActivities = variables => ({
query: gql`
query TodayActivities ($token: String!) {
todayActivities(
token: $token
) {
id
loggedAt
description
kind {
id
color
description
... | cmilfont/biohacking | pwa/src/api/graphql/queries/index.js | JavaScript | gpl-3.0 | 372 |
"use strict";
const vm = require("vm");
const path = require("path");
const fs = require("fs-extra");
const JSZip = require("jszip");
const UserError = require("./userError");
const libDir = process.env.BLANK_DATA_DIR
? path.join(process.env.BLANK_DATA_DIR, "lib")
: path.join(process.cwd(), "var", "lib");
con... | getblank/blank-node-worker | lib/userScript.js | JavaScript | gpl-3.0 | 10,263 |
// ****************************************************************************
// name.js Tao project
// ****************************************************************************
//
// File Description:
//
// Return the name of the page
//
//
//
//
//
//... | c3d/tao-webui | server/exports/name.js | JavaScript | gpl-3.0 | 855 |
/*global Ext*/
//<debug>
console.log(new Date().toLocaleTimeString() + ": Log: Load: WPAKT.view.core.toolbar.Username");
//</debug>
Ext.define("WPAKT.view.core.toolbar.Username", {
extend: "Ext.button.Button"
, alias: "widget.coretoolbarusername"
, text: ""
, scale: "large"
, cls: "top-user-name"
... | Webcampak/ui | Sencha/App6.0/workspace/Dashboard/app/view/core/toolbar/Username.js | JavaScript | gpl-3.0 | 362 |
jQuery(document).ready(function(a){var b=a(".wr-grid"),c=a(".wr-carousel");a(".wr-single").on("click",".wr-truncated-show",function(b){b.preventDefault(),a(this).prev(".wr-truncated").slideDown("fast"),a(this).remove()}),jQuery().slick&&c.length&&c.fadeIn(400).slick({infinite:!0,slidesToShow:3,slidesToScroll:1,dots:!0,... | ThemeAvenue/Plugin-Reviews | plugin-reviews.js | JavaScript | gpl-3.0 | 664 |
/*******************************************************************************
AToMPM - A Tool for Multi-Paradigm Modelling
Copyright (c) 2011 Raphael Mannadiar (raphael.mannadiar@mail.mcgill.ca)
This file is part of AToMPM.
AToMPM is free software: you can redistribute it and/or modify it under the
terms of the G... | hergin/DelTa | styleinfo.js | JavaScript | gpl-3.0 | 3,435 |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here.
// http://docs.cksource.com/CKEditor_3.x/Developers_Guide
// http://docs.ckso... | maximfluieraru/crm-erp_Dolibarr | htdocs/theme/amarok/ckeditor/config.js | JavaScript | gpl-3.0 | 3,799 |
/**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... | telldus/telldus-live-mobile-v3 | js/App/Lib/scheduleUtils.js | JavaScript | gpl-3.0 | 3,153 |
'use strict';
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else {... | qianzhiqin/shadowsocks-manager | lib/plugins/telegram/auth.js | JavaScript | gpl-3.0 | 2,261 |
QUnit.module('execute');
QUnit.test("Object deletion", function(assert) {
assert.ok(true, "this test is fine");
});
QUnit.test("Object creation", function(assert) {
assert.ok(true, "this test is fine");
});
| colombbus/tangara-client | js/test/old_test/executeTest.js | JavaScript | gpl-3.0 | 212 |
function disable_futile_labels() {
$('label').each(function () {
var label = $(this);
label.toggleClass('for_disabled',
! (label.nextAll('input:enabled, select:enabled').length > 0));
});
}
function enable_table_sorting(table, alter_url) {
var sort_headings = table.find('th.sort... | eaobservatory/hedwig | data/web/static/js/hedwig_util.js | JavaScript | gpl-3.0 | 6,063 |
Ext.define('MusicTube.util.Link', {
extend: 'Ext.Component',
id: 'linkUtil',
/**
* 新規windowで開く
*/
openWindow: function(target) {
var a = document.createElement("a");
a.href = target;
a.setAttribute("target", "_blank");
document.body.appendChild(a);
var e = document.createEvent("MouseEvents");
e.init... | taktod/musicTube | app/util/Link.js | JavaScript | gpl-3.0 | 520 |
/**
订单列表
**/
var OrderRow = React.createClass({
getInitialState: function() {
return {value: 'Hello!'};
},
componentDidMount: function() {
asyn_img();
},
render: function() {
var divStyle1 = {'textAlign':'left',width:'60%',float:'left'};
var divStyle2 = {'textAlign':'right'... | rock007/cloud-starter | cloud-shop/src/main/webapp/resources/js/jsx/orders.js | JavaScript | gpl-3.0 | 5,298 |
'use strict';
var async = require('async');
var nconf = require('nconf');
var validator = require('validator');
var db = require('./../database');
var meta = require('../meta');
var emailer = require('../emailer');
var translator = require('../translator');
var utils = require('../utils');
module.exports = function... | pichalite/NodeBB | src/user/invite.js | JavaScript | gpl-3.0 | 4,675 |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("uicolor","zh-cn",{title:"用户界面颜色选择器",options:"颜色选项",highlight:"高亮",selected:"已选颜色",predefined:"预定义颜色集",config:"粘贴此字符串到您的 config.js... | omeka/omeka-s | application/asset/vendor/ckeditor/plugins/uicolor/lang/zh-cn.js | JavaScript | gpl-3.0 | 399 |
/*
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( 'selectall', 'sr-latn', {
toolbar: 'Označi sve'
} );
| ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/selectall/lang/sr-latn.js | JavaScript | gpl-3.0 | 244 |
var Bookshelf = require('bookshelf').DB;
var Packet = require('./Packet').model
, Subject = require('./Subject').model;
exports.model = Bookshelf.Model.extend({
tableName: "Tossups",
packet: function() {
return this.belongsTo(Packet, "PacketId");
},
subject: function() {
return this.belongsTo(Subject... | grapesmoker/qbdb | models/Tossup.js | JavaScript | gpl-3.0 | 423 |
{"address":["RED-IX (Novosibirsk, Russia)","Serebrennikovskaya ulitsa, 14","Novosibirsk, Russia"],"buildings":[{"latitude":"55.0266208","address":["Serebrennikovskaya ulitsa, 14","Novosibirsk, Russia"],"longitude":"82.9261804","offset":"background:url('images/markers.png') no-repeat -22px 0;","id":18657}],"name":"RED-I... | brangerbriz/webroutes | nw-app/telegeography-data/internetexchanges/internet-exchanges/red-ix-novosibirsk-russia.js | JavaScript | gpl-3.0 | 700 |
import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import IconMenu from 'material-ui/IconMenu';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
imp... | PinkFLoyd92/softwareII | src/app/components/pages/payments/show_payments.js | JavaScript | gpl-3.0 | 5,906 |
export default quizPool = {
"idx": [
"T1A01",
"T1A02",
"T1A03",
"T1A04",
"T1A05",
"T1A06",
"T1A07",
"T1A08",
"T1A09",
"T1A10",
"T1A11",
"T1A12",
"T1A13",
"T1A14",
"T1B01",
"T1B02",
"T1B03",
"T1B04",
"T1B05",
"T1B06",
"T1B07",
"T1B... | qiwenmin/HamExam | libFccT.js | JavaScript | gpl-3.0 | 149,780 |
"use strict";
var ComponentsService = (function () {
function ComponentsService() {
this.body = { title: '', content: '' };
}
ComponentsService.setBody = function (i) {
if (null == i || !(i >= 0)) {
this.instance.body = { title: '', content: '' };
return;
}
... | DaanKrug/Rocker-Framework | samples/Rocker-Framework-Functional-Show-Case/static/ng/components/components.service.js | JavaScript | gpl-3.0 | 808 |
/**
* players.js
* Utilities on players page
* @author convincedd, ryanli, LA-MJ
*/
'use strict';
/* eslint-disable */
if (!this.Foxtrick)
// @ts-ignore
var Foxtrick = {};
/* eslint-enable */
if (!Foxtrick.Pages)
Foxtrick.Pages = {};
Foxtrick.Pages.Players = {};
/**
* Test whether this is a player list pag... | minj/foxtrick | content/pages/players.js | JavaScript | gpl-3.0 | 54,892 |
function Folder(folder_data) {
this.name = folder_data.name;
this.date = folder_data.date;
this.title = folder_data.title;
this.description = folder_data.description;
this._id = folder_data._id;
}
Folder.prototype._id = null;
Folder.prototype.name = null;
Folder.prototype.date = null;
Folder.proto... | brunossc/FullStackWebNodeJS | WebAppWithMongo/Static/Model/FolderEntity.js | JavaScript | gpl-3.0 | 581 |
#!/usr/bin/env node
/*
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
"Licens... | KSolutionsSS/dental-navarra_mobileapp | platforms/android/cordova/lib/clean.js | JavaScript | gpl-3.0 | 1,444 |
import testId from 'api/routes/tests/utils/testId';
import chai, { expect } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import setup from 'api/routes/tests/utils/setup';
import * as routes from 'lib/constants/routes';
import createOrgToken from 'api/routes/tests/utils/tokens/createOrgToken';
import getP... | LearningLocker/learninglocker | api/src/routes/tests/personaController/personas/deletePersona-test.js | JavaScript | gpl-3.0 | 1,212 |
"use strict";
exports.data = [
{
test: "Test"
}
];
| marthinusswart/express-ts-node-azure | fixtures/data.js | JavaScript | gpl-3.0 | 67 |
Ext.namespace('Portal.cart');
Portal.cart.BaseInjector = Ext.extend(Object, {
constructor: function(config) {
Portal.cart.BaseInjector.superclass.constructor.call(this, Ext.apply(this, config));
},
getInjectionJson: function(dataCollection) {
return {
uuid: dataCollection.getU... | aodn/aodn-portal | web-app/js/portal/cart/BaseInjector.js | JavaScript | gpl-3.0 | 1,631 |
import { Meteor } from "meteor/meteor";
import { Roles } from "meteor/alanning:roles";
import { Accounts, Shops, SellerShops } from "/lib/collections";
// Export Reaction using commonJS style for common libraries to use Reaction easily
// https://docs.meteor.com/packages/modules.html#CommonJS
let Core;
// TODO: Decide... | Team-Olga/Olga-Verkkokauppa | lib/api/core.js | JavaScript | gpl-3.0 | 2,713 |
'use strict';
angular.module('risevision.editorApp.controllers')
.controller('PlaylistItemModalController', ['$scope',
'placeholderPlaylistFactory', 'widgetModalFactory', 'gadgetFactory',
'$modalInstance', 'placeholderFactory', 'item', 'editorFactory',
'userState', 'RVA_URL',
function ($scope, placeh... | Rise-Vision/editor-app | js/controllers/ctr-playlist-item-modal.js | JavaScript | gpl-3.0 | 1,471 |
/** @license GPL-3.0
* SpectreCSS.js
*
* @author: Philip Van Raalte
* @date November 8, 2017
*
* Functional components for the Spectre CSS library.
*/
import React, {Fragment} from 'react';
import _ from 'lodash';
/**
* Prepends the className from props to the component default className.
* @param {String} de... | FIL1994/MusicGame | src/components/SpectreCSS.js | JavaScript | gpl-3.0 | 6,690 |