text
stringlengths
3.07k
16k
import { Avatar, Row, Col, Alert } from 'antd'; import React from 'react'; //import { debugLog } from '../../../../utils/debugMode'; import '../../../../style.css'; const MiniMenteeProfile = ({ currentMentee }) => { // const { Panel } = Collapse; // console.log(currentMentee); // debugLog( // 'Prop drilled f...
import React, { useEffect } from 'react' import PropTypes from 'prop-types' import { getProxies, getProxy, getUserDataModeled, getProducers, getProducer, mutationInsertUserRating, getUserRates, getTotalStats } from './models' const SharedStateContext = React.createContext() const initialValue = { u...
// Disable ftb // const os = require('os'); // const {git} = require('@commitlint/test'); const test = require('ava'); const execa = require('execa'); // Disable ftb // const which = require('which'); // Disable ftb // const NODE_BIN = which.sync('node'); const BIN = require.resolve('../lib/cli.js'); // Disable ftb /...
import React from 'react'; import styled from "styled-components"; import ScheduleTable from "../components/ScheduleTable"; import SEO from "../components/SEO"; import NextStep from "../components/NextStep"; import { graphql } from "gatsby"; import Img from "gatsby-image"; export default function InfosPage({ data }) {...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const WhatToMine = require("./apis/whattomine"); class Algorithm { constructor(opts) { this.displayName = opts.name; this.names = opts.aliases || []; this.names.unshift(this.displayName.toLowerCase()); this....
/* Tiny moment.js like implementation. * * It only supports a subset of moment.js api. * * ### Available methods * * format, isValid, isLeapYear, isSame, isBefore, isAfter, year, * month, date, hour, minute, second, millisecond, unix, clone, * toDate, toArray, toJSON, toISOString, toObject, toString, set, * s...
/** * Copyright 2015 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 appli...
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || fu...
/* Copyright 2017 IBM Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _color = _interopRequireDefault(require("color")); var React = _interopRequireWildcard(require("react")); var _reactNative = require("react-native"); var _TouchableRipple = _interopRequireDefault(require("....
import path from 'path' import fs from 'fs' import env from 'std-env' const nuxtDir = fs.existsSync(path.resolve(__dirname, '..', 'package.json')) ? path.resolve(__dirname, '..') // dist : path.resolve(__dirname, '..', '..') // src export default { // Information about running environment dev: Boolean(env.dev...
// This file is a source for playground examples. // Examples integrity is smoke-checked with examples.spec.js function parse_defaults(source, parse, stringify, transforms) { // Invoking parser with default config covers the most genearic cases. // Note how /*** and /* blocks are ignored /** One-liner */ /**...
function rollDice(numDice,dieSize){ var result=0; for (dieCount=0; dieCount<numDice; dieCount++) { result = result + (Math.round(Math.random() * dieSize) % dieSize + 1); } return result; } function roll(numDice,dieSize,bonus,caption) { result = rollDice(numDice,dieSize); var totalResult =0; totalRe...
import React,{Component} from 'react'; import { Link } from 'react-router-dom'; class Header extends Component{ constructor(props) { super(props); this.state = { toggleactive: false, defaultValue: 1 }; this.togglebutton = this.togglebutton.bind(this); } ...
/** * 课程列表页面 */ function lessonListPage() { const lessonList = document.querySelector("#lessonList"); if (lessonList !== null) { lessonList.querySelectorAll("li").forEach(item => { let isFinished = false; for (let i = 0; i < item.classList.length; i++) { if (ite...
import React from "react"; // External Deps import PropTypes from "prop-types"; import Radium from "radium"; import { connect } from "react-redux"; // Actions import { onInstrumentChange, onMasterVolumeChange } from "actionCreators"; // Components import AppTitle from "components/appTitle"; import MasterVolumeKnob ...
/* * Copyright 2014, <NAME>. * 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 conditions a...
var wrap = require('gulp-wrap-amd'); var dest = require('gulp-dest'); var rename = require('gulp-rename'); module.exports = {}; module.exports.bootstrap = function(builder) { var srcPath; try { srcPath = require('path').dirname(require.resolve('bootstrap-sass'))+'/bootstrap'; } catch (exc) { srcPath = ...
import m from "mithril" import Layout from "./components/Layout.js" import Modal from "./components/Modal.js" import { isEmpty, init, infiniteScroll } from "./helpers" const IsLoading = m(".holder", [ m(".preloader", [ m("div"), m("div"), m("div"), m("div"), m("div"), m("div"), ...
import React from 'react'; import {getClassName, chunk} from '../../utils'; class Calendar extends React.Component { render() { const className = getClassName( 'react-ui-date-picker-calendar', this.props.calendarClassName ); const subHeaderClassName = getClassName(...
var selectrowtemplate = $('#select-row-template').html(); var rowtemplate = $('#row-template').html(); var storage; var seq = new Promise(function(rs, rj) { $.ajax({ method: 'POST', url: '/getstorage', timeout: 10000, success: function(data, status, jqXHR) { if (data.status === 0) { storage ...
/** * @license Copyright (c) 2003-2020, CKSource - <NAME>. All rights reserved. * For licensing, see LICENSE.md. */ 'use strict'; const chalk = require( 'chalk' ); const rimraf = require( 'rimraf' ); const fs = require( 'fs' ); const path = require( 'path' ); const { RawSource, ConcatSource } = require( 'webpack-s...
/*global document */ const fs = require('fs'); const expect = require('chai').expect; const describeURL = require('./index').describeURL; const puppeteer = require('puppeteer'); const randomWords = require('random-words'); describe('describe-url module', function() { it('gets an Amazon description', async function(...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.IconMenu = exports.iconMenuFactory = undefined; var _redboxReact2 = require('redbox-react'); var _redboxReact3 = _interopRequireDefault(_redboxReact2); var _reactTransformCatchErrors3 = require('react-transform-catch-errors'); v...
$(document).ready(function(){ // === Sidebar navigation === // $('.submenu > a').click(function(e) { e.preventDefault(); var submenu = $(this).siblings('ul'); var li = $(this).parents('li'); var submenus = $('#sidebar li.submenu ul'); var submenus_parents = $('#sidebar li.submenu'); if(li.hasClass...
const Decimal = require('decimal.js'); const has = require('lodash/has'); const { types } = require('sharetribe-flex-sdk'); const { Money } = types; /** Helper functions for handling currency */ // https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER // https://develop...
import React from 'react'; import { navigate } from '@reach/router'; import * as queryString from 'query-string'; import RefineSearchWidget from './RefineSearchWidget'; class SearchPage extends React.Component { _isMounted = false; constructor(props) { super(props); const urlParams = queryString.parse(this...
const router = require('express').Router(); const Tasks = require('./tasks-model.js'); const TaskNames = require('./task-names-model.js'); const Categories = require('./categories-model'); // Return a task by user_id and task id (not the task_id tied to the task_names table) router.get('/findById/user=:user_id/:task_...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var slicedToArray = require('./slicedToArray-0711941d.js'); require('./unsupportedIterableToArray-68db1d3b.js'); var React = ...
// Copyright (c) 2019 Uber Technologies, Inc. // // 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EnumHelper = void 0; const IHelper_1 = require("./IHelper"); class EnumHelper extends IHelper_1.Helper { async onReady() { return; } async onUnload() { return; } async onMessage(commandName, obj) { ...
'use strict'; const {Worker} = require('worker_threads'); const childProcess = require('child_process'); const path = require('path'); const fs = require('fs'); const Emittery = require('emittery'); const {controlFlow} = require('./ipc-flow-control'); if (fs.realpathSync(__filename) !== __filename) { console.warn('WA...
// This is the final knockout library to be built. // Anything that's not contained in the default export at the bottom of this file won't be accessible later. import {onError, _overrideOnError} from './onError'; import {childNodes, firstChild, nextSibling, emptyNode, insertAfter, allowedBindings, prepend, setDomNo...
var assert = require("assert"); var crypto = require("crypto"); var ByteBuffer = require("bytebuffer"); var ed = require('../utils/ed.js'); var ip = require('ip'); var bignum = require('bignumber'); var slots = require('../utils/slots.js'); function Consensus(scope, cb) { this.scope = scope; this.pendingBlock = nu...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
import React from "react"; import get from "lodash/get"; import Helmet from "react-helmet"; import Modal from "react-responsive-modal"; import theMeta from "../js/helpers.js"; import { graphql } from "gatsby"; import Template from "../components/layout"; import { injectIntl, Link, FormattedMessage } from "gatsby...
var https = require('https'); var utils = require('../utils'); var C = utils.c; var NBXML_FEED = C.NEXTBUS_XMLFEED; var routes = {}; function getLinks(hrefs, rte, req) { var predictions = [], params = req.params, a = params.agency, to = [{ href: hrefs.vehicle, type: C.MTJSON, ...
"use strict"; /* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a c...
/*eslint-disable*/ // React imports import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { resetUserProfileStates, submitAlertsDeleteRequest, } from '../../../actions/app-actions'; import DFSelect from '../../common/multi-select/app'; const severityCollection = [ { n...
var width = window.innerWidth; var height = window.innerHeight; Konva.angleDeg = false; var angularVelocity = 6; var angularVelocities = []; var lastRotation = 0, previousRotation = 0; var controlled = false, hasStopped = false; var numWedges = 25; var angularFriction = 0.2; var target, activeWedge, stage, l...
var SHOW_SCORES_LABEL = 'Assign scores to individual choices'; var HIDE_SCORES_LABEL = 'Use default scoring'; var HIDE_SCORES_WARNING_LABEL = 'Use default scoring (Note: scores will change)'; /* Whether to show the numeric score or a radio/checkbox. */ var setScores = false; var setScoresToggleButton; /* Whether a...
'use strict' let _ = require('lodash') let normalizeName = function (id, m) { // 去掉Using + methodName // return id.replace(/\.|\-|\{|\}/g, '_').split(" ").join("_").slice(0, -(m.length + 5)) return id.replace(/\.|\-|\{|\}/g, '_').split(" ").join("_") } let getPathToMethodName = function (opts, m, path) { if (p...
import { EdgesGeometry, Group, LineSegments, MathUtils, Matrix4, Mesh, Shape, ShapeGeometry, Vector2, Vector3, } from "three"; import { chooseMaterial, material_lines, material_shades, } from "./ctematerials.js"; const { degToRad } = MathUtils; // Genera geometría del modelo // // El modelo ...
const express = require('express'); const bodyParser = require('body-parser'); const mongoose = require('mongoose'); // const fs = require('fs'); const cors = require('cors'); const User = require('./models/User'); const Article = require('./models/Article'); // const seed = require('./seed'); const app = express(); ...
/* <%namespace file="labels.mako" name="info"/> <%doc> This file is a mako template to make JS. The extension is backwards to avoid tinkering with the default PyCharm editor. This file contains the main page's script. </%doc> */ //housekeeping $('[data-toggle="tooltip"]').tooltip(); ///////////////////////////////...
'use strict'; /** * Convert color values between different color spaces. * Sources for algorithms and conversion tables are * Hunt, Measuring Color and Bruce Lindbloom: * - http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_Lab.html * - http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html * @module ...
import React, { useContext, useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { Container, Feed, Grid } from 'semantic-ui-react'; import * as shapes from '../../shapes'; import Helmets from '../../shared/Helmets'; import SearchBar from './SearchBar'; import Promoted from './Promoted'; impor...
const arrayUtils = { append(array, ...elements) { array.push(...elements) return array }, prepend(array, ...elements) { array.unshift(...elements) return array }, insert(array, index, ...elements) { array.splice(index, 0, ...elements) return array }, remove(ar...
import React from "react"; import PropTypes from "prop-types"; const SvgComponent = ({ size, width, height, ...otherProps }) => { if (size !== height) { width = width * (size / height); height = height * (size / height); } return ( <svg width={width} height={height} viewBox="0 0 37...
function cambiar_estado(){ if( $('#mostrar_foto').is(':checked') ) { $("#vw_foto").attr('value', '1'); }else{ $("#vw_foto").attr('value', '0'); } } function fn_bus_contrib(){ if($("#vw_caja_est_cta_contrib").val()=="") { mostraralertasconfoco("Ingrese un Contribuyente par...
import PowerRadix from "power-radix"; import { timeToNumber } from "./"; const charSet = "23456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".split( "" ); const hexSet = "0123456789abcdef".split(""); const hexRadix = hexSet.length; /** * Convert and object containing time data (24-hour format) * and color d...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTheme = exports.getTeammateNameDisplaySetting = exports.getVisibleGroupIds = exports.getVisibleTeammate = undefined; exports.getMyPreferences = getMyPreferences; exports.get = get; exports.getBool = getBool; exports.getInt = ge...
function seed() { let seed = []; for (let i = 0; i < arguments.length; i++) { seed.push(arguments[i]); } return seed; } function same([x, y], [j, k]) { const [xValue, yValue] = [x, y]; const [jValue, kValue] = [j, k]; if ((xValue == jValue) && (yValue == kValue)) { return true; } return false...
const waitMedium = 1000 const waitShort = 50 // =============================================== // WordCRUD // =============================================== describe('WordCRUD.js > PageDialectWordsCreate', () => { it('CRUD', () => { // Login cy.login({ userName: 'TestDialectPublic_language_administra...
/** * Slicemap Container * Please write a description * * @author <NAME> <<EMAIL>> */ import React, { Component } from 'react' import styled from 'styled-components' import mapboxgl from 'mapbox-gl' import { MAPBOX_TOKEN, MAPBOX_STYLE, LOCATION } from 'config' import ReactMapGL, { Marker, FlyToInterpolator } from ...
/** *CREATING THE TIMELINE 1 */ import Arrow from '../arrow.js'; const options = { groupOrder: "content", // groupOrder can be a property name or a sorting function selectable: true, editable: true, groupTemplate: function(group) { //function to hide group...
// Store our API endpoint inside queryUrl var earthquakeURL = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson"; var tectonicPlatesURL = "https://raw.githubusercontent.com/fraxen/tectonicplates/master/GeoJSON/PB2002_boundaries.json"; // Perform a GET request to the query URL d3.json(earthqu...
const https = require('https') const mkdirp = require('mkdirp') const fs = require('fs') const paths = require('path') const os = require('os') const request = require('request') const exec = require('child_process').exec; module.exports = { /* Add a line to a file */ addLine: function(line, file) { file = resol...
import React, {Component} from 'react' import Card, {CardActions, CardContent} from 'material-ui/Card' import Button from 'material-ui/Button' import TextField from 'material-ui/TextField' import Typography from 'material-ui/Typography' import Icon from 'material-ui/Icon' import Avatar from 'material-ui/Avatar' import ...
// // ffmpeg // convert the text & export files into a usable format // // options: // var async = require('async'); var path = require('path'); var fs = require('fs'); var readdirSorted = require('readdir-sorted'); var shell = require('shelljs'); var tempy = require('tempy'); var utils = require(path.join(__dirname, '...
let auth = firebase.auth(); let first_time = true; var currentUser = null; var cartShopCnt = 0; let User_id = null; let mobileMode = false; function openPage(pageName) { $('#mainframe').attr('src', pageName + ".html"); } function openPage2(pageName) { $('#mainframe2').attr('src', pageName + ".html"); } f...
import React, { Component } from 'react'; import { StyleSheet, View, TextInput, Image, TouchableHighlight, KeyboardAvoidingView } from 'react-native'; import DataList from '@components/dataList'; import PropTypes from 'prop-types'; import { compose } from 'react-apollo'; import { AppText } from '@components/utils/texts...
var argv = require('yargs').argv; var OS = require("os"); var platform = OS.platform(); var name = argv.name || argv.n; if (!name) return; var user; var progardPath; if (platform === 'win32') { progardPath = `C:\Users\${ process.env.USERNAME }\AppData\Local\Android\sdk\/tools/proguard/proguard-android.txt`; user = ...
import React, { Component } from 'react'; import { Form, Row, Col, Upload, Modal, Tabs } from 'antd'; import RichEditorShow from '../../components/RichEditor/RichEidtorShow'; import styles from './good-form.less'; const FormItem = Form.Item; const { TabPane } = Tabs; const mapImageType = ['正面', '侧面', '反面', '包装图一', '包...
"use strict"; import { Template } from 'meteor/templating'; // import { ReactiveVar } from 'meteor/reactive-var'; import { Meteor } from 'meteor/meteor'; // import { Session } from 'meteor/session'; import { Session } from 'meteor/session'; import './main.html'; Meteor.callAction = function(msg) { console.log('ca...
import React, { useState } from 'react'; import { Formik, Form, Field } from 'formik'; import { FaCircleNotch, FaTimes } from 'react-icons/fa'; import classNames from 'classnames'; import Button from '../Button'; const FormField = ({ name, label, type = 'text', className, ...props }) => ( <Field name={name}> {({...
let switchBehaviour=true function toggleSwitch(item){ if (switchBehaviour) { item.innerHTML="<h1>Tile Drop: Swap</h1>"; switchBehaviour=false; } else { item.innerHTML="<h1>Tile Drop: Push</h1>"; switchBehaviour=true; } } window.document.title="Scrabble Tile View" function reorderTiles(sourceTil...
const Utils = {}; Utils.initShaderProgram = function(gl, vsSource, fsSource) { const vertexShader = Utils.loadShader(gl, gl.VERTEX_SHADER, vsSource); const fragmentShader = Utils.loadShader(gl, gl.FRAGMENT_SHADER, fsSource); if (vertexShader == null || fragmentShader == null) { return null...
import React,{useState,useEffect} from 'react' import { useStaticQuery, graphql } from 'gatsby' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faBed } from '@fortawesome/free-solid-svg-icons' import { faMapMarkedAlt } from '@fortawesome/free-solid-svg-icons' import { faChild } from '@fortawes...
import React from "react" import { GatsbyImage } from "gatsby-plugin-image" import styled from "styled-components" import { faEnvelope, faLink } from "@fortawesome/free-solid-svg-icons" import { faLinkedinIn } from "@fortawesome/free-brands-svg-icons" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" imp...
import '../assets/main.css'; import { Component } from 'react'; import autoBind from 'react-autobind'; import Header from '../components/header'; import { abi } from '../contracts/nftContract'; import { Button, Card, CardBody, CardImg, CardSubtitle, CardText, CardTitle, Col, Row } from 'reactstrap'; import { FontAwesom...
const socket = io('http://localhost:3005/'); function record(r, format) { if (format === 'wld') { return `${r.win}-${r.loss}-${r.draw}`; } else if (format === 'wdl') { return `${r.win}-${r.draw}-${r.loss}`; } else if (format === 'w') { return `${r.win}`; } return `${r.win}-${r.loss}`; } fun...
'use strict'; const fs = require('fs'); const path = require('path'); const _ = require('lodash'); const jsYaml = require('js-yaml'); // Convert string case function splitAnyCase(str) { let words = str.split(/[ _/-]+/); words = _.flatMap(words, word => word.split(/([A-Z][a-z]+)/)); words = _.map(words, word => ...
import React from "react"; import {useState,useEffect} from "react"; import {useParams,useHistory} from "react-router-dom"; import swal from "sweetalert"; import QuestionCard from "../../components/QuestionCard"; import AnswerCard from "../../components/AnswerCard"; import CardLoader from "../../components/CardLoader"...
///////////////Download/////////////////// var filename = "tactileGraph"; var edl = document.querySelector('#edl'); //var png = document.querySelector('#png'); var esa = document.querySelector('#esa'); edl.onclick = function() { var blob = new Blob([ tg.loadEdl() ], { "type" : "text/plain" }); if (window...
var letters = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ]; var selectableWords = // create an array of words [ { word: 'sonic the hedgehog', image: 'assets/i...
import { BREAKPOINT_REGEX, DEFAULT_OPTS, Errors, removeWhitespace, prefixLog, flipObject, isValidElement, } from './utils' const DIRECTION_TO_ACTIVE_ATTR = { width: 'htmlAttrActive', height: 'htmlAttrHeightActive', } export default class ElementQueries { constructor(opts) { if (!('ResizeObserv...
/** * * SectionWiseAttendance * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; impor...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import ReactRouterPropTypes from 'react-router-prop-types'; import { withRouter } from 'react-router-dom'; import colors from 'constants/visuals/colors'; import { XYPlot, ArcSeries, LabelSeries, Hint } from 'react-vis'; import MultiGaugeDetail...
import { setAttributes, setStyles } from "./util/dom.js" const jsenvLogoSvgUrl = new URL("./jsenv_logo.svg", import.meta.url) export const injectToolbar = async ({ toolbarUrl, logs = false }) => { if (document.readyState !== "complete") { await new Promise((resolve) => { window.addEventListener("load", re...
import React, { useState, useEffect, memo, useRef } from 'react'; import RefreshIcon from '@material-ui/icons/Refresh'; import PageTitle from '../../../components/PageTitle' import request from '../../../utils/request'; import { urls } from '../../../config/urls.js'; import OrderList from './orderList' import Paper fro...
import { React, View, Button, BackButton, Modal, Card} from 'reapp-kit'; import divStyle, {paint} from '../styles'; require('velocity-animate/velocity.ui'); import {VelocityTransitionGroup, velocityHelpers} from 'velocity-react'; import * as _ from 'ramda'; import {getLocalJSON, setLocalJSON, addToHistory} from '../...
//编辑用户信息*********************************************************************************************************** $(function () { $(document).on("click", "#edit-btn", function () { $(".hide-input").show() $(".hide-input").siblings("em").hide() $("#cansel-btn").show() $("#submit-btn...
import './components/xy-popover.js'; import { parseToHSVA, HSVaColor } from './utils/main'; import MARKER from '../picker/components/icon'; const ColorCollections = ['#ff1300','#EC7878','#9C27B0','#673AB7','#3F51B5','#0070FF','#03A9F4','#00BCD4','#4CAF50','#8BC34A','#CDDC39','#FFE500','#FFBF00','#FF9800','#795548','#9E...
/* * Copyright 2011-2019 <NAME> <<EMAIL>> * * 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 follo...
'use strict'; var d3Array = require('d3-array'); var directivesModule = require('./_index.js'); function capToRange(preferredPosition, size, axis) { var range = axis.range(); var axisMin = Math.min(range[0], range[1]); var axisMax = Math.max(range[0], range[1]); if (preferredPosition < axisMin) { return...
import React from 'react' import styled from 'styled-components' import Img from 'gatsby-image' import { StaticQuery, graphql } from 'gatsby' import { breakpoints } from '../../utils/styles' import { Capital } from '../indexPageComponents/Capital' const CollageWrapper = styled.div` display: flex; justify-content:...
const Discord = require('discord.js'); const charUtil = require('../modules/charUtility.js'); const num = require('../modules/numberUtility'); const eco = require('../modules/economyUtility'); const perm = require('../modules/permissionCheck'); const dis = require('../modules/discordUtility'); const validator = require...
const Web3 = require("web3"); const fs = require("fs"); const BigNumber = require("bignumber.js"); const Tx = require('ethereumjs-tx').Transaction; const open = require('open'); // Load private key and connect to RPC endpoint const rpc_endpoint = process.env.RPC_ENDPOINT; const private_key = process.env.KEY_PRIVATE; i...
var START_OFFSET = 25; var BACKGROUND_COLOR = 0xEDF5E1; var AXIS_COLORS = [0xff0000, 0x00ff00, 0x0000ff]; var AXIS_LENGTH = 100; var ORIGINAL_WARN = console.warn; console.warn = function() {}; var CANVAS_HEIGHT_DIVISOR = 1.75; var X = 0, Y = 0, Z = 0; var COMPONENT_CHANGE_EVENT = new Event('vector-component-chan...
import React, { Component } from 'react' import { ScrollView, View, Text, RefreshControl, StyleSheet } from 'react-native' import PropTypes from 'prop-types' let STATUS_LOAD_MORE_IDLE = 1, //可以加载更多 STATUS_LOADING_MORE = 2; //正在加载中 let DEFAULT_HEIGHT = 60; export default class BaseScrollVi...
// import and require inquirer and mysql 2 const inquirer = require('inquirer'); const mysql = require('mysql2'); const chalk = require('chalk'); const cTable = require('console.table'); // connect to database const db = mysql.createConnection( { host:'localhost', user:'root', password:'<PA...
//INFOPANEL var infoPanelId = 0; var infoPanel = function(settings) { var self = this; var thisWidgetId = "infoPanelWidget-" + infoPanelId++; var widgetElement; var imageURL; var currentSettings = settings; var notActive = "#9E9E9E"; var titleElement = $('<div class="section-title"></div>'); var box = $('<div c...
/* * Websensor flight game project * https://github.com/jessenie-intel/websensor-flight * * Copyright (c) 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:/...
/** * Stats handler */ import Event from './events'; class StatsHandler { constructor(hls) { this.hls = hls; this.onmp = this.onManifestParsed.bind(this); this.onfc = this.onFragmentChanged.bind(this); this.onfb = this.onFragmentBuffered.bind(this); this.onflea = this.onFragmentLoadEmergencyAb...
const VERSION = '1.0.0'; const program = require('commander'); const fs = require('fs-extra'); const driversListLink = "https://moduware.github.io/developer-documentation/module-drivers/"; class DriverToMdConverter { /** * Generates documentation out of driver file * @param {String} driverFilePath path to dr...
import React from "react" import { fromUnixTime, format } from "date-fns" import { startCase, isObject, isArray, isEmpty, isNumber, isEqual, transform } from "lodash" import styled from "styled-components" export const truncateString = (str, num) => { if (num && str && str.length > num) { return `${str.slice(0, ...
import API from "../../src/services/api"; import {fromUrlQueryString } from "react-elasticsearch-pop"; import queryString from "query-string"; // Get collection by ref prefix. export async function findCollection(ref = "") { if (typeof ref !== "string") { return ""; } let collection = ""; let producteu...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = transform; var _vueTemplateCompiler = require("vue-template-compiler"); var _parser = require("@babel/parser"); var _traverse = _...
import { defaultState } from '@/constants/default' const KEY = 'state' export const state = () => ({ bow: defaultState.bow, custom: { attack: null, affinity: null, element: null }, parts: null, buff: { coating: null, powerCharm: true, powerTalon: true, demonPowder: true, canteen: 15, d...