text
stringlengths
3.22k
29.5k
const util = require('util') const ethUtil = require('ethereumjs-util') const EventEmitter = require('events').EventEmitter const ECIES = require('./ecies.js') const rlp = require('rlp') const Stream = require('./stream.js') const prefix = { HELLO: 0x80, DISCONNECT: 1, PING: 2, PONG: 3 } /** * The peer repre...
/* This module defines all the JavaScript needed to manage the * auto-completion of name of products. * * ________________________ * Author: <NAME> */ function refresh_form( ) { // photo $('#product_image').css("display", "none" ); // category $('#category').html(''); // location $('#location').h...
/* eslint-disable no-console */ // XXX: remove console.log later // npm view [pkg [pkg ...]] const chalk = require('chalk') const columns = require('cli-columns') const fs = require('fs') const jsonParse = require('json-parse-even-better-errors') const log = require('../utils/log-shim.js') const npa = require('npm-pa...
// dependencies // native Node.js modules const { spawnSync, spawn } = require("child_process"); const fs = require("fs"); // external functions const fnLoadConfig = require("/startup/functions/fnLoadConfig.js"); const fnValidateConfig = require("/startup/functions/fnValidateConfig.js"); const fnCreateGuest = requ...
import React, { useLayoutEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import bbox from '@turf/bbox'; import mapboxgl from 'mapbox-gl'; import 'mapbox-gl/dist/mapbox-gl.css'; import MapboxLanguage from '@mapbox/mapbox-gl-language'; import { FormattedMessage } from 'react-intl'; import mes...
const { join } = require("path"); const { isEmpty, path } = require("ramda"); const { Graph, alg } = require("graphlib"); const traverse = require("traverse"); const { utils } = require("@serverless/core"); const { trackComponent } = require("@webiny/tracking"); const { red } = require("chalk"); const debug = require("...
/** * xingxiaodong 20190227 * 移动业务计费收入分析专题echarts图组件 * */ import React, { PureComponent, Fragment } from 'react'; import echarts from "echarts"; import styles from './analysisChart.less'; class AnalysisChart extends PureComponent{ constructor(props){ super(props) this.chartDom=React.createRef(); ...
/* This program will check IPFS gateways status using 3 methods 1) By asking for a script through a <script src=""> tag, which when loaded, it executes some code 2) By asking data through fetch requests to verify gateway's CORS configuration 3) By asking data through img requests to verify subdomain configuratio...
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, useIntl } from 'react-intl'; import camelCase from 'lodash/camelCase'; import compact from 'lodash/compact'; import get from 'lodash/get'; import isNil from 'lodash/isNil'; import some from 'lodash/some'; import uniq from 'lodash/...
console.log("app.js connected"); const game = document.querySelector("#game"); const ctx = game.getContext("2d"); const next = document.querySelector("#next"); const ctxN = next.getContext("2d"); const colors = [ "#aaaaaa", "#00ffff", // 1 "#ffff00", // 2 "#800080", // 3 "#008000", // 4 "#ff0000", // 5 ...
import {useRef, useState} from 'react'; import {Animated, Easing, I18nManager} from 'react-native'; import moment from 'moment-jalaali'; const m = moment(); const jalaaliConfigs = { dayNames: ['شنبه', 'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه'], dayNamesShort: ['ش', 'ی', 'د', 'س', 'چ', 'پ', 'ج'],...
/* eslint-env mocha */ const chai = require('chai') chai.use(require('dirty-chai')) const expect = chai.expect const tymly = require('@wmfs/tymly') const path = require('path') const Auth0GroupMapping = require('../lib/components/services/auth0-group-mapping').serviceClass const userData = { name: '<NAME>', fami...
// @ts-nocheck 'use babel'; import $ from 'jquery'; import async from 'async'; import {DressElement} from '../../../utils/dress-element'; import {appManager} from '../../../app-manager'; import {projectManager} from '../../../system/project-manager'; const OPTION_PLACEHOLDER = 'Choose File...', BEHAVIOURS_TEMPLATE_P...
/** * @file Defines the BehavePlus Explorer Weighted Fire sub-tree. * @copyright Systems for Environmental Management 2019 * @author <NAME> * @version 0.1.0 */ import DagBranch from './DagBranch'; import DagLeafQuantity from './DagLeafQuantity'; import BpxLibCompass from './BpxLibCompass'; import BpxLibMath from...
import React, { Component } from 'react' import { connect } from 'react-redux' import { denormalize } from 'normalizr' import _get from 'lodash/get' import _omit from 'lodash/omit' import _isFinite from 'lodash/isFinite' import _isString from 'lodash/isString' import _isPlainObject from 'lodash/isPlainObject' import { ...
/* * miniPaint - https://github.com/viliusle/miniPaint * author: <NAME>. */ import config from './../../config.js'; import Base_layers_class from './../base-layers.js'; var instance = null; var template = ` <div class="canvas_preview_wrapper"> <div class="transparent-grid" id="canvas_preview_background"></div>...
/** * Created by same on 2016/6/28. * File description:公共头部 */ 'use strict'; import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router'; import {load as loadAuth} from 'redux/modules/auth'; import {imageUrl} from '../../api/common/Global'; const styles ...
import React, { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useCssVariables } from 'hooks/useCssVariables'; import { GraphLegend } from './GraphLegend/GraphLegend'; function getTextBoundingBox(ctx, text, padding) { const labelWidth = ctx.measureText(text).widt...
var debug_level = 2; class Atto { constructor(configs) { debug("Atto.constructor", 1); this.plugins = configs.plugins || []; this.routes = configs.routes || []; this.default_content = configs.default_content || []; this.initial_content = configs.initial_content || {}; ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _draftJsCheckableListItem = require('draft-js-checkable-list-item'); var _immutable = require('immutable'); var _adjustBlockDepth = require('./modifiers/a...
/* eslint react/prop-types: [1, {ignore: [view, mouse, dragging, hovering, options, update, bodies, screen, viewport, selected]}]*/ import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import Radium from 'radium' import AnimationFrame from 'animation...
/* */ let bar_layout = 'grouped'; function draw_SGB() { let width = _width, height = _height * 1.; let last_mode = cur_mode; let last_bar_layout = $("input:radio:checked").val(); let svg = d3.select('.stack-grouped-bar') .append('svg') .attr('width', width) .attr('h...
import React, { useState } from "react"; import Carousel from 'react-multi-carousel'; import 'react-multi-carousel/lib/styles.css'; import Layout from "../../layout/layout"; import ImgRoadMap from '../../assets/images/roadmap.png' import ImgRoadVerticalMap from '../../assets/images/roadmap_vertical.png' import ImgGraff...
/* eslint-env node */ const libhoney = require("libhoney"), os = require("os"), process = require("process"), path = require("path"), url = require("url"), crypto = require("crypto"), tracker = require("../async_tracker"), instrumentation = require("../instrumentation"), deterministicSampler = require("...
/** closest **/ function closest (el, className) { while (el && (!el.classList || !el.classList.contains(className))) { el = el.parentNode; } return el; } /** indexOfNode **/ function indexOfNode (el, debug) { var index = 0; el = el.previousSibling; while (el) { if (el.nodeType != Node.TEXT_NODE ...
/* * Gain access to the Prefences service. */ var prefManager = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); /* * Called when the preference window loads. Populates the rules List * based on the "extensions.urlswap.rules"...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _isRegExp2 = _interopRequireDefault(require("lodash/isRegExp")); var _isString2 = _interopRequireDefault(require("lodash/isString")); var _includes2 = _interopRequireDefault(require("lodash/includes")); var...
import React from 'react'; import { Link } from 'react-router-dom'; import Slider from 'react-slick'; import NextArrow from './NextArrow'; import PrevArrow from './PrevArrow'; import './Slider.less'; const sliderObj = [ { "image": "https://cdn.steemitimages.com/DQmUGzfCsVheJZxvCaKJW5zi1QnXYt8T38zKfYq1AMyN7...
import cursor from './cursor'; import {data, change, insert, remove} from './data'; import {initializeEventConfig, events} from './events'; import hover from './hover'; import finalize from './finalize'; import initialize from './initialize'; import renderToImageURL from './render-to-image-url'; import renderToCanvas f...
import React, {Component} from "react"; import {Text, TouchableOpacity, View, Image, TextInput, FlatList, InteractionManager} from "react-native"; import Icon from "react-native-vector-icons/Feather"; import * as Constant from "../../style/constant"; import styles, {navBarHeight, screenWidth, statusHeight} from "../../...
/* * Copyright 2014 MarkLogic * * 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...
/* * Diaspora * @author LoeiFy * @url http://lorem.in */ var disqus_config = function () { this.page.url = $('#page_url').text() this.page.identifier = $('#page_id').text() }; var go_back = function() { if ($('#preview').length == 0) { window.location.href = "/"; } else { history.ba...
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Initialization var undoStack = []; // Finds folder at the specified level of the tree. function findFolder(folderName, level, fn){ chrome.bookmar...
var LABEL_WIDTH = 245, VTX_DIST = 40, // Distance between centers of two consecutive vertices VTX_RAD = 4, LABEL_OFFSET = 10; // Distance between label and center of vertex // Translate every vertex (hence entire graphic) by this much var VTX_TRANS = {x: 0, y: 20}; var canvas = d3.select("#canvas"); var sidePanel ...
//importing required packages installed by npm const _ = require('lodash'); const express = require('express'); //making router from express to make this route available to main index.js file const router = express.Router(); //requiring mngoose and pulling out ObjectId from it for validations const ObjectId = require...
/************************************************************************************************************* * AG Grid Logic *************************************************************************************************************/ var columnDefs = [ { headerName: 'Symbol', field: 'Symbol' }, { headerNa...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; 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 === Symbol && obj ...
/* * test/basic.js: tests jsprim functions */ var mod_assert = require('assert'); var jsprim = require('../lib/jsprim'); /* deepCopy */ var obj = { 'family': 'simpson', 'children': [ 'bart', 'lisa', 'maggie', 'hugo' ], 'home': true, 'income': undefined, 'dignity': null, 'nhomes': 1 }; var c...
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import * as R from 'ramda'; import withStyles from '@mui/styles/withStyles'; import Drawer from '@mui/material/Drawer'; import FormControl from '@mui/material/FormControl'; import FormGroup from '@mui/material/FormGroup'; import FormCont...
/* eslint prefer-arrow-callback: 0 */ /** * An util to make the request out * */ const request = require('request'); const fs = require('fs'); const WebSocket = require('ws'); const HttpsProxyAgent = require('https-proxy-agent'); const stream = require('stream'); const PROXY_HOST = 'http://localhost:8001'; const SO...
function SK_headerSearch(e) { search_wrapper = $(".dropdown-search-container"), 0 == e.length ? search_wrapper.hide() : (search_wrapper.show(), SK_progressIconLoader(search_wrapper.find(".search-header")), $.get(SK_source(), { t: "search", a: "header", q: e }, function(e) { 200 =...
/* Copyright 2017 <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 to in writing, software distribu...
import React, {Component, PropTypes} from 'react'; import * as clusterActions from 'redux/modules/clusters/clusters'; import {getClusterServices, deleteService, scaleService} from 'redux/modules/services/services'; import {connect} from 'react-redux'; import {DockTable, Chain, LoadingDialog, StatisticsPanel, ActionMenu...
// import * as mars3d from "mars3d" var map // mars3d.Map三维地图对象 var graphicLayer // 矢量图层对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) var mapOptions = { scene: { center: { lat: 30.286465, lng: 117.620524, alt: 510892, heading: 358, pitch: -50 } }, layers: [ { id: 1987, type: "geojson", n...
const path = require('path'); const { Transform } = require("stream"); const fetch = require('node-fetch'); const Jsonfile = require("jsonfile"); const { Logger } = require('../../loggers'); const { getValidator } = require('@code.gov/code-gov-validator'); const { Formatter } = require('../../formatter'); const Reporte...
import React, { Component } from 'react'; import {Grid, Row, Col, Panel, Image, Alert} from 'react-bootstrap'; import {Button, ButtonGroup, ButtonToolbar} from 'react-bootstrap'; import {InputGroup, FormControl, Radio} from 'react-bootstrap'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import {CoinHeads, Co...
import style from "./Line.css"; import * as Defaults from "./LineDefaults"; import Observable from "../utils/Observable"; import * as d3 from "d3"; var gradientID = 0; /** * @class * Line renderer class * @param {Object} options */ export default class TooltipRenderer { constructor(options) { /** * @priv...
function _extends() { _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; }; return _extends.apply(this, arguments); } f...
var updatesData; Template.layout.events({ 'click .updates': function(){ Session.set('updates', !Session.get('updates')); var obj = getUpdatesOffset($('.updates')[0]), updatesDiv = $('.updates-div'); if(updatesDiv.is(":visible")){ updatesDiv.hide(); } else { ...
import { getApodImageForDate, getApodImagesForDateRange, getLatestEpicImages, getRoverManifest, getRoverImages, } from "./api-calls.js"; import { store } from "./store.js"; import { updateStore } from "./client.js"; /** * @description Returns a string representing a date in format YYYY-MM-DD * @param {Date...
var EventEmitter = require('eventemitter2').EventEmitter2; var util = require('util'); var nssocket = require('nssocket'); exports.Hook = Hook; function Hook(options) { if (!options) options = {}; // some options, name conversion close to hook.io this.name = this.name || options.name || options['hook-name'] ...
var states = { }; var mystates = []; var layers = [ ] var started= false; var elapsed = 0; var timer = null; // leaflet map options var options = { zoomControl: false, dragging: true, touchZoom: false, scollWheelZoom: false, doubleClickZoom: false, boxZoom: false } // land styling var greenStyle = { c...
import React, { Component } from 'react'; import { Button } from '../../components/Button'; import { ButtonGroup } from '../../components/ButtonGroup'; import { Form, FormField, TextInput, SelectInput, Validations, } from '../../components/Form'; import Screen from '../../components/Screen'; import { createClassN...
/// Import dependencies // Electron components const {app} = require('electron').remote // Node dependencies const path = require('path') const fs = require('fs') const json2csv = require('json2csv') const _ = require('lodash') const sanitize = require('sanitize-filename') // Local dependencies const Question = requi...
const { getLocalTimestamp } = mplaynet; const STRENGTH = 40; const WORLD_SCALE = 30; // Box2D works with meters. We need to convert meters to pixels. let's say 30 pixels = 1 meter. class MainScene extends MultiplayerScene { constructor(peers, mesh, timeToStart) { super("mainScene", peers, mesh, timeToSt...
'use strict'; const path = require('path'); const mergeTrees = require('broccoli-merge-trees'); const Funnel = require('broccoli-funnel'); const BroccoliDebug = require('broccoli-debug'); const SilentError = require('silent-error'); // From ember-cli const VersionChecker = require('ember-cli-version-checker'); const r...
import { formatters } from 'web3-core-helpers'; import { ChainIdMethod, GetGasPriceMethod, GetTransactionCountMethod, AbstractMethodFactory } from 'web3-core-method'; import isFunction from 'lodash/isFunction'; import RLP from 'eth-lib/lib/rlp'; import Bytes from 'eth-lib/lib/bytes'; import { AbstractWeb3Module } from ...
import Moddle from '../moddle'; import ELK from 'elkjs/lib/elk.bundled.js'; // Rename this to debug api client or something const websocket_url = 'ws://localhost:8071/debug'; export default function WebsocketConnector(eventBus) { // listen to dblclick on non-root elements eventBus.on('element.dblclick', event => ...
import moment from 'moment' /** * Validates a field according to its type. * @returns empty array if no errors, or array with text describing each issue */ function validate(value, field) { switch (field.type) { case 'quantitative': return validateQuantitative(value, field) case 'qualitative': ...
var ERROR_NO_ETH = 101; var ERROR_UNSUPPORTED_CHAIN = 102; var ERROR_EXECUTION = 103; var ERROR_LOGIN_PENDING = 105; var CONTRACTS_CONFIG_URL = 'contracts/config.json'; var W = { walletAddress: null, config: null, contracts: null }; var setupEth = function (W, f) { W.contracts = {}; for (var k ...
const lineByLine = require("line-by-line"); const parseHelpTasks = require("../../../common/sub-parse/parse-help-tasks"); const relativeHelpTasks = require("../../../common/sub-parse/relative-help-tasks"); const parseObjects = require("../../../common/sub-parse/parse-objects"); const streamExceptions = require("../../....
const fs = require('fs'); const util = require('util'); const request = require('request'); const path = require("path"); const csv = require('fast-csv'); const commander = require('commander'); const dbAdapter = require('./database-adapter'); const writeFile = util.promisify(fs.writeFile); const postalCodeRegex = /(\...
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { graphql, compose } from 'react-apollo'; import gql from 'graphql-tag'; import { Flex } from '@rebass/grid'; import { capitalize } from '../lib/utils'; import Header from '...
const exec = require('child_process').exec; const research_utils = require('./research_utils'); const NodeRtmpEdgeChangeClient = require('./node_rtmp_edge_change_client'); const STRATEGY_DO_YOUR_SELF = 0; const STRATEGY_HARD_HAND_OFF = 1; const STRATEGY_AFTER_FIXED_TIME = 2; const STRATEGY_BEFORE_I_FRAME = 3; const S...
var config = require("bolt-internal-config"); var errors = require("bolt-internal-errors"); var models = require("bolt-internal-models"); var utils = require("bolt-internal-utils"); var fs = require('fs'); var path = require("path"); var mongodb = require('mongodb'); var superagent = require('superagent'); const X_BO...
// Carousel 'use strict'; // Years var Tabs = { toggle: document.querySelectorAll('.years_items .item'), tabs: document.querySelectorAll('.card_slide_block'), } Object.keys(Tabs.toggle).map(function(key, index) { Tabs.toggle[key].onclick = function() { var tab = this.dataset.target; // st...
// https://www.lcsd.gov.hk/datagovhk/facility/facility-{type}_data_dictionary.pdf // https://www.lcsd.gov.hk/datagovhk/venue/venue_data_dictionary.pdf const cmn = require("../../common"); const { Coordinate, } = require("../../_class"); const LOCALE = require("../../locale").week; const BASE_URL = "https://www.lcs...
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const path = require('path'); const yargs = require('yargs'); const common = require('@metarhia/common'); const doc = require('..'); const args = yargs .usage('$0 [options] file.js [file.js...]') .option('header', { type: 'string', describe: 'he...
export const fileStoreProviders = { LOCAL: "local", AMAZON_S3: "amazon-s3", GCP_STORAGE: "gcp-storage" } export const endpointTypes = { INTERNAL: "internal", EXTERNAL: "external", PREPARED: "prepared" } export const permissionVerbs = { READ: "read", MODIFY: "modify" } export const configResourceTypes...
import React, { Fragment, useState, useCallback, useEffect, useMemo, } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import R from 'ramda'; import { Element as ScrollElement, scroller } from 'react-scroll'; import { compose, setStatic } from 'rec...
var express = require('express'); var app = express(); var fs = require('fs'); var _ = require("lodash"); var bodyParser = require('body-parser'); app.use(bodyParser.json()); // support json encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies var nodemailer = require("nod...
/* eslint-disable no-nested-ternary */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import googleTagManager from 'googleTagManager'; import { findIndex as lodashFindIndex, get as lodashGet, uniqBy } from 'lodash'; import update from 'immutability-helper'; import ...
var assert = require('assert'); var deep = require('deep-diff'); var Bootstrap = require('./support/bootstrap'); describe('manager', function() { describe('.save', function() { var manager; beforeEach(function() { manager = Bootstrap.manager(Bootstrap.database()); Bootstrap.models(manager);...
// Importações. import { useState, useEffect, useRef, useCallback } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; // Utilidades. import axios from '../helpers/axiosInstance'; // import { Link, useHistory } from 'react-router-dom'; impo...
var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var scene = null; var camera = null; var internalBox = null; var sleeve = null; var textBlock = new BABYLON.GUI.TextBlock("textBlock1"); var advancedTexture = null; var textColor = "black"; var boxIndex = 0;...
import React, { Component, useState, useEffect } from "react"; import { Link, useParams } from "react-router-dom"; import { defaultRouteLink,getCurrentDate } from "../../common/config"; import ContentLoader, { Facebook, BulletList } from "react-content-loader"; import Pagination from "react-js-pagination"; const MyBull...
import React from 'react'; import PropTypes from 'prop-types'; import { noop, Button, ListView, Grid, Spinner, Icon, Toolbar, DropdownKebab, MenuItem } from 'patternfly-react'; import { IsoElapsedTime } from '../../../../../../components/dates/IsoElapsedTime'; import ShowWizardEmptyState from '../../../common/ShowWizar...
var inject = '('+function() { function trace(method, id, args) { window.postMessage(['WebRTCExternals', id, method, JSON.stringify(args || {})], '*'); } // transforms a maplike to an object. Mostly for getStats + // JSON.parse(JSON.stringify()) function map2obj(m) { if (!m.entries) { return m; ...
import Immutable from "immutable"; import PropTypes from "prop-types"; import React, { PureComponent, Component} from "react"; import { Collection, CellMeasurer, CellMeasurerCache, createMasonryCellPositioner, Masonry, AutoSizer, WindowScroller, } from 'react-virtualized'; import styles from 'react-virtua...
/** * This file creates the Value Nodes for the Menu bar. * * MIST is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This pro...
'use strict'; function DeclScope(nd) { for (let ndi = nd; ndi; ndi = ndi.p) { if (ndi.node_class == N_SCOPE) { let nd_asgn = ndi.Owning(N_ASSIGNMENT); if (nd_asgn && nd_asgn.c.isAncestorOf(ndi)) { //hack out of destructuring return nd_asgn.Owning(N_SCOPE); } return ndi; } if (ndi.node_class ...
/** * Copyright 2004-present Facebook. All Rights Reserved. * * @emails oncall+internationalization * @flow */ /*eslint max-len: ["error", 100]*/ 'use strict'; /*:: import type { JSModuleNameType, } from '../FbtConstants'; import type { FbtBabelNodeCallExpression, FbtBabelNodeJSXElement, FbtBabelNodeShap...
function init() { if (window.goSamples) goSamples(); // init for these samples -- you don't need to call this var $ = go.GraphObject.make; myDiagram = $(go.Diagram, "myDiagram", { // when the user drags a node, also move/copy/delete the whole subtree starting with that ...
// Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: teal; icon-glyph: magic; // Licence: Robert-Koch-Institut (RKI), dl-de/by-2-0 const url_state = `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/Coronaf%C3%A4lle_in_den_Bundesl%C3%A4ndern/Featur...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _helpers = require("../../common/helpers"); var _ListViewExpand = _interopRequireDef...
/** * Returns the array of 32 compass points and heading. * See details here: * https://en.wikipedia.org/wiki/Points_of_the_compass#32_cardinal_points * * @return {array} * * Example of return : * [ * { abbreviation : 'N', azimuth : 0.00 , * { abbreviation : 'NbE', azimuth : 11.25 }, * { ...
"use strict" Object.defineProperty(exports, "__esModule", { value: true }) const internal_1 = require("../internal") function hasObservers(observable) { return observable.observers && observable.observers.size > 0 } exports.hasObservers = hasObservers function getObservers(observable) { return observable.observ...
import { Helper } from '@skypager/runtime' import { start } from 'repl' import Promise from 'bluebird' const { createContextRegistry } = Helper const priv = new WeakMap() export class Repl extends Helper { initialize() { this.loadedCommands = [] this.loadedExtensions = [] if (!priv.has(this)) { ...
/** * * Copyright 2016-present reading * * 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...
'use strict'; var debug = require('debug')('amqp10:framing:open'), Int64 = require('node-int64'), util = require('util'), _ = require('lodash'), constants = require('../constants'), u = require('../utilities'), up = u.payload, DescribedType = require('../types/described_type'), Forced...
const validar = (frm)=>{ /* * Validação do formulário de submissão * Legado do sistema antigo */ let erros = 0; let msg = ""; if(frm.nomecompleto.value === ''){ msg += 'Campo "nome" não pode estar em branco.\n'; erros++; } if(frm.email.value == ''){ ms...
import {XKTLoaderPlugin, math} from "@xeokit/xeokit-sdk/dist/xeokit-sdk.es.js"; import {Controller} from "../Controller.js"; import {ModelIFCObjectColors} from "../IFCObjectDefaults/ModelIFCObjectColors.js"; import {ViewerIFCObjectColors} from "../IFCObjectDefaults/ViewerIFCObjectColors.js"; import {ModelsContextMenu} ...
/** * Copyright (c) 2002-2019 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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...
/* --------------------------------------- */ /* TEST LANDINGPAGE */ /* --------------------------------------- */ // Display all MORE INFO elements on click $(document).ready(function(){ // Display all MORE INFO elements on click $(".moreinfo").click(function(){ moreInfo($(this)...
function t(t,e,n){const r=Reflect.ownKeys(e),u=class{static get inputProperties(){return r}};u.prototype.paint=n,registerPaint(t,u);}Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",get_current_path:function(t){return t.substring(0,t.lastIndexOf("/"))},get_text:async function(t){return await fetch(t).then((t...
var util = require('util'); var Promise = require('bluebird'); var EventEmitter = require('events').EventEmitter; var Errors = require(__dirname+'/errors.js'); /** * Random useful methods used everywhere. */ /** * Is `obj` a plain object. * @return {boolean} */ function isPlainObject(obj) { return Object.prot...
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] =...
/* * sm3-1.0.js * * Copyright (c) 2019 <NAME> */ /** * @name sm3-1.0.js * @author Yunlong * @version 1.0.0 (2019-10-16) */ //加密数据不能超过500M function SM3Digest(){ this.ivByte = new Array( 0x73, 0x80, 0x16, 0x6f, 0x49, 0x14, 0xb2, 0xb9, 0x17, 0x24, 0x42, 0xd7, 0xda, 0x8a, 0x06, 0x00, 0xa9, 0x6f, 0x30, ...
//------------------------------------------------------------------------------------------------------------------------------------------------ //-------------------------------------------------------------Format Data into an RSS Feed--------------------------------------------------- //---------------------------...
/** * 金额转中文 * 思路: * 个 * 十 百 千 万 * 十万 百万 千万 亿 * 十亿 百亿 千亿 * * 1 * 2 3 4 5 * 6 7 8 9 * 10 * * 计...