text
stringlengths
3.22k
29.5k
import React, { useState, useEffect } from 'react'; import Sidebar from "react-sidebar"; import styled from "styled-components"; import Img from 'gatsby-image'; import { downloadFile } from '../../utils/download'; import { Formik, Field } from 'formik'; import * as Yup from 'yup'; import { InputField, TextareaField, Se...
/* Amber Engine */ // CONSTANTS const titleObj = findByClass("intro--title"), imageObj = findByClass("intro--img"), inventoryObj = findByClass("body--inv__list"), locationsObj = findByClass("body--locations__list"), roomNameObj = findByClass("room--name"), roomImageObj = findByClass("r...
/*******************************************************************; * _ * Project : STONE * _____/\_\ * -----------------------------------------; * /\ / / / * Program name : user interface * __/_ \ \/_/ \ * -----------------------------------...
import React from 'react'; import PropTypes from 'prop-types'; const SVG = props => ( <svg width={props.width} style={props.style} height={props.width} xmlns="http://www.w3.org/2000/svg" className={`svg-icon ${props.className || ''}`} xmlnsXlink="http://www.w3.org/1999/xlink" > <g id="i...
/** * Copyright 2017 HUAWEI. All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 * * @file Implementation of the default test framework which start a test flow to run multiple tests according to the configuration file */ 'use strict' /* global variables */ var childProcess = require('child_process'); var ex...
import React from 'react'; import { findDOMNode } from 'react-dom'; import createComponent, { Component, sstyled, Root } from '@semcore/core'; import { Box } from '@semcore/flex-box'; import { getNodeByRef } from '@semcore/utils/lib/ref'; import style from './style/scroll-bar.shadow.css'; export const DEFAULT_SLIDER_...
/**************************************************************************** ** @license ** This demo file is part of yFiles for HTML 2.2. ** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28, ** 72070 Tuebingen, Germany. All rights reserved. ** ** yFiles demo files exhibit yFiles for HTML functionali...
import React from 'react' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' import { graphql, Link } from 'gatsby' import Layout from '../components/Layout' import { HTMLContent } from '../components/Content' function mydrive() { navigator.geolocation.getCurrentPosition(doDrivingDirections)...
//Displays the time var current = moment().format('dddd Do MMMM YYYY'); $("#currentDay").text(current) // //Saves the hour in the local storage // var currentHour = moment().startOf('day').fromNow(); // console.log(currentHour) // var currentTimeSaved = localStorage.setItem("Current Time", currentHour) //Ta...
function createDecision(idDec, author, decision) { var d = new Date(); var date = d.toISOString().slice(0, 19); return { "@context": "http://vitali.web.cs.unibo.it/twiki/pub/TechWeb16/context.json", "@type": "decision", "@id": idDec, "article": { "@id": "", ...
import React, { Component } from 'react' import { inject, observer } from 'mobx-react'; import { Card, Form, Icon, Input, Modal, message, Spin, Tooltip, Upload } from 'antd'; import styled from 'styled-components' import _ from 'lodash' import { checkImageLink, getBase64, validateImageFile } from '../../utils' import '...
'use strict'; const { DialogflowApp } = require('actions-on-google'); const functions = require('firebase-functions'); const bodyParser = require('body-parser'); const strings = require('./strings'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); process.env.DEBUG = 'act...
var camera, scene, renderer, controls; var parameters; var objects = []; var materials = []; var raycaster; var moveForward = false; var moveBackward = false; var moveLeft = false; var moveRight = false; var canJump = false; var prevTime = performance.now(); var velocity = new THREE.Vector3(); var direction = new T...
if (queryParams.select != null) if (parent != window) $("#frameworksBack").show(); var paramSize; function searchFrameworks(paramObj) { if (conceptMode) return searchConceptSchemes(paramObj); if (paramObj.size == null) paramObj.size = paramSize ? paramSize : 20; loading("Loading...
//META{"name":"webSock"}*// /* HUGE graditude to izy521 and other contributors to https://github.com/izy521/discord.io for most of the work in how to processing websocket messages. I am far to lazy to do this myself. so large functions are copy pasted. Although many things were surprisingly similar already. */ var u...
/** * Copyright 2017-2018 FlashAir Developers * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apac...
console.time("Startup Time"); // Constants const FS = require("fs"); const UTIL = require("util"); const URL = require("url"); const PATH = require("path"); const ELECTRON = require("electron"); // Electron Module Imports const APP = ELECTRON.app; const IPC = ELECTRON.ipcMain; const ELECTRON_MENU = ELECTRON.Menu; con...
/*! Copyright (c) 2016-2017 <NAME> | MIT Licensed */ 'use strict' /** * Module dependencies. * * @private */ const fs = require('fs') const path = require('path') const debug = require('debug')('ccr:hub') const includes = require('array-includes') const onIncoming = require('./on-incoming') const Base = require(...
import "../node_modules/url-search-params-polyfill/index.js"; export function makeSprite(name) {  return new PIXI.Sprite(app.loader.resources[name].texture); } export function clamp(x, min, max) { return Math.min(max, Math.max(min, x)); } export function distanceBetween(a, b) { let x = a.x - b.x; let y = a....
import React, { useState, useEffect } from "react"; import Box from "@material-ui/core/Box"; import { makeStyles } from "@material-ui/core/styles"; import GridContainer from "components/Grid/GridContainer.js"; import InputLabel from "@material-ui/core/InputLabel"; import MenuItem from "@material-ui/core/MenuItem"; imp...
const ModelUtils = require('../../../fgt-dsu-wizard/model/utils'); const {ANCHORING_DOMAIN} = require('../../../fgt-dsu-wizard/constants'); const ROLE = require('../../../fgt-dsu-wizard/model/DirectoryEntry').ROLE; const Order = require('../../../fgt-dsu-wizard/model/Order'); const Shipment = require('../../../fgt-dsu-...
var log = require('./logger.js')('MediaDisplay'); var React = require('react'); var ReactDOM = require('react-dom'); var Dialog = require('./dialog.js'); var ImageLoader = require('./image-loader.js'); var Player = require('./player.js'); var MediaDisplay = React.createClass({ getDefaultProps: function() { return {...
'use strict'; var slugify = require('http-slug'); var assign = require('object-assign'); module.exports = function(tollan) { var React = tollan.React; var Router = tollan.Router; //var forms = tollan.newforms; var postStore = tollan.getStore('blog/postStore'); var tagStore = tollan.getStore('blog/tagStore'); v...
/** * Copyright (c) 2017 Translation Exchange, Inc. * * _______ _ _ _ ______ _ * |__ __| | | | | (_) | ____| | | * | |_ __ __ _ _ __ ___| | __ _| |_ _ ___ _ __ | |__ __ _____| |__ __ _ _ __ __ _ ___ * | | '__/ _`...
const Signal = (() => { let events = {}; function subscribe(eventName, callback) { if(!events.hasOwnProperty(eventName)){ events[eventName] = []; events[eventName].push(callback); } else { events[eventName].push(callback); } } function unsubscribe(eventName, callback) { let index = events[event...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import clamp from 'lodash/clamp'; import { TweenLite } from 'gsap'; import storage from 'utils/storage'; import { SIZES } from 'utils/constants'; import s from './Range.scss'; const TRANSITION = parseInt(s.transition, 10); ...
import React, { useState } from "react"; import { Form } from "../FormElements"; import { getFormElement } from "../../utils.js"; import { Button, CircularProgress } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import JSONPretty from "react-json-pretty"; const useStyles = makeStyles...
"use strict"; function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array obje...
import React, { Component } from "react"; import { StyleSheet,WebView ,View,TouchableOpacity,Dimensions,AsyncStorage, ToastAndroid,NetInfo,Modal,FlatList,ScrollView,Image,Button } from "react-native"; import { Container,Spinner,Text,Content,Header,Grid, Left,Right,Title,Body,Input,Card,CardItem,List,Li...
// Setup graph var chart = AmCharts.makeChart('chartdiv00', { "type": "serial", "categoryField": "category", "columnWidth": 0.7, "dataDateFormat": "", "plotAreaBorderColor": "#000000", "startDuration": 1, "startEffect": "easeOutSine", "sequencedAnimation": false, "addClassNames": true, "backgroun...
/** * 七牛云上传插件 * v1.0.0 * * Copyright 2018, miaoke * * Auther:wangweijia * Date: 2018-05-19 * LastUpdate: 2019-12-16 */ import Qiniu from './qiniu'; /** * 是否为函数 * @param {Func} func 预期传入函数 * @return {Boolean} 返回判断值 */ const isFunc = func => typeof func === 'function'; /** * 是否为字符串 * @param {Func}...
import React, { useCallback } from 'react' import { useHistory } from 'react-router-dom' import { BackButton, Box, GU, IconTime, LoadingRing, Split, textStyle, Timer, useLayout, useTheme, } from '@1hive/1hive-ui' import Description from '../components/Description' import IdentityBadge from '../comp...
// Load in modules and files const fs = require('fs'); var config = require('./config.json'); const bodyParser = require('body-parser'); const exphbs = require('express-handlebars'); const express = require('express'); const session = require('express-session'); const MongoStore = require('connect-mongo')(session); c...
/** * @typedef {import('../../tokenizer').Token} Token * @typedef {import('java-mti').JavaType} JavaType * @typedef {import('../../body-types').ResolveInfo} ResolveInfo */ const { LiteralValue } = require('./LiteralValue'); const { PrimitiveType } = require('java-mti'); /** * NumberLiteral is a value representing...
const cryp = require("crypto"); const { performance } = require("perf_hooks"); function crypto() {} crypto.getRandomValues = getRandomValues; function sleep(milliseconds) { return new Promise((resolve) => setTimeout(resolve, milliseconds)); } function getRandomValues(array) { return cryp.randomFillSync(array); }...
'use strict'; var map, markers = [], districtArbat, districts = [], array = [], count = 0, districtCoords; function initMaps() { /* <NAME> */ map = new google.maps.Map(document.getElementById('map'), { zoom: 11, center: { lat: 56.285399, lng: 43.920782 } ...
'use strict'; const sharp = require('sharp'); const cloudinary = require('cloudinary'); const deepcopy = require('deepcopy'); const size = { grid: { h: 70, w: 70, }, robot: { h: 50, w: 50, }, wall: { thickness: 5, }, path: { thickness: 5, }, }; function data2rawsharp(data) { return { raw: { he...
/* Copyright 2018 <NAME> This program 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 program is distrib...
/** * Generic webpack payload used by the frontend compiler * * @param {string} app.config.paths.root Root path when generating or reading files * * @param {boolean} [app.config.isProduction=false] Tweaks various performance related options to optimal if true * * @param {object} app.config.hmr Various Hot-Module-Reload...
import readline from 'readline'; const path = require("path"); const fs = require('fs-extra'); const moment = require('moment'); //因为accountid都是source_accountID,需要截取掉柜台名称 String.prototype.toAccountId = function(){ return this.split('_').slice(1).join('_') } String.prototype.parseSourceAccountId = function(){ ...
'use strict'; import { initializeApp } from 'firebase/app'; import { getAnalytics } from 'firebase/analytics'; import { getAuth } from 'firebase/auth'; import { getFirestore, doc, getDoc, getDocs, collection, query, where, updateDoc } from 'firebase/firestore/lite'; import { local, session } from '../global/js/storage...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
import Link from '@/components/Link' import { PageSeo } from '@/components/SEO' import Tag from '@/components/Tag' import siteMetadata from '@/data/siteMetadata' import { getAllFilesFrontMatter } from '@/lib/mdx' import formatDate from '@/lib/utils/formatDate' import CarouselEl from '@/components/CarouselEl' import pro...
/** * Decentralized Research Publishing Platform * * @file review-page-web3.js file contains the java script based functions for the review.html page * it displays the papers waiting for review or submitted as final or rejected. This page also allows a reviewer * to assign himself as a reviewer for any paper and ...
var projectionMatrix; var shaderProgram, shaderVertexPositionAttribute, shaderVertexColorAttribute, shaderProjectionMatrixUniform, shaderModelViewMatrixUniform; var duration = 5000; // ms // Attributes: Input variables used in the vertex shader. Since the vertex shader is called on each vertex, these will be dif...
// // PARAMETERS // var radius = 5; // Pixel radius of a particle var dim = 500; // Dimension of the canvas (square) var K = 500; // Temperature of the system var kb = 1.0 // Boltzmann constant used for Temp calculation // // GLOBAL VARIABLES // var particles = []; // Particles to plot on the canvas var selected = [];...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import deepEqual from 'fast-deep-equal'; import { moveTop, moveRight, moveBottom, moveLeft, levelup, restart, fightBoss, fightEnemy } from './../../actions' const controls = { top: ['w','i','ArrowUp'], right: ['d', 'l', 'ArrowRigh...
import React from 'react'; import PropTypes from 'prop-types'; import { Autobind } from 'es-decorators'; import { toastr } from 'react-redux-toastr'; import isEmpty from 'lodash/isEmpty'; import truncate from 'lodash/truncate'; import d3 from 'd3'; // Redux import { connect } from 'react-redux'; import { setBand } fro...
/*! ========================================================= * Argon Dashboard React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
'use strict'; function recursiveOverride(source, merge) { for (var i in merge) { switch (true) { case merge[i] && merge[i].constructor === Object: if (!source[i]) source[i] = {}; recursiveOverride(source[i], merge[i]); break; ...
"use-es6"; import React, { Component } from "react"; import { Header, Container, Table, Button } from "semantic-ui-react"; import QueueAdd from "../Components/QueueAdd"; import StackPop from "../Components/StackPop"; import { queueBigOInfo } from "../Constants/TableConstants"; import BigOTable from "../Components/BigO...
var statusupdate = false; var selected_network_ssid = ""; var lastmode = ""; var ipaddress = ""; // get statup status and populate input fields var r1 = new XMLHttpRequest(); r1.open("GET", "status", true); r1.onreadystatechange = function () { if (r1.readyState != 4 || r1.status != 200) return; var status_fix =...
var Constants = require('Constants'); var CompositeShapeGenerator = require('shape/CompositeShapeGenerator'); var Materials = require('materials/Materials'); var OBBFitter = require('geo/OBBFitter'); var async = require('async'); var _ = require('util/util'); var defaultOpts = { '_all_': { 'inferMaterial': true }, ...
import React, { useContext, useState } from "react"; import { isEmpty } from "lodash"; import { Box, CircularProgress } from "@material-ui/core"; import { useDispatch } from "react-redux"; import Table from "../../Table"; import { ConfirmDialog } from "../../Dialogs"; import tradeApi from "../../../services/tradeApiCli...
function clearScene(){ //clear everything first while (params.scene.children.length > 0){ params.scene.remove(params.scene.children[0]); } } function createParticleGeometry(parts, start, end){ //geometry var geo = new THREE.BufferGeometry(); //if all == true, then we draw all the particles except the firs...
// ================================================================= // get the packages we need ======================================== var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var morgan = require('morgan'); var mongoose = require('mongoose'...
import React, {useState, useContext, useEffect, useRef} from 'react'; import {makeStyles, withStyles} from '@material-ui/core/styles'; import {useStaticQuery, graphql} from "gatsby" import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepButton from '@material-ui/core/Step...
(function($, undefined){ $(function(){ /* Регистрация */ $('.registration-user div h6 span').click(function(){ var target = $(this).data('target'); $('.registration-user form').hide(); $(target).show(); }); /* */ $('#registration').submit(function(){ ...
import React, {useEffect} from 'react'; import { StyleSheet, Text, View, Modal, Alert, TouchableOpacity, useColorScheme, Image, ScrollView, RefreshControl, FlatList, TextInput } from 'react-native'; import Ionicons from 'react-native-vector-icons/Ionicons'; import {SafeAreaVi...
"use strict"; 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)...
import { FormControl, Select, Typography, TextField, Divider, Button, Box, Card, CardActionArea, CardMedia } from '@material-ui/core'; import React, { useEffect, useState } from 'react'; import { useParams, useHistory } from 'react-router-dom'; import { makeStyles } from '@material-ui/core/styles'; import Paper from '@...
$(document).ready(function(){ Listar_Personal(); }); function Listar_Personal() { var tabla = $('#Table_Personal').dataTable({ "aProcessing": true,//Activamos el procesamiento del datatables "aServerSide": true,//Paginación y filtrado realizados por el servidor //"dom": 'Bfltip',//Def...
// // SuitabilityGeothermalDrillingSwitzerland // // TODO: - license? // - add verbose/console.log switch // - uniform error handling // 'use strict'; // import fetch from "node-fetch"; //node js only, disable for browser compilation <<<<<<<<<<<<<<<<<<<<<<<<<< // import jsdom from "jsdom"; ...
// Copyright (c) 2012 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. // Directory that contains all the files used in tests. All files are created // and cleaned up on C++ side of the test. Initially, all files will hav...
"use strict"; Object.defineProperties(exports, { Peer: {get: function() { return Peer; }}, __esModule: {value: true} }); var Channel = require('./channel').Channel; var Stream = require('./stream').Stream; var _ = require('lodash'), emitter = require('../emitter')(); var RTCPeerConnection = (window.Pe...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.PureTimePicker = undefined; 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)...
/** * 处理有tab的情况(有tab就不会有快速导航) * @author chenliang * @email <EMAIL> * @time 2013/12/25 **/ var $ = require("common:widget/ui/jquery/jquery.js"), UT = require("common:widget/ui/ut/ut.js"), helper = require("common:widget/ui/helper/helper.js"), message = require("common:widget/ui/message/src/message.js"); function...
/* ActivityComponent component per i dettagli specifici di una attività; fornisce le funzionalità di aggiornamento dell'attività; fornisce le funzionalità di AGGIUNTA di un aggiornamento nello sviluppo dell'attività. */ import React, { useEffect, useState, useContext } from "react"; import { useHistory, usePa...
window.App = window.App || {} window.App.n0 = window.App.n0 || {} window.App.n0.eu = window.App.n0.eu || {} window.App.n0.eu.Data = window.App.n0.eu.Data || {}; (function($) { this.questions = []; this.answers = []; this.parties = []; }).call(App.n0.eu.Data, jQuery); var questions = [ {'q5770': 'Mitä mieltä...
/**************************************************************** * author:FengYan * date:2017-02-13 * description:GetAllCategory * childComponents:GetAllCategory ****************************************************************/ import React, {Component} from 'react'; import {Table, Modal, Row, Col, Input, Button,...
// state export const state = { configKonva : { width : 800, height: 800 }, typeSelecting : null, textItems : { group1: [], group2: [], group3: [], group4: [], group5: [], }, imageItems : { group1: [], group2: [], group3: [], group4: [], group5: [], ...
import colorbrewer from 'colorbrewer'; import { ckmeans } from 'simple-statistics'; import { comparator } from '../utils/files'; import { getCurrentState } from '../store/actions/actions'; const defaultRadiusRange = [ '3', '6', '9', '12', '15', '18', '21', '24', '27', '30', ]; const getColorBrewer...
/* @author <NAME> MIT License Copyright (c) 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
import * as Gb from './gbapi.js' function showTeacherView(){ $(".main-view").empty().append( $(`<div class="teacher-list list container-fluid mt-2"></div><div class="teacher-container form-container mt-2"></div>`)); showList(); } function createTeacherItem(t, index){ let html = `<li data-index="$...
const { DEFAULT_TIMEOUT } = require('./utils'); const importCss = require('./importCss'); const importJs = require('./importJs'); module.exports = function (modules = [], { jsonpFunction = 'webpackJsonp', publicPath = '', cssChunks = {}, jsChunks = {}, context = {}, timeout = DEFAULT_TIMEOUT, head, } = {...
import { useContext, useState } from "react"; import { useCollection } from "react-firebase-hooks/firestore"; import Select from "react-select"; import DatePicker from "react-datepicker"; import "react-datepicker/dist/react-datepicker.css"; import PanelStickyHeader from "./PanelStickyHeader"; import Modal from "@co...
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...
var dataSource = [ { argument : '1', value1 : 7112092358160.297125, value2 : 0.155, value3 : 'A', value4 : '2016-01-01 01:01:01:000', value5 : true }, { argument : 'q', value1 : 5121162151255.187109, value2 : 0.195, value3 : 'A', value4 : '2016-02-02 01:01:01:001', value5 : false }, { argument : 'a', value1...
if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/serviceworker.js') .then(reg => console.log('service worker registered')) .catch(err => console.log('service worker not registered', err)); } const loadImage = (e) => { document.getElementById('viewImage').src = URL.c...
class ControlMethod { constructor(name) { this.name = name; // used for reference observer pose. this.vp = new THREE.Vector3(0, 0, 0); // observer view point this.th = 0; this.ph = -Math.PI / 2; this.ps = 0; this.dist = 1 * GLOBAL_SCALE; this.baseTh...
import {React, useEffect, useState} from 'react'; import {api, handleError} from 'helpers/api'; import {useHistory, useParams} from 'react-router-dom'; import BaseContainer from "components/ui/BaseContainer"; import {EstimateTotals} from "components/ui/EstimateTotals"; import DeleteForeverOutlinedIcon from "@mui/icons-...
// ____main____ var RANK = 3; const form = document.querySelector('.user-form'); if (form) { form.addEventListener('submit', this.handler.bind(this), false) } /** * Обработчик формы * @param {Event} event */ function handler(event) { event.preventDefault(); let values = getValues(); console.log(val...
/////////////////////////////////////////////////////////////////////////////// // @file : app.js // // @summary : Main Application entry point // // @version : 0.1 // /...
/*! ============================================================================= BlockPro ============================================================================= Автор: ПафНутиЙ URL: http://pafnuty.name/ twitter: https://twitter.com/pafnuty_name google+: http://gplus.to/pafnuty email: <EMAIL> ===========...
/* File: navbar.js Author: <NAME> Date: 02/03/2021 */ // ================ REQUIREMENTS ============ const { BrowserWindow } = require('electron').remote; const { exec, execSync } = require('child_process');// Exec Module const {dialog} = require('electron').remote;// Dialog Module const path = require('p...
String.prototype.length = function(){ return this.match(/[^ -~]/g) == null ? this.length : this.length + this.match(/[^ -~]/g).length ; } var format_check = { focus_obj:function(o){ scrollTo(0,0); }, empty: function (p) { var o = p[0]; var min_len = p[1]; var max_len = p[2]; var v = $.trim($(o).val()); ...
/* eslint-disable no-useless-constructor */ import React from 'react'; import { runInAction, toJS } from 'mobx'; import { notify } from 'react-notify-toast'; import { Component } from 'react'; import { Form, Input, Button, Radio, Row, Col, Table } from 'antd'; import { fetchProcessVars } from './inboxstore'; import { g...
const mongoose = require('mongoose') const router = require('express').Router() let Data = require('../models/data.model') let User = require('../models/user.model') let Token = require('../models/token.model') function Verification(quest, req, res){ User.findOne({'username': req.body.verification.user.username}) ...
const ObjectID = require("bson-objectid"); const faker = require("faker"); const takeRight = require("lodash").takeRight; const isoDate = require("./utils").isoDate; const delay = require("./utils").delay; const http = require("http"); const agent = new http.Agent({ maxSockets: 25 }); const AWS = require("aws-sdk"); co...
#!/user/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const https = require("https"); const fs = require("fs"); const express = require("express"); const socket = require("socket.io"); const redis = require("redis"); const mqtt = require("mqtt"); const SerialPort = require("s...
import $ from './tools' import {cmpstaus,global} from '../config/global' import getFile from './getFile' import myLoader from '../core/loader' const regx = { Regx_name : /^\.[\/|\\]\w+[\/|\\]/, Regx_name_l : /^(\.[\/|\\])/g, Regx_name_r : /^[\/|\\]/g, Regx_prefix :...
function GetPluginSettings() { return { "name": "SysExt", "id": "Rex_SysExt", "version": "0.11", "description": "System extension", "author": "Rex.Rainbow", "help url": "https://rexrainbow.github.io/C2RexDoc/c2rexpluginsACE/plugin_rex_systemext.html", "category": "Rex - System helper", "type"...
"use strict"; const chalk = require('chalk'); const axios = require('axios'); const bcrypt = require('bcryptjs'); const createHash = require('crypto').createHash; const steedosLicense = require("@steedos/license"); const objectql = require('@steedos/objectql'); // const randomstring = require("randomstring"); const pro...
import React, { Component } from "react"; import MapGL, { Popup, GeolocateControl, NavigationControl } from "react-map-gl"; import "./mapbox-gl.css"; import Pins from "./Pins"; import mapConfig from "./mapConfig"; import { _getGeocoderResourse, updateFireData } from "../firebase/firebase-api"; import ButtonUI from "@ma...
import { Intersection } from 'kld-intersections' import isEqual from 'lodash.isequal' import unionWith from 'lodash.unionwith' import flattenDeep from 'lodash.flattendeep' const uid = 'geosplit@cXiaof' const options = { deleteTargets: true, colorHit: '#ffa400', colorChosen: '#00bcd4', } export class GeoSp...
import Sidebar from '@/Layouts/Sidebar'; import React from 'react'; import { InertiaLink } from '@inertiajs/inertia-react'; import { Link } from 'react-router-dom'; import { PaperClipIcon } from '@heroicons/react/solid' import NavLink from '../Components/NavLink'; import { useHistory } from "react-router-dom"; cons...
var params = []; var querySuccess = true; var curPage = 0; function updateResults() { params = params.filter(function(v) { return !v.startsWith('limit=') }); var idQuery = params.filter(function(v) { return v.startsWith('event_id=') }) if (idQuery.length >0) { $.ajax({ ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
let i, seed = 13312; let assetsList = ["logo.svg", "rocket.svg", "tree.svg", "seagull.svg", "plane.svg", "cloud.svg"]; let assets = []; assetsList.forEach(assetName => { let asset = new Image(); asset.src = assetName; assets.push(asset); }); let size = 500; let showControlsUI = true; let buttons = { p...
$(document).foundation(); var environ = window.location.host; if (environ === "localhost") { var baseurl = window.location.protocol + "//" + window.location.host + "/" + "balance/"; } else { var baseurl = window.location.protocol + "//" + window.location.host + "/"; } var app = angular.module('MainApp', ['ngRout...