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
var User = require('../config/Sequelize.js').import('../models/User.js'); module.exports = function(app) { function indexController(request, response) { User.findOne({ where: { 'username': 'admin' } }).then(function(userObj) { if(userObj === null) { var salt = User.generateS...
edelatin/terrama2
webapp/controllers/index.js
JavaScript
lgpl-3.0
1,508
if(typeof define !== 'function') var define = require('amdefine')(module); define(["require","deep/deep", "./ajax"],function (require, deep, Ajax) { deep.store.jqueryajax = deep.store.jqueryajax || {}; deep.store.jqueryajax.HTML = deep.compose.Classes(Ajax, { headers:{ "Accept" : "text/html; charset=utf-8" ...
philid/deep-jquery-ajax
lib/html.js
JavaScript
lgpl-3.0
1,000
import {ModelAttributeMetaData} from 'administration/model-management/meta/model-attribute-meta'; /** * Represents a specific field meta data extending from {@link ModelAttributeMetaData} * * @author Svetlozar Iliev */ export class ModelFieldMetaData extends ModelAttributeMetaData { constructor(id) { super(...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/src/administration/model-management/meta/model-field-meta.js
JavaScript
lgpl-3.0
330
var yhr = require('./main.js'); module.exports = function(uri,opt){ return yhr('DELETE',uri,null,opt); };
manvalls/yhr
delete.js
JavaScript
lgpl-3.0
110
import _cloneRegExp from './internal/_cloneRegExp'; import _curry2 from './internal/_curry2'; import _isRegExp from './internal/_isRegExp'; import toString from './toString'; /** * Determines whether a given string matches a given regular expression. * * @func * @memberOf R * @since v0.12.0 * @category String *...
edwinspire/open-ams
node_modules/ramda/es/test.js
JavaScript
lgpl-3.0
824
module.exports = { 'Auth': { 'Token': process.env['NODE_AUTH'] || '' } }
BlakeRandall/balakehbotjs
config/auth.js
JavaScript
unlicense
88
import firebase from 'firebase' export default function ({ isServer, store, req, redirect }) { // Don't run this middleware on the server if (isServer) { // TODO: check cookie return } else { console.log('firebase.auth().currentUser =', firebase.auth().currentUser) if (firebase.auth().currentUser ...
webglue/webglue.now.sh
nuxt/middleware/must-auth.js
JavaScript
unlicense
362
(function() { var app = angular.module('hebergement', []); app.controller('TabController', function(){ this.tab = 1; this.setTab = function(newValue){ this.tab = newValue; }; this.isSet = function(tabName){ return this.tab === tabName; }; }); app.controller('HostingController', function(){ var host...
Rambobafet/trouve_ton_hote
js/app.js
JavaScript
unlicense
663
const { environment } = require('@rails/webpacker') const webpack = require('webpack'); environment.toWebpackConfig().merge({ resolve: { alias: { 'jquery': 'jquery/src/jquery' } } }); module.exports = environment
Hiroyuki-Adachi/farm2
config/webpack/environment.js
JavaScript
unlicense
233
JabberApp.module('DashboardApp.Show', function(Show, App, Backbone, Marionette, $, _) { Show.Layout = App.Views.Layout.extend({ template: require('./tpl/layout.hbs') , regions: { upcomingRegion: '#upcoming-region' , theatreRegion: '#theatre-region' } }); });
amelon/bbrails-express
assets/javascripts/backbone/apps/dashboard/show/view.js
JavaScript
unlicense
283
({ // for an explanation of these fields, you should go through // https://github.com/jrburke/r.js/blob/master/build/example.build.js baseUrl: '${basedir}/src/main/webapp/js', inlineText: true, useStrict: false, name: '../../scripts/almond', include: ['main'], insertRequire: ['main'], ...
kjbekkelund/js-java-setup
src/main/config/buildconfig.js
JavaScript
unlicense
755
import inspectISOBMFF from "isobmff-inspector"; import render from "./renderer.js"; // -- Feature switching based on the various API support -- if (window.File && window.FileReader && window.Uint8Array) { /** * @param {Event} evt * @returns {Boolean} */ function onFileSelection(evt) { const files = ...
peaBerberian/AISOBMFFWVDFBUTFAII
src/index.js
JavaScript
unlicense
2,321
// Particle var position = new Vector(0, 0); var velocity = new Vector(0, 0); var size = 42; var mass = 42; var color = [0, 0, 0]; var particle = new Particle(position, velocity, size, mass, color); console.log('p', particle);
blackpuma/chaos
js/test/particle.js
JavaScript
unlicense
229
var baseURL = window.location.pathname; var webRoot = "/"+baseURL.split("/")[1]; $(function(){ $('#logo_top').click(function() { window.location = webRoot; }); $('.link_formate').click(function() { $('.selected_menu').removeClass('selected_menu'); $(this).addClass('selected_menu'); window.locati...
Osced/Ciudadan-a
ciudadaniaconsentido/tests/TestCase/Model/Table/default.js
JavaScript
unlicense
1,714
'use strict'; angular.module('athenaApp') .config(function ($stateProvider) { $stateProvider .state('login', { parent: 'account', url: '/login', data: { roles: [], pageTitle: 'Authentication' ...
StarTrackDevKL/athena
src/main/webapp/scripts/app/account/login/login.js
JavaScript
unlicense
646
var searchData= [ ['d_5fbackground',['D_BACKGROUND',['../auditd-config_8h.html#a21f280a48d918cafb9cc0a509a8892c1a3dc146342135edb841af2220e96f6373',1,'auditd-config.h']]], ['d_5fdetailed',['D_DETAILED',['../aureport-options_8h.html#ae8e4ebc0e893793afb43373bc2201f9aa7b9b4c5a8415c578f056e8b03efbf049',1,'aureport-optio...
onosfw/apis
audit/apis/search/enumvalues_64.js
JavaScript
apache-2.0
1,785
({ failOnWarning : true, /** * Check to make sure that when the user puts in invalid options (i.e. an option missing the value element) */ testInputSelect_WarningForInvalidOption : { auraWarningsExpectedDuringInit: ["Option at index 1 in select component"], attributes : { "case" : "badsel"}, test : functi...
igor-sfdc/aura
aura-components/src/test/components/uitest/inputSelect_CheckWarnings/inputSelect_CheckWarningsTest.js
JavaScript
apache-2.0
648
'use strict'; const utils = require("./utils"); const logger = utils.createLogger({sourceFilePath : __filename}); const path = require("path"); const fs = require("fs"); class NamedPathsConfig{ /** * * @param {CachedTextFile} configReader */ constructor(configReader){ this.configReader =...
OpenNTF/Web-UI-Prototyping-Toolkit
lib/NamedPathsConfig.js
JavaScript
apache-2.0
7,845
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ 'use strict'; exports.EntitySearchAPI = require('./entitySearch/entitySearchAPI'); exports = module.exports;
AutorestCI/azure-sdk-for-node
lib/services/cognitiveServices.Search/lib/cognitiveServicesSearch.js
JavaScript
apache-2.0
276
var DATA = {"a" : "b", "c" : "d"}; var RESPONSE = {"vendor":"OpenPolicy","name":"alex","locations":[{"continent":"Europe","country":"Germany","price":5,"latitude":"48.105964","name":"Slot_ger_4","longitude":"11.612549"},{"continent":"Europe","country":"Germany","price":6,"latitude":"52.473412","name":"Slot_ger_1","lon...
iiot-stud/qteam2016
GUI/data.js
JavaScript
apache-2.0
999
'use strict' var gulp = require('gulp') var $ = require('gulp-load-plugins')() gulp.task('default', function() { gulp.src('./src/**/*.js') .pipe($.wrap('!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b(require,exports,module):a.audioWave=b()}(this,function...
big-data-visualization/audio-waveform
gulpfile.js
JavaScript
apache-2.0
645
/* * Copyright (c) 2014 DataTorrent, 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...
ninjasun/malhar-angular-dashboard
dist/angular-ui-dashboard.js
JavaScript
apache-2.0
56,177
/* AngularJS v1.2.14-build.2267+sha.cceb455 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(p,f,n){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,b){var c={},g={},h,k=!1,l=f.copy,m=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&...
ravikiran438/cevent-app
src/main/webapp/bower_components/angular-cookies/angular-cookies.min.js
JavaScript
apache-2.0
873
Clazz.declarePackage ("J.util"); Clazz.load (null, "J.util.SimpleUnitCell", ["java.lang.Float", "J.util.ArrayUtil", "$.Matrix4f", "$.V3"], function () { c$ = Clazz.decorateAsClass (function () { this.notionalUnitcell = null; this.matrixCartesianToFractional = null; this.matrixFractionalToCartesian = null; this.na...
DeepLit/WHG
root/static/js/jsmol/j2s/J/util/SimpleUnitCell.js
JavaScript
apache-2.0
7,722
//engine: JScript //uname: diff_1C //dname: Backend к diff, типовое сравнение от 1С (mxl,txt,js,vbs) //addin: global global.connectGlobals(SelfScript) function СравнениеФайлов1С(Path1, Path2) { var file1 = v8New("File", Path1); var file2 = v8New("File", Path2); if ((!file1.isFile()) & (!file2.i...
artbear/snegopat-reborn-scripts
core/addins/dvcs/diff_1C.js
JavaScript
apache-2.0
1,902
/** * Plus : Checkbox Tree * Author : zhaoyang */ (function ($) { $.fn.treeview = function(settings) { var chkname = "pri", dfop = { method: "POST", datatype: "json", url: false, cbiconpath: contextPath + "/rc/sc/jq/themes/treeview/img/tree/", oncheckboxclick: false, // 当checks...
TTroia/CommunityManager
WebRoot/rc/sc/jq/plus/checkboxTree.js
JavaScript
apache-2.0
9,133
/* * Copyright IBM Corp. 2017 * * 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 wr...
steveatkin/Subtitler
lib/files.js
JavaScript
apache-2.0
1,903
/* * Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
y-todorov/Inventory
Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.ms.js
JavaScript
apache-2.0
2,610
/* Copyright 2016-2017 University of Pittsburgh 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 ...
dbmi-pitt/dbmi-annotator
pre-annot-tool/load-ner.js
JavaScript
apache-2.0
7,843
import React from 'react'; import PageTemplate from '../../components/PageTemplate'; import BannerMain from '../../components/BannerMain'; import Carousel from '../../components/Carousel'; import dadosIniciais from '../../data/dados_iniciais.json'; function Home() { return ( <PageTemplate> <BannerMain ...
wesleyegberto/courses-projects
frontend/react-stack/react/aluraflix/src/pages/Home/index.js
JavaScript
apache-2.0
1,010
'use strict' const utils = require('../../utils') const debug = require('debug') const log = debug('cli:object') log.error = debug('cli:object:error') module.exports = { command: 'stat <key>', describe: 'Get stats for the DAG node named by <key>', builder: {}, handler (argv) { utils.getIPFS((err, ipfs)...
Project-Oaken/water-meter-acorn
demo-for-video/water-meter-1-liter-demo/node/node_modules/ipfs/src/cli/commands/object/stat.js
JavaScript
apache-2.0
672
'use strict'; const _ = require('lodash'); const utils = require('../common/utils'); const bosh = require('../data-access-layer/bosh'); const Agent = require('../data-access-layer/service-agent'); const logger = require('../common/logger'); const errors = require('../common/errors'); const ServiceInstanceNotFound = er...
sauravmndl/service-fabrik-broker
operators/BaseDirectorService.js
JavaScript
apache-2.0
2,696
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var _ = Package.underscore._; var Iron = Package['iron:core'].Iron; /* Package-scope variables */ var compilePath, Url; (function () { ////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ...
durwasa-chakraborty/navigus
.demeteorized/bundle/programs/server/packages/iron_url.js
JavaScript
apache-2.0
64,533
/** @name dimensions */ var width = 12
rodrigoramos/shaka-player
third_party/jsdoc/test/fixtures/virtual.js
JavaScript
apache-2.0
41
/** * 首页 */ pageData = window.pageData?window.pageData:[]; var vm = avalon.define({ $id : "sidebar", test: "tst", //domainBuyList1 : [{title:"test"},{title:"test2"}], //domainSoldList1 : [{title:"test"},{title:"test2"}],//买标信息一览(最新11条,首页只表示最新的) datas : { domainArticleList : [],//sidebar信...
GSSBuse/GSSB
src/main/webapp/static/front/js/sidebar.js
JavaScript
apache-2.0
1,321
/*global jQuery */ /*jshint browser:true */ /*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - https://css-tricks.com + Dave Rupert - https://daverupert.com * Credit to Thierry Koblentz - https://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - https://sam.zoy...
kinasmith/kinasmith.com
js/jquery.fitvids.js
JavaScript
apache-2.0
3,685
/** * Escapes a string for SQL insertion */ exports.escapeString = function(_string) { if(typeof _string !== "string") { return "\"" + _string + "\""; } return "\"" + _string.replace(/"/g, "'") + "\""; }; /** * Removes HTML entities, replaces breaks/paragraphs with newline, strips HTML, trims */ exports.c...
bob-sims/quickJFTC
app/lib/utilities.js
JavaScript
apache-2.0
14,150
/** * Copyright 2016, Optimizely * * 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 ...
optimizely/node-sdk
tests/measure_methods.js
JavaScript
apache-2.0
18,876
goog.provide('recoil.structs.table.ColumnKey'); goog.provide('recoil.structs.table.MutableTable'); goog.provide('recoil.structs.table.MutableTableRow'); goog.provide('recoil.structs.table.Table'); goog.provide('recoil.structs.table.TableCell'); goog.provide('recoil.structs.table.TableInterface'); goog.provide('recoil.s...
evaks/recoil
src/structs/table/table.js
JavaScript
apache-2.0
58,760
/* * nodekit.io * * Copyright (c) 2016 OffGrid Networks. 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 * ...
nodekit-io/nodekit-darwin
src/nodekit/NKElectro/NK_ElectroHost/www/default/index.js
JavaScript
apache-2.0
2,049
define({ root:({ mode: "Mode", saveToPortal: "Save to Portal", saveToDisk: "Save To Disk", title: "Title", description: "Description", tags: "Tags", defineExtent: "Define Extent", submit: "Submit", pixelSize: "Pixel Size", outputSpatialReference: "Output Spatial Reference", currentRenderer: ...
Esri/WAB-Image-Services-Widgets
imagery_widgets/ISExport/nls/strings.js
JavaScript
apache-2.0
1,084
var express= require('express'), path= require('path'), bodyParser = require('body-parser'), routes = require('./server/config/routes'), app= express(); app.use(bodyParser.json()); routes(app); app.use('/', express.static(path.join(__dirname, 'client'))); app.listen(8080); console.log('listening on...
aaaristo/angular-on-fire
app.js
JavaScript
apache-2.0
329
/* global describe, beforeEach, it */ const path = require('path'); const assert = require('yeoman-assert'); const helpers = require('yeoman-test'); const fse = require('fs-extra'); const expectedFiles = { eurekaregistry: [ './k8s/registry/jhipster-registry.yml', './k8s/registry/application-confi...
Tcharl/generator-jhipster
test/kubernetes.spec.js
JavaScript
apache-2.0
15,547
/** * * Online store PWA sample. * Copyright 2017 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 * * https://www.apache.org/licenses/LICEN...
GoogleChromeLabs/sample-pie-shop
src/client/js/app-main.js
JavaScript
apache-2.0
779
exports.definition = { config: { columns: { title: "text", attachments: "text" }, adapter: { type: "sql", collection_name: "works", idAttribute: "_id" } }, extendModel: function(Model) { _.extend(Model.protot...
chrisjbaik/seelio-uploader-titanium
Resources/android/alloy/models/Works.js
JavaScript
apache-2.0
953
/** * @license Copyright 2018 The Lighthouse 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 applica...
umaar/lighthouse
jest.config.js
JavaScript
apache-2.0
1,238
/** * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 */ define(['require', 'elementUtils'], function (require, ElementUtils) { /** * @class Trigger * @constructor * @class Trigger Creates a Trigger ...
wso2/carbon-analytics
components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/editor/js/design-view/elements/definitions/trigger.js
JavaScript
apache-2.0
2,459
var express = require('express'); var app = express(); var request = require("request"); var bodyParser = require('body-parser'); app.use(express.static(__dirname+"/public")); app.use(express.static(__dirname+"/bower_components")); app.use(bodyParser.json()); app.use(function(req, res, next) { res.header("Access-...
deadkff01/fbeventgender
server.js
JavaScript
apache-2.0
953
/*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function (UI) { "use strict"; UI.component('cover', { defaults: { automute: true }, boot: function () { // auto init UI.ready(function (context) { UI...
zuocaijian/HiPythonWeb
www/static/js/core/cover.js
JavaScript
apache-2.0
2,590
import svelte from 'rollup-plugin-svelte'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import livereload from 'rollup-plugin-livereload'; import { terser } from 'rollup-plugin-terser'; import copy from 'rollup-plugin-cpy' const production = !process.env.ROLLUP_WATCH...
rzvdaniel/eCameleon
eCameleon.Web/apps/hello-world/rollup.config.js
JavaScript
apache-2.0
2,305
const Long = require('long'); const User = require('./User'); const Role = require('./Role'); const Emoji = require('./Emoji'); const Invite = require('./Invite'); const GuildAuditLogs = require('./GuildAuditLogs'); const Webhook = require('./Webhook'); const { Presence } = require('./Presence'); const GuildChannel = r...
zajrik/discord.js
src/structures/Guild.js
JavaScript
apache-2.0
46,291
var debug = false; var isStatsOn = false; var authWindow; var app; var runLoop = function() { app.update(); app.draw(); } var initApp = function() { if (app!=null) { return; } app = new App({}, document.getElementById('canvas')); window.addEventListener('resize', app.resize, false); document.addEventListener(...
generallycloud/baseio
firenio-sample/sample-http/src/main/resources/app/html/web-socket/rumpetroll/js/main.js
JavaScript
apache-2.0
2,392
$(document).ready(function(){ $('#bx1').bxSlider(); $('#bx2').bxSlider({ hideControlOnEnd: true, captions: true, pager: false }) $('#bx3').bxSlider({ hideControlOnEnd: true, minSlides: 3, maxSlides: 3, slideWidth: 360, slide...
livinglegends/llf-site
js/carousels.js
JavaScript
apache-2.0
1,052
var searchData= [ ['utils',['utils',['../classsrc_1_1tests_1_1utils_1_1utils_1_1utils.html',1,'src::tests::utils::utils']]] ];
gpierre42/optraj
Doxydoc/html/search/classes_75.js
JavaScript
apache-2.0
129
const readdirp = require('readdirp'), path = require('path'), fs = require('graceful-fs'), _ = require('lodash'), frontMatterParser = require('./parsers/front_matter_parser'), markdownParser = require('./parsers/markdown_parser'), fileParser = require('./parsers/file_parser'), linkParser = require('./pars...
CenturyLinkCloud/KB-Commit-Analyzer
index.js
JavaScript
apache-2.0
1,800
const PERM_NOT_FOUND = "Permission '_perm_' not found on '_role_' for '_res_'."; const Types = { ALL: 'ALL', CREATE: 'CREATE', READ: 'READ', UPDATE: 'UPDATE', DELETE: 'DELETE' }; /** * The map of role-resource tuple to permissions. * The first level key is the tuple, the second level key is the action. *...
rojakcoder/archly
npm/src/permission.js
JavaScript
apache-2.0
13,491
import React from "react"; import { TRANSACTION_STATUSES } from "../enums/transactions"; const { AWAITING_PROCESS, PROCESSING, PROCESSED } = TRANSACTION_STATUSES; const STATUS_MAP = { "Awaiting Process": AWAITING_PROCESS, Processing: PROCESSING, Processed: PROCESSED }; export default class TransactionStatusDro...
umnretirees/membership-platform
assets/js/batch-transaction-form/transaction-status-dropdown.js
JavaScript
apache-2.0
1,033
// Generated by CoffeeScript 1.12.4 (function() { var BaseButtonTask, ButtonTask, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); c...
zooniverse/zooniverse-readymade
lib/tasks/button.js
JavaScript
apache-2.0
829
// Copyright 2014 Traceur 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 applicable law or agreed ...
vicb/traceur-compiler
src/runtime/InternalLoader.js
JavaScript
apache-2.0
17,018
// ***************************************************************************** // Copyright 2013-2019 Aerospike, 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...
aerospike/aerospike-client-nodejs
test/lists.js
JavaScript
apache-2.0
50,782
const Mentions = require('./MessageMentions'); const Attachment = require('./MessageAttachment'); const Embed = require('./MessageEmbed'); const MessageReaction = require('./MessageReaction'); const ReactionCollector = require('./ReactionCollector'); const ClientApplication = require('./ClientApplication'); const Util ...
devsnek/discord.js
src/structures/Message.js
JavaScript
apache-2.0
18,885
var buf = new Buffer(39); var len = buf.write("www.baidu.com"); console.log("写入字节数为 : "+len); for(var i=13;i < 39;i++){ buf[i] = i+84; } var json = buf.toJSON(); console.log(json);
garyhu1/node
buffer.js
JavaScript
apache-2.0
202
export const FLAT_TABLE_THEMES = [ "light", "dark", "transparent-base", "transparent-white", ]; export const FLAT_TABLE_SIZES = ["compact", "small", "medium", "large"];
Sage/carbon
src/components/flat-table/flat-table.config.js
JavaScript
apache-2.0
177
module.exports = { 'name': 'largereq', 'category': 'Operators', 'syntax': [ 'x >= y', 'largereq(x, y)' ], 'description': 'Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.', 'examples': [ '2 > 1+1', '2 >= 1+1', 'a = 3.2', 'b ...
npmcomponent/josdejong-mathjs
lib/expression/docs/function/arithmetic/largereq.js
JavaScript
apache-2.0
441
/* Copyright 2016 ElasticBox 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 applicable law or agreed to in w...
ElasticBox/elastickube
src/ui/app/instances/ek-instances/ek-instances.directive.js
JavaScript
apache-2.0
1,087
import { Template } from 'meteor/templating'; import { Meteor } from 'meteor/meteor'; import { Roles } from 'meteor/alanning:roles'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { $ } from 'meteor/jquery'; import { getStudentProfileMethod } from '../../../api/user/StudentProfileCollection.methods'; /...
radgrad/radgrad
app/imports/ui/components/landing/radgrad-login-buttons.js
JavaScript
apache-2.0
2,450
/* * Copyright 2013 pingworks - Alexander Birk und Christoph Lukas * Copyright 2014 //SEIBERT/MEDIA - Lars-Erik Kimmel * * 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://w...
pingworks/dash
frontend/app/view/BundleGrid.js
JavaScript
apache-2.0
15,694
export function getCorrectFontSizeForScreen(PixelRatio, screenWidth, screenHeight, currentFont){ let devRatio = PixelRatio.get(); let factor = (((screenWidth*devRatio)/320)+((screenHeight*devRatio)/640))/2.0; let maxFontDifferFactor = 5; //the maximum pixels of font size we can go up or down if(factor<=1){ ...
GoldenOwlAsia/cooking-app
js/utils/multiResolution.js
JavaScript
apache-2.0
780
'use strict' /* globals describe, test, expect, jest */ const path = require('path') // This is the module we are testing const { crawlForMovies } = require('../crawlForMovies') const crawlParams = { rootDirectory: __dirname, searchDirCb: jest.fn(), movieFileCb: jest.fn() } describe('crawlForMovies', () => { ...
blenoski/movie-night
app/background/__tests__/crawlForMovies.test.js
JavaScript
apache-2.0
954
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import List from '../../components/List'; import UserIcon from '../../icons/User'; const Item = (props) => { const { className, item: user } = props; const classNames = ['item__container']; if (className) { ...
ericsoderberg/pbc-web
ui/js/pages/user/Users.js
JavaScript
apache-2.0
1,319
/* * Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
y-todorov/Inventory
Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.pa-IN.js
JavaScript
apache-2.0
3,124
/* * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. */ define([ 'lodash', 'controlnode-widgetcfg', 'vrouter-widgetcfg','databasenode-widgetcfg', 'analyticsnode-widgetcfg','confignode-widgetcfg','monitor-infra-widgetcfg', 'security-dashboard-widgetcfg', 'confignode-mode...
biswajit-mandal/contrail-web-core
webroot/js/widget.configmanager.js
JavaScript
apache-2.0
4,969
// xiNET interaction viewer // Copyright 2013 Rappsilber Laboratory // // This product includes software developed at // the Rappsilber Laboratory (http://www.rappsilberlab.org/). "use strict"; var Config = require('../../controller/Config'); var Link = require('./Link'); var SequenceLink = requ...
joshkh/joshkh.github.io
src/model/link/BinaryLink.js
JavaScript
apache-2.0
9,868
import React from 'react' import { connect } from 'react-redux' import { Timeline, Alert } from 'antd' const Item = Timeline.Item @connect(state => ({ stage: state.config.stage, news: state.config.news, timeline: state.config.timeline })) class Events extends React.Component { render ( { news...
RcKeller/STF-Refresh
app/views/FrontPage/Events/Events.js
JavaScript
apache-2.0
1,128
/* * 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/story-editor/src/components/canvas/pagemenu/animationToggle.js
JavaScript
apache-2.0
2,294
/** * @description CoatCheck SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @...
odedre/grommet-final
src/js/components/icons/base/CoatCheck.js
JavaScript
apache-2.0
3,055
var appLocale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { return '...
bakerfranke/code-dot-org
dashboard/public/apps-package/js/gl_es/studio_locale.js
JavaScript
apache-2.0
24,633
// 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...
AllanYangZhou/oppia
core/templates/dev/head/pages/exploration_editor/editor_tab/StateGraphVisualizationDirective.js
JavaScript
apache-2.0
15,193
function Controller() { function closeModal(e) { $.modal.fireEvent("removeClose", e); } function handleTableViewClick(e) { if (1 == Alloy.Globals.purchases[e.index] || 1 == Alloy.Globals.purchases[1]) { for (var i = 0; $.tv.data[0].rows.length > i; i++) $.tv.data[0].rows[i].hasCh...
ponnam/ESAT-131226
Resources/alloy/controllers/set_select.js
JavaScript
apache-2.0
21,537
/* * ! ${copyright} */ // Provides control sap.m.P13nSelectionItem. sap.ui.define([ 'jquery.sap.global', './library', 'sap/ui/core/Item' ], function(jQuery, library, Item) { "use strict"; /** * Constructor for a new P13nSelectionItem. * * @param {string} [sId] ID for the new control, generated automaticall...
olirogers/openui5
src/sap.m/src/sap/m/P13nSelectionItem.js
JavaScript
apache-2.0
1,426
/******************************************************************************** * Ledger Node JS API * (c) 2016-2017 Ledger * * 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 * * h...
shyft-network/ledger-node-js-api
test/testEth4.js
JavaScript
apache-2.0
1,310
var params = { title: 'Hello Dynamic :-)', resourcesPath: portal.url.createResourceUrl('') }; var body = system.thymeleaf.render('view/page.html', params); portal.response.contentType = 'text/html'; portal.response.body = body;
RF0/wem-sample-package
modules/strongly.typed-1.0.0/page/page/get.js
JavaScript
apache-2.0
236
var yt = yt || {}; //加载图片 yt.loadImg = function ($imgs, time) { var _time = 0; time = time || 200; $imgs.each(function () { var $that = $(this); if ($that.data('hasload')) { return false; } setTimeout(function () { $that.fadeOut(0); $tha...
linmingling/demo
zt/sgj/js/my.js
JavaScript
apache-2.0
14,161
/* * Twitter Search Plugin jquery.retina.js * https://github.com/tylercraft/jQuery-Retina * * Copyright (c) 2012 tylercraft.com * Author: Tyler Craft * Dual licensed under the MIT and GPL licenses. * https://github.com/tylercraft/jQuery-Retina * */ (function( $ ) { $.fn.retina = function( options ) { ...
ygrinev/ygrinev
Study/ASP.NET/jQuery/HTML5 & jQuery Examples/assets/js/jquery.retina.js
JavaScript
apache-2.0
2,765
var structofp13__meter__band__dscp__remark = [ [ "burst_size", "structofp13__meter__band__dscp__remark.html#a65ae2e874c730303bbc5d780640f7fc9", null ], [ "len", "structofp13__meter__band__dscp__remark.html#ad56aaad8bcc7a48f6f2328ff81b0d67f", null ], [ "pad", "structofp13__meter__band__dscp__remark.html#a5e6...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/structofp13__meter__band__dscp__remark.js
JavaScript
apache-2.0
676
/* * 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/e2e-tests/src/specs/dashboard/adminMenu.js
JavaScript
apache-2.0
2,834
/* eslint camelcase: "off" */ /* eslint angular/angularelement: "off" */ (function() { 'use strict'; angular.module('app.services') .factory('DialogFieldRefresh', ['lodash', 'CollectionsApi', 'EventNotifications', DialogFieldRefreshFactory]); /** @ngInject */ function DialogFieldRefreshFactory(lodash, Co...
dtaylor113/manageiq-ui-self_service
client/app/services/dialog-field-refresh.service.js
JavaScript
apache-2.0
5,991
var dir_449a8fc0a8176498514757a163fc6e60 = [ [ "SensorBarControl.g.cs", "_a_r_m_2_debug_2_controls_2_sensor_bar_2_sensor_bar_control_8g_8cs.html", [ [ "SensorBarControl", "class_x_labs_1_1_forms_1_1_controls_1_1_sensor_bar_control.html", "class_x_labs_1_1_forms_1_1_controls_1_1_sensor_bar_control" ] ] ], ...
XLabs/xlabs.github.io
html/dir_449a8fc0a8176498514757a163fc6e60.js
JavaScript
apache-2.0
601
/* Copyright (c) 2004-2009, 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 */ if(!dojo._hasResource["dojox.gfx.path"]){ dojo._hasResource["dojox.gfx.path"]=true; dojo.provide("dojox.gfx.path")...
everttigchelaar/camel-svn
components/camel-web/src/main/webapp/js/dojox/gfx/path.js
JavaScript
apache-2.0
6,565
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/utils/map/benchmark/benchmark.array.js
JavaScript
apache-2.0
1,951
/** * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) */ /*jshint jquery:true*/ (function (factory) { if (typeof define === 'function' && define.amd) { define([ "jquery", "mage/validation", "mage/translate" ], factory); } else...
webadvancedservicescom/magento
lib/web/mage/validation/validation.js
JavaScript
apache-2.0
2,961
/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.validate.common"); doj...
gepesz/chat
WebContent/js/src/validate/common.js
JavaScript
apache-2.0
10,447
/* * 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/react/src/context.js
JavaScript
apache-2.0
705
// Link.test.js - temporary example class to show unit tests working // Use React's test renderer and Jest's snapshot feature to interact // with the component and capture the rendered output and create a snapshot file import React from 'react'; import Link from '../../src/components/Link'; import renderer from 'react-...
diivanand/DataBrowser
test/components/Link.test.js
JavaScript
apache-2.0
883
angular.module('n52.core.diagram') .service('flotChartServ', [ 'timeseriesService', 'timeService', 'settingsService', 'flotDataHelperServ', '$rootScope', 'monthNamesTranslaterServ', 'labelMapperSrvc', '$q', function( timeseriesServi...
52North/sensorweb-client-core
src/js/Chart/services/flotChartServ.js
JavaScript
apache-2.0
7,537
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('stage-details', 'Integration | Component | stage details', { integration: true }); test('it renders', function(assert) { assert.expect(2); // Set any properties with this.set('myProperty', ...
AcalephStorage/kontinuous-ui
tests/integration/components/stage-details-test.js
JavaScript
apache-2.0
681
const { Command } = require("klasa"); const { MessageEmbed } = require("discord.js"); const statusList = { online: "online", idle: "idle", dnd: "in do not disturb" }; module.exports = class extends Command { constructor(...args) { super(...args, { name: "userinfo", enab...
Butterstroke/MargarineBot
commands/General/userinfo.js
JavaScript
apache-2.0
3,031
function dictionaryAddCtrl($scope, DictService, $state) { $scope.$emit("update-title", { pageTitle: "字典列表", links: [ { url: "common.dictionary-list", name: "字典列表" }, { url: "common.dictionary-add", na...
edgar615/admin-ng
app/modules/common/js/dictionary-add.js
JavaScript
apache-2.0
736
#!/usr/bin/env node 'use strict'; const Engine = require('../').Engine; const browserScripts = require('../lib/support/browserScript'); const logging = require('../').logging; const cli = require('../lib/support/cli'); const StorageManager = require('../lib/support/storageManager'); const merge = require('lodash.merge...
tobli/browsertime
bin/browsertime.js
JavaScript
apache-2.0
4,376
$(function() { $("input,textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { event.preventDefault(); // prevent default submit b...
Lamx/cv
js/contact_me.js
JavaScript
apache-2.0
2,868