text
stringlengths
2
1.05M
// @ts-check class KeyboardInputManager { constructor() { this.events = {}; if (window.navigator.msPointerEnabled) { //Internet Explorer 10 style this.eventTouchstart = "MSPointerDown"; this.eventTouchmove = "MSPointerMove"; this.eventTouchend = "MSPointerUp"; } else { this....
export const topicListStyles = ` <style> .topic-list { width: 432px; } #no-topics-yet-message { display: flex; height: 400px; font-weight: 300; font-size: 24px; align-items: center; justify-content: center; } .topic-list-topic-wrapper { padding: 5px 10px; } .topic-list-p...
import {useDesktop} from "@owd-client/core/index"; export default { state: { greeting: '', options: {}, listAllCommandsInConsoleLog: false }, getters: { greeting(state) { let greeting = state.greeting const desktop = useDesktop() // replace greeting app variables greeti...
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import PropTypes from "prop-types" import { Helmet } from "react-helmet" import { useStaticQuery, graphql } from "gatsby" function SEO({ descr...
import queryString from 'query-string'; import {http} from 'components'; export default class Vk { constructor() { this.clientId = ''; } async init() { return Promise.resolve(); } async start() { return new Promise((resolve ,reject) => { // Generate url ...
(function() { const icons = { "material/navigation/apps": "M8 16h8V8H8v8zm12 24h8v-8h-8v8zM8 40h8v-8H8v8zm0-12h8v-8H8v8zm12 0h8v-8h-8v8zM32 8v8h8V8h-8zm-12 8h8V8h-8v8zm12 12h8v-8h-8v8zm0 12h8v-8h-8v8z", "material/navigation/arrow-back": "M40 22H15.66l11.17-11.17L24 8 8 24l16 16 2.83-2.83L15.66 26H40v-4z", "material/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 ...
/*global QUnit*/ sap.ui.define(["sap/ui/core/Core", "sap/ui/model/json/JSONModel", "sap/ui/core/mvc/XMLView"], function (Core, JSONModel, XMLView) { "use strict"; QUnit.module("modelMapping", { beforeEach: function (assert) { var done = assert.async(); XMLView.create({ id: ...
// Swticher Cookie Base /** * Styleswitch stylesheet switcher built on jQuery * Under an Attribution, Share Alike License * By Kelvin Luck ( http://www.kelvinluck.com/ ) * Thanks for permission! **/ (function ($) { $(document).ready(function () { $('.styleswitch').click(function () { switch...
'use strict'; const fs = require('fs'); const hub = require('./hub'); const promisify = require('./util/promisify'); const writeFile = promisify(fs.writeFile); function fileWriter(file, text) { return writeFile(file, Buffer.from(text)) .then(() => hub.emit('saved',file)); } module.exports = fileWriter;
import { NotImplementedError } from '../extensions/index.js'; /** * Given an email address, return it's domain. * * @param {String} email * @return {String} * * @example * For the input 'prettyandsimple@example.com', the output should be 'example.com' * */ export default function getEmailDomain(email) { let...
import React from 'react' import './style.css' export default function index() { return ( <div className="top-header"> <a className="top-header-links">Qualified Products List </a> <a className="top-header-links">Join the Ecosystem</a> <a className="top-header-links"> Buy ...
"use strict";describe("myApp.view2 module",function(){beforeEach(module("myApp.view2")),describe("view2 controller",function(){it("should ....",inject(function(e){var i=e("View2Ctrl");expect(i).toBeDefined()}))})});
(function(window){var svgSprite='<svg><symbol id="icon-check-circle" viewBox="0 0 1024 1024"><path d="M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8c12.7 17.7 39 17.7 51.7 0l210.6-292c3.9-5.3 0.1-12.7-6.4-12.7z" ></path><path d="M512 6...
var callbackArguments = []; var argument1 = function callback(a,b,c) { callbackArguments.push(JSON.stringify(arguments)) base_0[1]['!cck7Mm'] = "V" argument2[5] = 242 argument1[3.377960715099946e+307] = {"25":618,"655":"","":"","'w%":"[","DyX":1.4324961336853825e+308,"y":460} return a+b+c }; var argument2 = func...
var assert = require('assert'), Hawkejs = require('../index.js'), hawkejs, test_id = 0; describe('CustomElement', function() { before(function() { hawkejs = createHawkejsInstance(); hawkejs.parallel_task_limit = 1; hawkejs.addViewDirectory(__dirname + '/templates'); }); describe('#retained()'...
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
/** * */ let lifeData = {}; try { // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的 lifeData = uni.getStorageSync('lifeData'); } catch (e) { console.log('lifeData error', lifeData); } export default { state: { status: { 0: '待修改', 1: '待装车', 2: '待签收', 3: '已签收...
/*! * ${copyright} */ sap.ui.define([ "sap/m/library", "sap/ui/core/Core" ], function(mLibrary, Core) { "use strict"; var ValueColor = mLibrary.ValueColor; /** * MicrochartLegendRenderer renderer. * @namespace */ var MicrochartLegendRenderer = { apiVersion: 2 }; MicrochartLegendRenderer.render = f...
import React, {Component} from 'react'; import { Button, CardBody, Col, Form, FormGroup, FormText, Input, Label, Modal, ModalBody, ModalFooter, ModalHeader, } from 'reactstrap'; import Service from '../../../services'; import {AppSwitch} from '@coreui/react' class Beacons extends Component { constructor(p...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | hello-word', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(assert) { ...
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, Image, ScrollView, ImageBackground, } from 'react-native'; import DeviceInfo from 'react-native-device-info'; import { Actions } from 'react-native-router-flux'; import { connect } from 'react-redux'; import { BtnDrawer } from '../../com...
import React from 'react'; import { Navbar } from 'react-bootstrap'; import { Link } from 'gatsby'; import styles from './header.module.css'; const Header = ({ title }) => ( <Navbar variant="dark" className={styles.header}> <Navbar.Brand className={styles.brandtext}> <Link to="/" className={styles.link}>{t...
const logger = require('@blackbaud/skyux-logger'); const fs = require('fs-extra'); const latestVersion = require('latest-version'); const path = require('path'); const promptly = require('promptly'); const clone = require('./utils/clone'); const npmInstall = require('./utils/npm-install'); const spawnUtils = require('...
import React from "react" import { Icon, Flex, IconButton, useColorMode, Link, Stack, HStack, chakra, useColorModeValue, } from "@chakra-ui/core" import { DiGithubBadge } from "react-icons/di" import { FaMoon, FaSun } from "react-icons/fa" import Search from "./algolia-search" import Logo from "./logo...
import mapExists from '../../../util/mapExists'; export default function zoomOut(map) { if (!mapExists(map)) return false; let currentZoom; currentZoom = Math.round(map.getZoom()); map.setZoom(currentZoom - 1); }
import { lookAt, useWith } from '../helpers/transcription' import { getItem, getInteraction } from '../managers/item' export default (state, action) => { const subState = state.game; let newRecord; switch (action.type) { case 'START_HOVER': return { .....
var reload, action_path = ctx + 'system/code/'; layui.config({ base: '../../js/' }).use(['table', 'popup', 'form'], function () { var $ = layui.jquery, table = layui.table, layer = layui.layer, popup = layui.popup, form = layui.form; // 渲染表格 table.render({ elem: '#datas', id: 'd', ...
//Setting up route angular.module('mean').config(['$stateProvider','$urlRouterProvider', function($stateProvider,$urlRouterProvider) { $urlRouterProvider.otherwise(function($injector, $location){ $injector.invoke(['$state', function($state) { $state.go('404'); }]); }); $statePro...
import qs from "qs"; import { get, requestData } from '../../../utils/request2' export const deleteList = (data) => { //删除友情链接 return requestData({ url: '/comsys-portal-web/friendshipLink/delete', method: 'POST', data: qs.stringify(data) }) } export const getList = (data) => { //友情链接列表...
import md5 from 'md5'; import { el } from 'redom'; const OFFICIAL_URL = 'https://www.gravatar.com/avatar/'; const V2EX_CDN = 'https://cdn.v2ex.com/gravatar/'; export default function getGravatarImg(email, cdn, defaultImg) { // calculate email hash const hash = md5(email); // construct request url let url = `$...
const os = require('os'); ///获取本机ip/// function getIPAdress() { var interfaces = os.networkInterfaces(); for (var devName in interfaces) { var iface = interfaces[devName]; for (var i = 0; i < iface.length; i++) { var alias = iface[i]; if (alias.family === 'IPv4' && alias...
/** * skylark-ace - A version of ace v1.4.3 that ported to running on skylarkjs. * @author Hudaokeji Co.,Ltd * @version v0.9.0 * @link www.skylarkjs.org * @license MIT */ define(function(require,exports,module){"use strict";var e=require("../lib/oop"),i=require("./text").Mode,t=require("./jade_highlight_rules").J...
// 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 to in writing, software // distributed un...
// import async to make control flow simplier var async = require('async'); // import the rest of the normal stuff var mongoose = require('../../lib'); require('./person.js')(); var Person = mongoose.model('Person'); // define some dummy data var data = [ { name: 'bill', age: 25, birthday: new Date()...
/* * CLASSE DE UTILIDADES */ class Utils { static dateFormat(date){ return date.getDate()+'/'+(date.getMonth()+1)+'/'+date.getFullYear()+' '+date.getHours()+':'+date.getMinutes(); } }
/* eslint-disable consistent-return */ const chalk = require('chalk'); const SpringServiceGenerator = require('generator-jhipster/generators/spring-service'); module.exports = class extends SpringServiceGenerator { constructor(args, opts) { super(args, { fromBlueprint: true, ...opts }); // fromBlueprint va...
import ActiveSection from './ActiveSection.js'; export default class ActiveSection { constructor(links) { this.links = document.querySelectorAll(links); this.scrollToSection = this.scrollToSection.bind(this); } getScrollTopByHref(id) { return document.querySelector(id).offsetTop; } scrollToPos...
var CoreView = require('backbone/core-view'); var _ = require('underscore'); var cellTemplate = require('./table-body-cell.tpl'); var pointGeojsonParser = require('builder/helpers/point-geojson-parser'); var FORMATTED_TYPE_VALUES = { 'geometry': pointGeojsonParser }; var EXCLUDED_COLUMNS = ['the_geom_webmercator'];...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-componentsC-messageInput-index"],{"0882":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,...
module.exports = { siteMetadata: { title: `Gatsby`, author: { name: `random guy`, summary: `blah blah blah`, }, description: `A starter blog demonstrating what Gatsby can do.`, siteUrl: `https://gatsbystarterblogsource.gatsbyjs.io/`, social: { twitter: `kylemathews`...
var rconParser; var eventParser; var plugin = { author: 'RaidMax', version: 0.3, name: 'Tekno MW3 Parser', isParser: true, onEventAsync: function (gameEvent, server) { }, onLoadAsync: function (manager) { rconParser = manager.GenerateDynamicRConParser(this.name); eventPars...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
'use strict'; import { module } from 'angular'; import _ from 'lodash'; import { AccountService, LOAD_BALANCER_READ_SERVICE, NetworkReader, SubnetReader } from '@spinnaker/core'; import { GCE_ADDRESS_READER } from 'google/address/address.reader'; import { GCE_CERTIFICATE_READER } from 'google/certificate/certificate....
// Import Dependencies. const gulp = require("gulp"); const path = require("path"); const depcruise = require('dependency-cruiser'); const colorConsole = require('../../NodeHelpers/colorConsole'); // Read the full config. const config = require("../../Config/config.js"); /* * TsLint all typescript files fr...
"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) { ...
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@babel/runtime-corejs3/helpers/esm/typeof"),require("core-js/modules/es.function.name.js"),require("vuetify/lib"),require("vue-runtime-helpers/dist/normalize-component.mjs")):"function"==typeof define&&define.amd?define(["exports","@...
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ // Import stuff import React, { Component } from 'react'; import Nav from './Nav.react'; import { connect } from 'react-redux'; import auth fr...
export default (coin, txId) => { if (['ETH', 'EOS', 'BDG', 'GNT', 'OMG', 'QTM', 'BAT', 'REP', 'BNB', 'KCS', 'KNC', 'HT', 'BNT', 'BIX', 'COB', 'COSS'].indexOf(coin) > -1) return `https://etherscan.io/tx/${txId}`; else if (coin === 'LTC') return `https://blockchair.com/litecoin/transaction/${txId}`; else if (co...
// $('.search-button').click(function () { // alert("Button clicked!"); // }) var displayWikipediaData = function() { var $linksElement = $('#links'); var searchString = $('#searchString').val(); console.log(searchString); var wikipediaUrl = "https://en.wikipedia.org/w/api.php?action=opensearc...
import React, {Component} from 'react'; export class CustomDateSelect extends Component { constructor(props) { super(props); this.state = {isExpanded: true}; } render() { return ( <div className="form-group"> <input className="form-control" type="text" {...this.props}/> {this.s...
import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom/server'; import serialize from 'serialize-javascript'; import Helmet from 'react-helmet'; /** * Wrapper component containing HTML metadata and boilerplate tags. * Used in server-side code only to wrap the string output of the * ren...
var ManagementServer = require("../lib/package/ManagementServer.js"), debug = require("debug")("bundlelinter:ManagementServer"), assert = require("assert"); function test(org, api, revision, expectedSize) { describe("download a bundle.", function() { var ms = new ManagementServer(org); it("bundle size sh...
var namespacechinese = [ [ "tests", "db/d9d/namespacechinese_1_1tests.html", null ], [ "views", "d1/d0f/namespacechinese_1_1views.html", null ] ];
// Copyright 2010 The Closure Library Authors. 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 requ...
var LonLatColumnsModel = require('../../../../../../javascripts/cartodb/common/dialogs/georeference/lon_lat_columns_model'); var GeocodeStuffModel = require('../../../../../../javascripts/cartodb/common/dialogs/georeference/geocode_stuff_model'); describe('common/dialog/georeference/lon_lat_columns_model', function() ...
import {log} from '../../common'; import {LENGTH_COUNTER_VALUES} from './constants'; const DUTY_WAVEFORM = [ 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ]; export default class Triangle { constructor() { log.info('Initializing triangle channel...
import { Far } from '@endo/marshal'; export function buildRootObject(_vatPowers) { return Far('root', { hello() { console.log(`=> Somebody said hello to Bob`); return 'hi there!'; }, }); }
const path = require('path'); const Dotenv = require('dotenv-webpack'); module.exports = { mode: 'development', plugins: [ new Dotenv({ path: path.resolve(__dirname, '..', './.env.development'), }), ], devtool: 'eval-source-map', };
const VERSION = "2.9.0"; /** * Some “list” response that can be paginated have a different response structure * * They have a `total_count` key in the response (search also has `incomplete_results`, * /installation/repositories also has `repository_selection`), as well as a key with * the list of the items which ...
'use strict'; module.exports = { set: function (v) { this.setProperty('orphans', v); }, get: function () { return this.getPropertyValue('orphans'); }, enumerable: true };
define(["require", "exports", "@microsoft/load-themed-styles"], function (require, exports, load_themed_styles_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); load_themed_styles_1.loadStyles([{ "rawString": ".resultContent_daad23ee{display:table-row}.resultContent_daad23...
/* Field Button Set (button_set) */ /*global jQuery, document, redux*/ (function( $ ) { "use strict"; redux.field_objects = redux.field_objects || {}; redux.field_objects.button_set = redux.field_objects.button_set || {}; redux.field_objects.button_set.init = function( selector ) { ...
var group__peripheral_structperipheral__packet__interface__t = [ [ "abortDataPhase", "group__peripheral.html#af77ad57cd18d75ac0d63708629d5c0f9", null ], [ "byteReceivedCallback", "group__peripheral.html#a6cbfe871a99814cf3631b199fd3a2334", null ], [ "finalize", "group__peripheral.html#a1ff7c06938106af90a6531...
(function ($) { let GITHUP_API = `https://api.github.com/repos/nshaibu/`; let GITHUP_REPO_NAMES = ["QBox", "shortcutVirusRemover", "ChatClient", "ConcurrentServer", "TrimLabelImg", "PostfixExpressionAndEvaluation", "Invoice-Ma...
(function() { var Widget = kendo.ui.Widget; var ResizableWidget = Widget.extend({ init: function(element, options) { element.css({ width: "100%", height: "100%" }); Widget.fn.init.call(this, element, options); }, options: { name: "ResizableWidget" ...
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/alpinejs/dist/module.esm.js": /*!**************************************************!*\ !*** ./node_modules/alpinejs/dist/module.esm.js ***! \**************************************************/ /***/ ((__unused_webpac...
angular.module('mobility').service('MobilityService', function ($http) { return { getAll: function (callback) { $http.get('gui/omobility/get_all').success(callback); }, getMobilityStatuses: function (callback) { $http.get('gui/omobility/mobility_statuses').success(cal...
import { memo } from 'react' import PropTypes from 'prop-types' import { BasicTooltip } from '@simspace/nivo-tooltip' const ChordArcTooltip = memo(({ arc }) => { return ( <BasicTooltip id={arc.label} value={arc.formattedValue} color={arc.color} enableChip={tr...
import{r as t,c as e,h as l,H as i,g as a}from"./p-a3958a94.js";import{s}from"./p-b0f3bd3c.js";const o=class{constructor(l){t(this,l),this.bkkrColor=e(this,"bkkrColor",7),this.bkkrStyle=e(this,"bkkrStyle",7),this.inRange=!1,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("bkkr-range"),this.noAnimat...
var ts = require('total-sorta'); var inherits = require('inherits'); var BinarySearchTree = require('./binarySearchTree.js'); // Treat these two variables like class-level constants. var RED = true; var BLACK = false; inherits(RedBlackTree, BinarySearchTree); /** * Left-Leaning Red-Black Binary Search Tree * What ...
import axios from 'axios' import BASE_URL from '../config/consts' const RECREATION_FETCHED = 'RECREATION_FETCHED' export const getRecreation = () => { return dispatch => { axios .get(`${BASE_URL}/expenseRecreation`) .then(response => dispatch({ ...
$((function(){"use strict";var e=$(".datatables-basic"),t=$(".dt-date"),a=$(".dt-complex-header"),s=$(".dt-row-grouping"),l=$(".dt-multilingual"),o="../../../app-assets/";if("laravel"===$("body").attr("data-framework")&&(o=$("body").attr("data-asset-path")),e.length){var n=e.DataTable({ajax:o+"data/table-datatable.json...
/*! * Start Bootstrap - Resume v7.0.0 (https://startbootstrap.com/theme/resume) * Copyright 2013-2021 Start Bootstrap * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-resume/blob/master/LICENSE) */ // // Scripts // window.addEventListener('DOMContentLoaded', event => { // Activate Bootstrap ...
import { SHAPES } from '../const'; /** * The Rounded Rectangle object is an area that has nice rounded corners, as indicated by its * top-left corner point (x, y) and by its width and its height and its radius. * * @class * @memberof PIXI */ export default class RoundedRectangle { /** * @param {number} ...
import { Maybe, cursor, first, getOrElse, show, get } from "../../.."; test("it should return the value in a Some if it exists", function () { expect(first(cursor([1, 2, 3], [])) instanceof Maybe.Some).toBe(true); expect(getOrElse(first(cursor([1, 2, 3])), 0)).toBe(1); expect(getOrElse(first(cursor([1, 2, 3])), ...
import React, { Fragment } from 'react'; import { Link } from 'react-router-dom'; import Icon from '../../atoms/icon'; export default ({ icon, path, active, dataTour }) => { const activeClass = active ? 'active' : ''; return ( <Fragment> <Link className={`bottom-nav-tile ${activeClass}`} ...
import * as swcHelpers from "@swc/helpers"; function f1(x) {} function f2(x) {} function f3(x) {} function f4(x) {} function f5(x) {} function f6(x) {} function f7(x) {} function f8(x) {} function f9(x) {} var C = /*#__PURE__*/ function() { "use strict"; function C() { swcHelpers.classCallCheck(this, C)...
/** * Copyright 2020 - Offen Authors <hioffen@posteo.de> * SPDX-License-Identifier: Apache-2.0 */ const assert = require('assert') const flash = require('./flash') describe('src/action-creators/flash.js', function () { describe('expire(error)', function () { it('creates a flash expiry action', function () {...
// Prompt user Options const inquirer = require('inquirer'); const processResponse = require('./processResponse'); const prompt = inquirer.createPromptModule(); class Questions { constructor () { this.response; this.promptQueue = []; this.questions = [ { type: 'list', message: 'Sele...
const express = require('express'); const jwt = require('jsonwebtoken'); const app = express(); app.get('/api', (req, res) => { res.json({ message: 'Bem vindo à API' }); }); app.post('/api/posts', verifyToken, (req, res) => { jwt.verify(req.token, 'secretkey', (err, authData) => { if(err){ res.se...
/*globals define, $, _*/ /*jshint browser: true, camelcase: false*/ /** * @author rkereskenyi / https://github.com/rkereskenyi * @author nabana / https://github.com/nabana */ define(['js/PanelBase/PanelBase', 'css!./styles/PanelBaseWithHeader.css'], function (PanelBase) { 'use strict'; var PanelBaseWithH...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.map description: Array.prototype.map throws TypeError if callbackfn is boolean ---*/ var arr = new Array(10); assert.throws(TypeError, function() { a...
import { initUrqlClient } from 'next-urql'; import { ssrExchange, dedupExchange, cacheExchange, fetchExchange, useQuery, gql, } from 'urql'; const POKEMONS_QUERY = gql` query { pokemons(limit: 10) { id name } } `; function Static() { const [res] = useQuery({ query: POKEMONS_QUERY...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _rollupPluginBabelHelpers = require('../_rollupPluginBabelHelpers-8f9a8751.js'); var createComponent = require('reakit-system/createComponent'); var createHook = require('reakit-system/createHook'); require('reakit-utils/shallowEqual'); ...
(function() { function Fixtures() { var Fixtures = {}; var albumPicasso = { title: 'The Colors', artist: 'Pablo Picasso', label: 'Cubism', year: '1881', albumArtUrl: '/assets/images/album_covers/01.png', songs: [{ title: 'Blue', duration: '161.71', ...
// flow-typed signature: e8d2eeca27701cbe85ede6d419cefba0 // flow-typed version: <<STUB>>/react-hot-loader_v^4.3.5/flow_v0.79.1 /** * This is an autogenerated libdef stub for: * * 'react-hot-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
module.exports = function(val) { let config = val; const res = []; global.breakpoints.forEach((breakpoint) => { if (config[breakpoint.name]) { const value = config[breakpoint.name]; const media = breakpoint.value === 0 ? '' : `(min-width: ${breakpoint.value / 16}em)`; const base = b...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { loginUser } from '../../redux/actions/authActions'; import TextFieldGroup from '../common/TextFieldGroup'; import LoadingButton from '../common/LoadingButton'; class Login extends Component { ...
/** * A block which waits for some condition to become true, with timeout. * * @constructor * @extends jasmine.Block * @param {jasmine.Env} env The Jasmine environment. * @param {Number} timeout The maximum time in milliseconds to wait for the condition to become true. * @param {Function} latchFunction A functio...
/* * * 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"); y...
function foo1() { return; } function bar() { return "foo"; } function foo2() { return 1, "foo"; } () => { return /a/; } function foo3() { return /a/; }
export default { // not sure if we can really test this in JSDOM. Refer to // https://svelte.technology/repl?example=media-elements // instead skip: true, test ( assert, component, target, window ) { assert.equal( component.get( 't' ), 0 ); assert.equal( component.get( 'd' ), 0 ); assert.equal( component.ge...
function ImagePool(size) { this.size = size this.images = [] this.counter = 0 } ImagePool.prototype.next = function() { if (this.images.length < this.size) { var image = new Image() this.images.push(image) return image } else { if (this.counter >= this.size) { // Reset for unlikely bu...
var n=0; var showNum = document.getElementById("num"); function Mea(value){ n=value; setBg(value); plays(value); } function setBg(value){ for(var i=0;i<4;i++){ if(value==i){ document.getElementById("a"+value).className='act'; } else{ document.getElementById("a"+i).className='n...
'use strict'; const nodeAssert = require('assert'); const TeleIrc = require("../lib/TeleIrc"); const TEST_NICKSERV_REGISTERED_NICK = "NickservNick" const TEST_NICKSERV_PASSWORD = "ThisIsATestPassword"; const TEST_NICKSERV_SERVICE = "TestNickServServiceNick"; const TEST_MESSAGE = "Test message body"; const BLACKLISTED...
/** * get the SPub and TPub from server, store it in localStorage * @param serverUrl the url of the server. */ function initialize() { localStorage.removeItem("SPub"); localStorage.removeItem("TPub"); if (localStorage.getItem("SPub") === null || localStorage.getItem("SPub") === "undefined") { $.a...
/*global window */ /*jslint white: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ /* ulib - jsguy's standalone micro utilities library Copyright (C) 2011 by Mikkel Bergmann Permission is hereby granted, free of charge, to any p...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[51],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/reader/suggestions/List.vue?vue&type=script&lang=js&": /*!**********************************************************************************...
/** * @copyright Daniels Kursits (evolbug), 2019 <https://github.com/evolbug> * @license MIT license <https://opensource.org/licenses/MIT> */ const { render, html, svg } = lighterhtml; class Fragment { /** * @param {Node|Fragment} parent * @param {...mixed} args */ constructor(parent, ...arg...