text
stringlengths
3.22k
29.5k
"use strict" function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } class TaikoBox extends MidiBox { constructor(opts) { opts = opts || {}; opts.instrument = "acoustic_grand_piano"; super(opts); //this.fillStyle = "beige"; this.fillStyle = null...
//公共JS /*显示日期*/ var sWeek = new Array("周日", "周一", "周二", "周三", "周四", "周五", "周六"); var dNow = new Date(); var CalendarData = new Array(100); var madd = new Array(12); var tgString = "甲乙丙丁戊己庚辛壬癸"; var dzString = "子丑寅卯辰巳午未申酉戌亥"; var numString = "一二三四五六七八九十"; var monString = "正二三四五六七八九十冬腊"; var weekString = "日一二三四五六"; var ...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import routes from '../constants/routes'; import styles from './Editor.css'; import BasicObjectValuePair from './editor/BasicObjectValuePair'; import ConditionalCode from './editor/ConditionalCode'; const Editor = () => { ...
import axios from 'axios'; import dayjs from 'dayjs'; import { isNumber } from 'lodash'; import { INSTRUMENT_DETAILS, STRATEGIES_DETAILS } from '../constants'; import individualLegExitOrders from '../exit-strategies/individualLegExitOrders'; import console from '../logging'; import { addToAutoSquareOffQueue, addTo...
function CodeDefine() { this.def = new Array(); this.def["rt_OneStep"] = {file: "ert_main_c.html",line:39,type:"fcn"}; this.def["main"] = {file: "ert_main_c.html",line:76,type:"fcn"}; this.def["rtX"] = {file: "Plantv2_c.html",line:43,type:"var"}; this.def["rtDW"] = {file: "Plantv2_c.html",line:46,type:"var"}; this.def...
/** * Created by 叶子 on 2017/8/22. */ import React, { PureComponent } from 'react'; import { Text, View, FlatList, ListView } from 'react-native'; import { IconMenu, Separator, BasicSwiper, ImageSWiper, GridItem } from '../widgets'; import { screen } from '../utils'; import ListContainer from './ListContainer'; import...
import React from 'react'; import PropTypes from 'prop-types'; import lodashValues from 'lodash/values'; import lodashFind from 'lodash/find'; import lodashStartCase from 'lodash/startCase'; import { TabContent, TabPane, Nav, NavItem, NavLink, Row, ListGroup } from 'reactstrap'; import MeasurementLayerRow...
var private = {}, self = null, library = null, modules = null; function guestbook(cb, _library) { self = this; self.type = 6 library = _library; cb(null, self); } var aliasedFields = [ { field: "t.id", alias: "id" }, { field: "t.blockId", alias: "blockId" }, { field: "t.senderId", alias: "senderId" }, { fiel...
/*Copyright 2020 <NAME> 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 distribut...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Matrix = void 0; var _value = require("./value.js"); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj...
var GIT = "" function DKGit_init() { DKGit_SetGitExePath() DKGit_ValidateGit() } function DKGit_SetGitExePath() { if (CPP_DK_GetOS() === "Windows"){ if(CPP_DK_GetOSArchitecture() === "32") GIT = CPP_DKFile_GetShortName("C:/Program Files/Git/bin/git.exe") if(CPP_DK_GetOSArchitecture() === "64") G...
const Manager = require("./lib/Manager"); const Engineer = require("./lib/Engineer"); const Intern = require("./lib/Intern"); const inquirer = require("inquirer"); const path = require("path"); const fs = require("fs"); const OUTPUT_DIR = path.resolve(__dirname, "output"); const outputPath = path.join(OUTPUT_DIR, "tea...
/* * Copyright 2013, <NAME> * Copyright 2014, the GAP developers. See the NOTICE file at the * top-level directory of this distribution, and at * https://gapwiki.chiro.be/copyright * Cleanup en refactoring met module pattern: Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "Licens...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { FormControl, FormControlLabel, Checkbox as MuiCheckbox } from '@material-ui/core'; import { Box, Button, Card, CardContent, CardHeader, Divider, Grid, TextField, MenuItem } from '@material-ui/core'; ...
var Generator = require('yeoman-generator'), _ = require('lodash'), exec = require('child_process').exec, glob = require('glob'), chalk = require('chalk'); function findDbFolder(database, dbs) { switch(database) { case 'MongoDB': dbs['mongo'] = true; return 'mongo-db'; case 'Apache Cassand...
/** * @module Validate * * ## Goals * * To validate a form based on the HTML5 attributes each form has, or the data attributes specified on them * * Should accept either: * * 1. A form DOM Element * 2. A string relating to the name of the form * * Should also be able to label a form field with `data-novalid...
var btnClicked = "-1"; var shiftY; var shiftX; var shiftSigY; var shiftSigX; function resizeInteraction(thewidth,theheight) { var scale = 0; thewidth = String(thewidth).replace("px",""); theheight = String(theheight).replace("px",""); /*if(thewidth<theheight){ scale = thewidth / (680+70); }else{ ...
// Declaring required variables let bodyUrl = "http://buergerinfo.ulm.de/oparl/bodies/0001"; let schemaUrl = bodyUrl + "/people/"; let schema = "https://schema.oparl.org/1.1/Person"; let followpage = true; let page = 1; var personData = ""; // Get data type per property from OParl schema $.getJSON(schema) .d...
const Scheduling = require('../models/Scheduling'); const sequelize = require('../config/sequelize'); const { v4: uuidv4 } = require('uuid'); const moment = require('moment'); const paginate = require('jw-paginate'); const Customer = require('../models/Customer'); const { Op } = require('sequelize'); const scheduling...
import { glMatrix, mat4, vec2, vec3 } from 'gl-matrix'; import requestAnimationFrame from 'raf'; import Input from './Input'; import Shader from './Shader'; class Renderer { constructor() { /* Setup rendering context */ const hints = { alpha: false, antialias: true, preserveDrawingBuffer: f...
import { createSelector } from 'reselect'; import { isString, isInteger } from 'lodash'; const moleculeLists = state => state.datasetsReducers.moleculeLists; const scoreCompoundMap = state => state.datasetsReducers.scoreCompoundMap; const scoreDatasetMap = state => state.datasetsReducers.scoreDatasetMap; const filterD...
import {last, identity, flatMap, compact, findLast} from 'lodash'; import {createSelector} from 'reselect'; import {getViewMode} from './view'; import viewModes from '../../../constants/view-modes'; import {isIdleStatus} from '../../../common-utils'; import {isNodeFailed, isNodeSuccessful, isAcceptable, iterateSuites} ...
import React from 'react'; import {connect} from "react-redux"; import {bindActionCreators} from "redux"; import {actions as nimiqActions} from "../../../ducks/nimiq"; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { translate } from 'react-i18next'; import { compose } from ...
/* Copyright (C) Air Liquide S.A, 2017-2018 Author: <NAME> and <NAME>, La Factory, Creative Foundry This file is part of Predictable Farm project. The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...
(function ($) { $.extend({ /** * @return {string} */ getCookie: function (name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else re...
/* MK Web Notifications v1.0 - jQuery Plug-In JavaScript. A easy to use jQuery plug-in for in browser notifications and toasts. Documentation: https://github.com/<id>. LICENSE: MIT. */ var icons = { default: 'fa fa-bell', primary: 'fa fa-bell', success: 'fa fa-check', danger: 'fa fa-exclamation-triangle', warni...
import $ from './jquery' import Util from './util' /** * -------------------------------------------------------------------------- * Bootstrap (v4.1.1): carousel.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -----------------------------------------------------------------------...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
var Buffer = require('safe-buffer').Buffer var bcrypto = require('./crypto') var bufferutils = require('./bufferutils') var typeforce = require('typeforce') var types = require('./types') var varuint = require('varuint-bitcoin') // functions for reading bitcoin types function varSliceSize (someScript) { var length =...
//hooks import React, { useState, useContext, useEffect } from "react"; import { useForm } from "react-hook-form"; //form controls and styling import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import Select from "@material-ui/core/Select"; import InputLabel from "@mat...
'use strict' const async = require('async') const debug = require('debug') const log = debug('bitswap') log.error = debug('bitswap:error') const EventEmitter = require('events').EventEmitter const mh = require('multihashes') const cs = require('./constants') const WantManager = require('./wantmanager') const Network ...
function CGame(oData){ var _bInitGame; var _iTimeIdle; var _iTimeWin; var _iCurAnim; var _iGameState; var _iMultiply; var _iCurBet; var _iCurCredit; var _iCurWin; var _iAdCounter; var _iBankCash; var _aProbability; var _oInterface; var _oEndPanel = null; ...
var socket = io(); var connected = false; var isAdmin = false; var latency = -1; function updateLogin(hideLogin) { if (hideLogin) { document.getElementById('login').style.display = "none" document.getElementById('main').style.display = "block" } else { document.getElementById('login')....
const zhCN = require("./locales/zh-CN"); const enUS = require("./locales/en-US"); const path = require("path"); const fs = require("fs"); const generateGallery = (context) => { let result = { page: {}, list: [] }; let projectPath = "./"; const regex = /^.+\.(bmp|png|jpeg|jpg|gif|svg|webp)$/; if (proc...
// Copyright 2016 <NAME>. 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 required by applicable la...
import React from 'react'; import moment from 'moment'; import CopyToClipboard from 'react-copy-to-clipboard'; import { Toast } from 'antd-mobile'; import { BigNumber } from 'bignumber.js'; import { FormattedMessage, injectIntl } from 'react-intl'; import { PopupAPI } from '@ezpay/lib/api'; import { APP_STATE, CONTRACT...
/* * Copyright (C) 2014 Google Inc. 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 required by ap...
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 = Reflect.decorate(d...
// http://www.35ui.cn @xiaoming $(document).ready(function (){ //autoID为false时说明定时函数未启动,启动后则为定时函数的ID //主要用做保持唯一的定时函数运行 var autoID = false; //轮播图 var t=5000; var m=0; var n=$('.login_lunbo .l_big li').length var runSetTimeout = function(){ autoID = setInterval(function(){ var i = m++; show...
tiposDocJS = new Ext.data.JsonStore({ url: CARPETA+'/combo_td', root: 'rows', fields: ['id_td', 'td'] }); tiposDocJS.load(); tiposDocJS.on('load' , function( js , records, options ){ var tRecord = Ext.data.Record.create( {name: 'id_td', type: 'int'}, {name: 'td', type: 'string'} ); var myNewT = new tRecord({...
// import * as echarts from '../../components/ec-canvas/echarts'; import { getDevFunctions, getDeviceDetails, deviceControl ,getElectricity,getTotalElectricity,getDayElectricity,getMonthElectricity,getHourElectricity} from '../../../utils/api/device-api' import wxMqtt from '../../../utils/mqtt/wxMqtt' import request fr...
import { observer } from "mobx-react"; import React from "react"; import { withTranslation } from "react-i18next"; import styled, { withTheme } from "styled-components"; import { PaneMode } from "../../../ReactViewModels/defaultHelpContent"; import Select from "../../../Styled/Select"; import measureElement from "../.....
/** * TODO: 已经可以直接通过 changeRoute('/iam', '/iam-xxxxx') 来在运行时改变配置了, 需要将 .route 相关的代码注释取消 和注释之下的代码, 需要注意单引号问题, 已知问题, 不能有重复的 配置名 * 通过 ../config/apiConfig 生成 utils/config 文件 * @author WY <<EMAIL>> * @date 2019-05-22 * @copyright ® HAND */ const {config, prefix, suffix} = require('../src/config/apiConfig'); const hel...
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" import { graphql, Link } from "gatsby" import Divider from "../components/divider" import Button from "../components/button" class AboutPage extends React.Component { render() { return ( <Layout location...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.sequelizeConnection = exports.sequelizeNodeInterface = exports.NodeTypeMapper = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in ...
import React, { Component } from 'react'; import { AuthUserContext, withAuthorization } from '../session'; import * as ROUTES from '../../constants/routes'; // react-bootstrap components import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import Form from 'react-bootstrap/Form'; import Card f...
const URL = "ftp://localhost/bug464884/"; const tests = [ // standard ls unix format ["-rw-rw-r-- 1 500 500 0 Jan 01 2000 file1\r\n" + "-rw-rw-r-- 1 500 500 0 Jan 01 2000 file2\r\n", "300: " + URL + "\n" + "200: filename content-length last-modified file-type\n"...
import produce from 'immer'; import _ from 'lodash'; import React, { Component, Fragment } from 'react'; import { connect } from 'react-redux'; import { Card, CardBody, CardTitle } from 'reactstrap'; import { Field, FormSection, reduxForm } from 'redux-form'; import * as paramTypes from './paramTypes'; import ColorPick...
/** * Copyright 2015 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://github.com/firebase/superstatic/blob/master/LICENSE */ const _ = require("lodash"); const pathjoin = require("join-path"); const pathutils = re...
const IdentityWallet = require('../identity-wallet') const HDNode = require('@ethersproject/hdnode') const { verifyJWT } = require('did-jwt') const { Resolver } = require('did-resolver') const wallet1Conf = { seed: HDNode.mnemonicToSeed('clay rubber drama brush salute cream nerve wear stuff sentence trade conduct') ...
import Phaser from "phaser"; import {config} from '../index' import MovePlayer from './MovePlayer' import backdrop from '../assets/stage/BG/BG_large.png' import star from '../assets/star.png' import bomb from '../assets/bomb.png' import dude from '../assets/dude.png' import ground from '../assets/stage/Tiles/2.png' ...
// simpy.js - javascript for simulator using Python // // Implements three classes // Holiday class implements basic JS API for Holiday by MooresCloud // Sim class implements the simulator // Sing class implements the sing Processing-like framework // In order to make it all work, you instance a Sing object. // functi...
import { Hub } from './city3d/Hub.js'; import { View } from './city3d/View.js'; import { saveAs } from './saveAs.js'; var d = document.getElementById( 'debug' ); const simulation_timestep = 30; var stats = null; window.tilesData = null; window.spriteData = null; window.gameData = null; window.powerData = null; win...
const xml = require('xml'); const fs = require("fs"); const path = require("path"); const dateFormat = require('dateformat'); const xml2js = require('xml2js'); const parseXmlString = require('xml2js').parseString; const cp = require('child_process'); require('dotenv').config(); const MongoClient = require("mongodb").Mo...
var ClickInterceptor = function(modules) { var installedModules = {}; function __webpack_require__(moduleId) { if (installedModules[moduleId]) return installedModules[moduleId].exports; var module = installedModules[moduleId] = { exports: {}, id: moduleId, loa...
require('../model/point'); var Point = require('mongoose').model('Point'), bodyParser = require('body-parser'), request = require('request'), https = require('https'), moment = require('moment'), _ = require('lodash'), jsonParser = bodyParser.json(), Firebase = require("firebase"); var...
const datapath = '../../../data/minigames/'; const savefile = 'trollgamesaved.json'; const datafile = 'trollgamedata.json'; const v = { saved: require(datapath + savefile), gameCfg: require(datapath + datafile) }; v.choiceData = v.gameCfg.choiceData; const cons = require('../constants.js'); const ut = require('../uti...
const recommendedGenre = ['dmv rap', 'hip hop', 'pop rap', 'rap', 'modern rock']; const images1 = [ { height: 320, url: 'https://i.scdn.co/image/ab6775700000ee852a13b40cc67cc6f016afe925', width: 320, }, ]; const images2 = [ { height: 640, url: 'https://i.scdn.co/image/3a836196bfb341f736c7fe27...
/*! * Copyright (C) 2017-2021 <NAME> <<EMAIL>> * * 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 l...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.jsxVisitors = exports.formatJSXStringValueLiteral = void 0; const ts = require("typescript"); const lua = require("../../../LuaAST"); const literal_1 = require("../literal"); const xhtml_1 = require("./xhtml"); const annotations_1 = re...
/** * @version: yz-h5player 1.0.1; * @link: https://github.com/happydemoney/yz-h5player * @license MIT licensed; * @author: happydemoney(<EMAIL>); */ // three library import $ from 'jquery'; // es6 module import swfobject from './module/swfobject.js'; import Vr from './module/vr/vr.js'; // 全景模式相关 import Ad...
const fs = require('fs'); const convBump = require('conventional-recommended-bump'); const semver = require('semver'); const core = require('@actions/core'); const DRY = !process.env.CI; function scanPackages() { function readPackageJson(package) { let packageJSON; try { packageJSON = ...
/** * @file WaiverMinorForm.js * @author <NAME>, <NAME> * @description Allows user to enter information regarding minors for their waiver. * @since 4/2/2022 **/ import { Box, circularProgressClasses, MenuItem, TextField, Typography, } from "@mui/material"; import {useFormik} from "formik"; imp...
import React, { Component } from 'react'; import styled, { css } from 'styled-components'; import { Modal } from '@material-ui/core'; import { Formik } from 'formik'; import withThemeContext from '../hoc/withTheme'; const ModalContainer = styled.div` border-radius: 2rem; background-color: #dae3ff; position: fixe...
/** * This file contains some re-usable parts for websocket audio communication. * * @module api/utils/audio-over-socket */ import autobahn from 'autobahn'; import { getWebsocketConnection, makeWebsocketCall, } from '../communication/websocket'; import broadcaster from '../broadcaster'; import { dataToBase64, ...
/** * Created by yangyxu on 8/20/14. */ var node_url = require('url'); var node_fs = require('fs'); var node_path = require('path'); var Middleware = require('./Middleware'); var MIMES = require('./static/MIMES'); module.exports = zn.Class({ properties: { }, methods: { __initAccept: func...
/* eslint-disable no-console */ /* eslint-disable indent */ 'use strict'; //VARIABLE BOTON BUSCAR const searchButton = document.querySelector('.js-search'); //VARIABLE ESCRITA POR EL USER const inputSerie = document.querySelector('.js-input'); //VARIABLE UL SERIES const seriesContainer = document.querySelector('.js-se...
let eventNameIsTaken = true let eventTimeIsValid = false // GET ALL EVENT NAMES THAT ARE ASSOCIATED WITH THIS TIMELINE const getEventNames = () => { return $.get('/home/timeline/getEventNames') .done((result) => { const enteredEventName = $('#new-event-name').val().toLowerCase().trim() const eventNa...
var Connection = require('ssh2'); var ConnStr = require('connexion-string') var _ = require('underscore') var HTTPParser = require('http-parser-js').HTTPParser var DBHelper = require('../db/DBHelper.js') var fs = require('fs') var path = require('path') function Server(config) { this._hash = Server.hash(config) ...
/* * Copyright 2016 The CodeWorld 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 required...
/// <reference path="../vue/dist/vue.js" /> /// <reference path="../signalr/dist/browser/signalr.js" /> var DEFAULT_MAX_HEALTH = 100; ////////////////////////////////////////// new Vue({ el: '#cnt-main', /** * **/ data: { gameClient: null, mainBoard: { size: 0,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @file PropertyFieldSliderRange.ts * Define a custom field of type PropertyFieldSliderRange for * the SharePoint Framework (SPfx) * * @copyright 2016 <NAME> * Released under MIT licence */ var React = require("react"); var ReactDom...
/* eslint-disable indent */ /* * @Author: czy0729 * @Date: 2019-03-14 06:02:03 * @Last Modified by: czy0729 * @Last Modified time: 2019-10-20 18:13:11 */ import { Dimensions, StyleSheet } from 'react-native' import Constants from 'expo-constants' import { IOS } from '@constants' // -------------------- 设备 -------...
/** * This file creates the Customer Sign Up option. It allows the user * to fill out the form to create a Customer Account. * * Contributors: <NAME> */ import React from 'react'; import {Grid, Container, Button, CssBaseline, TextField, FormHelperText} from '@material-ui/core'; import { withStyles, makeStyles }...
import React from 'react'; import { Multiselect } from 'multiselect-react-dropdown'; import { confirmAlert } from 'react-confirm-alert'; import Loader from 'react-loader-spinner'; //import 'react-confirm-alert/src/react-confirm-alert.css'; import * as cmn from "../cmn.js"; const displays = { FORM: "form", LOADING...
// 1. Towns to JSON // You’re tasked to create and print a JSON from a text table. You will receive input as an array of strings, where each string represents a row of a table, with values on the row encompassed by pipes "|" and optionally spaces. The table will consist of exactly 3 columns “Town”, “Latitude” and “Long...
/* * This file runs in a Node context (it's NOT transpiled by Babel), so use only * the ES6 features that are supported by your Node version. https://node.green/ */ // Configuration for your app // https://v2.quasar.dev/quasar-cli/quasar-conf-js /* eslint-env node */ /* eslint-disable @typescript-eslint/no-var-req...
/** * @fileOverview page where user can check invitation code * @name inviteFriends.js */ import React, { PureComponent } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; import { StyledWrapper }...
/** * @author: <EMAIL> * @date: 2014-12-28 * @description: FES Build * */ // node module var exec = require('child_process').exec, path = require('path'), os = require('os'), httpProxy = require('http-proxy'), connect = require('connect'), serveStatic = require('se...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.2. ** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functionali...
import React, {Component} from 'react'; import {UncontrolledAlert, Alert} from 'reactstrap'; import SweetAlert from 'react-bootstrap-sweetalert' import Paper from '@material-ui/core/Paper'; import Switch from '@material-ui/core/Switch'; import MenuItem from '@material-ui/core/MenuItem'; import TextField from '@material...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
var cvs; var ctx; var paths = []; var points = []; var cpath = []; var clicked; var touchid; var hobbygen; var maxWidth = 10; var minWidth = 2; maxWidth -= minWidth; function init() { cvs = document.querySelector('#hobby'); ctx = cvs.getContext("2d"); cvs.addEventListener('mousedown', doMouseDown, false);...
let vars = {}; export let lastPageYOffset = null; vars.$document = document; vars.$window = window; vars.$body = document.body; vars.$html = document.documentElement; vars.isMobile = () => innerWidth <= 1024; vars.isIE = () => vars.$html.classList.contains('is-browser-ie'); vars.winWidth = window.innerWidth; vars.get...
const { createLogger } = require('./logger') const { Project } = require('./Project') const Rule = require('counsel-rule') const cloneDeep = require('lodash.clonedeep') const uniq = require('lodash.uniq') const fs = require('fs-extra') const path = require('path') const execa = require('execa') const pify = require('pi...
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { ipcRenderer } from 'electron'; import { addFilterToLayerByID, updateFilterByLayerIDandFilterID, moveFilterUp, moveFilterDown, deleteFilterFromLayer, setFiltersForLayerByID, setFiltersForAllLaye...
import React, { useState, useEffect } from "react"; import { useRouter } from "next/router"; import Head from "next/head"; import { Box, Typography, Stack, Switch, FormControlLabel, FormControl, InputLabel, Select, MenuItem, Button, Dialog, DialogTitle, DialogContent, DialogContentText, Te...
import React,{ useState, useEffect,useCallback } from 'react'; import { withStyles, makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-u...
let lastT = {}; let lastQ = []; String.prototype.hashCode = function(){ var hash = 0; for (var i = 0; i < this.length; i++) { var character = this.charCodeAt(i); hash = ((hash<<5)-hash)+character; hash = hash & hash; // Convert to 32bit integer } return hash; } function $(id) {...
/* eslint-disable no-console */ const { spawn, exec } = require('child_process'); const { getDate, timeout, readFile, hasProperty, } = require('../helper/helper'); /** * Process manager module only for Windows enviroment. * * @param {Object} options Optional parameters.` options.binaryName - 'Optional, {Stri...
import InputBase from './InputBase'; import throttle from 'lodash/throttle'; /** * Button 组件 * * @example * var container = new Tiny.Container(); * var btn = new Tiny.ui.Button({ * background: 'https://zos.alipayobjects.com/rmsportal/YJlpCuekebvKNap.png', * active: { * background: 'https://zos.alipayob...
function generateSQL() { var tables = []; var columns = []; var conditions = []; var groups = []; var orders = []; $("tr.field").each(function() { // table names var table = $(this).find("input[name='field_table']").val(); tables.push(table); // column names var column = $(this)....
/* eslint-disable no-nested-ternary */ const Apify = require('apify'); const { log } = Apify.utils; function toArrayString(str) { return str.split('\n').join('').split('|').map(Function.prototype.call, String.prototype.trim) .join(', '); } const isObject = val => typeof val === 'object' && val !== null &...
// Dependencies var express = require('express'); var http = require('http'); var path = require('path'); var socketIO = require('socket.io'); var app = express(); var server = http.Server(app); var io = socketIO(server); app.set('port', 8080); app.use('/static', express.static(__dirname + '/static')); app.use('/StyleS...
'use strict'; // 日期选择插件(自定义) var custom_close_date_times=2; //当点击两次时关掉日历插件 var custom_close_date=0; //统计点击日历插件的次数 var first_close_date=0; //第一次关闭日期插件 var date = function ($) { $.fn.hotelDate = function (options) { var nowdate = new Date(); // 获取当前时间 var dateArr = new Array(); // 获取到的时间数据集合 var btn =...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.2. ** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functionali...
import $ from 'jquery' import Collapsible from './collapsible.js' class Selectfield { constructor({ $el, speed = 'fast', uuid = 1, init = { id: 0, value: '' }, placeholder = '' ,datas = [] }) { this.$el = $el this.speed = speed this.uuid = uuid this.placeholder = placeholder this.value = init ...
const assert = require('assert'); const Player = require('./player.js').Player const SyncPlayer = require('./player.js').SyncPlayer class Game { constructor(players) { const deck = new Deck() deck.shuffle() this.players = players this.hands = deck.dealHands() this.discard ...
/* eslint-dev mocha */ const fs = require('fs-extra') const { Fixture } = require('./helper') const { EventMatcher } = require('./matcher') describe('exported functions', function () { let fixture beforeEach(async function () { fixture = new Fixture() await fixture.before() await fixture.log() }) ...
import {ALPHABET, expandAddrRange, getAddrFromCoor, absoluteRange} from './coordinateUtils'; /** * Returns true if the value can be coerced into a Number * @param {*} n Any value, but usually a string * @return {Boolean} */ export const canCoerceToNumber = n => !isNaN(parseFloat(n)) && isFinite(n); /** * ...