code
stringlengths
2
1.05M
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('personas');
'use strict'; var namespace = 'main'; var angular = require('angular'); var app = angular.module(namespace, [ // inject:modules start require('./layouts')(namespace).name // inject:modules end ]); var runDeps = []; var run = function() { }; run.$inject = runDeps; app.run(run); module.exports = app;
/* globals createPatchedLoad, normalizePath */ describe('adapter requirejs', function () { var load var originalLoadSpy var karma beforeEach(function () { spyOn(console, 'error') karma = { files: { '/base/some/file.js': '12345' }, config: {} } originalLoadSpy = jasmine...
"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 = ...
'use strict'; angular.module('module.core').filter('inDuration', function () { function isNumeric(str) { return !isNaN(str); } function pad(num) { if (isNumeric(num)) { num = parseInt(num); if (num < 10) { num = "0" + num; } } ...
import { Dispatcher } from 'flux' const instance = new Dispatcher() export default instance export const dispatch = instance.dispatch.bind(instance)
const Yoga = require('../src/dist/entry-browser'); describe('Absloute position', () => { test('absolute layout width height start to', () => { const root = Yoga.Node.create(); root.setWidth(100); root.setHeight(100); const child = Yoga.Node.create(); child.setPositionType(Yoga.POSITION_TYPE_AB...
import React from 'react' import styled from 'styled-components' const Row = styled.div` display: flex; flex-direction: row; border-bottom: 1px solid #ccc; padding-bottom: 2.5em; margin-bottom: 3em; ` const Left = styled.div` width: 66%; ` const Right = styled.div` display: flex; flex-direction: column...
import styled from 'styled-components'; import {Link} from 'react-router' const StyledLink = styled(Link)` text-decoration: none; color: #666; font-size:1.2em; margin-left:0.5em; margin-right:0.5em; @media all and (max-width: 800px) { text-align: center; padding: 10px; } `...
import React from 'react' import { LinkContainer } from 'react-router-bootstrap' import {Button} from 'react-bootstrap' export default class AboutPage extends React.Component { render() { return ( <div className="container"> <img className="img-responsive pull-right" alt="Joachi...
import '../components/common/Header.jsx'; import '../components/common/Layout.jsx'; import '../components/pics/PicsDetails.jsx'; import '../components/pics/PicsEditForm.jsx'; import '../components/pics/PicsHome.jsx'; import '../components/pics/PicsItem.jsx'; import '../components/pics/PicsList.jsx'; import '../compone...
import {delay} from './delay' import {ifElseAsync} from './ifElseAsync' test('arity of 1 - condition is async', async () => { const condition = async x => { await delay(100) return x > 4 } const whenTrue = x => x + 1 const whenFalse = x => x + 10 const fn = ifElseAsync(condition, whenTrue, whenFalse...
export default function factory($) { return function task(done) { return $.git.push('origin', null, { args: '--tags' }, (err) => { done(err); }); }; }
// Built-in modifiers import CountModifiers from './CountModifier'; import GenderModifier from './GenderModifier'; import IfModifier from './IfModifier'; import PluralModifier from './PluralModifier'; import DateModifier from './DateModifier'; import DateTimeModifier from './DateTimeModifier'; import TimeModifier from ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generateDocs = void 0; const fs_1 = require("fs"); const path = require("path"); const markdown_pipeline_1 = require("markdown-pipeline"); const DeclarationFileParser_1 = require("./DeclarationFileParser"); const MiscContent_1 = requir...
'use strict'; /** * test whether the given variable is a plain object * @param {Object} obj - variable to be checked * @returns {Boolean} */ function isPlainObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]' && Object.getPrototypeOf(obj) === Object.prototype; } module....
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.0.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requi...
(() => { 'use strict'; angular .module('app') .controller('ApproveUserUpdateModalController', ApproveUserUpdateModalController); function ApproveUserUpdateModalController (originalUser, modifiedUser, NotificationService, $uibModalInstance, UserFactory, PublicInfoFactory, $routeSegment, Ra...
'use strict'; angular.module('stavkaPopisa',[]) .controller('stavkaPopisaNewCtrl', function ($scope, $modal, $modalInstance) { $scope.sacuvaj = function() { $modalInstance.close({'selectedStavka':$scope.selectedStavka, 'action':'save'}); } $scope.zatvaranje = function() { $modalInstance.dismiss(...
var Piece = require('./Piece'); function Flag () { super('Flag', -1); } Flag.prototype = Piece; Flag.prototype.constructor = Flag; module.exports = Flag;
module.exports = function exports() { 'use strict'; return { p1k1: {a: 1, b: 'overwritten'}, p1k3: {e: 5, f: 6}, p1k4: {g: 7, h: 8} }; };
export default class AutoCompleteSubjects { initialize() { $( function() { $('#mandatory-autocomplete-input').materialize_autocomplete({ multiple: { enable: false }, dropdown: { el: '#singleDropdownMandatory...
import useAllMarkdownRemark from './use-allmarkdown' const useSortedMarkdown = () => { let pages = useAllMarkdownRemark() let sortedByCategory = {} pages.forEach(page => { let { category } = page.node.frontmatter // If we find a first instance, create a new array for the category if (!sortedByCate...
'use strict'; var config = require('./config'); var controllers = require('./controllers'); var logger = require('./logger'); const apiEndpoints = [ // Authentication { method: 'POST', path: '/register', config: controllers.authentication.register }, { method: 'POST', path: '/login', config: controllers.a...
describe("Ext.layout.container.VBox", function(){ var ct, c, makeCt; afterEach(function(){ Ext.destroy(ct, c); ct = c = makeCt = null; }); describe("defaults", function(){ var counter = 0, proto = Ext.layout.container.VBox.prototype; beforeE...
const mongoose = require('mongoose'); let articleShema = mongoose.Schema({ title: {type: String, required: true}, content: {type: String, required: true}, author: {type: mongoose.Schema.Types.ObjectId, required: true, ref: 'User'}, date: {type: Date, default: Date.now()} }); const Article = mongoose.m...
'use strict' var api = require('../api/pressure') var def = require('../definition/pressure/kilonewton-per-square-meter') var unit = 'kilonewton-per-square-meter' api.augment(unit, def) module.exports = api.get(unit)
var path = require('path'); var pkg = require('./package.json'); var fs = require('fs'); var browserify = require('browserify'); var boot = require('loopback-boot'); module.exports = function buildBrowserBundle(env, callback) { var b = browserify({ basedir: __dirname }); b.require('./' + pkg.main, { expose: 'lbcli...
"use strict"; const _ = require('lodash'), co = require('co'), path = require('path'), moment = require('moment'), Q = require('bluebird'); const test = require(path.join(process.cwd(), 'test', '_base'))(module); const waigo = global.waigo; test['action tokens'] = { beforeEach: function*() { this.cr...
import React from 'react' import { Message } from 'semantic-ui-react' const MessageErrorExample = () => ( <Message error header='There was some errors with your submission' list={[ 'You must include both a upper and lower case letters in your password.', 'You need to select your home country....
/** Created by hhj on 3/22/16. */ /* eslint-disable no-unused-expressions */ import { expect } from 'chai' import myErrorHandler from '../myErrorHandler' describe('lib myErrorHandler', () => { it('should handle string error', () => { expect(myErrorHandler('test error message')).to.be.undefined }) it('shoul...
(function () { 'use strict'; const filesToCache = [ '.', 'style/app.css', 'index.html', 'favicon.ico', 'pages/404.html', 'pages/offline.html', 'style/font/HmnHiRzvcnQr8CjBje6GQvesZW2xOQ-xsNqO47m55DA.woff2', 'images/touch/icon-192x192.png' ]; const staticCacheName = 'pages-cache-v1'; const notToCa...
export default { data: { questionnaire: { id: "1", title: "Test", description: "", surveyId: "", theme: "default", legalBasis: "StatisticsOfTradeAct", navigation: false, summary: false, __typename: "Questionnaire", sections: [ { id: "1"...
import { getNodeScope } from '../../node' test('Returns node for valid elements', () => { const o = document.createElement('div') expect(getNodeScope(o)).toBe(o) expect(getNodeScope(document)).toBe(document) }) test('Returns document for invalid arguments', () => { expect(getNodeScope()).toBe(document) exp...
/* 服务端应该导入本模块。用于索引当前系统中的页面components key为ejs模板的文件名 value为components模块 TODO: 使用bash扫描component文件夹直接生成本文件 */ import React, { PropTypes } from 'react' import { Home } from '../home.jsx' import { Shot } from '../shot.jsx' import { Sample } from '../sample.jsx' import { Pringles } from '../pringles.jsx' import { Suite } ...
import { defaultDispatch, dispatchToAPI } from './common'; import { USERS } from '../reducers/index'; const defaultDispatchUsers = (payload, reducer) => defaultDispatch(USERS, payload, reducer); /* Action creators */ const usersRequested = () => defaultDispatchUsers({ isFetching: true, error: null }); ...
// @flow import React, { Component } from 'react'; import { Button, Classes } from '@blueprintjs/core'; import DocumentTitle from 'react-document-title'; import Login from 'components/Login'; import './Welcome.scss'; type PropsType = { isInstalled: boolean, isOutdated: boolean, handleConnect: () => void, } e...
var WinReg = require('winreg'); var startOnBoot = { enableAutoStart: function(name, file, callback){ var key = getKey(); key.set(name, WinReg.REG_SZ, file, callback || noop); }, disableAutoStart: function(name, callback){ var key = getKey(); key.remove(name, callback || noop...
angular.module('LocalChat') .factory('Location', function(Auth, Socket) { var L = {}; L.locationSet = false; L.currentLocation = 'Unknown Location'; var settingLocation = false; L.setLocation = function () { if (settingLocation) return; setting...
 // Configure some input fields with the boostrap datepicker $(function () { $("#DateReleased").datepicker(); $("#DateRetired").datepicker(); });
var hash = exports; hash.utils = require('./hash/utils'); hash.common = require('./hash/common'); hash.sha = require('./hash/sha'); hash.ripemd = require('./hash/ripemd'); hash.hmac = require('./hash/hmac'); // Proxy hash functions to the main object hash.sha1 = hash.sha.sha1; hash.sha256 = hash.sha.sha256; hash.sha224...
const pretty = require('pretty-time'); const timeManager = { start() { const start = process.hrtime(); return { stop() { const diff = process.hrtime(start); const theDiff = diff[0] * 1e9 + diff[1]; return { diff: theDiff, diffFormatted: pretty(theDiff, 'ms')...
/* Copyright 2013-2015 ASIAL 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 agreed to in wr...
/** * Created by mankind on 10/02/15. */ var mongoose = require("mongoose"); var Schema = mongoose.Schema; // Define schema for Comments var CommentSchema = new Schema({ text : String, article : { type : String, ref : "Article" }, author: { type : String...
angular.module('jwt-prototype') .controller('dashboard', function ($scope, $location) { $scope.user = JSON.parse(localStorage.getItem('user')) if(!$scope.user) { $location.path('/') } console.log("User from dashboard: ", $scope.user); $scope.name = $scope.user.username })
import Ember from 'ember'; import { module, test } from 'qunit'; import Pretender from 'pretender'; import startApp from 'dummy/tests/helpers/start-app'; var application; var store; var server; var posts = [ { id: 1, post_title: 'post title 1', body: 'post body 1', comments: [] }, { id: ...
var tape = require('tape') var G = require('../') tape('get', function (t) { var g = G.random(10, 30) // G.each(g, function (key, node) { // t.equal(node, G.get(g, key)) // }) // G.eachEdge(g, function (src, dst, v) { console.log(src, dst) t.equal(G.get(g, src, dst), v) }) t.end() }) //RAN...
var chai = require("chai"); var _ = require("underscore"); _.mixin(require('../src/underscore.catenate')); describe("underscore.catenate", function() { it("should catenate methods", function() { var value = ""; var fooBar = _.catenate(function() { return value += "foo"; }, function() { retur...
const create = require("lodash/create") const { observable } = require("kobs") module.exports = (makePromise, cmp) => ctx => { const makeCtxPromise = makePromise(ctx) const promiseObs = observable({ status: "idle" }) const trigger = () => { promiseObs({ status: "waiting", }) return makeCtxProm...
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ express: { app: { options: { script: 'server.js' } } }, bower: { install: { options: { targetDi...
import React from 'react'; import Home from './home/home'; import ProjectList from './project_list/project_list'; import Contact from './contact/contact'; import Landing from './landing/landing'; import PortfolioFooter from './../footer/footer'; export default React.createClass({ render() { return ( <sec...
/** Copyright (c) <2015> <copyright Martin Agents, David Chong, Aaron Giroux, Geoffrey Scofield, Daniel Sullivan, > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
(function() { 'use strict'; angular .module('assessoriaTorrellesApp') .factory('Photo', Photo); Photo.$inject = ['$resource', 'DateUtils']; function Photo ($resource, DateUtils) { var resourceUrl = 'api/photos/:id'; return $resource(resourceUrl, {}, { 'que...
/** * ======================================================================================================= * * Seezoo page_list Controller * * @package Seezoo Core * @author Yoshiaki Sugimoto <neo.yoshiaki.sugimoto@gmail.com> * * ===============================================================================...
module.exports = require('async')(function *(resolve, reject, module, processor, config) { "use strict"; let Finder = require('finder'); let error = require('./error.js')(module); if (typeof config === 'string') { config = {'files': [config]}; } if (config instanceof Array) { c...
gulp.task(mts('images'), function () { return gulp.src([ // Returns 'src/**/*.gif' and so on.... build.src('/**/*.gif'), build.src('/**/*.ico'), build.src('/**/*.jpg'), build.src('/**/*.png') ]) .pipe(gulpif(gzipOn, gzip(gzipOpt))) .pipe(gulp.dest(build.destLocale())); });
define('util', function () { var _formatJson_cache = {}; /** * [object2param 转换对象为url参数] * @param {[type]} o [要转换的对象] * @param {[type]} [transVal] [值编码函数] * @return {[type]} [description] */ function object2param(o, transVal) { var r = [], transVal = transVal...
/* Copyright 2014, KISSY v5.0.0 MIT Licensed build time: Aug 26 16:05 */ /* combined modules: component/plugin/drag */ KISSY.add('component/plugin/drag', ['dd'], function (S, require, exports, module) { /** * @ignore * drag plugin for kissy component * @author yiminghe@gmail.com */ var DD = require('dd'); ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > The production QuantifierPrefix :: { DecimalDigits , DecimalDigits } evaluates as ... es5id: 15.10.2.7_A1_T10 description: Execute /b{0,93}c/.exec("aaabbbbcccddeeeef...
'use strict'; const fs = require('fs'); const path = require("path"); const Sequelize = require('sequelize'); const env = process.env.NODE_ENV || 'development'; const config = require(__dirname + '/../config/config.json')[env]; const db = {}; const sequelize = new Sequelize(config.database,...
/** Digg data collection @class DiggCollection @constructor @return {Object} instantiated DiggCollection **/ define(['jquery', 'backbone', 'DiggModel'], function ($, Backbone, DiggModel) { var DiggCollection = Backbone.Collection.extend({ /** Constructor @method initialize ...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var CircumferencePoint = require('./CircumferencePoint'); var FromPercent = require('../../math/FromPercent'); var MAT...
import _ from 'lodash'; function getPersistedValue() { return _.get(global, 'localStorage.hideIntro', false); } function setPersistedValue(value) { if(!global.localStorage) return; if(!value) { delete global.localStorage.hideIntro; } else { global.localStorage.hideIntro = value; } } export funct...
/** * Враппер для потомков и врапперов {@link croc.ui.form.field.AbstractTextField} */ croc.Mixin.define('croc.ui.form.field.MAbstractTextFieldWrapper', { options: { /** * Добавить ячейки в конец поля * @type {string|Array.<string>|croc.ui.Widget|Array.<Widget>} */ cells...
var mongoose, Song; mongoose = require('mongoose'); Song = mongoose.model('song'); //GET - Return all songs in the DB exports.findAllSongs = function( req, res ) { Song.find(function( err, songs ) { if ( err ) { res.send( 500, err.message ); } console.log('GET /songs') res.status( 200 ...
import './flow-logic/index';
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {authActions} from 'modules/auth'; import {Link} from 'react-router-dom'; import inject from 'react-jss'; import {FlexBox, FlexItem} from 'components/Flex'; import Input from 'components/Input'; import Button from 'components/Button'; i...
'use strict'; const baAsn1 = require('../asn1'); module.exports.encode = (buffer, errorClass, errorCode) => { baAsn1.encodeApplicationEnumerated(buffer, errorClass); baAsn1.encodeApplicationEnumerated(buffer, errorCode); }; module.exports.decode = (buffer, offset) => { const orgOffset = offset; let result; ...
/* ========================================================== * gulpfile.js * List of Gulp.js task to build and run the project * * Author: Yann Gouffon, yann@antistatique.net * Date: 2014-04-29 17:53:14 * * Copyright 2014 Federal Chancellery of Switzerland * Licensed under MIT * * Last Modified by: Toni ...
'use strict'; var GerritEventEmitter = require('../lib/gerrit-event-emitter').GerritEventEmitter, EventEmitter2 = require('eventemitter2').EventEmitter2, sinon = require('sinon'), chai = require('chai'), expect = chai.expect; describe('GerritEventEmitter', function() { beforeEach(function() { th...
import e from"./input-c965e08d.js";import{n as s}from"./number-93d0ff7a.js";import{v as t,i}from"./index-fe8be053.js";export default class extends e{init(){this.props.value=e=>{null==e?this.setValue(null):this.setValue(t(e,0),!0)},this.props.min=e=>t(e,Number.MIN_SAFE_INTEGER),this.props.max=e=>t(e,Number.MAX_SAFE_INTE...
(function() { 'use strict'; angular.module('ss.bootstrap-component', [ 'angularMoment', 'ngLodash' ]); })();
Template.afEachArrayItem.helpers({ innerContext: function afEachArrayItemContext(options) { var c = Utility.normalizeContext(options.hash, "afEachArrayItem"); var formId = c.af.formId; var name = c.atts.name; var docCount = fd.getDocCountForField(formId, name); if (docCount == null) { docCo...
var AssetView = require('./AssetView'); var AssetImageView = require('./AssetImageView'); var FileUploader = require('./FileUploader'); module.exports = Backbone.View.extend({ events: { submit: 'handleSubmit', }, template(view) { const pfx = view.pfx; const ppfx = view.ppfx; return ` <div c...
var debug = false; var tabs = {}; function toggle(tab){ if(!tabs[tab.id]) addTab(tab); else deactivateTab(tab.id); } function addTab(tab){ tabs[tab.id] = Object.create(dimensions); tabs[tab.id].activate(tab); } function deactivateTab(id){ tabs[id].deactivate(); } function removeTab(id){ for(var ...
import { fromJS } from 'immutable'; import { selectSearch, selectLoading, selectError, selectMovieEntities, selectMovieResults } from 'containers/SearchPage/selectors'; describe('SearchPage/selectors', () => { describe('selectSearch', () => { const searchSelector = selectSearch(); it('should selec...
const TSLintWebpackPlugin = require('./src/plugin'); module.exports = TSLintWebpackPlugin;
"use strict"; const ccxt = require ('../../ccxt.js') const countries = require ('../../countries.js') const asTable = require ('as-table') const util = require ('util') const log = require ('ololog').configure ({ locate: false }) require ('ansicolor').nice; process.on ('uncaughtException', e => { ...
$(document).ready(function () { //get Parameter from url function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.0-master-bc4100a */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.progressLinear * @description Linear Progress module! */ angular.module('material.components.pro...
import { getByCypressTag } from "../../../utils"; class Dashboard { answersOpen = "dashboard--fullAnswers--1-gA5Yaq"; //Sort, Help, and Open/Close Students getSortDropdown() { return getByCypressTag("sortDropdown"); } getHelpPanel() { return getByCypressTag("helpPanel"); } ...
const Easypost = require('@easypost/api'); const api = new Easypost(process.env.API_KEY); const webhook = new api.Webhook({ url: 'https://example.com`' }); webhook.save().then(console.log);
(function() { RebelChat.Views.CallsignView = Falcon.View.extend({ url: 'callsign.html', observables: { 'callsign': null, 'errorMessage': null }, submit: function() { var callsign = this.callsign(); if (callsign && callsign.length > 0) { RebelChat.User.callsign = callsign this.trigger('calls...
export default function layout() { var cat = this; /* Layout primary sections */ cat.controls.wrap = cat.wrap .append('div') .classed('cat-controls section', true) .classed('hidden', !cat.config.showControls); cat.chartWrap = cat.wrap.append('div').classed('cat-chart section', t...
'use strict'; var axe = require('axe-logger'); var JUNK_FOLDER_TYPE = 'Junk'; var ActionBarCtrl = function($scope, $q, email, dialog, status) { axe.debug('action-bar.js 6'); // // scope functions // $scope.CHECKNONE = 0; $scope.CHECKALL = 1; $scope.CHECKUNREAD = 2; $scope.CHECKREAD ...
/** * Created by yangyxu on 7/14/15. */ zn.define([ 'node:fs', 'node:path' ], function (fs, path) { return zn.Class({ properties: { env: null, argv: null }, methods: { init: function (argv){ this._argv = argv; thi...
'use strict'; // Setting up route angular.module('resource-project').config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) { $stateProvider. state('resource-project-list', { url: '/resource/project', templateUrl: 'modules/resource-project/views/list.project.view.cli...
/* * GET home page. */ exports.view = function(req, res){ res.render('history'); };
import React from 'react'; import Icon from '../Icon'; export default class DeveloperBoardIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M44 18v-4h-4v-4c0-2.2-1.8-4-4-4H8c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h28c2.2 0 4-1.8 4-4v-4h4v-4h-4...
angular.module('GeneralShapeModule', ["MathModule", "ZomeDefinitionModule"]) .controller('GeneralShapeController', ["zomeDefinitionService", "mathService", function(zomeDef, mathService) { this.bezierPoints = zomeDef().bezierPoints; this.bezierGraph = zomeDef().bezierGraph; mathService().buildBezierGra...
var Contact = function() { // this.username = element(by.model('username')); // this.password = element(by.model('password')); // this.button = element(by.id('login_btn')); }; module.exports = Contact;
'use strict'; const problem48 = require('./problem-0048'); describe('selfPowers', () => { it('calculates self powers for known input', () => { expect(problem48.selfPowers(10, 10)).toBe(405071317); }); });
// TODO: clean this up to be DRY function fetchMessages (threadId, users, callback) { var token = FB.getAccessToken(); var messages = [] || messages; FB.api('/' + threadId, { access_token: token }, function(response) { messages = messages.concat(response.comments.data); // get subsequent pages if(res...
/* global describe, expect, it, jest */ import Leaflet from 'leaflet' import React, { Component } from 'react' import { renderIntoDocument } from 'react-addons-test-utils' import MapComponent from '../src/MapComponent' describe('MapComponent', () => { class TestComponent extends MapComponent { componentWillMou...
const $e0_attrs$ = ["myRef"]; const $e1_attrs$ = ["myRef1", "myRef2", "myRef3"]; // ... ViewQueryComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ // ... viewQuery: function ViewQueryComponent_Query(rf, ctx) { if (rf & 1) { $r3$.ɵɵviewQuery($e0_attrs$, 1); $r3$.ɵɵviewQuery($e1_attrs$, 1); ...
// To use it create some files under `mocks/` // e.g. `server/mocks/ember-hamsters.js` // // module.exports = function(app) { // app.get('/ember-hamsters', function(req, res) { // res.send('hello'); // }); // }; module.exports = function(app) { require('coffee-script/register'); var globSync = require('...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * Button renderer. * @namespace */ v...
var GameboyJS; (function (GameboyJS) { "use strict"; // The Input management system // // The pressKey() and releaseKey() functions should be called by a device class // like GameboyJS.Keyboard after a physical button trigger event // // They rely on the name of the original buttons as parameters (see Input.keys) var ...
import React, {PropTypes} from 'react'; import { Modal } from 'antd'; export default class FullScreenDialog extends React.Component { constructor(props) { super(props); this.state = { showModal:false }; } setModal1Visible(isShow){ this.setState({ sh...
"use strict"; const _ = require('lodash'); function astProgram(body, strict = true) { return { "type": "Program", "body": strict ? [astExpression(astValue('use strict'))].concat(body) : body, "sourceType": "script" }; } function astRequire(varName, requirePath) { return { ...