text stringlengths 3.07k 16k |
|---|
/* eslint no-sync:0, no-console:0, no-param-reassign:0, max-statements:0 */
// core modules
const path = require('path');
// own modules
const OCLI = require('../../lib/OCLI');
const Styles = require('../../lib/Styles');
const pkg = require('../../package.json');
const utils = require('../../lib/utils');
const { fs ... |
var gId = '#dataGrid';
var buyInserts='#buyInserts';
var buyDeletes='#buyDeletes';
var buySelects='#buySelects';
var buyUpdates='#buyUpdates';
var lastIndex;
$(document).ready(function(){
//列表
$(gId).datagrid({
url:getUrlOpt(),
idField:'id',
fitColumns:true,
frozenColumns:[[
{field:'ck',check... |
import React, { useState, useEffect } from "react";
import TextField from "@material-ui/core/TextField";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import Error from "../shared/Error";
import * as api from "../shared/api";
import MyCa... |
import React, { useState, useEffect } from "react";
import {
ShareRoutePanelHolder,
ShareRouteHeader,
ShareHolder,
Button,
ShareOptionsContainer
} from "./share-route-panel.style";
import { successToaster, MobileCompatWrapper, ModalCloseButton } from "@utils";
import { useTranslation } from "react-i18next";... |
/**
* Copyright 2013-2014 Facebook, 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 agree... |
import React, { Component } from 'react';
import isElectron from 'is-electron';
import VoxeetSDK from '@voxeet/voxeet-web-sdk';
import Sdk from '../services/sdk';
import Recording from './recording';
import '../styles/actions.less';
class Actions extends Component {
constructor(props) {
super(props);
... |
// contact.js
/* global freezr freepr */
/* global requestAnimationFrame, confirm */
var contactsTable
const FIELD_LIST = ['nickname', 'username', 'serverurl']
freezr.initPageScripts = function () {
contactsTable = document.getElementById('contacts_table')
document.addEventListener('click', function (evt) {
... |
import _extends from '../../../node_modules/@babel/runtime/helpers/extends.js';
import _styled from 'styled-components';
import React, { useState, useRef, useCallback, useEffect } from 'react';
import propTypes from '../../../node_modules/prop-types/index.js';
import { animated as extendedAnimated, Transition } from '.... |
// Browser detection. Yes, really. Guess for which browser? Nope! Chrome.
var b = document.documentElement;
b.setAttribute('data-useragent', navigator.userAgent);
b.setAttribute('data-platform', navigator.platform);
// Modified http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/
// O... |
const Discord = require("discord.js");
require('dotenv').config({
path: 'variables.env'
});
const {
Client,
Util
} = require("discord.js");
const client = new Discord.Client();
const TOKEN = process.env.TOKEN
const PREFIX = process.env.PREFIX
const port = process.env.PORT || 3000;
app.listen(port);
const ms = requir... |
import m4 from './m4';
let vertexShaderSource = `
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec4 a_normal;
uniform mat4 u_matrix;
uniform mat4 u_NormalMatrix;
varying vec4 v_color;
void main() {
gl_Position = u_matrix * a_position;
vec3 ambientLight = vec3(0.15, 0.15, 0.15);
vec3 lightDirect... |
import React, { useState } from 'react'
import Link from 'next/link'
import PageTitle from '../components/page-title'
import {facebook, twitter, instagram, whatsapp} from '../utils/icon-variables'
import { useForm } from 'react-hook-form'
const Contact = () => {
//form validation
//cite: https://tools.ietf.o... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getNextPhrase, voteForPhraseLabel, deleteLastVote } from '../api';
import Searchbar from './searchbar';
import { Card, CardAction, CardActions, CardPrimaryAction } from '@rmwc/card';
import { Fab } from '@rmwc/fab';
import { Grid... |
document.addEventListener('DOMContentLoaded', function() {
if(window.location.hash) {
showDoc(window.location.hash.substr(1));
}
showInitial()
const selectElement = document.querySelector('input');
selectElement.addEventListener('input', function (evt) {
filterNodesByText(this.valu... |
/**
* DB for tokenizer keywords
*/
'use strict';
const keywordsDB = {
'keyword': [
'about',
'and',
'angle',
'animate',
'as',
'at',
'bitmap',
'button',
'by',
'cameras',
'case',
'catch',
'checkbox',
'checkbutton',
'collect',
'colorpicker',
'combobox',
'continue',
'coordsys',
'... |
'use strict';
const _ = require('lodash');
const assert = require('assert');
const util = require('util');
const Queryable = require('./queryable');
const Delete = require('./statement/delete');
const Insert = require('./statement/insert');
const Update = require('./statement/update');
const where = require('./stateme... |
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {injectIntl, intlShape} from 'react-intl';
import {
InteractionManager,
StyleSheet,
View
} from 'react-nativ... |
const shortid = require("shortid");
const mongoose = require("mongoose");
const bcrypt = require("bcrypt");
require("dotenv").config();
const sgMail = require("@sendgrid/mail");
const JWT = require("jsonwebtoken");
const User = require("../models/user");
const axios = require("axios");
const { isDeepStrictEqual } = req... |
#!/usr/bin/env node
/**
* External dependencies
*/
const execSync = require( 'child_process' ).execSync;
const fs = require( 'fs-extra' );
const glob = require( 'glob' );
const lodash = require( 'lodash' );
const padEnd = lodash.padEnd;
const padStart = lodash.padStart;
const path = require( 'path' );
const prettyBy... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React, { useCallback } from 'react';
import PropTypes from 'prop-types';
import AngleLeftIcon from '@rsuite/icons/legacy/AngleLeft';
import AngleRightIco... |
"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 { useState } from "react";
import "bootstrap/dist/css/bootstrap.min.css";
import { Navbar, Nav, Form, FormControl, Button, Modal } from "react-bootstrap";
import Axios from "axios";
import { message } from "antd";
import socketIOClient from "socket.io-client";
import { u... |
var mongo = require('mongodb');
var moment = require('moment');
var math = require('mathjs')();
var Wunderground = require('node-weatherunderground');
exports.weather = function (context, entities) {
var api = new Wunderground(process.env.WUNDERGROUND_KEY, entities.location.value);
api.conditions('', function (err... |
// REACT APP IMPORTS
import React, { Component } from "react";
// WEB3 IMPORTS
import getWeb3 from "./getWeb3";
import MyTokenSale from "./contracts/MyTokenSale.json";
import Whitelist from "./contracts/Whitelist.json";
import MyToken from "./contracts/MyToken.json";
// SCREENS IMPORTS
import LoadingScreen from "./s... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _vue = require("vue");
var _shared = require("./shared");
var _utils = require("../utils");
var _use = require("@vant/use");
var _useExpose = require("../composables/use-expose");
var _useLockScroll = require("../composables/use-lock-scroll")... |
const { expect } = require('chai');
const NoSuchPropertyException = Jymfony.Component.PropertyAccess.Exception.NoSuchPropertyException;
const UnexpectedTypeException = Jymfony.Component.PropertyAccess.Exception.UnexpectedTypeException;
const PropertyAccessor = Jymfony.Component.PropertyAccess.PropertyAccessor;
const Fi... |
const nearconfig = {
nodeUrl: 'https://rpc.mainnet.near.org',
walletUrl: 'https://wallet.mainnet.near.org',
helperUrl: 'https://helper.mainnet.near.org',
networkId: 'mainnet',
contractName: 'psalomo.near',
deps: {
keyStore: null
}
};
const token_id = '3';
/*
const nearconfig = {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BooksController = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@nestjs/common");
const client_1 = require("@prisma/client");
const utility_service_1 = require("../utility/utility.service");
const public_decorator... |
//
// Copyright (c) 2018 <NAME> <<EMAIL>>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// This program is d... |
import csstree from 'css-tree';
import { assert } from '../utils.js'
import nwsapi from './ext/nwsapi';
export function processCSS(styleNode, config) {
// TODO: make hash
let id = Math.floor(Date.now() * Math.random()).toString(36);
if(id.length > 6) id = id.substring(id.length - 6)
id = 'm' + id;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _analytics;
function _load_analytics() {
return _analytics = _interopRequireDefault(require('nuclide-commons-atom/analytics'));
}
var _DiagnosticsTable;
function _load_DiagnosticsTable() {
return _DiagnosticsTable = _interopRequ... |
import * as THREE from './resources/three.js/r126/three.module.js';
var scene;
var renderer;
var camera;
var triangleMesh;
var rotX = 0.0, rotY = 0.0, rotZ = 0.0;
function main()
{
scene = new THREE.Scene();
renderer = new THREE.WebGLRenderer();
const axis = new THREE.AxesHelper();
scene.add(axis... |
import Joi from 'joi';
import snooplogg from 'snooplogg';
/**
* Ensures that a value is an array. If not, it wraps the value in an array.
*
* @param {*} it - The value to ensure is an array.
* @param {Boolean} [removeFalsey=false] - When `true`, filters out all falsey items.
* @returns {Array}
*/
export function... |
import createLoadRemoteModule from '@paciolan/remote-module-loader';
import NWChem from './nwchem/nwchem-simput';
import NWChemExec from './nwchem/nwchem-exec';
import NWChemNeb from './nwchem/nwchem-neb';
import OpenFOAMTutorial from './openfoam/tutorials';
import OpenFOAMWindTunnel from './openfoam/windtunnel';
impo... |
import React from "react";
import styled from "styled-components";
import Icons from "./Icons";
import Dropdown from "../../components/Dropdown";
import Tooltip from "rc-tooltip";
import "rc-tooltip/assets/bootstrap.css";
const Wrapper = styled.div`
display: flex;
height: 50px;
padding: 10px;
background: #ffeb... |
const uuid = require('uuid').v4
const _ = require('lodash')
const { DOMAIN } = require('../config')
var async = require('async')
var API_Call = require('./api')('another');
var rp = require('request-promise');
class Directive {
constructor({ namespace, name, payload }) {
this.header = {
messageId: uuid(),
... |
// Variables grabbing Input, Submit & Clear Elements
var searchBtn = $("#searchButton");
var clearBtn = $("#clearButton");
var cityInput = $("#city-input");
// Variables to dynamically edit main city display elements
var currentCity = $("#displayCity");
var currentDate = $("#displayDate");
var currentTemp = $("#displa... |
const resolveTSExtension = require("../utils/resolveTSExtension");
const getImports = require("../utils/getImports");
const Component = require("../Component");
const path = require("path");
const fsPromise = require("../utils/fsPromise");
const routerMatcher = /new Router\(\[([^]+)\](, .+)?\)/;
const routeMacroMat... |
const fs = require('fs');
const readline = require('readline');
const {google} = require('googleapis');
// If modifying these scopes, delete token.json.
const SCOPES = [
'https://www.googleapis.com/auth/gmail.readonly'
];
// The file token.json stores the user's access and refresh tokens, and is
// created automatic... |
const { test, expect } = require("@jest/globals");
const {
calcSize,
isValidSize,
setSigDig,
calcLimitPrice,
meanArr,
getDeltaYs,
squareArr,
sumArr,
calculateVariance,
calculateVolatility,
getTimeRange,
calculateVWAP,
convertTimeShortHandToMinutes,
calculateRSI,
calcAverageMoves,
calcula... |
var clss = [];
function jsonMap(nameSpace, clsName, jsonStr, isNet) {
clss = [];
var o;
eval('o=' + jsonStr);
jsonWalk(clsName, o);
var ss = [];
if (isNet) {
ss.push('using System;');
ss.push('using System.Collections.Generic;');
ss.push('using System.Text;');
ss.push('using LitJson;');
ss.push('namesp... |
let Callback = require('./util/callback');
let types = require('./util/type');
let fs = require("fs");
let logInfo = "======================";
function readFile(path) {
let result = {};
try{
result = require(`${process.cwd()}/${path}`);
}catch(e1){
try{
result = require(`${path}`);
}catch(e2){
return n... |
const path = require('path')
const fs = require('fs')
const fetch = require('node-fetch')
const {spawn} = require('child_process')
const {
GECKO_PATH,
CHROME_PATH,
STANDALONE_PATH
} = require('../drivers/util')
const RUN_PROCCESS = require('./vars')
function getRandomPort() {
const getRN = () => Math.floor(Ma... |
import React, { useEffect } from "react";
import { useSelector, useDispatch } from "react-redux";
// import { NavLink } from "react-router-dom";
import { useParams } from "react-router";
import { avgReview } from "../multipurpose";
import SSReviewSection from "../SSReviewSection/SSReviewSection";
import SingleReview fr... |
/* Copyright 2017 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 t... |
'use babel'
/** @jsx etch.dom */
import { CompositeDisposable } from 'atom'
import etch from 'etch'
import EtchComponent from './etch-component'
import EtchStoreComponent from './etch-store-component'
import Expandable from './expandable'
import { BreakpointsContainer } from './breakpoints'
import { StacktraceContai... |
window.onload = init;
$(function(){
$("#submit").click(function(){
var username = $("#username").val();
var password = $("#password").val();
var email = $("#email").val();
var fname = $("#fname").val();
var lname =$("#lname").val();
var gender =$('input:radio[name="gend... |
import * as Yup from "yup";
import { useState } from "react";
import { Icon } from "@iconify/react";
import { useSnackbar } from "notistack";
import { useFormik, Form, FormikProvider } from "formik";
import eyeFill from "@iconify/icons-eva/eye-fill";
import closeFill from "@iconify/icons-eva/close-fill";
import eyeOffF... |
function getRoundEvals(round) {
restRequest('POST', {'index': 'get_evals', 'round':round}, updateEvalSelect)
}
function savedToLog() {
console.log('success')
}
function updateEvalSelect(data) {
var options = [];
options.push(`<option selected disabled> Select An Evaluation </option>`)
data.forEach... |
const png = /\.png(\?.*)?$/
const jpg = /\.jpe?g(\?.*)?$/
const webp = /\.webp(\?.*)?$/
const svg = /\.svg(\?.*)?$/
/**
* https://helpx.adobe.com/hk_en/experience-manager/6-3/assets/using/best-practices-for-optimizing-the-quality-of-your-images.html
* https://sirv.com/help/articles/jpeg-quality-comparison/#use-sirv-t... |
import React from "react";
import 'antd/dist/antd.css';
import { Form, Input, Icon, Tooltip, Cascader, Drawer, Row, Col, Button, Checkbox } from 'antd';
const CheckboxGroup = Checkbox.Group;
const plainOptions = ['isControl', 'isMandatory', 'isDeployer'];
const defaultCheckedList = [];
class EditLink extends React.Co... |
/* eslint-disable no-nested-ternary */
import React, { memo, useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import {
MuiPickersUtilsProvider,
KeyboardTimePicker,
KeyboardDate... |
// Define the global variables
var characterScore;
var enemyScore ;
var listCharacters ;
var listEnemies ;
// if the main character is chosen (true/false)
var playerChosen;
//if the defendant players are chosen(true/false)
var defendantChosen;
// list of character containers
var listContainerIDs;
//Obj... |
var gulp = require('gulp');
var sass = require('gulp-sass');
var inlineCss = require('gulp-inline-css');
var cheerio = require('gulp-cheerio');
var wrap = require('gulp-wrap');
var styleInject = require('gulp-style-inject');
var prettify = require('gulp-jsbeautifier');
var fs = require('fs');
var _ = require('lodash');... |
'use strict'
var React = require('react');
var request = require('superagent');
var Dropzone = require('react-dropzone');
var toastr = require('toastr');
var api = require('utils/api');
var mui = require('material-ui'),
FontIcon = mui.FontIcon,
IconButton = mui.IconButton;
import FlatButton from 'material-ui/lib/... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fireLazy = 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; descrip... |
// pages/orderview/orderview.js
const app=getApp();
var util = require('../../util/util')
Page({
/**
* 页面的初始数据
*/
data: {
item : [],
},
updateDataFromCloud:function(){
wx.cloud.callFunction({
name: 'query_appointment', //云函数的名称
data: {
id:app.globalData.openid
},
... |
var fs = require('fs'),
isArray = require('lodash.isarray');
function trim(string) {
return string.replace(/^\s+|\s+$/g, '');
}
var PO = function () {
this.comments = [];
this.headers = {};
this.items = [];
};
PO.prototype.save = function (filename, callback) {
fs.writeFile(filename, this.toS... |
const $ = (selector) => document.querySelector(selector);
const createElement = (tagName) => document.createElement(tagName);
let photos = [];
(async () => {
const API_URL = 'https://picsum.photos/v2/list';
const fetchPhotos = async (page = 1, limit = 30) => {
const responseAsStream = await fetch(`${... |
// eslint-disable-next-line
import {
UserLayout,
BasicLayout,
BlankLayout
} from '@/layouts'
import {
bxAnaalyse
} from '@/core/icons'
const RouteView = {
name: 'RouteView',
render: h => h('router-view')
}
export const asyncRouterMap = [{
path: '/',
name: 'index',
component: BasicLayout,
m... |
var __webpack_modules__ = ({});
var __webpack_module_cache__ = {};
function __webpack_require__ (moduleId) {
var cachedModule = __webpack_module_cache__[moduleId];
if (cachedModule !== undefined) {
return cachedModule.exports;
}
var module = __webpack_module_cache__[moduleId] = {
exports: {}
};
__we... |
jsio('import net');
jsio('from util.browser import $');
jsio('from .world.constants import *');
jsio('from .world.client import *');
// logging.get('.world.client').setLevel(0);
// logging.get('csp.transports.jsonp').setLevel(0);
// logging.get('csp.client').setLevel(0);
// logging.get('csp.transports').setLevel(0);
/... |
var Player = function (game, onDead) {
this.game = game;
this.onDeadCallback = onDead;
this.baseAngle = 90;
this.nextFire = 0;
this.fireRate = 500;
this.basePercAccess = 0;
this.pointx = TanksUtil.porcentX.call(this, 100);
this.pointy = TanksUtil.porcentY.call(this, 50);
this.cann... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import React from 'react';
import HistoryExtensionList from "./HistoryExtensionList";
import * as HistoryExtensionWorkActions from "./HistoryExtensionWorkActions";
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import Loading from "../../components/common/Loading";
import Search from "..... |
import React from "react";
import ReviewFunctionBar from "./ReviewFunctionBar";
import { db } from "../util/dbfunctions";
import List from "./List";
import Modal from "./Modal";
class ReviewClubView extends React.Component {
state = {
selectedCalls: [],
selectedCallsLoading: false,
session... |
//Set the path to our data
var url = "./static/js/samples.json";
//Create a afunction that will plot all the necessary graphs
function plotData(id) {
d3.json(url).then(data => {
var samples = data.samples.filter(data => data.id.toString() === id)[0];
var sampleValues = samples.sample_values.slice(0, 10).reve... |
const configuration = {
port: 3000,
server: {
directory: '@server',
jar: 'server-0.1.0.jar',
host: 'localhost',
port: 8086
}
};
const { src, dest, watch, series, parallel } = require('gulp');
const exec = require('child_process').exec;
const path = require('path');
const pu... |
import { Meteor } from 'meteor/meteor';
import { GlobalSettings } from '/imports/config/GlobalSettings';
import { UserRoles } from '../userroles';
import { Minutes } from '../minutes';
import { Attachment } from '../attachment';
import { FilesCollection } from 'meteor/ostrio:files';
import { extendedPublishSubscribeH... |
const axios = require('axios').default
const cheerio = require('cheerio')
const { URL } = require('url')
const { cleanArray } = require('./../helper')
const idSekolahKita = process.env.SEKOLAHKITA
const targetUrl = 'http://sekolah.data.kemdikbud.go.id/index.php/chome/profil/' + idSekolahKita
const { hostname } = new U... |
/**
* 订单处理器
* Created by chenda on 2016/10/23.
*/
const dao = require("../dao/dao");
//添加订单信息
exports.addOrder = async function(request,reply){
var user = request.auth.credentials;
var order = request.payload;
if(order.number<=0){
reply({"message":"购买失败,您输入的商品的数量必须大于0!","statusCod... |
import * as React from "react";
import { css } from "@emotion/react";
import { ModalPortal } from "~/components/core/ModalPortal";
import { mergeRefs } from "~/common/utilities";
import { useEscapeKey, useEventListener } from "~/common/hooks";
import { Boundary } from "~/components/system/components/fragments/Boundary... |
"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... |
'use strict';
const SAN_SERIF_FONT = 'BlinkMacSystemFont,-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif'
const SERIF_FONT = 'Interface,medium-content-serif-font,Georgia,Cambria,"Times New Roman",Times,serif'
function loadCustomFont () {
const link = document.createElement('link');
link.setAttribute... |
import fire from "../../api/commonFirebase";
import "antd/dist/antd.css";
import {Form, Input, Button, message, InputNumber,Radio} from "antd";
import React,{Component} from "react";
class RegistrationForm extends Component{
state = {
ratio:1.2,
gender:'male',
}
formItemLayout = {... |
let { Class } = require('sdk/core/heritage');
let { Unknown } = require('sdk/platform/xpcom');
let { Cc, Ci } = require('chrome');
let pS = Cc['@mozilla.org/network/protocol-proxy-service;1'].getService(Ci.nsIProtocolProxyService);
let sp = require("sdk/simple-prefs");
let ProxyRule = require('./proxy_rule').ProxyRule;... |
import React, { useEffect, useState } from "react";
import PropTypes from "prop-types";
import {
Marker,
GoogleMap,
InfoWindow,
DirectionsRenderer,
} from "@react-google-maps/api";
import mapUKStyles from "./mapUKStyles";
import { getInitials } from "../../common/Avatar.component";
const containerStyle = {
w... |
/*!
* resolve-plugins-sync <https://github.com/tunnckoCore/resolve-plugins-sync>
*
* Copyright (c) <NAME> <@tunnckoCore> (https://i.am.charlike.online)
* Released under the MIT license.
*/
'use strict'
const path = require('path')
const { getInstalledPathSync } = require('get-installed-path')
/**
* > Babel/Bro... |
import React from 'react';
import assert from 'assert';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import ProjectStatus from './project-status';
const project = {
name: 'Test Project',
configuration: {
default_workflow: '1'
}
};
const workflows = [
{
active: true,
configuration: ... |
// chart colors
var $border_color = "#efefef";
var $grid_color = "#ddd";
var $default_black = "#666";
var $default_grey = "#ccc";
var $primary_color = "#428bca";
var $go_green = "#93caa3";
var $jet_blue = "#70aacf";
var $lemon_yellow = "#ffe38a";
var $nagpur_orange = "#fc965f";
var $ruby_red = "#fa9... |
const WebSocket = require('ws')
const { stringify, parse } = require('non-blocking-json')
class DevtoolBackend {
constructor(options) {
this.options = options
this.currentParse = Promise.resolve()
this.clientSockets = {}
this.onClientConnection = this.onClientConnection.bind(this)
this.onDevtoolC... |
/*!
* scriptnum.js - script number object for ldogejs.
* Copyright (c) 2017, <NAME> (MIT License).
* https://github.com/bcoin-org/bcoin
*/
'use strict';
const assert = require('bsert');
const {I64} = require('n64');
const ScriptError = require('./scripterror');
const {inspectSymbol} = require('../utils');
/*
* ... |
//Modified from: https://github.com/mikeal/githubarchive
var util = require('util')
, stream = require('stream')
, path = require('path')
, fs = require('fs')
, zlib = require('zlib')
, jsonstream = require('JSONStream')
, timezone = require('timezone')
, request = require('request').defaults({pool:{maxS... |
// twister_newmsgs.js
// 2013 <NAME>
//
// Periodically check for new mentions and private messages (DMs)
// Update UI counters in top bar. Load/save state to localStorage.
// --- mentions ---
var _knownMentions = {}
var _lastMentionTime = 0;
var _newMentions = 0;
var PURGE_OLD_MENTIONS_TIMEOUT = 3600 * 24 * 30; // o... |
const { isString, groupBy } = require("lodash");
const fs = require("fs");
const path = require("path");
const yaml = require("js-yaml");
const moment = require("moment");
const numeral = require("numeral");
const puppeteer = require("puppeteer");
const handlebars = require("handlebars");
const svgToDataURL = require("... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var fs = require("fs");
var index_1 = __importDefault(require("../write-file/index"));
/**
* EN: Conver... |
//=====================全局函数========================
//Tab控制函数
function tabs(tabId, tabNum){
//设置点击后的切换样式
jQuery(tabId + " .tab li").removeClass("curr");
jQuery(tabId + " .tab li").eq(tabNum).addClass("curr");
//根据参数决定显示内容
jQuery(tabId + " .tabcon").hide();
jQuery(tabId + " .tabcon").eq(tabNum).show();
}
/*全站通用... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d ... |
var CompileError = require("./compileerror");
const {getWrapper} = require("../SonicXSolc")
// var solc = require("sonicx-solc");
var fs = require("fs");
var path = require("path");
// Clean up after solc.
var listeners = process.listeners("uncaughtException");
var solc_listener = listeners[listeners.length - 1];
if ... |
/* MIT License
*
* Copyright (c) 2019 - 2022 <NAME> <<EMAIL>>
*
* 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 strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWithinMinMax = exports.getSeconds = exports.getMinutes = exports.getHours = exports.validateTime = exports.parseTime = exports.makeTimeOptions = exports.pmSuffix = exports.amSuffix = void 0;
exports.amSuffix = ' AM';
exports.pmSuffix... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _paths = require("@sanity/util/paths");
var _rxjs = require("rxjs");
var _operators = require("rxjs/operators");
var _ReferenceInput = require("../..... |
import Stream from '../stream'
import {VALUE, ERROR} from '../constants'
import {inherit} from '../utils/objects'
import {concat, forEach, findByPred, find, remove, cloneArray} from '../utils/collections'
const id = x => x
function AbstractPool({queueLim = 0, concurLim = -1, drop = 'new'} = {}) {
Stream.call(this)
... |
'use strict';
var _typeof2 = require('babel-runtime/helpers/typeof');
var _typeof3 = _interopRequireDefault(_typeof2);
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getProto... |
import React, {PropTypes} from 'react';
import {
Text,
View,
Image,
ScrollView,
TextInput,
Dimensions,
TouchableOpacity,
StyleSheet
} from 'react-native';
import EIcon from 'react-native-vector-icons/Entypo';
import Ionicon from 'react-native-vector-icons/Ionicons';
import MCIcon from 'react-native-vect... |
// Copyright (c) 2011-2012, Motorola Mobility, 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 l... |
/* eslint-disable no-console */
const modulePath = '../src'
function resetEnv (env) {
jest.resetModules()
if (env === 'browser') {
window.localStorage && window.localStorage.removeItem('debug')
}
if (env === 'node') {
Object.keys(process.env)
.filter(key => /^debug_/i.test(key))
.forEach... |
var loaderUtils = require('loader-utils');
var webfontsGenerator = require('webfonts-generator');
var path = require('path');
var glob = require('glob');
var url = require('url');
var hashFiles = require('./utils').hashFiles;
var mimeTypes = {
'eot': 'application/vnd.ms-fontobject',
'svg': 'image/svg+xml',
'ttf'... |
import React from "react";
import IntervalTree from "node-interval-tree";
import { sortBy, noop } from "lodash";
import { getRangeLength } from "ve-range-utils";
import getRangeAngles from "./getRangeAnglesSpecial";
import getYOffset from "./getYOffset";
import withHover from "../helperComponents/withHover";
import Pos... |
import doctrine from 'doctrine';
import parser from 'swagger-parser';
import YAML from 'yaml';
import fs from 'fs';
import {
convertGlobPaths,
extractAnnotations,
extractYamlFromJsDoc,
hasEmptyProperty,
isTagPresentInTags,
mergeDeep,
} from './utils.js';
/**
* Prepare the swagger/openapi specification ob... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.