text
stringlengths
3.22k
29.5k
const { expectRevert, time } = require('@openzeppelin/test-helpers'); const CakeToken = artifacts.require('CakeToken'); const SyrupBar = artifacts.require('SyrupBar'); const MasterChef = artifacts.require('MasterChef'); const MockBEP20 = artifacts.require('MockBEP20'); contract('MasterChef', ([alice, bob, carol, dev, ...
/** * Open Source library: To lazy load the images using IntersectionObserver API * Ref: https://github.com/ApoorvSaxena/lozad.js */ import lozad from "lozad"; /** * Open Source library: To enable smoothe transition to achieve 60 FPS, * While animation only composite layer will impact * Ref: https://github.com/g...
import F2 from '@antv/f2'; import insertCss from 'insert-css'; insertCss(` .chart-wrapper { background-color: #101419; } .chart-container { position: relative; } .chart-title { width: 100%; height: 20px; line-height: 20px; padding-left: 10px; color: #676C79; font-size: 12px; ...
#!/usr/bin/env node const Request = require('request-promise'); const dotenv = require('dotenv'); dotenv.config(); noti_def = [ { "NEW":1, "CANCELED":1, "TRADE":1 }, { "LIMIT":1, "MARKET":1, "STOP_LOSS":1 }, { "BUY":1, "SELL"...
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. var ndDirectives = angular.module('ndDirectives', []); ndDirectives.directive('ndDialog', function(...
import {Config} from 'config'; import {Sprite} from 'utils/sprite'; import {StringColours} from 'utils/colour'; import {Effect} from 'effect'; import {TileFamily, ComplexTileFamily} from 'tiles/tile_family'; import {createCanvasContext} from 'utils/canvas'; const STAGE_WIDTH = 128; const STAGE_HEIGHT = 128; export cl...
/** * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { __awaiter, __generator } from "tslib"; import { Geometry } from '../../mol-geo/geometry/geometry'; import { Representation } from '../representation'; import { Shape,...
/** * DevExtreme (ui/color_box/color_box.js) * Version: 17.2.6 * Build date: Tue Feb 27 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var $ = require("../../core/renderer"), eventsEng...
var Constraint = require('./Constraint') , ContactEquation = require('../equations/ContactEquation') , Equation = require('../equations/Equation') , vec2 = require('../math/vec2') , RotationalLockEquation = require('../equations/RotationalLockEquation'); module.exports = PrismaticConstraint; /** * Constraint...
/*jslint node: true */ 'use strict'; var async = require('async'); var notifications = require('./notifications.js'); var settlement = require('./settlement.js'); var book = require('./book.js'); var db = require('ocore/db.js'); var mutex = require('ocore/mutex.js'); var eventBus = require('ocore/event_bus.js'); const...
import React from 'react'; // import {WithRouter} from 'react-router-dom' import { Input, Button } from 'semantic-ui-react' import {connect} from 'react-redux' import {sendMsg, socketRegister, updateUnread} from '../../redux/chat.redux' import {updatePersonList} from '../../redux/userlist.redux' import EmojiGrid from ...
/* 1 Create a function called subtract that takes a single parameter n, and return the subtraction of all starting from n to 0 Ex: subtract(2); => 2 - 1 - 0 => 1 Ex: subtract(5); => 5 - 4 - 3 - 2 - 1 - 0 => -5 Ex: subtract(9); => 9 - 8 - 7 - 6 - 5 - 4 - 3 - 2 - 1 - 0 => -27 */ document.write("Question #1:"+"<br>"); fu...
'use strict'; const filesExist = require('files-exist'); const gulp = require('gulp'); const gulpAngularTemplateCache = require('gulp-angular-templatecache'); const gulpClosureCompiler = require('gulp-closure-compiler'); const gulpClosureDeps = require('gulp-closure-deps'); const gulpConcat = require('gulp-concat'); c...
var key = "<KEY>"; function now() { navigator.geolocation.getCurrentPosition(function (position) { longitude = position.coords.longitude; latitude = position.coords.latitude; var qURL = "https://api.openweathermap.org/data/2.5/onecall?lat=" + latitude + "&lon=" + longitude + "&appid=" + ke...
'use strict'; /** * Main module for TARS */ /** * Reqiure node-modules from TARS-CLI, if tars was executed via CLI and from local node_modules instead * @param {String} packageName Name of the required package * @return {Object} Required package */ function tarsRequire(packageName) { // Log fo...
// This file is part of InvenioRDM // Copyright (C) 2020-2022 CERN. // Copyright (C) 2020-2021 Northwestern University. // Copyright (C) 2021 Graz University of Technology. // Copyright (C) 2021-2022 New York University. // // Invenio App RDM is free software; you can redistribute it and/or modify it // under the terms...
function SHA256(s) { var index = s.indexOf('/'); if (index > 0) { s = s.substring(0, index); } s = 'http://' + s + '/'; var chrsz = 8; var hexcase = 0; function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 1...
"use strict"; var Bounds = require('agency-pkg-base/Bounds'); var Vector = require('agency-pkg-base/Vector'); var Controller = require('agency-pkg-base/Controller'); var ApplicationModel = require('../../base/ApplicationModel'); var extend = require('lodash/extend'); var uniqueId = require('lodash/uniqueId'); var Con...
$(function () { /**dialog-->*/ $('.dialog-close').click(function () { var dialog = $(this).closest('.dialog'); dialog.css('display', 'none'); }); /**<--dialog*/ /**search-->*/ $('#search').click(function () { var inputKey = $('#input-key').val().trim(); if (!checkString(inputKey)) { a...
import React, { Component } from "react" import Layout from "../../layout/layout" import ScrollManager from "../../helper/scrollManager" import posed from "react-pose" import { easeFunction } from "../../helper/variables" import { connect } from "react-redux" import { graphql } from "gatsby" import _ from "lodash" impo...
const diasS = [ "0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19", "0","1","2","3","4","5","6","7"...
const translationsObject = { en: { application: { //Search widget translation search_product_label: "Search Product", search_product_asc: "Asc", search_product_desc: "Desc", //User, userLoggedIn, AdminLoggedIn navbar translation navbar_products_btn: "Products", navbar_mob...
import React from 'react'; import styled from 'styled-components' import debounce from 'lodash/debounce' import Web3 from 'web3' import Button from '@material-ui/core/Button'; import Account from './Account' import { Input } from '@material-ui/core'; const ensLogin = require("ens-login-sdk"); const StyledInput = sty...
import React, { Component } from 'react'; import { Dialog, Button, Message, Input, Select, NumberPicker, Loading } from '@alifd/next'; import IceContainer from '@icedesign/container'; import axios from '@utils/axios'; import { FormBinderWrapper as IceFormBinderWrapper, FormBinder as IceFormBinder, } from '@icedesig...
import Logger from "../../Utils/LoggerByDefault"; import _ from "../../Utils/MessagesResources"; import ErrorService from "../../Exceptions/ErrorService"; import CommonService from "../CommonService"; import DefaultUrlService from "../DefaultUrlService"; import ProcessIsoCurveRequest from "./Request/ProcessIsoCurveReq...
'use strict' const { getNamedType, isObjectType, isScalarType, Kind } = require('graphql') const { Factory } = require('single-user-cache') const buildFederatedSchema = require('./federation') const buildServiceMap = require('./gateway/service-map') const { makeResolver, createQueryOperation, createField...
'use strict'; /** * 字典识别模块 * * @author 老雷<<EMAIL>> */ var FAMILY_NAME_1 = require('./CHS_NAMES').FAMILY_NAME_1; var FAMILY_NAME_2 = require('./CHS_NAMES').FAMILY_NAME_2; var SINGLE_NAME = require('./CHS_NAMES').SINGLE_NAME; var DOUBLE_NAME_1 = require('./CHS_NAMES').DOUBLE_NAME_1; var DOUBLE_NAME_2 = require('...
import { extendPrototype, } from '../functionExtensions'; import PropertyFactory from '../PropertyFactory'; import Matrix from '../../3rd_party/transformation-matrix'; import TransformPropertyFactory from '../TransformProperty'; import { ShapeModifier, } from './ShapeModifiers'; function RepeaterModifier...
let async = require('async'); //require("../utils/debug_util.js")(__filename, async); let utils = require('../../utils/utils.js'); class ContractDeployer { constructor(options) { const self = this; this.logger = options.logger; this.events = options.events; this.plugins = options.plugins; self.e...
/* Copyright 2021 Planet Labs 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 t...
import React from "react"; import Draggable from "react-draggable"; import ReactList from "@teselagen/react-list"; import Axis from "../RowItem/Axis"; import getXStartAndWidthFromNonCircularRange from "../RowItem/getXStartAndWidthFromNonCircularRange"; import { view } from "@risingstack/react-easy-state"; import { some...
/* jshint node: true, esnext: true */ 'use strict'; var bodyParser = require('body-parser'); var requestp = require('request-promise'); var rperrors = require('request-promise/errors'); var gistAPI = 'https://api.github.com/gists'; var googleUrlShortenerAPI = 'https://www.googleapis.com/urlshortener/v1'; var prefixS...
/** * checkbox[数据选择/全选/返选] * 支持单选与复选,其中复选支持三种选中状态: 选中、未选中、半选中。 * /src/module/config中使用到的部分复选功能也来自于这里。 * * 参数说明: * - supportCheckbox: 配置是否支持选择与反选 * - type: Boolean * - default: true * - checkboxConfig: 选择功能配置 * - type: Object * - default: { * // 是否通过点击行来进行选中 * useRowC...
import devalue from 'devalue'; import fetch, { Response } from 'node-fetch'; import { writable } from 'svelte/store'; import { parse, resolve, URLSearchParams } from 'url'; import { normalize } from '../load.js'; import { ssr } from './index.js'; /** * @param {{ * request: import('types.internal').Request; * op...
//global data; var homeworkWindow; var wifiWindow; var moodleWindow; var levnetWindow; var usefulSites; var currentOpen; $(document).ready(function () { DataAccess.Data(onStart); }) function onStart(result) { /* Check if the username and password is defined */ var status = false; if (result != nul...
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, ChangeDetectorRef, Input, Output, ViewChild, ContentChildren, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ButtonModule } from 'primeng/button'; import { FilterService, PrimeTemplate, S...
/**************************************************************************** Copyright (c) 2011 <NAME> Copyright (c) 2008-2010 <NAME> Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. http://www.cocos2d-x.org Permiss...
var Package = require("./package.json"); var AWS = require("aws-sdk"), mime = require("mime"), uuid = require("uuid").v4, fs = require("fs"), request = require("request"), path = require("path"), winston = require.main.require("winston"), nconf = require.main.require('nconf'), gm = require("gm"), im = gm.subC...
import React from 'react'; import Board from './Board'; import { bsv, Bytes, Sig, toHex } from 'scryptlib'; import { web3, Input, SignType } from './web3'; import server from './Server'; import { getPreimage } from './web3/wutils'; const calculateWinner = (squares) => { const lines = [ [0, 1, 2], [3, 4, 5]...
import React,{useState,useEffect,useRef} from 'react'; import moment from 'moment' import {fetchData, filtersToSearch} from '../Utils'; import {useWatch,useForm} from 'react-hook-form' import { renderToString } from 'react-dom/server' const filterLabels = { q:'關鍵字', year:'年份', month:'月份', dataset:'資料集', publ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { evalStrategies } from "lively.vm"; import { obj, string, promise } from "lively.lang"; var shell = lively.shell; // var state = await startMorphicNodejsProcessAndWorld() // state.workspace.targetMorph. export async function startMorphicNodejsProcessAndWorld() { await shell.writeFile(string.joinPath(shell...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Row, Col, Card, Form, Input, Icon, Button, DatePicker, Cascader, Select } from 'antd'; import moment from 'moment'; import StandardTable from '@/components/StandardTable'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'...
import { h, Component } from '/js/web_modules/preact.js'; import htm from '/js/web_modules/htm.js'; const html = htm.bind(h); import UsernameForm from './components/chat/username.js'; import Chat from './components/chat/chat.js'; import Websocket, { CALLBACKS, SOCKET_MESSAGE_TYPES, } from './utils/websocket.js'; im...
import React from 'react' import { Alert, Button, Row, Col, Popover, OverlayTrigger, FormGroup, Radio, ControlLabel, Panel, Table, FormControl } from 'react-bootstrap' import Icon from 'react-fontawesome' import Markdown from 'react-markdown' import { connect } from 'react-redux' import * as actions from '../actions...
import { LightningElement, api, wire, track } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; import { getObjectInfo } from 'lightning/uiObjectInfoApi'; import { getRecord } from 'lightning/uiRecordApi'; import { constructErrorMessage, extractFieldInfo, isNull, isUndefined, getNamespace } from 'c/ut...
var args = arguments[0] || {}; $.headSurvey.backgroundColor=args.colorHead || '#44a922'; $.progresoSurvey.backgroundColor=args.colorBackProgress || '#44a922'; $.avanza.backgroundColor=args.btBackColor || '#44a922'; // var verPreg=require('lib/preguntasCont'); // // surveypop.js // chsurvey // generar vista para ...
import React, {PropTypes, Component} from 'react' import {Form, Select, Input, Row, Col, Button, Tabs, Spin, Table, message , Icon} from 'antd' const TabPane = Tabs.TabPane; const Textarea = Input.TextArea // 导入样式 import styles from './res/styles/index.less' import Request from "@/app/utils/request"; const FormItem = ...
var viewport = { width : $(window).width(), height : $(window).height() }; //var SingleCardData = null; var userLang = navigator.language || navigator.userLanguage; $( document ).on( "mobileinit", function() { // Make your jQuery Mobile framework configuration changes here! $.support.cors = true; $....
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getKey = getKey; exports.warningWithoutKey = warningWithoutKey; exports.convertTreeToData = convertTreeToData; exports.flattenTreeData = flattenT...
/* Filename: vis.js About: A grid histogram showing GE 2017 results by median age Author: <NAME> Requires: d3 plus polyfills */ import "./libs/polyfill/array/keys.js"; import "./libs/polyfill/window/fetch.js"; import "./libs/polyfill/window/Promise.js"; import * as d3 from "d3"; import * as pym from "pym.js"; // Glob...
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; //获取图片数据 let imageDatas = require('../data/imageDatas.json'); //将图片路径名信息转成图片 imageDatas = (function(imageDatasArr){ imageDatasArr.forEach(function(item){ let singleImageData = item; singleImageData.imageUrl = req...
"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.proto...
//TODO: change the colors var initialColors = colorbrewer.Greens[7]; //TODO: change the name and id field of your data. These will be used to link the pcp with the map, and also display labels var key = "FID"; var idfield = "FID"; //TODO: change the name of the attributes to include in the parallel coordinate plot va...
/* * Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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/LICENSE-2.0 * * Unless requ...
// Copyright IBM Corp. 2013,2016. All Rights Reserved. // Node module: loopback-datasource-juggler // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; var assert = require('assert'); /*! * Get a near filter from a given where object. For con...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var _createClass2 = _inte...
import styled from '@emotion/styled'; import { Button as button, Dialog, DialogActions, DialogContent, DialogTitle, Grid, IconButton, Popper, TextField as textField, useMediaQuery, useTheme } from '@material-ui/core'; import CloseIcon from '@material-ui/icons/Close'; import ...
'use strict' var bail = require('./src/utils/bail') var buffer = require('./src/utils/isBuffer') var extend = require('./src/utils/extend') var isPlainObject = require('./src/utils/isPlainObject') var trough = require('./src/utils/through') var vfile = require('vfile') // Expose a frozen processor. module.exports = u...
load_new('scr/_fs.js'); /* ах, чудна българска земьо, полюшвай цъфтящи жита! */ fsiomode={read:1, write:2, append:8} fsformat={SystemDefault:-2,Unicode:-1, ASCII:0} ActiveX=null, fso=null, fsn=null, fsh=null function fs_init(){ if(!undef(window.ActiveXObject)){ ActiveX=typeof(window.ActiveXObject) ...
/* Copyright 2014-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ 'use strict'; var net = require('net'); var EE = require('events').EventEmitter; var util = require('util'); var childProcess = require('child_process'); var bser = require('bser'); // We'll emit the responses to these when...
let random; const UPDATE_DELAY = 500; const KEY_DELAY = 100; const WATCH_DOG_INTERVAL_TIME= 1000; const MIN_SENSOR_VALUE = 0; const MAX_SENSOR_VALUE = 255; let isConnected = false; let isSilentRadio = false; let net = require('net'); let client = new net.Socket(); let interval_value=null; let silentNextRequest = false...
/** * Copyright (c) 2015-present, <NAME> * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * */ /* eslint-disable no-param-reassign */ import { Platform } from 'react-native'; import * as ActionConst from '...
'use strict'; var Async = require('async'); var Chokidar = require('chokidar'); var Fs = require('fs'); var Lodash = require('lodash'); var Path = require('path'); var Builder = require('./../../../shared/builder/lib/builder'); var BLANK = ''; var DOUBLE_DOT = '..'; var SLASH = '/'; function Assistant(options) { ...
const later = require('later'); const deepcopy = require('deepcopy'); const options = require('./definitions').getOptions(); let optionTypes; module.exports = { migrateConfig, }; const removedOptions = [ 'maintainYarnLock', 'yarnCacheFolder', 'yarnMaintenanceBranchName', 'yarnMaintenanceCommitMessage', '...
/* * @Author: heng.xu * @Date: 2016/1/18 12:38 * @Last Modified by: * @Last Modified time: * @Description 历史浏览记录 */ require("list.mustache"); require("lib/transit/index"); require("lib/qevent/index.js"); // 需使用者自己提供接口 var config = { listInterface: "", productType: { freetrip: '自...
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 __decorate = (this && this.__decorate) || function (decora...
// pages/play/play.js import PubSub from 'pubsub-js'; import moment from 'moment'; const app = getApp(); const API = require('../../utils/api') Page({ /** * 页面的初始数据 */ data: { isPlay: false, songInfo: [], musicID: '', isShowLyric: false, Lyric: '', curr...
// 05_live_to_vod_hls_manifest const Bitmovin = require('bitmovin-javascript').default; const Promise = require('bluebird'); const BITMOVIN_API_KEY = 'YOUR_API_KEY'; const bitmovin = new Bitmovin({apiKey: BITMOVIN_API_KEY}); const GCS_ACCESS_KEY = 'YOUR_GCS_ACCESS_KEY'; const GCS_SECRET_KEY = 'YOUR_GCS_SECRET_KEY'; ...
const Apify = require('apify'); const _ = require('lodash'); const { infiniteScroll, requestCounter, minMaxDates, createAddEvent, createAddProfile, createAddSearch, createAddThread, createAddTopic, extendFunction, categorizeUrl, tweetToUrl, deferred, getEntities, ...
'use strict'; import accsMsg from './accs-msg.js'; import { WebSocket, checkIsBrowser } from './api-adapter'; const MAX_RECONNECT_TIMES = 5; // 最多重试重连的次数 const RECONNECT_INTERVAL = 2000; // 默认尝试重连的间隔时间 ms const DETECT_INTERVAL = 30000; // 心跳探测时间。 class H5AccsCore { constructor(resolve, reject, aserverProxy = '', t...
// Nocturnal Gamers - SC2 Rankings // Author: <NAME> // Date: March 2016 // Version: 1.0.4 // GM : 100, Master : 90, Diamond 80, etc. // Strings var APIKEY = '<KEY>'; var BNET_PROFILE = 'https://us.api.battle.net/sc2/profile/@ID@/1/@NAME@/ladders?locale=en_US&apikey='+APIKEY; var BNET_LADDER = 'https://us.api.battle...
/* Copyright 2021 Mozilla Foundation * * 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...
/* * Copyright 2019 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 *...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw...
var controls = controls || []; var tempElement; var designer = new Designer({ container: container, //import: JSON.parse(localStorage.getItem('import')), scale: 1, theme: FlowJS.Theme.Dark, callbacks: { linkCreated: (e) => { console.log('linkCreated'); console.log(e); }, linkSelected: (e) => { consol...
const tokenTypes = require("./tokenTypes.js"); const reservedWords = { and: tokenTypes.AND, in: tokenTypes.IN, or: tokenTypes.OR, not: tokenTypes.NOT, class: tokenTypes.CLASS, true: tokenTypes.TRUE, false: tokenTypes.FALSE, for: tokenTypes.FOR, function: tokenTypes.FUNCTION, if: tokenTypes.IF, el...
const $ = require('./map'); test('$.echo: map same', () => { expect([1, 'a', {a: 1}, [5]].map($.echo)).toEqual([1, 'a', {a: 1}, [5]]); }); test('$.aecho: map same async', async () => { const promises = [1, 'a', {a: 1}, [5]].map($.aecho); expect(promises[0] instanceof Promise).toBe(true); expect(await Promise....
/* * Rhino host environment */ if(dojo.config["baseUrl"]){ dojo.baseUrl = dojo.config["baseUrl"]; }else{ dojo.baseUrl = "./"; } dojo.locale = dojo.locale || String(java.util.Locale.getDefault().toString().replace('_','-').toLowerCase()); dojo._name = 'rhino'; dojo.isRhino = true; if(typeof print == "function"){ c...
/* eslint-disable import/no-cycle */ /* eslint-disable no-param-reassign */ /* eslint-disable func-names */ /* eslint-disable camelcase */ import { createAction, handleActions } from "redux-actions"; import { produce } from "immer"; import { postImgAction, putAction } from "../../shared/axios"; import { actionCreators...
import React from "react"; import { StyleSheet, ImageBackground, Dimensions, StatusBar, KeyboardAvoidingView, View, ScrollView, Picker } from "react-native"; import { Block, Checkbox, Text, theme } from "galio-framework"; import { Input, Button as ComponentButton } from "../components"; import { Images...
import {encode} from 'rlp' import axios from 'axios' import Jimp from 'jimp' import dayjs from 'dayjs' import {loadPersistentStateValue, persistItem} from '../../shared/utils/persist' import {FlipType} from '../../shared/types' import {areSame, areEual} from '../../shared/utils/arr' import {submitFlip} from '../../shar...
'use strict' const EventEmitter = require('events') const { isEmpty } = require('lodash') const COLLS_TYPES = require('../schema/colls.types') const { checkCollPermission } = require('../helpers') const { UpdateSyncQueueJobError } = require('../../errors') const { LOCKED_JOB_STATE, NEW_JOB_STATE, FINISHED...
import React from "react"; import { Link, useHistory } from "react-router-dom"; import { useAuth0 } from "@auth0/auth0-react"; import { Card, Row, Button, Col } from "react-bootstrap"; import API from "../../utils/API"; import "./style.css"; function Conference({ conference }) { const { user } = useAuth0(); const ...
var Backbone = require('backbone'); var $ = require('jquery'); var CoreView = require('backbone/core-view'); var VisDefinitionModel = require('builder/data/vis-definition-model'); var CreationModalView = require('builder/components/modals/creation/modal-creation-view'); var DatasetBaseView = require('builder/components...
// Copyright 2018 Naftis Authors // // 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 ...
const util = require('./util.js') // These are the simple operators. // Note that "is distinct from" needs to be used to ensure nulls are returned as expected, see https://modern-sql.com/feature/is-distinct-from const OPS = { $eq: '=', $gt: '>', $gte: '>=', $lt: '<', $lte: '<=', $ne: ' IS DISTINCT FROM ', ...
Bangle.loadWidgets(); var s = Object.assign({ CAL_ROWS: 4, //number of calendar rows.(weeks) Shouldn't exceed 5 when using widgets. BUZZ_ON_BT: true, //2x slow buzz on disconnect, 2x fast buzz on connect. Will be extra widget eventually MODE24: true, //24h mode vs 12h mode FIRSTDAY: 6, //First day of t...
import React, {useState, useEffect} from "react"; import Form from "../components/NoteFormSocial"; import DangerZone from "../components/DangerZone"; import Card from "../components/Card"; import Issues from "../components/Issues"; import Contributions from "../components/Contributions"; import DetailInfo from "../comp...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
import * as cookie from "./cookie"; import { EnForm } from "./events"; const tippy = require('tippy.js').default; export class RememberMe { constructor(options) { this._form = EnForm.getInstance(); this.iframe = null; this.remoteUrl = (options.remoteUrl) ? options.remoteUrl : null; t...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.htmlInputPropNames = undefined; var _includes2 = require('lodash/includes'); var _includes3 = _interopRequireDefault(_includes2); var _pick2 = require('lodash/pick'); var _pick3 = _interopRequireDefault(_pick2); var _extends = ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SectionTitle from 'components/section-title'; import kebabCase from 'lodash/kebabCase'; import { Dropdown, Icon, Loading, Button } from 'cw-components'; import InfoDownloadToolbox from 'components/info-download-toolbox'; import PlayTim...
/* * 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 _ from 'lodash'; import { i18n } from '@kbn/i18n'; import { parse } fr...
/** * @license * Copyright Google LLC 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 */ /* eslint-disable */ import { Platform } from './platform'; import { Injectable } from '@angular/core'; import * as i0...
var Vector2 = require("vector2"); var nconsole = require("nconsole"); console.debug = nconsole.debug; console.info = nconsole.info; console.log = nconsole.log; console.warn = nconsole.warn; console.error = nconsole.error; var UI = require("ui"); var Voice = require("ui/voice"); var Feature = require("platform/feature")...
import _ from "lodash"; import React, { Component } from "react"; import { Button, Divider, Form, Grid, Icon, Item, Label, List, Header, Segment, Message, } from "semantic-ui-react"; import SelfServiceComponent from "./SelfServiceComponent"; import SelfServiceModal from "./SelfServiceModal.js"; im...
import React, { useState, useEffect, useRef, useContext } from "react"; import mapboxgl from "!mapbox-gl"; // eslint-disable-line import/no-webpack-loader-syntax import MapboxDirections from "@mapbox/mapbox-gl-directions/dist/mapbox-gl-directions"; import "@mapbox/mapbox-gl-directions/dist/mapbox-gl-directions.css"; im...
'use strict'; 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]; } } } return target; }; Object.defineProperty(exports, "__esModule", {...