code stringlengths 2 1.05M |
|---|
// Chosen, a Select Box Enhancer for jQuery and Prototype
// by Patrick Filler for Harvest, http://getharvest.com
//
// Version 1.0.0
// Full source at https://github.com/harvesthq/chosen
// Copyright (c) 2011 Harvest http://getharvest.com
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
// T... |
module.exports = function (gulp, $, utils, config) {
gulp.task('run-server', ['js', 'watch'], function () {
return gulp.src(config.paths.root)
.pipe($.plumber())
.pipe($.webserver({
host: config.server.host,
port: config.server.port,
li... |
var JoinPlugin = require("../../../");
const merge = require("merge");
module.exports = {
entry: "./index",
output: {
libraryTarget: 'umd',
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.(json)$/i,
use: [
JoinPlugin.loader({name: 'result.json'})
]
... |
import Promise from 'pinkie';
import promisifyEvent from 'promisify-event';
import mapReverse from 'map-reverse';
import { resolve as resolvePath } from 'path';
import { EventEmitter } from 'events';
import { flattenDeep as flatten, pull as remove } from 'lodash';
import Bootstrapper from './bootstrapper';
import Repor... |
// This defines a starting set of data to be loaded if the app is loaded with an empty db.
import './fixtures.js'
// This defines all the collections, publications and methods that the application provides
// as an API to the client.
// import './register-api.js'
|
({
createPopupWindow(htmlToShow, titleToShow, heightToUse, widthToUse) {
Ext.create("Ext.Window", {
height: heightToUse,
minWidth: widthToUse,
autoWidth: true,
layout: "fit",
modal: false,
autoScroll: true,
html: htmlToShow,
title: titleToShow
}).show();
}
});... |
'use strict';
var SandboxedModule = require('sandboxed-module');
SandboxedModule.registerBuiltInSourceTransformer('istanbul');
|
///<reference path=".\typed\node.d.ts" />
///<reference path=".\typed\express2.d.ts" />
var express = require('express');
var app = express.createServer();
app.use(express.bodyParser());
app.get('/resource', function (req, res) {
console.log(req.url);
var msg = req.query.msg;
if (msg != null) {
... |
import test from 'tape-catch';
import {LayerManager, MapView, PolygonLayer} from 'deck.gl';
import PickLayersPass from '@deck.gl/core/passes/pick-layers-pass';
import {Framebuffer} from '@luma.gl/core';
import * as FIXTURES from 'deck.gl-test/data';
import gl from '@deck.gl/test-utils/utils/setup-gl';
test('PickLayer... |
var init = require('./testInit');
var should = require('should');
var dwolla = require('../../lib/dwolla')(init.fakeKeys.appKey, init.fakeKeys.appSecret);
describe('Account', function() {
describe('get balance', function() {
it('Should make the correct request', function(done) {
dwolla.set... |
(function () {
'use strict';
angular
.module('app')
.factory('dictionary', dictionary);
/* @ngInject */
function dictionary() {
return service;
////////////////
function service() {
return {
rootUrl : '/client_v2/app/#/',
... |
'use strict';var _slicedToArray = function () {function sliceIterator(arr, i) {var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;... |
function trim(string) {
return string.replace(/(^\s+)|(\s+$)/g, "");
} |
var mongodbUri = "mongodb://username:password@127.0.0.1/local?authSource=admin";
var collectionName = "names";
var Db = require("./db");
var db = new Db(mongodbUri,collectionName);
var express = require("express");
var path = require("path");
var app = express();
app.use(express.static(path.join(__dirname,"public")));
... |
/**
* PDF.js worker entry file.
*
* This file is identical to Mozilla's pdf.worker.entry.js, with one exception being placed inside
* this bundle, not theirs.
*/
(typeof window !== 'undefined'
? window
: {}
).pdfjsWorker = require('pdfjs-dist/legacy/build/pdf.worker');
|
/** Sticky news
*/
(function($) {
"use strict";
var App = window.App;
App.CollapsibleBlock = function() {
this.$toggleLinks = $('.collapsible-block-toggle');
if(!this.$toggleLinks.length) { return; }
this.init();
};
App.CollapsibleBlock.prototype = {
init: function() {
this.bindEvent... |
var express = require('express')
, async = require('async')
, cache = require('memjs').Client.create()
, mongoose = require('mongoose')
, router = express.Router()
, Ward = require('../models/Ward')
;
router.get('/wards', function(req, res){
res.locals.navActive.wards = 'active';
res.locals.bodyClass =... |
'use strict';
angular.module('slipflowApp')
.service('Messages', function Messages($rootScope, Flowdock, Users, Threads, Uuid) {
var MESSAGE_BUFFER_LENGTH = 30;
var addTag = function (tag) {
this.tags.push(tag);
};
var removeTag = function (tag) {
this.tags.splice(this.tags.indexOf(tag)... |
'use strict';
/* jasmine specs for controllers go here */
describe('controllers', function(){
beforeEach(module('myApp.controllers'));
it('should ....', inject(function($controller) {
//spec body
var myCtrl1 = $controller('movieListCtrl', { $scope: {} });
expect(myCtrl1).toBeDefined();
}));
it(... |
'use strict';
var Bridge = require('angular-bridge');
if (typeof Bridge === 'function') {
console.log('ok');
}
|
var read = require('load-json-file');
var write = require('write-json-file');
function modifyFile(file, tag, branch) {
return read(file)
.then(contents => {
const [major, minor] = tag.split('.');
Object.keys(contents.require)
.filter(r => r.indexOf('lastcall/mannequ... |
/*******************************************************************************
* LoveMath - A MathML3.0 editor and render
*
* Copyright (c) 2011 Zhengwei Jin All rights reserved.
* Dual licensed under the MIT or GPL Version 2 licenses.
*
****************************************************************... |
'use strict';
var Ajv = require('ajv');
var jsonSchemaTest = require('json-schema-test');
var defineKeywords = require('..');
var ajvs = [
defineKeywords(getAjv(), 'switch'),
defineKeywords(getAjv()),
defineKeywords(getAjv(true))
];
jsonSchemaTest(ajvs, {
description: 'keywords "switch" with async schemas',... |
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
gulp.task('default', function() {
gulp.src('js/title-notify.js')
.pipe(plugins.uglify())
.pipe(gulp.dest('dist'))
}); |
import React, {Component} from 'react'
import '../../assets/styles/App.styl'
import Footer from '../../components/Footer/Footer'
import Film from '../../components/Film_body/Film'
import Nav from '../../components/web-nav/nav'
class App extends Component {
constructor(props) {
super(props)
this.state = {
... |
/////////////////////////////////////
var JQueryPrinter = TestPrinter.extend({
init: function(selector) {
this._super();
this.selector = selector;
this.configureOutput(selector);
this.startTime = new Date();
},
configureOutput: function(selector) {
$(selector).css('text-align', 'left');
$(selector).ap... |
// ////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
playToFive();
function getInput() {
console.log(("\n") + "Please choose either 'rock', 'paper', or 'scissors'.");
return prompt();
}
function randomPlay... |
/*jslint regexp: true */
var _ = require('underscore'),
colors = require('colors'),
fs = require('fs'),
configPaths = require('./config/paths'),
path = require('path'),
when = require('when'),
hbs = require('express-hbs'),
errors,
... |
var class_user_role =
[
[ "getDisabled", "class_user_role.html#acb30698aae42539e2b9ea3f6d172ce46", null ],
[ "getRole", "class_user_role.html#a0b2e7098f1c48a7439a42bada5b69689", null ],
[ "getRoleId", "class_user_role.html#a7821742a903a8129e95aa2e139e02cf2", null ],
[ "getSource", "class_user_role.html#... |
var PushHelpers = function() {
}
// Detect if the user has push notifications enabled at the system leve. iOS only.
PushHelpers.prototype.isPushEnabled = function (success, failure) {
cordova.exec(success, failure, "PushHelpers", "checkPush", []);
}
// Get data from a push notification passed while app is in backgr... |
import initUserPopovers from '~/user_popovers';
import UsersCache from '~/lib/utils/users_cache';
describe('User Popovers', () => {
const fixtureTemplate = 'merge_requests/merge_request_with_mentions.html';
preloadFixtures(fixtureTemplate);
const selector = '.js-user-link, .gfm-project_member';
const dummyUs... |
'use strict';
let color = require('color');
function pageLoaded(args) {
var page = args.object;
}
exports.pageLoaded = pageLoaded;
exports.animate = function(args) {
args.object.animate({
duration: 3000,
translate: {
x: 200,
y: 360
},
scale: {
y: 2,
x: 1
},
backgr... |
var WidgetController = function($scope, $widgetPopupService, $widgetContentRefreshService) {
$scope.widgetContent = "";
$scope.processing = true;
$scope.error = false;
$scope.validateShowDimmer = function() {
return $scope.widget.visual.showDimmerLoading === true;
};
$scope.editWi... |
/*
* Microdash - Tiny utilities for Node and the browser
* Copyright (c) Dan Phillimore (asmblah)
* https://github.com/asmblah/microdash
*
* Released under the MIT license
* https://github.com/asmblah/microdash/raw/master/MIT-LICENSE.txt
*/
'use strict';
var getType = require('./getType');
module.exports = fu... |
var points = require('./lib/points');
var drawLine = require('./lib/line');
exports = module.exports = function (width, height, alist) {
if (typeof width === 'object') {
alist = width;
width = 80;
height = 24;
}
var pts = points(alist);
var screen = [];
for (var i = 0; ... |
$('.annotationbtn').mouseover(function (e) {
e.preventDefault();
$(this).parent().toggleClass('expand');
$(this).parent().children().toggleClass('expand');
}); |
var app = angular.module('home', ['ngSanitize','ngAnimate','ui.bootstrap']); |
import { @dataProvider } from '@jymfony/decorators';
import { AbstractComparisonValidatorTestCase } from './AbstractComparisonValidatorTestCase';
import { expect } from 'chai';
const DivisibleBy = Jymfony.Component.Validator.Constraints.DivisibleBy;
const UnexpectedValueException = Jymfony.Component.Validator.Exceptio... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
/* jshint mocha: true */
'use strict';
var expect = require('expect.js');
var lodash = require('lodash');
var context = require('./setup')();
describe('expose-lodash bundle', function () {
it('should expose lodash module', function () {
var _ = context.require('_');
expect(_).to.be.a('function').and.to.ha... |
// Modules
// =======
var path = require( 'path' );
var gulp = require( 'gulp' );
var less = require( 'gulp-less' );
var sourcemaps = require( 'gulp-sourcemaps' );
var autoprefixer = require( 'gulp-autoprefixer' );
var uglify = require( 'gulp-uglify' );
var concat = require( 'gulp-concat' );
var plumber = require( 'gul... |
export default class Models {
willCreateModels(models) {
for (const [key, Model] of models) {
if (key === 'hello') {
Model.prototype.bar = 'baz';
}
}
}
}
|
/* MODULE Sessions */
module.exports = (function(){
var Required = [];
var Module = function(conf){
var me = App.namespace(conf.name, conf);
var sessions = {};
me.clearAll = function () {
sessions = {};
};
me.clearOld = function () {
var now = new Date();
var olddate = now - me.config.ti... |
var tape = require("tape"),
processBrowser = require("..");
global.process = processBrowser;
tape("process.hrtime(previousTimestamp: Array)", function(assert) {
processBrowser.hrtime();
assert.end();
});
tape("process.uptime()", function(assert) {
processBrowser.uptime();
assert.end();
});
tap... |
var searchData=
[
['mdboutput',['mDBOUTPUT',['../mdb__client_8c.html#accfc6367871c06fffb67e9712f3b8b39',1,'mDBOUTPUT(): mdb_client.c'],['../mdb__lib_8h.html#accfc6367871c06fffb67e9712f3b8b39',1,'mDBOUTPUT(): mdb_lib.h']]]
];
|
////////////////////////////
// Login to the Spark Cloud
////////////////////////////
function sparkLog() {
spark.login({
accessToken: token
});
}
/////////////////////////////////////////////////////
// Save number of devices and general device details
/////////////////////////////////////////////////////... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const {set, cd, sed, rm} = require('shelljs');
const path = require('path');
const log = console.log;
log('===== ab... |
/* Thing > CreativeWork > Comment > Answer - An answer offered to a question; perhaps correct, perhaps opinionated or wrong.. Generated automatically by the reactGenerator. */ var Answer= React.createClass({displayName: "Answer",
getDefaultProps: function(){
return {
}
},
render: function(){
... |
import {assert, test, Math} from 'j0';
export default function tests(asinh, title) {
test(title, (test) => {
for (let value = -5; value < 5; value += 1) {
const expected = Math.log(value + Math.sqrt((value * value) + 1));
test(`${title.join('.')}(${value.toFixed(1)}) → ${expected}`... |
import { Planets } from "game/planetsMain";
let planets = new Planets();
planets.init("Intro").then(function() {
planets.start();
console.log(planets);
}); |
import DS from 'ember-data';
export default DS.Model.extend({
username: DS.attr('string'),
locationName: DS.attr('string', {
defaultValue: function() { return 'Puerto Rico'; }
}),
lat: DS.attr('string', {
defaultValue: function() { return '18.4500';}
}),
lon: DS.attr('string', {... |
/*
* JQuery zTree core 3.3
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
*
* Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2012-07-16
*/
(function($){
var settings = {}, roots = {}, caches = {}, zId = 0,
//d... |
define([], function(Users, Projects, TemplUtil){
var HomeView = Backbone.View.extend({
el: '#content',
render: function(){
$('#content').html("Check out your projects, join one in the fascinatory, or start a new one!");
}
});
return HomeView;
}); |
'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
console.log("Javascript connected!");
}
function anagrammedName(name) {
// Thanks, Internet Anag... |
/* global expect */
describe('array-like type', () => {
describe('equal()', () => {
const simpleArrayLikeType = {
name: 'simpleArrayLike',
base: 'array-like',
identify: Array.isArray,
numericalPropertiesOnly: false,
};
const clonedExpect = expect.clone().addType(simpleArrayLikeType... |
// # object component
/*
Render a field to edit a array of key / value objects, where duplicate keys are allowed.
*/
'use strict';
const React = require('react');
const R = React.DOM;
const cx = require('classnames');
const update = require('react-addons-update');
const keyCountsByKey = assocList => {
const count... |
/* global describe, it, expect, PointsInPolygonFinder */
(function () {
'use strict';
var testData = {
squareArray: [[0, 0], [10, 0], [10, 10], [0, 10]],
singlePointInSquare: [5, 5],
singlePointOutSquare: [5, 15],
squareGeoJson: {type: 'Polygon', coordinates: [[0, 0], [10, ... |
/**
* Module Dependencies
*/
var assert = require('assert');
var _ = require('@sailshq/lodash');
var async = require('async');
var Waterline = require('waterline');
var waterlineUtils = require('waterline-utils');
// Require Fixtures
var fixtures = {
UserFixture: require('./fixtures/crud.fixture')
};
var waterl... |
function Shape(name){
ToolBox.call(this, name);
this.name = name || 'Shapes box';
this.family = "shapes";
this.tool = null;
}
Shape.prototype = Object.create(ToolBox.prototype);
Shape.prototype.init = function(){
var self = this;
var html = "<button type=''class='shape-btn ' data-type='square-tool'>Square</butto... |
function pad(num, size) {
var s = '0000' + num
return s.substring(s.length - size)
}
export function capitalize(s) {
return s[0].toUpperCase() + s.slice(1)
}
export function formatTime(time) {
let h, m, s, ms = 0
var newTime = ''
h = Math.floor( time / (60 * 60) )
time = time % (60 * 60)
m = Math.f... |
var pendingHead = document.getElementById('pendingHead');
var pendingBody = document.getElementById('pendingBody');
var completedHead = document.getElementById('completedHead');
var completedBody = document.getElementById('completedBody');
var tableHeaderText = ['Order Number', 'Name', 'Email', 'Street', 'City', 'Stat... |
define(function(require) {
var Vector2 = require('num/num').Vector2,
AABB = require('./aabb'),
utils = require('./utils');
var Grid = function(world) {
this.world = world;
this.numberOfColumns = 5;
this.numberOfRows = 5;
this.bodiesPerColumn = utils.fillArray(0, this.numberOfColum... |
"use strict";
module.exports = function(sequelize, DataTypes) {
var Devices = sequelize.define('devices', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true,
unique: true
},
company_id: {
... |
/**
* Minified by jsDelivr using Terser v3.14.1.
* Original file: /npm/jquery@3.4.1/src/var/document.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
define(function(){"use strict";return window.document});
//# sourceMappingURL=/sm/... |
(function () {
'use strict';
/**
* @ngdoc service
* @name atacamaApp.utilService
* @description
* # utilService
* Service in the atacamaApp.
*/
angular.module('atacamaApp')
.factory('utilService', utilService);
function utilService($log, ngstomp) {
var service = {
traceLog: tr... |
#!/usr/bin/env node
'use strict';
var args = require('minimist')(process.argv.slice(2))
var makeBeep = require('./');
var number = args.count;
makeBeep(number);
|
module.exports = (function(SyncIt_Constant,addEvents) {
"use strict";
// Author: Matthew Forrester <matt_at_keyboardwritescode.com>
// Copyright: Matthew Forrester
// License: MIT/BSD-style
var ERROR = SyncIt_Constant.Error;
var FOLLOW_INFORMATION_TYPE = SyncIt_Constant.FollowInformationType;
/**
* ## new SyncIt_P... |
export default class Point2D {
static to3D = ([x, z], y) => [x, y, z];
static toX = ([x]) => x;
static toY = ([, y]) => y;
}
|
define([
'underscore',
'js/router',
'js/models/app'
], function (_, Router, AppModel) {
'use strict';
var appModel = new AppModel(),
initialize = function () {
Router.initialize(appModel);
};
return {
initialize: initialize,
model: appModel
};
});
|
/**
* Created by ben on 21/01/16.
*/
angular.module('flos.run', [])
.factory('runService', ['$http', '$httpParamSerializer', '$q', '$rootScope', function ($http, $httpParamSerializer, $q, $rootScope) {
var runFunctions = {};
var runResults = {};
runFunctions.runGraph = function (graphId,... |
// LOGO
var i = 0;
for (i = 0; i < 360; i += 1) {
yurt.pu();
yurt.fd(180-i/2);
yurt.pd();
yurt.fd(i/2);
yurt.pu();
yurt.bk(180);
yurt.rt(1);
}
|
/**
* ElementUtils.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* Utility class for various element specific functions.
*
* @private
* @class tinymce.dom.E... |
var chrome = chrome || {};
var popup = (function () {
var service = analytics.getService('Design_Grid_Overlay');
service.getConfig().addCallback(initAnalyticsConfig);
var tracker = service.getTracker('UA-80131763-3');
tracker.sendAppView('MainView');
function initAnalyticsConfig(config) {
... |
// 请按名称排序放置
import _activityIndicator from './_activityIndicator';
import _avatar from './_avatar';
import _badge from './_badge';
import _button from './_button';
import _card from './_card';
import _checkbox from './_checkbox';
import _divider from './_divider';
import _form from './_form';
import _grid from './_grid... |
// angular.module('PetAppUI').controller('DashboardCtrl', function($scope, $http, ServerUrl) {
// 'use strict';
// $http.get(ServerUrl + '/pets').success(function(response) {
// $scope.pets = response;
// });
// $http.get(ServerUrl).success(function(response) {
// $scope.user = respons... |
8.0-alpha2:05afa3be103ce818c2c649d9997834e7f60e1690224a6ae020c9eed474082abd
|
/*
* Lunchpad venue provider
*
* @author Markus Riegel <riegel.markius@googlemail.com>
*/
var db = require('./module.dbase.js').dBase,
cn = 'venue';
var VenueProvider = function(){
db.gc(cn, function(collection){
collection.ensureIndex('name',{unique:true},function(error,indexName){
if(error) console.l... |
var app = angular.module('todoApp', ['ngMaterial', 'ngResource', 'ngMdIcons']);
//var app = angular.module('todoApp', ['ngResource']);
app.factory('TodoService', function ($resource) {
return $resource('http://127.0.0.1:8080/todo/:id', {}, {
'update': {
method: 'PUT',
params: {
... |
"use strict";
// Project
const handler = require("./command");
const options = require("./options");
const validateIssueSource = require("./validateIssueSource");
module.exports = config => ({
builder: yargs => yargs
.check(validateIssueSource)
.example("$0 github issue-1")
.example("$0 github issue-2 -... |
EditException = Base.extend({
initialize: function(item, message, value) {
this.item = item;
this.message = message;
this.value = value;
}
});
|
import React from 'react'
import {storiesOf} from '@storybook/react'
import Board from '../src'
const data = require('./data/data-sort.json')
storiesOf('Basic Functions', module)
.add(
'Sorted Lane',
() => <Board data={data} laneSortFunction={(card1, card2) => new Date(card1.metadata.completedAt) - new Dat... |
(function() {
'use strict';
angular.module('Page')
.controller('MainController', ['$scope', '$mdSidenav', 'Page', 'Nav', function($scope, $mdSidenav, Page, Nav){
$scope.page = Page;
$scope.nav = Nav;
$scope.toggleSidenav = function(which) {
$mdSidenav(which).toggle();
};
$scope.select = functi... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
// Capture the proxied values as soon as possible in case there are
// multiple layers of instrumentation.
let proxied = {};
if (typeof window === "object" && typeof window.XMLHttpRequest !== "undefined") {
proxied = {
XMLHttpRequest : XMLHttpRequest,
open : XMLHttpRequest.prototype.open,... |
import { createSelector } from 'reselect';
import * as commons from './commons';
/**
* Select genres from state
*
* @alias module:Shows.getShowGenres
* @category selectors
*
* @example
* const mapStateToProps = (state, props) => ({
* show: BetaSeries.getSelector('shows', 'getShowGenres')(state);
* });
*
*... |
/* global createjs */
window.onload = function () {
// Global Values
var WIDTH = 1000;
var HEIGHT = 600;
// Components
var fallingObjects = require('./fallingObjects.js');
var movingTrump = require('./movingTrump.js');
// Canvas Settings
var canvas = document.getElementById('donaldtrump');
canvas.... |
export const blockContent = {
name: 'blockContent',
type: 'array',
title: 'Content',
of: [
{
title: 'Block',
type: 'block',
},
{
name: 'video',
title: 'A video embed',
type: 'videoEmbed',
},
{
type: 'code',
title: 'Code example',
description: '... |
// This is an active module of the Big Data Replacer addon
exports.main = function() {
var pageMod = require("sdk/page-mod");
var data = require("sdk/self").data;
pageMod.PageMod({
include: "*.facebook.com",
contentScriptFile: data.url('content-script.js')
});
};
|
define(function(require) {
'use strict';
/**
* Module dependencies
*/
var defineComponent = require('flight/lib/component');
var html = require('text!template/window/upload.html')
/**
* Module exports
*/
return defineComponent(upload);
/**
* Module function
... |
var lib = require('..');
before(function() {
this.lib = lib;
});
describe('express-mincer-spa', function() {
describe('scanDirectories', function() {
it('should return an array of strings', function () {
var results = this.lib.scanDirectories(__dirname, ['fixtures']);
results.s... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 6c-.55 0-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1-.45-1-1V7c0-.55-.45-1-1-1zm17-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 9h-8c-.55... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3... |
version https://git-lfs.github.com/spec/v1
oid sha256:82485384b55b1911def8a1ad920757692918ae738971f8d174b82eddb6fc63aa
size 3347
|
version https://git-lfs.github.com/spec/v1
oid sha256:e72776f2a833b5a16add76307d44436795771420eca9cdddd4aed7f0e69600ca
size 67598
|
version https://git-lfs.github.com/spec/v1
oid sha256:478b25f7a83c1eb2e721c6ac5e1db4d84dffd9723dfdbd0e2678ee49c3c7d725
size 33396
|
/**
* app.layout
*/
(function() {
angular
.module( "app" )
.component( "appHeader", {
templateUrl: "app/layout/appHeader.html",
controller: appHeaderController
});
appHeaderController.$inject = [ ];
function appHeaderController() {
var vm = this;
// Initial state.
vm.c... |
describe("Single H5P player", () => {
beforeEach(() => {
cy.visit("test/single.html");
});
it("should display h5p", () => {
cy.iframe("iframe.h5p-iframe.h5p-initialized")
.should("be.visible")
.within(() => {
cy.get(".h5p-true-false-answers .h5p-true-false-answer")
.contains... |
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
define(function () {
/**
... |
/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
(function(){
// monkeypatch unsupported addListener/removeListener with polling
if( !window.matchMedia( "" ).addListener ){
var oldMM = window.matchMedia;
window.matchMedia = ... |
// @flow
import React, { Component } from 'react';
import momentPropTypes from 'react-moment-proptypes';
import moment from '../../../utils/moment/moment';
import css from './CalendarMonth.css';
import CalendarItem from '../CalendarItem/CalendarItem';
import { generateNumberFilledArray } from '../../../utils/array/arr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.