text
stringlengths
3.22k
29.5k
// @copyright // © 2016-2017 <NAME> import {html} from "../utils/element.js"; let {max} = Math; let easing = "cubic-bezier(0.4, 0, 0.2, 1)"; let shadowTemplate = html` <template> <style> :host { display: block; width: 100%; box-sizing: border-box; --arrow-width: 24px; ...
// Whole-script strict mode syntax "use strict"; /** MIT License Copyright (c) 2020 Openlaw 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 ...
'use strict' import React from 'react' import Redirect from 'components/Redirect' import listingSchemaMetadata from 'origin-dapp/src/utils/listingSchemaMetadata' class Configure extends React.Component { constructor(props) { super(props) this.state = { config: props.config, expandedCategories:...
class Terreno { static CANTIDAD_PARCELAS = 9; static ESCALA = null; static ALTURA_TERRENO = -250; constructor(long_lado_total) { this.textura = new Textura("assets/heightmap-isla.png"); this.long_lado_total = long_lado_total; Terreno.ESCALA = long_lado_total / 9; this....
import React from 'react' import { observer } from "mobx-react" import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import FlatButton from 'material-ui/FlatButton'; import...
/** * Copyright (c) 2014 <NAME> * * License/Terms of Use * * Permission is hereby granted, free of charge and for the term of intellectual property rights on the Software, to any * person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify * and propagate f...
import { eventChannel } from 'redux-saga'; import { call, cancelled, take } from 'redux-saga/effects'; import { createActionReceivedService, createAttachmentReceivedService, createBoardReceivedService, createCardLabelReceivedService, createCardMembershipReceivedService, createCardReceivedService, createL...
var Service, Characteristic, UUIDGen, FakeGatoHistoryService; var sprintf = require("sprintf-js").sprintf; var inherits = require('util').inherits; var correctingInterval = require('correcting-interval'); //Initialize module.exports = function (homebridge) { Service = homebridge.hap.Service; Characteristic = homebri...
// test atan2 import assert from 'assert' import math from '../../../src/entry/bundleAny' import approx from '../../../tools/approx' const pi = math.pi const complex = math.complex const matrix = math.matrix const sparse = math.sparse const unit = math.unit const divide = math.divide const atan2 = math.atan2 const big...
/** * Copyright 2020 The Google Earth Engine Community Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
// # Demo Delaunator 001 // Delauney triangulation and Voronoi cell visualisation // [Run code](../../demo/delaunator-001.html) import scrawl from '../source/scrawl.js'; import Delaunator from 'https://cdn.skypack.dev/delaunator@5.0.0'; import { reportSpeed } from './utilities.js'; // Get Scrawl-canvas to recognise ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { previewParticipantReport } from '../../../actions/project/ProjectDetailsActions'; import { clearParticipantsProject, fetchParticipantsProject, } from '../../../actions/participa...
import _regeneratorRuntime from "@babel/runtime/regenerator"; import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import _objectSpread from "@babel/runtime/helpers/objectSpread"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/cr...
import Phaser from 'phaser'; const BAR_LABEL_OFFSET = 17; const FLOOR_THICKNESS = 200; const FLOOR_BODY_CONFIG = {friction: 1, isStatic: true, restitution: 0}; const HEAD_ROOM = 300; const PILE_BODY_CONFIG = {friction: 1, isStatic: true, restitution: 0}; const SCORE_LABEL_FORMAT = 'HIGH SCORE: %1\nSCORE %2'; const VAR...
import {is} from '@enact/core/keymap'; import Spotlight, {getDirection} from '@enact/spotlight'; import {getTargetByDirectionFromElement} from '@enact/spotlight/src/target'; import utilDOM from '@enact/ui/useScroll/utilDOM'; import utilEvent from '@enact/ui/useScroll/utilEvent'; import clamp from 'ramda/src/clamp'; imp...
// @ts-check /* eslint no-shadow: 0 */ /** @typedef {import('./types.js').ArchiveOptions} ArchiveOptions */ /** @typedef {import('./types.js').ArchiveWriter} ArchiveWriter */ /** @typedef {import('./types.js').CompartmentDescriptor} CompartmentDescriptor */ /** @typedef {import('./types.js').ModuleDescriptor} ModuleDe...
// 0x0700B290 - 0x0700B380 import { gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometryMode, G_...
'use strict'; const extractZip = require('extract-zip'); const fs = require('fs'); const helper = require('./lib/chromedriver'); const request = require('request'); const mkdirp = require('mkdirp'); const path = require('path'); const del = require('del'); const child_process = require('child_process'); const os = req...
$(document).ready(function() { getMenu(); var updateOutput = function(e) { var list = e.length ? e : $(e.target), output = list.data('output'); if (window.JSON) { output.val(window.JSON.stringify(list.nestable('serialize')));//, null, 2)); } else { output.val('JS...
import React from "react"; import PropTypes from "prop-types"; const UndrawAddress = props => ( <svg style={{height:props.height, width:'100%'}} className={props.class} id="2490755a-457e-4afb-a65a-0ea5e4d54fde" data-name="Layer 1" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 945.48 ...
'use strict' const mongoose = require('mongoose') const moment = require('moment') const Avisos = require('./../models/avisos') const Eventos = require('./../models/eventos') const config = require('./../config') mongoose.Promise = global.Promise /** * Controlador para crear Eventos */ exports.crearEvento = (req, ...
let container = document.getElementById("container"); let overlay = document.getElementById("overlay"); let course_info = document.getElementById("course_info"); let user = document.getElementById("user"); let pw = document.getElementById("pw"); let login_btn = document.getElementById("login_btn"); login_btn.addEventL...
import React from 'react'; export const GameplayAssets = { Messages: { NewGame: 'Ready for adventure!', Debug: { On: 'Debug is ON.', Off: 'Debug is OFF.' }, SoundDebug: { On: 'Sound debug is ON.', Off: 'Sound debug is OFF.' }, Cheats: { ShowFullMap: { On:...
import React from "react"; import { Box, Text, TextField, Image, Button } from "@skynexui/components"; import appConfig from "../config.json"; import { createClient } from "@supabase/supabase-js"; import { ThreeDots } from "react-loading-icons"; import { useRouter } from "next/router"; import { ButtonSendSticker } from...
var Parser = require("jison").Parser;//, fs = require("fs"); var grammar = { "lex": { "rules": [ ["\\s+in\\b", "return 'in';"], ["\\s+notIn\\b", "return 'notIn';"], ["\\s+from\\b", "return 'from';"], ["\\s+(eq|EQ)\\b", "return '==';"], ["\\s+(seq|...
import { buildTitles } from './titles.js'; import { audioTracks } from './tracks.js'; // google oauth client id: 979387771633-6sq071rlbc9u53fkam01ap82fj4v0rfj.apps.googleusercontent.com // google oauth client secret: <KEY> // function start() { // // Initializes the client with the API key and the Translate API. /...
const Footer = () => { return ( <> <span id="forkongithub"> <a href="https://github.com/masoudnemati/iran-map">Fork me on GitHub</a> </span> <style jsx>{` #forkongithub a { background: #fff; color: #1c1c1c; text-decoration: none; font-famil...
import React, { useState, useEffect, useRef, useContext } from 'react'; import dt from './utils'; import { csvContext } from '../context/csv-context'; import LoadDataset from '../utils/LoadDataset'; import Description from '../utils/Description'; import Alert from '@material-ui/lab/Alert'; import Button from '@material...
import Promise from 'bluebird' import 'isomorphic-fetch' import { createAction } from 'redux-actions' import jwtSimple from 'jwt-simple' import { client, log } from '../../../config' import { scheme, hostname, port, host, path } from '../../services/location' import persistence from '../../services/persistence' import...
const path = require('path') const striptags = require('./strip-tags') const md = require('markdown-it')() const HtmlWebpackPlugin = require('html-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') const VueLoaderPlugi...
$(document).ready(function(){ /* head popup */ $("#header .buttons .item > a").click(function(){ var popup = $(this).parent('.item').find('.popup'); if(popup.length > 0){ popup.is(':visible')?popup.fadeOut(200):popup.fadeIn(300); ...
const NodeRtmpClient = require('./node_rtmp_client'); const research_utils = require('./research_utils'); 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 STRATEGY_AFTER_I_FRAME = 4; const STRATEGY_NOT_NEAR_I_FRAME = 5; c...
import { Do } from './do.js'; import { LayoutConstants } from '../layout_constants.js' const SNAP_FULL_SCREEN = 'full-screen' const SNAP_TOP_EDGE = 'snap-top-edge' // or actually top half const SNAP_LEFT_EDGE = 'snap-left-edge' const SNAP_RIGHT_EDGE = 'snap-right-edge' const SNAP_BOTTOM_EDGE = 'snap-bottom-edge' const...
require('dotenv').config(); var fetch = require('node-fetch'); var FindMyFriends = require('./findmyfriends.js'); var NodeGeocoder = require('node-geocoder'); var fs = require("fs"); function arePointsNear(checkLat, checkLong, centerLat, centerLong, km) { var ky = 40000 / 360; var kx = Math.cos(Math.PI * cente...
$(function() { config.date_range(); altair_product_edit.init(); UIkit.modal($('#modal_facturadoA'), {modal: false, keyboard: false, bgclose: false, center: true}).show(); $(".repuestos_table").on('keyup', 'input.codigos_prod', function(e) { e.preventDefault(); let codProducto_Ingresad...
/* jslint node: true */ 'use strict'; // ENiGMA½ const MenuModule = require('./menu_module.js').MenuModule; const { getModDatabasePath, getTransactionDatabase } = require('./database.js'); const ViewController = require('./view_controller.js').ViewController; cons...
/* Copyright (c) 2019 <NAME>, released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ import ol_Map from 'ol/Map' import {ol_ext_inherits} from '../util/ext' import ol_ext_element from '../util/element'; import ol_Overlay from 'ol/Overlay' import { i...
import _regeneratorRuntime from "@babel/runtime/regenerator"; import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import _typeof from "@babel/runtime/helpers/typeof"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; ...
/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import NavLink from 'containers/common/NavLink'; import LoadingSpinner from 'components/common/LoadingSpinner'; import { numberToThousands } from 'helpers/data'; const numbersAsText = ['year', 'start', 'end', 'year_end'...
/** * DevExtreme (ui/scheduler/tooltip_strategies/tooltipStrategyBase.js) * Version: 19.2.5 * Build date: Mon Dec 16 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(ex...
// global Structure // Structure.tags // Structure.Projects // Structure.Images var Settings = { imagePath: "img/" }; class Portfolio { extractAllTags(structure) { var ret = {}; structure.Images.forEach(function (d) { d.tags.forEach(function (a) { if (ret[a] == unde...
const fs = require("fs"); const path = require("path"); const util = require("util"); var xml2json = require("xml2json"); var json2yaml = require("json2yaml"); var turndown = require("turndown"); CPlaceToCollection.prototype.createPath = function (targetDir) { console.log(targetDir); targetDir = path.normalize...
const ENABLE_SHT3x = false const ENABLE_DPS310 = true const http = require('http'); const i2c = require('i2c-bus') const DEVICE_NUMBER = 1 const i2c1 = i2c.openSync(DEVICE_NUMBER) // general let timestamp = undefined; // SHT-3x let SHT3x_temp = undefined; let SHT3x_humid = undefined; let SHT3x_readBuf = new Buffer.al...
import { rndEven, rndOdd, timer } from "../UtilityFuncs"; import { gridCl } from "../Grid/Grid"; import { cellIsStartOrEnd } from "../Cell/CellActions"; import { CELL_TYPES } from "../Cell/CellActions"; /*Recursive Division Maze creation algorithm that recursively seperates the grid into sections. Each section is sep...
// @flow import React from 'react' import myStore from '../../../AppStore' import {connect} from 'react-redux' import {Field, reduxForm, formValueSelector} from 'redux-form' import CARD_TYPE_ENUM from '../../../common/CreditCardTypeEnum' import {browserHistory} from 'react-router' import SimpleField from '../../common...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { changeLevel, getListOfPrompts, changeLanguage } from '../actions/index'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import axios from 'axios'; import CodeEditor from './CodeEditor'; ...
// Copyright 2015 Traceur Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
const moji = require('moji'); const ja2num = require('japanese-numerals-to-number'); function guessBaseNumber(number, isBeforeCounter) { if (number == 0) { return 'ゼ\ロ'; } var place = 0; var yArr = []; var d = (number + '').length; while (d > place) { var y = ''; // 1 \...
var allTabs = {}; class Setting { constructor() { if (Setting.instance) { return Setting.instance; } this.maxDocuments = this.getMaxDocuments(); this.maxQuestions = this.getMaxQuestions(); Setting.instance = this; let sourceSetting = document.getElem...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = CustomDropdown; var _react = _interopRequireDefault(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _propTypes = _interopRequireDefault(require("prop-types")); var _styles = requ...
/** * @fileoverview This file is the main entrypoint for DRAGNN trace * visualization. The main function that it exposes is visualizeToDiv(), which * it will save to `window` (supposing `window` is defined). */ const cytoscape = require('cytoscape'); const _ = require('lodash'); // Legacy JS, downloaded ...
var express = require('express'); var app = express(); var axios = require("axios"); var cheerio = require("cheerio"); var cors = require('cors'); const config = require('./config.json'); const Redis = require('ioredis'); const csv = require('csvtojson') let basePathHistory = "https://raw.githubusercontent.com/CSSEGIS...
import React, { Component } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { connect } from 'react-redux' import { compose } from 'recompose' import { withRouter } from 'react-router-dom' import { Input, Button, Icon, Select } from '../omg-uikit' import Modal from '../omg...
var sql = require('mssql'); import * as PORTACTION from "../../../actions/production/port/PORTActionConst.js" import * as PORTSTATE from "../../../actions/production/port/PORTState.js" import * as PORTCHK from "../../../const/ChkConst.js" import * as CONNECT from "../../../const/SQLConst.js" import * as MISC from ".....
import { vec3, mat4 } from 'gl-matrix'; import calcTransform from '../../util/transform'; const SEMANTIC_ATTRIBUTE_TABLE = { POSITION: 'aPosition', NORMAL: 'aNormal', TEXCOORD: 'aTexCoord', TANGENT: 'aTangent', COLOR: 'aColor' }; const SEMANTIC_ANIMATION_TABLE = { INPUT: 'input', OUTPUT: 'output', INT...
//config file is used to store api secret keys import {config} from '../../../config'; //Importing all SVG's of weather icons import clearDay from '../media/weather-icons/clear-day.svg'; import clearNight from '../media/weather-icons/clear-night.svg'; import cloudy from '../media/weather-icons/clear-day.svg'; import f...
var Rect = require('./geom/rect'), Vec2 = require('./geom/vec2'), Matrix = require('./geom/matrix'), ComplexInfo = require('./complexInformation'), Composite = require('../font/sbolv/composite'), nonDNATypes = require('./nonDNATypes'), Arrows = require('../font/sbolv/interaction-arrows/main') ...
"use strict"; function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _...
/* eslint-disable no-unused-vars */ /* eslint-disable space-before-function-paren */ /* eslint-disable prefer-promise-reject-errors */ 'use strict' const handlebars = require('handlebars') const os = require('os') const chalk = require('chalk') const spawn = require('cross-spawn') const execa = require('execa') const ...
/** * @autor syp * @content index页面js * @returns * @Time 2018-08-03 */ var $, tab, dataStr, layer; var menuDatas; var cur_menu_id;var username; layui.config({ base: "static/js/" }).extend({ "bodyTab": "bodyTab", "application" : "application", "publicUtil":"publicUtil" }) layui.use(['bodyTab', 'form', 'element'...
import React from "react"; import Grid from "@material-ui/core/Grid"; import Button from "@material-ui/core/Button"; import {SentimentAnalysis} from "./sentiment_analysis_rpc_pb_service"; import OutlinedDropDown from "../../common/OutlinedDropdown"; import OutlinedTextArea from "../../common/OutlinedTextArea"; import ...
/* Author: <NAME> * Date: 3 Mar 2016 * Notes: * */ var screenname = 'PM'; function GetLease(leaseId){ //alert(leaseId); $.ajax({ type: "POST", url: mainurl + "PM_Common/GetLease", data: { 'leaseId': leaseId}, datatype: "html", ...
/*globals counties*/ var FeatureLayersTable = []; var mapMain; var view; var legend; var ListLayerUI = []; var fctChangerSymbologie //une fonction require([ "dojo/query", "esri/layers/FeatureLayer", "esri/widgets/Legend", "esri/widgets/BasemapToggle", "esri/renderers/SimpleRenderer", "esri/sy...
//-------------------------------------- Data Table Configuration - Start --------------------------------------// function dataTable() { $("#id_customerTable").DataTable( { order: [[2, 'desc']], dom: '<"card-header border-bottom p-1"<"head-label"><"dt-action-buttons text-right"B>><"d-f...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ var async = require("async"); var Tapable = require("tapable"); var NormalModule = require("./NormalModule"); var RawModule = require("./RawModule"); var Parser = require("./Parser"); var RuleSet = require("./RuleSet");...
import Promise from 'bluebird'; import map from 'lodash/map'; import differenceBy from 'lodash/differenceBy'; import moment from 'moment'; import Comment from '../models/comment.model'; import User from '../models/user.model'; import ForumThread from '../models/forumThread.model'; import ForumNotifications from '../he...
import React, { Component } from "react"; import { WebView } from "react-native-webview"; import htmlEditor from "./html/editor"; import { StyleSheet, View, Image, Platform } from "react-native"; const shortid = require("shortid"); const isIos = Platform.OS === "ios"; export default class CNEditor extends Component {...
var express = require('express'); var app = express(); var router = express.Router(); import user from '../model/user';//get data test import jwt from'jsonwebtoken'; import config from '../config'; import BannerDocument from '../documentacess/banner_document'; import TrendingDocument from'../documentacess/trending...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.Slider = exports.sliderSlotClassNames = exports.sliderClassName = void 0; var _extends2 = _in...
/** * Environment */ var lgr = require('log4js'), fs = require('fs'), //topicmap Indx = require('../node_modules/tqtopicmap/index'), //database udb = require('./userdatabase'), //logging platform lp = require('./logplatform'), //game environment Genv = require('../apps/rpg/rpgenvir...
var fs = require("fs"), http = require("http"), path = require("path"); var _ = require("busyman"), chalk = require("chalk"), cserver = require("coap-shepherd"); //var demoApp = require('./demoApp'), var utils = require("./helpers/utils"), ioServer = require("./helpers/ioServer"); var server = http.createS...
var fs = require('fs'); var crypto = require('crypto'); var async = require('async'); var EventEmitter = require('events').EventEmitter; var browserify = require('browserify'); var UglifyJS = require('uglify-js'); var cssmin = require('cssmin'); var path = require('path'); function Moonboots(opts) { var item; ...
var c = console, cac; document.addEventListener('DOMContentLoaded', init); function init() { cac = new CAC(localStorage["cacLogin"], localStorage["apiKey"]); cac.servers(); c.log("cac", cac); } function CAC(login, key) { c.group("CAC()"); this.version = 'v1'; this.url = 'https://panel.cl...
import React, { Component } from "react"; import { connect } from "react-redux"; import cx from "classnames"; import * as actions from "../../actions"; import getCoords from "../../lib/helpers/getCoords"; import Actor from "./Actor"; import SceneCollisions from "./SceneCollisions"; import { throttle } from "lodash"; im...
$(function() { // hide jQuery Mobile loading msg $.mobile.loading().hide(); }); const ANIM_TIME = 250; const USER_NAME = Math.floor(Math.random()*Math.pow(10, 20)).toString(); $.post('/users-new', {'userName':USER_NAME}, function(result) { console.log("Null data initialized. Good luck with using the app.")...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; if (typeof Promise !== 'function') { require...
const fetch = require('node-fetch'); const {Storage} = require('@google-cloud/storage'); const {CloudTasksClient} = require('@google-cloud/tasks'); const {Firestore} = require('@google-cloud/firestore'); const storage = new Storage(); const puppeteer = require("puppeteer"); const _gm = require("gm"); const gm = _gm.sub...
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
import React, { useEffect, useMemo, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import Icon from '@availity/icon'; import { InputGroup, Input, Button, Row, Col } from 'reactstrap'; import { DateRangePicker } from 'react-dates'; import classNames from 'classnames'; import { useField, useFormikCo...
const ObjectId = require("mongoose").Types.ObjectId function isObjectIdValid (uuid) { return ObjectId.isValid(uuid) } module.exports = { setFalseAllThisCaseTransferLogs: async (schema, caseId, unitId, toUnitId) => { let res = {} res.one = await schema.updateMany( { transfer_case_id: caseId, transf...
var httpport = 1080; var http = require("http").createServer(httphandler).listen(httpport); var fs = require("fs"); var url = require("url"); var path = require("path"); var sensors = {}; var mysql = require("mysql"); var dbaccess = { host: "localhost", user: "pi", password: "<PASSWORD>", databas...
import React, { useEffect, useRef, useState, useContext, Fragment } from 'react' import { makeStyles } from '@material-ui/core/styles' import Paper from '@material-ui/core/Paper' import Grid from '@material-ui/core/Grid' import { TextField, Typography } from '@material-ui/core' import HeaderLabel from '../components/He...
/** * * * A quick-merge algorithm for systems that want to work with 'immutable' data, like redux. * * Strives to: * * 1. Realize when things have not _really_ changed, so it not returned a different object. For * example, qm({a:'a', b:42}, {b:42}) did not _really_ change, but a nieve JS merge would * g...
const EventEmitter = require('events'); const execFunctions = require('../lib/execFunctions'); class RecreateNodes extends EventEmitter { command(nodeInfos, dfId, dfIdMapping, cb) { const self = this; const commandResult = { IMDNames: [], nodeElemIDs: [], nodeIDs...
'use strict'; import { lerpPos } from './utils.js'; class App { propToText(prop, sep) { sep = sep || "<br>"; let text = prop.Place; if (prop.Comments) text += sep + prop.Comments; text += sep + "הגיע ב " + new Date(prop.fromTime).toLocaleString('he-IL'); text += sep + "עזב ...
import { idValidation, submissionValidation } from './validation'; const jwt = require('jsonwebtoken'); // const data = require('./data.json'); const { User, Question, Leaderboard, Testcases, } = require('../models/models.js'); const executeCode = require('./code-executor'); const updateLeaderboard = ...
// #!/user/bin/node 'use strict'; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } }...
const generator = require("generate-password"); const { createLogger, format, transports } = require("winston"); const { combine, timestamp, json, prettyPrint, colorize } = format; const jwt = require("jsonwebtoken"); const serializer = require("xml2js"); const { Config } = require("./config"); const crypto = require(...
import React, { Component } from 'react' import PropTypes from 'prop-types' import Toggle from 'react-toggle' import stringifyObject from 'lib/stringify-object' import { Controlled as CodeMirror } from 'react-codemirror2' import { generateDefaultConfig } from '../../helper/configHelper' import settings from 'assets/...
var assert = require('assert') var vec3 = require('./vec3') var EPSILON = Math.pow(2, -24) function create () { return [0, 0, 0, 1] } function equals (a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] } function identity (a) { a[0] = a[1] = a[2] = 0.0 a[3] = 1.0 r...
// ============================ GLOBAL CONSTANTS ============================ const COUNTRY_COL = 'Country'; const CATEGORY_COL = 'Thematic Area Category'; // ============================ DATA MAPPINGS ============================ // Mapping of country names in data to their name in the countries.json file const coun...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var reactNative = require('react-native'); var React = require('react'); var SwipeableViews = _interopDefault(require('react-swipeable-views-native')); var _createClass = function () { fun...
import React from 'react'; import {Box, HStack, Modal, Text, VStack} from 'native-base'; import moment from 'moment'; import fontColorContrast from "font-color-contrast"; import CalendarBox from '../../molecules/calender/calendarBox'; import EventBoxCalendar from "../../molecules/calender/eventBoxCalendar"; import Eve...
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
// MODULES // import React, { Fragment } from 'react'; import { i18n } from '@isle-project/locales'; import ButtonGroup from 'react-bootstrap/ButtonGroup'; import logger from 'debug'; import replace from '@stdlib/string/replace'; import ContingencyTable from '@isle-project/components/tables/contingency-table'; import ...
import { useCallback, useEffect, useState } from "react"; import { useFormik } from "formik"; import { Box, Flex, Text } from "rebass"; import { isAdmin } from "@emjpm/biz"; import useDebouncedEffect from "~/hooks/useDebouncedEffect"; import { FormGrayBox, FormGroupInput, FormInputBox, } from "~/components/App...
"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 ("v...
// The initial version of this RTE was borrowed from https://github.com/jaredreich/pell // and adapted to the GrapesJS's need import { isString } from 'underscore'; import { on, off, getPointerEvent, getModel } from 'utils/mixins'; const RTE_KEY = '_rte'; const btnState = { ACTIVE: 1, INACTIVE: 0, DISABLED: -1...