text
stringlengths
3.22k
29.5k
import React, { Component } from 'react'; import Map from 'pigeon-maps' import Marker from 'pigeon-marker/react' import Overlay from 'pigeon-overlay' import man from './img/baseline.png' import Mqtt from 'mqtt' import { Container, Button, Dropdown, List, Message, Form } from 'semantic-ui-react' import web3 from './ethe...
/***************************** ** File: main.js ** Description: Main Javascript file. Contains soundmanager setup for sound objects and implementations of ** both supporting and new functions to extend the SoundManager2 JS Lib. ** Also contains scripts to control modal ...
//#15.00Aa WDTiroir.JS //VersionVI: 30A150063j // Le seul support technique disponible pour cette librairie est // accessible a travers le service "Assistance Directe". // Manipulation des champs tiroir // Animation de l'ouverture ou de la fermeture du champ tiroir function WDAnimTiroir (oTiroir, bOuverture, nHauteur...
'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...
import React from 'react'; import { Show, Filter, TextInput, List, Datagrid, TextField, ArrayField, UrlField, SimpleForm, Create, SelectInput, LongTextInput, NumberInput, FormDataConsumer, maxValue, } from 'react-admin'; import { Button, Card, CardActions, Car...
'use strict'; /* eslint-disable import/no-extraneous-dependencies */ const _ = require('lodash'); const Koa = require('koa'); const crypto = require('crypto'); const url = require('url'); const uuid = require('uuid'); const jose = require('node-jose'); const path = require('path'); const Router = require('koa-router'...
// Create a new graph function initGraph(svg) { var graph = { nodes : [], links : [], vis : svg }; graph.addNode = function (id) { graph.nodes.push({"id":id}); graph.findNode(id).nbWalker = 0; graph.findNode(id).color = "#000000"; graph.findNode(id).nbWalkers = []; ...
"use strict" // import { request } from "https"; var game_script = require("../game_script.json") const game_controller = require('./game_controller') const serial = require('../routes/serial'); const delay = require('delay'); const request = require('request'); const game_config = require('../config/config.json') va...
'use strict'; var React = require('react/addons'); var d3 = require('d3'); var _ = require('lodash'); var popover = require('./popover'); var BarChart = module.exports = React.createClass({ chart: null, onWindowResize: function() { this.chart.update(); }, componentDidMount: function() { //console.log...
import React from 'react'; import styled from 'styled-components'; import { SmallCheckbox } from './Elements/Checkbox'; import downloadIcon from '../assets/icons/download.svg'; import { Spacer } from './Elements/Spacer'; import { Scrollbar } from './Elements/Scrollbar'; import { timeSince, CopyableText } from '../utils...
const qs = require('query-string'); const url = require('url'); const QuickLRU = require('quick-lru'); const _ = require('lodash'); const InvalidParamError = require('../errors/invalid-param'); const { cachePromise } = require('../cache'); const { fetch } = require('../../util'); const logger = require('../logger'); c...
/* Copyright 2016 Streampunk Media Ltd. 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 wri...
import { signe, fract } from '../utils/numbers'; class Vec3 { constructor(x = 0, y = 0, z = 0) { this.d = [0, 0, 0]; this.set(x, y, z); } normalise() { const length = this.length(); if (length !== 0) { this.d[0] /= length; this.d[1] /= length; this.d[2] /= length; } ret...
import Head from "next/head"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; import Link from "next/link"; import { ReportAProblem } from "../components/organisms/ReportAProblem"; import { ActionButton } from "../components/atoms/ActionButton...
/** * QValid的最大长度, 用于第一次标准化计算限制QValid, * 使第一次计算的计算时间减少. 由于只是使用未标准化的目标值来 * 排除无用关卡, 不太准确, 不建议太小的值. */ const PC_QValidMaxLength_firstCalc = 48; /** * Qvalid的最大长度, 用于第一次标准化归一化计算后限制Qvalid, * 使第二次计算和微调时计算时间更少. 由于微调功能会改变目标值, * 可能导致目标值改变太大, 因此不建议过小的值排除太多关卡 * 要小于QValidMaxLength_firstCalc, 否则可能导致bug */ const PC_QValidM...
import React, { Component } from 'react' import { Link } from 'react-router-dom' import styled from 'styled-components' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faBars, faWallet, faRandom, faGift, //faComments, //faChartBar, faQuestion, faSitemap, faSignOutAlt, //faBookDead, ...
/* Keep in mind that you can't use browser specific calls. Use following calls --Loading httpContents-- loadURL(method,url,headers); --Logging to the Console-- log(value); --Base64-- base64Encode(string); Expected result is a JSON string representation of an array. [ {"startDate":"2015-05-24T17:49:...
import * as React from 'react'; import { FlatList, Image, PixelRatio, ScrollView, StyleSheet, Text, TouchableOpacity, View, Alert, } from 'react-native'; import {connect} from 'react-redux'; import MapView, { Marker } from 'react-native-maps'; import { useNavigation } from '@react-na...
import { Icon, SideSheet, Modal } from '../../index'; import { BASE_CLASS_PREFIX } from '../../../semi-foundation/base/constants'; // import toJson from 'enzyme-to-json'; function getSideSheet(SideSheetProps, children) { let props = SideSheetProps ? SideSheetProps : {}; return ( <SideSheet ...
"use strict"; // GameObject constructor var GameObject = function(x, y) { this.x = x; this.y = y; } // GameObject functions GameObject.prototype.init = function() { } GameObject.prototype.update = function() { } GameObject.prototype.draw = function(ctx) { } // Ball constructor var Ball = function(x, y, vx,...
import { createElement, createContext, useContext, Component } from 'react'; import classNames from 'classnames'; import moment from 'moment'; import HTMLParser from 'html-react-parser'; import Moment from 'react-moment'; const Left = () => createElement("svg", { height: 30, viewBox: "0 0 320 512" }, createElement...
var ftdi = require('./index'); var state = 0; const STATE_LOOPBACK_TEST = 0; const STATE_LOOPBACK_DISABLED = 1; let mSpiConfig_HS = [ 0x8A, // Use 60MHz master clock (disable divide by 5) 0x97, // Turn off adaptive clocking 0x8D, // Disable 3 phase clocking ] let mSpiConfig_CLK = [ 0x86, 0xDB,...
function validateData() { return true; } function get_all_resources(resource){ //alert("Hello World"); displayString = "1. abc-org-tenant1 <br> 2. abc-org-tenant2" num_of_instances = document.getElementById("num_of_instances"); num_of_instances.innerHTML = "Calculating..."; num_of_instances.setAttribute("...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path = require("path"); const package_1 = require("../install/package"); const common_1 = require("../utils/common"); const utils_1 = require("./utils"); const { builtins, applyMap } = require('@jspm/resolve'); const url_1 = require("url...
import React, { useState, useCallback } from 'react'; import moment from 'moment'; import { Droppable } from 'react-beautiful-dnd'; import { CaretDownOutlined } from '@ant-design/icons'; import { Tag, Empty, Menu, message, Button } from 'antd'; import DropDown from '@components/CustomAntd/drop_down'; import { Link } fr...
import React, { Component } from 'react'; import CafeLayout from './CafeLayout'; import {Card, CardWithTitle, ImageCard} from '../../components/Card'; import { RoundAvatar } from '../../components/Avatar'; import connect from 'react-redux/es/connect/connect'; import { getCafeDetail, updateImage } from '../../actions/Ca...
'use strict'; const minimist = require('minimist'); const chalk = require('chalk'); const path = require('path'); const fs = require('fs-extra'); const franc = require('franc'); const _ = require('lodash'); const pkg = require('./package.json'); const findCountryCode = require('./lib/country'); const preprocess = requ...
import RRule from './rrule'; import RRuleSet from './rruleset'; import dateutil from './dateutil'; import { Weekday } from './weekday'; import { includes, split } from './helpers'; /** * RRuleStr * To parse a set of rrule strings */ var RRuleStr = /** @class */ (function () { function RRuleStr() { // ts...
const axios = require('axios'); const { forwardTo } = require('prisma-binding'); const { transformEvents, fetchEvents, setDates, getScore } = require('../utils'); const stripe = require('../stripe'); const moment = require('moment'); const MessageQuery = require('./Messages/MessageQuery'); const UserQuery = require('./...
import * as d3 from "d3"; const innerRadius = 100; const middleRadius = 200; const outerRadius = 250; const innerTextRadius = (middleRadius-innerRadius)/2 + innerRadius; const middleTextRadius = (outerRadius-middleRadius)/2 + middleRadius; const outerTextRadius = outerRadius + 10; const xOffset = 300, yOffset = 300; ...
// handle the "POST /provider-request" request to obtain a new access token given a refresh token 'use strict'; const RestfulRequest = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/util/restful/restful_request.js'); const ModelSaver = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/util/restful...
/* ApplicationDbContext -------------------- 1) Database transactions: CRUD operations 2) Cache for loaded content / data */ var applicationDbContext = { "init": function(strConnection) { this._strConnection = strConnection; // Connection String to the key in the localstorage this._dbData = { ...
import Vue from "vue"; import Vuex from "vuex"; import axios from "axios"; import _ from "lodash"; Vue.use(Vuex); export default function createStore(appId) { return new Vuex.Store({ state: { activities: [], activityPercents: [], areas: [], contentWidth: 1024, bizDeliverables: [], ...
/** * 将 swagger json 转成渲染所需的结构,并添加部分字段的拼音。 */ import $ from '@/utils/$'; import pinyin from 'pinyin'; function fixSwaggerJson(swaggerJson) { const info = { license: {} }; Object.assign(info, swaggerJson.info); let data = { info: info, beanMap: fixBeanMap(swaggerJson.definitions), ...
const fs = require("fs"); const path = require("path"); const zlib = require("zlib"); const chalk = require("chalk"); const cliProgress = require("cli-progress"); const program = require("@caporal/core").default; const { prompt } = require("inquirer"); const { Document, slugToFolder, translationsOf, CONTENT_R...
import React, { Component, PropTypes } from 'react' import { findDOMNode } from 'react-dom'; import {connect} from 'react-redux' import {chatHide,submitText,submitImg,getHistory,chatShowAction} from './modules/chat' import {imgbrowserShow} from '../ImageBrowser' import './chat.scss' @connect( state=>({chat:state.cha...
document.addEventListener("deviceready", onDeviceReady, false); var db = window.openDatabase("gastos", "1.0", "local database", 200000); //will create database Dummy_DB or open it //function will be called when device ready function onDeviceReady(){ db.transaction(function populateDB(tx){ t...
// Collect : Collect, Store and Forward industrial data // Copyright SPIA Tech India, www.spiatech.com // MIT License import React, { useEffect, useState } from 'react' import { makeStyles } from '@material-ui/core/styles'; import Container from '@material-ui/core/Container' import Paper from '@material-ui/core/Pap...
const gulp = require('gulp'); const gutil = require('gulp-util'); const sass = require('gulp-sass'); const autoprefixer = require('gulp-autoprefixer'); const concatenate = require('gulp-concat'); const browsersync = require('browser-sync').create(); const eslint = require('gulp-eslint'); const babel = require('gulp-bab...
/** * <NAME> (https://github.com/BerndWessels/) * * Copyright © 2017 <NAME>. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; /** * Import dependencies. */ const fs = require('fs'); const pa...
import { viewrisksConstants } from '../_constants'; import * as utilsfunc from '../utils/commonutils' import { Stack } from '../utils/stack' // function riskCompare(a, b) { // var nameA=a.node.risk_name.toLowerCase(), nameB=b.node.risk_name.toLowerCase() // if (nameA < nameB) //sort string ascending // ...
var idIndex = -1; var nameIndex = -1; function getAPISource() { return '../api/v1/'+$('#dataGrid').data('source'); } function getAPICall() { var finished = getParameterByName('finished'); var filter = ''; if(finished !== null) { filter = '&$filter=final eq true and year eq current'; } return getAPIS...
// Libp2p Core import Libp2p from 'libp2p'; // Transports import Websockets from 'libp2p-websockets'; import WebrtcStar from 'libp2p-webrtc-star'; // Stream Muxer import Mplex from 'libp2p-mplex'; // Connection Encryption import { NOISE } from 'libp2p-noise'; import Secio from 'libp2p-secio'; // Peer Discovery impo...
/* copyright 2019, <NAME> @allyoucanmap. */ import * as geoProjection from 'd3-geo-projection'; import * as geoPolygon from 'd3-geo-polygon'; const parent = document.body; const toolbar = document.createElement('div'); toolbar.setAttribute('class', 'toolbar'); parent.appendChild(toolbar); const content = document.cre...
import React, { useState } from 'react'; import { NavLink, Link } from 'react-router-dom'; import styled from 'styled-components'; import { ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; import logo from '../assets/logo-green.png'; import SelectTeam from './SelectTeam'; import { theme...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Form, Input, Modal, ModalHeader, ModalBody, ModalFooter, Button, Badge, Card, CardBody, CardHeader, Col, Row, Table, Pagination, PaginationItem, PaginationLink } from 'reactstrap'; import wretch from 'wretch' import qs from ...
/* globals Plotly */ import Observable from 'o_0'; import axios from 'axios'; import {throttle} from 'lodash'; import moment from 'moment-mini'; import AnalyticsTemplate from '../templates/includes/analytics'; import AnalyticsTimePopPresenter from './pop-overs/analytics-time-pop'; import AnalyticsProjectsPopPresenter...
import React, { useEffect, useState } from 'react'; import './css/index.css'; const loadingIcon = ( <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="spinner" className="reactive-btn-loading-svg reactive-spin" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="curr...
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the MIT license. Please see LICENSE file in the project root for terms. /* jshint ignore:start */ /* jscs:disable */ // // =========================================================================== // vars // ================================================...
'use strict' // node and external modules const fs = require('fs'); const os = require('os'); const path = require('path'); const WebSocketServer = require('ws').Server; // our stuff const { ADBClient } = require('./adbclient'); const { AndroidContentProvider } = require('./contentprovider'); const { checkADBStarted } ...
import PointCollection from './PointCollection'; import TextCollection from './MSDFTextCollection'; import PolyLineCollection from './PolyLineCollection'; import {Colors, LayerLevels, NamedGroups} from './constants'; import createPointerEventsHandler from './createPointerEventsHandler'; import bus, {setProgress} from '...
/* * @Description: TODO * @Author: zb * @Date: 2019-08-31 18:57:40 * @LastEditors: zb * @LastEditTime: 2019-09-12 00:22:47 */ /** 静态资源的打包配置 */ const path = require('path'); const nodeExternals = require('webpack-node-externals'); const htmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin ...
///<reference path="lib\jquery.d.ts" /> ///<reference path="lib\lodash.d.ts" /> var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var $gameWindow; var a...
import { EmisorError, EmisorTypeError } from './errors'; import { isString, isSymbol } from './helpers'; import { EmisorHook, EmisorHookAll, EmisorHookEventStr } from './hook'; import { EmisorPlugin } from './plugin'; export * as helpers from './helpers'; /** * @typedef {import('./hook').EmisorHookFnc} EmisorHookFnc ...
import React, { useState, useEffect } from 'react'; import { View, AppRegistry, Platform, DeviceEventEmitter, Dimensions, PixelRatio, } from 'react-native'; // https://github.com/software-mansion/react-native-gesture-handler/issues/320#issuecomment-443815828 import 'react-native-gesture-handler'; import { A...
'use strict'; let jwt = require('jwt-simple'); let crypto = require('crypto'); let moment = require('moment'); let mysql = require('./mysql'); let base = {}; //生成随机数 base.getRandomCode = function (min, max) { let code = Math.floor(Math.random() * (max - min + 1) + min); return code.toString(); }; //md5密码加密...
// TODO: properly route back to the programs, can do this by setting the id in session import React, { Component } from "react"; import { PropTypes } from "prop-types"; import { Session } from "meteor/session"; import i18n from "meteor/universe:i18n"; import { withTracker } from "meteor/react-meteor-data"; import { _C...
/** * Created by bedeho on 21/03/2018. */ import React, { Component } from 'react' import PropTypes from 'prop-types' import {Field} from './../../../components/Table' import { Provider, observer, inject } from 'mobx-react' import assert from 'assert' import ReactTooltip from 'react-tooltip' import CircularProgress ...
Vue.component('todo-item', { props: ['todo'], template: '<li>{{ todo.text }}</li>' }) var app7 = new Vue({ el: '#app-7', data: { groceryList: [ { id: 0, text: 'Vegetables' }, { id: 1, text: 'Cheese' }, { id: 2, text: 'Whatever else humans are supposed to eat' } ] } }) var vm = new...
$(document).ready(function(){ //// Menu //// $('.nav__button').click(function(){ $('.nav__menu').removeClass('hidden'); $('.window-blackout').removeClass('hidden'); $('body').css('overflow-y', 'hidden'); }); $('.menu__close').click(function(){ $('.nav__menu').addClass('hidden'); $('.window-blackout')...
/* app.js * Main js file for Frogger game. * Author: <NAME> */ "use strict;" /* Classes */ const Game = require('./game.js'); const Player = require('./player.js'); const Semi = require('./semi.js'); const Racer = require('./racer.js'); const Mini = require('./mini.js'); const Van = require('./van.js'); const Enti...
/* eslint-disable react/no-this-in-sfc */ /* eslint-disable react/jsx-filename-extension */ import React, { Component } from 'react'; import { Alert, Button, FlatList, Modal, PanResponder, ScrollView, Share, StyleSheet, Text, View, } from 'react-native'; import { Card, Icon, Input, Rating, }...
import { LitElement, html } from '../../vendor/lit-element/lit-element.js' import { repeat } from '../../vendor/lit-element/lit-html/directives/repeat.js' import * as session from '../lib/session.js' const METRIC_GRAPH_COLORS = { 'signed-up': 'rgba(255, 99, 132, 1)', 'logged-in': 'rgba(54, 162, 235, 1)', 'commun...
const pc=window.matchMedia('(min-width:768px)') const notpc=window.matchMedia('(max-width:768px)') const notpct=window.matchMedia('(max-width:360px)') var anima= document.querySelector(".anima") var polygon=document.querySelector(".polygon") var bt=document.querySelector(".bgimage") var t=window.scrollY gsap...
#!/usr/bin/env node const fetch = require('node-fetch') const path = require('path') const fs = require('fs') const program = require('commander') const chalk = require('chalk') const MultiProgress = require("./multi-progress") const Enc = require('./crypto') const querystring = require('querystring') const NETEASE_AP...
'use strict'; /// Global var tries = 4; var uniqueIndexArray = []; var definitionArray = [ ['HTML', 'Hypertext Markup Language (HTML)'], ['CSS', 'Cascading Style Sheets'], ['GitHub', 'GitHub is a web-based version-control and collaboration platform for software developers'], ['DOM', 'Document Object...
function getPropagationChartConfig() { // set the dimensions and margins of the graph const svgHeight = 500; const svgWidth = 690; const margin = { top: 20, right: 20, bottom: 90, left: 50 }; const margin2 = {top: 440, right: 20, bottom: 30, left: 50}; const height = svgHeight - margin.top - margin.bottom;...
var interval var dataJSON = [] document.addEventListener('DOMContentLoaded', () => { switchPage('home') //Grabs the 5 necessary JSON objects for Trending Movies and On-Air TV const routes = ['/movies', '/tv'] var requests = new Array(routes.length) for (let i=0; i<routes.length; i++) { ...
var panel_lists = new Array(); var panel_obj_lists = new Array(); panel_lists['ts'] = new Array(); panel_lists['vp'] = new Array(); panel_obj_lists['ts'] = new Array(); panel_obj_lists['vp'] = new Array(); setInterval(update_all_charts_from_source, 5000); function chartpanel(toggle_id, type) { this.toggle_id = tog...
const Tellor = artifacts.require("./TellorTest.sol"); // globally injected artifacts helper var masterAbi = Tellor.abi; var UtilitiesTests = artifacts.require("./UtilitiesTests.sol"); const TestLib = require("./helpers/testLib"); const helper = require("./helpers/test_helpers"); const BN = web3.utils.BN; contract("Req...
/*eslint no-undef: "error"*/ /*eslint-env node*/ /** * Retrieves a list of categories, courses, unique category names based on the courses * and a guess at the possible mode of delivery for each course. */ /* TODO - Get regions from time zone mapping - start end times as moment */ let moment = requ...
import React, {useState} from 'react' function SuccessMessage({toggle}) { const [smShow, setSmShow] = useState(true); const handleClose = () => setSmShow(false); // if (!smShow) { toggle(false); } if (smShow) { setTimeout(handleClose, 5000); } return ( <div cla...
/*eslint browser: true, indent: 2 */ /* global d3: false, $: false, alert: false, bumpChartPhotos: false , FlickrUtils: true, console: true, utils: true */ //Main "use strict"; var margin = {top: 10, right: 10, bottom: 10, left: 10}, width = 960 - margin.left - margin.right, height = 600 - margin.top - margin.bot...
class Value { constructor(ano, mes, dia, tipo, descricao, valor) { this.ano = ano this.mes = mes this.dia = dia this.tipo = tipo this.descricao = descricao this.valor = valor } validateValues() { for(let i in this) { if (this[i] == null || this[i] == undefined || this[i] == '' )...
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require("react"); const CompLibrary = require("../../core/CompLibrary.js"); const Container = CompLibrary.Container; cons...
var aiota = require("aiota-utils"); var path = require("path"); var amqp = require("amqp"); var crypto = require("crypto"); var jsonValidate = require("jsonschema").validate; var MongoClient = require("mongodb").MongoClient; var config = null; var bus = null; var busReady = false; function randomKey(len, chars) { ...
/*jslint node: true, indent: 4, todo: true */ 'use strict'; var async = require('async'), xRegExp = require('xregexp').XRegExp, request = require('request'); var parser, discourse, conf, configuration; /** * @var {string} description Brief description of this module for Help Docs */ exports.des...
var object = require('./util/object'); /** * math.js factory function. * * Usage: * * var math = mathjs(); * var math = mathjs(settings); * * @param {Object} [settings] Available settings: * {String} matrix * A string 'matrix' (default) or 'arra...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "recipe-collection-9b6b5.firebaseapp.com", databaseURL: "https://recipe-collection-9b6b5.firebaseio.com", projectId: "recipe-collection-9b6b5", storageBucket: "recipe-collection-9b6b5.appspot.com", messagingSenderId: "290123707471" }; fireba...
import React, { Component } from 'react'; import { ButtonToolbar, PageHeader, Grid, Row, Col, Panel } from "react-bootstrap"; import Button from "../button/Button"; import ButtonToolbarSeparator from "../button/ButtonToolbarSeparator"; import PagedTable from "../table/PagedTable"; import { ob...
import { Observable, Subscription } from 'rxjs/Rx'; import { observeEvent } from 'esp-js'; import { viewBinding } from 'esp-js-react'; import logger from '../../../system/logger'; import { Environment } from '../../../system/'; import { ModelBase, RegionManagerHelper } from '../../common'; import { TradeExecutionNotifi...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.DIGITS = exports.MAX_LENGTH_COUNTRY_CODE = exports.MAX_LENGTH_FOR_NSN = exports.PLUS_CHARS = exports.VALID_PUNCTUATION = exports.VALID_DIGITS = exports.WHITESPACE = undefined; exports.parseDigit = parseDigit; exports.extractCountryCa...
import React, { useState, useEffect } from "react"; import { Button, Divider, Input, List } from "antd"; import { Web3Consumer } from "../helpers/Web3Context"; import { Card as CardView, Address, PassportView } from "../components"; import dynamic from "next/dynamic"; const ReactJson = dynamic(() => import("react-json-...
import { Typography, FormGroup, InputLabel as InputLabel1, Input as Input1, Button as Button1, TextField} from '@material-ui/core'; import { useEffect, useState } from 'react'; import styled from 'styled-components'; import { firebaseConfig } from "./firebaseConfig" import firebase from '@firebase/app'; import { useHis...
"use strict"; 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 ("value" in descriptor) descriptor.writable = true; Object.definePrope...
require("dotenv").config(); const express = require("express"); const expressLayouts = require("express-ejs-layouts"); const { loadContacts, findContact, addContact, checkDuplicate, deleteContact, updateContacts } = require("./utils/contacts"); const { body, validationResult, check } = require("express-validator"); con...
import Chrome from '../Chrome'; import StorageManager from './StorageManager'; import RLE from './RLE'; import Mutex from '../Mutex'; import M from '../Messages'; import * as firebase from 'firebase/app'; import 'firebase/database'; class History { constructor() { this.storage = new StorageManager(new HistorySc...
/** * Created by tapes on 16/9/16. */ "use strict"; const fs = require('fs'); const parse = require('csv-parse'); const transform = require('stream-transform'); const stringify = require('csv-stringify'); const path = require('path'); const iconv = require('iconv-lite'); const _ = require('underscore'); const defau...
"use strict" const tempFolder = "/temp/" const thumbSuffix = ".small.jpg" const thumbsFolder = "/thumbs/" const mainBucket = "/mainbucket/" function getTempThumb(id) { return tempFolder + id + thumbSuffix; } function getThumbURL(id) { return thumbsFolder + id; } function getPreviewURL(id, type) { if (type ==...
var tim = require('tinytim').tim; exports.hash = hash; exports.jsonToObj = jsonToObj; exports.isNothing = isNothing; exports.isNumeric = isNumeric; exports.formatString = formatString; exports.formatStringByInt = formatStringByInt; exports.formatArray = formatArray; exports.formatTimestampS = formatTimestampS; exports....
var initRate = () => { $(".review-rate").starRating({ totalStars: 5, minRating: 1, starShape: 'rounded', starSize: 25, emptyColor: 'lightgray', hoverColor: '#ecdc9d', activeColor: '#ffc107', useGradient: false, useFullStars: true, callb...
/* * * 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 Apache License, Version 2.0 (the * "License"); y...
const path = require('path') const fs = require('fs') const fu = require('@aestheticbookshelf/fileutils') const { execSync } = require('child_process') const { Octokit } = require("@octokit/rest") const SKIP_GIT = false const APP_COPY_FROM_ROOT = [ ".babelrc", "Procfile", "startserver.sh", "gulpfile.b...
function CoverageMapType() { this.start = '2014-04-14'; this.end = '2200-01-01'; this.station = ""; this.source = "max"; this.colours = []; this.colour = ''; } var id = 0; var cache = {}; var cacheUTM = {}; CoverageMapType.prototype.setStation = function(newStation) { this.station = newS...
/* * * For Data Channel (WebRTC) * */ 'use strict'; import * as firebase from 'firebase/app'; import 'firebase/firestore'; import { firebaseConfig } from './firebase_config.js' import { rtcConfiguration } from './rtc_configuration.js'; import { convertUserInputTo5bitNumber, convert5bitNumberToUserInput } from './input...
"use strict"; /* * source https://github.com/mickys/eth-etherscan-account-tracker/ * @name Account Tracker * @package eth-etherscan-account-tracker * @author <NAME> <<EMAIL>> * @license MIT */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { ...
import React, { useEffect, useState } from "react"; import Container from 'react-bootstrap/Container'; import Navbar from 'react-bootstrap/Navbar'; import Nav from 'react-bootstrap/Nav'; import { useAuthState } from "react-firebase-hooks/auth"; import { useHistory } from "react-router"; import "./../Dashboard.css"; imp...
import React from "react" import { Link } from "gatsby" import { makeStyles, fade } from "@material-ui/core/styles" import { Typography, Grid, Button, ButtonBase } from "@material-ui/core" import Slide from "react-reveal/Slide" import Fade from "react-reveal/Fade" import ButtonBaseLink from "./common/ButtonBaseLink" c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Drawer = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor....