text
stringlengths
5.97k
41.2k
import React from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import { injectIntl } from 'react-intl'; import styled from 'styled-components'; import { getCollectiveMainTag } from '../lib/collective.lib'; import Avatar from './Avatar'; import Container from './Container'; import I18nCol...
import React, { useState } from 'react'; import { array, bool, func, shape, string } from 'prop-types'; import { compose } from 'redux'; import { Form as FinalForm } from 'react-final-form'; import classNames from 'classnames'; import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl'; import { pr...
import { convertDateToEpoch } from "egov-ui-framework/ui-config/screens/specs/utils"; import { setRoute } from "egov-ui-framework/ui-redux/app/actions"; import { prepareFinalObject, toggleSnackbar } from "egov-ui-framework/ui-redux/screen-configuration/actions"; import { httpRequest } from "egov-ui-framework/ui-utils/a...
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; let runWithPriority; let ImmediatePriority; let UserBlockingPriority; let NormalPriority; let sc...
jQuery(document).ready(function($){ if(typeof(__FRMURL)!='undefined') var ajax_url=__FRMURL; if(typeof(__FRMDEFDESC)!='undefined') var def_desc=__FRMDEFDESC; var form_id=$('input[name="id"]').val(); $(".frm_elastic_text").elastic(); window.onscroll = document.documentElement.onscroll = frmSetMenuOffset; ...
import React, { Component } from 'react'; import { connect } from 'dva'; import moment, { isDate } from 'moment'; import router from 'umi/router'; import { Modal, Row, Col, Card, Form, Input, Select, Icon, Button, Collapse, DatePicker, Upload, PageHeader, Divider, Table, Tree, } from 'an...
function TEIImportPlugin() { var plugin = this; this.entities =[]; this.importable_entities =[]; this.names_to_import = []; this.ids_to_import = []; // local ids this.context2elementname ={ 'persons': 'persName', 'places' : 'placeName', 'organisations': 'orgName' } ...
/* * Node script to create cross-library API index files for use in the UI5 SDKs. * * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ "use strict"; const path = require("path"); const log = (function() { try { return require("@u...
/* * Copyright (c) 2018 CubicA. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, mer...
// This is the content script. The content script receives a // message from the Popup with an array of coin objects. // // The content script only has access to https://mint.intuit.com/, // so if Popup sends a message from any other URL content script // will not receive it. // // For each coin object in the message a...
import events from './events'; import ApiClient from './apiClient'; const defaultTimeout = 20000; const ConnectionMode = { Local: 0, Remote: 1, Manual: 2 }; function getServerAddress(server, mode) { switch (mode) { case ConnectionMode.Local: return server.LocalAddress; ca...
/* Client-side logic for Wordpress CLI theme <NAME>, 2006, 2007, 2008 http://thrind.xamai.ca/ jQuery rewrite and overhaul Chromakode, 2010 http://www.chromakode.com/ */ /**** start from http://snippets.dzone.com/posts/show/701 ****/ // Removes leading whitespaces function ltrim(value) { if (value) { var r...
/** * Created by ealexand on 4/22/2016. */ // Tag Representation namespace var tagRepNS = {}; tagRepNS.maxBarWidth = 150; tagRepNS.barHeight = 10; tagRepNS.barBuffer = 3; tagRepNS.barXoffset = 100; tagRepNS.barYoffset = 0; tagRepNS.w = 300; tagRepNS.size = [400, 400]; tagRepNS.barBorder = 'black'; tagRepNS.defaultCo...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { Form, Button, Modal, Input, DatePicker, Row, Col, Spin } from 'antd'; import { editGutter, listCol } from '@/utils/constans'; import router from 'umi/router'; import moment from 'moment'; import { formItemFragement } from '@/uti...
DEFAULT_OPERATION_TIMEOUT_MS = 1000; DEFAULT_LOAD_TIMEOUT_MS = 1000; DEFAULT_LOAD_ATTEMPT_LIMIT = 10; DEFAULT_CUSTOM_DAYS = 10; const currentSettings = { saveDelay: DEFAULT_OPERATION_TIMEOUT_MS, loadDelay: DEFAULT_LOAD_TIMEOUT_MS, loadMaxAttempts: DEFAULT_LOAD_ATTEMPT_LIMIT, customDaysDefault: DEFAULT_...
import { require_core } from "./chunk-6D3W2CUU.js"; import { __commonJS, init_define_APP_INFO } from "./chunk-PC2SFJIV.js"; // node_modules/crypto-js/sha1.js var require_sha1 = __commonJS({ "node_modules/crypto-js/sha1.js"(exports, module) { init_define_APP_INFO(); (function(root, factory) { if (...
/* * Copyright 2018. F5 Networks, Inc. See End User License Agreement ("EULA") for * license terms. Notwithstanding anything to the contrary in the EULA, Licensee * may copy and modify this software product for its internal business purposes. * Further, Licensee may upload, publish and distribute the modified versi...
module.exports = {getMatchingLabels, labelMatch, compareRefs, getShortRef, getRefFromUrl, getFullRef, getParentRefs, getChildrenFromBody, makeChildBlock, insertDeleteRefs, getRefsDiff, findRefIndex, findAllRefIndex, makeIssuesUnique, noChildRefs, isRef}; var log4js = require('log4js'); var logger = log4js.getLogger();...
const path = require('path'); module.exports.APPLICATION_NAME = 'ask-cli'; module.exports.NPM_REGISTRY_URL_BASE = 'http://registry.npmjs.org'; module.exports.METRICS = { ENDPOINT: 'https://client-telemetry.amazonalexa.com' }; module.exports.DEPLOYER_TYPE = { HOSTED: { OPTION_NAME: 'Alexa-hosted skill...
"use strict"; // Copyright 2016-2018, Pulumi 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 app...
import { html } from "lit"; import { classMap } from "lit/directives/class-map.js"; import { inferType } from "vega-loader"; import ConcatView from "@genome-spy/core/view/concatView"; import UnitView from "@genome-spy/core/view/unitView"; import generateAttributeContextMenu from "./attributeContextMenu"; import forma...
/** * @author:<NAME> */ var fs = require('fs'); var path = require('path'); var CSSOM = require('cssom'); //防止不支持canvas的环境中报错 try { var Canvas = require('canvas'); var GrowingPacker = require('./GrowingPacker'); var bgItpreter = require('./BackgroundInterpreter'); var ztool = require('./ztool'); ...
"use strict"; /** * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PluginContext = void 0; var tslib_1 = require("tslib"); var ...
queue() .defer(d3.json, "/api/data") .await(makeGraphs); function print_filter(filter){ var f=eval(filter); if (typeof(f.length) != "undefined") {}else{} if (typeof(f.top) != "undefined") {f=f.top(Infinity);}else{} if (typeof(f.dimension) != "undefined") {f=f.dimension(function(d) { return "";}).top(Infini...
var assert = require('assert') var fs = require('graceful-fs') var path = require('path') var url = require('url') var chownr = require('chownr') var dezalgo = require('dezalgo') var hostedFromURL = require('hosted-git-info').fromUrl var inflight = require('inflight') var log = require('npmlog') var mkdir = require('m...
import React from "react"; import { useState, useEffect } from 'react' // react plugin for creating charts import ChartistGraph from "react-chartist"; // @material-ui/core import { makeStyles } from "@material-ui/core/styles"; import Icon from "@material-ui/core/Icon"; // @material-ui/icons import Store from "@materia...
let defaultRowCount = 7; // No of rows let defaultColCount = 6; // No of cols let defaultColNames = ["Layer", "Type", "Kernel size", "Padding", "Stride", "Dilation", "Output"]; let defaultColValues = [NaN, 0, NaN, 0, 1, 1, 0]; let operationNames = ["convolution", "pooling"]; const SPREADSHEET_DB = "spreadsheet_db"; in...
const swap = (f) => (a, b) => f(b, a); const compose = (first, ...fns) => (...args) => fns.reduce((previous, current) => current(previous), first(...args)); const curry = (fn, arityLeft) => { const arity = arityLeft || fn.length; return (...args) => { const argLength = args.length || 1; if (arit...
const mockReturnDataContextECE210 = [ makeMockRow('ECE', '210', 'ECE', '307', '0', 'PREREQ'), makeMockRow('ECE', '210', 'ECE', '310', '0', 'PREREQ'), makeMockRow('ECE', '210', 'ECE', '311', '0', 'COREQ'), makeMockRow('ECE', '210', 'ECE', '329', '0', 'PREREQ'), makeMockRow('ECE', '210', 'ECE', '330', '0', 'PREREQ...
var OpenWeatherAppKey = "<-- PLACE YOUR OPENWEATHERMAP KEY HERE -->"; const APIUnitsInCelsius = "&units=metric"; function getWeatherWithCityName() { var cityName = $('#city-name-input').val(); if (!/\S/.test(cityName)) { hideAllAndDisplayError("Моля въведете име на град."); return false; ...
"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 ("val...
// // gulpfile.js // Gulp for Alasql // Дата: 06.08.2014 // (c) 2014-2015, <NAME> // var exec = require('child_process').exec; var fs = require('fs'); var gulp = require('gulp'); var jison = require('gulp-jison'); module.exports = gulp; var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var shell...
/* * Copyright 2018-2020 <NAME>. (http://www.onehippo.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 required by appl...
import loadData from './load-data'; import initREGL from 'regl'; import scrollama from 'scrollama'; import { sumArray } from './math-utils'; const scroller = scrollama(); const isMobile = window.innerWidth <= 650; let initialized = false; let previousPose = 0; const PADDING = isMobile ? 50 : 100; const BOX_ROWS = 9;...
var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp ...
const fn = require('../is-date-string') test('is-date-string', () => { // http://dygraphs.com/date-formats.html // http://momentjs.com/docs/#/parsing/ // https://github.com/litejs/date-format-lite/blob/master/tests/index.js // https://github.com/litejs/date-format-lite/blob/master/index.js expect(fn(2009)).t...
import React, { Component, PropTypes, Text, View, TouchableHighlight, TouchableOpacity, Platform, StyleSheet, ListView, InteractionManager } from 'react-native'; import moment from 'moment'; import { connect } from 'react-redux/native'; import _ from 'lodash'; import EventEmitter from 'EventEmitter'; import Subscribab...
/** Copyright 2011 Couchbase, 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 i...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import ManagedAnimationLayerInterface from './animpack/ManagedAnimationLayerInterface'; import SSMLSpeechmarkInterface from './awspack/SSMLSpeechmarkInterface'; import AbstractHostFeature from './AbstractHostFeature'...
var total_ingredients = []; var menu_list = []; var list = []; var currentBlockRenderer = null; Menu.retrieveAvailableMenus({ onsuccess : (message)=>{ menu_list = message.body; $("#menu-modal .modal-header .menu_name_select").append( menu_list.map((menu,index)=> $(`<option da...
#!/usr/bin/env node const createDebug = require('debug'); const debug = createDebug('npm-verified:cli'); require('util').inspect.defaultOptions.depth = 20; const program = require('commander'); const chalk = require('chalk'); const path = require('path'); const fs = require('fs'); const npmpa = require('npm-package-a...
/** * @version 0.43 * @description ksu jumping */ import React, { PureComponent } from 'react' import { connect } from 'react-redux' import { View, Text, StyleSheet, ScrollView, TouchableOpacity, Animated, Dimensions } from 'react-native' import NavStore from '@app/components/navigation...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("@klasa/utils"); const arrayStrictEquals_1 = require("@klasa/utils/dist/lib/arrayStrictEquals"); const polyfills_1 = require("../polyfills"); /* eslint-disable no-dupe-class-members */ class SettingsFolder extends Map {...
/** 阳历转化为农历函数类 create:Chenxihu createdt:2013-11-05 11:05:00 */ function rockoaclasstolunar_new(_y,_m,_d){ const calendar = { gregorianYear: null, //公历年 gregorianMonth: null, //公历月 gregorianDay: null, //公历日 weekday: null, //星期 hours: null, minutes: null, seco...
/*********************************************************************************** * ViewModel class. * @constructor */ function ViewModel() { var self = this; // object model this.companies = []; this.updating = ko.observable(0); this.minDate = ko.observable(null); this.chartSeries = ko.obse...
// board canvas: https://codepen.io/solartic/pen/qEGqN // Hacked by Ry2uko ;} let gameMode, playAs, playerPlayAs; const playersRef = { 'playas-x': 1, 'playas-o': 0, 'playasarr': ['playas-o', 'playas-x'] } const constants = { canvas_size: 531, bg_color: '#fff', x_color: '#FF686B', o_color: '#668cf...
/* Match engine API -highlander Single threaded in memory match engine * High performance (1000+ trades per second) * multi-market scalable 1 thread per market */ const TAG = ' | TRADE ENGINE | ' require('dotenv').config() const parse = require('co-body') const ko...
// TODO: Code this up! let CTF_2 = { points: 100, answered: false, formpost : function() { if((document.getElementById('ctf2-authorized').value == "false") && (document.getElementById('auth_to_list').value == "External")) { let h = /*html*/` <div class="ctf-block ctf-modal-mi...
var swan_obj_list; var swan_objs=[]; var icon={}; var iconsId=localStorage.iconsId ; function init() { if (iconsId != null) { var xmlHttp1 = new XMLHttpRequest(); xmlHttp1.open("GET", "../../../sys/sifanydatatext/scene/" + iconsId, true); xmlHttp1.send(); xmlHttp1.onreadystatechange ...
"use strict"; // PEDASI API endpoints const PEDASI_API = 'https://dev.iotobservatory.io'; // Root PEDASI API endpoint const DATASET_CYCLEROUTE_HC = '/api/datasources/4/data/'; // CISCO's cycleroute external HyperCat data source const DATASET_CYCLEROUTE_EN = '/api/datasources/3/datasets/'; // CISCO's cycl...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.INTERACTIONS = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; des...
import React, { Component } from 'react'; import { connect } from 'umi'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; // import _ from 'lodash'; import { Row, Col, Select, Spin, message, Switch, Input, Button } from 'antd'; import moment from 'moment'; import styles f...
const THREE = require('three') const FLT_EPSILON = 1.192093e-007; function ROTATE(a, i, j, k, l, t) { g = a.elements[i + 4 * j]; h = a.elements[k + 4 * l]; a.elements[i + 4 * j] = (g - s * (h + g * t)); a.elements[k + 4 * l] = (h + s * (g - h * t)); } function intersectMovingBox3(stationaryBox, movingBox, d)...
const question = document.querySelector('#question'); const choices = Array.from(document.querySelectorAll('.choice-text')); const progressText = document.querySelector('#progressText'); const scoreText = document.querySelector('#score'); const progressBarFull = document.querySelector('#progressBarFull'); let currentQ...
var viewLeaveQueryInit = false; var formSigning = langStr["str_147"]; //"表單簽核中"; var formRefused = langStr["str_150"]; //"表單已拒絕"; var formWithdrawed = langStr["str_148"]; //"表單已撤回"; var formEffected = langStr["str_149"]; //"表單已生效"; var formEnter = langStr["str_208"]; //"時數登入中"; var employeeName; var overtimeListArr = ...
import * as React from "react"; import { Wrapper, Ahref, LeftContainer, RightContainer, NavLink } from "components/"; import { ProgressLoaderContainer } from "widgets/ProgressLoader/"; import { TogglePageViewContainer } from "widgets/TogglePageView/"; import { Tab, Nav } from "react-bootstrap"; import { TAONameContaine...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createWithEditableAPI = createWithEditableAPI; var _slate = require("slate"); var _slateReact = require("@sanity/slate-react"); var _values = require("../../utils/values"); var _ranges = require("../../utils/ranges"); var _debu...
const fs = require('fs-extra') const Web3 = require('web3') const BN = Web3.utils.BN const log = require('debug')('info:state') const models = require('plasma-utils').serialization.models const UnsignedTransaction = models.UnsignedTransaction const SignedTransaction = models.SignedTransaction const itNext = require('.....
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import TextField from 'material-ui/TextField'; import axios from 'axios'; import Button from 'material-ui/Button'; import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table'; import ...
'use strict' const debug = require('debug')('regression-1.0.3') const assert = require('assert') const PigpioClient = require('../pigpio-client') const pigpio_client_config = { host: process.env.npm_package_config_host, port: 8888, pipelining: true } const GPIO = parseInt(process.env.npm_package_config_gpio, 10) ...
var shapes = []; class Shape { constructor(clickable, onClick, ctx, bkgFillStyle, strokeStyle, lineWidth){ this.clickable = clickable; // boolean. Is this a clickable element? this.onClick = onClick; // function to handle click events this.ctx = ctx; // HTML canvas context this.bkgFillStyle = bkgFill...
import React, { useEffect, useState, useCallback } from 'react'; import { BrowserRouter as Router, Route, Redirect, Switch } from "react-router-dom"; import { ToastContainer, cssTransition, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { v4 as uuidv4 } from 'uuid'; impor...
"use strict"; // DEPENDS ON budget_http.js // TODO I think I can remove these now that I have the JS in its own file // I think it was just the HTML filetype in Vim that struggled with HTML // and JS combined. const white = "#" + "FFFFFF"; const lightGrey = "#" + "D0D0D0"; const lightBlue = "#" + "B0B0D0"; const amp ...
import { Engine } from "../../../Engines/engine"; import { VertexBuffer } from "../../../Meshes/buffer"; import { Texture } from "../texture"; import { DynamicTexture } from "../dynamicTexture"; import { Vector2 } from "../../../Maths/math.vector"; import { Color3, Color4 } from "../../../Maths/math.color"; impor...
var Common = require('./common'); var _ = require('./utils'); var Components = require('./component'); var state = require('./state'); var registerWebComponent = require('./webcomponent').registerWebComponent; var Stringifier = require('./stringify'); var Dispatcher = require('./events'); exports.svgNS = "http://www.w...
var lang="en"; var appVersion=""; if (navigator.language.indexOf("es-")){ lang="es"; } if (document.location.hash=="#es"){ lang="es" } if (document.location.hash=="#en"){ lang="en" } console.log("LANG",lang); var language={ en:{ "_name" : "🇬🇧 English", "_flag" : "🇬🇧", "enter_your_name":"Na...
const { getHandle, getStruct } = require('./parse'); const PRIMITIVE_TYPES = { bool: 'bool', uint64_t: 'u64', uint32_t: 'u32', uint16_t: 'u16', uint8_t: 'u8', int64_t: 'i64', int32_t: 'i32', int16_t: 'i16', int8_t: 'i8', int: 'i32', char: 'c_char', float: 'f32', doub...
/* * This script is used to populate the primary database with fake data * to help with development. Use the following command to run this script: * * docker compose exec api node ../scripts/populate_db_with_fake_data.js * * *NOTE* The data generated by this script is currently not meant to * make sense, but ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.svgEncloseAnnotation = exports.svgRectEncloseRule = exports.htmlTooltipAnnotation = exports.svgAreaAnnotation = exports.svgLineAnnotation = exports.svgBoundsAnnotation = exports.svgYAnnotation = exports.svgXAnnotation = exports.basi...
const db = firebase.firestore(); const USER = undefined; checkIfAdmin(); const VERTICALS = []; var allExpArr = []; const verticalsDropdownHTML = document.querySelector("#verticalsDropdown"); var subVerId="" // const subVerticalsDropdownHTML = document.querySelector( // "#subVerticalsDropdown" // ); const subVertica...
import React, { Component } from 'react'; import { message, Select, Modal } from 'antd'; import { Redirect, withRouter } from 'react-router-dom'; import 'antd/dist/antd.css'; import ws from '../../../utils/webservices'; import Input from '../../../componentes/input'; import CSelect from '../../../componentes/select2';...
GeometryPath = '../geometries/'; // 在整个空间里面随机选择位置 function randomWithinScreen ( width, height, depth ) { var _x = ( Math.random() - 0.5 ) * width; var _y = ( Math.random() - 0.5 ) * height; var _z = ( Math.random() - 0.5 ) * depth; return new THREE.Vector3( _x, _y, _z ); } // 加载颜色和样式数据: color | paint data functi...
/** * @fileOverview Validation mixin for Backbone models */ 'use strict'; var _ = require('underscore'); var utils = require('utils'); // jshint ignore:line /** * Validates an attribute against all validators defined * for that attribute. If one or more errors are found, * the first error message is returned. *...
import React, {useEffect, useState} from 'react'; import {useTranslation} from 'react-i18next'; import {View, StyleSheet, Dimensions, Platform, ScrollView} from 'react-native'; import { Text, Appbar, Button, Card, Title, ActivityIndicator, RadioButton, Dialog, Portal, Divider, Modal, } from 'react...
/* * Copyright 2011 eBay Software 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 o...
'use strict'; import {mouse as d3Mouse, select as d3Select} from 'd3-selection'; import {line as d3Line} from 'd3-shape'; import {axisBottom as d3AxisBottom, axisLeft as d3AxisLeft} from 'd3-axis'; import {transition as d3Transition} from 'd3-transition'; import defaultValue from 'terriajs-cesium/Source/Core/d...
var express = require('express'); var app = express(); var http = require('http').Server(app); var io = require('socket.io')(http); var util = require('util'); const sleep = require("http"); /* Prevent Sleep in Heroku Server */ setInterval(function () { sleep.get("http://yachoo.herokuapp.com"); }, 600000); // every ...
/* Copyright 2021 <NAME>, <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed ...
import { getPropertyValue, cloneObject, isTimeValid, minDate, toMoment } from '@deriv/shared'; import ServerTime from '_common/base/server_time'; import { localize } from '@deriv/translations'; import { WS } from 'Services/ws-methods'; import { getUnitMap } from 'Stores/Modules/Portfolio/Helpers/details'; import { bui...
var http = require ('http'); var https = require ('https'); var async = require ('async'); var filth = require ('filth'); var likeness = require ('likeness'); /** @class sublayer:Action @root Wraps a reaction function with its html templates, input schemata, minimum authentication requirements and oth...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { div } from 'gl-matrix/src/gl-matrix/vec4'; import { Row, Col, Card, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, DatePicker, Modal, message, Badge...
import m from 'mithril'; import prop from 'mithril/stream'; import _ from 'underscore'; import h from '../h'; import contributionVM from '../vms/contribution-vm'; import rewardVM from '../vms/reward-vm'; import paymentVM from '../vms/payment-vm'; import projectVM from '../vms/project-vm'; import addressVM from '../vms/...
 class FileBrowser { constructor(config) { this.config = config; this.browseCache = {}; this.caching = config.caching == undefined ? true : config.caching; if (!config.browse) { if (!config.url) { console.error("[FS] no url given"); throw...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
var randomPointsPreComputed = ee.FeatureCollection([geometry1,geometry2,geometry3,geometry4]); //step0:numbers var globOptions = { bandSelect: ['green', 'swir1', 'swir2', 'nir', 'red'], bands2sr: ['B3', 'B11', 'B12', 'B8', 'B4'], bands2sr_TCI: ['TCI_G', 'B11', 'B12', 'B8', 'TCI_R'], bandaster: ['B01','B04','...
import React from "react"; import PropTypes from 'prop-types'; import {toast } from 'react-toastify'; import {withRouter} from 'react-router-dom'; import Button from '@material-ui/core/Button'; import Tooltip from '@material-ui/core/Tooltip'; import Typography from '@material-ui/core/Typography'; import Grid from '@mat...
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __extends = (this && this.__extends) || (function () { var extendStat...
// Copyright (c) 2020 <NAME>. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import pdfjsLib from "pdfjs-dist/build/pdf" import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry" import pdfMake from "pdfmake/build/pdfmake"; import pdfFonts from "p...
/** * * 农历 * */ function LunarCalendar(date) { this.lunarInfo = new Array( 0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2, 0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977, 0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _assign = require('babel-runtime/core-js/object/assign'); var _assign2 = _interopRequireDefault(_assign); var _promise = require('babel-runtime/core-js/promise'); var _promise2 = _interopRequireDefault(_...
import nipplejs from "nipplejs"; import Player from "../Class/Player"; import { getDifferenceBetweenDatesSeconds } from "../utils/utils"; import * as storage from "../utils/storage"; let platforms, cursors, papers, heresys = { countActive: () => 0 }, score = 0, gameOver = false, scoreText, recordScoreTe...
'use strict'; const axios = require('axios'); const wol = require('wake_on_lan'); const tcpp = require('tcp-ping'); const debug = require('debug')('BraviaPlatformApi'); const base64 = require('base-64'); const tcpping = opt => new Promise((resolve, reject) => tcpp.ping(opt, (err, data) => err ? reject(err) : resolve(...
var WebDFU = require("webdfu"); var DFU = WebDFU.DFU; var DFUse = WebDFU.DFUse; var Storage = require("./Storage"); var Recovery = require("./Recovery"); const AUTOCONNECT_DELAY = 1000; /** * Class handling communication with a Numworks * calculator using WebUSB and the WebDFU lib. * * @author Maxime "M4x1m3" F...
// Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // the ri...
//This function basically opens Notion, rewrites a few meta tags, and then opens the page //Heavily inspired from Fruition (https://github.com/stephenou/fruitionsite). I just modified Stephen Nou's script a little //This function basically opens Notion, rewrites a few meta tags, and then opens the page //Heavily inspi...
import React, { useContext, useState } from 'react' import { useRouter } from 'next/router' import styled from 'styled-components' import { Input } from '@material-ui/core' import { Search } from '@material-ui/icons' import clsx from 'clsx' import Link from 'next-translate/Link' import useTranslation from 'next-transla...
import '@babel/polyfill' import PromiEventLib from 'web3-core-promievent' import { promisify } from 'bluebird' import { state, updateState, filteredState, initializeConfig } from './helpers/state' import { handleEvent } from './helpers/events' import notify from './logic/user-initiated-notify' import { legac...
import { useRef, useState, useEffect } from 'react' import setA11yStatus from './setA11yStatus' import usePrevious from './usePrevious' import { noop, pickState, generateId, normalizeArrowKey, callAll, callAllEventHandlers, getNextWrappingIndex, isOrContainsNode, scrollIntoView, debounce, getA11y...
const React = require('react') const Component = React.Component const PropTypes = require('prop-types') const ReactDOM = require('react-dom') const defaultCheckedCmp = require('./high-order/defaultCheckedCmp') const documentClickCmp = require('./high-order/documentClickCmp') const dropDownCmp = require('./high-order/d...
'use strict' const EventEmitter = require('events').EventEmitter const logger = require('winston') const { createCommand } = require('./ac_common') const errors = require('./errors') const { parse } = require('./parsers') const reporter = require('./reporter') // Add a transport as fall back when no parent logger ha...