text
stringlengths
2
1.04M
// mask Component({ /** * 组件的属性列表 */ externalClasses: ['l-class', 'l-item-class'], behaviors: ['wx://form-field'], properties: { tempFilePaths: { type: Array, value: [] }, // 最多可以选择的图片张数 count: { type: [String, Number], value: 9 }, // 每行可显示的个数 size: { ...
import { GraphQLInt, GraphQLList, GraphQLID, GraphQLNonNull, GraphQLString, GraphQLBoolean, } from 'graphql' import { fromGlobalId, } from 'graphql-relay' import { pageableConnectionArgs, getNumberPagingModel } from 'data/graphql/paging/getPagingModel' import { postConnection } from 'data/graphql/con...
const SSDP = require('@homelify/node-ssdp'); const upnpSchemas = require('./upnp/schemas'); const UpnpInternetGatewayDevice = require('./upnp/devices/internet-gateway'); const { UpnpDevice } = require('./upnp/upnp-device.js'); class UPnP { constructor() { this.internalIP = require('ip').address(); } async s...
import React from 'react'; import IconSharedLink from '../IconSharedLink'; describe('icons/two-toned/IconSharedLink', () => { test('should correctly render default icon', () => { const wrapper = shallow(<IconSharedLink />); expect(wrapper.hasClass('icon-shared-link-2')).toBe(true); expect(...
/** * @generated-from ./$starts-with-any-subseq.test.js * This file is autogenerated from a template. Please do not edit it directly. * To rebuild it from its template use the command * > npm run generate * More information can be found in CONTRIBUTING.md */ /* eslint-disable no-unused-vars,import/no-duplicates ...
import express from 'express'; import appVersionCtrl from '../../controllers/admin/app-version.controller'; import validation from '../../validations/index.validation'; import middleware from '../../misc/middleware'; const router = express.Router(); // eslint-disable-line new-cap router.route('/') .get([ ...
import React from "react"; import PropTypes from "prop-types"; import UnhideSimulatorCard from "components/macros/unhideSimulatorCard"; class UnhideCard extends React.Component { render() { const { value = {}, updateValue = () => {} } = this.props; return ( <div style={{ display: "flex", flexDi...
import { call, put, select, takeLatest } from 'redux-saga/effects'; import { orderBy } from 'lodash'; import apiContentful from '../../utils/contentfulUtils/api/contentful/contentful'; import { GET_DISCIPLINES } from './constants'; import { makeSelectDisciplines } from './selectors'; import { disciplinesError, discipli...
//>>built define({loadingState:"\u05d8\u05e2\u05d9\u05e0\u05d4...\u200f",errorState:"\u05d0\u05d9\u05e8\u05e2\u05d4 \u05e9\u05d2\u05d9\u05d0\u05d4"});
exports.cssEscape = typeof window === "undefined" || !window.CSS || !window.CSS.escape ? require("css.escape") : window.CSS.escape;
import React from "react" import Link from "gatsby-link" import presets from "../utils/presets" import colors from "../utils/colors" import { rhythm, scale, options } from "../utils/typography" import { JSIcon, WebpackIcon, ReactJSIcon, GraphQLIcon } from "../assets/logos" import { vP, vPHd, vPVHd, vPVVHd } from "../c...
IDRegistry.genItemID("bedrock_pickaxe"); Item.createItem("bedrock_pickaxe", "Bedrock Pickaxe", {name: "bedrock_pickaxe"}, {stack: 1}); Item.setToolRender(ItemID.bedrock_pickaxe, true); Item.setMaxDamage(ItemID.bedrock_pickaxe, 64); Item.setEnchantType(ItemID.bedrock_pickaxe, 1024, 25); Recipes.addShaped({id: ItemID.be...
import { APP_NAME, LOGPATH, NODE_ENV, FILE_NAME } from "./constants.js"; import { transports, format, createLogger } from "winston"; import { existsSync, mkdirSync } from "fs"; import { get } from "express-http-context"; import safeStringify from "fast-safe-stringify"; const { printf, combine, timestamp, label } = for...
(function() { angular .module('app') .controller('GalleryController', [ '$mdDialog', '$state', 'Lightbox', GalleryController ]); function GalleryController($mdDialog, $state, Lightbox) { var vm = this; vm.openLightboxModal = openLightboxModal; vm.currentPage = $stat...
shadow$provide.module$node_modules$$mui$material$FormControl$FormControl=function(global,require,module,exports){function _getRequireWildcardCache(nodeInterop$jscomp$0){if("function"!==typeof WeakMap)return null;var cacheBabelInterop=new WeakMap,cacheNodeInterop=new WeakMap;return(_getRequireWildcardCache=function(node...
const router = require("express").Router(); const bcrypt = require("bcryptjs"); const jwt = require("jsonwebtoken"); const Users = require("../users/users-model.js"); router.post("/register", (req, res) => { let user = req.body; const hash = bcrypt.hashSync(user.password, 10); user.password = hash; const toke...
import { a, div, h4, strong } from './lib/fnelements.mjs' import contentSection from './contentSection.js' import prismCode from './prismCode.js' import { code } from '../src/fnelements.mjs' export default div( contentSection( 'Init', 'This tutorial will walk through all of the necessary steps for creating a...
routes = ["./user.router", "./department.router", "../auth/auth.router"].map( elem => require(elem) ); module.exports = function(app) { app.use("/api", routes); };
/*! insight-ui-pirate 0.4.0 */
/*$("#addMedication").click(function () { var html = ''; html += '<div class="col-md-4 mb-1">'; html += '<input type="text" name="medication" class="form-control" id="medication" value="{{request()->get('medication')}}">'; html += '</div>'; html += '<div class="col-md-6 mb-1">'; html += '<input ...
process.env.NODE_ENV = process.env.NODE_ENV || 'development';//if value does not exist set it to 'development' var mongoose = require('./config/mongoose'), //database we'll be connecting to express = require('./config/express'),//express application passport = require('./config/passport');//express application...
require("../../lib/verlet-polyfill"); var Line = require("../../lib/structures/Line"); var Vec2 = require("../../lib/structures/Vec2"); var assert = function(label, expression) { console.log("Line(" + label + "): " + (expression === true ? "PASS" : "FAIL")); if (expression !== true) throw "assertion failed"; }...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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...
require = require("esm")(module, { // https://github.com/standard-things/esm#options }); require("./src/index.js");
var status = -1; //we hate cygnus ;P function start(mode, type, selection) { qm.forceStartQuest(); qm.forceCompleteQuest(); qm.dispose(); } function end(mode, type, selection) { qm.forceStartQuest(); qm.forceCompleteQuest(); qm.dispose(); }
import React from 'react'; import marked from 'marked'; import axios from 'axios'; import Loading from '../component/Loading'; import hljs from 'highlight.js'; class Item extends React.Component{ constructor(){ super(); this.state={ data:'' } } componentDidMount(){ let address = this.props.p...
import React from 'react' import './InputCampo.scss' export default function index(props) { return ( <div> <label for="nome">{props.title}</label> <input type="text" placeholder={props.resposta}></input> </div> ) }
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','sap/ui/Properties'],function(q,P){"use strict";q.sap.properties=P;return q;});
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
//>>built define("maq-metadata-dojo/dojox/mobile/CarouselInput",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/query","dojo/dom-class","dojo/dom-construct","dojox/html/entities","../../dijit/layout/ContainerInput","davinci/ve/widget","davinci/commands/CompoundCommand","davinci/ve/commands/AddCommand"...
// express server on port 3000 var express = require('express'); var app = express(); var server = app.listen(3000); // listen on public directory app.use(express.static(__dirname + '/public'));
var json_TingkatKelahiranKasar_2 = { "type": "FeatureCollection", "name": "TingkatKelahiranKasar_2", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "DESA": "Mojodelik", "T_Kelahira": 5.58 }, "geometry": { "type": "Point", "coordin...
export const startGame = ({whoseTurn}) => { return { type: 'startGame', whoseTurn } } export const placeToken = ({index, token}) => { return { type: 'placeToken', index, token } }
var isMemberExpression = require('estree-is-member-expression') var convertSourceMap = require('convert-source-map') var transformAst = require('transform-ast') var through = require('through2') var hyperx = require('hyperx') var acorn = require('acorn') var path = require('path') var SVG_TAGS = require('./svg-tags') ...
module.exports = { /* Uses express as main server. * http://expressjs.com/en/5x/api.html#router * * You can separate the server configurations define like `default`. */ default: { /* */ port: 9000, auth: { basic: [ // ['USER', 'PASSWORD'] ] }, /* string wit...
/* * 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...
/****************************************** * Author : retry2z * Created On : Tue Nov 26 2019 * File : furniture.js *******************************************/ function solve(input) { //Focus on solving the problem. let totalPrice = 0; //const soldItems = []; console.log('Bought furniture:');...
var jheatmap = require("jheatmap"); $('#heatmap').heatmap( { data : { values : new jheatmap.readers.MatrixHeatmapReader({ url: "./bigmatrix/analysis-results.cdm" }) }, init : function(heatmap) { // Default zoom heatmap.cols.zoom = 1; heatmap.cols.labelSize = 100; heatmap.rows.zoom = 1; ...
function concatenateReversed(strArr) { console.log(strArr.join('').split('').reverse().join('')); } concatenateReversed(['Pesho','abv','Letter']);
let path = require('path'); let extractFilePath = function (url) { let filePath; let fileName = 'index.html'; if(url.length > 1) { fileName = url.substring(1); } console.log(`The fileName is: ${fileName}`); filePath = path.resolve(__dirname, 'app', fileName); return filePath; } m...
import React from 'react'; const styles = require('./Spinner.scss'); const Spinner = () => ( <div className={styles.sk_circle}> <div className={styles.sk_circle1 + ' ' + styles.sk_child} /> <div className={styles.sk_circle2 + ' ' + styles.sk_child} /> <div className={styles.sk_circle3 + ' ' + styles.sk_...
'use strict'; var _ = require('lodash'); var util = require('util'); var errorCodeFormatter = require('./errorCodeFormatter'); var successfulMsgTypes = ['success', 'warning', 'info', 'debug']; var unsuccessfulMsgTypes = ['error', 'warning', 'debug']; var moment = require('moment'); // OperationResult(err) // Operatio...
export default { name: 'Dachsachkyluat', data() { return { users: [ { id: 1, name: 'Shawna Dubbin', email: 'sdubbin0@geocities.com', gender: 'Male', title: 'Assistant Media Planner', }, { id: 2, name: 'Odette Demageard', email: 'odemageard1@spotify.com', g...
var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var ytPlayers = new Array(); //"file:///Users/hanjeongho/Documents/GitHub/website/map.html" /* $.a...
"use strict"; var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; ...
import React, { useState, useEffect } from "react"; import { SchemaContainer, WidgetsFactory, withReducer } from "@itsy-ui/core"; import cubejs from "@cubejs-client/core"; import { CubeProvider } from "@cubejs-client/react"; import { useTransition } from '@itsy-ui/core'; import RGL, { WidthProvider } from 'react-grid-l...
;(function($){ /*******************************************************************************************/ //MODIFIED BY DRAW // jquery.pajinate.js - version 0.4 // A jQuery plugin for paginating through any number of DOM elements // // Copyright (c) 2010, Wes Nolte (http://wesnolte.com) // Licensed under the MIT Li...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "toBeInTheDOM", { enumerable: true, get: function get() { return _toBeInTheDom.toBeInTheDOM; } }); Object.defineProperty(exports, "toBeInTheDocument", { enumerable: true, get: function get() { ...
import React from 'react'; import { Modal, ModalHeader, ModalBody, Button, ModalFooter } from 'reactstrap'; import Samuel from "../PNG/SamuelBot.png" class SamuelModal extends React.Component { constructor(props) { super(props); this.state = { modal: false, }; this.toggle = this...
define([ 'ractive' ], function ( Ractive ) { 'use strict'; return function () { var fixture; module( 'Computations' ); // some set-up fixture = document.getElementById( 'qunit-fixture' ); test( 'Computed value declared as a function', function ( t ) { var ractive = new Ractive({ el: fixture, ...
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.17-master-1b37e82 */
const fs = require("fs"); const createTodo = (title, todo) => { try { // check if the json file exists fs.access('todos.json', (err) => { // if it does not exist, create a new json file if (err){ fs.writeFileSync('todos.json', JSON.stringify([])) } // read f...
"use strict" class Github { /** * Create the payload for a new user with * the response from this service provider. * @param {Hapi.Request} request made. * @return {Object} User object for inserting to data layer. */ static create_user_payload(request) { // Get the profile from the request. ...
for (var j = 0; j < 9; j++) { var a = "1024".match(/\u004f/i).indexOf(j); var b = this.a; } b; (a | a) + j;
var fs = require('fs'); var util = require('util'); var funcs = { 'env': doEnv, 'args': doArgs, 'opts': doOpts }; function getLogger(categoryName) { var logger = { info:console.log, error:console.error, warn:console.warn, debug:console.debug } return logger; }; var configState = {}; function initRelo...
module.exports = new Date(2026, 2, 17)
import React, { Component } from 'react'; import styled from 'styled-components'; import FormCompany from './FormCompany'; import FormOffice from './FormOffice'; import ListCard from './ListCard'; export const Wrapper = styled.div` width: 100%; max-width: 768px; margin: 0 auto; display: flex; flex-wrap: wrap...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of so...
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-rest-not-final-id.case // - src/dstr-binding/default/arrow-function.template /*--- description: Rest element (identifier) may not be followed by any element (arrow function expression) esid: sec-arrow-function-definitions...
'use strict' const express = require("express") const bodyParser = require("body-parser") const app = express() const api = require ('./routes') const cors = require ("cors") app.use(bodyParser.urlencoded({extended: false})) app.use(bodyParser.json()) app.use(cors()) app.use('/api', api) module.exports = app
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.findSiblingsWithFileExtension = exports.decodePossibleOutsideJestVmPath = exports.createOutsideJestVmPath = void 0; function path() { const data = _interopRequireWildcard(require('path')); path = function () { retu...
const AthenaExpress = require("athena-express"); const aws = require("aws-sdk"); /** * Action method. * @param {object} req - The flow request context passed in at runtime. The * parameters are resolved as `req.params` and the available authorization * credentials are passed in as `req.authorizations`. * @param...
'use strict'; const { resolve, basename } = require('path'); exports.onCreateNode = ({ node, actions }) => { const { createNodeField } = actions; if (node.internal.type === 'MarkdownRemark') { const tagKey = basename(resolve(node.fileAbsolutePath, '..')); const slug = basename(node.fileAbsolutePath, '.md...
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(funct...
'use strict'; module.exports = require ('./lib/shoetest');
var data = [{ datetime: "1/1/2010", city: "benton", state: "ar", country: "us", shape: "circle", durationMinutes: "5 mins.", comments: "4 bright green circles high in the sky going in circles then one bright green light at my front door." }, { datetime: "1/1/2010", city: "bonita"...
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import deepmerge from 'deepmerge'; // < 1kb payload overhead when lodash/merge is > 3kb. import isPlainObject from 'is-plain-object'; import warning from 'warning'; im...
var createCharm = require('charm'); var inherits = require('inherits'); var EventEmitter = require('events').EventEmitter; var through = require('through2'); var duplexer = require('duplexer2'); var visualwidth = require('visualwidth'); module.exports = function (opts) { return new Menu(opts || {}); } inherits(Me...
function AdministrationContentController($scope, $http, DialogsService, $window, FileUploader, $uibModal, ScheduledTasksCollectionService) { $scope.gitStatus = null; $scope.uploadItem = null; $scope.uploader = new FileUploader({ autoUpload: true, url: Paths.FILE_UPLOAD, formData: [{ ...
import mongoose from "mongoose"; import {initializeTrackSchema, initializeDefaultSchema, initializeTrackSchemaLayer, addInitialSharetoLayer, addSharetoLayer, switchShareProperty, createNewLayer} from "../helpers/murSchema"; const trackSchema = require('./songSchema').sch...
/* ========================================================================== Sidebar Toggle Initialize: cargobay.sidebarToggle.init(); Support: Latest Chrome Latest FireFox Latest Safari IE9 and up ========================================================================== */ var cargobay...
const os = require('os') const ip = require('ip') // pick the first reasonable looking host. // this should *just work* when running on a vps. const isPrivate = ip.isPrivate function isNonPrivate(e) { return !isPrivate(e) } function address(inter, filter, details) { inter = inter || os.networkInterfaces() filt...
import React from 'react'; import { render } from 'enzyme'; import { requiredProps } from '../../test/required_props'; import { EuiCodeBlockImpl } from './_code_block'; const code = `var some = 'code'; console.log(some);`; describe('EuiCodeBlockImpl', () => { describe('inline', () => { test('renders an inline ...
export default ` \`\`\`jsx import React, { Component } from 'react'; import Checkbox from 'anchor-ui/checkbox'; import CheckboxGroup from 'anchor-ui/checkbox-group'; import Divider from 'anchor-ui/divider'; import _ from 'lodash'; class CheckboxExample extends Component { state = { values: ['On...
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
export default function() { return function({ addUtilities, variants, target }) { if (target('overscrollBehavior') === 'ie11') { return } addUtilities( { '.overscroll-auto': { 'overscroll-behavior': 'auto' }, '.overscroll-contain': { 'overscroll-behavior': 'contain' }, ...
'use strict'; /* ------------------------------------------------------------------------------------------------ CHALLENGE 1 Write a function that will return a reversed string example: "Hello World" Output: "dlroW olleH" Hint: You can use the array function reverse --------------------------------------------------...
import InternElf from '../../src/workers/InternElf'; describe('The method of ParttimeElf', () => { const internElf = new InternElf(); describe('getOutput()', () => { beforeEach(() => { internElf.initializeOutput(InternElf.getMinOutput(), InternElf.getMaxOutput()); }); it('returns a value betw...
import * as Yup from 'yup'; export default async (req, res, next) => { try { const schema = Yup.object().shape({ product: Yup.string().required(), recipient_id: Yup.number().required(), deliveryman_id: Yup.number().required(), }); await schema.validate(req.body, { abortEarly: false });...
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (C) 2015 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 19.5.6.4 description: > RangeError instances have an [[ErrorData]] internal slot. inf...
/* 1. The core module from the @actions/core package. This is the main module that contains all the functions we’ll be using. 2. The Twitter module from the twitter package. This is the module that will allow us to interact with the Twitter API. 3. The fs module from the fs package. This is the module that will allow u...
import Github from './components/Github.vue' export let globalOptions = {} export { Github, } const plugin = { // eslint-disable-next-line no-undef install(Vue) { Vue.component(`vue-github`, Github) } } export default plugin // Auto-install let GlobalVue = null if (typeof window !== 'undefi...
import{j as e,aJ as t,r as a,I as n,K as r,at as o,w as i,o as s,m as l,n as c}from"./vendor.686fd1d4.js";import{_ as d}from"./Tree.vue_vue&type=style&index=0&lang.4ac4e64b.js";import{b4 as u}from"./index.44a64fe8.js";import{g as m}from"./jobGradeType.b38722be.js";import"./useContextMenu.2be85cf6.js";/* empty css ...
function _defineProperties(target, props) { for(var i = 0; i < props.length; i++){ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descript...
/** * Copyright 2021 The Google Earth Engine Community Authors * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
const { reduceToTopmostApiCalls, objToMap, mapToObj } = require('lavamoat-tofu/src/util') const mergeDeep = require('merge-deep') module.exports = { mergeConfig } function mergeConfig (configA, configB) { const mergedConfig = mergeDeep(configA, configB) Object.values(mergedConfig.resources).forEach((packageConfig...
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright an...
import { glob } from "../globals"; import { states } from "../constants"; import { endTransaction } from "../transaction"; import { Computed } from "./computed"; import { getCheckValueFn, checkSpecialContexts, trackComputedContext, notifySubscribers, } from "./common"; export class Observable { con...
let str = ` local text = "hello world" local key = "12345678" local function desencode(key, text, padding) local c = crypt.desencode(key, text, crypt.padding[padding or "iso7816_4"]) return crypt.base64encode(c) end local function desdecode(key, text, padding) text = crypt.base64decode(text) return crypt.desdecod...
/* Manipular matrizes com shift () pop()sempre remove o último elemento de uma matriz. E se você quiser remover o primeiro? É aí que .shift()entra. Funciona exatamente como .pop(), exceto que remove o primeiro elemento em vez do último. Exemplo: const ourArray = ["Stimpson", "J", ["cat"]]; const removedFromOurArray ...
// @ts-nocheck /** * @name Sidebar * @class L.Control.Sidebar * @extends L.Control * @param {string} id - The id of the sidebar element (without the # character) * @param {Object} [options] - Optional options object * @param {string} [options.autopan=false] - whether to move the map when opening the sidebar to ma...
import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import { useLocalStorageSpy } from 'helpers/local_storage_helper'; import AccessorUtilities from '~/lib/utils/accessor'; import SigninTabsMemoizer from '~/pages/sessions/new/signin_tabs_memoizer'; useLocalStorageSpy(); describe('SigninTabsMemoizer'...
/* eslint-env jest */ import { join } from 'path' import { nextBuild, findPort, nextStart, killApp, renderViaHTTP, } from 'next-test-utils' jest.setTimeout(1000 * 60 * 1) let app let appPort const appDir = join(__dirname, '../') describe('AMP Custom Optimizer', () => { it('should build and start for sta...
const Response = require('./response') const Modes = require('../models/modes') const Resource = require('../models/resource') const ResourceService = require('../services/resource-service') const ErrorHandling = require('./error-handling') const _ = require('underscore') const BlobService = require('../services/blob-s...
/** * @fileOverview A partical object for a factory. * @author kclv@ermitejo.com (MORIYA Masaki, alias Gardejo) * @license The MIT license (See LICENSE file) */ 'use strict'; // ================================================================ // Generic Factory // =================================================...
import React, {Component} from 'react'; import LinearProgress from '@material-ui/core/LinearProgress'; class LinearBuffer extends Component { timer; state = { completed: 0, buffer: 10, }; progress = () => { const {completed} = this.state; if (completed > 100) { ...
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. 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....
import 'babel-polyfill' import Collections from './collections/index' import Events from './events/index' import Collection from './collections/collection' class Hades extends Events { constructor(init) { super(); this.collections = new Collections(); if (init && typeof init === "function") init.bind(this...
const create = require('../../handlers/createDb'); const activities = require('../../utils/activity.json'); const request = require('node-superfetch'); const { dblKey, botsggkey } = require('../../assets/config.json'); const ms = require('ms'); const checkIfDBExists = require("../../handlers/createDb"); module.exports ...
L.U.AutoComplete = L.Class.extend({ options: { placeholder: 'Start typing...', emptyMessage: 'No result', allowFree: true, minChar: 2, maxResults: 5 }, CACHE: '', RESULTS: [], initialize: function (el, options) { this.el = el; var ui = new L...