code
stringlengths
2
1.05M
/* eslint-env mocha */ const path = require('path'); const should = require('should'); const { openDb, closeDb } = require('../../lib/db'); const gtfs = require('../..'); const config = { agencies: [{ agency_key: 'caltrain', path: path.join(__dirname, '../fixture/caltrain_20160406.zip') }], verbose: fa...
(function($) { var UserInputView = Backbone.View.extend({ el : '#UserInput', initialize : function() { this.helloListView = new HelloListView(); }, events : { 'click button' : 'addToHelloCollection' }, addToHelloCollection : function(...
// This file defines an API that would be nice, but it's not required // Initialize the editor var editor = new Editor(""); // Activate/deactivate the editor editor.active(true || false); // Set a new action editor.add("", { shortcut: {} || "" || false, // The key for Ctrl+key or { key: "esc" } menu: {} || ...
var quizQuistions = { name:"Super Hero Name Quiz", description:"How many super heroes can you name?", headline:"What is the real name of ", mainquestionList: [ { "questionName": "Superman", "answer": "Clarke" }, { "questionName": "Batman", "answer": "Bruce" }, { ...
#!/usr/bin/env node /** * @file stream.js * * Custom object to inherit from EventEmitter, with the help of `util' * */ var events = require('events'); function Stream() { events.EventEmitter.call(this); } util.inherits(Stream, events,EventEmitter);
/** * Created by admin on 14.09.2015. */ var gulp = require('gulp'); var less = require('gulp-less'); var csso = require('gulp-csso'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var imagemin = require('gulp-imagemin'); var sourcemaps = require('gulp-sourcemaps'); var ngAnnotate = requir...
import marked from 'marked'; import { isAbsolutePath, getPath, getParentPath } from '../router/util'; import { isFn, merge, cached, isPrimitive } from '../util/core'; import { tree as treeTpl } from './tpl'; import { genTree } from './gen-tree'; import { slugify } from './slugify'; import { emojify } from './emojify'; ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
/*** @jsx React.DOM */ var React = require('react'); var JigsawStore = require('../stores/JigsawStore'); var JigsawActions = require('../actions/JigsawActions'); /** * A button to update the random number generator seed. * @type {*|Function} */ var Randomizer = React.createClass({ getInitialState: function() { ...
lychee.define('fertilizer.Main').requires([ 'lychee.Input', 'lychee.data.JSON', 'fertilizer.data.Filesystem', 'fertilizer.data.Shell', 'fertilizer.template.html.Application', 'fertilizer.template.html.Library', 'fertilizer.template.html-nwjs.Application', 'fertilizer.template.html-nwjs.Library', 'fertilizer.t...
(function () { 'use strict'; angular .module('templateApp') .controller('Page2Detail', Page2Detail); Page2Detail.$inject = ['$routeParams', '$firebaseObject', 'FIREBASE_URL']; /* @ngInject */ function Page2Detail($routeParams, $firebaseObject, FIREBASE_URL) { /* jshint val...
import Discover from 'node-discover'; import EventEmitter from 'events'; export default class Discovery extends EventEmitter { constructor(channel = 'handover') { super(); this.channel = channel; this.d = Discover(); this.d.join(this.channel, this.handleReceive.bind(this)); } stop() { this.d...
/** * keta 1.11.0 * Build 2021-04-21T15:24:16.331Z * * Copyright Kiwigrid GmbH 2014-2021 * http://kiwigrid.github.io/keta/ * * Licensed under MIT License * https://raw.githubusercontent.com/kiwigrid/keta/master/LICENSE */ "use strict";angular.module("keta.services.TagSet",["keta.services.Tag"]).provider("ketaT...
import {NotFound} from '.' import {shallowRender} from '../../utils/testUtils' import {expect} from 'chai' import {findWithType, findAllWithType} from 'react-shallow-testutils' describe('frontend not found view', () => { it('renders not found', () => { const component = shallowRender(NotFound, { className...
/* Requirements */ var express = require('express'); var app = express() , server = require('http').createServer(app) , io = require('socket.io').listen(server) , mongoose = require('mongoose'); /* Initialization */ server.listen(3333); mongoose.connect('mongodb://localhost/test'); /* Global variable setup */ v...
/*Problem 8. Number as words Write a script that converts a number in the range [0…999] to words, corresponding to its English pronunciation.*/ String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); }; var numbers = [0, 9, 10, 12, 19, 25, 98, 98, 273, 400, 501, 617, 711,...
class UserInput { constructor(game) { this.game = game; this.keyCodeMapper = { 37: 'left', 38: 'up', 39: 'right', 40: 'down' }; } getUserInput(){ window.addEventListener("keydown", this.sendUserInput.bind(this)); } sendUserInput(event) { var input = this.keyCodeMa...
import { describe, it } from 'mocha'; import Immutable from 'immutable'; import deepFreeze from 'deep-freeze'; import { createStore } from 'redux'; import { createReducerTest, executeCbs } from './helpers'; import { defaultState as objDefaultState, actions as objActions } from './objectState/index'; import { defaultSta...
import Washi from '../washi' describe('Chain', function() { it('can chain objects', function() { var obj = {} var mock = jest.fn() Washi.$.chain(obj).tap(mock) expect(mock.mock.calls[0][0]).toEqual(obj) }) it('can chain arrays', function() { var arr = [1] var result = Washi.$ .c...
/* * Kendo UI Complete v2013.2.918 (http://kendoui.com) * Copyright 2013 Telerik AD. All rights reserved. * * Kendo UI Complete commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx * If you do not own a commercial license, this file shall be gover...
import { StyleSheet } from 'react-native'; import { PRIMARY_COLOR, COLOR_WHITE } from '../../styles/colors'; const styles = StyleSheet.create({ toolbar: { height: 56, backgroundColor: PRIMARY_COLOR }, container: { flex: 1, backgroundColor: PRIMARY_COLOR, }, contentCo...
import { connect } from 'react-redux'; import Head from '../components/Head'; function mapStateToProps(state) { return { title: state.db.title, ...state.theme } } export default connect(mapStateToProps)(Head);
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; var React; var ReactDOM; var ReactDOMComponentTree; var ReactTestUtils; var SelectEventPlugin; ...
function output(x) { document.getElementById("output").innerHTML += x + "\n"; } function main () { try { do_tests(); } catch (e) { alert(JSON.stringify(e)); } } var hex_digit_value = { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "a": 10, "A": 10, "b": 11,...
(function () { 'use strict'; angular .module('certificates.admin') .controller('CertificatesAdminListController', CertificatesAdminListController); CertificatesAdminListController.$inject = ['CertificateService']; function CertificatesAdminListController(CertificatesService) { var vm = this; ...
/******************************* * 名称:详情 * 作者:rubbish.boy@163.com ******************************* */ //获取应用实例 var app = getApp() var config={ //页面的初始数据 data: { title : '名片介绍', userInfo : {}, session_id :'', requestlock :true, domainName ...
v = JSONSchema({ k1: { type: String }, k2: { type: Number }, k3: { type: Boolean }, k4: [{ x: { type: Number }, y: { type: String } }], k5: { type: Date }, k6: { x: { t...
import color from 'color'; import { Platform } from 'react-native'; /* This is an example of a theme */ export default { // Badge badgeBg: '#ED1727', badgeColor: '#fff', // Button btnFontFamily: (Platform.OS === 'ios') ? 'HelveticaNeue' : 'Roboto_medium', btnDisabledBg: '#b5b5b5', btnDisabledClr: '...
'use strict'; var _ = require('lodash'); var request = require('request'); var VERSION = require('../package.json').version; var REST_BASE_URL = 'https://api.spike.cc/v1/'; /** * SpikeAPI */ function SpikeAPI(options) { this.options = _.assign({ secretKey: '', publishableKey: '' }, options); this.requ...
var translattionTable = { "search": "Buscar", "emptyTable": "", "decimal": "", "info": "Mostrando _START_ a _END_ de _TOTAL_ entradas", "infoEmpty": "", "infoFiltered": "(filtradas de _MAX_ entradas)", "infoPostFix": "", "thousands": ",", "lengthMenu": "Mostrar _MENU_", "loading...
'use strict'; const { expect } = require('chai'); const _ = require('lodash'); const sinon = require('sinon'); const run = require('../../../src/lib/run'); describe('Command runner library', () => { describe('run method', () => { const data = [ { name: 'first', words: ['foo', 'bar'], ...
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); function isOnlyChange(event) { return event.type === 'changed'; } module.exports = function(options) { var watch = function(srcDir, watchOptions) { return function() { if (!watchOptions) { watchOptions = {}; ...
Object.size = function(obj) { var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; var UIEle = Class.$extend({ __classvars__ : { UI_ELEMENT_TABLE : [], UI_POPUP_TABLE : [], UI_OPEN_POPUP : undefined }, __init__ : f...
app.controller('gregorianToJalaliCrtl', function($scope,dateConvertor) { /** * validate date * @returns {undefined} */ $scope.allValidation = function () { $scope.validateGregorianYear(); $scope.validateGregorianMonth(); $scope.validateGregorianDay(); } /** *...
import ProjectLibraryModel from './project-library.model'; let libraries = { angular: new ProjectLibraryModel(1, 'Angular', require('../../../../images/logos/angular.svg')), angularJS: new ProjectLibraryModel(2, 'AngularJS', require('../../../../images/logos/angularjs.png')), jQuery: new ProjectLibrar...
// flow-typed signature: e9b84c500ccc61d64c1ca78e43399035 // flow-typed version: <<STUB>>/gatsby-link_v^1.6.35/flow_v0.68.0 /** * This is an autogenerated libdef stub for: * * 'gatsby-link' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with t...
/// <reference path="../jquery-1.7.1-vsdoc.js" /> var Audio = { //-- Functions Initialize: function () { Audio.player = $('audio').get(0); $('#Audio_PlayButton').on('click', Audio.Handlers.Button.Play); $('audio').on('ended', Audio.Handlers.Events.Ended); $('audio').on('pause...
"use strict"; const {XMLParser, XMLBuilder, XMLValidator} = require("../src/fxp"); const he = require("he"); describe("XMLParser", function() { it("should parse attributes with valid names", function() { const xmlData = `<issue _ent-ity.23="Mjg2MzY2OTkyNA==" state="partial" version="1"></issue>`; ...
import express from 'express'; import helpers from '../helpers'; import controller from '../controllers/voteController'; const router = express.Router(); router.get('/', helpers.isAuth, controller.initialize, controller.canVoteUT100, (req, res) => { res.locals.moduleTitle = 'Votar'; res.locals.module = ()...
var dbm = global.dbm || require('db-migrate'); var type = dbm.dataType; var fs = require('fs'); var path = require('path'); exports.up = function(db, callback) { var filePath = path.join(__dirname + '/sqls/20160708081226-readme-in-versions-up.sql'); fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ ...
'use strict'; var Primus = require('primus') , emitter = require('../') , http = require('http').Server , expect = require('expect.js') , opts = { transformer: 'websockets' } , primus , srv; // creates the client function client(srv, primus, port){ var addr = srv.address(); var url = 'http://' + addr....
import React from 'react'; import styled from 'styled-components'; const Emoji = ({ className, svg }) => ( <span className={className} dangerouslySetInnerHTML={{ __html: svg }} /> ); const StyledEmoji = styled(Emoji)` display: inline-block; width: 1.5em; `; export default StyledEmoji;
var opener = require("opener"); module.exports = { run : function (){ opener(packageJson.docs); } }
import _curry3 from './internal/_curry3'; /** * `o` is a curried composition function that returns a unary function. * Like [`compose`](#compose), `o` performs right-to-left function composition. * Unlike [`compose`](#compose), the rightmost function passed to `o` will be * invoked with only one argument. Also, u...
/* *-------------------------------------------------------------------- * jQuery-Plugin "lookupreferer -config.js-" * Version: 3.0 * Copyright (c) 2018 TIS * * Released under the MIT License. * http://tis2010.jp/license.txt * ------------------------------------------------------------------- */ jQuery.noCon...
// calculate the area of a circle based on its radius function calcCircleArea(r) { var area = Math.PI * Math.pow(r, 2); // area is pi times radius squared return area; } console.log(calcCircleArea(35))
/*jslint node: true */ 'use strict'; var dotenv = require ( 'dotenv' ).config(), Promise = require ( 'bluebird' ), _ = require ( 'lodash' ), sprintf = require ( 'sprintf' ), mysql = require ( 'mysql' ), chalk = require ( 'chalk' ); // ////////////////////////////////////////...
import uiRouter from 'angular-ui-router'; import ngRoute from 'angular-route'; import ContactController from './contact.controller'; import ContactResourceService from './contact-resource.service'; import ConfirmClick from '../directives/confirm-click'; export default angular.module('Contact', [ uiRouter, ng...
var common = require('../common'); var assert = common.assert; var SandboxedModule = require(common.dir.lib + '/sandboxed_module'); (function testRequire() { var foo = SandboxedModule.load('../fixture/foo').exports; assert.strictEqual(foo.foo, 'foo'); assert.strictEqual(foo.bar, 'bar'); })();
'use strict'; /* global describe it */ // core modules var assert = require('assert'); // local modules var makeValueFullResult = require('../../lib/consumers/makeValueFullResult.js'); var single = require('../../lib/consumers/single.js'); var Stream = require('../../lib/streams/stream.js'); describe('makeValueFull...
import traverse from "../../../traversal"; import object from "../../../helpers/object"; import * as util from "../../../util"; import * as t from "../../../types"; import values from "lodash/object/values"; import extend from "lodash/object/extend"; function isLet(node, parent) { if (!t.isVariableDeclaration(node)...
'use strict'; angular.module('adds').controller('QuestionController', ['$scope', function($scope) { // Question controller logic // ... } ]);
/* jshint esversion : 6 */ const mysql = require('mysql'); const connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '@mysql', database : 'node-backend' }); connection.connect(); // dummy function pour vérifier si la connectione à la base est bien établie connection.q...
import './fileUpload.js'; import './fileGallery.html'; import './files.html'; import './files.scss'; if (!HTMLCanvasElement.prototype.toBlob) { Object.defineProperty(HTMLCanvasElement.prototype, 'toBlob', { value(callback, type, quality) { let binStr = atob(this.toDataURL(type, quality).split(',')[1]), ...
import Ember from 'ember'; import { moduleFor, test } from 'ember-qunit'; // The default (application) serializer is the DRF adapter. // see app/serializers/application.js moduleFor('serializer:application', 'DRFSerializer', {}); test('normalizeResponse - results', function(assert) { let serializer = this.subject()...
define(['plugins/router', 'durandal/app', 'services/config', 'services/datacontext', 'services/logger','knockout'], function (router, app, config, datacontext, logger,ko) { var routes = ko.observableArray([]); var isAdminUser = ko.observable(); var showSplash = ko.observable(false); var vm = { ...
/** * @license Highmaps JS v9.3.2 (2021-11-29) * @module highcharts/modules/tilemap * @requires highcharts * @requires highcharts/modules/map * * Tilemap module * * (c) 2010-2021 Highsoft AS * * License: www.highcharts.com/license */ 'use strict'; import '../../Series/Tilemap/TilemapSeries.js';
/* Zepto 1.1.3 - zepto event ajax form ie detect - zeptojs.com/license */ var Zepto = (function() { var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, document = window.document, elementDisplay = {}, classCache = {}, cssNumber = { 'column-count': 1...
var mailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var config = require('../config'); var util = require('util'); var transport = mailer.createTransport(smtpTransport(config.mail_opts)); //域名domain没有的时留空,devMode下读取host var SITE_ROOT_URL = 'http://' +...
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaUserMd extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m13.1 30q0 0.6-0.5 1t-1 0.4-1-0.4-0.4-1 0.4-1 1-0.4 1 0.4 0.5 1z m22.8 1.4q0 ...
class KnormError extends Error { constructor(...args) { const [message] = args; const hasMessage = typeof message === 'string'; super(hasMessage ? message : undefined); if (!hasMessage) { this.message = this.formatMessage(...args); } this.name = this.constructor.name; if (typeof ...
import { AsyncStorage } from 'react-native'; import {applyMiddleware, compose, createStore} from 'redux'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'; import client from './apolloClient'; import { initialState as configs } from '../reducers/configurations'; import rootReducer from '../redu...
// @ts-check /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ /** * @typedef {import('playwright').Page} Page */ const h = include('tests/helpers'); /** @param {Page} page */ module.exports = (page) => {...
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import Collapse from '../Collapse'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ /* Styles applied to the root element. */ root: { marginTop: 8, marginLeft: 12, // half icon paddi...
var fs = require("fs"); var http = require("http"); var fileName = __dirname + "/ipsum.txt"; var server = http.createServer(function (req, res) { fs.exists(fileName, function(exists) { if (exists) { fs.stat(fileName, function(error, stats) { if (error) { throw error; } if (stats.isFile()) { ...
angular .module('ScheduleModule') .controller('DialogController', function($scope, $rootScope, $mdDialog, scheduleHourService, orientation, users, user, newScheduleHour, saveEnum, serverService, authorityEnum, userService) { var self = this; var workplaces = $ro...
'use strict'; module.exports = function (t, a) { a(t(), false, "Undefined"); a(t(1), false, "Primitive"); a(t({}), false, "Objectt"); a(t({ toString: function () { return '[object Error]'; } }), false, "Fake error"); a(t(new Error()), true, "E...
var config = require('./config'), db; function warn() { console.warn('[WARN] MongoDB:', [].join.call(arguments, ' ')); } function getDB(done) { if (db) return done(db); if (!config.mongoURI) return warn('No DB configured!'); require('mongodb').MongoClient.connect(config.mongoURI, function(err, _db) { if (err)...
export default class TeamScoreModel { constructor(props) { this.id = props.id this.teamId = props.team_id this.defencePoints = props.defence_points this.attackPoints = props.attack_points } get totalPoints() { return this.defencePoints + this.attackPoints } }
// Multiform extraction
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', '../util/data'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('../util/data')); } else { var mod = { exports: {...
var Col = require('./Col') module.exports = Col // export { default } from './Col'
// ___ ____ __ __ // / _ `/ _ \\ \ / // \_,_/ .__/_\_\ // /_/ // // 過去は未来によって変えられる。 // // Copyright (c) 2014 Kenan Sulayman aka apx // // Based on third-party code: // // Copyright (c) 2010 Tom Hughes-Croucher // // Permission is hereby granted, free of charge, to any person obtaining a copy ...
'use strict' import trumpet from 'trumpet' import { trumpetInnerText } from './index' import JsonStream from 'JSONStream' // Myfox page not found is a code 200... must fix it! const notFound200 = function () { const parser = trumpet() parser.select('head title', trumpetInnerText((data) => { parser.status = 20...
const chalk = require('chalk'); const { curry } = require('ramda'); const log = curry((color, string) => console.info(color(string))); const good = log(chalk.green); const info = log(chalk.cyan); const warn = log(chalk.magenta); const bad = log(chalk.red.bold); module.exports = (server, port) => { const resolve =...
const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const WebpackShellPlugin = require('webpack-shell-plugin'); const { join, resolve } = require('path'); var BUILD_DIR = resolve(__dirname, '../../priv/static');...
var classNames = require('classnames'); var React = require('react/addons'); var Tappable = require('react-tappable'); var Transition = React.addons.CSSTransitionGroup; var defaultControllerState = { direction: 0, fade: false, leftArrow: false, leftButtonDisabled: false, leftIcon: '', leftLabel: '', leftAction:...
define(['../../game', 'collectableItem', 'states/levels/LevelState'], function (game, CollectableItem, Parent) { var map, levelThreeFirstLayerBackground, levelThreeSecondLayerPlatforms, shampoosGroup, shampoosCoordinates; function Level3State() { }; Level3State.prototyp...
// the semi-colon before function invocation is a safety net against concatenated // scripts and/or other plugins which may not be closed properly. ;(function ( $, window, document, undefined ) { "use strict"; // undefined is used here as the undefined global variable in ECMAScript 3 is // mutable...
function goMain(){ window.location.href = 'main.html'; };
version https://git-lfs.github.com/spec/v1 oid sha256:8d51e43626611f90ffa2bf855ceaf2c501b01a5a083681b6a9426092bd85651f size 3788
(function (angular) { // Create all modules and define dependencies to make sure they exist // and are loaded in the correct order to satisfy dependency injection // before all nested files are concatenated by Gulp // Config angular.module('df.validator.config', []) .value('df.validator.config', { ...
var assert = require('assert'); var wdQuery = require('../index.js'); describe('wd-query', function () { describe('injected browser executing a Google Search', function () { var browser, $; before(function(){ browser = this.browser; $ = wdQuery(browser); }); it('performs as expected', ...
/* eslint no-var: [0] */ var path = require('path'), assign = require('object-assign'), pick = require('lodash.pick'); var browserWindowDefaults = { width: 600, height: 600 }; var webPreferencesDefaults = { nodeIntegration: false, javascript: true, webSecurity: false }; module.exports = function(b...
function load_servers(addr) { //ajax $.get(addr,function(json,status){ // same as loadServers(addr) serversElement = document.getElementById("servers-list"); var innerHtmls = ""; for (var obj in json) { innerHtmls = innerHtmls + " <li><a href=\"server.htm...
/** * Test case for knListItemArrowIcon. * Runs with mocha. */ "use strict"; const knListItemArrowIcon = require('../lib/kn_list_item_arrow_icon.js'), assert = require('assert'); describe('kn-list-item-arrow-icon', () => { before((done) => { done(); }); after((done) => { done(); ...
Mobird.defineModule('modules/scroller', function(require, exports, module) { var elementStyle = document.createElement('div').style; var vendor = (function() { var vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'], transform, i = 0, l = vendors.length; for (; i < l; i++) { transform ...
/*global $:true, Backbone:true, _:true, App:true */ /*jshint browser:true */ /*jshint strict:false */ App.Models.Controller = Backbone.Model.extend({ defaults: { socket: false }, initialize: function(opts) { } });
/* eslint-disable no-undef */ /* eslint-disable no-unused-vars */ const documents = { indexList: [] }; const elements = { indexInput: null, indexTable: null }; function isCorrect(index) { return index.length === 6; } function addIndex(index) { documents.indexList.push(index); elements.indexTable.append(...
export {default} from 'ember-frost-demo-components/components/frost-file-node/component'
import { getEvent, eventMap } from '../../src/module/moveRow/event'; import { EMPTY_TPL_KEY } from '../../src/common/constants'; describe('drag', () => { describe('getEvent', () => { let events = null; beforeEach(() => { }); afterEach(() => { events = null; }); ...
output = function() { navigator.camera.getPicture(function(imageData) { cb({ imageData: $.create(imageData) }); }, function(err) { cb({ error: $.create(err) }); }, { quality: $.quality, sourceType: Camera.PictureSourceType[$.sourceType], allowEdit: $.allowEdit, encodingType: Camera.Encodin...
'use strict' const execa = require('execa') const chalk = require('chalk') const figures = require('figures') const ora = require('ora') module.exports = function fetchRemote(flags) { // git fetch let args = ['fetch'] // fetch with prune? if (!flags.skipPrune) { // git fetch -p args.p...
/* RequireJS 2.1.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 */ var requirejs,require,define; (function(global){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainSc...
const { massiveHide } = require('../coreFunctions'); const header = { init: () => { constructor(); setupLogo(); }, }; const constructor = () => { headerContainer = body.find('#header'); const breadcrumbContainer = body.find('.bread-container') const hideElements = [ headerContainer.find('#stati...
"use strict"; const btc = require("./coins/btc.js"); module.exports = { "BTC": btc, "coins":["BTC"] };
"use strict"; module.exports = { test_page: "tests/index.html?hidepassed", disable_watching: true, launch_in_ci: ["Chrome"], launch_in_dev: [], browser_start_timeout: 120, browser_args: { Chrome: { ci: [ // --no-sandbox is needed when running Chrome inside a container process.env....
const greeting = (name) => { const element = document.querySelector('.js-greeting'); if (element) { element.innerHTML = name; } }; export default greeting;
define(function(require,exports, module) { var $ = require('jquery'); var React = require('react'); var Backbone = require('backbone'); var MyTable = require('./components/table/Table'); var ReactApp={ getJsonData:function(data){ alert('收集数据!'+data); }, getInstance:function(model,options){ ...
import Backend from 'i18next-xhr-backend'; export function configure(aurelia) { aurelia.use .standardConfiguration() .plugin('aurelia-i18n', (i18n) => { i18n.i18next.use(Backend); return i18n.setup({ backend: { loadPath: './locales/{{lng}}/{{ns}}.json', }, lng ...