code
stringlengths
2
1.05M
(function(){ 'use strict'; angular.module('demoApp') .controller('friendlyrangeCtrl', ['$scope', 'moment', function($scope, moment){ $scope.myBlock = { start: moment().startOf('month'), end: moment().add(1,'month').startOf('month') }; $scope.form = { start: moment().startOf('month') }; $scope.until = { e...
version https://git-lfs.github.com/spec/v1 oid sha256:c08e3f6f37a8467e83864dadaec374ce4d76d2c5a5da66de337312c3ba893ccf size 1546
/** * DevExtreme (viz/tree_map/tree_map.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var dxTreeMap = module.exports = require("./tree_map.base"); requir...
angular.module("QuestionRest", ['ngResource']) .factory("question", function ( $resource) { var apiData = $resource( "/api", {}, { "postQuestion" : { method: "POST", url: "/api/readQuestion/:containid/:userid/:typeid/Questions"} }); retur...
(function() { 'use strict'; /** * @ngdoc service * @name AppTechnologiesService * @module <%- props.appName %> * @description * * AppTechnologies Service */ angular .module('<%- props.appName %>') .service('AppTechnologiesService', AppTechnologiesService...
/// <reference path="../../typings/functions.d.ts" /> import {xtract_assert_array} from "./xtract_assert_array"; import {xtract_lowhigh} from "./xtract_lowhigh"; export function xtract_lowest_value(data, threshold) { if (!xtract_assert_array(data)) return 0; if (typeof threshold !== "number") { ...
(function (factory) { if (typeof define === "function" && define.amd) { define(["jquery"], factory); } else if (typeof module === "object" && module.exports) { module.exports = factory(require(["jquery"])); } else { factory(jQuery); } }(function ($) { "use strict"; ...
'use strict' const Joi = require('joi') const network = require('../../services/network') const output = require('../../utils/output') const networks = require('../../config/networks') var workerpool = require('workerpool') const schema = { vanity: Joi.string().required() } function __createVanityAddress (netVersion...
module.exports = function() { let y = 3.14; let x; if(!(y === 0)) { x = 1; } };
define([ "xEvolution/models/Entity/HungerableEntity" ],function( HungerableEntity ){ var model = HungerableEntity.extend({ _urlRoot: "", defaults: { speed: 5, movementSpeed: 2, pdx: -1, ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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.proto...
import { INTEGRITY_TYPES } from 'constants/pogues-constants'; import Dictionary from 'utils/dictionary/dictionary'; function checkerExistingTarget({ appState: { activeComponentsById, activeQuestionnaire: { id }, }, }) { const targetNotFoundErrors = []; const errors = []; Object.keys(activeComponentsB...
module.exports = function(environment, path) { environment .use(['qunit']) .add('sampleLib.js', path.jasmine) .add(path.jasmine('anotherLib.js')); };
import { createSelectorCreator, createStructuredSelector, defaultMemoize, } from 'reselect'; import * as R from 'ramda'; import { debug } from './Messages'; const customComparator = (previousState, state) => { const equals = R.equals(previousState, state); if (!equals) debug('Reselect', 'Redisplay the react ...
/* RwGet */ if (typeof RwGet == 'undefined') RwGet = { pathto: function(path, file) { var rtrim = function(str, list) { var charlist = !list ? 's\xA0': (list + '').replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, '$1'); var re = new RegExp('[' + charlist + ']+$', 'g'); return (str + '').replace(re, ''); }; var jspathto = r...
const express = require('express'); const VoiceResponse = require('twilio').twiml.VoiceResponse; const urlencoded = require('body-parser').urlencoded; // Update with your own phone number in E.164 format const MODERATOR = '+15558675309'; const app = express(); // Parse incoming POST params with Express middleware ap...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
import Ember from 'ember'; export default Ember.Service.extend({ languages: [ { "key": "en-US", "label": "English" }, { "key": "fr-FR", "label": "French" }, { "key": "de-DE", "label": "German" }, { "key": "it-IT", "label": "Italian" }, ...
var BlendMicro = require(__dirname+'/../../'); // var BlendMicro = require('blendmicro'); var bm = new BlendMicro(process.argv[2] || "BlendMicro"); bm.on('open', function(){ console.log("open!!"); }); // read data bm.on("data", function(data){ console.log(data.toString()); bm.updateRssi(function(err, rssi){ ...
import beginConnectingAsync from './begin-connecting' import cancelConnectingAsync from './cancel-connecting' import connectWithUserAsync from './connect-with-user' export { beginConnectingAsync, cancelConnectingAsync, connectWithUserAsync, }
$(function() { var s = Snap('#svg'); var obj = s.selectAll('polygon'); var $obj = $('polygon'); $('polygon:odd').addClass('right'); $obj.css('opacity', 1); $obj.each(function(i) { $(this).delay(50 * i).animate({ opacity: 0}, 1500, function() { $(this).attr({...
/** * Created by ls-mac on 2017/3/1. */ import React , {Component} from 'react'; import {AppRegistry , TabBarIOS, Text , View, StyleSheet, Dimensions} from 'react-native'; export default class LSFind extends Component{ constructor(props){ super(props); } render(){ return( <V...
Drop.prototype.watchWindow = function() { $(window).on('resize scroll', () => { this.tick(); }); return this; }; Drop.prototype.watchDrag = function() { $(this.data.anchor).on('drag dragstart dragstop', () => { this.tick(); }); return this; };
// Generated by CoffeeScript 2.4.1 (function() { //Language: Traditional Chinese //Translators: victorleungtw, ArthurPai var zh_TW; zh_TW = { add: "添加", and: "和", back: "返回", cancel: "取消", changePassword: "修改密碼", choosePassword: "選擇密碼", clickAgree: "點擊註冊, 您同意我們的", configure: "配置...
import cookies from './cookies'; const COOKIE_KEY = 'cookie-accept'; const COOKIE_VALUE = 'accept'; export default { /** * Hides the cookie bar; */ hideCookieBar() { let cookieBar = document.querySelector( '.cookie-bar' ); cookieBar.classList.add( 'cookie-bar__hide' ); cookies.setCookie( COOKIE_KEY, COOK...
/* eslint-disable import/default */ import 'reset-css/reset.css'; import React from 'react'; import ReactDOM from 'react-dom'; // import { ApolloProvider } from 'react-apollo'; import { BrowserRouter as Router } from 'react-router-dom'; import { AppContainer } from 'react-hot-loader'; // Shared Imports import ApolloCl...
var Class = require('ee-class') , log = require('ee-log') , fs = require('fs') , path = require('path') , assert = require('assert'); var FaceDetector = require('../') , detector; describe('The Facedetector', function() { it('should not crash when instatiated', function() { d...
/* * Generate js tasks */ //Validate if session is finished var verify = setInterval(function _(){ AjaxGET_TEXT("/owlgroup/_vistas/gad_verify_.php", function(response){ var data = JSON.parse(response); if(!data){ var popup = new $.Popup({ afterOpen : f...
import Converter from './all-your-base'; const converter = new Converter(); describe('Converter', () => { test('single bit one to decimal', () => { expect(converter.convert([1], 2, 10)).toEqual([1]); }); xtest('binary to single decimal', () => { expect(converter.convert([1, 0, 1], 2, 10)).toEqual([5]);...
(()=>{ const isCompatible = (chrome.runtime)?true:false; Array.prototype.print = function() { if(!isCompatible) { Array.prototype.print = function(){let i="";this.forEach((a)=>{i+=" "+a.msg});console.log(i)}; throw new Error("This browser is not compatible with ConsoleFormatter"); } var c = ...
/* * Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
/* * Copyright (c) 2017, Itai Reuveni <itaireuveni@gmail.com> * * License: MIT */ import React from "react"; import TestUtils from "react-addons-test-utils"; import chai from "chai"; import sinon from "sinon"; import Block from "../src/Block"; let expect = chai.expect; describe("Block", function () { beforeEa...
/* jshint browser: true, curly: true, eqeqeq: true, forin: true, latedef: true, newcap: true, noarg: true, noempty: true, nonew: true, strict:true, undef: true, unused: true */ /* global _: false, jQuery: false, Backbone: false */ (function($, _, Backbone, App) { 'use strict'; var Components = App.Co...
import { connect } from "react-redux"; import ObservationModal from "../components/observation_modal"; import { hideCurrentObservation, addIdentification, addComment, toggleCaptive, toggleReviewed, agreeWithCurrentObservation, showNextObservation, showPrevObservation, updateCurrentObservation, fetch...
'use strict'; describe('Controller: PipelineRunCtrl', function () { // load the controller's module beforeEach(module('luigiApp')); var PipelineRunCtrl, $httpBackend, scope, routeParamStub, PipelineRun; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope, $inj...
'use strict'; /** * Module dependencies. */ var trainingprogramsPolicy = require('../policies/trainingprograms.server.policy'), trainingprograms = require('../controllers/trainingprograms.server.controller'); module.exports = function (app) { // Trainingprograms collection routes app.route('/api/trainingprogr...
var hostname = require('os').hostname(); var backgrounder = require('backgrounder'); var _ = require('underscore'); function MetricServer(config) { this.config = config; } MetricServer.prototype.start = function(callback) { if (this.loader) { throw new Error("already started"); } var self = this; self.pe...
const moment = require('moment'); let banner = ` ======================================================================================= Author: Anxon <ansonhorse@gmail.com> Built At: ${moment().format('YYYY-MM-DD HH:mm:ss')} ======================================================================================= ...
/* * eoraptor-jst * https://github.com/jiasong/precompile * * Copyright (c) 2014 gnosaij * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', ], options: { jshintrc: ...
import isHiragana from '../../src/isHiragana'; describe('isHiragana()', () => { it('sane defaults', () => { expect(isHiragana()).toBe(false); expect(isHiragana('')).toBe(false); }); it('あ is hiragana', () => expect(isHiragana('あ')).toBe(true)); it('ああ is hiragana', () => expect(isHiragana('ああ')).toBe(t...
/* ************************************************************** Copyright 2011 Zoovy, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE...
Package.describe({ summary: "Send email messages", version: "1.0.10" }); Npm.depends({ // Pinned at older version. 0.1.16+ uses mimelib, not mimelib-noiconv which is // much bigger. We need a better solution. mailcomposer: "0.1.15", simplesmtp: "0.3.10", "stream-buffers": "0.2.5"}); Package.onUse(functi...
const jwt = require('jsonwebtoken-promisified'); const appSecret = process.env.APP_SECRET || 'update-for-spotify-users'; module.exports = { sign(user) { const payload = { id: user._id, roles: user.roles, spotify: user._spotifyId }; return jwt.signAsync(pa...
Storage.Prototype = function() {}; Storage.Prototype.prototype.initDefaults = function(db, store) { this.db = (typeof db === "string")?db:'storage'; this.store = (typeof store === "string")?store:null; } Storage.Prototype.prototype.init = function(cfg) { if (this.hasType(cfg, 'db', 'string')) { this.db = c...
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.1.0 * @link http://www.ag-grid.com/ * @license MIT */ import { includes } from "./utils/array"; var OUTSIDE_ANGULAR_EVENTS = ['mouseover', 'mouseout', 'mouseenter', 'mouseleave'...
import { EXPAND_HISTORY_SET, PRESENT_HISTORY_VIDEO_PLAYER, } from 'app/configs+constants/ActionTypes'; import * as VideoPermissionsUtils from 'app/utility/VideoPermissionsUtils'; import * as Analytics from 'app/services/Analytics'; import * as CollapseExpandHistoryActions from 'app/redux/shared_actions/Collapse...
'use strict'; /* * Defining the Package */ var config = require('meanio').loadConfig(); var socketio = require('socket.io'); var socketioJwt = require('socketio-jwt'); var Module = require('meanio').Module; var Io = new Module('io'); /* * All MEAN packages require registration * Dependency injection is used to...
// @inheritedComponent Transition import React from 'react'; import PropTypes from 'prop-types'; import Transition from 'react-transition-group/Transition'; import withTheme from '../styles/withTheme'; import { reflow, getTransitionProps } from '../transitions/utils'; function getScale(value) { return `scale(${valu...
/** * @flow */ import React, { Component } from 'react'; export type Props = { foo: string } /** * This is a Flow class component */ export default class FlowComponent extends Component<Props> { render() { return <h1>Hello world</h1>; } foo(a: string): string { return a; } bar(a: string): s...
/** * Created by gaginho on 08.07.17. */
const throttle = require('lodash.throttle') function emitSocketProgress (uploader, progressData, file) { const { progress, bytesUploaded, bytesTotal } = progressData if (progress) { uploader.uppy.log(`Upload progress: ${progress}`) uploader.uppy.emit('upload-progress', file, { uploader, bytesUp...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Song = mongoose.model('Song'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, ...
/** * Defines the main routes in the application. * The routes you see here will be anchors '#/' unless specifically configured otherwise. */ define(['./app'], function (app) { 'use strict'; app.config([ '$routeProvider', function($routeProvider) { return $routeProvider.when('/', { ...
var cli = require("commander"); var async = require("async"); var inputData = ""; var note = require("../core/note"); var db = require("../db"); var log = require("../log"); cli .option("-d, --db [dbFile]", "The path to a database file. If omitted, it will use $HOME/.sn.") .option("-t, --tags <tags...>", "Tags asso...
import { RECEIVE_FIELDS, PERSIST_FIELDS } from '../actions' export default (state = { fields: [] }, action) => { switch (action.type) { case RECEIVE_FIELDS: case PERSIST_FIELDS: return Object.assign({}, state, action.fieldData) default: return state } }
/** * @param {Array=} optElements * @constructor */ function Queue(optElements) { if (optElements instanceof Array) { this.items = optElements; } else { this.items = []; } this.length = this.items.length; } /** * @param {*} item */ Queue.prototype.enqueue = function(item) { this.length += 1; ...
import thunk from 'redux-thunk' import {createAction, handleActions} from 'redux-actions' import {createStore, applyMiddleware, compose} from 'redux' import lock from '../components/lock' import {fail} from './error-handle' import _ from 'lodash' let composeEnhancers = compose if (process.env.NODE_ENV === 'development...
var assert = require('assert') , should = require('chai').should();
define(['lodash', './action', 'actors/actor', 'util/vec2d'], function (_, Action, Actor, Vec2d) { const PROPS = ['mass'], NAME = 'newton-gravity', G = 6.674e-11; /** * * @constructor * @this {NewtonianGravity} * */ function NewtonianGravity(opts = {}) { Action.call(this, ...
class CameraControl { constructor(args = {}) { this.onClick = args.onClick; } onAdd(map) { this._map = map; this._container = document.createElement('div'); this._container.className = 'mapboxgl-ctrl mapboxgl-ctrl-group'; this._button = document.createElement('button'); this._button.oncl...
var searchData= [ ['dawson',['Dawson',['../_faddeeva__c_8c.html#a9f9b8aa6d1143a656c0f27d1a6828e2e',1,'Dawson(double x):&#160;Faddeeva_c.c'],['../_faddeeva__c_8c.html#a3f435476f41c8cfeb7f3a9a379dc6130',1,'Dawson(cmplx z, double relerr):&#160;Faddeeva_c.c']]] ];
/* global describe, it */ import { expect } from 'chai'; import Types from '../src/Types'; import createModel from '../src/createModel'; import createCollection from '../src/createCollection'; import isModel from '../src/isModel'; import isCollection from '../src/isCollection'; describe('createCollection', function (...
var layout = { div: document.createElement('div'), content: document.createElement('div'), } function renderIndex(){ layout.div.className = 'bodyDiv'; layout.content.className = 'contentDiv'; document.body.appendChild(layout.div); layout.div.appendChild(layout.content); } function makeCell(){ var cell = d...
var i = 0; function start($,i){ var event = document.createEvent('MouseEvents'); event.initMouseEvent('mousedown', true, true, window, 1, 292, 337, 292, 337, false, false, false, false, 0, null); var time = 80; if( document.getElementsByClassName('reaction-time-test view-splash').length > 0 ){ $...
version https://git-lfs.github.com/spec/v1 oid sha256:cd25bc7cc458f5674ed58aa43944d0a08754a12e80989f9c1de9411627b76ab4 size 4216
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"045598f930547feb805f":function(f,n,c){},"735d21ff8fd0131f1fb5":function(f,n,c){},"7b90ca457552f1f8e532":function(f,n,c){},"99ceadf9884fb390f015":function(f,n,c){},ca73ec2dff1d1b6b77b6:function(f,n,c){}}]);
import React, { Component, StyleSheet, PropTypes, View } from 'react-native'; export default class Body extends Component { static propTypes = { children: PropTypes.node.isRequired }; render() { const { theme, children } = this.props; return ( <View style={ styles.con...
var MongoClient = require('mongodb').MongoClient var WebSocketServer = require('websocket').server; module.app = {}; module.app.settings = { mongodburl: 'mongodb://localhost:27017/timertest' } module.exports.set = function(key,val){ module.app.settings[key] = val; } module.exports.start = fu...
function render() { return pug` .component .component__title Title include ./test/fixtures/include-template/test.pug ` }
import React, {Component, PropTypes} from 'react'; import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button, DatePicker, InputNumber, Card } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; import InspectView from 'common/basic/components/InspectView'; import SubItemCont...
var Api = require('../../lib/api'), createAPIRequest = require('../../lib/apirequest'); var util = require('util'); function Blogs(options) { Blogs.super_.call(this); var self = this; this._options = options || {}; /** * lists.list * @param {object} params Parameters for the request * @param ...
import styled from 'styled-components'; const Label = styled.label` padding-right: 5px; white-space: nowrap; font-size: 12px; line-height: 12px; text-transform: uppercase; `; export default Label;
const http = require('http'); async function requestHandler(request, response) { response.end('Hello world!'); } const server = http.createServer(requestHandler); server.listen(5000, (err) => { if (err) { return console.log('something bad happened', err) } console.log(`deploying server is listening on ${5000}...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Domain = require('../base/Domain'); /* jshint ignore:line */ var V1 = require('....
// This file configures a web server for testing the production build // on your local machine. import browserSync from 'browser-sync'; import historyApiFallback from 'connect-history-api-fallback'; import {chalkProcessing} from './chalkConfig'; /* eslint-disable no-console */ console.log(chalkProcessing('Opening pr...
/** * Litepublisher shop script * Copyright (C) 2010 - 2014 Vladimir Yushko http://litepublisher.ru/ http://litepublisher.com/ * Comercial license. IMPORTANT: THE SOFTWARE IS LICENSED, NOT SOLD. Please read the following License Agreement (plugins/shop/license.txt) * You can use one license on one website **/ (fu...
module.exports = function(){ var gulp = this.gulp, $ = this.opts.$; return gulp.src('dist/css/style.css',{base:'./'}) .pipe($.cssmin({ //* for keeping all (default), 1 for keeping first one only, 0 for removing all keepSpecialComments:1 })) .pipe($.rename...
/* eslint-env jest */ const cmdRun = jest.genMockFromModule('../lib/command-run'); module.exports = cmdRun;
// var customerName = "Ratra"; // var products = [ // "Brookln T-Shirt White", // "Brookln T-Shirt Black", // "Apple Watch", // "Android Phone" // ]; // var prices = [10, 10, 199, 159]; // var price = 10; // var quantity = 2; // var priceDiscount; // //var totalPrice = price * quantity; // var customerElement = do...
var Renderer = (function () { function Renderer(recipeCategoriesSummary) { this.recipeCategoriesSummary = recipeCategoriesSummary; if (recipeCategoriesSummary) { this.renderCategories(recipeCategoriesSummary); } else { this.renderError(); } } /...
var words = function(yourString) { var toReturn = 0; yourString = yourString.replace("\n"," "); yourString = yourString.replace("\t"," "); yourString = yourString.replace(" "," "); var tempSortArray = yourString.split(" "); var senLength = tempSortArray.length; var tempWord = ""; //var wordCount = 0; ...
import React, { PropTypes } from 'react' const Todo = ({ onClick, completed, text }) => ( <li onClick={onClick} style={{textDecoration: completed ? 'line-through': 'none'}} > {text} </li> ) Todo.propTypes = { text: PropTypes.string.isRequired } export default Todo
'use strict'; var calendars = require('./calendars'); var Lib = require('../../lib'); var constants = require('../../constants/numerical'); var EPOCHJD = constants.EPOCHJD; var ONEDAY = constants.ONEDAY; var attributes = { valType: 'enumerated', values: Lib.sortObjectKeys(calendars.calendars), editType:...
/* artifact generator: C:\My\wizzi\v5\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\plugins\wizzi-core\src\ittf\lib\artifacts\xml\document\gen\main.js.ittf */ 'use strict'; var util = require('util'); var md = module.exports = {}; var myname = 'xml.docume...
'use strict' var React = require('react') var moment = require('moment') var copyUtils = require('copy-utils') var copy = copyUtils.copy var copyList = copyUtils.copyList var asConfig = require('./utils/asConfig') var MonthView = require('./MonthView') var YearView = require('./YearView') var DecadeView ...
const express = require('express'); const app = express(); const bookshelf = require('./server/Bookshelf'); const bodyParser = require('body-parser'); const jwt = require('express-jwt'); const jwksRsa = require('jwks-rsa'); const jwks = require('jwks-rsa'); const jwt_decode = require('jwt-decode'); // const cookieParse...
function redirectToSandbox({state, services}) { const userId = state.get('user.id'); services.router.redirect('/mainassignment/' + userId); } export default redirectToSandbox;
SceneJS_ChunkFactory.createChunkType({ type: "texture", build : function() { this._uTexSampler = this._uTexSampler || []; this._uTexMatrix = this._uTexMatrix || []; this._uTexBlendFactor = this._uTexBlendFactor || []; var layers = this.core.layers; if (layers) { ...
!function (a) { "function" == typeof define && define.amd ? define(["jquery", "moment"], a) : a(jQuery, moment) }(function (a, b) { (b.defineLocale || b.lang).call(b, "ar-ma", { months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), monthsShort: "يناير_فبراير...
(function() { angular.module('image-widgets', []) .directive('imgSrc', function($window, $interval) { return { restrict: 'A', scope: { imgSrc: '@', onImgLoad: '&' }, link: function(scope, elem...
'use strict'; var _path = require('path');var _path2 = _interopRequireDefault(_path);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} const escapePathForRegex = dir => { if (_path2.default.sep === '\\') { // Replace "\" with "/" so it's not escaped by escapeS...
"use strict"; /** * The BlockPalette is the side panel on the left that holds all the Blocks. BlockPalette is a static class, since * there is only one Palette. The BlockPalette class creates and manages a set of Categories, each of which * controls the Blocks inside it and the CategoryBN that brings it into the ...
/** * 反向代理 */ var express = require('express'); //var proxy = require('http-proxy').createProxyServer(); var request = require('request'); var acluster = ["http://localhost:3000","http://localhost:3001"]; var aliveACluster = ["http://localhost:3000","http://localhost:3001"];; var app = express(); setInterval(functio...
export {default} from './HeaderGroup'
'use strict' const autoprefixer = require('autoprefixer') const path = require('path') const webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin') const InterpolateHtmlPlugin = require('react-dev-utils/Inter...
import React from 'react'; class ValidateInput extends React.Component { constructor(props) { super(props); this.state = { validate: false } this.startValidating = this.startValidating.bind(this); this.validate = this.validate.bind(this); } startValidating(e) { if (!this.state.valid...
import React, { Component, PropTypes } from "react"; import { View, Text, Dimensions, StyleSheet, TouchableOpacity } from "react-native"; import { withNavigation } from "@expo/ex-navigation"; import colors from "kolors"; import Collapsible from "react-native-collapsible"; import ElevatedView from "fiber-react...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M18.71 13.29 22.3 9.7c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L19 10.17V4c0-.55-.45-1-1-1s-1 .45-1 1v6.17l-1.89-1.88a.9959.9959 0 0 0-1.41 0c-.39.39-....
require("babel-core/register"); var app = require('./server/app');
const camelCase = require('camelcase'); const isPlainObject = require('is-plain-object'); const camelizeObject = (data, exceps) => { if (Array.isArray(data)) return data.map(item => camelizeObject(item)); if (!isPlainObject(data)) return data; return Object.keys(data).reduce((result, key) => { const newKey ...