text
stringlengths
5.97k
41.2k
const cxConstants = require('../cxConstants.js'); const largeNetworkConstants = require('./largeNetworkConstants.js'); const cxUtil = require('../cxUtil.js'); function simpleDefaultPropertyConvert(targetStyleField, portablePropertValue) { const targetStyleEntry = {}; targetStyleEntry[targetStyleField] = porta...
// @TODO Investigate problem with Car class structure using Matter // import Car from './Car.js'; import Matter from './matter.js'; import Car from './matter-car.js'; import assets from './assets.js'; import levels from './levels.js'; import audio from './audio.js'; import gui from './gui.js'; import settings from ...
/* @flow */ "use strict"; var _Object$keys = require("babel-runtime/core-js/object/keys")["default"]; var _getIterator = require("babel-runtime/core-js/get-iterator")["default"]; var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"]; var _interopRequireWildcard = require(...
import React, { useEffect, useState } from 'react'; // import { useTable } from "react-table"; import { MemoryRouter as Router, Switch, Route, Link } from 'react-router-dom'; import { useTable, useFilters, useGlobalFilter, useAsyncDebounce, useRowSelect, } from 'react-table'; // A great library for fuzzy filterin...
import Token from "../Report/Token"; import React, { Component } from 'react' import axios from "axios"; import 'bootstrap/dist/css/bootstrap.min.css'; import Button from 'react-bootstrap/Button'; import ToggleButton from 'react-bootstrap/ToggleButton'; import { useState, useEffect, useContext } from "react"; import { ...
'use strict'; // TODO: stream.req ? let EventEmitter = require('events').EventEmitter; const { ERR_STREAM_PREMATURE_CLOSE, ERR_INVALID_CALLBACK, ERR_MISSING_ARGS } = require('internal/errors').codes; class Readable extends EventEmitter { readable = true; destroyed = false; readableFlowing =...
/** * Cross file utilities for working with arrays, * sorting and other fun stuff */ window.fbLoaded = { js: [], css: [], } window.fbEditors = { quill: {}, tinymce: {}, } /** * Remove null or undefined values * @param {Object} attrs {attrName: attrValue} * @return {Object} Object trimmed of null ...
function Rule(name, symbols, postprocess) { this.id = ++Rule.highestId; this.name = name; this.symbols = symbols; // a list of literal | regex class | nonterminal this.postprocess = postprocess; return this; } Rule.highestId = 0; Rule.prototype.toString = function (withCursorAt) { var symbolSequen...
/* SPDX-License-Identifier: Apache-2.0 */ const Fabric_Client = require('fabric-client'); const helper = require('../../common/helper'); const logger = helper.getLogger('FabricClient'); const ExplorerError = require('../../common/ExplorerError'); const BlockDecoder = require('fabric-client/lib/BlockDecoder'); con...
import { CATALOG } from '@shell/config/types'; import { CATALOG as CATALOG_ANNOTATIONS } from '@shell/config/labels-annotations'; import { addParams } from '@shell/utils/url'; import { allHash, allHashSettled } from '@shell/utils/promise'; import { clone } from '@shell/utils/object'; import { findBy, addObject, filterB...
/* eslint complexity: ["error", 15] */ 'use strict'; const Promise = require('bluebird'); const _ = require('lodash'); const StatusError = require('statuserror'); const env = require('gitter-web-env'); const stats = env.stats; const errorReporter = env.errorReporter; const logger = env.logger.get('chat'); const mon...
var $api_url = 'http://api.travel.markmedia.fi/api/item.filter/'; //var $api_url = 'http://travelbase.dev/app_dev.php/api/item.filter/'; //todo kosmos remove this $(document).ready(function() { //setField(); //pre fill destination field var $form = $("#travelbase-form"); $form.submit(function () { r...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GrpcEndpoint = void 0; /** @module services */ /** @hidden */ const _ = require('lodash'); /** @hidden */ const fs = require('fs'); const pip_services3_commons_node_1 = require("pip-services3-commons-node"); const pip_services3_commons...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var isBoolean = _interopDefault(require('lodash/isBoolean')); var isString = _interopDefault(require('lodash/isString')); var...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as actions from '../../actions'; import { connect } from 'react-redux'; import * as appReducer from '../../reducers/appData'; import * as reducer from '../../reducers/taskItemPage'; import * as Colors from '../../stylesheets/colors';...
//Global Constants const PROFILE_IMAGES_PATH = "/assets/images/profile/"; const UPLOAD_DIR = "uploads/"; const CHAT_TITLE = "Halfp"; // ----- function getCookie(name) { var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); if (match) return match[2]; } //Load the correct language if (get...
import harden from '@agoric/harden'; import Nat from '@agoric/nat'; import { HandledPromise } from '@agoric/eventual-send'; // Special property name that indicates an encoding that needs special // decoding. const QCLASS = '@qclass'; export { QCLASS }; // objects can only be passed in one of two/three forms: // 1: pa...
/* HyperFlow workflow engine ** Author: <NAME> (2013-2014) ** ** Common functions used by processes ** */ var async = require('async'), log4js = require('log4js'); // This function is invoked on arrival of an input signal. // 'obj.message' is a JSON object which should contain: // - wfId: workflow instance...
var resp = ""; var bday, astrosign, czodiac; var owmapikey = "8164cdd41308f159d85ff4ef8f3b5171"; // openweathermap.org var breezokey = "<KEY>"; //breezometer.com var curlat, curlon; // need it for UV, BreezoMeter, Pollen // Once document is loaded $(document).ready(function () { // Hide Data $("#content").hide();...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import shallowCompare from "react-addons-shallow-compare"; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor ...
import { getFieldConfig, getOperatorConfig, getFieldWidgetConfig, getFuncConfig } from "../utils/configUtils"; import { getFieldPath, getWidgetForFieldOp, formatFieldName, getFieldPartsConfigs } from "../utils/ruleUtils"; import omit from "lodash/omit"; import pick from "lodash/pick"; import {defaultValue, logger} ...
const bytes = require('bytes') const dft = require('diff-file-tree') const diff = require('diff') const anymatch = require('anymatch') const fs = require('fs') const path = require('path') const EventEmitter = require('events') const pda = require('dbrowser-dweb-api') const mkdirp = require('mkdirp') const {toAnymatchR...
'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...
// closure to avoid namespace collision (function(){ tinymce.create('tinymce.plugins.thundercodes', { createControl: function(n, cm) { switch (n) { case 'thundercodes_button': var c = cm.createSplitButton('thundercodes_button', { title : 'ThunderCodes',...
var istouch = $('#touch-detect').is(':visible'); var story = { frame: -1, $section: null, num: 0 }; var stage1Arr = { "mode": 'star', "particles": { "number": { "value": 80, "density": { "enable": false, "value_area": 100 } }, "shape": { ...
/** Barrage Related 1. Barrage * Assumptions: Fixed Font Size:15; Limited Length: 1~32; Fixed Life time: 5000 ms; * Structures: Content: text of Barrage TimeStart: When it appears Location: For now, only implement one type: Scrolling from Right to Left. fixed x, random y Animate: ...
var apiKey = "f406869994fe9cee8d7422cf86700d9f" var denver = "Denver"; var countrySearch = []; checkLocal(); function renderSearch() { $(".state-list").empty(); for (var i = 0; i < countrySearch.length; i++) { var listItem = countrySearch[i]; var listEl = $(...
import React, { Component } from 'react'; import _ from 'lodash'; import { Grid, Label, Message } from 'semantic-ui-react'; import { TimeSeries, TimeRange, Stream, } from 'pondjs'; import uuid from 'uuid'; import neo4j from '../../api/driver'; import palette from '../../api/palette'; import datautil from '....
import React, { Component } from 'react' import _ from 'lodash' import PropTypes from 'prop-types' import Immutable from 'seamless-immutable' import { Container, Image, Button, Menu, Dropdown, Grid, Icon, Modal, Header, Input, Responsive, Segment, GridColumn } from 'semantic-ui-react' import {...
/* Global variables and objects */ // Audio stuff var audio_manager = new AudioManager(); var MONO_MODE = true; // Sounds and content var default_query = "Snare"; var sounds = []; // var extra_descriptors = undefined; // var extra_descriptors = "ac_analysis.ac_hardness,ac_depth,ac_brightness,ac_roughness,ac_warmth,ac...
/** * 搜索框加入 */ function search_layouts() { require(['gitbook', 'jQuery'], function (gitbook, $) { var init = function () { $('<div id="book-search-input" role="search"><input type="text" placeholder="输入并搜索" /></div>').prependTo(".book-summary"); $(".markdown-section").wrap('<div cl...
import React, { Component } from "react"; import Button from "../Base/FormControl/Button"; import Input from "../Base/FormControl/FormControlCol3/Input"; import { Translation } from "react-i18next"; import "react-dual-listbox/lib/react-dual-listbox.css"; import AgGrid from "../Base/FormControl/AgGrid"; import "react-du...
// JavaScript Document var msg=new Array(); //msg[0]="<img src='"+BASHPATH+"public/images/spinner-small.gif' alt='Loading'>"; // Validation for Sign Up Form -- Seeker msg['FNAME_VALIDATE']="Por favor digite o primeiro nome"; msg['LNAME_VALIDATE']="Por favor digite o sobrenome"; msg['EMAIL_VALIDATE']="Por favor, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
var __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) { try { step(gene...
const csv = require('csvjson'); const cp = require('child_process'); const fs = require('fs'); const knex = require('knex'); const path = require('path'); const util = require('util'); const _ = require('./i18n').text; const NULL_MARKER = '__null__'; function bulk(xs, size) { let bulks = []; for (let i = 0; i < xs....
/** * Tribute.js * Native ES6 JavaScript @mention Plugin * Improved and adapted for use in the Convenient Discussions script * * @license * The MIT License (MIT) * * Copyright (c) 2020 Jack who built the house * Copyright (c) 2017-2020 ZURB, Inc. * Copyright (c) 2014 <NAME> * Copyright (c) 2012 <NAME> * * ...
var http = require("http"), url = require("url"), formidable = require('formidable'), path = require("path"), util = require('util'), fs = require("fs-extra"); port = process.argv[2] || 8080; var io = require('socket.io')(); var mysql = require('mysql'); var ObjectTable = []; var MapTable = []; var UserTable = []; var ...
import DjViChunk from './chunks/DjViChunk'; import DjVuPage from './DjVuPage'; import DIRMChunk from './chunks/DirmChunk'; import NAVMChunk from './chunks/NavmChunk'; import DjVuWriter from './DjVuWriter'; import DjVu from './DjVu'; import ThumChunk from './chunks/ThumChunk'; import ByteStream from './ByteStream'; impo...
// MARK: Global Variables let contactsArr = [] let filterby = 'all' let isEditing = false let timeout = null let resizeTimer; // MARK: Generate Test Data data.forEach(element => { const name = new Name(element['firstName'], element['lastName']) const number = element['phoneNumber'].replace(/[-]/gi, '') co...
// created by jdegen on 01/13/2013 var nTargets = 4;//shuffle([4,16])[0]; // experimental variable 1 var nTargetWord = "four"; if (nTargets == 16) { nTargetWord = "sixteen"; } var size = [nTargets]; var qud = "is-all";//shuffle(["is-all","is-any"])[0]; // experimental variable 2 var utterances = shuffle(["some","all",...
const fs = require('fs'); const isString = require('lodash.isstring'); const path = require('path'); const pMap = require('p-map'); const pRetry = require('p-retry'); const pump = require('pump'); const url = require('url'); const { generateChecksumFromStream, validateChecksumFromStream } = require('@cumulus/check...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import uuid from 'uuid'; import _ from 'lodash'; import moment from 'moment'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/adv...
// 'use strict' var net = require('net') var EventEmitter = require('events'); var tpidefs = require('./tpi.js') var ciddefs = require('./cid.js') var utilfunc = require('./helper.js'); var actual; var activezones = []; var activeZoneTimeOut = undefined; class EnvisaLink extends EventEmitter { constructor(log, co...
import React, { useState } from "react"; import styled from "styled-components"; import "./forms.css"; import "./nyc.scss"; import firebase from "../../../firebase"; import { StyledH1 } from "../../../styles/Text"; import { Alert, Button } from "react-bootstrap"; const NewYorkCity1DayPackageForm = props => { const ...
//公用组件 const Commons = { /** * 根据formId将from里的所有元素转成对象, * disable的元素不能读取,不可编辑的话用readonly * @param form */ formData: function (selector, withoutTemp) { var formValues = $(selector).serializeArray(); var paramObject = {}; for (var i = 0, len = formValues.length; i < len...
// does three things - tunes basals, ISF, and CSF function tuneAllTheThings (inputs) { var previousAutotune = inputs.previousAutotune; //console.error(previousAutotune); var pumpProfile = inputs.pumpProfile; var pumpBasalProfile = pumpProfile.basalprofile; //console.error(pumpBasalProfile); va...
// The driver for mpu6050 chip, it is a temperature and humidity sensor. /* 添加如下配置到app.json中: "mpu6050": { "type": "I2C", "port": 1, "addrWidth": 7, "freq": 100000, "mode": "master", "devAddr": 105 } */ // Require libjs/lib/i2c.js ...
import React from "react"; import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform, Alert, AsyncStorage, } from "react-native"; import { Block, Text, theme } from "galio-framework"; import { Button } from "../components"; import { Images, argonTheme } from "../constants"; import {...
// vendor import React, { Component } from 'react'; import classNames from 'classnames'; import { setContainerMenuWarningMessage } from 'JS/redux/actions/labbook/environment/environment'; import { boundMethod } from 'autobind-decorator'; import shallowCompare from 'react-addons-shallow-compare'; // store import store f...
'use strict'; importScripts('lib/mp4box.all.js'); let VVdeC; let decInstance; let frameHandle; let requestedFrames = 0; let continueDecoding; let exitDecoder = false; const planeAllocations = []; // cache for locally allocated planes. function sleep(milliseconds) { return new Promise(resolve => setTimeout(resol...
/**************************************************************************** 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 Permission is hereby granted, free ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* * By <NAME> v 1.0.0 @ 2021/10/26 Live Data Display for Districts in Malaysia * (For Research Purposes only. Free for reuse with explicit consent from the author and a formal acknowledgement is stated in the header) * Purpose: Area Display Tool * * Credits: * 1. Google Map API documentation https://developers.googl...
var logger = require("../utils/logger.js"); const excel = require('exceljs'); /** * Sub-function to autofitColums function * @param {*} ws * @param {*} col1 * @param {*} col2 * @param {*} cb */ function eachColumnInRange(ws, col1, col2, cb){ for(let c = col1; c <= col2; c++){ let col = ws.getCo...
var child_process = require('child_process'); var JsonUtil = require("../../www/js/shared/JsonUtil"); var JsonError = require("../../www/js/shared/JsonError"); var PonokoSvg = require("../../www/js/shared/PonokoSvg"); var DeltaMesh = require("../../www/js/shared/DeltaMesh"); var XYZ = require("../../www/js/shared/XYZ")...
var furthestSeen = 0; var worker_id = 0; var refreshh = 0; var attn = 0; var page = 0; var pre_attn = 0; var access_token = ""; var access_token_secret = ""; var slideIndex = 1; var retweet_map = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; var like_map = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; var seen_map = [0,0,0,0...
var __extends = (this && this.__extends) || (function () { var 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] = b[p]; }; return function (d, b) { ...
'use strict'; import Bounds from './bounds.js'; import Node from './node.js'; const DEFAULT_TEXT_FONT_SIZE = 14; const TEXT_FONT_FAMILY = 'sans-serif'; const NODE_MARGIN_WIDTH = 25; const NODE_MARGIN_HEIGHT = 15; const NODE_LINE_MARGIN = 5; const CENTER_NODE_MARGIN = 5; const LINE_COLORS = ['#0000AA', '#00AA00', '#00...
let userId; let userName; let currentUser; let newMember = null; let signedOut = null; let dropdownItems = ["Favorites", "Logout"]; $(document).ready(function() { document.getElementById("user-sign-in").style.display = "none"; let ms = document.getElementById("main-section"); ms.classList.remove("blur-eff...
if (window == top) top.location.href = "../"; var pWin = window.parent.parent; document.write('<script type="text/javascript" src="' + pWin.url + 'Scripts/jquery/jquery-min.js\"></script>'); function $p() { return document.getElementById ? document.getElementById(arguments[0]) : eval(arguments[0]); } function trim(s) ...
/* eslint-env browser */ /* based on inertial-turntable-camera@2.0.4 by <NAME> */ 'use strict' import transformMat4 from 'gl-vec3/transformMat4' import vec3RotateY from 'gl-vec3/rotateY' import vec3RotateX from 'gl-vec3/rotateX' import vec3Equals from 'gl-vec3/equals' import vec3Add from 'gl-vec3/add' import vec3Scale...
import React, { useEffect, useState } from "react"; import { Col, Row, Input } from "reactstrap"; import styled from "styled-components"; import { toastr } from "react-redux-toastr"; import { Formik, Field } from "formik"; import Select from "react-select"; import MultiSelect from "../../../components/Multiselect"; im...
function Global_Bogart( $settings ) { this.construct( $settings ); } Global_Bogart.prototype = { construct : function( $settings ) { // Initialization ... if( $settings ) { this.init_settings( $settings ); } if( this.use_loader ) { this.init_transparent_overlay(); } this.additional_functions(); }...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var jsonApiNormalize = _interopDefault(require('json-api-normalizer')); var graphqlNormalizr = require('graphql-normalizr'); ...
chrome.extension.sendMessage({}, function(response) { // extend alma var readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(readyStateCheckInterval); chrome.storage.sync.get(function (obj) { almaApplicationsInit(); setInterval(almaApplicationsIn...
/* * (C) Copyright HCL Technologies Ltd. 2018, 2019 * (C) Copyright IBM Corp. 2012, 2016 All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
function handleDragOver(evt) { evt.stopPropagation(); evt.preventDefault(); evt.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy. } /** File upload event */ function handleFileSelect(evt) { evt.stopPropagation(); evt.preventDefault(); var files = evt.dataTransfer.files; // FileLis...
// 趣味リスト const favorites = { "hobby.1_2": "アブノーマル", "hobby.1_3": "カワイイ", "hobby.1_4": "トンデモ", "hobby.1_5": "マニア", "hobby.1_6": "ヲタク", "hobby.2_1": "音楽", "hobby.2_3": "トレンド", "hobby.2_4": "読書", "hobby.2_5": "パフォーマンス", "hobby.2_6": "美術", "hobby.3_1": "アラサガシ", "hobby.3_2": "おせっかい", ...
/* This code was written for a UCL masters project in 2019. */ // Set global variables var dims = { h: window.innerHeight, w: window.innerWidth } var activeCardNum = null, firstMove = null, numLoadedFiles = 0; // Instantiate mapbox map: mapboxgl.accessToken = '<KEY>'; var map = new mapboxgl.Map({ contai...
import _times from "lodash/times"; import _map from "lodash/map"; import _invoke from "lodash/invoke"; import _find from "lodash/find"; import { datepickerCalendarBehavior } from '@fluentui/accessibility'; import { DateRangeType, DayOfWeek, DAYS_IN_WEEK, FirstWeekOfYear, getDayGrid, DEFAULT_CALENDAR_STRINGS, compareDat...
var slideIntervalId; var animationStop = false; function preloadAni() { 'use strict'; var Box = function (x, y, w, h, s) { this.x = x; this.y = y; this.w = w; this.h = h; this.s = s; this.a = Math.random() * Math.PI * 2; this.hue = Math.random() * 360; ...
import * as React from 'react'; import Header from './header.component'; import Duration from './duration.component'; import moment from 'moment'; import {duration} from 'moment/moment'; import ProjectList from './project-list.component'; import TagsList from './tags-list.component'; import * as ReactDOM from 'react-do...
/* globals ohm */ /* Ohm grammar for SOM (som-st.github.io), a minimal Smalltalk for teaching and research. Based on https://github.com/SOM-st/SOM/blob/190fd72d5509bbfd5c190d3ed091920565cf79ae/specification/SOM.g4 with some inspiration from https://github.com/moosetechnology/PetitParser/blob/development/src/Pet...
const EventEmitter = require('events').EventEmitter; const SmartBuffer = require('smart-buffer').SmartBuffer; const winston = require('winston'); const S101_BOF = 0xFE; const S101_EOF = 0xFF; const S101_CE = 0xFD; const S101_XOR = 0x20; const S101_INV = 0xF8; const SLOT = 0x00; const MSG_EMBER = 0x0E; const CMD_EM...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _objectWithoutPropertiesLoose2 = _interopRequir...
import React, {Component} from 'react'; import {Checkbox} from 'tinper-bee'; import ApproveListItem from './ApproveListItem'; import './index.less'; import ajax from '../../../api/ajax'; // import { toast } from 'utils/utils.js'; import nodataPic from '../../../static/images/nodata.png'; import NCBreadcrumb from '../....
/** * There are many rendering methods and glsl code * based on project finished by @mourner https://github.com/mourner * and his project is here https://github.com/mapbox/webgl-wind. */ import * as maptalks from 'maptalks'; import { createREGL, mat4, reshader } from '@maptalks/gl'; import drawVert from './glsl/dr...
import { Elem } from '../utils/elem.js' import { contextMenu } from '../utils/context-menu.js' import { Component, TextComponent } from './component.js' import { BlockType, ArgumentType, NullCategory } from './constants.js' import { Input, StringInput, NumberInput, AngleInput, BooleanInput, renderOptions a...
import State from "./State.js" import LinkingService from "./LinkingService.js"; const LINK_BUTTON_RADIUS = 5; const LINK_BUTTON_OFFSET = 10; //This is a combination of label/color used for coloring the boxes. Feel free to change this, it will modify the colors everywhere. const boxColors = { brand: "rgb(170,0,0)...
import React, { Fragment, useEffect, useRef, useState } from "react"; import { RecoilRoot, useRecoilState, useRecoilValue, useSetRecoilState, } from "recoil"; import { aActive, aSize, aGridSize, sViewports, aCols, aRows, aMode, aBarHeight, aSidebarWidth, aCameras, afCamera, aImages, sA...
// the local database let graphs = { nodes: [ ], edges: [ ] } let idCount = 0; let linkCount = 0; let suggestedTitles; let suggestedLinks; // responsible for creating the graph and its components const drawGraph = () => { let nodeSideLength = 8; let nodeWidth = nodeSideLength; // square le...
import Immutable from 'immutable'; // import * as ActionType from 'actions/applications'; const features = [ { id: 1, title: 'eligendi', description: 'Debitis et saepe eum sint dolorem delectus.', image_url: 'http://lorempixel.com/640/480/?34574', level: 1, }, { id: 2, title: 'ipsum', description: 'S...
const server = require('server'); const { post } = server.router; const { error } = server.router; const { status } = server.reply; const fs = require('fs'); const { chromium } = require('playwright'); const path = require('path'); const os = require('os'); const { denon } = require('./denon/main') class Chunk { ...
/** * 1. Get the status of the session. If closed, end the session. If failed, throw an error for further investigation. * 2. Remove call session data from both participant users. * 3. Fetch call logs for session * 4. Sum up talk duration * 5. Use operator hourlyRate to quantify call cost -- include service fee *...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import DatePicker from 'react-datepicker'; import querystring from 'querystring'; import OutsideClick from 'components/OutsideClick'; import { Button, Dropdown, DropdownButton, Form, InputGroup } from 'react-bootstrap'; import { LoaderIco...
import React from 'react' import ReactDOM from 'react-dom' import L, { Control } from 'leaflet' import { MapControl, withLeaflet } from 'react-leaflet' import { withStyles, IconButton, MuiThemeProvider } from '@material-ui/core'; import teal from '@material-ui/core/colors/teal' import { MyLocation } from 'variables/ico...
mapboxgl.accessToken = '<KEY>'; var map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/newamerica/cjpn4e4df2gak2rp7nef3am21', bounds: new mapboxgl.LngLatBounds( new mapboxgl.LngLat(-64.13512973018138, 55.068543614519314), new mapboxgl.LngLat(-148.30882882584655, 18.958132980357163) ) })...
const countries = require('iso-3166-1-codes'); const byAlpha2 = countries.byAlpha2(); var total_countries = 0; var global_confirmed = 0; var global_deaths = 0; var confirmedData1, deathsData = []; Date.prototype.addDays = function (days) { var date = new Date(this.valueOf()); date.setDate(date.getDate() + days)...
const Stream = require('../../utils/stream') const VIDEO_PROPERTIES = require('../../constants/video-properties.js') const trackDecodeInfo = require('../track-decode-info') const frameUtils = require('../frame-utils') const mp4 = require('../mp4-generator.js') /** * Compare two arrays (even typed) for same-ness */ v...
import invariant from 'fbjs/lib/invariant'; import emptyFunction from 'fbjs/lib/emptyFunction'; import flattenChildren from 'react/lib/flattenChildren'; import ReactCurrentOwner from 'react/lib/ReactCurrentOwner'; import ReactElement from 'react/lib/ReactElement'; import ReactInstrumentation from 'react-dom/lib/React...
import React, { Component } from 'react'; import { View, Text, StyleSheet, Image, Animated, TouchableWithoutFeedback } from 'react-native'; import { createStackNavigator, createAppContainer } from 'react-navigation'; import { MapView, Location } from 'expo'; import { Container, Header, Button, Icon, Content, Drawer } ...
/* * Copyright 2016 Mirantis, 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 ...
/*Herein lies all the editor actions*/ import axios from 'axios'; import ace from 'brace'; import { Base64 } from 'js-base64'; import _ from 'lodash'; import React from 'react'; import { toastr } from 'react-redux-toastr'; import { hideLoading } from '../actions/loader'; import PromptMessage, { promptMessageLabel } fro...
var manageVisitorTable; $(document).ready(function() { //top bar active $("#navVisitors").addClass('active'); $("#visitDate").datepicker(); $("#edit_visitDate").datepicker(); //manage manufacture table manageVisitorTable = $("#manageVisitorTable").DataTable({ 'ajax': 'php_action/adminFetchVisitors...
/** * @module **/ window.views = {}; /** * A context * @class * @constructor */ var Context = function () { this.currentApp = window.location.href.split(/\//g)[5]; console.log("Current app", this.currentApp); this.currentIndex = 0; var self = this; window.onmessage = function (event) { ...
const db = require("../models"); const { Op } = require("sequelize"); const globales = require("../config/global.config"); const mensajesValidacion = require("../config/validate.config"); const configsvc = require("../config/service.config.js"); const request = require('request'); const Plantillaspersonal = db.plantill...
const a = [ { type: d3.annotationCalloutCircle, note: { title: "Pittsburgh" }, code: "42003", dx: -10, dy: -80 }, { type: d3.annotationCalloutCircle, note: { title: "New York" }, code: "36081", dx: 80, dy: 50 }, { type: d3.annotationCalloutCircl...