text stringlengths 2 1.05M |
|---|
'use strict';
const helpers = require('../helpers');
exports.indexOrConstraintTest = (type, options) => {
const title = type
.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1 $2')
.toLowerCase();
describe(title, () => {
let differ;
beforeEach(() => {
differ = helpers.getDiffer();
});
it(... |
import { TwingNodeExpression } from "../expression";
import { TwingNodeType } from "../../node-type";
export const type = new TwingNodeType('expression_constant');
export class TwingNodeExpressionConstant extends TwingNodeExpression {
constructor(value, lineno, columnno) {
super(new Map(), new Map([['value'... |
/*
* Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute
* of Technology. Users are free to copy, change or remove. Because no one
* will read this. Only I know is that Repeaters are the best of the world.
* Only I know is that Repeaters are the best of the world. Only I know is
* that Repea... |
// enable runtime transpilation to use ES6/7 in node
// var fs = require('fs');
// var babelrc = fs.readFileSync('./.babelrc');
var babelrcObject = {
"presets": ["react", "es2015", "stage-0"],
"plugins": [
"transform-runtime",
"add-module-exports",
"transform-decorators-legacy",
"transform-react... |
import React, {Component} from "react"
import {StyleSheet, Text, View} from "react-native"
import {Gesture, GesturePad} from "react-native-gesture-login"
class GestureDemo extends Component {
state = {
password: '',
title: 'Please input your password.',
isWrong: false,
}
onRelease = (password) => ... |
(() => {
const width = 1280;
const height = 1024;
const oldCanvas = document.getElementById('canvas');
oldCanvas.parentNode.removeChild(oldCanvas);
const canvas = document.createElement('canvas');
canvas.id = 'canvas';
canvas.width = width;
canvas.height = height;
document.body.appendChild(canvas);
... |
// Copyright 2007 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... |
require('./index.less');
require('antd/lib/tooltip/style/index');
|
import {
readCSV,
readJSON,
writeJSON,
removeFile,
} from "https://deno.land/x/flat@0.0.11/mod.ts";
const outputFilename = "./dashboard/data.json";
// load data saved from Flat
const mobilityData = await readJSON("./raw-data/mobility.json");
const covidStatsData = await readJSON("./raw-data/covid_stats.json")... |
/* @ngInject */
const RouteConfig = function (
$locationProvider,
$stateProvider,
$urlRouterProvider
) {
$locationProvider.hashPrefix('');
$stateProvider
.state('app', {
abstract: true,
template: '<app></app>'
})
.state('app.rootPath', {
url: '',
accessMode: 'private',
... |
var Level = "";
var State = "";
$.ajaxSetup({
cache: false,
headers: {'Cache-Control': 'no-cache'}
});
function init(){
refreshLocationTimer = setTimeout(init, 10*1000);
jQuery.get('file:///private/var/mobile/Library/BatteryStats.txt', function(appdata) {
var myvar = appdata;
var substr = appdata.split('\n');
var ... |
/**
* Cesium - https://github.com/CesiumGS/cesium
*
* Copyright 2011-2020 Cesium Contributors
*
* 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/LICEN... |
let project = null;
let execution = null;
$(document).ready(function() {
project = projectName;
execution = executionName;
fillInBreadcrumb(project, execution);
if(project == null) {
$('#reportTable thead tr').prepend('<th>Project</th>')
}
loadTable();
})
function loadTable() {
le... |
import React from 'react'
import { Icon } from './Icon'
import { bb, no, te } from './fragments'
export const TwoToneMoodBad = /*#__PURE__*/ props => <Icon {...props}>
<path opacity=".3" d={te + "m-1.61 9c.8-2.04 2.78-3.5 5.11-3.5s4.31 1.46 5.11 3.5z"}/><circle cx="8.5" cy="9.5" r="1.5"/><path d={"M11.99 2" + bb + "... |
var searchData=
[
['data_20types_5945',['Data types',['../group___c_o__data_types.html',1,'']]],
['driver_5946',['Driver',['../group___c_o__driver.html',1,'']]]
];
|
import React, { useRef, useState } from 'react';
import {
EuiButtonIcon,
EuiText,
EuiSpacer,
EuiTourStep,
EuiCode,
} from '../../../../src/components';
export default () => {
const [isOpenRef, setIsOpenRef] = useState(true);
const [isOpenSelector, setIsOpenSelector] = useState(true);
const anchorRef =... |
document.addEventListener('DOMContentLoaded', () => {
const canvas = document.getElementById("myCanvas");
const context = canvas.getContext("2d");
context.strokeStyle = "red";
context.fillStyle = "rgba(0, 0, 255, 0.1)";
function random(max = canvas.height) {
return Math.floor(Math.rando... |
/*!
* @package yii2-widget-activeform
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.5.4
*
* Active Field Hints Display Module
*
* Author: Kartik Visweswaran
* Copyright: 2015, Kartik Visweswaran, Krajee.com
* For... |
(function () {
function SpectrogramVisualizer(audioContext, canvasElement) {
this.analyserNode = audioContext.createAnalyser();
this.analyserNode.fftSize = 8192;
this.fftData = new Float32Array(this.analyserNode.frequencyBinCount);
this.graphicWidth = parseInt(getComputedStyle(canvasElement).width, 1... |
/// <reference types="cypress" />
describe('Example 16: Grid State & Presets using Local Storage', () => {
const fullEnglishTitles = ['', 'Title', 'Description', 'Duration', '% Complete', 'Start', 'Completed'];
const fullFrenchTitles = ['', 'Titre', 'Description', 'Durée', '% Achevée', 'Début', 'Terminé'];
befo... |
/**
*
* create by guorg
*
* @flow
*
*/
import * as React from 'react';
import ThemeProvider from '../theme-provider';
import Widget from '../consts/index';
import Line from './line';
import Circle from './circle';
export default ThemeProvider(
class extends React.Component<any, any> {
getIconTheme = (statu... |
var searchData=
[
['timermainwindowcontroller_2ejava_226',['TimerMainWindowController.java',['../_timer_main_window_controller_8java.html',1,'']]]
];
|
module.exports.run = async (client, message) => {
const Discord = require("discord.js");
const ms = require("ms");
let time = "";
let winnersCount;
let prize = "";
let giveawayx = "";
let embed = new Discord.MessageEmbed()
.setTitle("Edit A Giveaway!")
.setColor('#2F3136')
.setFooter(client.us... |
import axios from 'axios'
import store from '@/store'
// import { Spin } from 'iview'
const addErrorLog = errorInfo => {
const { statusText, status, request: { responseURL } } = errorInfo
let info = {
type: 'ajax',
code: status,
mes: statusText,
url: responseURL
}
if (!responseURL.includes('save... |
NDSearch.OnPrefixDataLoaded("get",["Function"],[["getColor",,[["Apos.Gui.Label",,,,0,"File:Label.cs:Apos.Gui.Label.getColor","CSharpClass:Apos.Gui.Label:getColor"]]],["GetFinal",,[["Apos.Gui.Border",,,,0,"File:Border.cs:Apos.Gui.Border.GetFinal","CSharpClass:Apos.Gui.Border:GetFinal"],["Apos.Gui.Component",,,,0,"File:C... |
require(['jquery',
'models/annotation',
'collections/annotations',
'access'],
function($, Annotation, Annotations, ACCESS){
var annotations,
annotation,
add,
get... |
//ubicar elemento dentro del DOM
var txt = document.getElementById('txt');
//declarar funcion/es de control
/* mostrar un reloj digital = 21:29 */
function reloj()
{
//creamos objeto de fecha
var fecha = new Date();
//obtenemos las horas
var horas = fecha.getHours();
//obtenemos los minutos
v... |
// group into day-month-year
const groupByDate = (inputArr) => {
const monthGroups = inputArr.reduce((groups, item) => {
let formattedDate = ''
const date = new Date(item.date)
const day = date.toLocaleDateString('en-US', { day: 'numeric' })
const month = date.toLocaleDateString('en-US', { month: 'lo... |
import { shallow } from 'enzyme'
import React from 'react'
import STATUS from 'helpers/status'
import FilmstripViewerContainer from './FilmstripViewerContainer'
let wrapper
const resetSpy = jest.fn()
const changeIndexSpy = jest.fn()
const setActiveTranscriptionSpy = jest.fn()
const contextValues = {
aggregations: {... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v4.2.3 (c) Oliver Folkerd */
var Va... |
var jsdom = require('jsdom');
var assert = require('assert');
var chai = require('chai');
chai.should();
var React = require('react/addons'),
ReactTestUtils = React.addons.TestUtils;
var Immutable = require('immutable');
var Cursor = require('immutable/contrib/cursor');
var component = require('../');
var shou... |
'use strict';
module.exports = globSync;
globSync.GlobSync = GlobSync;
var fs = require('fs');
var minimatch = require('minimatch');
var Minimatch = minimatch.Minimatch;
var Glob = require('./glob.js').Glob;
var util = require('util');
var path = require('path');
var assert = require('assert');
var isAbsolute = requi... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{3729:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return l}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&... |
import { URL } from '@wya/utils';
/**
* 列表搜索项重置
* @param {Array} whiteList 不需要重置掉的参数数组
*/
export default (whiteList = []) => {
return {
methods: {
handleReset() {
const { path } = this.$route;
const { query } = URL.parse();
const mutation = path
.replace(/^\//, '')
.replace(/(-\d+)/, ''... |
jQuery(document).ready((function(e){var i=e(".faq-ans").hide();i.first().show(),e(".faq-que").click((function(){var n=e(this);i.slideUp(),n.next().slideDown()}))})),jQuery(document).ready((function(e){var i=e(".orderlist-body").hide();i.first().show(),e(".orderlist-head").click((function(){var n=e(this);i.slideUp(),n.n... |
class MemoryStore {
constructor({expire = 0}) {
this.store = new Map();
this.expire = expire;
}
async get(id) {
const item = this.store.get(id);
if (! item) {
return null;
}
if (item.expire && item.expire < new Date()) {
this.store.d... |
import { GraphQLString, GraphQLNonNull, GraphQLBoolean } from 'graphql';
import { assertUser } from 'util/user';
import client from 'util/client';
import scrapUrls from 'util/scrapUrls';
import ReplyTypeEnum from 'graphql/models/ReplyTypeEnum';
import MutationResult from 'graphql/models/MutationResult';
import { cre... |
import React from "react";
import "./Wrapper.css";
const Wrapper = props => <div className="wrapper container">{props.children}</div>;
export default Wrapper;
|
//// [parserDebuggerStatement2.ts]
debugger;
//// [parserDebuggerStatement2.js]
debugger;
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import React, { Component } from 'react'
export class DrumPad extends Component {
componentDidMount() {
document.addEventListener('keydown', this.handleKeyPress)
}
componentWillUnmount() {
document.removeEventListener('keydown', this.handleKeyPress)
}
handleClick = () => {
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],[function(e,t,n){"use strict";e.exports=n(151)},function(e,t,n){n(41),n(13);var r=n(140),o=n(7).publicLoader,i=o.getResourcesForPathname,a=o.getResourcesForPathnameSync,l=o.getResourceURLsForPathname,u=o.loadPage,c=o.loadPageSync;t.apiRunner=function(e,t,n,o){void... |
const postBtn = document.querySelector("#submit-post-btn");
function addPost(event) {
event.preventDefault();
const postTitle = document.querySelector("#new-title").value.toString();
const postBody = document.querySelector("#new-post-body").value.toString();
if (postTitle && postBody) {
if (postTitle.len... |
"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... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1423 Trents Ferry Rd", "CONTRIBUTOR MIDDLE NAME": "Williams", "DONOR CANDIDATE FEC ID": "", "DO... |
require("./src/styles/global.css")
// Polyfill.io service to include detected features as needed
exports.onClientEntry = () => {
return new Promise((resolve, reject) => {
window.__polyfillio__ = () => {
resolve()
}
const features = []
if (!("Intl" in window)) {
const locale = window.loc... |
import React from "react"
import styled from "styled-components"
import { Container, Section } from "../global"
const GetStarted = () => (
<StyledSection>
<GetStartedContainer>
<GetStartedTitle>Be the first to get the beta</GetStartedTitle>
<TryItButton>Get early access</TryItButton>
<Subtitle... |
import areSVZ from "../core/areSVZ";
import isUndefined from "../core/isUndefined";
import has from "./has";
/**
* Builds a predicate expecting an object to check against the given key / value pair.<br/>
* The value check is made with the ["SameValueZero" comparison]{@link module:lamb.areSVZ|areSVZ}.
* @example
* ... |
/**
* Calculates the percentage of failed requests
*
* @param array arr
* @param string key
* @param string comp
* @return number percentFailed
*/
export const percentFailed = (arr, key, comp) => {
const failed = arr.reduce((total, item) => {
return total + (item[key] === comp ? 1 : 0);
}, 0);
... |
'use strict'
const db = require('../db')
exports.up = async function () {
const pets = db('pets')
await pets.push({ name: 'tobi' })
await pets.push({ name: 'loki' })
}
exports.down = async function () {
delete db.object.pets
await db.write()
}
|
const mongoose = require('mongoose'),
Schema = mongoose.Schema;
const ProductSchema = new Schema({
name: {
type: String,
required: true
},
upc: {
type: String,
required: true
},
mpn: {
type: String,
required: true
},
brand: {
type: String,
required: true
},
descripti... |
'use strict'
/**
* @typedef {import("./remote-entries-type")} entry
*/
/** @type {entry} */
module.exports = [
{
name: 'microservices',
url: 'https://api.github.com',
repo: 'aegis-application',
owner: 'module-federation',
filedir: 'dist',
branch: 'master',
path: __dirname,
type: '... |
export default {
state: {
corporationId: '',
corporationName: '',
mail: '',
address: '',
postal_code: '',
tel: '',
fax: '',
schoolsList: []
},
mutations: {
/**
* ログインした法人情報をセット
*
* @param {*} state
* @param {*} corporationInfo 法人情報
*/
setLoginCorpor... |
'use strict';
var defaultValue = require('./defaultValue');
var defined = require('./defined');
var DeveloperError = require('./DeveloperError');
/**
* Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
* @alias NearFarScalar
* @constructor
*
* @param {Number} [ne... |
/*1396316188,173091411,JIT Construction: v1186068,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {window.FB || (function(window) {
var self = window, document = window.document;
var setTimeout = window.setTimeout, setInt... |
YUI.add('features', function(Y) {
var feature_tests = {};
Y.mix(Y.namespace('Features'), {
tests: feature_tests,
add: function(cat, name, o) {
feature_tests[cat] = feature_tests[cat] || {};
feature_tests[cat][name] = o;
},
all: function(cat, args) {
var cat_o = feature_tests... |
// next.config.js
const withImages = require("next-images");
const projectsData = require("./data.js");
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
const glob = require("glob");
module.exports = (phase, { defaultConfig }) =>
withImages({
webpack: function (config) {
config.module.rules... |
/**
* Copyright 2014, 2015 IBM Corp.
*
* 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... |
function data_loader_engine(contentBlocks, xml) {
/* Loop through each if the contentBlocks */
$.each(contentBlocks, function (key, contentInfo) {
// go out if key element does not exits
if (!$(key).length) {
return;
}
switch (contentInfo.type) {
case 'text':
var content = $(xml... |
import {xfs} from '@yarnpkg/fslib';
const {
fs: {writeFile, writeJson},
} = require('pkg-tests-core');
// Here be dragons. The biggest and baddest tests, that just can't be described in a single line of summary. Because
// of this, they each must be clearly documented and explained.
//
// Because of their complexit... |
// Regular expression that matches all symbols in the Lisu block as per Unicode v7.0.0:
/[\uA4D0-\uA4FF]/; |
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'dva'
import { Row, Col, Card, Button } from 'antd'
import { Map, Marker, Polyline,InfoWindow } from 'react-amap';
import { config } from '../../../utils'
import styles from './index.less'
// const center = { longitude: 120.096509, lati... |
// http-server -a localhost -p 8000 -c-1 http://localhost:8000/putt.html
import Game from "/app/putt/src/game.js";
import Ball from "/app/putt/src/ball.js";
import Cup from "/app/putt/src/cup.js";
import Hole from "/app/putt/src/hole.js";
import Wall from "/app/putt/src/wall.js";
import Zone from "/app/putt/src/zon... |
//animate.web v1.0.5 https://github.com/webanimate/animate.web#readme
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):((e="undefined"!=typeof globalThis?globalThis:e||self).animateweb=e.animateweb||{},e.animateweb.shakeY=a())}(this,(... |
import config from '../config';
import * as mongooseService from './mongoose';
import express from './express';
import chalk from 'chalk';
export default () => {
return mongooseService.connect()
.then(() => {
return mongooseService.loadModels();
})
.then(() => {
return express();
})
... |
const testData = require('../testdata/testExpectations.json')
const configData = require('../testdata/config.json')
const expect = require('chai').expect
const timeoutWait = require('../utils/setTimeout')
const moment = require('moment')
const expiryDatePattern = /(?<=Expiry:)(.*)(?=Serial)/g
const serialNumberPattern... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).rexgridsizer=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?f... |
'use strict'
/**
* @id cIdentity
* @function cIdentity
* @returns transform {function} - A function that accepts a canvas and returns it as-is
*/
module.exports = exports = function cIdentity () {
return function transform (canvas, cb) {
cb(null, canvas)
}
}
|
$(function() {
//自定义radio样式
$(".cb-enable").click(function() {
var parent = $(this).parents('.onoff');
$('.cb-disable', parent).removeClass('selected');
$(this).addClass('selected');
$('.checkbox', parent).prop('checked', true);
});
$(".cb-disable").click(function() {
... |
function gotoBottom() {
window.scrollTo(0, document.body.scrollHeight);
}
const close = document.getElementById('close');
close.classList.add("icon-not-show")
const menu = document.getElementById('menu');
const navigation = document.getElementById('navigation');
close.addEventListener('click', () => {
navig... |
import Head from 'next/head'
import Header from "./Header";
import Footer from "./footer"
export default function Layout({children, title, ogImage, ogDescription}) {
const seoImage = ogImage || "https://og-image.now.sh/**Jonas%20M%C3%BCller**%20%7C%20Portfolio.png?theme=light&md=1&fontSize=125px&images=https%3A%2F%2F... |
var searchData=
[
['openclient_88',['openClient',['../class_daddy_1_1d_socket.html#ac4c71ec0096ddfed7e434a22a80e56fa',1,'Daddy::dSocket']]],
['openserver_89',['openServer',['../class_daddy_1_1d_socket.html#a3562ef3f65f1801bd5eb0141e47ca850',1,'Daddy::dSocket']]],
['operator_20dliteral_90',['operator dLiteral',['.... |
/* globals Template Meteor Alerts Router */
Template.newHost.events({
'submit form': function (event, tpl) {
event.preventDefault()
var ip = tpl.find('[name=ipv4]').value
var mac = tpl.find('[name=mac]').value
var hostname = tpl.find('[name=hostname]').value
var fingerprint = tpl.find('[name=os]'... |
console.log('hola mundo!');
const noCambia = "Leonidas";
let cambia = "@LeonidasEsteban"
function cambiarNombre(nuevoNombre) {
cambia = nuevoNombre
}
const getUserAll = new Promise(function(todoBien, todoMal) {
// llamar a un api
setTimeout(function() {
// luego de 3 segundos
todoBien('se acabó el tiem... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'semantic-ui-css/semantic.min.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, y... |
import { Ranker } from '.';
import { Snippet } from 'blocks/entities/snippet';
import { ContentConfig } from 'blocks/entities/contentConfig';
import { ArgsError } from 'blocks/utilities/error';
import { rawConfigs } from 'fixtures/blocks/contentConfigs';
import { rawSnippets } from 'fixtures/blocks/snippets';
import { ... |
import NativeMethod from './methods/native.js';
import IndexeDbMethod from './methods/indexed-db.js';
import LocalstorageMethod from './methods/localstorage.js';
import SimulateMethod from './methods/simulate.js';
import {
isNode,
checkIsIframe
} from './util';
// order is important
const METHODS = [
Nati... |
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-09-12 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... |
// Morris.js Charts sample data for SB Admin template
$(function() {
// Area Chart
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
... |
import initialState from 'app/state/workflows';
import {
AUTH_LOGOUT_SUCCESS,
WORKFLOWS_WORKFLOW_GET_REQUEST,
WORKFLOWS_WORKFLOW_GET_SUCCESS,
WORKFLOWS_WORKFLOW_GET_FAILURE,
WORKFLOWS_WORKFLOW_CREATE_REQUEST,
WORKFLOWS_WORKFLOW_CREATE_SUCCESS,
WORKFLOWS_WORKFLOW_CREATE_FAILURE,
WORKFLOWS_TASK_CREATE_... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const ReactComponent = props => (react_1.default.crea... |
sap.ui.define(["sap/ui/webc/common/thirdparty/base/asset-registries/Icons"],function(t){"use strict";const e="receive-task";const s="M480 96q14 0 23 9t9 23v320q0 13-9 22.5t-23 9.5H32q-13 0-22.5-9.5T0 448V128q0-14 9.5-23T32 96h448zM66 128l190 154 190-154H66zm414 16L256 324 32 144v280l131-131 24 24L56 448h401L326 317l23-... |
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"react-app",
"airbnb-base",
"plugin:prettier/recommended",
"plugin:react/recommended",
],
overrides: [
{
files: [
"src/**/*.test.js",
"src/**/*.test.jsx",
"src/... |
"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... |
'use strict';
var mdns = require('mdns');
var crypto = require('crypto');
module.exports = {
Advertiser: Advertiser
};
/**
* Advertiser uses mdns to broadcast the presence of an Accessory to the local network.
*
* Note that as of iOS 9, an accessory can only pair with a single client. Instead of pairing your
... |
export default new class Offline {
constructor() {
this.url = '/robots.txt'
this.result = null
}
XHR() {
let xhr
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest()
}
else if (window.ActiveXObject) {
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xhr =... |
import React from 'react';
import './index.css';
const AppFooter = () => {
return(
<footer className="col footer">
<div className="text-center">
<p>
<span>Made by</span>
<a href="http://jesuodz.github.io">Jesús Ordosgoitty</a>
</p>
</div>
</footer>
);
}
exp... |
sap.ui.predefine('testlibs/scenario5/lib6/library',['sap/ui/core/Core', 'sap/ui/core/library'], function(Core, coreLib) {
"use strict";
sap.ui.getCore().initLibrary({
name: 'testlibs.scenario5.lib6',
dependencies: [
],
noLibraryCSS: true
});
return testlibs.scenario5.lib6; // eslint-disable-line no-undef
})... |
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require("electron");
// Keep a global reference of the window object, if you don"t, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
function createWindow() {... |
((typeof self !== 'undefined' ? self : this)["webpackJsonpcafe_pdf"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpcafe_pdf"] || []).push([[92],{
/***/ "3154":
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = Buffer.from("AuBSQ29weXJpZ... |
/*
Copyright (c) 2018-2020 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
// Styled elements
import * as React from 'react';
import {Link} from './styled-components.js';
// $FlowFixMe
export const StyledLink: ... |
/* eslint-disable */
import React from 'react'
import PropTypes from 'prop-types'
class TableViewItem extends React.Component {
render() {
// These items don't get rendered directly.
return null
}
}
TableViewItem.propTypes = {
value: PropTypes.any, // string or integer basically
label: PropTypes.stri... |
import React, {PropTypes} from 'react'
import {connect} from 'dva'
import UserSearch from '../components/operation/search'
import UserList from '../components/operation/mypaperlist'
import AddModal from '../components/operation/addpapermodal'
import EditModal from '../components/operation/editpapermodal'
function MyP... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
let React;
let ReactDOM;
function App() {
return null;
}
beforeEach(() => {
jest.resetModules();
... |
var str2js = require('../')
var assert = require('assert')
var fs = require('fs')
describe('str2js',function(){
it('should throw error when passed not string type',function(){
var error
try{
str2js()
}
catch(e){
error = e
}
assert.equal(error.message,'param must be type string')
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugins-extensions-score-score"],{"0002":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"jxLoading",props:{text:{type:String,default:"正在加载..."},visible:{type:Boolean,default:!1}}};e.default=i},"02ea":... |
var obj = {
x: "xyz",
};
function bar(i) {
return i;
}
function foo() {
loop1: for (el in obj) {
y = bar(el);
}
}
foo();
/*Expected Output
{ '(test61.js:13:1:13:6)':
[ '(test61.js:8:1:12:2)' ],
'(test61.js:10:9:10:16)':
[ '(test61.js:4:1:6:2)' ] }
*/ |
const fetch = require("node-fetch");
const { broadcast, waitForTx, setScript, invokeScript } = require("@waves/waves-transactions");
const { address, base58Encode, publicKey } = require("@waves/waves-crypto");
const fs = require("fs");
const env = process.env;
if (env.NODE_ENV !== 'production') {
require('dotenv'... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Veterans from './Veterans';
import { noop } from '../../../../../utils';
import * as actions from '../../redux/actions';
const VeteransContainer = ({ getVeterans, veterans, setCurrentVeteran }) ... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Route, Switch, withRouter, matchPath } from 'react-router-dom'
import { compose } from 'recompose'
import actions from '../../store/actions'
import log from 'loglevel'
import IdleTimer from 'react-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.