text
stringlengths
3.07k
16k
const fs = require('fs') const { exec, execSync } = require('child_process') const { openssl } = require('./util') const fse = require('fs-extra') const { sync: rimraf } = require('rimraf') const isOSX = process.platform === 'darwin' const isWindow = process.platform === 'win32' const isLinux = process.platform === 'li...
import React from "react" import styled from "styled-components" import { Section, Container, GridThree } from "../layoutComponents" import { Link, graphql } from "gatsby" import { RiArrowRightSLine } from "react-icons/ri" import { StaticImage } from "gatsby-plugin-image" import Gazebo1 from "../../images/projects/gaz...
/* * Copyright 2018 DoubleDutch, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
"use strict"; /* * Copyright (c) 2018, DoubleNegation * All rights reserved. * * Published under the FreeBSD ("2-clause") license. * See the included file "LICENSE" for details. */ //require the node modules that the generators need const child_process = require("child_process"); const fs = require("fs"); cons...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _redux = require("redux"); var _reactRedux = require("react-redux"); var _reactI18next = require("react-i18next"); var _styles = require("@material-ui/core/styles"); var _withPlugins = require("../exten...
// Store our API endpoint inside queryUrl // Define a function we want to run once for each feature in the features array // Give each feature a popup describing the place and time of the earthquake function popUpMsg(feature, layer) { layer.bindPopup("<h3>" + "Magnitude:" +feature.properties.mag + "<br>"+fea...
import Layer from "./model"; import VectorSource from "ol/source/Vector.js"; import VectorLayer from "ol/layer/Vector.js"; import {GeoJSON} from "ol/format.js"; const GeoJSONLayer = Layer.extend({ defaults: _.extend({}, Layer.prototype.defaults), initialize: function () { if (!this.get("isChildLayer")...
import React, { useState, useEffect } from "react" import { useTranslation } from "react-i18next" import styled from "@emotion/styled" import { motion } from "framer-motion" import { H2 } from "../../Typography" import { importAll } from "../../../utils" import links from "../links.json" import appSvg from "./app.svg"...
var parseString = require('xml2js').parseString; var xmlbuilder = require('xmlbuilder'); var request = require('request'); var _ = require('underscore'); var isInDirection = function(argument) { return argument.direction === "in"; }; var isOutDirection = function(argument) { return argument.direction === "out"; }...
'use babel'; import EventEmitter from 'events'; import fs from 'fs'; import path from 'path'; import os from 'os'; import { execSync } from 'child_process'; import { CompositeDisposable } from 'atom'; export const config = require('./config'); export function providingFunction() { const generateErrorMatch = ...
import React from 'react'; import { useLocation } from 'react-router-dom'; import "./Album.css" import OpenSea from "../images/opensea.png" import { ClockCircleOutlined } from "@ant-design/icons" import { useAlbum } from '../hooks/useAlbum' const Album = ({setNftAlbum}) => { const { state: album } = useLocation() ...
/** * @module model * @desc Provides functions to parse the input objective and constraints and build a tableau for processing. */ import {testRegex} from './utilities'; /** * @function parseModel * @desc Parses the objective function and the array of constraints into a tableau suitable for processing. * @...
#!/usr/bin/env node /* eslint no-continue:0 */ "use strict"; var fs = require("fs"); var path = require("path"); var assert = require("assert"); var spawn = require("child_process").spawn; var spawnSync = require("child_process").spawnSync; var binariesJsonName = "binaries.json"; var binariesJson; try { binariesJ...
import React from 'react' import { NavBar, Icon,List, TextareaItem,Button,WhiteSpace,Toast } from 'antd-mobile' import { createForm } from 'rc-form' import router from 'umi/router' import { connect } from 'dva' import moment from 'moment' import MapApp from '@/components/MapModule/Index' import _ from 'lodash' @connec...
const _ = require('lodash'); const {BEE_STATES, BULL_STATES} = require('../helpers/queueHelpers'); /** * Determines if the requested job state lookup is valid. * * @param {String} state * @param {Boolean} isBee States vary between bull and bee * * @return {Boolean} */ function isValidState(state, isBee) { con...
import Mixture from '../../lib/Mixture'; import Starter from '../../lib/Starter'; import Bread from '../../lib/Bread'; import BreadLexicon from '../../lib/BreadLexicon'; import StarterLexicon from '../../lib/StarterLexicon'; import Ingredient from '../../lib/Ingredient'; import { starterFlour1, starterFlour2, starter...
function getYoutubeUrlId(url) { var videoId = ""; if( url.indexOf("youtube") !== -1 ){ var urlParts = url.split("?v="); videoId = urlParts[1].substring(0,11); } if( url.indexOf("youtu.be") !== -1 ){ var urlParts = url.replace("//", "").split("/"); videoId = urlParts[1].s...
"use strict"; /** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.def...
import React from 'react'; import H1 from '../../components/H1'; import PropTypes from 'prop-types'; import { toast } from 'react-toastify'; class AccountDetails extends React.Component { componentDidMount() { const Uppy = window.Uppy; const uppy = Uppy.Core({ debug: true, autoProceed: false, ...
import { Component, createElement } from 'react'; import hoistStatics from 'hoist-non-react-statics'; import invariant from 'invariant'; import { PropTypes } from 'react'; //From react-redux (c) <NAME> const storeShape = PropTypes.shape({ subscribe: PropTypes.func.isRequired, dispatch: PropTypes.func.isRequired, ...
var simulator = new Simulator(); var iSet = TestInstructionSet, pipe; var code = []; /**** Constants used ******/ const T0 = simulator.registersArray[0]; const T1 = simulator.registersArray[1]; const T2 = simulator.registersArray[2]; const T3 = simulator.registersArray[3]; const T4 = simulator.registersArray[4]; con...
// This is the js for the default/index.html view. var app = function() { var self = {}; Vue.config.silent = false; // show all warnings // Extends an array self.extend = function(a, b) { for (var i = 0; i < b.length; i++) { a.push(b[i]); } }; self.is_page_select...
/* eslint-disable prefer-const */ const axios = require('axios'); const cheerio = require('cheerio'); const urlParser = require('url'); const slugify = require('slugify'); const convertDateToAnniversary = date => { let split = date.split('-'); split.shift(); return split.join(''); }; module.exports = { extend...
// An implementation of the web worker API for node.js var util = require('util'); var child_process = require('child_process'); var constants = require('./constants'); var common = require('./common'); var workerIndex = 0; var MESSAGE_SPLITTER = constants.MESSAGE_SPLITTER; var WORKER_PARAS = constants.WORKER_PARAS...
import React, {Component} from 'react'; import { ActivityIndicator, Image, Platform, Text, TextInput, TouchableOpacity, View, } from 'react-native'; import {NavigationActions, StackActions} from 'react-navigation'; import AsyncStorage from '@react-native-community/async-storage'; import ImagePicker from '...
'use strict'; // jshint node: true var path = require('path'); // Include Gulp & Tools We'll Use var gulp = require('gulp'); var gutil = require('gulp-util'); var $ = require('gulp-load-plugins')(); var del = require('del'); var runSequence = require('run-sequence'); var browserSync = require('browser-sync'); var rel...
const allowSaving = eval(sessionStorage.allowSaving) let projectData = JSON.parse(sessionStorage.projectData) let projectInfo = projectData.info let resources = projectData.resources const defAuthor = 'no author' const defDesc = 'empty description' const defText = 'empty text' let author = $('#author') let descripti...
//导入模块 import { $, ajax, bufferMove, jstool, rannum, addClass, removeClass, removeAll } from './tools.js'; //轮播图渲染和切换 class Carousel { constructor() { this.url = 'http://10.31.161.144/huawei/php/'; this.carousel_banner = $('.carousel_banner'); this.list_div = $('.list_div .slide_list'); ...
'use strict'; const REPORT_BOT_NAME = 'norreportbot'; const REPORT_BOT_ID = '500840578'; function getInternalInstance(elem) { for (const key in elem) if (key.startsWith('__reactInternalInstance$')) return elem[key]; } function findInstance(instance, predicate) { // Recurse through the pa...
var _ = require('@sailshq/lodash'); var async = require('async'); var __hooks = require('../../hooks'); var defaultsDeep = require('merge-defaults'); module.exports = function(sails) { var Hook = __hooks(sails); /** * Resolve the hook definitions and then finish loading them * * @api private */ ret...
'use strict'; var _regeneratorRuntime = require('babel-runtime/regenerator')['default']; var _Promise = require('babel-runtime/core-js/promise')['default']; var Vec3 = require("vec3").Vec3; Vec3.prototype.toFixedPosition = function () { return this.scaled(32).floored(); }; module.exports.player = function (playe...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var array = _react.PropTypes.array; var func = _react.PropTyp...
import React, { Component } from 'react' class ListItem extends Component { constructor(props){ super(props); this.favorites = []; } state = { selectedTrack: null, selectedSource: null, playerState: "stopped", } componentDidMount() { const array = this.props.data; this.favorit...
/*-------------------------------------------------------------------------------------------------------------------*\ | Copyright (C) 2016 PayPal | | ...
const fs = require("fs"); const path = require("path"); const util = require("util"); const { writeFileLog, readFileJson, log, logWarning, pluralize } = require("./utils"); const { adjustChroma } = require("./colors"); const changeCase = require("change-case"); const readdir = util.promisify(fs.readdir); con...
import React, {Component} from 'react' import ReactDOM from 'react-dom' import {Map, TileLayer, Polyline, FeatureGroup} from 'react-leaflet' import ReactJsonSyntaxHighlighter from "react-json-syntax-highlighter" import './index.css' class MapComponent extends Component { state = { center: [55.740090, 37.62...
function getLocation() { Modernizr.geolocation, fnWaiting.fadeOut(), placeLoc.fadeIn() } function utilityOption() { utility = document.getElementById("selectUtility").value } function currentLocation(a) { fnWaiting.fadeIn(), placeLoc.fadeOut(); var b = a.coords.latitude, c = a.coords.longitude; c...
var Options = require("./board.options"); var MODES = { INPUT: 0x00, OUTPUT: 0x01, ANALOG: 0x02, PWM: 0x03, SERVO: 0x04 }; /** * Pin Capability Signature Mapping */ var pinsToType = { 20: "UNO", 25: "LEONARDO", 70: "MEGA" }; function Pins(board) { if (!(this instanceof Pins)) { return new P...
const express = require('express'); const morgan = require('morgan'); const createError = require('http-errors'); const session = require("express-session"); const MongoDBStore = require('connect-mongodb-session')(session); const cookieParser = require('cookie-parser'); const cors = require('cors'); const mongoo...
export const songFunction = songs => { let songObjects = [] songs.forEach(song => { const init = song.indexOf('(') const fin = song.indexOf(')') const songArtist = song.substr(init + 1, fin - init - 1) //console.log('SONG_ARTIST', songArtist) const songTitle = song .replace(songArtist, '')...
const {accounts} = require('hardhat'); const { shouldBatchStakeNfts, shouldBatchUnstakeNfts, shouldRevertAndNotBatchUnstakeNfts, shouldTimeWarpBy, shouldHaveLastStakerSnapshot, shouldHaveLastGlobalSnapshot, shouldHaveNextClaim, shouldEstimateRewards, initialiseDebug, // mintStakerTokens, } = requir...
/*global app, me, client*/ "use strict"; var _ = require('underscore'); var async = require('async'); var uuid = require('node-uuid'); var htmlify = require('../helpers/htmlify'); var HumanModel = require('human-model'); var Resources = require('./resources'); var Messages = require('./messages'); var Message = requir...
const async = require('async'); const fs = require('fs'); const path = require('path'); const util = require('util'); const detectionUtils = require('../detectionUtils.js'); const DEFAULT_DATA_SET_NAME = 'obj'; const CFG_TEMPLATE_FILE_PATH = path.join(__dirname, 'yolo-obj.cfg.template'); const OBJ_DATA_TEMPLATE = 'cl...
'use strict' // // Code imported and modified from: // // https://github.com/atom/joanna/tree/0acd4d7a0ad0b23727e5dfb7f6e3f7cc88e9c085 // const babylon = require('babylon') module.exports = function generate (code) { return new Generator(code).generate() } const BABYLON_OPTIONS = { sourceType: 'module', plugi...
'use strict' const rmfr = require('rmfr') const os = require('os') const util = require('util') const fs = require('fs') const writeFile = util.promisify(fs.writeFile) const fsReadfile = util.promisify(fs.readFile) const fsTruncate = util.promisify(fs.truncate) const mkDir = util.promisify(fs.mkdir) const config = re...
const pathUtil = require('path'); const co = require('co'); const fs = require('mz/fs'); const sendfile = require('koa-sendfile'); const logger = require('plover-logger')('plover-assets:middleware'); const util = require('./util/util'); const handler = require('./handler'); /** * 前端资源访问中间件 * * @param {Object} s...
/** * Components - Molecules - Charts - Schedule */ // React import React, { useState } from 'react' import { array, func, oneOf } from 'prop-types' // Style import styled from 'styled-components' // UI import Button from '../../../atoms/button/button/button' import ButtonToolbar from '../../../atoms/button/toolba...
/** * Copyright (c) 2007, <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following discla...
'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...
/** * https://www.bluetooth.com/specifications/gatt/characteristics/ * https://www.bluetooth.com/specifications/gatt/declarations/ * https://www.bluetooth.com/specifications/gatt/descriptors/ * https://www.bluetooth.com/specifications/gatt/services/ * https://github.com/reelyactive/puckyactive-firmware/blob/master...
/* global PROPS */ import { cycles as appCycles } from './app'; import Component from './component'; import { ON_SHOW, ON_HIDE, ON_PAGE_SCROLL, ON_SHARE_APP_MESSAGE, ON_REACH_BOTTOM, ON_PULL_DOWN_REFRESH, ON_TAB_ITEM_TAP, ON_TITLE_CLICK } from './cycles'; import { setComponentInstance, getComponentProps } from './updat...
import React, { Component } from 'react'; import { render } from 'react-dom'; import PropTypes from 'prop-types'; import toastr from 'toastr'; import QuoterContainer from "../Quoter/QuoterContainer"; import InfoBox from "../InfoBox/InfoBox"; /** class CategoryAd */ class CategoryAd extends Component { constructor...
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const path = require('path'); const commander = require('commander'); const request = require('request'); const GitHubRepository = require('./lib/GitHubRepository'); commander .version('1.0.0') .usage('-k <key> -r <repository> -b <branch> -m <message>...
/* Author: OpSimple "A useless electron client for hack.chat" */ /* Import needed stuffs */ const fs = require('fs'); const log4js = require('log4js'); const electron = require('electron'); const prompt = require('electron-prompt'); const conextmenu = require('electron-context-menu'); const { dialog, Menu, she...
var data; var villages; var spawn; var popuping = false; var item_num = 0; var item_array = new Array(); function format(f) { return a = arguments, f.replace(/\{(\d)\}/g, function(m, c) { return a[parseInt(c) + 1]; }); } function getIconPath(name, isBlock) { name = name.toLowerCase().replace("'", '').replac...
const palette = { // Grey scale gray100: '#f8f9fa', gray200: '#e9ecef', gray300: '#dee2e6', gray400: '#ced4da', gray500: '#adb5bd', gray600: '#6c757d', gray700: '#495057', gray800: '#343a40', gray900: '#212529', // Named color palette white: '#fff', black: '#000', blue: '#0d6efd', indigo...
import React, { useState, useEffect, useCallback } from 'react' import styled, { keyframes } from 'styled-components' import { useGlobalDispatch, useGlobalState } from '../state' import config from '../../config' import { DiscussionEmbed } from 'disqus-react' import { Close } from '@styled-icons/material/Close' import ...
const deckNobles = []; const discardNobles = []; class Noble { constructor(name, points, color){ this.name = name; this.points = points; this.color = color; } } const archbishop = new Noble('Archbishop', 4, 'blue'); deckNobles.push(archbishop); const baron = new Noble('Baron', 3, 'purple'); deckNobles.push(...
import React from "react" import moment from "moment" import { graphql } from "gatsby" import styled, { keyframes } from "styled-components" import Layout from "../components/layout" import SEO from "../components/seo" class BlogPostTemplate extends React.Component { render() { const post = this.props.data.mark...
/* WATS 3020 Browser Game project */ /* Build a tic tac toe game for two players. */ let game; class Player{ constructor(token){ this.token = token; } } class TicTacToe { constructor(){ this.player1 = new Player('times'); this.player2 = new Player('circle'); this.currentPlayer ...
"use strict"; var __spreadArray = (this && this.__spreadArray) || function (to, from) { for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i]; return to; }; var BAR_MARGIN = 10; var BAR_WIDTH = 5; var BAR_HEIGHT = 300; canvasBannerDif = 60; var globalSortData = [ 4, 1, 1...
"use strict"; 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) { t...
import React, { useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import MaterialTable from "material-table"; import { Button } from "@material-ui/core"; import { createAxiosInstance, getUserData, isSuperAdmin } from "../util"; import NewsRegis...
const fs = require("fs"); var htmlmin = require('html-minifier').minify; const minifyXML = require("minify-xml").minify; const cssInline = require('css'); const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const time2read = require('eleventy-plugin-time-to-read'); const dateFormat = require('date...
/* jshint jasmine: true */ 'use strict'; const hilightModule = require('../src/hilight.js'); // A class that mocks the Extent class from Esri function Extent() { this.expand = () => {}; } // A class that mocks layer fomr geoApi function FakeGeoApiLayerFC() { this.getLayerData = () => { return new Pro...
'use strict'; const angular = require('angular'); const uiRouter = require('angular-ui-router'); import routes from './customerLookupSettings.routes'; export class CustomerLookupSettingsComponent { name = ""; description=""; lookups = []; id = 0; modulename="Name of the lookup module"; descriptionplaceho...
/** * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './styles.module.css'; class NotFound extends Component { componentDidMount(){ game(); }; render(){ // window.addEventListener("DOMContentLoaded",game); return ( <main className={styles.body_error}> ...
// server.js // where your node app starts //////////////Note/////////////// //Finished on May12 // include modules const express = require('express'); const multer = require('multer'); const bodyParser = require('body-parser'); const fs = require('fs'); const sqlite3 = require("sqlite3").verbose(); // Actual tabl...
/** * @author oldj * @blog http://oldj.net */ 'use strict' /** * 注:ELECTRON_VERSION 为对应的 Electron 版本 * 直接运行命令会自动下载对应文件, * 也可手动从 https://github.com/electron/electron/releases 下载最新版本,放到 ~/.electron 目录下 * 淘宝镜像:https://npm.taobao.org/mirrors/electron/ */ const ELECTRON_VERSION = '1.7.11' const fs = require('fs')...
var roombaSim = angular.module('roombaSimApp', [ 'ui.codemirror' ]); var templateCode; var turn=0; var w; function processingLoaded() { var p = Processing.getInstanceById('sketch'); if (typeof (simulatorInit) === 'function') { simulatorInit(p); } } function onProcessingLoad(simulatorInitialization) { var p = Pro...
// Water Waves import { gsSPClearGeometryMode, gsDPSetCombineMode, gsSPTexture, gsDPSetTile, gsDPLoadSync, gsDPLoadBlock, gsDPSetTileSize, gsSPEndDisplayList, gsSP2Triangles, gsDPPipeSync, gsSPSetGeometryMode, gsSPDisplayList, gsSPVertex, gsSPBranchList, gsDPSetTextureImage, G_LIGHTING, G_CC_MODULATEIA...
'use strict'; exports.__esModule = true; exports.getOptionsOfEnum = getOptionsOfEnum; exports.getTypeInfo = getTypeInfo; exports.humanize = humanize; exports.merge = merge; exports.move = move; exports.getTypeFromUnion = getTypeFromUnion; exports.getBaseComponentOptions = getBaseComponentOptions; exports.getComponentO...
//.########.##.......########..######..########.########...#######..##....## //.##.......##.......##.......##....##....##....##.....##.##.....##.###...## //.##.......##.......##.......##..........##....##.....##.##.....##.####..## //.######...##.......######...##..........##....########..##.....##.##.##.## //.##..........
//JSON Schema validation var Validator = require("jsonschema").Validator; var schemaValidator = new Validator(); var fs = require("fs"); var interactiveFilters = require("./interactiveFilters"); var visualization = (function(){ var visualizationConfig = {}, ndx = {}, visualizations = [], //arra...
import React from 'react'; import { View, Text, TouchableOpacity, FlatList, Image, ScrollView, Dimensions } from 'react-native'; import {WrapScreen} from "../wrap"; import * as Utils from "../../../core/utils"; import * as Assets from '../../assets' import {Avatar, Button, Divider, List, Lis...
"use strict"; import * as ShieldDef from "./shield_defs.js"; import * as ShieldText from "./shield_text.js"; import * as ShieldDraw from "./shield_canvas_draw.js"; import * as Gfx from "./screen_gfx.js"; function loadShield(ctx, shield, bannerCount) { var drawCtx = Gfx.getGfxContext(shield.data); var imgData = dr...
import { Color } from '../core/color.js'; import { EventHandler } from '../core/event-handler.js'; import { Mat4 } from '../math/mat4.js'; import { Quat } from '../math/quat.js'; import { Vec3 } from '../math/vec3.js'; import { XRTYPE_AR } from './constants.js'; var vec3A = new Vec3(); var vec3B = new Vec3(); var ma...
/** * angular2-google-maps - Angular 2 components for Google Maps * @version v0.14.0 * @link https://github.com/SebastianM/angular2-google-maps#readme * @license MIT */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc =...
/** * define mysql connection object **/ var consts = require('./constants.js'); var date = require('./date.js'); var mysql = { // define mysql object properties connection : null, // holds the connection object to the mysql server or null if not connected eventEntryCreated : false, // flag indicating...
// Control pins const upPin = 5; const downPin = 6; const channelPin = 4; // Indicator pins const chan1Pin = 17; const chan2Pin = 27; // Counters for number of flashes on LEDs var ch1FlashCount = 0; var ch2FlashCount = 0; // Somfy Channels const doorBlindChan = 2; const livingRoomBlindChan = 3; const allBlinds...
import React, { useReducer, useMemo, useCallback, useEffect } from 'react'; import PropTypes from 'prop-types'; import { setCookie, getCookie, isRunningOnBrowser } from '../../utils/helper'; import { getServices } from '../../services'; import ShoppingCartContext from './ShoppingCartContext'; /* * This context must ...
var src = 'web'; var build = 'build'; var development = 'build/development'; var production = 'build/production'; var srcAssets = 'web/_assets'; var developmentAssets = 'build/assets'; var productionAssets = 'build/production/assets'; module.exports = { browsersync: { ...
'use strict' /* eslint-disable no-cond-assign */ var tagExpr = /^<!-- ?\{(?:([a-z0-9]+)(\^[0-9]*)?: ?)?(.*)\} ?-->\n?$/ module.exports = function attributes (md) { md.core.ruler.push('curly_attributes', curlyAttrs) } /* * List of tag -> token type mappings. Eg, `<li>` is `list_item_open`. */ var opening = { l...
const ethers = require("ethers"); const fs = require("fs"); const { argv } = require("process"); try { fs.mkdirSync("data"); } catch {} // encoded topics corresponding to Transfer, Withdraw and CreatePair event const sep20TransferTopic = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"; const wi...
import Page from 'components/Page'; import React from 'react'; import Axios from 'axios' import { Button, Card, CardBody, CardHeader, Col, Form, FormGroup, Input, Label, Modal, ModalBody, ModalFooter, ModalHeader, Row, Table, } from 'reactstrap'; import { MdAd...
/** * Module dependencies. */ var uri = require('url'), util = require('util'), OAuth2Strategy = require('passport-oauth2'), InternalOAuthError = require('passport-oauth2').InternalOAuthError, BoomrangAuthorizationError = require('./errors/boomrangauthorizationerror'), BoomrangTokenError = require('./errors/boom...
import "antd/es/row/style"; import _Row from "antd/es/row"; import "antd/es/col/style"; import _Col from "antd/es/col"; import "antd/es/button/style"; import _Button from "antd/es/button"; function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj)...
'use strict'; /* Services */ var jcrServices = angular.module('jcrServices', []); var base = 'http://localhost:8080/modules'; var baseAPI = base + '/api'; var byPathAPI = baseAPI + '/byPath/'; var byIdAPI = baseAPI + '/nodes/'; // Based on http://stackoverflow.com/questions/11850025/recommended-way-of-getting-data-f...
'use strict' let { isClean, my } = require('./symbols') let CssSyntaxError = require('./css-syntax-error') let Stringifier = require('./stringifier') let stringify = require('./stringify') function cloneNode(obj, parent) { let cloned = new obj.constructor() for (let i in obj) { if (!Object.prototype.hasOwnPr...
const objectAssign = require('object-assign'); const Cell = require('./cell'); const { ColSpanCell, RowSpanCell } = Cell; (function () { function layoutTable(table) { table.forEach(function (row, rowIndex) { row.forEach(function (cell, columnIndex) { cell.y = rowIndex; cell.x = columnIndex;...
import React, { Component } from 'react' import { Card, Image, Checkbox, Button, Progress, Label, Message} from 'semantic-ui-react' import { connect } from 'react-redux' import { handleAddAnswer } from '../actions/questions'; import { withRouter } from 'react-router-dom' import NotFound from './NotFound' class Poll ex...
/* ------------------------------------------------------------------ * node-echonet-lite - 01-30-C7.js * * Copyright (c) 2016, <NAME>, All rights reserved. * Released under the MIT license * Date: 2016-08-06 * * - Class group code : 01 : Air conditioner-related device class group * - Class code : 30 : Home air c...
var assert = require('assert') var escRE = require('escape-string-regexp') var exists = require('101/exists') var defaults = require('101/defaults') var debug = require('debug')('keypather:reducer') var stringReduce = require('string-reduce') var slash = '\\' module.exports = keypatherReducer function keypatherRedu...
/* Copyright (c) 2017 <NAME> and other collaborators 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 _ from 'lodash'; import { components } from 'react-select'; import AsyncSelect from 'react-select/async'; import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; import { callApi, truncateAddress } from '../../../util'; import { COLORS } from '../../../styles/const...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var encodings_1 = require("../../encoding/encodings"); var finished_1 = require("../../encoding/finished"); var indexes_1 = require("../../encoding/indexes"); var terminology_1 = require("../../encoding/terminology"); var states; (function (st...
'use strict'; export let isDOMElement = function isDOMElement(o) { return (typeof HTMLElement === 'object' ? o instanceof HTMLElement : //DOM2 o && typeof o === 'object' && o !== null && o.nodeType === 1 && typeof o.nodeName === 'string'); }; export let ensureDigits = function ensureDigits(num, digits) { ...
/* * Copyright (C) 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
import React from 'react'; import { Form, Input, Button, Spin, Icon } from 'antd'; import intl from 'react-intl-universal'; import debounce from 'lodash/debounce'; import $api from '@/api/index'; import MsgService from '@/util/MsgService'; import { PASSWORD_REG } from '@/util/regExpService'; import { processFieldsValue...