text stringlengths 2 1.04M |
|---|
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslin... |
require(`dotenv`).config()
const fs = require(`fs`)
const path = require(`path`)
const yaml = require(`js-yaml`)
const mongodb = require(`mongodb`)
const { MongoClient } = mongodb
module.exports = () => {
MongoClient
.connect(`mongodb+srv://${process.env.MONGODB_HOST}`, {
ssl: true,
auth: {
... |
import GroupItem from './group-item';
export default ({ title, items }) => (
<div className="example-group" id={title.split(' ').join('-')}>
<h3 className="anchor">{title}</h3>
<div className="examples">
{items.map(ex => (
<GroupItem {...ex} key={ex.href} />
))}
</div>
<style jsx... |
window.addEventListener("DOMContentLoaded", () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector);
if (element) element.innerText = text;
}
for (const dependency of ["chrome", "node", "electron"]) {
replaceText(`${dependency}-version`, process.versions[de... |
var xutil = require('./xutil');
var hexy = require('./hexy').hexy;
var valueMask = {
CreateWindow: {
backgroundPixmap: 0x00000001,
backgroundPixel : 0x00000002,
borderPixmap : 0x00000004,
borderPixel : 0x00000008,
bitGravity : 0x00000010,
winGravity ... |
import "./App.css";
import { withStyles } from "@material-ui/core/styles";
import AppBar from "@material-ui/core/AppBar";
import Button from "@material-ui/core/Button";
import IconButton from "@material-ui/core/IconButton";
import MenuIcon from "@material-ui/icons/Menu";
import PropTypes from "prop-types";
import React... |
import path from 'path';
export default {
module: {
loaders: [{
test: /\.jsx?$/,
loaders: ['babel-loader'],
exclude: /node_modules/
}, {
test: /\.json$/,
loader: 'json-loader'
}]
},
output: {
path: path.join(__dirname, 'app'),
filename: 'bundle.js',
libraryTa... |
var Writable = require('web-audio-stream/writable');
const config = {
url_login : 'https://ptt-demo.herokuapp.com/login',
url_subscribe: 'https://ptt-demo.herokuapp.com/subscribe?channel=',
url_socket: 'wss://ptt-demo.herokuapp.com/wss?id='
};
const ptt = (function() {
var writable;
var context;
... |
import { ASSISTED_USERS_MYSELF } from '@ringcentral-integration/commons/modules/RcVideo/constants';
export default {
topic: "会议标题",
date: "日期",
startTime: "时间",
duration: "持续时间",
scheduleFor: "代表以下人员安排时间:",
meetingSettings: "会议设置",
[ASSISTED_USERS_MYSELF]: "自己",
joinBeforeHost: "允许参与者在主持人之前加入",
enable... |
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'linebreak-style': ['off'],
'no-console': ['off'],
'operator-assignment': ['error', 'never'],... |
/*! For license information please see 4.ba6fac13.chunk.js.LICENSE.txt */
//# sourceMappingURL=4.ba6fac13.chunk.js.map |
import kebabCase from 'lodash/kebabCase'
import startCase from 'lodash/startCase'
// Parse a fully qualified version from a string
export const parseVersion = version => {
const matches = version.match(/([0-9]+\.[0-9]+\.[0-9]+)/g)
const matchesCount = matches.length
return matchesCount > 0 ? matches[matchesCount... |
define({
"styleText": "Kies een stijl voor de swipe tool",
"vertical": "Verticale balk",
"horizontal": "Horizontale balk",
"scope": "Verrekijker",
"layerText": "Selecteer de laag waarop swipe standaard moet worden toegepast",
"spyglassText": "Selecteer de laag die standaard binnen de verrekijker moet versch... |
const jestDynalite = require("jest-dynalite");
const path = require("path");
/**
* Must be a root of this package.
*/
jestDynalite.setup(path.resolve(__dirname, "../../"));
/**
* Assign all required dynalite lifecycle methods.
* And add custom lifecycle methods that are defined in the environment.js global
*/
befo... |
const parserTestCases = require('./fixtures/parserTestCases.json');
import {parse} from '../../parse';
function withDefaults(expectedNode) {
if (expectedNode.type === 'ElementNode') {
expectedNode.attributes = expectedNode.attributes || {};
expectedNode.children = expectedNode.children || [];
for (const attribu... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("language","de-ch",{button:"Sprache festlegen",remove:"Sprache entfernen"}); |
/**
* Creates a real-valued chart
* @function realChart
* @param {HTMLElement} dom The HTMLElement it should live in
* @param {string} name The y-label of the chart
* @param {number} step The step between points in time
* @param {number[]} signal The y-values for points in time and in between
* @returns
*/
var... |
import React from 'react'
import { graphql } from 'gatsby'
import AwesomeSlider from 'react-awesome-slider';
import withAutoplay from 'react-awesome-slider/dist/autoplay';
import 'react-awesome-slider/dist/custom-animations/scale-out-animation.css';
import 'react-awesome-slider/dist/styles.css';
import Layout from '.... |
/**
* Menu
*
* Adds a sliding menu to the top of the page.
*
* Usage:
*
* window.addEvent('domready', function() {
* new Menu();
* });
*
* @license MIT License
* @author stensi
* @link http://stensi.com
*/
var Menu = new Class({
// implements
Implements: [Options],
// options
options: {
basepath:... |
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faFacebook, faGithub, faLinkedin } from "@fortawesome/free-brands-svg-icons";
import "./Footer.scss";
const Footer = () => {
return (
<div className="footer d-flex flex-column justify-content-center align-items-ce... |
'use strict';
import VertexBuffer from './vertex-buffer';
import IndexBuffer from './index-buffer';
import CellShader from './shaders/cell-shader';
const mat4 = require('gl-matrix').mat4;
const vec2 = require('gl-matrix').vec2;
const vec3 = require('gl-matrix').vec3;
const vec4 = require('gl-matrix').vec4;
const si... |
const my = module.exports
my.benchSet = (runs, warmUps, verify, ...benchmarks) => {
const times = {}
let runsLeft = runs + warmUps
console.log(`
Runs: ${runs} runs (+ ${warmUps} warm-up runs)
Variations: ${benchmarks.length}
`)
while (runsLeft--) {
benchmarks.forEach(bench => {
const { label, time ... |
/**
* home.js
*/
import React, {useState, useEffect} from 'react';
import {
View,
Text,
Image,
StyleSheet,
Modal,
Alert,
TextInput,
TouchableHighlight,
} from 'react-native';
import Voice from '@react-native-community/voice';
import {useSelector, useDispatch} from 'react-redux';
impo... |
import { configureStore, combineReducers } from '@reduxjs/toolkit';
// import {
// // persistStore,
// // persistReducer,
// FLUSH,
// REHYDRATE,
// PAUSE,
// PERSIST,
// PURGE,
// REGISTER,
// } from 'redux-persist';
// import storage from 'redux-persist/lib/storage';
import {
contactsReducer,
filt... |
class ReqDAO {
constructor (connection) {
this._connection = connection;
}
createReqs (collection, callback) {
collection.forEach(e => {
_connection.collection("requirements").doc(e.id).set(e)
});
callback
res.send('Requisitos criados!')
}
}
module.exports = function () {
return ReqDAO;
} |
const LenoxCommand = require('../LenoxCommand.js');
module.exports = class skipvoteCommand extends LenoxCommand {
constructor(client) {
super(client, {
name: 'skipvote',
group: 'music',
memberName: 'skipvote',
description: 'Toggles the skipvote function',
format: 'skipvote',
aliases: [],
exampl... |
export default {
methods: {
// 设置月份数据
setMonth() {
// 月初是周几
const day = dayjs(this.date).date(1).day()
const start = day == 0 ? 6 : day - 1
// 本月天数
const days = dayjs(this.date).endOf('month').format('D')
// 上个月天数
... |
import React from "react"
import RichText from '../components/richText';
import styled from 'styled-components'
const PriceItemWrapper = styled.div `
flex-grow:1;
flex-basis: 0;
margin: 0 10px;
background: ${p => p.mostPopular ? 'orange' : '#eee'};
color: ${p => p.mostPopular ? 'white' : 'black'}... |
/**
* @license
* Copyright 2021 Google LLC. All Rights Reserved.
* 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 a... |
import { Router } from "express";
import { signUp, signIn } from "../controllers/auth.controller";
const router = Router()
router.post('/signup', signUp)
router.post('/login', signIn)
export default router; |
/**
* @fileoverview demo.
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 0.3.0.0, Sep 3, 2019
*/
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin')
const pkg = require(... |
import React from 'react'
import BlueBarTop from './../components/BlueBar/BlueBarTop/BlueBarTop'
import GoogleMap from './../components/GoogleMap/GoogleMap'
import ClearAbsoluteHeight from './../components/ClearAbsoluteHeight/ClearAbsoluteHeight'
import Form from './../components/Form/Form'
const Contact = () => (
<... |
var searchData=
[
['deltatime',['DeltaTime',['../class___n_l_1_1_engine_1_1_time.html#a82ad92e37e8c4fd1079d0f35b5fcf90f',1,'_NL::Engine::Time']]],
['depthstenciltexture',['DepthStencilTexture',['../class___n_l_1_1_object_1_1_camera_obj.html#ac12d6c9e30407eaf62eeb8e2d51b6453',1,'_NL::Object::CameraObj']]],
['direc... |
// Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
require('./bootstrap');
window.Vue = require('vue');
import { BootstrapVue } from 'bootstrap-vue'
import store from './store'
import VueSweetalert2 from 'vue-sweetalert2';
import 'sweetalert2/dist/sweetalert2.min.css';
Vue.use(VueSweetalert2);
Vue.use(BootstrapVue)
Vue.component('example-component', require('./... |
var searchData=
[
['findmodule',['FindModule',['../classveins_1_1_find_module.html',1,'veins']]],
['fwmath',['FWMath',['../classveins_1_1_f_w_math.html',1,'veins']]]
]; |
/* global sinon */
sap.ui.define([
"sap/ui/test/Opa5",
"sap/ui/test/matchers/Properties",
"sap/ui/test/matchers/Ancestor",
"sap/ui/test/actions/Press",
"sap/ui/core/util/File",
"sap/ui/thirdparty/jszip",
"sap/ui/Device"
], function(Opa5, Properties, Ancestor, Press, File, JSZip, Device) {
"use strict";
var s... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var files_1 = require("../controllers/files");
var FileRoutes = /** @class */ (function () {
function FileRoutes() {
}
FileRoutes.prototype.routes = function (app, auth) {
app.route('/file')
.post(auth, function... |
import React, { memo } from 'react';
import Modal from '../../common/Modal';
import { useDispatch, useSelector } from 'react-redux';
import { setOpenSnapshotSavingDialog } from '../redux/actions';
import { NewSnapshotForm } from './newSnapshotForm';
import { AddProjectDetail } from '../../projects/addProjectDetail';
im... |
module.exports = {
// Create a vertical space
verticalSpace(lines = 1) {
for (let i = 0; i < lines; i++) {
console.log('');
}
},
// Create a horizontal line across the screen
horizontalLine(color) {
// Get the available screen size
const width = process.stdout.columns;
// Put in ... |
const Promise = require('bluebird')
const $scriptUtils = require('@packages/driver/src/cypress/script_utils')
const $networkUtils = require('@packages/driver/src/cypress/network_utils')
const $sourceMapUtils = require('@packages/driver/src/cypress/source_map_utils')
describe('src/cypress/script_utils', () => {
conte... |
/*
Template Name: Heyqo - Admin & Dashboard Template
Author: Myra Studio
File: Knob Chart
*/
$(function(){$('[data-plugin="knob"]').knob()}); |
const btnAtualizar = document.getElementById("btnAtualizar");
window.addEventListener("load",()=>{
var id = window.location.search;
id = id.substring(1,id.length);
fetch("http://localhost:3350/noticias/"+id)
.then((response)=>response.json())
.then((rs)=>{
document.getElementById("titulo")... |
const fs = require("fs");
const path = require("path");
function filterByQuery(query, animalsArray) {
let personalityTraitsArray = [];
// Note that we save the animalsArray as filteredResults here:
let filteredResults = animalsArray;
if (query.personalityTraits) {
// Save personalityTraits as a... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define('underscore', factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
var current = global.... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === '... |
const graphqlHTTP = require('express-graphql');
const router = require('express').Router();
const util = require('../util/index');
const schema = require('../schema/index');
router.get(
'/',
graphqlHTTP({
schema,
graphiql: !util.isProduction(),
}),
);
router.post(
'/',
graphqlHTTP({
schema,
... |
// @flow
const { db } = require('shared/db');
import type { DBCommunitySettings, DBCommunity } from 'shared/types';
import { getCommunityById } from './community';
import uuidv4 from 'uuid/v4';
import axios from 'axios';
import { decryptString } from 'shared/encryption';
import { trackQueue } from 'shared/bull/queues';... |
import AWS from 'aws-sdk'
export function call(action, params) {
const dynamoDb = new AWS.DynamoDB.DocumentClient()
return dynamoDb[action](params).promise()
} |
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import AndroidDriver from '../../../../lib/driver';
import DEFAULT_CAPS from '../../desired';
import { util } from '@appium/support';
chai.should();
chai.use(chaiAsPromised);
const atv = 'android.widget.TextView';
const alv = 'android.widget.Lis... |
import Header from '../components/header'
import Footer from '../components/footer'
export default ({children}) => (
<>
<Header/>
<main>
{children}
</main>
<Footer/>
</>
) |
// @flow
/*
* File to stash local debug changes to. Never check this in with changes
*/
import {NativeModules} from 'react-native'
import {updateDebugConfig} from './actions/dev'
import noop from 'lodash/noop'
const nativeBridge = NativeModules.KeybaseEngine || {test: 'fallback'}
// Uncomment this to disable yello... |
(function($) {
$.fn.gCalReader = function(options) {
var $div = $(this);
var defaults = $.extend({
calendarId: '2gmna9efup7a0nr0l9kdploc10@group.calendar.google.com',
apiKey: 'AIzaSyDAknvJ3gUPJJ5OsV2sc2-2WvxpLaQgKxI',
dateFormat: 'shortDate+shortTime',
errorMsg: 'No events in calendar',
maxEv... |
module.exports = function (str, index) {
return str.slice(index, index + 1)
} |
var AspxKitManagement = {
"Successful Information": "Successful Information",
'Kit Component has been saved successfully.': 'Kit Component has been saved successfully.',
"Delete Confirmation": "Delete Confirmation",
'Kit has been deleted successfully.': 'Kit has been deleted successfully.',
'Kit Co... |
import React, {useContext} from 'react';
import Card from '../UI/Card/Card';
import classes from './Home.module.css';
import Button from "../UI/Button/Button";
import AuthContext from "../../context/auth-context";
const Home = (props) => {
const {onLogout} = useContext(AuthContext);
return (
<Card cla... |
define(['jimu/shared/BaseVersionManager'],
function(BaseVersionManager) {
function VersionManager(){
this.versions = [{
version: '1.0',
upgrader: function(oldConfig){
return oldConfig;
}
}, {
version: '1.1',
upgrader: function(oldConfig){
return oldConfig;
}... |
(function () {
'use strict';
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, module) {
return module = { exports: {} },... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import "../styles/menu.scss"
export const MainMenu = (props) => {
const data = useStaticQuery(graphql`
query MyMenuItemQuery {
LangPL: allDatoCmsMenuItem(filter: {locale: {eq: "pl"}}) {
nodes {
burger {
... |
// DATA_TEMPLATE: dom_data
oTest.fnStart( "5508 - Table container width doesn't change when filtering applied to scrolling table" );
$(document).ready( function () {
$('#example').dataTable( {
"sScrollY": "300px",
"bPaginate": false
} );
oTest.fnTest(
"Width of container 800px on init with scroll",
null,... |
/* global global */
import { createFullscreenCanvas } from "./rendering";
test('createFullscreenCanvas() should infer the height and width', () => {
const createCanvas = jest.fn();
global.createCanvas = createCanvas;
createFullscreenCanvas();
expect([document.documentElement.clientWidth, window.innerWidth])
... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// App.use(cors());
// If you want to start measurin... |
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
mode: 'jit',
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: 'media',
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
}... |
(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FusionCharts)}})(function(FusionCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var ... |
import * as P from '@paladin-analytics/rpdf-primitives';
import isTextInstance from '../../src/utils/isTextInstance';
const ASSERTED_TYPE = P.TextInstance;
const PRIMITIVES = Object.keys(P.default);
describe('is text instance util', () => {
PRIMITIVES.forEach(type => {
const isAssertedType = type === ASSERTED_T... |
var img_url;
$(function () {
category_name()
})
function save() {
var data={
// id:id,
name:$('#product-title').val(),
price:$('#product-price').val(),
category_id: $('#category_identify').val(),
stock: $('#product-stock').val(),
main_img_url: img_url
};
v... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[50],{cmKq:function(e,a,c){"use strict";c.r(a);var t=c("q1tI"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38... |
module.exports = function curry(func) {
return function curried(...args) {
if (args.length >= func.length) {
return func.apply(this, args);
}
else {
return function(...args2) {
return curried.apply(this, args.concat(args2));
};
}
};
} |
'use strict';
module.exports = {
Drive: require('./drives')
}; |
// import react
import React, { useRef, useState } from "react";
// import link
import { Link } from "react-router-dom";
// import getYoutubeID => returns a parsed ID from a youtube video URL
import getYouTubeID from 'get-youtube-id';
// export component
export default function SearchLayer(props) {
const [videoLin... |
import React from 'react';
import Book from './Book';
const BookShelf = props => {
const { books, bookShelf, onSelectShelf } = props;
/*
create the booksOnTheShelf constant to filter
only the books that belong to a particular shelf:
*/
const booksOnTheShelf = books.filter((book) => book.shelf ... |
import { createTheme, responsiveFontSizes } from "@material-ui/core";
export const COLORS = {
blue: "#1975e6",
blueWithTransparency: "rgba(25, 117, 230, 0.8)",
gray: "#4e4e54",
green: "#0ac2af",
greenWithTransparency: "rgba(10, 194, 175, 0.8)",
lightGreen: "rgba(51, 242, 223, 1)",
lightBlue: "#83b9fc",
... |
import {
isArray,
isString,
isObject,
assign,
forEach,
find,
filter,
matchPattern,
isDefined
} from 'min-dash';
import {
domify,
classes as domClasses,
attr as domAttr,
remove as domRemove,
clear as domClear
} from 'min-dom';
import {
getBBox
} from '../../util/Elements';
import Ids fro... |
class Node {
constructor(p, x, y, label) {
this.p = p;
this.x = x;
this.y = y;
this.label = label;
this.radius = 20;
}
display() {
this.p.noStroke();
this.p.fill(255);
this.p.ellipse(this.x, this.y, this.radius, this.radius);
this.p.fill(10);
this.p.text(this.label, this.x... |
function panelTypeToJs(param) {
return {
name: param[/* name */0],
parent: param[/* parent */1],
render: param[/* render */2],
initialState: param[/* initialState */3],
willRender: param[/* willRender */4],
didMount: param[/* didMount */5]
};
}
func... |
require("source-map-support").install();
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
... |
'use strict';
var rq = require('../requestHelper');
var findPaginated = require('./Pagination');
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
//create an export function to encapsulate the model creation
module.exports = function() {
var TagSchema = new Schema({
_thing : { type: Schema.Type... |
import Loadable from '../Loadable';
// import Projects from './Projects';
const Projects = Loadable({
loader: () => import(/* webpackChunkName: "projects" */ './Projects'),
});
export default Projects; |
import rootNewProject from './components/root/NewProject';
import rootViewSimulation from '../../generic/components/root/ViewSimulation';
import stepIntroduction from '../common/steps/Introduction';
import stepInput from './components/steps/Input';
import stepSimulationStart from '../common/steps/Simulation/Start';
im... |
// 邮箱/手机号
export const ACCOUNT_REG = /^((\w-*\.*)+@(\w-?)+(\.\w{2,})+)|([1][3,4,5,7,8,9][0-9]{9})$/;
// 邮箱
export const EMAIL_REG = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/;
// 手机号码
export const TELEPHONE_REG = /^[1][3,4,5,7,8,9][0-9]{9}$/;
// 经度:取值范围0-180, 保留0-6位小数
export const LONGITUDE_REG = /^[+-]?(((\d|[1-9]\d|1[0-7]\d|0... |
const locales = require('../locales')
/**
* @author Rúben Gomes <gomesruben21@gmail.com>
* @classdesc Defines a Runner class. Responsible layer for the transactions into db.
*/
class Runner {
/**
* @constructor
* @param {!Object} opts Specifies the options for the runner constructor.
* @param {!S... |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { check, gen } from 'mocha-testcheck';
import { spy, assert as sinonAssert } from 'sinon';
import rangeArray from './';
describe('rangeArray', () => {
const noop = () => {};
const fn = (val) => val;
it('should return an array',... |
'use strict';
var exec = require('child_process').exec;
/**
* Looks for proxy settings in some common places like ENV vars, Mac's networksetup
* @param {Function} callback - Function to run when a value has been determined
*/
exports.detect = function (callback) {
if (process.platform === 'darwin') {
[ 'Ethernet... |
/**
* @license
* Webix UI v.7.3.6
* This software is can be used only as part of webix.com site
* You are not allowed to copy this file and use in any other project
*/
H.wrap=function Yo(i,e){return i?function(){var t=i.apply(this,arguments);return e.apply(this,arguments),t}:e},H.isUndefined=R,H.delay=k,H.once=a,... |
import React from 'react';
import Counter from '../../components/counter/Counter';
const Home = () => {
return <Counter />;
};
export default Home; |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
'use strict';
exports.__esModule = true;
exports.default = resolveMobileDrawerType;
var _DrawerTypes = require('./DrawerTypes');
var _DrawerTypes2 = _interopRequireDefault(_DrawerTypes);
var _isType = require('./isType');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj };... |
var amqp = require('amqplib/callback_api');
var args = require('args');
function bail(err) {
console.error(err);
process.exit(1);
}
function checkArgs(flags) {
if (flags.hangle1 === undefined || flags.hangle1 === undefined || flags.epoch === undefined) {
return false;
} else {
return t... |
/**
* Kendo UI v2018.3.1017 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik EAD. All rights reserved. ... |
// app/facebookcast/blocklist/blocklist.route.js
'use strict';
const express = require('express');
const blocklistService = require('./blocklist.service');
const router = express.Router();
router.get('/', async (req, res, next) => {
try {
const params = {
castrBizId: req.query.castrBizId,
... |
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import DebtCardsList from '../components/DebtCardsList';
describe('DebtLettersSummary', () => {
const fakeStore = {
getState: () => ({
user: {
login: {
currentlyLoggedIn: true,
},
},
... |
import React from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';
//reactotron
import './src/config/ReactotronConfig';
//redux
import { Provider } from 'react-redux';
import store from './src/store';
//app
const ReduxApp = () => (
<Pro... |
module.exports = Map;
function Map() {
return Object.create(null);
} |
const StatusCodes = require('http-status-codes');
const Course = require('../src/courses' );
const Category = require('../src/categories' );
const Block = require('../src/blocks' );
const Questionnarie = require('../src/questionnaries' );
const Task = require('../src/tasks' );
const permissi... |
/*!
\file Worker.footer.js
\author zafaco GmbH <info@zafaco.de>
\date Last update: 2019-11-13
Copyright (C) 2016 - 2019 zafaco GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by th... |
var map = { "type": "FeatureCollection", "features": [
{ "type": "Feature", "geometry": { "type": "Polygon", "coordinates": [[[34.3911, 15.6901], [34.3802, 15.6811], [34.2309, 15.6894], [34.1916, 15.6942], [34.1188, 15.7163], [34.0296, 15.7327], [33.9675, 15.7263], [33.9225, 15.732], [33.8761, 15.732], [33.7669... |
// This file was generated by purescript-docs-search |
const request = require('supertest');
const app = require('../../src/app');
const connection = require('../../src/database/connection')
describe('ONG', ()=> {
beforeEach( async () => {
await connection.migrate.rollback(); //zerando o banco de dados antes de começar o teste
await connection.mig... |
/**
* Copyright (c) 2015-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.
*/
/* @flow */
import StackFrame from './stack-frame';
import { getSourceMap } from './getSourceMap';
import { getLinesAround } from './get... |
import React, { Component } from 'react'
import SEO from '../components/seo'
import Layout from '../components/layout'
import groq from 'groq'
import client from '../../client'
import BlockContent from '../components/block-content'
import { imageUrlFor } from '../lib/image-url'
export default class magento extends Com... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.