text stringlengths 2 1.04M |
|---|
var test = require("tape")
var MultiMerge = require("../multiple")
var DeepMerge = require("../index")
var deepmerge = DeepMerge(function (target, source) {
return [].concat(target, source)
})
test("deep merge array", function (assert) {
var a = [1, 2, 3]
var b = [4, 5, 6]
var res = deepmerge(a, b)
... |
exports.RequiredError = require('./RequiredError'); |
var searchData=
[
['simulation_2ecpp',['Simulation.cpp',['../_simulation_8cpp.html',1,'']]],
['simulation_2eh',['Simulation.h',['../_simulation_8h.html',1,'']]],
['socket_2ecpp',['socket.cpp',['../socket_8cpp.html',1,'']]],
['socket_2eh',['socket.h',['../socket_8h.html',1,'']]],
['storage_2ecpp',['storage.cpp... |
factory('fnDragDrop', function fnDragDrop($q) {
var elements = []
var dropped = []
var touched = null
var virtual = $q.defer()
var drags = []
/* onEnd will not always fire when multitouching,
therefore we have to check whether a touch event that no longer exist
ended or not, and remove the drag ima... |
const indexList = require('./index-list')
async function loadIndexLists ({ indexPages = {} }, { indexPages: optionIndexPages = {} }) {
const pageIndexLists = Object.entries({
...optionIndexPages,
...indexPages
}).map(async ([key, { inputPath, outputPath, limit, template = null }]) => {
const pages = aw... |
module.exports = require('regenerate')().addRange(0x1700, 0x170C).addRange(0x170E, 0x1714).addRange(0x1735, 0x1736); |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["search-drama-search-drama-module"],{
/***/ "./src/app/search-drama/search-drama.module.ts":
/*!*****************************************************!*\
!*** ./src/app/search-drama/search-drama.module.ts ***!
\******************************************... |
// Generated by CoffeeScript 1.9.1
(function() {
var GitHubStrategy, UserStore, localStrategy;
localStrategy = require('passport-local').Strategy;
GitHubStrategy = require('passport-github').Strategy;
UserStore = require('../services/userStore');
module.exports = function(passport) {
passport.use('loc... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.ImSteam = function ImSteam (props) {
return GenIcon({"tag":"svg","attr":{"version":"1.1","viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"d":"M11 4.5c0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5c0 0.828-0.672 1.5-1.5 1.5s-1.5-0... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
// groups the dynamic import to help get same gains but older browsers not suffer
import "@lrnwebcomponents/hax-body/hax-body.js";
import "@lrnwebcomponents/hax-body/lib/hax-tray.js";
import "@lrnwebcomponents/hax-body/lib/hax-autoloader.js";
import "@lrnwebcomponents/hax-body/lib/hax-app.js";
import "@lrnwebcomponents... |
/**
* @version 0.9
* @misha to think about optimization
*/
import React, { Component } from 'react'
import { View, Text, Image, Platform } from 'react-native'
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
import CustomIcon from './CustomIcon'
import BlocksoftDict from '../../../crypto/commo... |
import React from "react";
import * as d3 from "d3";
import "./towersofhanoi.css";
import Disk from "../../foundation/recursion/Disk";
import Number from "../../foundation/Number";
import "../css/button.css";
import "../css/messages.css";
class EmptyStep {
forward(svg) {}
backward(svg) {}
}
class MoveDiskStep {
... |
import Vue from 'vue';
Vue.config.productionTip = false;
global.window = {};
import localStorage from 'mock-local-storage';
window.localStorage = global.localStorage; |
"use strict";
var convert = require("./convert");
module.exports = {
convert: convert({
c: "degC",
celsius: "degC",
f: "degF",
fahrenheit: "degF",
imperial: "degF",
k: "K",
kelvin: "K",
metric: "degC",
rankine: "degR"
})
}; |
/**
* @file index
* @author Jim Bulkowski <jim.b@paperelectron.com>
* @project Pomegranate-request
* @license MIT {@link http://opensource.org/licenses/MIT}
*/
'use strict';
var request = require('request-promise')
/**
*
* @module index
*/
exports.options = {
defaultBaseUrl: false
}
exports.metadata = {
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
goog.module('test_files.namespaced.local_namespace');
var module = module || { id: 'test_files/namespaced/local_namespace.ts' };
var unexported;
(function (unexported) {
class Unexported {
}
unexported.Unexported = Unexported... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pkgName = '@syncfusion/ej2-angular-barcode-generator';
exports.pkgVer = '^17.2.34';
exports.moduleName = 'BarcodeGeneratorModule, QRCodeGeneratorModule, DataMatrixGeneratorModule';
exports.themeVer = '~17.2.34'; |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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... |
'use strict';
/**
* @ngdoc function
* @name ng.$exceptionHandler
* @requires $log
*
* @description
* Any uncaught exception in angular expressions is delegated to this service.
* The default implementation simply delegates to `$log.error` which logs it into
* the browser console.
*
* In unit tests, if `angul... |
import React, {useState} from 'react';
import {
BrowserRouter as Router,
Switch,
Route,
} from "react-router-dom";
import PrivateRoute from './Utils/PrivateRoute'
import NavBar from './Components/NavBar'
import Login from './Components/Login'
import SignUp from './Components/SignUp'
import { ThemeProvider, ... |
import styled from 'styled-components';
import { Input } from 'styled-base-components';
const FormControlFile = styled(Input)`
display: block;
width: 100%;
box-sizing: border-box;
`;
export { FormControlFile }; |
import { observable, computed, action, flow } from 'mobx'
import { shuffle } from 'lodash-es'
import { fetchLyrics, fetchUrl } from '@/api'
import { parseLrc, isIOS } from '@/utils/tools'
// 播放有关的存储
export class playerStore {
@observable audio = null // audio的引用,audio.current
@observable isPlaying = false // 是否在播... |
import mod1128 from './mod1128';
var value=mod1128+1;
export default value; |
//implementation by Kyla Ramos
//pop up asking whether or not the user wants to submit a suggestion
function suggestconfirm() {
return confirm("Are you sure you want to submit?");
} |
import React, { Component } from "react";
import { catalogShape } from "../../CatalogPropTypes";
import PropTypes from "prop-types";
import { css } from "../../emotion";
import Frame from "../../components/Frame/Frame";
import Specimen from "../../components/Specimen/Specimen";
import HighlightedCode from "../../compon... |
import React from 'react'
import styled from 'styled-components'
import { media } from '../styles'
import { MDXRenderer } from 'gatsby-plugin-mdx'
// All styles for markdown here
const StyledContent = styled.div`
line-height: 1.4;
blockquote {
max-width: 900px;
margin-left: auto;
margin-right: auto;
... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/* globals console:false, document, setTimeout */
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import ArticlePresets from '@ckeditor/ckeditor5-presets/... |
import React from 'react';
import { shallow } from 'enzyme';
import Textarea from './Textarea';
describe('Textarea', () => {
test('Textarea is rendered correctly', () => {
const component = shallow(<Textarea />);
expect(component.find('.a-input').exists()).toBe(true);
});
test('Textarea should... |
var a00306 =
[
[ "parameter", "a00306.html#a04221b8e619bef332234db90d31f3e5e", [
[ "max_allowed_parallelism", "a00306.html#a04221b8e619bef332234db90d31f3e5ea15807f56c0ace1c7a194feab3346f638", null ],
[ "thread_stack_size", "a00306.html#a04221b8e619bef332234db90d31f3e5eabbf02a674a9e7175b8038166c5d47a12",... |
const logger = require('../logger');
const stateHolder = require('../stateHolder');
const sender = require('../messageSender');
module.exports = (req, res, msg) => {
logger.debug('changeCharacter start');
if(stateHolder.roomData[msg.room]){
let room = stateHolder.roomData[msg.room].data;
let character = r... |
import { registerEffectHandler } from 'reffects';
export function cookieSet(cookieToSet) {
return {
'cookie.set': cookieToSet
};
}
export default function registerSetCookieEffect(cookiesClient) {
registerEffectHandler('cookie.set', function setCookie(newCookie) {
cookiesClient.set(newCookie);
});
} |
// Copyright 2015 Teem2 LLC, MIT License (see LICENSE)
define.class('./screen_base', function (require, exports, self) {
}) |
// @flow
import { newRequestSequence } from 'redux-reqseq';
import type { RequestSequence } from 'redux-reqseq';
const GET_STUDY_AUTHORIZATIONS :'GET_STUDY_AUTHORIZATIONS' = 'GET_STUDY_AUTHORIZATIONS';
const getStudyAuthorizations :RequestSequence = newRequestSequence(GET_STUDY_AUTHORIZATIONS);
const UPDATE_ES_PERMI... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { Picker } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
export default class Picker... |
exports.Field = function(Sequelize, sequelize){
return sequelize.define('Field', {
field_id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },
city_id: Sequelize.INTEGER,
type: {
type: Sequelize.ENUM,
values: ['type1', 'type2']
},
center_distance: Sequelize.INTEGER
... |
//# sourceMappingURL=app.ac0def604bc9a13a2d9a.js.map |
import {App} from './app.js'
import {puzzles} from '../../puzzles.manifest.js'
import {commonAssets} from '../../common.manifest.js'
import {difficultySettings} from '../../difficulty.settings.js'
import Utils from './Utils.js'
import {TitleScreen} from './TitleScreen.js'
import {PuzzleMenu} from './PuzzleMenu.js'
im... |
//Install express server
const express = require('express');
const app = express();
// Serve only the static files form the dist directory
app.use(express.static(__dirname + '/dist'));
// const path = require('path');
// app.all('*', function(req, res) {
// res.sendFile(path.join(__dirname + '/dist/index.html'));
... |
const axios = require('axios')
const { client } = require('@arkecosystem/crypto')
const isReachable = require('is-reachable')
const { sample, orderBy } = require('lodash')
const container = require('@arkecosystem/core-container')
const logger = container.resolvePlugin('logger')
const p2p = container.resolvePlugin('p2p'... |
/**
* @name exports
* @summary GraphDefinitionLinkTarget Class
*/
module.exports = class GraphDefinitionLinkTarget {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty(this, '_id... |
import router from './router'
import store from './store'
import NProgress from 'nprogress' // Progress 进度条
import 'nprogress/nprogress.css'// Progress 进度条样式
import { Message } from 'element-ui'
import { getToken } from '@/utils/auth' // 验权
// permissiom judge function
function hasPermission(roles, permissionRoles) {
... |
import React, { forwardRef, Fragment } from "react";
import IconBase from "../primitives/IconBase";
const renderPath = {};
renderPath["outline"] = (color) => (
<Fragment>
<path fill="none" d="M18,18H12.86A6.86,6.86,0,0,1,6,11.14V6" />
</Fragment>
);
renderPath["fill"] = () => (
<Fragment>
<path fill="n... |
const movements = [
{ key: 1, x: 0, y: 67 },
{ key: 2, x: 23, y: 67 },
{ key: 3, x: 46, y: 67 },
{ key: 4, x: 46, y: 67, value: '7' },
{ key: 5, x: 46, y: 67, value: '7/' },
{ key: 6, type: 'note', x: 46, y: 67, value: '7/9' },
{ key: 7, x: 46, y: 67 },
{ key: 8, x: 46, y: 102 },
{ k... |
$(function() {
var type=$("[name=type]").val();
//二级联动
$("#pMenuIdSelect").remoteChained("#menuType","./menuListByMenuType?pMenuId="+$("#pMenuIdTmp").val())
var validForm={
message : 'This value is not valid',
icon : {
valid : 'glyphicon glyphicon-ok',
invalid : 'glyphicon glyphicon-remove',
validating... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/* All public components */
export * from "./index.components";
/* Non-component common constants and methods */
export * from "./index.common"; |
import library from 'library-name';
if (conditionMet) {
require('global-pollution');
}
const result = library.someFunction();
console.log(result);
// prints 'some-result' |
var fs = require('graceful-fs'),
path = require('path'),
_ = require('lodash'),
glob = require('glob'),
Q = require('q');
var stagecraftStubDir = path.resolve(__dirname, '../app/support/stagecraft_stub/responses'),
stagecraftStubGlob = path.resolve(stagecraftStubDir, '**/*.json');
var dashboards =... |
// https://www.deboy.cn/set-wechat-title-in-vuejs-spa.html
export default {
install(Vue, opts) {
if (!Vue.$vux) {
Vue.$vux = {
setTitle: setTitle
}
} else {
Vue.$vux.setTitle = setTitle
}
}
}
var setTitle = function (title, url = '/favicon.ico') {
if (title === undefined) {
... |
export { default } from './UserForm';
export {}; |
/**
* Bloom.js
*
* Javascript implementation of a Bloom Filter.
*
* @author <a href="mailto:sean@fogstack.com">Sean Byrnes</a>
* @see https://github.com/sbyrnes/bloom.js
*/
var MurmurHash = require('./murmurhash.js');
var BitArray = require('bit-array');
var DEFAULT_NUM_BUCKETS = 1000;
var DEFAULT_NUM_HASHES... |
'use strict';
const Utils = require('../../utils');
const debug = Utils.getLogger().debugContext('sql:mssql');
const Promise = require('../../promise');
const AbstractQuery = require('../abstract/query');
const sequelizeErrors = require('../../errors.js');
const parserStore = require('../parserStore')('mssql');
const ... |
/*!
* froala_editor v2.5.2 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2017 Froala Labs
*/
/**
* Hebrew
*/
$.FE.LANGUAGE['he'] = {
translation: {
// Place holder
"Type something": "\u05d4\u05e7\u05dc\u05d3 \u05db\u05d0\u05df",
// Bas... |
import { SSRT } from './SSRT.js';
export const getRulerSegmentLabel = (segmentDistance, totalDistance, isTotal) => {
const units = canvas.scene.data.gridUnits;
let label = getDistanceWithMod(segmentDistance, units);
if (isTotal && segmentDistance !== totalDistance) {
label += ` [${getDistanceWith... |
import ComponentWithReactIntl from './ComponentWithReactIntl.container';
export default ComponentWithReactIntl; |
/**
* Created by Zaccary on 19/03/2017.
*/
const { pick, omit } = require('lodash');
const filterRoomUser = function filterRoomUser(user) {
return pick(user, [
'_id',
'handle',
'operator_id',
'user_id',
'username',
'isBroadcasting',
'assignedBy',
]);
};
const filterClientUser = func... |
var EventEmitter = require('events').EventEmitter;
var sys = require('sys');
var https = require('https');
var sessionUrlHost = 'api.tropo.com';
var sessionUrlPath = '/1.0/sessions?action=create&token=';
TropoSession = function() {
this.responseBody;
};
TropoSession.prototype = new EventEmitter;
TropoSession.prot... |
"use strict";
const inputRef = document.querySelector("#validation-input");
const dataRef = +inputRef.dataset.length;
const onBlur = (event) => {
const inputLength = event.currentTarget.value.length;
if (dataRef === inputLength) {
inputRef.classList.add("valid");
inputRef.classList.remove("invalid");
}... |
'use strict'
var fs = require('fs')
var path = require('path')
var resolve = path.resolve
var osenv = require('osenv')
var mkdirp = require('mkdirp')
var rimraf = require('rimraf')
var test = require('tap').test
var npm = require('../../lib/npm')
var common = require('../common-tap')
var chain = require('slide').chain... |
import React, {Component} from 'react';
import {
StyleSheet,
View,
TouchableOpacity,
Text,
Alert,
Platform
} from 'react-native';
export default class CustomTopBar extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<View style={styles.con... |
/*
* Tests time-series server parameter settings on server startup.
* @tags: [
* requires_replication
* ]
*/
(function() {
'use strict';
load("jstests/core/timeseries/libs/timeseries.js");
load("jstests/noPassthrough/libs/server_parameter_helpers.js");
// Valid parameter values are in the range [0, infinity)... |
var server = require('./server')
, assert = require('assert')
, request = require('../main.js')
var s = server.createServer()
var ss = server.createSSLServer()
var sUrl = 'http://localhost:' + s.port
var ssUrl = 'https://localhost:' + ss.port
s.listen(s.port, bouncy(s, ssUrl))
ss.listen(ss.port, bouncy(ss, sUrl)... |
var parallel = require('run-parallel')
var waterfall = require('run-waterfall')
var assert = require('@smallwins/validate/assert')
var aws = require('aws-sdk')
var print = require('../../_print')
var getLambda = require('../_get-lambda')
var getName = require('../../../util/get-lambda-name')
module.exports = function ... |
/* eslint-disable */
async function getData() {
const b = a + await getSessionStatusApi();
}
async function getApiData() {
await getApiData();
}
async function getQuestionsData() {
const c = b + await new Api().getQuestionsData();
}
async function getNormalData() {
const c = await getData;
}
async function r... |
(function () {
'use strict';
angular.module('DemoAdmin.theme')
.filter('profilePicture', profilePicture);
/** @ngInject */
function profilePicture(layoutPaths) {
return function(input, ext) {
ext = ext || 'png';
return layoutPaths.images.profile + input + '.' + ext;
};
}
})(); |
import firebase from 'firebase/app';
import { app } from '../../../../config/firebase';
const signupWithGoogle = (user, userInfo) => {
app.firestore().collection('users').doc(user.uid).set({
firstName: userInfo.profile.given_name,
lastName: userInfo.profile.family_name,
});
const batch = ap... |
'use strict';
module.exports.controller = function (app) {
app.get('/hello', function (req, res) { // When user requests hello page
res.render('hello/hello', { // Render hello page
});
});
}; |
import debug from 'debug';
import set from 'just-safe-set';
import WebRTCStar from 'libp2p-webrtc-star';
import { create } from 'ipfs-core';
import { HttpApi } from 'ipfs-http-server';
import { HttpGateway } from 'ipfs-http-gateway';
import { createServer as gRPCServer } from 'ipfs-grpc-server';
import { isElectron } f... |
module.exports = {
PIPE: '|',
CODE: {
Info: 'info',
Warn: 'warn',
Error: 'error',
Notice: 'notice'
},
FONT: {
Reset: "\x1b[0m",
Bright: "\x1b[1m",
Dim: "\x1b[2m",
Underscore: "\x1b[4m",
Blink: "\x1b[5m",
... |
{"frequencies":[261.6255653006,271.31540105247,279.06726965397,294.32876096318,305.22982618403,313.95067836072,327.03195662575,336.37572681506,348.83408706747,361.75386806997,367.91095120397,372.08969287196,378.42269266694,392.4383479509,406.97310157871,418.60090448096,436.04260883433,448.50096908674,465.11211608996,49... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/base/DataType","sap/ui/core/ComponentContainer","sap/ui/core/library","sap/base/Log","sap/base/util/ObjectPath","sap/base/strings/camelize"],funct... |
import React, { useState } from 'react';
import '../Contact/contact.css'
import { validateEmail } from '../../utils/helpers';
import { Button, Form } from 'react-bootstrap';
import {Animated} from "react-animated-css";
function ContactForm() {
const [formState, setFormState] = useState({ name: '', email: '', message... |
'use strict';
const path = require('path');
const gulp = require('gulp');
const conf = require('./conf');
const $ = require('gulp-load-plugins')();
const wiredep = require('wiredep').stream;
const _ = require('lodash');
gulp.task('inject', ['scripts'], () => {
let injectStyles = gulp.src([
path.join(conf.path... |
/*jslint plusplus: true, devel: true, nomen: true, node: true, indent: 4, maxerr: 50 */
"use strict";
exports.createStore = function (name, opts) {
switch (name) {
case "memory":
case "redis":
name = "./stores/" + name;
break;
}
return new (require(name))(opts);
};
/// <summary>
... |
require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
var imageDatas = require('../data/imageDatas.json');
// 利用自执行函数,将图片名信息转成图片URL路径信息
imageDatas = (function getImageURL(imageDatasArr){
for(var i = 0, j=imageDatasArr.length; i<j; i++){
v... |
import Filter from "./Filter";
import { connect } from "react-redux";
import * as contactsActions from "../../redux/contactsActions";
import { getContacts, getFilter } from "../../redux/selector";
const mapStateToProps = (state) => ({
contacts: getContacts(state),
filter: getFilter(state),
});
const mapDispatchTo... |
angular.module('statistics')
.controller('statisticsCodeCtrl', ['$scope', '$http', '$state', 'commitsTrend', 'commitsPunchCard', 'user', 'url',
function($scope, $http, $state, commitsTrend, commitsPunchCard, user, url) {
$scope.tab = 1;
$scope.isSet = function(checkTab) {
... |
import {
AppBar,
Slide,
withStyles,
useScrollTrigger,
Hidden,
Drawer,
List,
ListItem,
ListItemText,
} from '@material-ui/core';
import React, { useState } from 'react';
import Typo from '../typo';
import onScroll from 'gatsby-plugin-smoothscroll';
import styles from './styles';
import { FaBars } from ... |
Array.prototype.nahasi = function() {
var i = this.length, j, temp;
if ( i == 0 ) return this;
while ( --i ) {
j = Math.floor( Math.random() * ( i + 1 ) );
temp = this[i];
this[i] = this[j];
this[j] = temp;
}
return this;
} |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
$('.tooltip-demo').tooltip({
selector: "[data-toggle=tooltip]",
container: "body"
});
$('.checkbox input').iCheck({
checkboxC... |
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("EthRPC",[],r):"object"==typeof exports?exports.EthRPC=r():t.EthRPC=r()}(this,function(){return function(t){function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t... |
const express = require('express');
const app = express();
const usersRoute = require('./routes/users');
var allowCrossDomain = function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header('Access-Control-Al... |
/* Driver template for the LEMON parser generator.
** The author disclaims copyright to this source code.
*/
/* First off, code is included that follows the "include" declaration
** in the input grammar file. */
#include <stdio.h>
%%
/* Next is all token values, in a form suitable for use by makeheaders.
** This secti... |
const Joi = require("joi");
const passwordSchema = Joi.object({
password: Joi.string().min(8).required().messages({
"string.base": `Password can be letters or numbers`,
"string.empty": `Password cannot be an empty field`,
"string.min": `Password should have a minimum length of {#limit}`,
"any.require... |
// Copyright (c) 2022 Codexpo Technologies.
import React from 'react';
import { mount } from 'enzyme';
import { PDFPage } from 'components/drivers/pdf-viewer';
describe('pdf-viewer', () => {
let spy;
beforeEach(() => {
spy = jest.spyOn(PDFPage.prototype, 'fetchAndRenderPage').mockImplementation(() => {})
})... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
... |
import React, { Component } from 'react';
import {
Dimensions,
Image,
LayoutAnimation,
View,
Text,
TouchableHighlight,
TouchableOpacity,
ScrollView
} from 'react-native';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import IceColors from './ice-colors';
import commonStyles fro... |
import React, { Component } from 'react';
import { PanResponder } from 'react-native';
import { ShoppingCart } from '../shopping-cart';
import { Credentials } from '../credentials';
import SwagGridItem from './SwagGridItem';
import SwagRowItem from './SwagRowItem';
import { SCREENS } from '../config/Constants';
import ... |
/* Copyright 2017 Mozilla Foundation
*
* 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... |
/**
* Generated bundle index. Do not edit.
*/
export * from './public-api';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkM6L1VzZXJzL3VzZXIvRGVza3RvcC9QUk9KRUNUUy9TVFVBTkEvSWRleVBheS90b3ZvLWFuZ3VsYXItOS1hcHAtbGFuZGluZy1wYWdlL25vZGVfbW9kdWxlcy9AYW5ndWxhci9jZGsvZXNtM... |
/**
* 事件类
* by BuggMaker
*/
import {
UtilObj
} from '../utils/index'
import {
Class
} from '../core/Class'
/**
* Class Event(Object:target,EventType || String:type,function:callback,bool:once)
* 事件数据结构
* 记录事件的目标对象,类型.是否执行一次,回调函数
* 参数:触发事件的对象/事件类型/回调函数/是否只执行一次
*/
var Event = function (target, type, call... |
import React from 'react';
import { makeStyles } from '@material-ui/styles';
const useStyles = makeStyles((theme) => ({
root: {
background: '#FFFFFF',
border: '1px solid rgba(0, 0, 0, 0.12)',
boxSizing: 'border-box',
borderRadius: '8px',
padding: '26px 32px 26px 32px',
display: 'flex',
wi... |
import mapboxgl from "mapbox-gl";
import "../core/Base";
import { Parse } from "../core/Parse";
/**
* @class mapboxgl.ekmap.Util
* @category BaseType Util
* @classdesc The tool class.
*/
export class Util {
static isNumber(value) {
if (value === "") {
return false;
}
let md... |
import { default as Window } from './UI/Window';
export { default as IOStream } from './IOStream';
import { default as IOStream } from './IOStream';
import { default as Buffer } from './Buffer';
export default class Stream {
constructor (object) {
if (object && object.apiName && object.apiName.endsWith('.Stream'))... |
const { body, validationResult } = require('express-validator');
const User = require('../models/user');
const bcrypt = require('bcryptjs');
const passport = require('passport');
// GET User Sign-Up Form
exports.userSignUpGet = (req, res) =>
res.render('sign-up', { title: 'Sign-Up' });
// POST User Sign-Up Form
exp... |
const { isoDate } = require('./lib/es-utils')
class BugsnagBreadcrumb {
constructor (name = '[anonymous]', metaData = {}, type = 'manual', timestamp = isoDate()) {
this.type = type
this.name = name
this.metaData = metaData
this.timestamp = timestamp
}
toJSON () {
return {
type: this.ty... |
define([
'../core',
'../manipulation' // appendTo
], function(jQuery) {
var iframe,
elemdisplay = {};
/**
* Retrieve the actual display of a element
* @param {String} name nodeName of the element
* @param {Object} doc Document object
*/
// Called only from within defaultDisplay
function ac... |
'use strict';
const path = require('path'); // eslint-disable-line no-undef
const settings = require('./settings').init(); // eslint-disable-line no-undef
const fs = require('fs-extra'); // eslint-disable-line no-undef
const fileUrl = require('file-url'); // eslint-disable-line no-undef
const electron = require('electr... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
const NormalizationCodeGenerator = require('./NormalizationCodeGenerator');
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.