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 |
|---|---|---|---|---|---|
/*
* Copyright 2014 Next Century Corporation
* 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 ... | NextCenturyCorporation/neon | neon-server/src/main/javascript/widget/widget.js | JavaScript | apache-2.0 | 8,836 |
import React from 'react';
import {render} from 'react-dom';
class StaffList extends React.Component {
render() {
console.log(this.props);
var stafflist = Object.values(this.props.staffs).map(staffObject =>
<Staff staffObject = {JSON.parse(staffObject)}/>
);
return(... | elblancoboss/CI346-Semester-2 | src/main/webapp/js/main.js | JavaScript | apache-2.0 | 2,271 |
import React from 'react';
import { Box, InfiniteScroll, Text } from 'grommet';
const allItems = Array(240)
.fill()
.map((_, i) => i + 1);
export const Height = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box>
<InfiniteScroll items={allItems}>
{(... | grommet/grommet | src/js/components/InfiniteScroll/stories/Variable.js | JavaScript | apache-2.0 | 804 |
'use strict';
module.exports = function(Chaincodeinstantiate) {
};
| MartinCocks/fabric-sdk-rest | packages/fabric-rest/server/models/chaincode-instantiate.js | JavaScript | apache-2.0 | 69 |
import Cartesian3 from "../Core/Cartesian3.js";
import Cartographic from "../Core/Cartographic.js";
import Check from "../Core/Check.js";
import createGuid from "../Core/createGuid.js";
import defaultValue from "../Core/defaultValue.js";
import defined from "../Core/defined.js";
import DeveloperError from "../Core/Deve... | YonatanKra/cesium | Source/DataSources/Entity.js | JavaScript | apache-2.0 | 23,977 |
/* Latvia +*/
/*global $ */
$.ig = $.ig || {};
$.ig.regional = $.ig.regional || {};
$.ig.regional.lv = {
monthNames: ['Janvāris', 'Februāris', 'Marts', 'Aprīlis', 'Maijs', 'Jūnijs', 'Jūlijs', 'Augusts', 'Septembris', 'Oktobris', 'Novembris', 'Decembris'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jūn', '... | mikeleishen/bacosys | frame/frame-web/src/main/webapp/script/ig/modules/i18n/regional/infragistics.ui.regional-lv.js | JavaScript | apache-2.0 | 1,084 |
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "FamilyWallet/EmptyMembers";
arguments[0] ? arguments[0]["__parentSymbol"] : null;
arguments[0] ? arguments[0]["$model"] : null;
arguments[0] ? arguments[0]... | eduardo-itexico/cultura_mob | Resources/alloy/controllers/FamilyWallet/EmptyMembers.js | JavaScript | apache-2.0 | 2,389 |
/* =============================================================
* bootstrap3-typeahead.js v3.1.0
* https://github.com/bassjobsen/Bootstrap-3-Typeahead
* =============================================================
* Original written by @mdo and @fat
* =============================================================... | Stathislyb/hdl-compiler | theme/js/bootstrap3-typeahead.min.js | JavaScript | apache-2.0 | 14,496 |
sap.ui.define([
'sap/ui/core/mvc/Controller',
'sap/ui/model/json/JSONModel'
], function(Controller, JSONModel) {
"use strict";
return Controller.extend("sap.m.sample.TimePickerValueState.TimePicker", {
onInit: function () {
var oModel,
sText = "TimePicker with valueState ",
aData = [
{ label:... | SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/TimePickerValueState/TimePicker.controller.js | JavaScript | apache-2.0 | 932 |
'use strict';
import AuthorizationStorage from '../authorization/AuthorizationStorage';
import Router from '../../services/Router';
import * as es_US from '../../translates/en_US';
/**
* Handle on login button press
*/
function handleOnLoginPress() {
AuthorizationStorage.destroy();
Router.push('initial');
}
ex... | Tomas-Sereikis/youtube-music | src/components/playlist/PlaylistErrorResponse.js | JavaScript | apache-2.0 | 470 |
'use strict';
const fs = require('fs')
, path = require('path')
, expect = require('chai').expect
, co = require('co')
, nedb = require('nedb')
, wrapper = require('co-nedb');
const sdeFixture = require('./fixtures/sde.json');
const sdeDbFile = path.join(__dirname, '../../lib/db/staticData.db');
const sdeM... | evewspace/ews-v2 | test/backend/nedb.spec.js | JavaScript | apache-2.0 | 1,678 |
var appAngular = angular.module('App', ['ngMaterial', 'ngRoute', 'LocalStorageModule', 'ngMessages', 'ngTouch']);
'use strict';
appAngular.factory('authInterceptorService', ['$q', '$location', 'localStorageService',
function ($q, $location, localStorageService) {
var authInterceptorServiceFactory = {};
... | arthas1888/phonegappVital | www/js/app.js | JavaScript | apache-2.0 | 28,386 |
/**
* @author Mike Hill
* @version 1.0.0 (2014/09/30)
*
* This plugin attaches tooltips to grid cells.
*/
Ext.define('Ext.ux.GridTooltips.grid.plugin.GridTooltips', {
extend: 'Ext.plugin.Abstract',
alias: 'plugin.gridtooltips',
/*
* Internal
*/
tooltipEl: null,
/*
* Configura... | hill0826/SenchaArchitect-GridTooltips | src/Ext/ux/GridTooltips/grid/plugin/GridTooltips.js | JavaScript | apache-2.0 | 3,702 |
/**
* Resend the invitation email for sharing a BitGo wallet
*
* Copyright 2019, BitGo, Inc. All Rights Reserved.
*/
const Promise = require('bluebird');
const BitGoJS = require('bitgo');
const bitgo = new BitGoJS.BitGo({ env: 'test' });
// TODO: set your access token here
const accessToken = null;
// TODO: set... | BitGo/BitGoJS | modules/core/example/js/resend-wallet-share-invite.js | JavaScript | apache-2.0 | 727 |
var dir_260e49eb67c1e3ad3e46dff2748d9375 =
[
[ "fhxamarinandroidsdk", "dir_4e2eb0eb7797860c496c1c0ee1737d07.html", "dir_4e2eb0eb7797860c496c1c0ee1737d07" ],
[ "src", "dir_53054deadd112b1ca4a356d995ee6fa9.html", "dir_53054deadd112b1ca4a356d995ee6fa9" ]
]; | feedhenry/fh-dotnet-sdk | Documentations/html/dir_260e49eb67c1e3ad3e46dff2748d9375.js | JavaScript | apache-2.0 | 262 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global', './BarRenderer'],
function (jQuery, BarRenderer) {
"use strict";
/**
* Dialog renderer.
... | openui5/packaged-sap.m | resources/sap/m/DialogRenderer.js | JavaScript | apache-2.0 | 6,291 |
var app =
angular.module('dfpPlayground', ['ngMaterial', 'ngMessages', 'ngSanitize']);
app.config(function($interpolateProvider, $mdThemingProvider) {
$mdThemingProvider.theme('default').primaryPalette('green').accentPalette(
'lime');
$interpolateProvider.startSymbol('{a');
$interpolateProvider.endSymb... | googleads/dfp-playground | static/js/app.js | JavaScript | apache-2.0 | 9,577 |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import { BrowserRouter as Router } from 'react-router-dom';
import './index.css';
// import 'bootstrap/dist/css/bootstrap-theme.min.css';
ReactDOM.render(
<Router >
<App />
</Router>,
document.getElementById('root')
);
| iproduct/course-node-express-react | 15-react-router-v4/src/index.js | JavaScript | apache-2.0 | 316 |
'use strict';
/* global THREE,Modernizr */
angular.module('artpopApp')
.directive('webglDetector', function (X3) {
function Detector(){
X3.apply(this,arguments);
}
Detector.prototype = Object.create(X3.prototype);
var app = new Detector();
window.apwgl = app;
app.init();
function configCamera(){
app.cam... | wonglok/ARTPOP | app/scripts/directives/webgl-detector.js | JavaScript | apache-2.0 | 1,688 |
/**
* myCapitalizeFilter
* note that bootstrap gives us .text-capitalize, use it instead of this filter
* unless you really only want to capitalize the first character of a sentence.
*/
angular.module(PKG.name+'.filters').filter('myCapitalizeFilter',
function myCapitalizeFilter () {
return function(input) {
... | gaarf/ng-wpwebz | app/js/filters/capitalize.js | JavaScript | apache-2.0 | 437 |
var RequestHeaderEditor = Backbone.View.extend({
initialize: function() {
var model = this.model;
var view = this;
model.on("change:headers", this.onChangeHeaders, this);
model.on("customHeaderUpdate", this.onCustomHeaderUpdate, this);
var contentTypes = [
"appli... | michaelsharman/POSTMan-Chrome-Extension | chrome/js/requester/requests/views/request/RequestHeaderEditor.js | JavaScript | apache-2.0 | 7,468 |
/* Copyright 2013 10gen 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 ... | bagel/mongo-web-shell | frontend/src/mws/Coll.js | JavaScript | apache-2.0 | 6,259 |
window['dependencies-without-mapping'] = window['dependencies-without-mapping'] || {};
sap.ui.define(['./module2'], function(module2) {
var moduleExport = {
name: 'module1',
module2: module2
};
window['dependencies-without-mapping'].module1 = moduleExport;
return moduleExport;
});
window['dependencies-without... | cschuff/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/testdata/modules/dependencies-without-mapping/module1.js | JavaScript | apache-2.0 | 640 |
/*
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | GoogleChromeLabs/sw-testing-helpers | test/node-tests.js | JavaScript | apache-2.0 | 949 |
/**
* Created by dungvn3000 on 3/18/14.
*/
Ext.define('sunerp.view.soluong.SoLuongList', {
extend: 'sunerp.view.core.BaseListView',
requires: [
'sunerp.component.NhanVienPicker'
],
tbar: [
{
xtype: 'textfield',
name: 'searchField',
hideLabel: true,
... | SunriseSoftVN/sunerp | app/assets/js/view/soluong/SoLuongList.js | JavaScript | apache-2.0 | 7,625 |
import { StyleSheet } from 'react-native';
import variables from './default';
export default StyleSheet.create({
Arrow: {
width: 8,
height: 13,
marginLeft: variables.h_spacing_md,
marginTop: variables.v_spacing_xs,
},
});
| lixiaoyang1992/react-native-starter-kit | src/styles/arrow.js | JavaScript | apache-2.0 | 243 |
var foosUtilLib = require('/lib/foos-util');
var foosRetrievalLib = require('/lib/foos-retrieval');
var foosUrlLib = require('/lib/foos-url');
exports.generateGameBasicStats = function (game) {
game.gen = game.gen || {};
game.gen.score = {
winners: 0,
losers: 0
};
var winnerResults = f... | GlennRicaud/foos-app | src/main/resources/lib/foos-game-stats.js | JavaScript | apache-2.0 | 1,942 |
/**
* @requires SuperMap/Util.js
*/
/**
* Class: SuperMap.Cloud.TransferSolution
* 公交换乘方案类。在一个换乘方案内的所有乘车路线中换乘次数是相同的。
*/
SuperMap.Cloud.TransferSolution = SuperMap.Class({
/**
* APIProperty: transferCount
* {<SuperMap.Cloud.TransferStopInfo>} 换乘方案对应的换乘次数。
*/
transferCount: null,
/**
... | SuperMap/iClient-for-JavaScript | libs/SuperMap/Cloud/TrafficTransferAnalyst/TransferSolution.js | JavaScript | apache-2.0 | 3,233 |
define(function () {
'use strict';
return ['$scope', '$i18next', 'localData', 'existingLocals',
function ($scope, $i18next, localData, existingLocals) {
var blankLocal = {
id: "",
name: ""
};
var init = function () {
$sc... | integercal/integer | src/Web2/App/controllers/admin/localController.js | JavaScript | apache-2.0 | 2,037 |
// Was a document passed-in for New Workflow?
if ((args.wd) && (args.wd != ""))
{
model.docWorkflow = search.findNode("workspace://SpacesStore/" + args.wd);
}
| Alfresco/alfresco-ms-office-plugin | webscripts/org/alfresco/office/myTasks.get.js | JavaScript | apache-2.0 | 162 |
'use strict';
describe('vpcReader', function() {
var service, $http, $scope;
beforeEach(
window.module(
require('./vpc.read.service.js')
)
);
beforeEach(window.inject(function ($httpBackend, $rootScope, _vpcReader_) {
service = _vpcReader_;
$http = $httpBackend;
$scope = $rootScope... | HaishiBai/deck | app/scripts/modules/azure/vpc/vpc.read.service.spec.js | JavaScript | apache-2.0 | 1,622 |
var NAVTREE =
[
[ "CMSIS-Core (Cortex-M)", "index.html", [
[ "Overview", "index.html", [
[ "Processor Support", "index.html#ref_v6-v8M", [
[ "Cortex-M Reference Manuals", "index.html#ref_man_sec", null ],
[ "Armv8-M and Armv8.1-M Architecture", "index.html#ARMv8M", null ]
] ],
[ ... | STMicroelectronics/cmsis_core | docs/Core/html/navtree.js | JavaScript | apache-2.0 | 16,662 |
/*
* Copyright 2015 Teppo Kurki <teppo.kurki@iki.fi>
*
* 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 applicab... | mauroc/signalk-oauth-node | providers/udp.js | JavaScript | apache-2.0 | 1,186 |
var tap = require('../tap');
tap.count(4);
var regexSeparators = /\x2E|\u3002|\uFF0E|\uFF61/g;
tap.ok((/\x50/).test('P'))
tap.ok((/\u0050/).test('P'))
var regexSeparators = new RegExp("\\x2E|\\u3002|\\uFF0E|\\uFF61", "g");
tap.ok(new RegExp("\\x50").test('P'))
tap.ok(new RegExp("\\u0050").test('P'))
| tessel/t1-runtime | test/issues/issue-runtime-134.js | JavaScript | apache-2.0 | 306 |
import iconFactory from './utils/iconFactory';
var PocketIcon = iconFactory('pocket', {
icon: 'M41.084 29.065l-7.528 7.882a2.104 2.104 0 0 1-1.521.666 2.106 2.106 0 0 1-1.522-.666l-7.528-7.882c-.876-.914-.902-2.43-.065-3.384.84-.955 2.228-.987 3.1-.072l6.015 6.286 6.022-6.286c.88-.918 2.263-.883 3.102.071.841.938.82... | BigBoss424/portfolio | v7/development/node_modules/react-share/es/PocketIcon.js | JavaScript | apache-2.0 | 1,577 |
const { CronJob } = require("cron");
module.exports = database => {
return new Promise((resolve, reject) => {
new CronJob(
"20 40 03 * * *",
() => {
resolve(database.validatePasses());
},
() => {},
true
);
});
};
| ansballard/gubbins | server/cron.js | JavaScript | apache-2.0 | 264 |
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './main.js',
output: { path: __dirname, filename: 'bundle.js' },
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: [ ... | xil-se/Xilventory | FE/webpack.config.js | JavaScript | apache-2.0 | 371 |
/*
| Copyright 2014 Esri
|
| 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 writ... | DVRPCfreight/cufc-evaluation | js/nls/resources.js | JavaScript | apache-2.0 | 3,920 |
function Controller() {
function initArticles() {
url = "https://getpocket.com/v3/get";
var ajax = Ti.Network.createHTTPClient();
ajax.onerror = function() {
alert("Error");
};
ajax.onload = function() {
var data = this.responseText;
var jd... | ryo0508/Pocketer | Resources/iphone/alloy/controllers/index.js | JavaScript | apache-2.0 | 2,701 |
/**
* Controller for the Convert screen
*
* @class Controllers.convert
* @uses core
* @uses FileManager
*
* CONFIG.url - remote URL to load
* CONFIG.file - local File to load
* CONFIG.html - HTML String to load
*/
var APP = require("core");
var FileManager = require("FileManager");
var CONFIG = arguments[0] ... | timalosi/Journey2App | app/controllers/pdfoptions.js | JavaScript | apache-2.0 | 3,138 |
// is now in the Global scope; but, we don't want to reference
// global objects inside the AngularJS components - that's
// not how AngularJS rolls; as such, we want to wrap the
// stacktrace feature in a proper AngularJS service that
// formally exposes the print method.
// version 0.0.24
(function()... | entersoftsa/eswebapiangularjs | src/eslog.js | JavaScript | apache-2.0 | 10,251 |
//列操作
var caozuo = function(value, row, index) {
return formatString('<img title="编辑" onclick="customer_editNode(\'{0}\');" src="{1}"/> <img title="删除" onclick="customer_delete(\'{2}\')" src="{3}"/> <img title="查看" onclick="customer_check(\'{4}\');" src="{5}"/>',
row.guid,'./ui/style/images/extjs_ico... | youngor/openclouddb | MyCat-web/rainbow-web/src/main/webapp/page/sa/js/customer.js | JavaScript | apache-2.0 | 5,434 |
import { createStore, compose, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import rootReducer from './reducers';
import rootSaga from './sagas';
const sagaMiddleware = createSagaMiddleware();
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store... | ccwukong/lfcommerce-react | client/src/store.js | JavaScript | apache-2.0 | 464 |
//// [for-of12.ts]
var v: string;
for (v of [0, ""].values()) { }
//// [for-of12.js]
var v;
for (v of [0, ""].values()) { }
| freedot/tstolua | tests/baselines/reference/for-of12.js | JavaScript | apache-2.0 | 125 |
/* Demo Note: This demo uses a FileProgress class that handles the UI for displaying the file name and percent complete.
The FileProgress class is not part of SWFUpload.
*/
/* **********************
Event Handlers
These are my custom event handlers to make my
web application behave the way I went when SWFUp... | mastishka/mgoos | js/swfupload.handlers.js | JavaScript | apache-2.0 | 2,465 |
/* eslint-disable max-len */
const Parse = require('parse/node');
const { dropDB } = require('parse-server-test-runner');
const { getScheduledPushes } = require('../src/query');
const { addOffsetCounts, markAsComplete } = require('../src/statusHandler');
const { stripTimezone } = require('./util');
describe('statusH... | AmpMe/parse-server-scheduled-pusher | spec/statusHandler.spec.js | JavaScript | apache-2.0 | 4,028 |
// Copyright 2008 The Closure Library 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 requ... | yamadatomonori/closure-library | closure/goog/editor/plugins/linkdialogplugin.js | JavaScript | apache-2.0 | 11,979 |
// cmumps2fhir-demographics-mocha.js
var chai = require('chai');
var expect = chai.expect;
var should = chai.should();
var sinon = require('sinon');
var _ = require('underscore');
var fs = require('fs');
var test = require('./common-test');
var compFactory = require('../components/cmumps2fhir-demographics');
var ... | rdf-pipeline/noflo-rdf-components | test/cmumps2fhir-demographics-mocha.js | JavaScript | apache-2.0 | 4,659 |
/*
* Copyright (c) 2015 Internet of Protocols Alliance (IOPA)
*
* 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 ... | iopa-io/iopa-coap-packet | src/common/coapFormat.js | JavaScript | apache-2.0 | 11,315 |
/*
* Copyright 2022 Apollo 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 to i... | nobodyiam/apollo | apollo-portal/src/main/resources/static/scripts/controller/SettingController.js | JavaScript | apache-2.0 | 7,699 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | baby-gnu/one | src/sunstone/public/app/utils/panel/ec2-tr.js | JavaScript | apache-2.0 | 4,705 |
/* eslint-disable no-unused-vars, no-var, max-len */
var interfaceConfig = {
// TO FIX: this needs to be handled from SASS variables. There are some
// methods allowing to use variables both in css and js.
DEFAULT_BACKGROUND: '#474747',
/**
* In case the desktop sharing is disabled through the co... | Traderlynk/Etherlynk | communicator/extension/jitsi-meet/interface_config.js | JavaScript | apache-2.0 | 6,209 |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Op... | CouleurCitron/cms-2014 | lib/FCKeditor/editor/_source/internals/fcktools.js | JavaScript | apache-2.0 | 8,567 |
// Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | markstgodard/hurl | app/assets/javascripts/play.js | JavaScript | apache-2.0 | 43,528 |
/**
* The Attachment module
* an Attachment class inheriting from KeyValue
* @module attachment
* @copyright CHECKROOM NV 2015
*/
define(['jquery', 'common/attachment'], /** Attachment */ function ($, attachmentHelper) {
var PREVIEWS = ['jpg', 'jpeg', 'png', 'gif', 'pdf'];
var DEFAULTS = {
fileNam... | CHECKROOM/checkroom_core_js | src/core/attachment.js | JavaScript | apache-2.0 | 4,581 |
import { S3 } from 'aws-sdk';
import conf from '../../../../../lib/Config';
import getConfig from '../support/config';
import { WebsiteConfigTester } from '../../lib/utility/website-util';
const config = getConfig('default', { signatureVersion: 'v4' });
const s3 = new S3(config);
// Note: To run these tests locally,... | truststamp/S3 | tests/functional/aws-node-sdk/test/object/websiteHeadWithACL.js | JavaScript | apache-2.0 | 5,846 |
$(document).ready(function() {
FileReader = window.FileReader;
$("#fileChoose0").bind('change', function() {
// if (FileReader) {
// var reader = new FileReader(), file = this.files[0];
// reader.onload = function(e) {
// // reflushImg("img0", e.target.result);
// $("#picturePath").val(e.target.r... | hnccfr/ccfrweb | admin/WebContent/scripts/project/fileUpload.js | JavaScript | apache-2.0 | 11,078 |
/**
* Document .
* Project chaussette.
* Created by Rockerz on 29/07/14.
*/
| SuperstrongBE/chaussette | app.js | JavaScript | apache-2.0 | 79 |
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/model/json/JSONModel",
"sap/ui/model/resource/ResourceModel"
], function(UIComponent, JSONModel, ResourceModel) {
"use strict";
return UIComponent.extend("sap.ui.core.internal.samples.composite.xmlcomposite.exTable.Component",
{
metadata:
{
manifest: "json... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/internal/samples/composite/xmlcomposite/exTable/Component.js | JavaScript | apache-2.0 | 460 |
var classorg_1_1onosproject_1_1net_1_1meter_1_1MeterOperations =
[
[ "MeterOperations", "classorg_1_1onosproject_1_1net_1_1meter_1_1MeterOperations.html#a4dc6dbb9a9e3d97554cea473cdb6f97c", null ],
[ "operations", "classorg_1_1onosproject_1_1net_1_1meter_1_1MeterOperations.html#ae54d5dfe135a14c3d91979a855af6f98"... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1net_1_1meter_1_1MeterOperations.js | JavaScript | apache-2.0 | 331 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/config/Theme', './v5/home-share', './v4/home-share'], function (Theme, homeShare$2, homeShare$1) { 'use strict';
const pathData = Theme.isThemeFamily("sap_horizon") ? homeShare$1 : homeShare$2;
var homeShare = { pathData };
return homeShare;
});
| SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/home-share.js | JavaScript | apache-2.0 | 303 |
const models = require('../models');
const Portal = models.Portal;
const Folio = models.Folio;
const folioPage = (req, res) => res.render('folio', { csrfToken: req.csrfToken() });
const getPortal = (req, res) => Portal.PortalModel.findById(req.params.id, (err, doc) => {
if (err) {
return res.status(400).json({ ... | li-cai/folio2 | server/controllers/Folio.js | JavaScript | apache-2.0 | 1,438 |
/* global $ */
var utils = require('../../utils');
var _ = utils.getLodash();
/**
* A map from prefix to the next numerical suffix to try to
* use as an id in the applab app's DOM.
* @type {Object.<string, number>}
*/
var nextElementIdMap = {};
/**
* @readonly
* @enum {string}
*/
var ElementType = {
BUTTON:... | ty-po/code-dot-org | apps/src/applab/designElements/library.js | JavaScript | apache-2.0 | 5,131 |
const datas = {
days: {
monday: 'Monday',
tuesday: 'Tuesday',
wednesday: 'Wednesday',
thursday: 'Thursday',
friday: 'Friday',
saturday: 'Saturday',
sunday: 'Sunday',
},
months: {
1: 'January',
2: 'February',
3: 'March',
4: 'April',
5: 'May',
6: 'June',
7: 'J... | ecmadao/hacknical | frontend/utils/locales/datas/en.js | JavaScript | apache-2.0 | 749 |
//// [derivedClassWithPrivateStaticShadowingProtectedStatic.ts]
class Base {
protected static x: string;
protected static fn(): string {
return '';
}
protected static get a() { return 1; }
protected static set a(v) { }
}
// should be error
class Derived extends Base {
private static x... | domchen/typescript-plus | tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js | JavaScript | apache-2.0 | 1,944 |
import React, { Component } from 'react';
import GardenPlot from '../gardenPlot/GardenPlot';
import PlantSearch from '../plantsearch/PlantSearch';
import GardenBuilderContainer from '../gardenBuilder/GardenBuilderContainer';
import PlantActionSelectContainer from '../plantactionselector/PlantActionSelectContainer';
im... | BushrootPDX/app | src/garden/Garden.js | JavaScript | apache-2.0 | 1,381 |
//首页
note.config(['$stateProvider',function($stateProvider){
$stateProvider.state('home',{
url:'/home',
views:{'content':{templateUrl:templates_path+'/home.html'}}
}).state('welcome',{ //欢迎页
url:'/welcome',
views:{'content':{templateUrl:templates_path+'/welcome.html'}}
}).state('login',{ //登陆
url:'/log... | Hishengs/M-Note | Public/js/app/state/homeState.js | JavaScript | apache-2.0 | 528 |
define(
"dojo/cldr/nls/bs/islamic", //begin v1.x content
{
"dateFormatItem-yM": "MM.y.",
"dateFormatItem-yyyyMMMEd": "E, dd. MMM y. G",
"dateFormatItem-MMMEd": "E, dd. MMM",
"dateFormatItem-hms": "hh:mm:ss a",
"dateFormatItem-MMM": "LLL",
"dateFormatItem-y": "y.",
"dateFormatItem-yyyy": "y. G",
"dateFormatItem-... | WASdev/skunkworks.libertycar | LibertyCar/WebContent/remote/dojo-release-1.7.4/dojo/cldr/nls/bs/islamic.js | JavaScript | apache-2.0 | 1,590 |
angular.module('disc.lesson')
.directive('lessonRating', [
'$rootScope',
'LabelService',
'LessonService',
'AuthService',
'RatingDTO',
'$timeout',
function ($rootScope, LabelService, LessonService, AuthService, RatingDTO, $timeout) {
return {
... | williamverdolini/disciturCQRSES | Discitur.Api/Discitur.Web/app/modules/lesson/LessonRatingDrv.js | JavaScript | apache-2.0 | 7,841 |
'use strict';
/**
* @ngdoc function
* @name openshiftConsole.controller:ErrorController
* @description
* # ErrorController
* Controller of the openshiftConsole
*/
angular.module('openshiftConsole')
.controller('ErrorController', function ($scope, $window) {
var params = URI(window.location.href).query(true... | stackdocker/origin | assets/app/scripts/controllers/util/error.js | JavaScript | apache-2.0 | 998 |
/*!-----------------------------------------------------------------------------
* Vegas - Fullscreen Backgrounds and Slideshows.
* v2.1.3 - built 2015-04-28
* Licensed under the MIT License.
* http://vegas.jaysalvat.com/
* ----------------------------------------------------------------------------
* Copyright (... | NKozlov/wedding-page | resources/javascript/lib/vegas-2.1.3.js | JavaScript | apache-2.0 | 21,580 |
var uuid = require('uuid');
var supportedEnvironments = require('../../utils/supportedEnvironments');
var testMatrix = [];
var instanceId;
var bindingId;
var resourceGroupName, namespaceName, azureeventhubs;
var environment = process.env['ENVIRONMENT'];
var location = supportedEnvironments[environment]['location'];... | zhongyi-zhang/meta-azure-service-broker | test/integration/submatrix/eventhubs.js | JavaScript | apache-2.0 | 2,248 |
!function () {
const modules_ready = {};
/*
global events:
'u_login',
'tab_active',
'contacts',// when contacts changed online status
'u_data',// when user data updated, for example user profile photo
'contacts_pending',// when contact request or accept event appears
*/
/**
* @namespac... | Mexy-pro/mexy-pro.github.io | js/dc-extension.js | JavaScript | apache-2.0 | 1,338 |
/* @flow */
export { default } from './ButtonGroup';
export * from './themes';
| mineral-ui/mineral-ui | src/library/ButtonGroup/index.js | JavaScript | apache-2.0 | 80 |
/*
Copyright 2016 First People's Cultural Council
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... | First-Peoples-Cultural-Council/fv-web-ui | frontend/app/components/Categories/WordCategories.js | JavaScript | apache-2.0 | 4,232 |
/**
* @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/strided/base/binary-addon-dispatch/test/test.ndarray.js | JavaScript | apache-2.0 | 15,967 |
var React = require('react');
var TopNavContainer = require('./TopNavContainer');
var MainContainer = React.createClass({
render: function () {
return (
<div id='wrapper'>
<TopNavContainer />
{this.props.children}
</div>
)
}
});
module.exports = MainContainer;
| quintilesims/layer0 | ui/app/containers/MainContainer.js | JavaScript | apache-2.0 | 303 |
/**
* @license 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 http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | mixed/lighthouse | lighthouse-core/test/audits/accessibility/axe-audit-test.js | JavaScript | apache-2.0 | 1,450 |
import React from 'react'
import Widget from './widget'
import EditWidget from 'app/containers/board/edit_widget'
import Loading from 'app/components/loading'
import Command from 'app/utils/command'
import Restricted from 'app/restricted'
import ReactGridLayout from 'react-grid-layout'
import {object_is_equal, to_keywo... | serverboards/serverboards | frontend/app/js/components/board/index.js | JavaScript | apache-2.0 | 14,405 |
var log = new Log();
var mod = require('store');
var user = mod.user;
var server = require('store').server;
var currentUser = server.current(session);
var SUBSCRIPTIONS_PATH = '/subscriptions/mobileapp/';
var mobileGeneric = new Packages.org.wso2.carbon.appmgt.mobile.store.Generic();
v... | lakshani/carbon-mobile-appmgt | features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/modules/mod-ent-install.js | JavaScript | apache-2.0 | 6,464 |
Army = {
makeArmy : function(img)
{
var armyShared = ArmyShared.makeArmyShared(img, null);
var oldAttack = armyShared.attack;
var army = {
moving: function(x, y)
{
var moveMap = this.indexMovement().moveMap;
for(var i = 0; i < moveMap.length; i++)
{
if(moveMap[i].x == x && mo... | oprochazka/hTBG | gameServer/army.js | JavaScript | apache-2.0 | 996 |
//function to manage disbaled inpur fields
function ableDisable(id)
{
if($("#"+id).attr("disabled")=="disabled")
{
$("#"+id).removeAttr('disabled');
$("#"+id).removeAttr(id);
$("#"+id).attr('name',id);
if($("#"+id).val()=='')
{
$("#"+id).val(0);
}
update();
}
else
{
$("#"+id).attr('disabled',"disabled");
update();
}
... | myadlan/BajetKahwin | www/js/bride.js | JavaScript | apache-2.0 | 6,755 |
// Compiled by ClojureScript 1.10.238 {}
goog.provide('process.env');
goog.require('cljs.core');
/** @define {string} */
goog.define("process.env.NODE_ENV","development");
//# sourceMappingURL=env.js.map?rel=1526826999526
| quoll/life | docs/cljs/out/process/env.js | JavaScript | apache-2.0 | 224 |
var View = function(controler) {
this.divisionSize = 100;
this.playerElement = $('#player');
this.spotLight = $('#spotlight');
$(document).keyup( function(e){
controler.keyCodeProcessor(e);
e.preventDefault();
}).bind(controler);
//stopping scrolling on keydown
$(document).keydown( function(e){
... | katherinea/spookymaze | view.js | JavaScript | apache-2.0 | 923 |
/*
Qookery - Declarative UI Building for Qooxdoo
Copyright (c) Ergobyte Informatics S.A., www.ergobyte.gr
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/LICE... | ergobyte/qookery | qookeryace/source/class/qookery/ace/__init__.js | JavaScript | apache-2.0 | 1,358 |
'use strict';
var parseArgs = require('minimist'),
App = require('./src/app'),
commonConfig = require('./src/common/config'),
logger = require('./src/common/logger'),
utils = require('./src/common/utils'),
Subscription = require('./src/database/subscription'),
// prepare argument parsing
parseOptions =... | furgerf/tv-show-torrent-downloader | server.js | JavaScript | apache-2.0 | 2,704 |
import templateUrl from './service-details-ansible-modal.html'
export const ServiceDetailsAnsibleModalComponent = {
controller: ComponentController,
controllerAs: 'vm',
bindings: {
resolve: '<',
close: '&',
dismiss: '&'
},
templateUrl
}
/** @ngInject */
function ComponentController () {
const ... | AllenBW/manageiq-ui-service | client/app/services/service-details/service-details-ansible-modal.component.js | JavaScript | apache-2.0 | 443 |
var $elems = $('html, body');
var delta = 0;
$(document).on('mousemove', function(e) {
var h = $(window).height();
var y = e.clientY - h / 2;
delta = y * 0.1;
});
$(window).on('blur mouseleave', function() {
delta = 0;
});
(function f() {
if(delta) {
$elems.scrollTop(function(i, v) {
return v + delta;
})... | tungpham42/biorhythm | js/auto_scroll.js | JavaScript | apache-2.0 | 362 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | radicalbit/ambari | ambari-web/test/views/main/host_test.js | JavaScript | apache-2.0 | 29,649 |
/**
* @license Copyright 2021 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... | GoogleChrome/lighthouse | lighthouse-core/gather/driver/service-workers.js | JavaScript | apache-2.0 | 2,290 |
/*
Copyright 2015 Gravitational, 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 writing, soft... | sokoow/teleport | web/src/app/flux/storedSessionsFilter/actions.js | JavaScript | apache-2.0 | 1,350 |
var fs = require('fs');
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var runSequence = require('run-sequence');
var babelify = require('babeli... | CMPUT404/socialdistribution | gulpfile.js | JavaScript | apache-2.0 | 3,109 |
'use strict';
// load files
require('../humans.txt');
require('../manifest.json');
require('../manifest.webapp');
require('../robots.txt');
// load images
require('../i/logo.png');
require('../i/favicon.png');
require('../i/touch/apple-touch-icon.png');
require('../i/touch/chrome-touch-icon-192x192.png');
require('..... | amazeui/starter-kit | app/js/entry.js | JavaScript | apache-2.0 | 1,232 |
//
// Copyright (c) Microsoft and contributors. 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 requi... | jmspring/azure-sdk-for-node | test/services/serviceBus/servicebusmanagementservice-tests.js | JavaScript | apache-2.0 | 7,311 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | badlogicmanpreet/aura | aura-components/src/main/components/ui/tooltipAdvanced/tooltipAdvancedHelper.js | JavaScript | apache-2.0 | 7,167 |
var classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowCorePacketContext =
[
[ "OpenFlowCorePacketContext", "classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowCorePacketContext.html#a0d736fcf641797bfc61bb4fe9dcd4084", null ],
[ "send", "classorg_1_1onosproject_1_1provide... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowCorePacketContext.js | JavaScript | apache-2.0 | 425 |
import * as loglevel from 'loglevel'
var level = localStorage.getItem('loglevel:cerberus') || 'INFO'
var log = loglevel.getLogger('cerberus')
log.setLevel(level)
export default log
export function getLogger(name) {
var level = localStorage.getItem(`loglevel:${name}`) || 'INFO'
var log = loglevel.getLogger(na... | tlisonbee/cerberus-management-service | dashboard/app/utils/logger.js | JavaScript | apache-2.0 | 364 |
/** User VO */
var User = function(pId, pFirst, pLast, pLogin, pPass, pMail, pCartItems, pRole, pAddresses) {
this.id = pId;
this.firstName = pFirst;
this.lastName = pLast;
this.login = pLogin;
this.password = pPass;
this.mail = pMail;
this.cart = new Cart(pCartItems);
this.role = pRole;
this.addresses = [];... | got5/TrainingAngularJS | app/js/data/User.js | JavaScript | apache-2.0 | 572 |
//// [es5ExportDefaultFunctionDeclaration.ts]
export default function f() { }
//// [es5ExportDefaultFunctionDeclaration.js]
function f() { }
exports.default = f;
//// [es5ExportDefaultFunctionDeclaration.d.ts]
export default function f(): void;
| freedot/tstolua | tests/baselines/reference/es5ExportDefaultFunctionDeclaration.js | JavaScript | apache-2.0 | 250 |
/*!
* ${copyright}
*/
sap.ui.define([
"jquery.sap.global",
"sap/ui/core/Control",
"sap/ui/core/IconPool",
"sap/ui/core/HTML",
"sap/ui/core/Icon",
"./Button",
"./Toolbar",
"./ToolbarSpacer",
"./List",
"./StandardListItem",
"./library",
"./Text",
"./SegmentedButton",
"./Page",
"./NavContainer",
"./Link... | SQCLabs/openui5 | src/sap.m/src/sap/m/MessageView.js | JavaScript | apache-2.0 | 33,994 |