code
stringlengths
2
1.05M
import { NativeModules } from 'react-native'; const { RNRSAKeychain, RNRSA } = NativeModules; export { RNRSAKeychain, RNRSAKeychain as RSAKeychain, RNRSA, RNRSA as RSA }; export default RNRSA;
'use strict'; const chai = require('chai'), expect = chai.expect, Support = require(__dirname + '/../support'), DataTypes = require(__dirname + '/../../../lib/data-types'), Sequelize = require(__dirname + '/../../../index'), Promise = Sequelize.Promise, _ = require('lodash'); describe(Support.getTestDiale...
import React from 'react'; import PropTypes from 'prop-types'; import FlatButton from '@material-ui/core/FlatButton'; import { Card } from '@material-ui/core/Card'; import { Link } from 'react-router-dom'; import { LocalStorage } from '../LocalStorage'; import { Sidebar } from '../../Sidebar'; const dynamicSidebar = ...
var exec = require('cordova/exec'); module.exports = { isPackageInstalled: function(packageName, callback) { exec( function() { typeof callback === 'function' && callback(true); }, function() { typeof callback === 'function' && callback(false); }, 'SkritterPlugin', ...
var AreaConocimiento=function(funcionObtenerMaterias,padreFuncionObtenerMaterias, botonAgregarAreaConocimiento){ this.botonAgregarAreaConocimiento=botonAgregarAreaConocimiento; this.funcionObtenerMaterias=funcionObtenerMaterias; this.padreFuncionObtenerMaterias=padreFuncionObtenerMaterias; this.cargarObjeto...
/** * @module app * * This script instantiates the server and begins listening for requests. */ var config = require('./config/config'); init().then(function (server) { if (config.environment === 'development') { // Specifying an address of '0.0.0.0' allows us to access the server from any computer on the l...
const Constants = { Actions: { TaskListStore: { FETCH: 'ACTION_TASK_LIST_STORE_FETCH', CREATE: 'ACTION_TASK_LIST_STORE_CREATE', UPDATE: 'ACTION_TASK_LIST_STORE_UPDATE', DELETE: 'ACTION_TASK_LIST_STORE_DELETE' }, Ajax: { FETCH_START: 'ACTION_AJAX_FETCH_START', FETCH_END...
"use strict"; const path = require('path'); const argv = require('yargs').argv; const debug = require('debug')('onigiri:config'); debug('Create configuration.'); const config = { env: process.env.NODE_ENV, path_base: path.resolve(__dirname, '../'), dir_client: 'src', dir_dist: 'dist', dir_server: 'server', di...
import {Store} from 'flummox'; import {doAsync} from './api'; export default class extends Store { constructor(flux) { super(); doAsync(this, flux.getActionIds('category').getCategory); } }
$(document).ready(function() { pre_content = $("#jalpc_site_pv").html(); $("#jalpc_site_pv").html(pre_content); $.ajax({ type: "get", async: false, url: "https://miniapp.jack003.com/counter.cgi", dataType: "jsonp", jsonp: "callback", jsonpCallback: "flightHand...
import express from 'express'; import session from 'express-session'; import expressMsg from 'express-messages'; import expressValidator from 'express-validator'; import path from 'path'; import logger from 'morgan'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import multer from 'mul...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
define([], function() { var Teams = { "mlb": [], "ncaam": [], "nba": [], "ncaaf": [ { "city": null, "name": "Florida State" }, { "city": null, "name": "Alabama" }, { "city": null, "name": "Oklahoma" }, { "city": "Kansas City", "name": "Kansas", "code": "...
var init = (function() { // Move 'more' items if ( ($(window).width() >= 1024) && ($(window).width() <= 1279) ) { if ( ($('.content1').length) && ($('.content2').length) ) { $('.nav__list-wrap1 .nav__list-more-item1').appendTo($('.nav__list-wrap1 .nav__list-more')); $('.nav--injected .nav__list-wr...
var cytoscape = require('cytoscape'); var cy = cytoscape({ container: document.getElementById('cy') })
/* Copyright (c) 4D, 2012 * * 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, including without limitation the rights * to use, copy, modify, merge, publish, distribut...
// auth module for authentication for the ionic app to the server app var serverurl="https://secure-eyrie-4903.herokuapp.com/"; angular.module("auth", ['sociallogin']) .run(function($rootScope, $http, $location, serverurl) { // cheking for the logged in user when app starts var token = localStorag...
var gulp = require('gulp'), uglify = require('gulp-uglify'), rimraf = require('gulp-rimraf'), rename = require('gulp-rename'), browserify = require('gulp-browserify'), SRC = './lib/string.js', TEST_SRC = './test/string.test.js', mochify = require('mochify'), DEST = 'dist', mocha = require('gulp-mocha'...
if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('..'); } else { __dirname = '.'; }; //if(typeof exports != 'object') { describe('Test 173 - SELECT Short Syntax', function() { if(false) { it("1. FROM without select", function(done) { var data = [{a:1},{a:2},{a:3...
"use strict"; /*global jQuery:false */ /*global rra_path:false */ /*global base_url:false */ /*global overlib:false */ /*global aggregate:false */ /*global selected_host:false */ function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPag...
const navbarInstance = ( <Navbar inverse toggleNavKey={0}> <NavBrand><a href="#">React-Bootstrap</a></NavBrand> <Nav right eventKey={0}> {/* This is the eventKey referenced */} <NavItem eventKey={1} href="#">Link</NavItem> <NavItem eventKey={2} href="#">Link</NavItem> <NavDropdown eventKey={...
var gm = require('gm'); var dirpath = 'images/'; var imgname = 'download-logo.png'; var tmppath = 'tmp/'; var imageMagick = gm.subClass({ imageMagick: true }); imageMagick(dirpath + imgname) .resize(300, 200) .write(tmppath + 'imageMagick_' + imgname, function (err) { if (err) throw err...
class MyController { /*ngAnnotate*/ constructor ($scope) { console.log('Atatata'); $scope.$watch(); } } export default MyController;
// // Github Data Endpoint // // All endpoints must log data and return latest data. // const Path = require("path") DataEndpoint = require("./dataendpoint.js") class GithubEndpoint extends DataEndpoint { constructor(){ super() this.moduleName = Path.basename(__filename) this.fetchData = th...
/* * * Message Validation * */ import { attributeName, convertToNamespacedName, elementAttributes, elementName, elementNamespaceOrName, i18nId, idOrComponentName, hasI18nId, isComponent, isElementMarker, isSimpleExpression, isTag } from './ast'; import {assertInpu...
clockApp.directive('analogClock', function () { return { restrict: 'E', scope: { options: '=' }, template: '<canvas></canvas>', replace: true, link: function (scope, element, attrs) { scope.$watch('options', function () { var s...
/** * angular-video * * Provides the following angular components: * * jrl-video-player (directive) * jrl-video-controls (directive) * jrl-video-button-volume (directive) * Html5Player (service) * * @author Jeff Lambert * @license MIT */ (function() { 'use strict'; // Usage: //...
version https://git-lfs.github.com/spec/v1 oid sha256:b55044c266a9b5bcbfd0277e79bdd2ef820d90d4f1ee9c79b4ac26585abebcaf size 1236
import threeFactory from '../../Three/ThreeFactory/ThreeFactory'; import {MOVING, SHOOT, PAIN, HIT} from "../../Constants/Audio"; class GameAudioManager { constructor() { this._sounds = {}; this._loader = threeFactory.audioLoader(); } instance(listener) { this._listener = listener; this._initAu...
'use strict'; var config = require('../config'); var http = require('unirest'); var msg = require('gulp-messenger'); var should = require('should'); var chai = require('chai'); var assert = require('chai').assert; var expect = require('chai').expect; xdescribe('myApi testing', function () { // this section...
import React from 'react'; import { render } from '@testing-library/react'; import TimePicker from '../src/TimePicker'; import mocker from './helper/new-mocker'; describe('<TimePicker />', () => { test('renders', () => { const { container } = render(<TimePicker />); expect(container).toMatchSnapshot(); });...
import Base64 from 'Base64' export default { decode(token) { const parts = token.split('.'); var encoded = parts[1].replace(/-/g, '+').replace(/_/g, '/'); switch (encoded.length % 4) { case 0: break; case 2: encoded += '=='; ...
const defaultProps = { duration: 0.3, delay: 0, overlayOpacity: 0.7, shouldCloseOnOverlayClick: true, shouldHideBodyOverflow: true, canClose: true, animation: { fromVars: { scale: 0, opacity: 0 }, toVars: { scale: 1, opacity: 1, ease: Back.easeInOut } } }; export default defaultProps;
'use strict'; const getConfig = require('../config/config').getConfig; const constants = require('../constants'); const CouchError = require('../util/CouchError'); const log = require('./log'); const basicRights = { $type: 'db', _id: constants.RIGHTS_DOC_ID, createGroup: [], create: [], read: [], }; const...
(function () { 'use strict'; var crc32 = require('crc32'), deflate = require('deflate-js'), // magic numbers marking this file as GZIP ID1 = 0x1F, ID2 = 0x8B, compressionMethods = { 'deflate': 8 }, possibleFlags = { 'FTEXT': 0x01, 'FHCRC': 0x02, 'FEXTRA': 0x04, 'FNAME': 0x08, 'FCOMMEN...
var rest = require("request"); var querystring = require("querystring"); /** * SongsearchController * * @module :: Controller * @description :: Contains logic for handling requests. */ module.exports = { /** * Wraps the YouTube API and sanitizes output to a format used by the frontend. * ...
/** * The MIT License (MIT) * * Copyright (c) 2014-2022 Mickael Jeanroy * * 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, including without limitation the rights ...
var list = { "Manual": { "Introduction": [ [ "Creating a scene", "manual/introduction/Creating-a-scene" ], [ "Matrix transformations", "manual/introduction/Matrix-transformations" ] ] }, "Reference": { "Constants": [ [ "CustomBlendingEquation", "api/constants/CustomBlendingEquations" ], [ "DrawMo...
import React, {Component} from 'react'; import './Header.css'; import {withRouter} from "react-router-dom"; class Header extends Component { render() { return <div> <div className="header-bar"> <div className="header-bar-title" onClick={() => { this.props....
(function(){ angular .module('linguine.corpora') .controller('CorporaIndexController', CorporaIndexController); function CorporaIndexController ($scope, $http, $modal) { function onStartup() { refreshCorpora(); refreshQuota(); } onStartup(); $scope.removeTag = function (corp...
import Ractive from 'ractive'; import load from '../ractive/ractive-load'; import ractiveLoadCatch from '../utils/ractive'; import * as NewTransaction from './transaction/new-transaction'; import * as TransactionList from './transaction/transaction-list'; var NewTransactionComponent; var TransactionListComponent; va...
import createDebug from 'debug'; import { LOGIN_COMPLETE, LOGOUT_START, SOCKET_CONNECT, SOCKET_RECONNECT, SOCKET_DISCONNECTED, SOCKET_CONNECTED, SEND_MESSAGE, DO_UPVOTE, DO_DOWNVOTE, } from '../constants/ActionTypes'; import { SHOULD_RANDOMIZE } from '../_wlk/constants'; import { initState } from '../...
import _ from 'lodash' export default function (value, list) { let rs = _.map(value, function (one, index) { return _.find(list, { value: one }) }) return _.map(rs, function (one) { return one.name }).join(' ') }
const EventEmitter = require('events') const promises = [], flavors = ['chocolate', 'strawberry', 'vanilla'], errChance = 0.1, maxIceCreamDelay = 6000, maxNumOrders = 5, orderInterval = 500 function pickRandomFlavor() { return flavors[Math.floor(Math.random() * flavors.length)] } // P...
var basic = require('../types').basicTypes, Integer = basic.Integer, Float = basic.Float, Str = basic.String, Bool = basic.Bool, NAN = basic.NaN; Float.defineBinary('+', Integer, Float); Float.defineBinary('+', Float, Float); Float.defineBinary('+', Str, Str); Float.defineBinary('+', Bool, Float); ...
import Immutable from 'immutable'; import actionTypes from '../actions/actionTypes'; export const plaidItems = (state = Immutable.List(), { type, payload }) => { switch (type) { case actionTypes.PLAID_ITEM_ADDED: return state.push(Immutable.fromJS(payload)); case actionTypes.SET_PLAID_ITEMS: retu...
requireCss('./flow/flow.css'); var fun = require('uki-core/function'), utils = require('uki-core/utils'), view = require('uki-core/view'), dom = require('uki-core/dom'), Container = require('uki-core/view/container').Container; var Flow = view.newClass('Flow', Container, { spacing: view.ne...
'use strict'; exports.start = function () { console.log('[Database - start]: starting database'); };
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import saveGame from '../actions/update-game' import './Canvas.sass' // the Scoreboard import Scoreboard from '../containers/Scoreboard' // helpers import { updatePlayer, currentPlayer, otherPlayer } from '../helpers/update-play...
/** * @author:azrael butian.wth */ var fs = require('fs'); var path = require('path'); var CSSOM = require('cssom'); //防止不支持canvas的环境中报错 try { var Canvas = require('canvas'); var GrowingPacker = require('./GrowingPacker'); var bgItpreter = require('./BackgroundInterpreter'); var ztool = require('./zt...
Package.describe({ name: "angular", summary: "Everything you need to use AngularJS in your Meteor app", version: "1.0.1", git: "https://github.com/Urigo/angular-meteor.git" }); Package.registerBuildPlugin({ name: "compileAngularTemplates", sources: [ "plugin/handler.js" ], use: ['html-tools@1.0.4']...
Ext.define('OppUI.view.mainDashboard.loadTestStatsWidget.LoadTestStatsWidgetModel', { extend: 'Ext.app.ViewModel', alias: 'viewmodel.loadteststatswidget', data: { name: 'OppUI' } });
var express = require('express') , router = express.Router() , Calculate = require('../../models/calculate') router.get('/', function(req, res) { if (!req.query.start || !req.query.end || !req.query.time){ res.status(400) .send('Not found'); return; } Calculate.time({'start': req.query.start, ...
version https://git-lfs.github.com/spec/v1 oid sha256:1ca01639dec632eb6414cd59a5b351999de1d48257af8872c8877c2219ed5e12 size 228196
/* MicroFlo - Flow-Based Programming for microcontrollers * Copyright (c) 2013 Jon Nordby <jononor@gmail.com> * MicroFlo may be freely distributed under the MIT license */ var cmdFormat = require("./microflo/commandformat.json"); var c = require("./lib/componentlib"); var componentLib = new c.ComponentLibrary(c.def...
/**************************************************************************** * todoyu is published under the BSD License: * http://www.opensource.org/licenses/bsd-license.php * * Copyright (c) 2012, snowflake productions GmbH, Switzerland * All rights reserved. * * This script is part of the todoyu project. * ...
var jwt = require('jsonwebtoken'); var config = require('../config/config'); var mongoose = require('mongoose'); var User = mongoose.model('User'); module.exports = (token, callback) => { if (token) { jwt.verify(token, config.tokenKey, { ignoreExpiration: true }, (err, decoded) => { if (err) { ...
'use strict'; angular.module('homeMovieCollectionApp') .config(function ($stateProvider) { $stateProvider .state('login', { url: '/login', templateUrl: 'app/account/login/login.html', controller: 'LoginCtrl' }) .state('signup', { url: '/signup', templateU...
/*global angular, describe, it, jasmine, expect, beforeEach, inject */ 'use strict'; describe('Testing ngEmphasis Directive', function () { var $compile, $scope, $httpBackend, ngEmphasisConfig; beforeEach(module('ng-emphasis')); beforeEach(inject(function(_$compile_, _$ro...
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('illumina.jquery.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepa...
/*global define */ define(['services/formatter'], function (formatter) { // columnsPerServerTemplate will be checked before columnsPerBaseType //http://msdn.microsoft.com/en-us/library/hh658949(v=office.12).aspx var columnsPerServerTemplate = { 107: [ { field: "ID", title: "ID", width: 80 }...
import React from 'react'; export default React.createClass({ render: function() { return <div>{this.props.card.get('title')}</div>; } });
import React, { Component, Fragment } from 'react' import styled from 'styled-components' import { key } from 'styled-theme' const Svg = styled.svg` min-width: 650px; height: 500px; z-index: 1; @media (max-width: 1199px) { margin-left: -110px; } transition: all .2s ease-in-out; ` const Map = styled.di...
import styled from 'styled-components'; import colors from 'themes/colors'; const BodyCol = styled.div` display: flex; align-items: center; justify-content: center; width: ${props => (props.width ? props.width : '100px')}; margin-right: ${props => props.mr && props.mr}; margin-left: ${props => props.ml && ...
// import Location from './location'; const MAX_COORD = 50; const HASH_BASE = 101; function offset(coord) { return coord + MAX_COORD; } export default class Path { constructor(from, to) { if (from.x === to.x && from.y === to.y) { throw new Error(`cannot create path with from = to: ${from.toString()}`); } ...
import users from '../controllers/users' import Auth from '../auth' export default app => { app.route('/api/user/login') .post(users.login) app.route('/api/user/create') .all(Auth.instance.authenticate()) .post(users.create) }
define(['marionette', 'Backbone', 'jquery', 'underscore', 'app/settings', 'app/core/mediator'], function(Marionette, Backbone, $, _, settings, mediator) { var NavigationView = Marionette.ItemView.extend({ el: '#tabNavigation', ui: { 'showResults': '.showResults', 'showPlace'...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define("require exports ../../../../../core/tsSupport/extendsHelper ../../../lib/glMatrix ./MomentumController ../../utils/navigationUtils".split(" "),function(b,e,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_replay_30 = exports.ic_replay_30 = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s...
var Image = function(imgur) { this.image = function(params) { params = params || {}; if (!params.hasOwnProperty('id')) { throw new Error('id required'); } var options = imgur.extend(params, { id: params.id }); return imgur.request('get', 'imag...
'use strict'; function LangRepository(Restangular) { var api = Restangular.all('languages'); return { one: function(code) { return api.get(code); }, list: function() { return api.getList(); }, clean: function(elem) { return Restangula...
// config/passport.js // load all the things we need var LocalStrategy = require('passport-local').Strategy; var mysql = require('mysql'); var bcrypt = require('bcrypt'); var salt = bcrypt.genSaltSync(10); var dbconfig = require('./database'); var connection = mysql.createConnection(dbconfig.connection); connection....
version https://git-lfs.github.com/spec/v1 oid sha256:808b09b7a6a0b0d543a266e30b6d9449b7048b3ca318bcdcf1d4dfd3268def1b size 2139
module.exports = function PublishPreview(app,io, settings){ //imports var fs = require('fs'), path = require('path'), //io = require('socket-io'), _ = require('underscore'), marked = require('./js/marked'), partialsRenderFn = require('nunjucks').renderString, createContex...
examples_main = { TH1 : [ { opt: "", file: "hsimple.root", item: "hpx;1" }, { name: "star", opt:"*", title: "draw stars on histogram bins" }, { name: "*H", opt:"*H", title: "draw stars and histogram itself" }, { opt: "L", title: "draw histogram as line" }, { name: "LF2", opt:"LF2,fill_blue",...
/** @file Functions to work with Instrument instances */ /** * Functions to extract information from Instrument instances * * @namespace * @name instrumentFunctions * @memberof module:core.logic */ module.exports = () => { /** * Toggles playback of the note of the given instrument * * @m...
// ``` // passport.conf.js // (c) 2015 David Newman // david.r.niciforovic@gmail.com // passport.conf.js may be freely distributed under the MIT license // ``` // *config/passport.conf.js* // This file contains the function which configures the PassportJS // instance passed in. // Load PassportJS strategies import L...
import Resources from "./Resources" import Input from "../Input" class Audio { constructor() { this._volume = 1 this._mute = false this.ctx = new AudioContext() this.gainNode = this.ctx.createGain() this.gainNode.connect(this.ctx.destination) this.resumeOnClickFunc = this.resumeOnClick.bind(this) Input...
/** * 用户信息 */ var mongoose = require('../../dataBase/mongodb/mongodb_base'), Schema = mongoose.Schema; var UserSchema = new Schema({ username : { type: String }, // 用户账号 userphone: { // 手机号(用户帐号) // unique: true, type: String }, ...
// conf.js exports.config = { // The address of a running selenium server. seleniumAddress: 'http://localhost:4444/wd/hub', // Capabilities to be passed to the webdriver instance. multiCapabilities: [{ 'browserName': 'chrome', 'platform': 'ANY', 'version': 'ANY' }], allScriptsTimeout: 21000, /...
'use strict'; angular.module('batcmsApp') .controller('NavbarCtrl', function ($scope, $location, Auth) { $scope.menu = [{ 'title': 'Home', 'link': '/' // }, { // 'title': 'Home-Read', // 'link': '/read' }, { 'title': 'Settings', 'link': '/settings' }]; $scope.l...
{ const global = { process }; const timers = new FakeTimers(global, moduleMocker); timers.useFakeTimers(); expect(global.clearTimeout).not.toBe(undefined); }
var vv = require('drainpipe'), less = require('gulp-less'), karma = require('gulp-karma'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), cssmin = require('gulp-cssmin'), pathJoin = require('path').join, del = require('del'), gulp =...
var private = {}, self = null, library = null, modules = null; function Message(cb, _library) { self = this; self.type = 7 library = _library; cb(null, self); } Message.prototype.create = function (data, trs) { // recipient trs.recipientId = data.recipientId; // Create transaction container trs....
/** * Controls the behaviours of custom metabox fields. * * @author Andrew Norcross * @author Jared Atchison * @author Bill Erickson * @author Justin Sternberg * @see https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress */ /*jslint browser: true, devel: true, indent: 4, maxerr: 50, sub: tr...
/** * @file levelUpMessage command * @author Sankarsan Kampa (a.k.a k3rn31p4nic) * @license GPL-3.0 */ exports.exec = async (Bastion, message) => { let guildModel = await Bastion.database.models.guild.findOne({ attributes: [ 'levelUpMessages' ], where: { guildID: message.guild.id } }); let...
/** * selenium-webdriver 快捷键 * */ require('chromedriver') let webdriver = require('selenium-webdriver') let By = webdriver.By; let Key = webdriver.Key; let driver = new webdriver.Builder().forBrowser('chrome').build(); driver.get("http://192.168.219.129:3000") driver.findElement(By.css('a[href="/signin"]')).click...
const { makeExecutableSchema } = require('graphql-tools'); const typeDefs = require('./schema'); const resolvers = require('./resolvers'); module.exports = { schema: makeExecutableSchema({ typeDefs, resolvers }), };
import styles from './Checkbox.scss'; import {any, bool, func, oneOf, string} from 'prop-types'; import uniqueId from 'lodash/uniqueId'; import React from 'react'; import classNames from 'classnames'; import SvgV from '../svg/V'; import WixComponent from '../BaseComponents/WixComponent'; import Label from '../Label/Lab...
import React, {cloneElement} from 'react'; import Tippy, {useSingleton} from '../Tippy'; import {Button} from '../Framework'; import {Children} from 'react'; const array = Array(4).fill(); function Singleton({group, transition}) { const [source, target] = useSingleton(); const delay = transition ? [100, 500] : 50...
GNATdoc.SourceFile = { "kind": "code", "children": [ { "kind": "line", "number": 1, "children": [ { "kind": "span", "cssClass": "comment", "text": "------------------------------------------------------------------------------" } ] }, ...
const foo = {}; foo.a = function() { console.log(3); }; foo.b = foo.a();
{ const path = props[key2]; paths.push(path); }
/** * @author gyb(mocheer * @email mocheer@foxmail.com * @since 2017.8.31 */ let LASTID = 0;//lastID /** * 标记,对object进行标记 * @param obj * @return 返回标记值 */ $.stamp = obj => obj._tree_id = obj._tree_id || ++LASTID; /** * @return string 返回唯一序号 */ $.toString = $.stamp.toString = () => ++LASTID + '' /** * */ $....
import isNumeric from 'validator/lib/isNumeric'; export function filterPage(page) { let result = 1; if (!page) { return 1; } if (!isNumeric(`${page}`)) { return -1; } try { result = parseInt(page, 10); if (result <= 0) { return -1; } } catch (e) { return -1; } return ...
export default window.RSVP;
import React from 'react'; // eslint-disable-line import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.getElementById('root') );
HTMLComponentTemplates = { shouldCompile: false } HTMLComponentTemplates['todo-item'] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("\n" + i);t.b(" <input type=\"checkbox\" checked=\"");t.b(t.v(t.d("props.done",c,p,0)));t.b("\">");t.b("\n" + i);t.b(" <input type=\"text\" class=\"desc\" r...
module.exports = { 'debug': ['tmp'], 'dist': ['tmp', 'dist'] };
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'colordialog', 'da', { clear: 'Nulstil', highlight: 'Markér', options: 'Farvemuligheder', selected: 'Valgt farve', t...