text
stringlengths
3.22k
29.5k
import React, { useEffect, useContext, useState } from 'react'; import dynamic from 'next/dynamic'; import Link from 'next/link'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { i18n, withTranslation } from '~/i18n'; import { I18nContext } from 'next-i18next'; import Select, { components } fr...
import when from "../ThirdParty/when.js"; import Check from "./Check.js"; import CompressedTextureBuffer from "./CompressedTextureBuffer.js"; import defined from "./defined.js"; import PixelFormat from "./PixelFormat.js"; import Resource from "./Resource.js"; import RuntimeError from "./RuntimeError.js"; import WebGLCo...
Object.defineProperty(exports, "__esModule", { value: true }); var _merge2 = require("lodash/merge"); var _merge3 = _interopRequireDefault(_merge2); var _assign2 = require("lodash/assign"); var _assign3 = _interopRequireDefault(_assign2); var _extends = Object.assign || function (target) { for (var i = 1; i < ar...
/** * @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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
import Cell from './Cell.js'; import Pool from '../../pool.js'; const GetValue = Phaser.Utils.Objects.GetValue; const SpliceOne = Phaser.Utils.Array.SpliceOne; var CellPool = new Pool(); class Table { constructor(parent, config) { this.parent = parent; // parent: GridTable game object (Container) ...
/* Copyright 2018 Duo Security Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributi...
/** * Model module * @module model */ 'use strict'; var fake = require('./fake'); //Fake data var io = require('socket.io-client')('http://localhost:3000'); var localforage = require('localforage'); //Browser data storage var pubSub = require('pubsub-js'); var configMap = { anonId: 'a0', //Special ID per anonym...
var async = require('async'); var crypto = require('crypto'); var keystone = require('keystone'); var Types = keystone.Field.Types; /** * Users Model * =========== */ var User = new keystone.List('User', { track: true, autokey: { path: 'key', from: 'name', unique: true } }); var deps = { mentoring: { 'mentorin...
import { grabberLogger as logger } from '../configuration/LoggerConfig'; /** * Grab pointerDown, pointerMove and pointerUp events * @typedef {Object} Grabber * @property {function(element: Element, editor: Editor): GrabberContext} attach Attach events and decide when to call editor pointerDown/Move/Up methods * @p...
'use strict'; var Report = require('z-schema/src/Report'); var ZSchemaValidator = require('z-schema/src/JsonValidation'); function enumValidator (report, schema, json) { // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.1.2 if (shouldSkipValidate(this.validateOptions, ['ENUM_CASE...
var _ = require("./_"); var {Cards, Sets, mws} = require("./data"); function selectRarity(set) { // average pack contains: // 14 cards // 10 commons // 3 uncommons // 7/8 rare // 1/8 mythic // * 8 -> 112/80/24/7/1 let n = _.rand(112); if (n < 1) return set.mythic; if (n < 8) return set.rar...
/* Preload*/ $(window).on('load', function () { // makes sure the whole site is loaded $('[data-loader="circle-side"]').fadeOut(); // will first fade out the loading animation $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. $('body').delay(350)...
/* * Document : coap * Created on : Nov 7, 2012, 10:48:57 AM * Author : Mr.Nam */ /// Constants var coapMessageType = { "CON" : 0, "NON" : 1, "ACK" : 2, "RST" : 3 } var coapCode = { "CONTENT" : 69, "NOTFOUND" : 132, "BADREQ" : 128, "CHANGED" : 68 } var coapMethod = { "GET" : 1...
import React, { createContext, Component } from 'react'; import { Transition, TransitionGroup } from 'react-transition-group'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; var Context = createContext(); var classCallCheck = function (instance, Constructor) { if (!(instance instanceo...
/* Copyright 2018 Intel Corporation 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, softwa...
const globalWindow = window; export function CodeJar(editor, highlight, opt = {}) { const options = Object.assign({ tab: '\t', indentOn: /{$/, spellcheck: false, catchTab: true, preserveIdent: true, addClosing: true, history: true, window: globalWindow }, opt); const window = options.window; const document ...
/************************************************************************************** * Gradebook Grade Summary Javascript *************************************************************************************/ /**********************************************...
var ECLIPSE_FRAME_NAME = "ContentViewFrame"; var eclipseBuild = false; var liveDocsBaseUrl = "http://livedocs.macromedia.com/flex/2/langref/"; function findObject(objId) { if (document.getElementById) return document.getElementById(objId); if (document.all) return document.all[objId]; } function isEclipse() { ...
require('dotenv').config(); const fs = require('fs'); const path = require('path'); const inq = require('inquirer'); const Figma = require('figma-api'); const chalk = require('chalk'); const ora = require('ora'); const eachLimit = require('async/eachLimit'); const fetch = require('node-fetch'); const { promisify } = r...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ClientObjectCollection = (function () { function ClientObjectCollection() { } ClientObjectCollection.prototype.each = function (callback) { return this.forEach(function (item, i) { callback(i, item); ...
import { ACTIONS, Lbry, doToast, formatCredits, selectBalance, makeSelectFileInfoForUri, makeSelectMetadataForUri, selectDownloadingByOutpoint, } from 'lbry-redux'; import { doClaimEligiblePurchaseRewards, makeSelectCostInfoForUri } from 'lbryinc'; import { Alert, NativeModules } from 'r...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.UploadProps = undefined; var _babelHelperVueJsxMergeProps = require('babel-helper-vue-jsx-merge-props'); var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps); var _defineProperty2 = require('ba...
var hideTimeOut = 2000; var timeouts = new Array(); var _domMenuCounts = 0; var _domMenuNamePrefix = "_domMenu"; var _defaultDOMMEnuCSSClassname = "domMenu"; var _domMenus = new Array(); var _isShowing = new Array(); var _popupMenus = null; function DOMMenu(elmId, title, action, direction, visibility, parent, doc, ho...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var ts = require("typescript"); var Lint = requi...
#! /usr/bin/env node "use strict"; const process = require("process"); const fs = require("fs"); const path = require("path"); const findUp = require("find-up"); const semver = require("semver"); const Config = require("truffle-config"); const Resolver = require("truffle-resolver"); const tsort = require("tsort"); c...
/** * @license * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="es6" -o ./modern/` * Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE> * Copyright 2009-2014 <NAME>, DocumentCloud and ...
// game state stored as string var game_state = "title"; // some test geometry to draw var quad_vao; // timers in seconds used for working out time steps var previous_millis; var time_step_accum_s = 0.0; var tic_step_accum_s = 0.0; var tic_step_size = 1.0; // 1second per turn // updates at 100Hz var time_step_size_s =...
import React, { Component, Fragment } from "react"; import IntlMessages from "Util/IntlMessages"; import { Row, Card, CardBody, CardTitle, Badge, UncontrolledDropdown, DropdownItem, DropdownToggle, DropdownMenu } from "reactstrap"; import { NavLink } from "react-router-dom"; import { Colxx, Separator ...
// returns the index of the left child in the binary heap const getLeftChildIndex = i => 2 * i + 1; // returns the index of the right child in the binary heap const getRightChildIndex = i => 2 * i + 2; // returns the index of the parent const getParentIndex = i => Math.floor((i - 1) / 2); // swaps array elements con...
// jsgui-client // require a whole bunch of things // need to have the extra information to initialize the various objects. // part of the server-side rendering would be identifying objects and relevant properties to send to the client. // for example, that something is a particular control. // identify ids by c...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _toConsumableArray f...
"use strict"; exports.__esModule = true; var nodedump_1 = require("nodedump"); var ack = require('../../index.js').ackX, multiparty = require('multiparty'), //used to parse inbound request form multi/part post variables cookies = require('cookies'), url = require('url'); //Request Return : Object to handle processing r...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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.prototy...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import _ from "underscore"; import $ from "jquery"; import { getAppRoot } from "onload/loadConfig"; import { getGalaxyInstance } from "app"; import STATES from "mvc/dataset/states"; import DATASET_LI from "mvc/dataset/dataset-li"; import { mountModelTags } from "components/Tags"; import ANNOTATIONS from "mvc/annotation...
load_new('../lib/out-htm2.js') // _load._new('../lib/out-htm2.js') var undef=function(v) { return (typeof(v)=='undefined') } var par =function(name,val) { if (!undef(name) && !undef(val) && !(val==null || val=='')) return (' '+name+'="'+val+'"') }// ----------------------------------------------- /* ...
import PropTypes from "prop-types"; import React from "react"; import isEqual from "react-fast-compare"; class Form extends React.PureComponent { constructor(props) { super(props); this.submitCount = 0; this.blurred = {}; this.dirty = {}; this.touched = {}; this.getFormState = this.getFormS...
const ServiceManagerTypes = require('../helpers/serviceManagerTypes'); const SwitchAccessory = require('./switch'); class FanAccessory extends SwitchAccessory { async setSwitchState (hexData, previousValue) { const { config, state, serviceManager } = this; const requestedValue = state.active // state is al...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { injectIntl } from 'react-intl'; import { withStyles, withTheme } from '@material-ui/core/styles'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; impor...
const speedDash = document.querySelector('.speedDash'); const scoreDash = document.querySelector('.scoreDash'); const lifeDash = document.querySelector('.lifeDash'); const container = document.getElementById('container'); const btnStart = document.querySelector('.btnStart'); btnStart.addEventListener('click', startGame...
/* * Copyright 2018 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import React, { useEffect, useState } from 'react'; import Loader from 'react-loader-spinner'; import { useTranslation } from 'react-i18next'; import InfiniteScroll from 'react-infinite-scroll-component'; import { calColor, strToNum } from '../tools/formatter'; import StockChart from './StockChart'; import InvStatLis...
let vetApplication = angular.module('vet_clinic_app', []) .directive('petsRepeatDirective', function() { return function(scope) { if (scope.$last) { let list = document.querySelectorAll('.new-cl-pet-block'), index = list.length - 1, petElem...
/* * Copyright DataStax, Inc. * * 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 wri...
const getSubNav = require('../services/get-sub-nav') const getOrganisationUnit = require('../services/helpers/org-unit-finder') const organisationUnitConstants = require('../constants/organisation-unit') const getCaseload = require('../services/get-crc-caseload') const getExportCsv = require('../services/get-export-csv...
// import Parallel from 'paralleljs'; import glMatrix from 'gl-matrix'; // glMatrix.setMatrixArrayType(Float64Array); const vec2 = glMatrix.vec2; // var p = new Parallel('forwards'); // // // Spawn a remote job (we'll see more on how to use then later) // p.spawn(function (data) { // data = data.split('').revers...
/** * * Server - boots the SuperCollider synthesis server * * SuperCollider comes with an executable called scsynth * which can be communicated with via udp OSC * * The primary way to send messages in with * eg. server.send.msg('/s_new', ['defName', 440]) * and the responses are emitted as 'OSC' * eg. ...
import React from "react" import Helmet from 'react-helmet' import SEO from "../components/seo" import Video from "../images/vippa-video-15sec.mp4" import BackgroundImage from "../images/Background-photo.jpg" import FooterImage from "../images/ACC-logo.jpg" import Logo from "../images/logo.png" import { FaFacebookF,...
const inherits = require('util').inherits const Component = require('react').Component const classnames = require('classnames') const h = require('react-hyperscript') const PropTypes = require('prop-types') const connect = require('react-redux').connect const R = require('ramda') const Fuse = require('fuse.js') const c...
import React from 'react' import Helmet from 'react-helmet' import { Link,graphql } from 'gatsby' import rehypeReact from "rehype-react" // import ScrollReveal from 'scrollreveal' import AnimateLoad from '../components/AnimateLoad' import Tag from '../components/Tag' import Layout from '../components/Layout' import ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FocusPointImg = exports.FocusPointWrap = exports.FocusPointContainer = exports.FocusPoint = exports.Watermark = exports.PreResizeBox = exports.PreviewImgBox = exports.Canvas = exports.PreviewWrapper = void 0; var _react = _interopR...
const { Clutter, GObject, St } = imports.gi; const ExtensionUtils = imports.misc.extensionUtils; const Tweener = imports.ui.tweener; const DND = imports.ui.dnd; const Me = ExtensionUtils.getCurrentExtension(); const { MatButton } = Me.imports.widget.material.button; const { WorkspaceCategories } = Me.imports.superWork...
import React, { Component } from 'react'; import initializeChart from './BaseChart'; import PropTypes from 'prop-types'; import Tooltip from './Utilities/Tooltip'; import { Paths } from '../paths'; import { formatDate } from '../Utilities/helpers'; import * as d3 from 'd3'; import { DEFAULT_NAMESPACE } from '../QueryPa...
/** * Visual Blocks Editor * * Copyright 2011 Google Inc. * http://blockly.googlecode.com/ * * 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...
/** * 渲染订单列表 156 * 创建时间:2018年8月15日18:28:43 */ Order = function(){}; /** * 设置数据集 */ Order.prototype.setData = function(data){ Order.prototype.data = data; }; /** * 列名数据 */ Order.prototype.cols = [ { title : '<span style="margin-left:10px;">商品信息</span>', width : "25%", className :...
// initialize the extension state, Editor state var extensionDisabled = true; var iApiLayerDisabled = true; // Enable/disable the extension function changeExtensionStatus() { extensionDisabled = !extensionDisabled; } // Enable/disable the iApiLayer function changeIApiLayerStatus(tabId) { if (iApiLayerDisabled === t...
'use strict'; const os = require('os'); const yargsParser = require('yargs-parser'); const { prepareArgs, prepareArgsAndCall } = require('object-to-arguments'); const { inspectParameters, getParametersNames } = require('inspect-parameters-declaration'); const pipeFn = require('pipe-functions'); const getStdin = requir...
'use strict'; const fs = require('fs'); const path = require('path'); const { CircleShape, Clock, Color, ConvexShape, Font, Image, IntRect, Keyboard, Mouse, Music, RectangleShape, RenderWindow, Sound, Sprite, Text, Texture, VertexArray, VideoMode, Vector2I, } = require('../lib/sf...
/* * speedy-vision.js * GPU-accelerated Computer Vision for JavaScript * Copyright 2020-2022 <NAME> <<EMAIL>martf(at)gmail.com> * * 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 * * ...
"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...
/** * API function to create fetch store. * * Site Kit by Google, Copyright 2021 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/licenses/LI...
/** * Module dependencies */ var path = require('path'); var _ = require('lodash'); var async = require('async'); var fsx = require('fs-extra'); var Git = require('machinepack-git'); var Markdown = require('machinepack-markdown'); var Filesystem = require('machinepack-fs'); var Process = require('machinepack-process...
/* TODO: * - Create replayEpisode class that holds the javascript object from JSON data in a * data member. Include member functions that utilize the data from each episode. * * - Instead of creating whole episode html section from scratch, copy baseline * section with all correct attributes but blank/default va...
import BasePage from './basePage'; import BodyPage from './bodyPage'; class BodyModal extends BasePage { toggleNthSubject(n) { cy.getTestId('topicSummary') .eq(n) .click('top'); } assertNthSubjectOpen(n) { cy.getTestId('topicSummary') .eq(n) .parent('[test-id="topic"]') .sh...
function nop() {} if (typeof console == "undefined" || !console) { console = {}; console.log = nop; console.info = nop; console.warn = nop; console.error = nop; } function basicStringHash(string, prevHash){ var hash = 0; if (prevHash) hash = prevHash; if (string.length == 0) return hash; for (i = 0; i < st...
var address = require('../../utils/city.js') var animation Page({ data: { index:0,//判断是点击第几个地址过来的 address_id:'', num: 0,//判断is_default的时候用 check: false,//默认按钮 animationAddressMenu: {},//省市县开始 addressMenuIsShow: false, value: [0, 0, 0], provinces: [], citys: [], areas: [], ...
import React, { useState, useEffect, useRef } from 'react'; import { toast } from 'react-toastify'; import moment from "moment"; import 'moment/locale/fr'; import InputText from '../../components/generic/InputText'; import TextArea from '../../components/generic/TextArea'; import InputButton from '../../components/ge...
import { assoc, dissoc, filter, map } from 'ramda'; import { BUS_TOPICS } from '../config/conf'; import { delEditContext, notify, setEditContext } from '../database/redis'; import { createEntity, createRelation, createRelations, deleteElementById, deleteRelationsByFromAndTo, distributionEntities, internal...
const pool_promisify = require('../config/pooling_promisify'); const pool = require('../config/pooling'); const utility = require("../helpers/utility"); const global_function = require('../helpers/global_function'); const apicode = require('../constants/apicode'); const moment = require('moment'); module.exports = { ...
/** * @license * Copyright 2019 Google Inc. * * 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...
/* * 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 React, { useState, useEffect, useRef, useCallback } from 'react'; im...
const $ = require('jquery') const axios = require('axios') let token let refreshIntervalId $(() => { $('#btnScan').on('click', async () => { await scan() }) $('#btnCancel').on('click', async () => { const response = await axios.delete('http://localhost/api/token/' + token) clearInterval(refreshInter...
const express = require('express'); const path = require('path'); const url = require('url'); const fs = require('fs'); const asciidoctor = require('asciidoctor.js'); const adoc = asciidoctor(); const Mustache = require('mustache'); const { fetchOpenshiftUser } = require('./server_middleware'); const giteaClient = requ...
'use strict'; const reactHooks = new Set([ 'useCallback', 'useContext', 'useDebugValue', 'useEffect', 'useImperativeHandle', 'useLayoutEffect', 'useMemo', 'useReducer', 'useRef', 'useState', ]); const reactNamedImports = new Set([ 'Children', 'cloneElement', 'Component', 'ConcurrentMode', ...
'use strict'; const term = require('terminal-kit').terminal; const moment = require('moment'); const stringz = require('stringz'); // for emoji support ❤️ const request = require('request'); const stringify = require('circular-json').stringify; var PrettyError; var pe = {}; const gelfLevel = { log: 1, error: 3, ...
const Protocol = require('./Protocol') const logger = require('../config/winston') const { step } = require('../config') const { pack, unpack, getNumericCell, getCell, getAttributeNames, getHistogramMinMax, constructHistogram2DArray, histogram2DArrayFromFlattenArray, getCatecoricalAttribute } = requir...
import React from "react"; import { api, handleError } from "../../../helpers/api"; import { Button } from "../../../views/design/Button"; import { withRouter } from "react-router-dom"; import Tree from "react-tree-graph"; import Container from "react-bootstrap/Container"; import Row from "react-bootstrap/Row"; import ...
/** * Mnemonist Vantage Point Tree * ============================= * * JavaScript implementation of the Vantage Point Tree storing the binary * tree as a flat byte array. * * Note that a VPTree has worst cases and is likely not to be perfectly * balanced because of median ambiguity. It is therefore not suitable...
/** * Creates the chart that is displayed on the `SymbolDetails` page that compares the * popularity to the price of an asset over time. */ import React, { useMemo, useState, useRef, useEffect } from 'react'; import ReactEchartsCore from 'echarts-for-react/lib/core'; import echarts from 'echarts/lib/echarts'; impor...
import React, { Component } from "react"; import gql from "graphql-tag.macro"; import { Row, Col, Input, Label, FormGroup, Button, ButtonGroup } from "reactstrap"; import { ChromePicker } from "react-color"; import FileExplorer from "./fileExplorer"; import FontAwesome from "react-fontawesome"; export de...
const { default: PQueue } = require("p-queue"); const { DateTime } = require("luxon"); const pThrottle = require("p-throttle"); const util = require("util"); const stream = require("stream"); const _ = require("lodash"); const got = require("got"); const ndjson = require("ndjson"); const logger = require("../logger"); ...
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; impo...
/* */ 'use strict'; var lang_1 = require('../facade/lang'); var exceptions_1 = require('../facade/exceptions'); var collection_1 = require('../facade/collection'); var change_detection_1 = require('../core/change_detection/change_detection'); var view_1 = require('../core/metadata/view'); var selector_1 = require('./s...
 Element.prototype.astyle = function actualStyle(props) { var el = this; var compStyle = window.getComputedStyle(el, null); for (var i = 0; i < props.length; i++) { var style = compStyle[props[i]]; if (style != null) { return style; } } return null; }; function destroy(element) { if (element.dispose &&...
import colors from 'colors'; import { JR_FUNC, PREFIX, MAP_CURRENT_CONTEXT_SENTINEL } from './constants.js'; import { uniqArray, isObject, isArray, isObjectNotArray, mergeDeep, deepSearch, getPropByPath, setPropByPath, deletePropByPath, getPermutationByPath, setPermutationByPath, removeComments, md5 } from '....
import m from 'mithril'; import prop from 'mithril/stream'; import _ from 'underscore'; import h from '../h'; import railsErrorsVM from '../vms/rails-errors-vm'; import projectGoalVM from '../vms/project-goal-vm'; import popNotification from './pop-notification'; import bigCard from './big-card'; import projectEditSave...
import { Typography } from '@material-ui/core'; import Chip from '@material-ui/core/Chip'; import IconButton from '@material-ui/core/IconButton'; import Paper from '@material-ui/core/Paper'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@mater...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const turbine = require("turbine"); var Ttimer = turbine.tools.Ttimer; const Promise = require("bluebird"); const bodyParser = require("body-parser"); const express = require("express"); const Tscheduler_1 = require("./Tscheduler"); co...
import { map, pathOr, find, propEq, filter, isNil, isEmpty } from 'ramda'; import { call, put, select, all, takeLatest } from 'redux-saga/effects'; import { NavigationActions } from 'react-navigation'; import Errors, { handleLndResponseError } from '../Config/Errors'; import Types from '../Config/Types'; import Channel...
import React, { Component } from 'react' import { connect } from 'react-redux' import { Link } from 'react-router-dom' // import { forEach } from '../../server/db/seeds/ruqBlockSeed'; import { getRenalBlocks } from '../store/blocks' import { getTakes, createTake } from '../store/takes' import CardiothoracicTorso from ...
var sr; var turing = new Turing2D(); var initial = new Tape(); var paused = true; var interval = 200; var hyper = false; var focused = false; var edit = true; var pan = false; var paint = false; var paintColor; var cursor = new Vector2(0,0); var cameraTarget = new Vector2(0,0); var scaleTarget = 1;...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import LinearProgress from '@material-ui/core/LinearProgress'; import DialogTitle from '@material-ui...
const BUY_SIGN = 1; const SELL_SIGN = -1; /** * Signs a message. * * @param web3 * @param address * @param message * @return {[*,*,*]} */ export const signMessage = function (web3, address, message) { const signature = web3.eth.sign(address, message); const r = signature.slice(0, 66); const s = `0x${signa...
/* global $, document, fromLS, set_story_mode */ /* exported show_tx_step*/ var story1html = ''; var story2html = ''; var story3html = ''; var story4html = ''; // ================================================================================= // On Load // ============================================================...
require('svelte/register'); const functions = require('firebase-functions'); const admin = require('firebase-admin'); const express = require('express'); const cors = require('cors'); // I probably should have made the firebase config environment variables but they are public anyway function buildHtml(html, head) { ...
var CronDate = Date; try { CronDate = require("time").Date; } catch(e) { //no time module...leave CronDate alone. :) } function CronTime(source, zone) { this.source = source; this.zone = zone; this.second = {}; this.minute = {}; this.hour = {}; this.dayOfWeek = {}; this.dayOfMonth ...
import { useEffect, useState, useMemo, useRef } from "react"; import { detectedBadAccessors, detectMutatedState } from "./utils/dev"; import { doesAccessorContainsNewStateKeys, getStateWithOriginalStructure, updateComponentsAndSyncState, addNestedObjectTreeWithValue, createInitialStateStructure, createStru...
/* * Copyright (c) 2012 Aalto University and University of Helsinki * MIT License * see LICENSE.txt for more information */ /* exported getUrlParams, readCookie, createCookie, getUrlParams, debounce, updateContent, updateTopbarLang, updateTitle, updateSidebar, setLangCookie, loadLimitations, loadPage, hideCrumbs,...
import { EventEmitter } from 'https://deno.land/std@0.86.0/node/events.ts'; import * as stream from 'https://deno.land/std@0.86.0/node/stream.ts'; // const EventEmitter = require('events').EventEmitter // const stream = require('stream') const EVENT_BATCH = 'batch' const EVENT_CHANGE = 'change' const EVENT_SEQ = 'seq...
/** * Load room data. * * @param {string} roomId value of room id. */ function loadRoomData(roomId) { $.ajax({ url: API_URL + 'rpg/getroom?room=' + encodeURIComponent(roomId), success: function(ret) { map.version = ret.data.room_data.updated_at; map.layers = ret.data.room_data.data; if (...