text
stringlengths
2
1.04M
version https://git-lfs.github.com/spec/v1 oid sha256:0f4b9f79a2084c4accd94d7b346a064e6552349622b4ee7451f875f915a1bd7d size 1821
'use strict'; const pkg = require('../../package'); const showUsage = (error = false) => { const usage = ` Usage: npx @mryhryki/markdown-preview [options] markdown-preview [options] Options: -f,--file [relative_file_path] Default: README.md -t,--template [template_name] Default: default -p,--port...
import { dolls } from 'girlsfrontline-core'; import Doll from 'girlsfrontline-core/lib/doll'; import gfextradata from 'girlsfrontline-extra-data'; import dollRank from './data/dollRank.json'; const { alias: { doll: dollAlias } } = gfextradata({ locale: 'ko' }); const buildData = (doll) => { const { id, skins } = d...
/* $This file is distributed under the terms of the license in LICENSE$ */ var EntityTablesWidget = Class.extend({ init: function(sciMapWidget) { this.sciMapWidget = sciMapWidget; this.keyToDataTable = {}; this.container = $('<div>'); $("#subEntityTableArea").append(this.container); $("#subEntityTableArea")...
/*! Bootstrap integration for DataTables' Buttons ©2016 SpryMedia Ltd - datatables.net/license */ (function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-buttons"],function(a){return b(a,window,document)}):"object"===typeof exports?module.exports=function(a,c){a||(a=w...
/* eslint-disable import/no-extraneous-dependencies, no-await-in-loop */ /* eslint-disable no-restricted-syntax, jest/no-export, jest/no-conditional-expect */ // import 'babel-polyfill'; const { toMatchImageSnapshot } = require('jest-image-snapshot'); const { joinObjects, writeImage, getReplacementsFolder } = require(...
module.exports = function (match) { match('', 'home#index'); match('repos', 'repos#index'); match('repos/:owner/:name', 'repos#show'); match('users' , 'users#index'); match('users/:login', 'users#show'); };
import { REG_START, REG_SUCCESS, REG_FAILED, LOGIN_START, LOGIN_SUCCESS, LOGIN_FAILED } from "../actions" const initialUser = {username: "", password: ""}; export const reducer = (state = initialUser, action) => { switch (action.type) { case REG_START: return{ ...state, inProgress: true, error...
module.exports = { extends: ['standard', 'prettier', 'prettier/standard'], env: { es6: true, node: true }, parserOptions: { ecmaVersion: 6 }, plugins: ['prettier'], rules: { 'prettier/prettier': [ 'error', { singleQuote: true, semi: false } ] } }
mycallback( {"CONTRIBUTOR OCCUPATION": "VP MTI Research & Development", "CONTRIBUTION AMOUNT (F3L Bundled)": "150.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Mylan Technologies Inc.", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "346 Vitez Dr", "CONTRIBUTOR MIDDLE NAME": "E", "DONOR CAND...
import axios from 'axios' // import store from '@/store' // import { getToken } from '@/utils/auth' // create an axios instance const service = axios.create({ baseURL: process.env.BASE_API, // timeout: 8000 // request timeout }) // request interceptor service.interceptors.request.use(config => { // Do something...
"use strict"; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { retur...
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/alpinejs/dist/module.esm.js": /*!**************************************************!*\ !*** ./node_modules/alpinejs/dist/module.esm.js ***! \**************************************************/ /***/ ((__unused_webpac...
/// <reference path="E:\11.WepAPI\Fridge\Fridge\Fridge.WebClient\bower_components/jquery/dist/jquery.js" /> /// <reference path="E:\11.WepAPI\Fridge\Fridge\Fridge.WebClient\Scripts/_references.js" /> "use strict"; angular.module('app') .controller('HomeController', function ($scope, $rootScope, publicRequests, p...
'use strict'; const numeric = require("numeric"); function round(num){ return Math.round(num*10000000000)/10000000000; } function getNormalizationCoefficients(srcPts, dstPts, isInverse){ if(isInverse){ var tmp = dstPts; dstPts = srcPts; srcPts = tmp; } var r1 = [srcPts[0], src...
const DrawCard = require('../../drawcard.js'); class MaesterAtTheRock extends DrawCard { setupCardAbilities(ability) { this.reaction({ when: { onCardPlayed: event => event.card.isFaction('lannister') && event.card.controller === this.controller && ...
document.addEventListener("DOMContentLoaded", function(event) { (function(global) { function now() { return new Date(); } var force = ""; if (typeof (window._bokeh_onload_callbacks) === "undefined" || force !== "") { window._bokeh_onload_callbacks = []; ...
import {connect} from 'react-redux'; import GearStatSelect from './GearStatSelect'; const mapState = (state, {stats}) => ({ items: stats.map(stat => ({ value: stat.id, label: stat.label, })), }); export default connect( mapState, () => ({}) )(GearStatSelect);
var key = '_RPELcTeq3ZByqi3N5dt18w'; var allStrings = (typeof DEPRECATED_UNIT_TEST === 'undefined' || DEPRECATED_UNIT_TEST) ? require("../resx-strings/en-us.json") : require("resx-strings"); var strings = allStrings[key]; export default strings;
export default { name: '散点图', type: 'scatter', data: [ { name: '简单散点图', data: { columns: ['日期', '余额', '数量', '年龄'], rows: { '上海': [ { '日期': '1-1', '余额': 123, '年龄': 3, '数量': 1244 }, { '日期': '1-2', '余额': 1223, '年龄': 6, '数量': 2344 }, { '日期'...
import * as PIXI from 'pixi.js' const radius = 25 const textScale = 0.3 const textColor = 0xffffff const textFontSize = 80 const verticeColor = 0x007d8c const selectedTint = 0x00aa88 const textMarginMultiplier = 30 const g = new PIXI.Graphics() g.lineStyle(0) g.beginFill(verticeColor, 1) g.drawCircle(0, 0, radius) g....
/* * 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 may no...
var common = require('../common.js').common; // Start of test script. casper.start('http://localhost:9981/', common.initialize_casper); casper.then(function () { casper.test.assertHttpStatus(302); casper.test.assertUrlMatch(/^http:\/\/[^\/]+\/login/, 'Redirected to /login'); }); common.then_log_in(); casper...
import Vue from 'vue' Vue.filter('formatData', function (value) { let date = new Date(value) let year = date.getFullYear() let month = (date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate( ) let hour = date.getHours() < ...
const net = require("net"); const server = net.createServer(socket => { socket.once('data', (data) => { console.log(data.toString()); socket.write(data); }); }); server.listen(3000, '127.0.0.1', () => { console.log(`Server running at 127.0.0.1:3000`); });
function get_connectivitytable_index(a){"\n"!=a[a.length-1]&&(a+="\n"),idx={};var b=0,c="",d=a.match(/[^\r\n]+/g);for(var e in d){var f=d[e];if(0==b){var g=f.match(/([0-9]+)(?:\t|[ ]{2,})([^\n]+)/);c=g[2],b=parseInt(g[1]),idx[c]={sequence:"",structure:".".repeat(b)}}else{var g=f.match(/[^\t\ ]+/g);idx[c].sequence+=g[1]...
import "./info.js"; import "./inputs.js"; export function initControls(the_map, departure_time, comparison_port) { const infoControl = L.control.sectioninfo({ position: 'topright'}, comparison_port).addTo(the_map); const inputsControl = L.control.inputs({position: 'topleft'}).addTo(the_map); inputsControl....
/*! * froala_editor v2.1.0 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms * Copyright 2014-2016 Froala Labs */
/** * API function to create fetch store tests. * * Site Kit by Google, Copyright 2020 Google LLC * * 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/licen...
app.canvas.hud.compass = (() => { const tree = engine.utility.bitree.create({ dimension: 'angle', }) generateTree() app.canvas.hud.on('draw', draw) function draw({canvas, context}) { if (!app.settings.computed.graphicsHudCompassOn) { return } const {yaw} = engine.position.getEuler() ...
var PlatformAccessory, Accessory, Service, Characteristic, UUIDGen, CommunityTypes; var _homebridge; const miio = require('miio'); const dgram = require('dgram'); const util = require('util'); const inherits = require('util').inherits; const crypto = require('crypto'); const devices = require('./mijia/'); const types ...
app.controller('appSettingsController', ['$scope', '$q', '$rootScope', '$stateParams', '$location', 'projectService', '$timeout', 'appSettingsService', function($scope, $q, $rootScope, $stateParams, $location, projectService, $timeout, appSettingsService){ var id; $rootScope.showAppPanel=true; $rootSc...
import React from 'react'; import styled from '@emotion/styled' import Image from 'gatsby-image' import Iconos from './iconos' import Layout from './layout' import {graphql} from 'gatsby' const Contenido = styled.div` max-width: 1200px; margin: 0 auto; width: 95%; @media (min-width: 768px) { d...
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' const tap = require('tap') const read = require('fs').readFileSync const join = require('path').join const https = require('https') const RemoteMethod = require('../../lib/collector/remote-method')...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ethereumjs_util_1 = require("ethereumjs-util"); const baseTransaction_1 = require("./baseTransaction"); const types_1 = require("./types"); const util_1 = require("./util"); const TRANSACTION_TYPE = 1; const TRANSACTION_TYPE_BUFFER = Buf...
import { FETCH_USER_SUCCESS, USER_INITIAL, FETCH_USER_NOT_FOUND, USER_NOT_FOUND } from 'store/actions/user'; const profileTemplate = { id: USER_INITIAL, github_login: '', github_name: '', email: '', token: '', avatarUrl: '', }; const initialState = { profiles: [], }; const userReducer = (state = init...
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import classes from './Drawer.module.css'; import Backdrop from '../../UI/Backdrop/Backdrop'; class Drawer extends Component { clickHandler = () => { this.props.onClose(); }; renderLinks = links => { return links.map((...
$(function() { consoleInit(); start(main); }); const ShortPools = [ { address : "0xc62e2C1E8e7078F66A989ebD47936B00aadF05f9", stakeTokenFunction : "alUSD", },{ address : "0x9551e5528f7D191Eb6ee45bCE4c455C2C238C9c2", stakeTokenFunction : "BASv2", },{ address : "0xe325b9f54B35692cEd0952B0459133e200088096"...
import React from 'react'; import { Box, Button, Heading, Paragraph } from 'grommet'; import RoutedAnchor from '../components/RoutedAnchor'; import Page from '../components/Page'; import { ComponentDoc, Properties, Property, PropertyValue, Description, Example, ThemeDoc, PropOptions, } from '../compone...
import Typography from 'typography' import Wordpress2016 from 'typography-theme-wordpress-2016' import './global.css' import './prismjs.css' Wordpress2016.overrideThemeStyles = () => ({ 'body': { color: 'var(--c-text-primary)', }, 'a': { color: 'var(--text-link-color)', }, 'a.gatsby-resp-image-link':...
import Alt from '../utils/Alt'; import CrudActions from '../actions/CrudActions'; class CrudStore { constructor() { this.resourceName = ''; this.status = 'fetchings'; // ok | fetching | getting | deleting | saving this.stuff = {}; this.one = null; this.list = []; this.pagination = { sh...
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(function(o, d) { r...
import React from "react"; // nodejs library to set properties for components import PropTypes from "prop-types"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; const styles = { grid: { position: "relative", width: "100%", ...
import NextAuth from "next-auth" import Providers from "next-auth/providers" // import CredentialsProvider from "next-auth/providers" const axios = require('axios'); // For more information on each option (and a full list of options) go to // https://next-auth.js.org/configuration/options export default NextAuth({ /...
/********************************* * Themes, rules, and i18n support * Locale: English *********************************/ (function(factory) { 'function' === typeof define && (define.amd || define.cmd) ? define(function(require, exports, module){ var $ = require('jquery')||jQuery; $._VALIDATOR_URI = modu...
// https://threejs.org/docs/#manual/en/introduction/Loading-3D-models // https://threejs.org/examples/#webgl_loader_gltf // https://gist.github.com/bellbind/c4f8c502fcacbe29422e5ac315273858 // https://github.com/funwithtriangles/blender-to-threejs-export-guide/blob/master/readme.md // https://threejsfundamentals.org/th...
(function () { if (window.PollStart) return; window.PollStart = function (container, params) { this.Container = typeof (container) == "object" ? container : document.getElementById(container); if (!this.Container) return; params = params || {}; this.Objects = { Own...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 12V3H3v9c0 2.76 2....
/* global CloudCmd */ 'use strict'; const itype = require('itype/legacy'); const exec = require('execon'); const jonny = require('jonny'); const Util = require('../../common/util'); const { getTitle, FS, Entity, } = require('../../common/cloudfunc'); const DOMTree = require('./dom-tree'); const DOM = O...
const { EOL } = require("os"); const path = require("path"); const fs = require("fs-extra"); const chalk = require("chalk"); const dedent = require("dedent"); const initTempDir = require("../utils/initTempDir"); const runCreateCorvidApp = require("../utils/runCreateCorvidApp"); const { start: startFakeNpmRegistry, ...
/** * Define Swatches * * This command can be used to define a color swatch. After generating the Color Inventory, select a color swatch (layer group) and * run this command which will show a dialog where a name can be entered. */ @import '../inventory.js' var onRun = function (context) { // old school var...
ace.define("ace/snippets/sparql",["require","exports","module"],function(r,e,m){"use strict";e.snippetText=undefined;e.scope="";});
/** @jsx jsx */ import { jsx } from '@emotion/core' export default ({ children }) => ( <div css={{ margin: '0 auto', maxWidth: 960, padding: '0px 1em 1.5em', paddingTop: 0, }} > {children} </div> )
var assert = require('assert') var request = require('request') var versionator = require('../') var appEngine = require('connect') describe('versionator', function() { describe('#createBasic', function() { it('throws an error if no version is passed', function() { assert.throws(function() { versio...
/**! * LibreMoney AbstractAppendix 0.2 * Copyright (c) LibreMoney Team <libremoney@yandex.com> * CC0 license */ if (typeof module !== "undefined") { var Appendix = require(__dirname + '/Appendix'); var Convert = require(__dirname + '/../../../Lib/Util/Convert'); } function AbstractAppendix(data) { this.protot...
// 代码的自动测试 function twoNumberAdd(a,b) { return parseInt(a) + parseInt(b) } module.exports = twoNumberAdd
const express = require('express') const exphbs = require('express-handlebars') const conn = require('./db/conn') const Address = require('./models/Address') const User = require('./models/User') //Não é preciso utilizar para criar a tabela tendo o caminho do arquivo aqui o sequelize entende e mapeia ele criando a tabe...
import CardSet from "../../../src/artifact/js/CardSet.js"; import CardSetType from "../../../src/artifact/js/CardSetType.js"; import CardSubset from "../../../src/artifact/js/CardSubset.js"; QUnit.module("CardSubset"); var CardSubsetTest = {}; QUnit.test("CardSubset properties The Hunt for Gollum", function(assert) ...
module.exports={A:{A:{"2":"J C G E TB","129":"B A"},B:{"129":"D X","1025":"g H L"},C:{"2":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t PB OB","513":"1 2 Y Z a b c d e f K h i j k l m n o p q v w x y z s r"},D:{"1":"1 2 7 9 J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v ...
/* istanbul instrument in package npmdoc_axios */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - pre-init (function () { //...
/** * DevExtreme (ui/date_box.js) * Version: 16.2.1-16294 * Build date: Thu Oct 20 2016 * * Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; module.exports = require("./date_box/ui.date_box"); module.exports.defa...
'use strict'; /** * Module for all communication with libre.fm */ define((require) => { const $ = require('jquery'); const AudioScrobbler = require('scrobbler/audioscrobbler'); const ServiceCallResult = require('object/service-call-result'); class LibreFm extends AudioScrobbler { /** @override */ sendReques...
import { lazy, Suspense } from "react"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import Box from "@material-ui/core/Box"; import { styled } from "@material-ui/core/styles"; import Loading from "../components/animations/Loading"; const Room = lazy(() => import("../components/room/Room"...
/** * app.js * * FooFighter.js — Primary Game Controller * * Purpose of this module is to initialize the game assets, * build game environment and entities, and emit Phaser events * (via Shout object). */ ;(function( FooFighter, Phaser, BUILDNUM ){ 'use strict'; var app, game, gameState; app = { ...
const {Rule} = require('../src') describe('number', () => { test('required constraint', async () => { const rule = Rule.number().required() await expect(rule.validate(undefined)).resolves.toMatchSnapshot( 'required: undefined' ) await expect(rule.validate(13)).resolves.toMatchSnapshot('required...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
// moment.js language configuration // language : norwegian bokmål (nb) // author : Espen Hovlandsdal : https://github.com/rexxars require('TiTools2/ThirdParty/moment').lang('nb', { months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort : "jan_feb_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.LocationOutline = React.forwardRef(function (props, ref) { var attrs = { "fill": "c...
import { onMounted, ref } from 'vue'; import { detectFlexGapSupported } from '../styleChecker'; export default (function () { var flexible = ref(false); onMounted(function () { flexible.value = detectFlexGapSupported(); }); return flexible; });
"use strict"; $(document).ready(function(){ $('#auto-fill').DataTable( { autoFill: true } ); $('#keytable').DataTable( { keys: true, autoFill: true } ); $('#column-selector').DataTable( { columnDefs: [ { orderable: false, className: 'select-che...
import toTopButton from '../components/shared/to-top-button.vue' /** * Add a "infinite scroll" functionality to any component using this mixin. * Such a component should have a `scrolling` method bound to `scroll` event on * the wrapper element: @scroll="scrolling" */ export default { components: { toTopButton }...
// This is a basic example strategy for Gekko. // For more information on everything please refer // to this document: // // https://gekko.wizb.it/docs/strategies/creating_a_strategy.html // // The example below is pretty bad investment advice: on every new candle there is // a 10% chance it will recommend to change yo...
export function randomKey () { return new Date().getTime().toString() + Math.random().toString().substring(3) }
define({"topics" : [{"title":"BigQuery Data Types","shortdesc":"\n <p class=\"shortdesc\">The Google BigQuery destination maps fields from records to BigQuery columns in existing tables based on matching\n names and compatible data types. If needed, the destination convert...
import { act } from 'react-dom/test-utils'; import { mountPage, preflight200, preflight400, preflight403, } from '../../Utilities/tests/helpers'; import fetchMock from 'fetch-mock-jest'; import OrganizationStatistics from './OrganizationStatistics'; const chartRoots = [ 'd3-grouped-bar-chart-root', 'd3-don...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { useDispatch, Provider } from 'react-redux'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { mount, shallow } from 'enzyme'; import { act } from '@testing-library/react'; import '../../matchMe...
var Catlife = { ctx:null, w:600, h:300, imgs:{}, tickControll:0, tickLim:3, map:{i:10000,max:10000,min:10001,offsetX:0,chunks:[]}, cat:{x:45,y:0,oy:0,bot:false,top:true,pos:0,state:0,statestep:0,tick:0,dead:false,tickcat:0}, keys:{left:false,right:false,up:false,down:false,space:false}, sky:{x:0,tick:0}, ia:...
import React from 'react'; import { Box } from 'grommet'; export const Body = (props) => ( <Box flex align='center' justify='center'> app body </Box> );
module.exports = { format_date: (date) => { return date.toLocaleDateString(); }, };
const Discord = module.require("discord.js"); module.exports.run = async (bot,message,args) => { try{ if(message.guild.id != "596463761918001211") return; if(!message.member.voiceChannel) return bot.send(`**${message.author} зайдите в голосовой канал**`); let pid = "601128457522511927"; if(message.m...
var searchData= [ ['obj_1272',['obj',['../namespace_q_p.html#a3f2d68234ff7a9dc90ea6cf87de12c2f',1,'QP::QHsmAttr']]] ];
const Mentor = require('../models/Mentor'); const User = require('../models/User'); const Tech = require('../models/Tech'); const mail = require('../config/mail/mail'); module.exports = { async index(req, res) { const { decoded } = req; if(!await User.findOne({ _id: decoded.id })) { return res.sta...
$(document).ready(function () { var trigger = $('.hamburger'), overlay = $('.overlay'), isClosed = false; trigger.click(function () { hamburger_cross(); }); function hamburger_cross() { if (isClosed == true) { overlay.hide(); ...
'use strict'; // let gulp = require('gulp'); let gulp = require('gulp-help')(require('gulp')); let merge = require('merge-stream'); let del = require('del'); let runSequence = require('run-sequence'); gulp.task('copy', 'Copy site files (polyfills, etc.) to dist/', function () { let app = gulp.src([ '*', ...
define(['require'], function(require) { 'use strict'; return function(args, ctx) { require(args.slice(1), function() { ctx.done(); }, function() { ctx.fail(); }); }; });
/*!common/widgets/login_toolbar/main.js*/ ;define("common/widgets/login_toolbar/main",["require","exports","module"],function(){function a(o,n){if(navigator.userAgent.indexOf("Firefox")>0)$("#loginToolBar ."+o).html(n);else for(var a=$("#loginToolBar ."+o+" i"),c=String(n).length,i=0;c>i;i++){0!=i&&c%3==i%3&&c>3&&$("#l...
//>>built define("dojox/data/AndOrReadStore", ["dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/lang", "dojo/data/util/filter", "dojo/data/util/simpleFetch", "dojo/_base/array", "dojo/date/stamp", "dojo/_base/json", "dojo/_base/window", "dojo/_base/xhr"], function(kernel, declare, lang, filterUtil, simpleFet...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RadarChart = void 0; var _generateCategoricalChart = require("./generateCategoricalChart"); var _Radar = require("../polar/Radar"); var _PolarAngleAxis = require("../polar/PolarAngleAxis"); var _PolarRadiusAxis = require("../pol...
function fibonacci(num) { // Your code here. } module.exports = fibonacci;
import axios from 'axios'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import * as actions from '../../actions/googleFactChecks'; import * as types from '../../constants/googleFactChecks'; import { ADD_NOTIFICATION } from '../../constants/notifications'; const middlewares = [th...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import Progress from '@availity/progress'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Label, Input, } from 'reactstrap'; const UploadProgressBar = ({ upload, ...rest }) => { const [statePercentage, setStateP...
import React from 'react'; import { Link } from 'react-router-dom'; class Home extends React.PureComponent { render() { return ( <> <div> This is the home page. </div> <Link to="blog">Go to blog</Link> </> ); } } export default Home;
import { request } from '../utils' import config from "../../config" export async function asyncGetAllProduct(params) { return request(config.index.allProduct, { method: 'get', data:{} }) } export async function asyncGetProductVersion(params) { return request(config.index.versionList, { method: 'get...
'use strict'; const fs = require('fs'); const path = require('path'); const basePath = __dirname + '/../../../routes/'; const modules = __dirname + '/../../../modules/'; const basename = path.basename(__filename); module.exports = function(app, router) { fs.readdirSync(basePath).filter(file => { if((file....
// 判断手机号是否正确 export function checkPhone(phone) { let isMobilePhone = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[1-9])[0-9]{8}$/; let isFixMob = /^0?1[3|4|5|8][0-9]\d{8}$/; if (isFixMob.test(phone) || isMobilePhone.test(phone)) { return true; } else { return false; } } // 获取当前设备型号 export...
import React from 'react'; import { FormRenderer, componentTypes, validatorTypes } from '@data-driven-forms/react-form-renderer'; import { mount } from 'enzyme'; import { Button } from '@blueprintjs/core'; import { componentMapper, FormTemplate } from '../index'; describe('wizard', () => { let initialProps; let s...
import React from "react"; function TextureRenderer({ assetUrl, children }) { console.log('1') console.log('2') console.log(spriteSheet.read()) const sheet = spriteSheet.read().default; console.log('3') const texture = PIXI.Texture.from(sheet); console.log('4') console.log(sheet) console.log(textu...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Result of number conversion from null value is +0 es5id: 9.3_A2_T1 description: null convert to Number by explicit transformation ---*/ assert.sameValue(Number(null), 0, 'Numb...
var http = require('http') , querystring = require('querystring') // MusicPlayer = require('../lib/server/lib/MusicPlayer.js'); ; //var mp = new MusicPlayer(); module.exports = { testPlayFile : function () { mp.playFile("./sample.mp3"); setTimeout(function() { console.log('timeout'); // pause af...