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
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/d...
FireWalkerX/eyeOS-FOSS-V.2.0
devtools/qooxdoo-sdk/framework/source/class/qx/ui/decoration/css3/BorderImage.js
JavaScript
agpl-3.0
7,433
// Generated by CoffeeScript 1.10.0 (function() { (function(root, factory) { if (typeof define === 'function' && define.amd) { return define(['elgg', 'jquery'], factory); } else if (typeof exports === 'object') { return module.exports = factory(); } else { return root.returnExports = fac...
coder-molok/foowd_alpha2
mod_elgg/foowd_utenti/views/default/js/foowd_utenti/gallery-crop-lightbox.js
JavaScript
agpl-3.0
17,026
/** * Copyright (C) 2011 Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the...
dylanswartz/canvas-lms
public/javascripts/manage_groups.js
JavaScript
agpl-3.0
33,888
import Debug; private var log:Array = new Array(); var maxLogMessages:int = 200; var visible:boolean = true; var stringToEdit : String = ""; var selectTextfield : boolean = true; function Start() { //Input.eatKeyPressOnTextFieldFocus = false; log.Add("Alpha Build 1.0"); } function print(string:String) { log.push(...
HaddadBenjamin/Blood-Of-Evil-Remake-2
BLooDBuRNiNG Project 12 Novembre menu stat/Assets/Projet/Scripts/Item/RotateAroundPlayer.js
JavaScript
agpl-3.0
2,007
requirejs.config({ paths: { 'jquery': 'libraries/jquery-1.11.2', 'mustache': 'libraries/mustache.js-master/mustache', 'text': 'libraries/text-master/text' } }); require(["jquery", "mustache", "text!../templates/space_ships.tmpl"], function(jquery, mustache, madlibs_template) { ...
NerdcoreSteve/mustache-js-examples
public/repeat/scripts/main.js
JavaScript
agpl-3.0
1,008
'use strict'; /** * Control back end internationalization. * * @module ov/i18n */ (function(angular) { var app = angular.module('ov.i18n', ['ngCookies']); /** * Defines an internationalization service to manage string translations. * * @example * MyAngularObject.$inject = ['i18nService']; * ...
veo-labs/openveo-core
app/client/admin/js/i18n/I18nApp.js
JavaScript
agpl-3.0
11,491
import Checkbox from 'material-ui/Checkbox'; import TextField from 'material-ui/TextField'; import React, { Component } from 'react'; import { Col, Row } from 'react-flexbox-grid'; import ComposedComponent from 'react-schema-form/lib/ComposedComponent'; // https://github.com/networknt/react-schema-form/blob/master/src...
GHImplementationTeam/FrontEnd
src/components/base/RefusableNumber.js
JavaScript
agpl-3.0
2,671
// https://github.com/Nikku/karma-browserify module.exports = function (config) { config.set({ browsers: ['PhantomJS'], plugins: [ 'karma-junit-reporter', 'karma-phantomjs-launcher', 'karma-browserify', 'karma-mocha', 'karma-sinon', ...
transition-connect/transition-connect-server
managementGUI/client/karma.conf.js
JavaScript
agpl-3.0
1,169
module.exports = function(handler, vars, io, db_manager, config, sconfig, utilz, logger) { // Pushes a log message handler.push_log_message = function(socket, message) { let room_id if(typeof socket === "object") { room_id = socket.hue_room_id } else ...
madprops/Hue
server/sockets/modules/logs.js
JavaScript
agpl-3.0
2,608
define([ 'json!#config/config.json', 'injector' ], function (config, injector) { 'use strict'; // update baseurl var Logger = function() { this.showAlerts = config.env==="DEV"; this.checkShowLogs = config.env!=="PROD"; this.mappingLogs = { "audio" : true, "taxi" : true, "coun...
Parisson/TimeSide
timeside/player/static/timeside2/app/scripts/core/quematech_web_core/scripts/controllers/logger.js
JavaScript
agpl-3.0
829
define([ './apps/home/views/home' ], function (HomeView) { var main = { init: function () { }, launch_home: function (app) { var home_view = new HomeView(); SmartBlocks.Methods.render(home_view.$el); home_view.init(); } //new_apps - do...
smartblocks/smartblocks
lib/project_structure/blocks/main/frontend/index.js
JavaScript
agpl-3.0
371
OC.L10N.register( "encryption", { "Password successfully changed." : "បាន​ប្ដូរ​ពាក្យ​សម្ងាត់​ដោយ​ជោគជ័យ។", "Could not change the password. Maybe the old password was not correct." : "មិន​អាច​ប្ដូរ​ពាក្យ​សម្ងាត់​បាន​ទេ។ ប្រហែល​ពាក្យ​សម្ងាត់​ចាស់​មិន​ត្រឹម​ត្រូវ។", "Encryption" : "កូដនីយកម្ម", "C...
sharidas/core
apps/encryption/l10n/km.js
JavaScript
agpl-3.0
754
'use strict' const assert = require('assert') /* * Imports a version of Acorn which supports object rest properties, * allowing to parse `:args` attributes containing `LTags()` calls. * * Note that pug-lint already exposes an useful `addErrorWithAcorn()` function, * but it is currently using an outdated version ...
okTurtles/group-income-simple
scripts/validate-i18n.js
JavaScript
agpl-3.0
11,313
/* * Copyright (c) 2012-2015 CoNWeT Lab., Universidad Politécnica de Madrid * * This file is part of Wirecloud Platform. * * Wirecloud Platform 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 Soft...
rockneurotiko/wirecloud
src/wirecloud/commons/static/js/StyledElements/PaginatedSource.js
JavaScript
agpl-3.0
5,275
/* eslint-disable */ /*! * pickadate.js v3.5.0, 2014/04/13 * By Amsul, http://amsul.ca * Hosted on http://amsul.github.io/pickadate.js * Licensed under MIT */ (function ( factory ) { // AMD. if ( typeof define == 'function' && define.amd ) define( 'picker', ['jquery'], factory ) // Node.js/b...
bchassoul/quan
src/js/libs/materialize/date_picker/picker.js
JavaScript
agpl-3.0
86,688
module.exports = function (fn, data, opts) { var handler = { fn: fn, data: data || {}, opts: opts || {}, handleEvent: handle } return handler } function handle (ev) { ev.stopPropagation() var box = ev.currentTarget.getBoundingClientRect() this.fn({ x: ev.clientX, y: ev.clientY, ...
mmckegg/loop-drop-app
lib/mouse-position-event.js
JavaScript
agpl-3.0
722
/* * DealPort * Copyright (c) 2014 DealPort B.V. * * This file is part of DealPort * * DealPort is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, version 3 of the License. * * DealPort is distr...
cuongvc/dealport
lib/google-analytics.js
JavaScript
agpl-3.0
1,827
demobbed.resetEvent(); demobbed.event().id(11106041632); demobbed.event().date(1302978275000); demobbed.event().hitsTT()[0] = [ new HitTT(10000, 59.59, 416.19, 13.73), new HitTT(10001, 54.51, 429.59, 66.02), new HitTT(10002, 44.16, 442.99, 123.35), new HitTT(10003, 46.8, 442.99, 143.27), new HitTT(10004, 49...
dmitr25/demobbed-viewer
js/nuEventsData/nuMu/loadEvent11106041632.js
JavaScript
agpl-3.0
9,383
/** * jQuery Longclick Event * ====================== * Press & hold mouse button "long click" special event for jQuery 1.4.x * * @license Longclick Event * Copyright (c) 2010 Petr Vostrel (http://petr.vostrel.cz/) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * Ver...
fentas/ghostwriter
extension/src/js/utils/jquery.longclick.js
JavaScript
agpl-3.0
4,629
/***************************************************** * MAIN.JS * (C) 2012 - Brent Gustafson - brentgustafson.com ******************************************************/ var bg, bgh, bgw; function resize_bg() { bgw = bg.width(); offsetw = bgw - $(window).width(); bg.css("left", offsetw/2*-1); } $(func...
mc-coal/mc-coal
static/js/main.js
JavaScript
agpl-3.0
804
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget 1.14pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery 1.4.2+ * - jQuery U...
trabacus-softapps/openerp-8.0-cc
openerp/addons/website_capitalcentric/static/src/lib/jquery.multiselect.js
JavaScript
agpl-3.0
22,253
'use babel' import { IconType } from '../constants' import isMountedFolder from './is-mounted-folder' export default function decorateMountFolder(root) { if (!root || !isMountedFolder(root)) { return null } root.classList.add('kd-mount') root.directoryName.classList.remove(IconType.Repo) root.directoryNa...
koding/kd-atom
lib/utils/decorate-mount-folder.js
JavaScript
agpl-3.0
428
module.exports = { preset: 'ts-jest', testEnvironment: 'jsdom', setupFilesAfterEnv: ['<rootDir>/internals/testing/setupTests.ts'], moduleNameMapper: { '@assets/(.*)': '<rootDir>/assets/$1', '^@/(.*)$': '<rootDir>/src/$1' }, transform: { '^.+\\.tsx?$': 'ts-jest', '^.+\\.svg$': '<rootDir>/inte...
3drepo/3drepo.io
frontend/jest.config.js
JavaScript
agpl-3.0
357
/* * Copyright (C) 2020 Anthony DeDominic <adedomin@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
adedomin/neomoose
lib/irc.js
JavaScript
agpl-3.0
10,405
/* * This file is part of huborcid. * * huborcid is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * huborcid is distrib...
Cineca/OrcidHub
src/main/webapp/bower_components/bootstrap/js/button.js
JavaScript
agpl-3.0
3,548
// A $( document ).ready() block. $( document ).ready(function() { const cookieName = 'user-cookie-consent'; let hasConsented = Cookies.get(cookieName); if(hasConsented === 'true') { $(".cookie-notice").css('display', 'none'); } $("#cookie-accept").click(function () { $(".cookie-not...
nesdis/djongo
docs/assets/js/cookie-consent.js
JavaScript
agpl-3.0
401
/* * ArgonMS MapleStory server emulator written in Java * Copyright (C) 2011-2013 GoldenKevin * * 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, ...
Kevin-Jin/argonms-server
scripts/quests/q8189e.js
JavaScript
agpl-3.0
1,197
// // @route /mobilizations/:mobilization_id/widgets/:widget_id/form/finish // import { connect } from 'react-redux' import MobSelectors from 'mobrender/redux/selectors' import * as MobActions from 'mobrender/redux/action-creators' import Page from './page' const mapStateToProps = (state, props) => { const selecto...
nossas/bonde-client
packages/bonde-admin/src/pages/admin/mobilizations/widgets/form/settings/finish/page.connected.js
JavaScript
agpl-3.0
596
define(function(require) { describe('设置下划线', function() { var underline = require('entrance/tool/setunderline'), send = require('basic/tools/send'), cells = require('collections/cells'), selects = require('collections/selectRegion'), gridRows = require('collections/headItemRow'), gridCols = require('c...
iCloudWorkGroup/fengniao
test/unit/underline.spec.js
JavaScript
agpl-3.0
2,709
// Mainly based on these 2 articles : // Creating an universal virtual touch joystick working for all Touch models thanks to Hand.JS : http://blogs.msdn.com/b/davrous/archive/2013/02/22/creating-an-universal-virtual-touch-joystick-working-for-all-touch-models-thanks-to-hand-js.aspx // & on Seb Lee-Delisle original work...
brosnanyuen/Project-S
Babylon.js-master/Babylon/Tools/babylon.virtualJoystick.js
JavaScript
agpl-3.0
14,367
import ChatAppDispatcher from '../dispatcher/ChatAppDispatcher'; import * as ChatWebAPIUtils from '../utils/ChatWebAPIUtils'; import * as ChatMessageUtils from '../utils/ChatMessageUtils'; import ChatConstants from '../constants/ChatConstants'; import * as Actions from './API.actions'; let ActionTypes = ChatConstants....
RMCoder198/chat.susi.ai
src/actions/ChatApp.actions.js
JavaScript
lgpl-2.1
1,393
/** * @for p5 * @requires core */ import p5 from '../main'; // Borrow from stacktracejs https://github.com/stacktracejs/stacktrace.js with // minor modifications. The license for the same and the code is included below // Copyright (c) 2017 Eric Wendelin and other contributors // Permission is hereby granted, free...
mlarghydracept/p5.js
src/core/friendly_errors/stacktrace.js
JavaScript
lgpl-2.1
8,659
var mongo = require('mongodb'), memcache = require('memcache'), config = require('./config'); // if needed, include a mailer var nodemailer = require("nodemailer"); var mailTransp = nodemailer.createTransport(config.params.MAIL.type, config.params.MAIL.server); var mem = new memcache.Client(config.params.MEMC...
Kolbaskin/yode-server
www/localhost/init.js
JavaScript
lgpl-2.1
1,405
/* * This file is part of Cockpit. * * Copyright (C) 2014 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
kkaempf/cockpit
pkg/server-systemd/server.js
JavaScript
lgpl-2.1
27,204
(function() { var NODE_MODULES_DIR, app, config, express, fs, http, requirejs; requirejs = require('requirejs'); http = require('http'); fs = require('fs'); express = require('express'); NODE_MODULES_DIR = '../node_modules/'; config = { baseUrl: __dirname, paths: { requireLib: NODE_MOD...
bpartridge/autoblocks.js
server/server.js
JavaScript
lgpl-2.1
1,734
define(["prism/prism"], function () { Prism.languages.livescript = { 'comment': [ { pattern: /(^|[^\\])\/\*[\s\S]*?\*\//, lookbehind: true }, { pattern: /(^|[^\\])#.*/, lookbehind: true } ], 'interpolated-string': { /* Look-behind and look-ahead prevents wrong behavior of the greedy pattern *...
MenesesEvandro/WCF
wcfsetup/install/files/js/3rdParty/prism/components/prism-livescript.js
JavaScript
lgpl-2.1
2,990
import './initComponents.js'; import '../taskDrawer/initComponents.js'; Vue.use(Vuetify); export function formatSearchResult(results, term) { if (results && results.tasks && results.tasks.length) { results = results.tasks.map(task => { const commentCount = task.commentCount; task = task.task; ...
exoplatform/task
task-management/src/main/webapp/vue-app/taskSearch/main.js
JavaScript
lgpl-3.0
1,240
/* Copyright (c) 2013 Rafael Vega González <rvega@elsoftwarehamuerto.org> This file is part of Dancing Bone Machine. Dancing Bone Machine 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...
dancing-bone-machine/dancing-bone-machine
library/dancing-bone-machine/html/dbm.file.cordova.js
JavaScript
lgpl-3.0
1,406
/* * ShareVol * Lightweight WebGL volume viewer/slicer * * Copyright (c) 2014, Monash University. All rights reserved. * Author: Owen Kaluza - owen.kaluza ( at ) monash.edu * * Licensed under the GNU Lesser General Public License * https://www.gnu.org/licenses/lgpl.html * */ //BUGS: //Canvas Y slightly too la...
mivp/sharevol
src/volume.js
JavaScript
lgpl-3.0
26,208
(function (){ require.config({ baseUrl: "/js", paths: { }, waitSeconds: 0.1 }) require([], function (){ console.log('start') }) }())
cybergrind/js_kickoff
examples/hello/main.js
JavaScript
lgpl-3.0
156
import ReactList from 'react-list' import style from './ReportEditor.scss' import React, { Component} from 'react' import Studio from 'jsreport-studio' let _instance export default class ReportEditor extends Component { static get Instance () { return _instance } constructor () { super() this.state ...
jsreport/jsreport-reports
studio/ReportEditor.js
JavaScript
lgpl-3.0
4,183
/* autogenerated by webmerge (compile context) */ ; var vsop87={}; (function(p){function u(c,d,e,b,q,h,a){a=a||0;e=e||0;b=b||[];c(d,e,b,q,h,a);d.givesMeanMotion&&(c=b[a+0]*d.givesMeanMotion,b[a+0]=Math.cbrt(d.GM/c/c));if(toVSOP=d.toVSOP)d=new Orbit({a:b[a+0],L:b[a+1],k:b[a+2],h:b[a+3],q:b[a+4],p:b[a+5],GM:d.GM,epoch:e}...
mgreter/ephem.js
src/vsop87/dist/08-big/min/vsop87.js
JavaScript
lgpl-3.0
943,871
'use strict'; // Default Parameters function doSomething(obj, otherThing = 1) { console.log('obj', obj); console.log('otherThing',otherThing); } doSomething('my object'); doSomething('my obj', 25); // Rest Parameters function add(first, ...numbers) { var result = first; for (var i = 0; i < numbers.le...
Kevnz/learnin-me-some-es6
episode-1/index.js
JavaScript
unlicense
636
"use strict"; const assert = require("assert"), unicodeUtil = require("../index").unicode; const unicodeText = "ÀÆÇD"; const asciiText = "AAECD"; assert.equal(unicodeUtil.containsUnicode(unicodeText), true); assert.equal(unicodeUtil.containsUnicode(asciiText), false); assert.equal(unicodeUtil.unicodeToAscii(unicod...
Sembiance/xutil
test/unicode.js
JavaScript
unlicense
607
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
drmwndr/cloud1
app/assets/javascripts/application.js
JavaScript
unlicense
948
'use strict'; let blocks = Object.create(null); let debug = function(varToDebug) { console.log("==============VIEW DEBUG ==============" ); console.log(varToDebug); }; module.exports = { "extends" : function(name, context) { let block = blocks[name]; if (!block) { block = bl...
SaydChada/social_network
app/views/helpers/global.js
JavaScript
unlicense
3,935
"use strict"; const assert = require('assert'); const lib = require('..'); const createReadStream = require('fs').createReadStream; const SchemaRegistry = lib.SchemaRegistry; const metaschemas = [ require('json-metaschema/draft-2019-09-schema.json'), require('json-metaschema/draft-2019-09-hyper-schema.json'), req...
awwright/jsonschemaparse
test/StreamParser.test.js
JavaScript
unlicense
4,706
GoogleElectionMap.shapeReady({name:"Gov_221_",type:"state",state:"Gov_221_",bounds:[],centroid:[],shapes:[ {points:[ {x:32.6513361842984,y: 29.0752472553184} , {x:32.6501221622925,y: 29.0721573826192} , {x:32.6499253325023,y: 29.0667573118645} , {x:32.6485863651081,y: 29.0641255571248} , {x:32.6471361984904,y: 29.06310...
amounir86/amounir86-2011-elections
voter-info/shapes/json/Gov_221_.js
JavaScript
unlicense
96,153
//----------------------------------------------------------- // DebugUtil v4 //----------------------------------------------------------- var DebugUtil={c:true,f:false,ws:null, Init: function(target){this.c=true; this.f=false; if(target=="both"){this.f=true;} else if(target=="file"){this.c=false;this.f=true;}...
bugoodby/bugoodbylib
script/wsh/tips/12.debugutil/debugutil.js
JavaScript
unlicense
2,670
var _ = require('underscore') var mergeTrees = require('broccoli-merge-trees') var makeDeps = require('./makeDeps') var DeclReader = require('./declReader') var LevelsReader = require('./levelsReader') var DEFAULT_TECHS_MODULE = require('./techs') var DEFAULT_OPTIONS = { deployPath: '/', levels: ['blocks'], techM...
sunflowerdeath/broccoli-bem
src/builder.js
JavaScript
unlicense
3,735
var router = require('express').Router(), /// For collection utilities _ = require('lodash'), /// For logging messages logger = ('../middleware/logger'), /// For authenticating Google account users GoogleOauthJWTStrategy = require('passport-google-oauth-jwt').GoogleOauthJWTStrategy, /// For ...
KenEucker/quasi
quasi/authentication.js
JavaScript
unlicense
3,456
define(['controller/controllers', 'jquery','dictsConstant', 'directives/hysDatebox'],function(app){ app.controller("ladyVisit42dayDetailController",['$rootScope','$scope','$routeParams','$indexedDB','dataDicts','DataDictService' ,function($rootScope,$scope,$routeParams,LocalDBService,dataD...
muyingzhi/ehrOffline
app/scripts/controller/ladyVisit42dayDetailController.js
JavaScript
unlicense
7,058
/* TODO: # Walls! [] Act like screens? # Find replacement for ugly wireframe # Implement gameover & reset # Fix double left/right bug (causes to run into itself) */ // An int vector2, point. var Position = function(x, y) { this.x = x; this.y = y; }; // Adds another Position to this position Position.prototype.add...
joppiesaus/fps-snake
js/main.js
JavaScript
unlicense
8,682
var Backbone = require('backbone'); var moment = require('moment'); var accounting = require('accounting'); module.exports = Backbone.View.extend({ template: require('../../templates/dashboard/table-row.jst'), serializeData: function() { var obj = this.model.toJSON(); obj.date = moment(obj.date, 'YYYYMMD...
eratecycle/eratecycle.github.io
_includes/portal/js/views/dashboard/table-row.js
JavaScript
apache-2.0
458
exports.profiles = function(grunt){ return { env : grunt.option('env'), // replace with environment 'test' : { apiproxy : 'grunt-apigee-import-api-bundle', org : 'testmyapi', // replace with organization env : 'test', // replace with environment url_mgmt : 'https://api.enterprise.apige...
grunt-apigee/grunt-apigee-import-api-bundle
grunt/apigee-config.js
JavaScript
apache-2.0
3,933
/* Copyright (c) 2014-2015 F-Secure See LICENSE for details */ 'use strict'; /* LocMap server routes. */ var conf = require('../lib/config'); var logger = require('../lib/logger'); var LocMapRestApi = require('./lib/locMapRESTAPI'); var locMapRestApi = new LocMapRestApi(); var LocMapAdminApi = require('./lib/lo...
DocV/lokki-server
locmap/locmap-server.js
JavaScript
apache-2.0
12,299
/* eslint-disable react/jsx-no-bind */ import React, { useState } from 'react'; import { bool, func, shape, arrayOf, } from 'prop-types'; import _ from 'lodash'; import { makeStyles } from '@material-ui/core/styles'; import Folder from './Folder'; import styles from './styles'; const useStyles = makeStyles(the...
veritone/veritone-sdk
packages/veritone-react-common/src/components/FolderTree/index.js
JavaScript
apache-2.0
5,420
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
abelCoronado93/one
src/sunstone/public/app/tabs/datastores-tab/datatable.js
JavaScript
apache-2.0
5,966
/* * Copyright © 2016-2017 The Thingsboard Authors * * 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 applicabl...
osswangxining/iotplatform
iotplatform-ui/src/app/api/plugin.service.js
JavaScript
apache-2.0
7,454
((typeof window === 'undefined') ? describe : describe.skip)('node bridge', function () { const uvm = require('../../../lib'), expect = require('chai').expect; describe('with timeout option', function () { // options.bootTimeout is not implemented in browser sandbox because there // is ...
postmanlabs/uvm
test/unit/node/timeout.test.js
JavaScript
apache-2.0
2,258
// trigger saga export const getAudio = (...args) => ({ type: 'app/getAudio', args }) export const getBooks = (...args) => ({ type: 'app/getBooks', args }) export const getBook = (...args) => ({ type: 'app/getBook', args }) export const cancelGetBooks = (reason) => ({ type: 'app/cancelGetBooks', rea...
tubackkhoa/tkframework
client/store/actions/book/index.js
JavaScript
apache-2.0
1,135
export default { host: { padding: '3em 1.5em', maxWidth: '600px', margin: '1em auto', textAlign: 'center', backgroundColor: '#fff', boxShadow: '0 2px 6px 1px rgba(0,0,0,.2)', borderRadius: '3px', }, header: { fontSize: '2em', padding: '1em 0', textTransform: 'uppercase', fontWeig...
phenax/f-inator-3000
src/styles/finator.js
JavaScript
apache-2.0
556
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Button from '../Button'; describe('Button', () => { it('should render a raised button', () => { const tree = renderer.create( <Button type="raised">Hello</Button>, ).toJSON(); expect(tree).toMatchS...
alacroix/baka-reader
src/components/__tests__/Button.test.js
JavaScript
apache-2.0
520
var bgPage = chrome.extension.getBackgroundPage(); var url = ''; var page_title = ''; $(function(){ chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) { var tab = tabs[0]; if(tab.status==='complete'){ //如果是chrome页,则返回 if(tab.url.substr(0,9)==='chrome://'){ ...
ety001/bigbrainhole
chrome-extension/js/pop.js
JavaScript
apache-2.0
1,137
/** * Copyright 2019, Google, 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 or agreed to in writi...
actions-on-google/smart-home-frontend
src/device-types/standmixer.js
JavaScript
apache-2.0
1,901
"use strict"; const settings_config = require("./settings_config"); exports.build_realm_logo_widget = function (upload_function, is_night) { let logo_section_id = "#realm-day-logo-upload-widget"; let logo_source = page_params.realm_logo_source; if (is_night) { logo_section_id = "#realm-night-logo...
brainwane/zulip
static/js/realm_logo.js
JavaScript
apache-2.0
3,694
'use strict'; describe('Controller Tests', function() { describe('Projeto Management Detail Controller', function() { var $scope, $rootScope; var MockEntity, MockPreviousState, MockProjeto; var createController; beforeEach(inject(function($injector) { $rootScope = $inj...
fjuriolli/scribble
src/test/javascript/spec/app/entities/projeto/projeto-detail.controller.spec.js
JavaScript
apache-2.0
1,458
var Spot = require('spot-framework'); var BaseWidget = require('./base-widget'); var colors = require('../../colors'); var misval = Spot.util.misval; // NOTE: sigma and sigma plugins do not work properly with require() // workaround via browserify-shim (configured in package.json) var Sigma = require('sigmajs'); requi...
jspaaks/spot
src/widgets/views/sigma.js
JavaScript
apache-2.0
3,567
// @flow const model = { hasInitiated: false, searchFailed: false, searchTerm: '', images: { baseUrl: '', secureBaseUrl: '', backdropSizes: [], logoSizes: [], posterSizes: [], profileSizes: [], stillSizes: [], }, movies: { page: 0, list: [], totalPages: 0, totalR...
craigbilner/fp-film-search
src/model.js
JavaScript
apache-2.0
362
import Schema from '../models/schema' import Text from '../models/text' import { List } from 'immutable' /** * Options object with normalize set to `false`. * * @type {Object} */ const OPTS = { normalize: false } /** * Define the core schema rules, order-sensitive. * * @type {Array} */ const rules = [ /...
standardhealth/flux
src/lib/slate/schemas/core.js
JavaScript
apache-2.0
7,511
// import CommentsModule from './commentList' // import CommentsController from './commentList.controller'; // import CommentsComponent from './commentList.component'; // import CommentsTemplate from './commentList.html'; // // describe('Comments', () => { // let $rootScope, makeController; // // beforeEach(window....
mazurevich/test
client/app/components/movieDetails/commentList/commentList.spec.js
JavaScript
apache-2.0
1,251
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:v2/notebook/note/show', 'Unit | Route | v2/notebook/note/show', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { let route = this.subject(); assert.ok(route); });
ubuntuvim/ape-note
tests/unit/routes/v2/notebook/note/show-test.js
JavaScript
apache-2.0
320
 /** * By default DataTables only uses the sAjaxSource variable at initialisation * time, however it can be useful to re-read an Ajax source and have the table * update. Typically you would need to use the `fnClearTable()` and * `fnAddData()` functions, however this wraps it all up in a single function * call. *...
Mobet/Mobet-Net
Mobet-Net/Mobet.Resources/Resources/plugins/angular-datatables/jquery.datatables.fnreloadajax.1.10.4.js
JavaScript
apache-2.0
3,450
function setSearchTextField(paramname, field) { var passed = location.search.substring(1); var query = getParm(passed,paramname); if(typeof query != 'undefined') { query = query.replace(/\+/g," "); var loc = document.location; if(/.*documentation-search.html/.test(loc)) { document.title = decodeURIComponent...
ktakagaki/KurukuruW-dev
build/KurukuruW-HTML/html/standard/javascript/documentation-search.js
JavaScript
apache-2.0
3,238
/* Copyright 2012, Telum Slavonski Brod, Croatia. 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...
qframework/QFramework
Serverko/scriptpool/scripts/serverb/serverb.js
JavaScript
apache-2.0
7,652
var client = null; QUnit.module("Stomp Subscription", { beforeEach: function () { client = stompClient(); client.debug = TEST.debug; }, afterEach: function () { if(client.connected) { client.disconnect(); } } }); QUnit.test("Should receive messages sent to destination after subscribing"...
stomp-js/stomp-websocket
tests/unit/subscription.js
JavaScript
apache-2.0
1,931
'use strict'; // this sets up reflection in the object given var setupReflection = function (name, constructorFunction) { };
ProgrammerWithoutaName/YInherit
js/reflection/reflection.js
JavaScript
apache-2.0
127
/* vim: tabstop=2 expandtab */ function log(text) { var div = document.createElement('div'); var output = text; for (var i = 1; i < arguments.length; i++) { output = output + ' ' + arguments[i]; } div.textContent = output; document.body.appendChild(div); } function send(port, data) { log('C2S:', dat...
sunhaitao/hail-them
demos/hello-ship/hello-named-ship/content/main.js
JavaScript
apache-2.0
566
const togglePlugin = require('./togglePlugin'); const isDefaultPlugin = require('./isDefaultPlugin'); /** * Remove a plugin from a book's configuration * @param {Config} config * @param {String} plugin * @return {Config} */ function removePlugin(config, pluginName) { let deps = config.getPluginDependencies();...
tshoper/gitbook
packages/gitbook/src/modifiers/config/removePlugin.js
JavaScript
apache-2.0
726
// @flow import React, { Component } from 'react'; import { SafeAreaView, SectionList as ReactNativeSectionList } from 'react-native'; import type { Section } from '../../Types'; import styles from './styles'; /** * The type of the React {@code Component} props of {@link SectionList} */ type Props = { ...
gpolitis/jitsi-meet
react/features/base/react/components/native/SectionList.js
JavaScript
apache-2.0
2,395
/*jshint -W079 */ var browserSync = require("browser-sync"); var ui = require("../../index"); var assert = require("chai").assert; var path = require("path"); describe("Can resolve pluings", function() { it("can return plugins with added meta data", function(done) { browserSync.reset...
pandoraui/UI
test/server/plugins.js
JavaScript
apache-2.0
3,600
Ext.define("acesure.view.sysLog.UserLogToolbar", { extend : 'Ext.Toolbar', alias : 'widget.userLogToolbar', height:108, padding:'0 25 0 25', style:'border:0;border-bottom:1px solid #d1dade;background:#fafbfc;', defaults:{bodyStyle:'background:#fafbfc'}, items : [ { xtype : "panel", border : false, wi...
xiaolds/tomcat7
webapps/ROOT/page/log/script/view/sysLog/UserLogList.js
JavaScript
apache-2.0
4,180
'use strict'; /** * @ngdoc function * @name sbAdminApp.controller:LocationSettingsCtrl * @description * # LocationSettingsCtrl * Controller of the sbAdminApp */ angular.module('sbAdminApp') .controller('LocationSettingsCtrl', function ($scope, apiKey, admin_location_settings) { admin_location_settings.ge...
swapnilaryan/cinestarAdminPanel
app/scripts/controllers/location-settings.js
JavaScript
apache-2.0
1,312
define({"topics" : [{"title":"Comparison Window","shortdesc":"\n <p class=\"shortdesc\">The Record Deduplicator caches record information for comparison until it reaches a specified number of records. Then, it\n discards the information in the cache and starts over. \n </p...
streamsets/datacollector
docs/generated/oxygen-webhelp/app/nav-links/json/concept_z3m_v52_zq-d46e132594.js
JavaScript
apache-2.0
810
var fs = require('fs'); var COUNT = 8000; for (var i = 0; i < COUNT; i++) { var content = fs.readFileSync('.\\test\\test_spec.js'); fs.writeFileSync('.\\test\\generated\\test' + i + '_spec.js', content); }
mlaval/test-karma
copyAndRenameTest.js
JavaScript
apache-2.0
210
<!DOCTYPE html> <html lang="en" class=" "> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#"> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equ...
saikatgomes/CS784-Data_Integration
EMS/MatchingWebApp/public/javascripts/bootstrap/bootstrap-multiselect.js
JavaScript
apache-2.0
433,899
'use strict'; angular.module('testProjectApp') .controller('LogsController', function ($scope, LogsService) { $scope.loggers = LogsService.findAll(); $scope.changeLevel = function (name, level) { LogsService.changeLevel({name: name, level: level}, function () { $scope.l...
BastienSabos/TestProject
src/main/webapp/scripts/app/admin/logs/logs.controller.js
JavaScript
apache-2.0
387
var _string = require('underscore.string'); var _moment = require('moment'); var _helper = require('../helper'); function handler($, bod, cfg, cb) { // \$\("#today.*(\{.*\}) var regex = /\$\("#today.*(\{.*\})/gi; var ar = [] var result; while ( (result = regex.exec(bod)) ) { var obj = JSON.parse(result[1]); ...
pdiemert/sstv
lib/webvideo-sources/seinfeld.js
JavaScript
apache-2.0
655
/** * Copyright 2013-2018 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
sohibegit/generator-jhipster
generators/spring-service/index.js
JavaScript
apache-2.0
5,803
import _ from 'lodash/fp'; import { createSelector } from 'reselect'; const appSettingsFormSelector = _.getOr({}, 'form.appSettingsFormSelector'); const personalFormSelector = _.getOr({}, 'form.personalFormSelector'); const contactFormSelector = _.getOr({}, 'form.contactFormSelector'); const usersAccountSelector = sta...
PulseTile/PulseTile-React
src/components/pages/UserProfile/selectors.js
JavaScript
apache-2.0
822
var legendpanel = new GeoExt.LegendPanel({ region: "east", xtype: "gx_wmslegend", width: 300, height:200, autoScroll: true, padding: 5, collapsible:true, collapsed:true , title: 'Lejant Panel', defaults: { style: 'padding:5px', /* b...
paradoxicals/Software-Engineering-Project
Kütüphaneler/panel.js
JavaScript
apache-2.0
5,519
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
GoogleForCreators/web-stories-wp
packages/migration/src/migrations/test/v0012_setBackgroundTextMode.js
JavaScript
apache-2.0
2,350
sap.ui.define(['sap/ui/commons/Button', 'sap/ui/commons/TextView', 'sap/ui/commons/layout/VerticalLayout', 'sap/ui/core/mvc/JSView'], function(Button, TextView, VerticalLayout/*, JSView*/) { "use strict"; sap.ui.jsview("sap.ui.core.mvctest.Test", { getControllerName: function() { return "sap.ui.core.mvctest.T...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/samples/mvc/Test.view.js
JavaScript
apache-2.0
853
'use strict'; const gulp = require('gulp'); const stylus = require('gulp-stylus'); gulp.task('css', () => gulp.src('./index.styl'). pipe(stylus()).pipe(gulp.dest('./bin/css'))); gulp.task('watch', ['css'], () => gulp.watch(['./*.styl'], ['css']));
vkarpov15/ironmongo
gulpfile.js
JavaScript
apache-2.0
253
import { Platform } from "react-native"; import { background, border } from "../variables"; // // DISCLAIMER: // Do not change this file because it is core styling. // Customizing core files will make updating Atlas much more difficult in the future. // To customize any core styling, copy the part you want t...
mendix/database-connector
theme/styles/native/core/helpers/helperclasses.js
JavaScript
apache-2.0
1,589
/* * Copyright 2019 EPAM Systems * * 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 or agreed to in ...
reportportal/service-ui
app/src/pages/common/settingsPage/notificationsTab/modals/addEditNotificationCaseModal/index.js
JavaScript
apache-2.0
672
/***** DO NOT EDIT THIS FILE *****/ // MonkeyTalkAPI.js generated by MonkeyTalk at 2014-09-26 15:16:43 MDT /* MonkeyTalk - a cross-platform functional testing tool Copyright (C) 2012 Gorilla Logic, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Aff...
jiahaoliuliu/SimpleMonkeyTalkTest
FeatureTests/libs/MonkeyTalkAPI.js
JavaScript
apache-2.0
60,814
'use strict'; module.exports = function(Photo) { };
virgolus/1h1dphoto.com-backend-loopback
server/models/Photo.js
JavaScript
apache-2.0
54
/* Including files system object */ var fs = require("fs"); /* Showing message on console */ console.log("Starting"); /* We don't have call back, data is returned from the function in a variable */ var content = fs.readFileSync("test.txt"); /* Printing content of file on console */ console.log("Contents of file ...
nishantmendiratta/Node-JS
sync_reading.js
JavaScript
apache-2.0
404
// [SNIPPET_REGISTRY disabled] // [SNIPPETS_SEPARATION enabled] function uploadRef() { // [START storage_upload_ref] const { getStorage, ref } = require("firebase/storage"); // Create a root reference const storage = getStorage(); // Create a reference to 'mountains.jpg' const mountainsRef = ref(storage,...
firebase/snippets-web
storage-next/upload-files.js
JavaScript
apache-2.0
7,273