text
stringlengths
3.07k
16k
import { createElement } from 'react'; import dynamic from 'dva/dynamic'; import pathToRegexp from 'path-to-regexp'; import { getMenuData } from './menu'; let routerDataCache; const modelNotExisted = (app, model) => // eslint-disable-next-line !app._models.some(({ namespace }) => { return namespace === model....
'use strict'; const MethodError = require('../../error/methodError'); module.exports = Card; function Card(data) { let frontImage = ''; let backImage = ''; let side = 'back'; //front, back let rotation = 0; //in degree, clockwise let width = 6; let height = 9; let depth = 0.03; let c...
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _extends from "@babel/runtime/helpers/esm/extends"; import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue"; var __rest = this && this._...
/** * @format */ import { BufferGeometry, DoubleSide, Float32BufferAttribute, Mesh, Raycaster, Scene, ShaderMaterial, Vector2, Vector3, } from '../../node_modules/three/build/three.module.js'; import {CameraControlMode} from '../ui/modes.js'; import {pixelToViewport} from '../util/coords.js'; cons...
//################ DEPENDENCIES ##################// var path = require('path'), exec = require('child_process').exec, spawn = require('child_process').spawn, async = require('async'), url = require('url'), http = require('http'), fs = require('fs'), constants = require('../support/constants'), logger, __self;...
import React from "react"; // nodejs library that concatenates classes // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // @material-ui/icons // core components import Header from "components/Header/Header.js"; import Footer from "components/Footer/Footer.js"; import GridContaine...
var Inlinemode = false; GM_xmlhttpRequest = function GM_xmlhttpRequest(opt) { if (Inlinemode) { var xhr = new XMLHttpRequest(); var res = { status:0, statusText:'', readyState:0, responseText:'', responseHeaders:'' }; xhr.open(opt.method, opt.url, true); Object.keys(o...
'use strict'; var Rx = require('rx'); var rxHttpClient = require('rx-http-client'); var rxGet = rxHttpClient.getJSON; var rxGetStream = rxHttpClient.getStream; var fs = require('fs'); var noop = function() {}; var resolve = require('path').resolve; var IP = '10.5.5.9'; Rx.Observable.prototype.subscribeWithErrorHandl...
import React, { useState, useEffect } from 'react'; import Layout from '../components/Layout'; import styled from 'styled-components'; import Title from '../components/Title'; import Main from '../components/Main'; import { ReactComponent as DeliveryIcon } from '../assets/delivery.svg'; import Button from '../component...
const path = require('path'); const { baseDllPath, log, isInstallOf, forEachObj, isFunctionAndCall } = require('./service/helper'); const Dll = require('./service/dll.js'); module.exports = (api, options) => { const webpack = require('webpack'); const dllConfig = (options.pluginOptions && options.plugin...
import React from 'react'; import { ListView, Text, View, TouchableHighlight, StyleSheet, Image, StatusBar, TouchableOpacity, Dimensions, } from 'react-native'; import {navigate} from 'react-navigation'; class PeopleList extends React.Component { static navigationOptions = { t...
#!/usr/bin/env node 'use strict'; const clear = require('clear'); const {readFileSync, writeFileSync} = require('fs'); const {readJson, writeJson} = require('fs-extra'); const {join, relative} = require('path'); const {confirm, execRead, printDiff} = require('../utils'); const theme = require('../theme'); const run ...
'use strict'; /*! * Module dependencies */ const dox = require('dox'); const fs = require('fs'); const link = require('../helpers/linktype'); const hl = require('highlight.js'); const md = require('marked'); const files = [ 'lib/index.js', 'lib/schema.js', 'lib/connection.js', 'lib/document.js', 'lib/mod...
var util = require("util"); var bl = require("bl"); var headers = require("./headers"); var Writable = require("readable-stream").Writable; var PassThrough = require("readable-stream").PassThrough; var noop = function () {}; var overflow = function (size) { size &= 511; return size && 512 - size; }; var emptySt...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ goog.module('goog.userAgent.platformTest'); goog.setTestOnly(); const MockUserAgent = goog.require('goog.testing.MockUserAgent'); const platform = goog.require('goog.userAgent.platform'); const testSuite = goog.requir...
/** * @license @product.name@ JS v@product.version@ (@product.date@) * * (c) 2010-2017 Highsoft AS * Author: <NAME> * * License: www.highcharts.com/license */ 'use strict'; import H from '../parts/Globals.js'; import derivedSeriesMixin from '../mixins/derived-series.js'; var objectEach = H.objectEach, ser...
import React, { useEffect, useRef } from 'react'; import { Link as RouterLink, useLocation } from 'react-router-dom'; // material-ui import { useTheme } from '@material-ui/core/styles'; import { Card, Button, Box, Divider, Grid, Stack, Typography, useMediaQuery, CardMedia } from '@material-ui/core'; // project import...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkspaceImport = void 0; var _react = _interopRequireWildcard(require("react")); var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog")); var _DialogTitle = _interopRequireDefault(require("@material-ui/core/Dia...
import gulp from 'gulp'; import babel from 'gulp-babel'; import webpack from 'webpack'; import webpackStream from 'webpack-stream'; import template from 'gulp-template'; import sourcemaps from 'gulp-sourcemaps'; import rename from 'gulp-rename'; import concat from 'gulp-concat'; import gulpif from 'gulp-if'; import le...
import React from 'react'; import { Image, ScrollView, View, } from '@shoutem/ui'; import { Scaler, } from '../helpers'; const defaultResolution = { width: 375, height: 667, }; /** * Folder base component implements folder components shared methods. * Provides render lifecycle which can be overridden ...
import React from "react"; import List from "./list" import css from "./style.css"; import auth from '../utils/auth.js'; var maxOrderPrice = 250; class App extends React.Component { constructor (props) { super(props); this.state = { itemList: [], cartList: [], c...
/** * ==================================================================== * Hachiware_Server * * Web server application with Node.js * * License : MIT License. * Since : 2021.12.25 * Author : <NAME> * Email : <EMAIL> * HP URL : https://hachiware-js.com/ * GitHub : https://github.com/masatonakatsu...
/** * Dynamic Queries * * Query the collection using the name of the attribute directly */ var _ = require('lodash'), usageError = require('../../utils/usageError'), utils = require('../../utils/helpers'), normalize = require('../../utils/normalize'), hasOwnProperty = utils.object.hasOwnProperty; ...
import _ from 'lodash'; import PropTypes from 'prop-types'; import XDate from 'xdate'; import React, {Component, Fragment} from 'react'; import {ActivityIndicator, Platform, View, Text, TouchableOpacity, Image} from 'react-native'; import {shouldUpdate} from '../../component-updater'; import {weekDayNames} from '../../...
const buildRestricionLine = (restrictionIndex, decisionVars) => { let line = ""; for (let dIndex = 0; dIndex < decisionVars; dIndex++) { line += ` <input type="number" id="r${restrictionIndex}d${dIndex}" >X${dIndex + 1}${dIndex === decisionVars - 1 ? "" : " + "} `; } return line; }; const toggleS...
'use strict'; const inputSearch = document.querySelector('.js_input'); const searchButton = document.querySelector('.js_searchButton'); const listDataContainer = document.querySelector('.js_listData'); const favListsData =document.querySelector('.js_favListsData'); const resetButton = document.querySelector('.js_reset...
$("#logoutBtn").click(function(){ window.location = "/logout"; }); var userSelectedColor = ""; var userSelectedName = "Spock"; var userSurname = "John"; var currentSlide = 0; var noOfSlides = 4; var slidesArray = new Array(); slidesArray[0] = document.getElementById("slide-one"); slidesArray[1] = document.getEleme...
/* Copyright 2016 First People's Cultural Council 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 w...
function ajax(url, senddata, handler) { $.ajax({ url : url, type : "post", data : senddata, timeout : 5000, dataType : "json", async : false, success : handler, error : function(msg) { alert("系统错误 !" + msg); }, complete : function(XMLHttpRequest, status) { if (status == 'timeout') { ajaxT...
/* eslint-disable quotes */ const app = require('express').Router() const auth = require('../middleware/verifyAuth') const { responseMsg, getItem, getManyItems, addObjectId, updateData, removedWords, } = require('../utils') var ObjectId = require('mongodb').ObjectId require('dotenv').config() async functio...
// © Copyright IBM Corporation 2016,2017. // Node module: microgateway // LICENSE: Apache 2.0, https://www.apache.org/licenses/LICENSE-2.0 'use strict'; var _ = require('lodash'); var helpers = require('../../oauth2-helper'); var AuthorizationError = require('../../errors/authorizationerror'); /** * Handle authoriz...
"use strict"; const hasOpeningElementTrans = require("../util/hasOpeningElementTrans"); const isTaggedNode = require("../util/isTaggedNode"); const DOUBLE_QUOTE = "\""; const OPEN_SMART_QUOTE = "“"; const CLOSE_SMART_QUOTE = "”"; const APOSTROPHE = "'"; const SMART_APOSTROPHE = "’"; const ENTITIES = new Map([ [...
const fetch = require('node-fetch'); const chalk = require('chalk'); const { Flags } = require('@oclif/core'); const { OUTPUT_FORMATS } = require('../../constants'); const ConfigBaseCommand = require('../../oclif/command/ConfigBaseCommand'); const CoreService = require('../../core/CoreService'); const printObject = r...
import { getCookie } from '~/lib/utils/common_utils'; import { getParameterValues } from '~/lib/utils/url_utility'; import { __, n__ } from '~/locale'; import { PARALLEL_DIFF_VIEW_TYPE, INLINE_DIFF_VIEW_TYPE, INLINE_DIFF_LINES_KEY, } from '../constants'; import { computeSuggestionCommitMessage } from '../utils/su...
import React from 'react' import Dropdown from 'react-dropdown'; import {ViewMore} from './ViewMore'; import classes from './ProfilesAndInterviews.scss' import {bindActionCreators} from 'redux'; import * as actionCreators from '../../actions/profiles'; import {connect} from 'react-redux'; import * as data fro...
var MSG_CHECK_PATTERN = "MSG_CHECK_PATTERN"; var MSG_SWAP_PATTERN = "MSG_SWAP_PATTERN"; var eSwapDirection = {"Up":0,"Down":1,"Left":2,"Right":3}; var ePatternExtraAttr = {"Normal":0,"Bomb":1,"Freeze":2,"Stone":3}; var ePatternStatus = {"Normal":0,"Move":1,"Destroy":2,"Explode":3}; var PatternSprite = cc.Sprite.exten...
/* 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...
'use strict'; /** * This is an almost exact copy of the `kubeless.js` from * https://github.com/kubeless/kubeless/blob/master/docker/runtime/nodejs/kubeless.js * and should remain in sync. */ const fs = require('fs'); const vm = require('vm'); const path = require('path'); const Module = require('module'); const ...
const path = require('path') const { normalizePath } = require('@dcloudio/uni-cli-shared') function createCacheGroups () { const cacheGroups = {} if (process.UNI_CONFUSION) { // 加密 cacheGroups.confusion = { enforce: true, test: function (module) { if (!module.resource) { ...
import { take, call, put, select, fork, cancel, actionChannel } from 'redux-saga/effects'; import { LOCATION_CHANGE } from 'react-router-redux'; import { AUTH_URL } from 'global_constants'; import { postRequest, getRequest } from 'utils/request'; import { messagesSortByRecent } from 'utils/operations'; import { select...
import { StyleSheet } from 'react-native' import React from 'react' import PropTypes from 'prop-types' // We have to do some munging here as the objects are wrapped import _RNTextStylePropTypes from 'react-native/Libraries/Text/TextStylePropTypes' import _RNViewStylePropTypes from 'react-native/Libraries/DeprecatedPr...
/*! * vue-i18n v1.0.0 * (c) 2017 undefined * Released under the MIT License. */ 'use strict'; /* */ function extend(Vue) { Vue.prototype.$t = function(key, args) { var i18n = this.$i18n; return i18n._t(key, i18n.locale, i18n._getMessages(), args) }; Vue.prototype.$tc = function(key, ...
goog.require('goog.dom'); goog.require('goog.dom.query'); goog.require('goog.testing.asserts'); function testBasicSelectors() { assertQuery(4, 'h3'); assertQuery(1, 'h1:first-child'); assertQuery(2, 'h3:first-child'); assertQuery(1, '#t'); assertQuery(1, '#bug'); assertQuery(4, '#t h3'); assert...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import Loader from "./Loader"; import Message from "./Message"; import { addCouncil } from "../actions/councilActions"; import { useHistory } from "react-router-dom"; import { COUNCIL_ADD_RESET } from "../constan...
'use strict'; /*global $:false */ /*global document:false */ /*global window:false */ /*global Q:false */ var predicateExplanations = { equals: 'a request field must match exactly', deepEquals: 'a request object graph must match exactly', contains: 'a request field must contain a substring', startsWith...
/* start logScript part */ var MAX_LOG_ENTRY_SIZE = 1000 var messages = [] function trimMessage (pars) { var message = Array.prototype.join.call(pars, ' ') // this is special case, because phantom logs base64 images content completely into the output if (message.indexOf('Request data:image') === 0 && message....
const { parsers } = require('serialport'); const EventEmitter = require('events'); const SerialPort = require('serialport'); const Delimiter = require('@serialport/parser-delimiter'); const Ready = require('@serialport/parser-ready'); const { log } = require('console'); class SpinelDevice extends EventEmitter{ co...
// Copyright 2017-2021 <NAME>, Inc. and 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/LICENSE-2.0 // // Unless required by applicab...
"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...
const fs = require('fs-extra'); const path = require('path'); const chalk = require('chalk'); const mime = require('mime-types'); const env = require('dotenv'); env.config(); const publicDirectoryName = process.env.PUBLIC_DIR_NAME || 'public'; const sourceDirectoryName = process.env.SOURCE_DIR_NAME || 'src'; const con...
import styled, { keyframes, css } from 'styled-components'; const shake = keyframes` from { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } to { transform: rotate(0deg); } `; const fadeIn = keyframes` from { opacity: 0; } to { ...
"use strict"; const searchApiEndpoint = './mock-api/search.json'; const nodeInfoApiEndpoint = './mock-api/node-info.json'; window.addEventListener('load', function () { console.log('app started'); // init graph app let graphApp = new GraphEngine(nodeInfoApiEndpoint); // init search app init_sear...
import React from 'react' import { connect } from 'react-redux' import {AudioButton, VideoButton} from './buttons' import { addPeerThunk } from '../store' class VideoTestComponent extends React.Component { constructor() { super() //html references this.videoLocal = React.createRef(); this....
const { MessageEmbed } = require('discord.js'); const text = require(`${process.cwd()}/util/string`); const constants = require(`${process.cwd()}/util/constants`); module.exports = { name: 'help', aliases: [ ], group: 'core', description: 'Displays basic information or a help for a command', clientPermission...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { Pager } from '@elastic/eui'; import { registerTestBed } from '../.....
Y = require('yjs') require('y-websockets-client')(Y) require('y-memory')(Y) require('y-array')(Y) require('y-text')(Y) require('y-map')(Y) var database = {} var arrayToMap = arr => arr.reduce((map,[k,v]) => {map[k]=v; return map}, {}) var objectMap = (o,fn) => arrayToMap( Object.entries(o).map(fn) ) /* * the follo...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const fs = require('fs'); const yargs = require('yargs').argv; const {I18N_DATA_FOLDER, RELATIVE_I18N_DATA_FOLDER, H...
import {MDCTextField} from "@material/textfield"; import {MDCMenu} from '@material/menu' class DropdownList extends EventTarget { constructor(name, view) { super() this.menu = document.getElementById(`${name}-menu-${view}`) this.mdcMenu = new MDCMenu(this.menu) this.currentSelectedE...
/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import { PropTypes } from "prop-types"; import { connect } from "react-redux"; import { useState, useEffect } from "react"; import CheckmarkSVG from "../../../../assets/checkmark.svg"; import NoCheckEllipseSVG from "../../../../assets/no-check-ellipse.svg"; imp...
import axios from 'axios'; import Web3 from 'web3'; import { abi, gasLimit, ganacheServer, contractAddress } from "../smartContractConfig/config.js"; let web3 = new Web3(ganacheServer); const accounts = await web3.eth.getAccounts(); let account = accounts[0]; web3.eth.defaultAccount = account; let contract = new web3....
import { firestore } from '@/firebase' import { makeCsvRow, exportCsv } from '@/assets/util' import { format, startOfMonth, endOfMonth } from 'date-fns' export const crudTable = { headers: [ { text: 'Party', value: 'party', align: 'left', sortable: false }, { text: 'Type', value: 'type' }, { text: 'Value...
/* GENERATED FILE */ import { html, svg, define } from "hybrids"; const PhCurrencyKrw = { color: "currentColor", size: "1em", weight: "regular", mirrored: false, render: ({ color, size, weight, mirrored }) => html` <svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}"...
var Promise = require('prfun'); var StringStream = require('../test-stream.js'); var http = require('http'); var querystring = require('querystring'); var should = require('should'); require('should-http'); describe('Feeding POST data from JS to PHP', function() { var php = require('../'); var extend = function(ob...
import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from '../Tooltip'; import { st, classes } from './StackedBarChart.st.css'; import { stVars as colors } from '../Foundation/stylable/colors.st.css'; import { scalePoint, scaleLinear } from 'd3-scale'; import { select } from 'd3-selection'; imp...
const ANSI_BACKGROUND_OFFSET = 10; const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`; const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`; function assembleStyles() { const codes = new Map(); const styles = { modifier: { res...
'use strict'; var React = require('react'); var isTwelveHourTime = require('./lib/is-twelve-hour-time'); var replaceCharAt = require('./lib/replace-char-at'); var getGroupId = require('./lib/get-group-id'); var getGroups = require('./lib/get-groups'); var adder = require('./lib/time-string-adder'); var caret = require...
/* This component is responsible for creating verusQR invoices and showing the user their receiving address. If the user ever wants to receive coins from anyone, they should be able to go to this screen and configure their invoice within a few button presses. */ import React, { Component } from "react" import...
const contractJson = require("../../contracts/BlockPaperScissors.json"); // Mappings of solidity enum indexes on label const states = ["None", "Started", "Played", "Evaluated"]; const moves = ["None", "Block", "Paper", "Scissors"]; const results = ["None", "Player 1 Wins", "Player 2 Wins", "Draw"]; const moveMapping =...
/* * 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 u...
import React from 'react'; import {FormErrors} from './eventComp'; import { NameIcon, EmailIcon, DesIcon } from '../mainPageComponents/img/validationIcon' class ContactUs extends React.Component { state = { name: '', email: '', phone: '', description: '', cntWithCommunityAdviser: false, train...
const ora = require('ora') const path = require('path') const env = new (require('./env'))(path.resolve(__dirname, '../../.env')) const { exec } = require('child_process') const spinner = ora('building for production...') spinner.start() class Ke { constructor () { this.fs = require('fs') this.glo...
/** * Copyright 2020, <NAME> * Licensed under the terms of the MIT license. See LICENSE file in project root for terms. */ import puppeteer from 'puppeteer'; import menu from './menu'; import { asyncForEach, viewport } from './e2e.utils'; const MAX_TEST_MILLISECONDS = 180000; const ANIMATION_DURATION = 50; cons...
requirejs(["modals"], function(util) {}); requirejs(["charts"], function(util) {}); var region_data = {}; var selected_region = []; var selected_option = ['averagePrice']; var data_options = [ {name: 'All', symbol: ''}, {name: 'Flat/Maisonette', symbol: 'FlatMaisonette'}, {name: 'Te...
import { Component, LocalStorage, Logger, SessionStorage } from '../../../LIGHTER'; import axios from 'axios'; import { getText } from '../../../helpers/lang'; import { _CONFIG } from '../../../_CONFIG'; import Table from '../../widgets/Table'; import { getHashCode } from '../../../helpers/storage'; import ViewTitle fr...
var dir = require("node-dir"); var path = require("path"); var fs = require("fs"); var _ = require("lodash"); var eventBusService = require("../services/event-bus.service"); var globalService = require("../services/global.service"); var fileService = require("../services/file.service"); var viewService = require("../se...
'use strict'; // ============================================================================== // gulpfile.js // ============================================================================== // Boilerplate gulpfile for smaller projects // automating frontend & (in future versions) backend tasks // // Version 0.1.1 -...
/** * @license Copyright 2018 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 applicable law or a...
import { useCallback, useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, useIntl } from 'react-intl'; import { useModules, useStripes } from '@folio/stripes/core'; import { Col, nativeChangeFieldValue as nativeChangeField, RadioButton, Row, Te...
import css from 'styled-jsx/css'; const gridColumns = 10; const gridGutterWidth = 30; const gridRowColumns = 5; const gridBreakpoints = [ { name: "xs", value: "0" }, { name: "sm", value: "576" }, { name: "md", value: "768" }, { name: "lg", value: "992" }, { name: "xl", value: "1200" }, ] /** * ret...
import { merge } from 'lodash/object'; import EosApi from 'eosjs-api'; import eosLogo from './logos/eos.png'; import eosKyrinLogo from './logos/eosKyrin.png'; import eosJungleLogo from './logos/eosJungle.png'; import fibosLogo from './logos/fibos.png'; import chainMoeLogo from './logos/chainMoe.png'; import enumivoLog...
const { Client } = require('discord.io'); const redis = require('redis'); const path = require('path'); const { readFileSync } = require('fs'); const { DIRECT_MESSAGE } = require('./constants'); const Limiter = require('./Limiter'); const Promise = require('bluebird'); Promise.promisifyAll(redis.RedisClient.prototype)...
'use strict' var EthJSTX = require('ethereumjs-tx') var EthJSBlock = require('ethereumjs-block') var ethJSUtil = require('ethereumjs-util') var BN = ethJSUtil.BN var executionContext = require('../../execution-context') function TxRunner (vmaccounts, opts) { this.personalMode = opts.personalMode this.blockNumber =...
//////////////////// // Helper Functions /////////////////// var getUrlParameter = function getUrlParameter(sParam) { var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i; for (i = 0; i < sURLVariables.length; i++)...
const hljs = require("highlight.js"); const syntaxHighlight = require("eleventy-plugin-highlightjs"); const pluginTOC = require("eleventy-plugin-nesting-toc"); const markdownShortcode = require("eleventy-plugin-markdown-shortcode"); const { default: Icons, Spots } = require("@stackoverflow/stacks-icons"); const { versi...
'use strict'; /** @namespace DevKit */ var DevKit; (function (DevKit) { 'use strict'; DevKit.Formmsdyn_quotelinetransaction_Project_Information = function(executionContext, defaultWebResourceName) { var formContext = null; if (executionContext !== undefined) { if (executionContext.getFormContext === undefined...
// 以下是resize的各项参数 var navbarheight = 0; var windowheight = 0; var windowheighthalf = 0; var chartareaheight = 0; var chartareawidth = 0; var tableonlyheight = 0; var dubwidth = 0; var dubheight = 0; // 以下是为了优化体验写死的初始数据,对应正确的2018年统计 var defaultkeys = { 'boxyear':["2015","2016","2017","2018"], 'genre':["喜...
import Renderable from './Renderable'; import Matrix3 from '../render/WebGL/Matrix3'; import ProgramManager from '../manager/ProgramManager'; import TextureManager from '../manager/TextureManager'; import RenderManager from '../manager/RenderManager'; import Renderable2DMultitex from './Renderable2DMultitex'; var data...
import React, { useState, useRef, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import { useDispatch, useSelector } from "react-redux"; import styled from "styled-components"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import ClickAwayListener from "@mui/mater...
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...
import Vue from 'vue' import Router from 'vue-router' // in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading; // detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading Vue.use(Router) /* Layout...
const TapDigit = require("./tapdigit"); const Parameter = require("./parameter"); const BuilderNode = require('./node'); /** * This converts a mathematical formula into a openEO process for you. * * Operators: - (subtract), + (add), / (divide), * (multiply), ^ (power) * * It supports all mathematical functions ...
/* eslint no-plusplus: 0 */ /* eslint comma-dangle: 0 */ /* eslint class-methods-use-this: 0 */ /* eslint consistent-return: 0 */ /* eslint array-callback-return: 0 */ export const Position = { left: 0, top: 0 }; export const PositionDiff = { x: 0, y: 0 }; export const MarginOptions = { top: 0, right: 0,...
/* #6 start the #external #action and say hello */ console.log("App is alive"); /** * #6 #Switcher function for the #channels name in the right app bar * @param channelName Text which is set */ /* #7 initiating a variable for current channel... */ var currentChannel = SevenContinents /* #7 ...and cur...
import React from "react" import JSONTree from "react-json-tree" import {connect} from "react-redux" import {withRouter} from "react-router-dom" import ActionsUtils from "../../actions/ActionsUtils" import * as JsonUtils from "../../common/JsonUtils" import ProcessUtils from "../../common/ProcessUtils" import HttpServi...
'use strict'; const express = require('express'); const multer = require('multer'); const sharp = require('sharp'); const crypto = require('crypto'); const axios = require('axios'); const router = express.Router(); module.exports = router; // =================================================================...
import { __assign, __read, __spread } from "tslib"; import { addInstrumentationHandler, isInstanceOf, isMatchingPattern } from '@sentry/utils'; import { SpanStatus } from '../spanstatus'; import { getActiveTransaction, hasTracingEnabled } from '../utils'; export var DEFAULT_TRACING_ORIGINS = ['localhost', /^\//]; expor...
var CUSHION = 0.2; var PLAYER_POS_0 = [10, 50]; var PLAYER_WIDTH = 2; var INITIAL_V = -2; var G = 0.12; var SPEED = 20; var WIDTH = 20; var OBSTACLE_SPEED = -0.75; var LINE_WIDTH = 2.5; var FREQ = 60; var FONTSIZE = 20; function scaling_factor(screen) { return [screen[0]/100.0, screen[1]/100.0]; } function apply...
/** * @fileOverview The axis of polar coordinate system */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import pureRender from '../util/PureRender'; import Text from '../component/Text'; import Layer from '../container/Layer'; import { PRESENTATION_ATTRIBUTES, ...
// knicked from: https://github.com/jquense/expr // inspired by: https://github.com/sindresorhus/dot-prop // Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information> import { is_str, is_array, not_nil, new_array } from '@hyper/global' const Cache = (max_size) => { var si...