text
stringlengths
2
1.04M
module.exports = { collectCoverage: true, collectCoverageFrom: [ '**/*.js', '!**/*.test.js' ], coverageDirectory: 'test-output', coverageReporters: [ 'text-summary', 'cobertura', 'lcov' ], coveragePathIgnorePatterns: [ '<rootDir>/node_modules/', '<rootDir>/test-output/', '<...
$(document).ready(function() { // many thanks to Heydon Pickering for this code // http://heydonworks.com/practical_aria_examples/#tab-interface // The class for the container div var $container = '.tab-pane'; // The setup $($container +' ul').attr('role','tablist').addClass('nav tab-pane__tabs-containe...
#!/usr/bin/env node const ecalper = require('../ecalper') const parseArguments = require('./parse-arguments') const options = parseArguments('search') ecalper(options)
'use strict'; angular.module('core').directive('jumpTo', ['$document', function($document) { return { controller: function($parse, $element, $attrs, $scope) { var id = $attrs.jumpTo; var duration = 1000; //milliseconds var easing = function (t) { return t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*...
var searchData= [ ['mangle',['Mangle',['../classAvro_1_1CodeGenUtil.html#aa56c7bf6dbe808d332f7c88771f7ce2a',1,'Avro::CodeGenUtil']]], ['mapaccess',['MapAccess',['../interfaceAvro_1_1Generic_1_1PreresolvingDatumReader-g_1_1MapAccess.html',1,'Avro::Generic::PreresolvingDatumReader-g']]], ['mapaccess',['MapAccess',[...
var NOTEPAD_AUTOSAVE_DELAY_MS = 1000; var TAB_INSERT_STRING = ' '; initSidebarPane(); $(document).ready(() => { // this call is wrapped in a fn closure because jQuery ready() doesn't like // being passed async fns onReady(); }); async function onReady() { setI18NText(); var notepadData = await...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ // This icon file is generated by build/generate.ts // tslint:disable /** @type {?} */ export const BugFill = { name: 'bug', theme: 'fill', icon: '<s...
import Vue from 'vue'; import Router from 'vue-router'; import Login from './components/Login.vue'; import Register from './components/Register.vue'; Vue.use(Router); export const router = new Router({ mode: 'history', routes: [ { path: '/login', component: Login }, ...
import { elementContainsAttribute } from './dom/elementContainsAttribute'; import { elementContains } from './dom/elementContains'; import { getParent } from './dom/getParent'; import { getWindow } from './dom/getWindow'; import { getDocument } from './dom/getDocument'; var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable';...
// mock服务 const jsonServer = require('json-server'), db = require('./db.js'), routes = require('./routes.js'), port = 3000, server = jsonServer.create(), router = jsonServer.router(db), middlewares = jsonServer.defaults(), rewriter = jsonServer.rewriter(routes); server.use(mid...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" import styled from "@emotion/styled" import { css } from "@emotion/core" import tw from "tailwind.macro" import { FirebaseContext } from "gatsby-plugin-firebase" import withUser from "...
/** * @see https://csv.js.org/parse/api/callback/ */ let csv_parse=require(`csv-parse`); csv_parse(` foo,bar 1,2 `.trim(),function(error,output){ console.log(output); });
import Immutable from 'immutable'; const joinedRoomEventHandler = (room, eventPayload) => room.setIn(['users', eventPayload.userId], new Immutable.Map({id: eventPayload.userId})); export default joinedRoomEventHandler;
import PropTypes from 'prop-types'; export const LessonsListPropTypes = { title: PropTypes.string.isRequired, notFound: PropTypes.string.isRequired, resourceKey: PropTypes.string.isRequired, isFinished: PropTypes.bool, query: PropTypes.shape({ key: PropTypes.string.isRequired, func: PropTypes.func.is...
/* global LazyLoader, AppWindowManager, applications, ManifestHelper*/ /* global Template*/ 'use strict'; (function(exports) { /** * Handle Web API permissions such as geolocation, getUserMedia * @class PermissionManager * @requires Applications */ function PermissionManager() { } PermissionManager...
(function () { window.game = window.game || {} function Character(x, y) { this.initialize(x, y); } var p = Character.prototype = new createjs.Container(); p.Container_initialize = p.initialize; //GAMEPLAY const const LOOK_AT_DELAY = 0.5; const MOVE_DELAY = 0.5; const SCO...
const config = { // Bot Owner, level 10 by default. A User ID. Should never be anything else than the bot owner's ID. ownerID: '', // Bot Admins, level 9 by default. Array of user ID strings. admins: [], // Bot Support, level 8 by default. Array of user ID strings support: [], // Your Bot's Token. Avai...
// Serves as the top-level container for all blog // posts and components therein /* eslint-disable import/no-webpack-loader-syntax */ import Example from "!@mdx-js/loader!./example.mdx"; function BlogHolder() { return ( <div class="flex flex-col w-full h-auto bg-themeDarkBlue m-5 ml-0 overflow-y-auto overscrol...
"use strict"; const log = require("../log"); let cmdInfo; const addToList = (val, memo) => { memo.push(val); return memo; }; module.exports = { init: (commander) => { commander .command("tag_type <typeName> <id>") .description("Tag type") .option("-t, --tag <...
import { ParseFeed } from '../workers/parsers'; import franc from 'franc-min'; export default feedUrl => { return new Promise((resolve, reject) => { ParseFeed(feedUrl, (feedContents, err) => { if (err) { // sometimes rss feeds throw a 503 when being added and parsed immediately - in that case, just resolve t...
/*! * REVOLUTION 6.0.0 EDITOR HELPINIT JS * @version: 1.0 (01.07.2019) * @author ThemePunch */ /*! * REVOLUTION 6.0.0 EDITOR LAYERLIST JS * @version: 1.0 (01.07.2019) * @author ThemePunch */ /*! * REVOLUTION 6.0.0 EDITOR LAYERTOOLS JS * @version: 1.0 (01.07.2019) * @author ThemePunch */ /*! * REVOLUTION 6.0.0...
/* @generated */ // prettier-ignore if (Intl.ListFormat && typeof Intl.ListFormat.__addLocaleData === 'function') { Intl.ListFormat.__addLocaleData({"data":{"ar":{"conjunction":{"long":{"start":"{0} و{1}","middle":"{0} و{1}","end":"{0} و{1}","pair":"{0} و{1}"},"short":{"start":"{0} و{1}","middle":"{0} و{1}","end":"{...
/* Highcharts JS v9.3.3 (2022-02-01) Highcharts funnel module (c) 2010-2021 Kacper Madej License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/funnel3d",["highch...
import React from "react" import { StaticQuery, graphql } from "gatsby" import Img from "gatsby-image" const ZohoLogoImage = () => ( <StaticQuery query={graphql` query { placeholderImage: file(relativePath: { eq: "logotips/zoho-logo.png" }) { childImageSharp { fixed(width: 100...
import React from 'react'; import '../css/contactmain.css'; function ContactMain () { return ( <div className="background-image"> <div className="container"> <nav className="navbar navbar-expand-lg navbar-light bg-light">Christal Vigil <button className="navbar-toggler" dat...
const DrawCard = require('../../../drawcard.js'); class Butterbumps extends DrawCard { setupCardAbilities() { this.forcedReaction({ when: { afterChallenge: ({challenge}) => challenge.loser === this.controller && challenge.isParticipating(this) }, handler:...
const helpCommand = require('./help') exports.run = async (client, msg, args, options) => { try { const util = client.createUtil(msg, options) const { canContinue, target, language, currentProfileNo, } = await util.buildTarget(args) if (!canContinue) return const commandName = __filename.slice(__dirnam...
import React,{Fragment} from 'react'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router-dom'; import { render } from '@testing-library/react'; import thunk from 'redux-thunk'; import { createMemoryHistory } from 'history' i...
/** * Copyright (c) 2018-present Andrew Vereshchak * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; exports.ForeignKeyDefaults = { onUpdate: 'NO ACTION', onDelete: 'NO ACTION', match: 'SIMPLE', }; exports.Types = ...
//Requires const modulename = 'WebServer:FXServerControls'; const { dir, log, logOk, logWarn, logError } = require('../../extras/console')(modulename); /** * Handle all the server control actions * @param {object} ctx */ module.exports = async function FXServerControls(ctx) { //Sanity check if(typeof ctx.p...
module.exports = { prefix: 'fal', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.058 110.919 248 248 248 52.925 0 104.68-17.078 147.092-48.319 5.501-4.052 6.423-11.924 2.095-17.211l-5.074-6.198c-4.018-4.909-11.193-5.883-16.307-2.129C346.93 457.208 301.974 472 256 472c-119.373 0-216...
/* global describe, it, afterEach, beforeEach, after, before */ const config = require('..'); const expect = require('chai').expect; const path = require('path'); describe('tiers', () => { it('should set the tier to development by default', () => { config.reload(); expect(config.tier).to.equal('dev...
import {Layer} from './Layer'; import {FeatureGroup} from './FeatureGroup'; import * as Util from '../core/Util'; import {toLatLng} from '../geo/LatLng'; import {toPoint} from '../geometry/Point'; import * as DomUtil from '../dom/DomUtil'; /* * @class DivOverlay * @inherits Layer * @aka L.DivOverlay * Base model f...
import { fetchPosts } from './fetchPosts'; import { filterHashtags } from './filterHashtags'; import { setTerm } from './setTerm'; import { setDebouncedTerm } from './setDebouncedTerm'; const allActions = { fetchPosts, filterHashtags, setTerm, setDebouncedTerm } export default allActions
// # Default Frontend Routing Test // These tests check the default out-of-the-box behaviour of Ghost is working as expected. // Test Structure // As it stands, these tests depend on the database, and as such are integration tests. // Mocking out the models to not touch the DB would turn these into unit tests, and sho...
deepmacDetailCallback("001b9b000000/24",[{"d":"2007-03-01","t":"add","a":"1241 West Newport Center Drive\nDeerfield Beach FL 33442\n\n","c":"UNITED STATES","o":"Hose-McCann Communications"},{"d":"2015-08-27","t":"change","a":"1241 West Newport Center Drive Deerfield Beach FL US 33442","c":"US","o":"Hose-McCann Communic...
import React from 'react'; import ReactDOM from 'react-dom'; import renderer from 'react-test-renderer'; import Enzyme, { shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import App ,{ Search, Button, Table} from './App'; Enzyme.configure({ adapter: new Adapter()}); describe('App', () => { i...
const express = require("express"); const router = express.Router(); const { createPost, getPosts, getPostById, getPostByUserId, getPostByPostIdByUserId, updatePost, deletePost, likePost, unLikePost, createComment, deleteComment } = require("../../controllers/posts"); const passport = require("pas...
var group__group__usbfs__dev__drv__macros__ep__xfer__err = [ [ "CY_USBFS_DEV_ENDPOINT_TRANSFER_ERROR", "group__group__usbfs__dev__drv__macros__ep__xfer__err.html#ga23b6d632d54b8974190b9bf04fb8138a", null ], [ "CY_USBFS_DEV_ENDPOINT_SAME_DATA_TOGGLE", "group__group__usbfs__dev__drv__macros__ep__xfer__err.html#ga...
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved /** * @fileOverview QUnit tests for sap.ushell.bootstrap._SchedulingAgent.EventProcessor */ sap.ui.require([ "sap/ushell/bootstrap/_SchedulingAgent/EventProcessor", "sap/ushell/EventHub", "sap/ushell/bootstrap/_SchedulingAgent/state", "sap/ushell/...
// =========================================================================== // Vortrex's Roleplay Resource // https://github.com/VortrexFTW/gtac_roleplay // =========================================================================== // FILE: gui.js // DESC: Provides GUI functionality and styles (using MexUI) // TYPE...
$(document).ready(function() { getDropDownData(); $('#filter_camp_name').change(function(){ setAdgroupDropdown(); }); $("#filter_country, #filter_camp_type").change(function(){ setCampaignDropdown(); }); }); var campaign_list; var cct; var adgrouplist; var cid_adg; var country_...
const router = require('express').Router(); const withAuth = require('../utils/auth'); const {User} = require('../models'); // const {Competency} = require('../models'); // Login routes router.get('/', (req, res) => { res.render('login') }) router.get('/login', (req, res) => { res.render('login'); }); // Trainer...
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
// Alternative implementation of the <select> element using pure AngularJS // Copyright (c) 2014 Jacob Rief // Licensed under the MIT (function(angular, undefined) { 'use strict'; angular.module('awesome.select', ['ngSanitize']) .directive('awSelect', ['$window', '$compile', function($window, $compile) { return { ...
topSuite("Ext.Number", function(){ var EN = Ext.Number; describe("constraining a number", function(){ describe("integers", function(){ describe("if the number is within the constaints", function(){ it("should leave the number alone if it is equal to the min and the max",...
const assert = require('assert') const path = require('path') const Logger = require(path.join(__dirname, '..', 'lib', 'logger.js')) const Server = require(path.join(__dirname, '..', 'lib', 'Server.js')) const expect = require('expect.js') const EveHomeKitValveTypes = require(path.join(__dirname, '..', 'lib', 'services...
/* * * Wijmo Library 5.20153.117 * http://wijmo.c1.grapecity.com/ * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the Wijmo Commercial License. * * http://wijmo.c1.grapecity.com/license/ * */ var wijmo;(function(n){n.culture={Globalize:{numberForma...
var callbackArguments = []; var argument1 = [157,714,213,783,49,714,655,655,403]; var argument2 = true; var argument3 = 714; var base_0 = ["p","f- ","S%jU;S"] var r_0= undefined try { r_0 = base_0.some(argument1,argument2,argument3) } catch(e) { r_0= "Error" } function serialize(array){ return array.map(function(a){ if...
$(function () { window.setTimeout(function() { $(".alert-success").alert('close'); }, 2000); window.setTimeout(function() { $(".alert-info").alert('close'); }, 2000); window.setTimeout(function() { $(".alert-error").alert('close'); }, 10000); }); // Requires that JQuery also be in scope function endsWith(str, suffix) ...
var Draw = require('./draw.js'); function main (cnchar) { if (cnchar.plugins.indexOf('draw') !== -1) { return; } cnchar.plugins.push('draw'); cnchar.draw = draw; String.prototype.draw = function (opt) { return draw(this, opt); }; } function init () { if (typeof window === ...
import React from 'react' function Loader() { return ( <div style={{ width: "100%", height:"50%" , display: "flex", justifyContent: "center", alignContent: "center" }}> <img style={{width:"25%", height:"25%"}} src='/assets/loader.svg' alt='loader' /> </div> ) } export default Loade...
deepmacDetailCallback("88d039000000/24",[{"d":"2017-09-08","t":"add","a":"Section 37, Zhongkai Hi-Tech Development Zone Huizhou Guangdong CN 516006","c":"CN","o":"TCL Technoly Electronics(Huizhou).,Ltd"}]);
const express = require("express"); const { telefunc } = require("telefunc/server/express"); const vite = require("vite"); const fs = require("fs"); startServer(); async function startServer() { const app = express(); const viteServer = await vite.createServer({ server: { middlewareMode: true, }, ...
const AWS = require('aws-sdk'); const docClient = new AWS.DynamoDB.DocumentClient({ region: 'us-east-2' }); exports.handler = (event, context, callback) => { console.log('Processing...'); const params = { Item: { date: Date.now(), name: event.key1, address: event.key2, phonenumber: even...
import endsWith from 'ember-eureka/utils/ends-with'; export default endsWith;
const {loadParticlesInteractionParticles} = require("webpack-tsparticles-plugin"); const version = require("./package.json").version; module.exports = loadParticlesInteractionParticles("repulse", "Repulse", version, __dirname);
(function(){ 'use strict'; function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min } var TotalSales = function(id, type = 'area', options = {}) { options = Chart.helpers.merge({ title: { display: true, fontSize: 12, fontColor: 'rgba(54, ...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE-examples file in the root directory of this source tree. * * @flow strict */ import { connectionFromArray, connectionArgs, connectionDefinitions, } from 'graph...
var data = { "width": 256, "height": 259 }; export default data;
import Steppers from './components/Steppers'; export default Steppers;
import Vue from 'vue' import Vuetify from 'vuetify' Vue.use(Vuetify) import es from 'vuetify/src/locale/es.ts' const opts = { lang: { locales: { es }, current: 'es', }, icons: { iconfont: 'mdi', // default - only for display purposes }, } export default new Vuetify(opts)...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
import React, { Component } from 'react'; import Hoc from '../../hoc/hoc'; import Burger from '../../components/Burger/Burger'; import BurgerControls from '../../components/Burger/BurgerControls/BurgerControls'; import Modal from '../../components/UI/Modal/Modal'; import OrderSummary from '../../components/Burger/Order...
// SPDX-License-Identifier: MIT // Copyright (c) 2020 Daimler TSS GmbH module.exports = { presets: ['@babel/preset-env'], };
import { createStore, compose, applyMiddleware } from "redux"; import thunk from "redux-thunk"; import rootReducer from "./reducers"; import { checkForExpiredToken } from "./actions/authentication"; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const store = createStore( rootRedu...
var fs = require("fs"); var path = require("path"); var rimraf = require("rimraf"); var watcherManager = require("../../lib/watcherManager"); function TestHelper(testdir) { this.testdir = testdir; var self = this; this.before = function(done) { self._before(done); }; this.after = function(done) { self._after...
'use strict'; const boom = require('boom'); const createRoute = require('./create'); const createTagRoute = require('./createTag'); const getRoute = require('./get'); const listRoute = require('./list'); const removeRoute = require('./remove'); const listTagsRoute = require('./listTags'); const listVersionsRoute = req...
Clazz.declarePackage ("J.adapter.smarter"); Clazz.load (["J.adapter.smarter.AtomSetObject"], "J.adapter.smarter.Bond", null, function () { c$ = Clazz.decorateAsClass (function () { this.atomIndex1 = 0; this.atomIndex2 = 0; this.order = 0; this.radius = -1; this.colix = -1; this.uniqueID = -1; Clazz.instantialize (this,...
// @ts-check import { makeIssuerKit, AmountMath } from '@agoric/ertp'; import { makeStore } from '@agoric/store'; import { makeZoeKit } from '../../src/zoeService/zoe.js'; import fakeVatAdmin from '../../tools/fakeVatAdmin.js'; const setup = () => { const moolaBundle = makeIssuerKit('moola'); const simoleanBundle...
import BigNumber from "bignumber.js"; import { Component } from "react" import { Alert } from "react-native"; import { connect } from 'react-redux' import { expireCoinData } from "../../../../actions/actionCreators"; import { convert } from "../../../../utils/api/routers/convert"; import { USD } from "../../../../utils...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; const Constraint = Matter.Constraint; var ball1; var ball2; var ball3; var ball4; var ball5; var ball6; var ball7; var roof; var string1; var string2; var string3; var string4; var string5; var string6; v...
{ "kind": "discovery#restDescription", "discoveryVersion": "v1", "id": "adexchangebuyer:v1.1", "name": "adexchangebuyer", "version": "v1.1", "revision": "20120718", "title": "Ad Exchange Buyer API", "description": "Lets you manage your Ad Exchange Buyer account.", "icons": { "x16": "http://www.google.com/ima...
"use strict"; const fs = require( "fs" ); const path = require( "path" ); const root = __dirname; const rootNodeModules = path.join( root, "node_modules" ); const rootPackageLock = path.join( root, "package-lock.json" ); const rootSandbox = path.join( root, "sandbox" ); const rootTemplatePartials = path.join( root, ...
import React from 'react'; import { Button, Form } from 'react-bootstrap'; function TodoForm(props) { return ( <> <h3>Add Item</h3> <Form onSubmit={props.handleSubmit}> <Form.Group controlId="formBasicEmail1"> <Form.Label><h6>To Do Item</h6></Form.Label> <Form.Contro...
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
var a04539 = [ [ "linkQueue", "a05355.html", "a05355" ], [ "Queue", "a05363.html", "a05363" ], [ "seqQueue", "a05367.html", "a05367" ], [ "vecQueue", "a05371.html", "a05371" ] ];
const axios = require('axios') const createError = require('../modules/create_error') let that = null class User { constructor(messenger_id, config, sender, emitter) { if (!messenger_id) throw createError('You must pass messenger id of user!') this.config = config || {} this.messenger_id ...
(function() { var $; $ = jQuery; $.widget("ui.dialogExtend", { version: "2.0.0", modes: {}, options: { "closable": true, "dblclick": false, "titlebar": false, "icons": { "close": "ui-icon-closethick", "restore": "ui-icon-newwin" }, "load": null, ...
/** * StoryBook.fn.UI * == * Handles all user actions and fires events for consumption by StoryBook(), * dependent on markup generated by StoryRender * * @param string container css selector used to scope all dom event listeners */ StoryBook.fn.UI = {}; /** * UI.init() * -- * sets up event listeners for clic...
import { AbstractElement } from 'abstract-element'; import litRender from 'abstract-element/render/lit'; export class Loader extends AbstractElement { static define = tag => properties => AbstractElement; loading; constructor() { super(litRender, true); } render() { return this.loading ? <span>Loa...
/** * ajax 服务路由集合 */ const router = require('koa-router')({ prefix: '' }) const controllers = require('../controllers') // 从 sdk 中取出中间件 // 这里展示如何使用 Koa 中间件完成登录态的颁发与验证 const { auth: { authorizationMiddleware, validationMiddleware } } = require('../qcloud') // --- 登录与授权 Demo --- // // 登录接口 router.get('/login', au...
const NodeCache = require("node-cache"); const CacheBase = require("./CacheBase"); class Memory extends CacheBase { constructor() { super(); this._id = 'memory'; this._cache = new NodeCache({ checkperiod: 1200 }); } async get(key) { const value = this.getCache().get( key );...
const FILEFILTER = { File: 0, Directory: 1, }; module.exports = { FILEFILTER, };
var customer_dict = {"cedula_cliente": null, "direccion_cliente": null, "email_cliente": null, "nombre_cliente": null, "telefono_cliente": null} // consultar $(document).on("click", "#btn_cliente_consultar", function() { $.ajax({ contentType: "application/json", dataType: "json", ...
import React, { useState } from 'react'; function Onload(event) { let current = event.target; current.classList.add("visibleImg"); } function ChooseImage(thumbnail) { let newImage = "https://grainy-gradients.vercel.app/noise.svg"; try { let image = thumbnail.path + "/portrait_uncanny." + thumbnail.exte...
/* global it, expect */ import React from 'react'; import renderer from 'react-test-renderer'; import Processes from './Processes'; import processes from './processes.fixtures'; it('renders empty processes correctly', () => { const tree = renderer .create(<Processes />) .toJSON(); expect(tree).toMatchSnaps...
Tinytest.add('Opal and Javascript interoperability', function (test) { test.equal(Opal.User.$new().$name(), 'Bob'); test.equal(Opal.gvars.a, 123); test.equal(Opal.Object.$b(), "321"); test.notEqual(Opal.Object.$b(), 321); });
const request = require('supertest') const APIService = require('../APIService') const API = require('../node.js') jest.setTimeout(30000); // TODO create data for three users // MOCK HTTP TO ADDRESS SERVER jest.mock('axios', () => { return { get: jest.fn((url) => { if (url.includes('0x1ee6ae029c6d99ff3a81...
/** * @license Highcharts JS v9.0.0 (2021-02-02) * * (c) 2016-2019 Highsoft AS * Authors: Jon Arild Nygard * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory;...
function getParameterByName(name, url) { if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(...
const fs = require("fs"); const path = require("path"); const shortid = require("shortid"); const signUpRoute = (request, response) => { const user = { ...request.body, id: shortid.generate() }; const filePath = path.join(__dirname, "../../db/users/all-users.json"); if (!fs.existsSync(filePath)) { fs.writeF...
function navio(dataHora, nomeNavio, manobra, de, para){ this.dataHora = dataHora this.nomeNavio = nomeNavio this.manobra = manobra this.de = de this.para = para } module.exports = navio
export default class Devices {} Devices.examples = [ { id: 1, name: 'Ventilador' }, { id: 2, name: 'Luz da sala' }, { id: 3, name: 'Luz do quarto' }, { id: 4, name: 'Fogão teste' } ];
import React, { useState } from 'react' import { useDispatch } from 'react-redux' import { CreatePostForm } from './CreatePostForm' import { Button } from './Button' import { addMeme } from '../actions/userActions' import { setNotification } from '../actions/notificationAction' const CreatePostView = () => { cons...
"use strict"; 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 = Refl...
import React from 'react'; import ExternalLink from '../ui/external-link'; import { translate as $t } from '../../helpers'; import { version, repository, license } from '../../../package.json'; const AboutComponent = () => ( <React.Fragment> <ExternalLink href="https://kresus.org">KRESUS</ExternalLink>&nb...
// Require mongoose var mongoose = require("mongoose"); // Create a schema class var Schema = mongoose.Schema; // Create the Note schema var CommentSchema = new Schema({ // Just a string comment: { type: String, validate: [ function(input) { return input.length >= 10; }, "Comm...
const assert_soft = require('assertion-soft'); const timerlog = require('timerlog'); module.exports = function(server) { server.route({ method: 'GET', path: '/', handler, }); server.route({ method: 'GET', path: '/{param*}', handler, }); }; { let ht...
/* eslint-disable */ // Filter BTS 0.9.2+ import keys export file so that it will include only private keys // that may be found in the BTS 2.0 genesis block. // Dependencies: // ./bloom_bitshares.dat (1,048,576 bytes) sha1 4d80faa41a5e868899febdc9dab48d1f2d567487992810cf0532f3c0ee2b266c // nodejs, npm, and: npm insta...