text stringlengths 3.22k 29.5k |
|---|
const keystone = require("keystone");
const moment = require("moment");
const Dataset = keystone.list("Dataset");
const Datapoint = keystone.list("Datapoint");
const Fieldsite = keystone.list("Fieldsite");
const _ = require("lodash");
const mailer = require("../../utils/emailer");
const analyzer = require("../../utils/... |
require('isomorphic-fetch');
const dotenv = require('dotenv');
dotenv.config();
// const {default: Shopify, ApiVersion} = require('@shopify/shopify-api');
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const serve = require('koa-static');
const mount = require('koa-mount');
const next = requi... |
/*! unmark Internal - https://unmark.it - 2020-10-06 - https://unmark.it/ */
if (void 0 === unmark)
var unmark = {};
!function(u) {
unmark.ajax = function(a, o, t, i, e, n) {
n = void 0 === n || n;
var r = "csrf_token=" + unmark.urlEncode(unmark.vars.csrf_token) + "&content_type=" + (e = void 0... |
let e, t, n = !1;
const l = "undefined" != typeof window ? window : {}, s = l.document || {head: {}}, o = {
t: 0,
l: "",
jmp: e => e(),
raf: e => requestAnimationFrame(e),
ael: (e, t, n, l) => e.addEventListener(t, n, l),
rel: (e, t, n, l) => e.removeEventListener(t, n, l),
ce: (e, t) => new... |
/**
* Created by Miinno-13 on 2018/1/18.
*/
$(function () {
//活动结束标识
var event_end = $('#is_end').val();
if (event_end == 1) {
$('.btn-start').addClass('none');
$('.mask-end').removeClass('none');
}
//机会用尽标识
var chance_end=$('#is_chance').val();
if (chance_end == 1) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Bearing = Bearing;
exports.streamDataModify = streamDataModify;
exports.setMarkersData = setMarkersData;
exports.sortByDistance = sortByDistance;
exports.findDistance = findDistance;
exports.identifyGeoData = identifyGeoData;
exports... |
/*
Copyright (c) 2012, 2013, 2014 Oracle and/or its affiliates. All rights
reserved.
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; version 2 of
the License.
This program is distributed in... |
import React, { useState } from "react";
import PropTypes from "prop-types";
import { makeStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
import TextField from "@material-ui/core/TextField";
import InsertDriveFileIcon from "@material-ui/icons/InsertDriveFile";
import ListIcon fr... |
/**
* @file Tube Mesh Buffer
* @author <NAME> <<EMAIL>>
* @private
*/
// @ts-ignore: unused import Matrix4 required for declaration only
import { Vector3 } from 'three';
import { defaults, getUintArray } from '../utils';
import { serialArray } from '../math/array-utils';
import MeshBuffer from './mesh-buffer';
impo... |
import Vue from 'vue';
import VueRouter from 'vue-router';
import suggestion from '../views/suggestion/suggestion.vue'
import store from '../store';
Vue.use(VueRouter);
const mine = {
/*
Auther:施冬冬
*/
path: '/main/mine',
name: 'mine',
component: () => import('../views/main/mine.vue'),
... |
'use strict';
/*
* INTERMEDIATE ALGORITHM SCRIPTING
*
* 1. Sum All Numbers in a Range
* https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/sum-all-numbers-in-a-range/
*
* 2. Diff Two Arrays
* https://learn.freecodecamp.org/javascript-algorithms-and-data-str... |
import moment from 'moment';
export function fixedZero(val) {
return val * 1 < 10 ? `0${val}` : val;
}
export function getTimeDistance(type) {
const now = new Date();
const oneDay = 1000 * 60 * 60 * 24;
if (type === 'today') {
now.setHours(0);
now.setMinutes(0);
now.setSeconds... |
'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
var _reactAddonsCreateFragment = require('react-addons-create-fragment');
var _reactAddonsCreateFr... |
#!/usr/bin/env node
var fs = require( "fs" );
var readline = require( "readline" );
var Repo = require( "git-tools" );
var colors = require( "colors" );
var minimist = require( "minimist" );
// Parse arguments
var args = minimist( process.argv.slice( 2 ), {
alias: {
f: "file",
p: "pattern",
C: "context",
c: ... |
var websocket;
var alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
var currentTableName = "";
var initWebsocket = function(){
websocket = new WebSocket($("body").data("ws-url"));
websocket.onopen = function(evt) { onOpen(evt) };
websocket.onclose = function(evt) { onClose(evt) };
websocket.onmessage... |
import {
Block,
View,
Text,
Textarea,
Input,
Picker,
Image
} from '@tarojs/components'
import Taro from '@tarojs/taro'
import withWeapp from '@tarojs/with-weapp'
import FaSwitch from '../switch/index'
import FaArea from '../area/index'
import './index.scss'
@withWeapp('Component')
class _C extends Taro.C... |
var total = totalItem("false");
document.getElementById('count').innerHTML= total+ "--items left";
function resetActive () {
document.getElementById('all').classList.remove('att');
document.getElementById('active').classList.remove('att');
document.getElementById('complete').classList.remove('att');
}
f... |
import * as request from './request.js';
const addBtn = document.getElementById("add");
const searchBar = document.getElementById("search");
const eraseIcon = document.getElementById("erase");
const userIcon = document.getElementById("user");
/* LOGIN */
if (request.isLoggedOn()) {
userIcon.classList.toggle("fa-... |
// ==========================================================================
// CacheableRequest.Response Unit Test
// ==========================================================================
/*globals CacheableRequest */
var response, originalResponse, originalFindCached, originalCacheResponse, originalDatabaseCre... |
/*-----------------Function Declarations-----------------*/
function toggleValidClass(idValue, addFirst) {
if (addFirst === "first") {
idValue.addClass("validStyle");
idValue.removeClass("invalidStyle");
enableForm();
} else {
idValue.addClass("invalidStyle");
idValue.removeClass("validStyle");... |
const DEGREES_TO_RADIANS = 0.0174533
const SNAPPING_RATIO = 1 / 400
function basis (t, count) {
const w = new Array(count)
for (let i = 0; i < count; i++) {
const factor = (i === 0 || i === count - 1)
? 1
: (count - 1)
w[i] = factor * Math.pow((1 - t), count - 1 - i) * Math.pow(t, i)
}
retu... |
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE
'use strict';
var $$Array = require("bs-platform/lib/js/array.js");
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var React = require("react");
var Json_decode = require("@glennsl/bs-json/src/Json_decode.bs.js... |
/**
* Module dependencies.
*/
require('newrelic');
var handlebars = require('express-handlebars');
var bodyParser = require('body-parser');
var express = require('express');
var cookieParser = require('cookie-parser');
var compress = require('compression');
var favicon = require('serve-favicon');
var session = requi... |
import Tool from './util.js';
import Palette from './Palette.js';
class CircleProgress {
constructor(options) {
const canvas = Tool.getDom(`#${options.canvasId}`);
if (canvas) {
let option = setOption(options, canvas);
setCanvasStyle(option, canvas);
setLineStyle(option);
startDraw(option);
}
}
... |
#!/usr/bin/env node
"use strict";
require("dotenv").config({ path: ".env" });
const irc = require("irc");
const fetch = require("node-fetch");
const get = require("lodash/get");
const clientLibera = new irc.Client("irc.libera.chat", "skillbot", {
channels: ["#theskillwithin"],
userName: "skillbot",
realName: "sk... |
var tasksmap = new Map();
class Task {
constructor(name, txtlines) {
this.name = name;
this.txtlines = txtlines;
// calculated and set fields
this.nlines = txtlines.length;
this.maxwidth = Task.calcMaxWidth(txtlines, this.nlines);
this.height = 15 * this.nlines + 5
}
static calcMaxWidth(txtlines, nl... |
/* global $, Image, contributors, requestAnimationFrame */
function transitionForProgressInRange (progress, startValue, endValue) {
return startValue + (endValue - startValue) * progress
}
function progressForValueInRange (value, startValue, endValue) {
return (value - startValue) / (endValue - startValue)
}
funct... |
import {
observable,
action
} from 'mobx';
import Firebase from '../config/Firebase'
import Router from 'next/router'
import moment from 'moment'
import { Modal, message, notification, Progress } from 'antd'
const confirm = Modal.confirm;
let date = moment().format('YYYY-MM-DDTHH:mm:ss');
let time... |
"use strict";
// CONSTANTS
const BINARY_EXPR_TYPES = new Set(["Literal", "BinaryExpression", "Identifier"]);
const GLOBAL_IDENTIFIERS = new Set(["global", "globalThis", "root", "GLOBAL", "window"]);
const SAFE_HEX_VALUE = new Set(["0123456789", "abcdef", "0123456789abcdef", "abcdef0123456789abcdef"]);
const GLOBAL_PAR... |
/**
* Total Search Volume for your Exact Match Keywords
*
* The total search volume is based on your
* impressions / impression share | (e.g. 1000/0.25)
*
* @source
* https://github.com/kaugesaar/adwords-scripts
*
*/
// Enter your email address
var email = '';
// Style your report with a logo
var logo_img... |
// DATA
var DATA = 0;
var GRID = 0;
var CONTENT = false;
// CONTROLS
const drop = document.querySelector('#drop_zone');
const stepInput = document.querySelector('#step');
const marginInput = document.querySelector('#margin');
const fieldInput = document.querySelector('#field');
const tableBox = document.querySelector... |
//
// Copyright 2021 XiaoJSoft Studio. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.md file.
//
//
// Imports.
//
// Imported modules.
const Lc3UInt =
require("./../common/uint");
const Lc3Error =
require("./../error");
// Impo... |
var width = Ti.Platform.displayCaps.platformWidth,
height = Ti.Platform.displayCaps.platformHeight;
if (Ti.Platform.osname === 'android') {
width = Ti.Platform.displayCaps.platformWidth / Ti.Platform.displayCaps.logicalDensityFactor;
height = Ti.Platform.displayCaps.platformHeight / Ti.Platform.displayCaps.... |
'use strict';
import React, { PureComponent } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ScrollView,
ListView,
PixelRatio,
InteractionManager
} from 'react-native';
import PropTypes from 'prop-types';
import Common from '../Commom/constan... |
TL_ENABLED_TEXT = "<a href='javascript:;' onclick='tlinject_revert()'>Disable TLs</a> " +
"(<a href='javascript:;' onclick='tlinject_about()'>What's this?</a>)"
TL_DISABLED_TEXT = "<a href='javascript:;' onclick='tlinject_enable()'>Enable TLs</a> " +
"(<a href='javascript:;' onclick... |
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"... |
var LATIN_MAP = {
'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç':
'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I',
'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö':
'O', 'Ő': 'O', 'Ø': 'O', 'Ù': 'U', 'Ú': 'U', 'Û': 'U', '... |
'use strict';
const {Transform} = require('stream');
const PluginError = require('plugin-error');
const Dumber = require('dumber');
const Concat = require('concat-with-sourcemaps');
const Vinyl = require('vinyl');
const path = require('path');
const crypto = require('crypto');
const log = require('fancy-log');
const PL... |
import { Meteor } from 'meteor/meteor';
import { HTTP } from 'meteor/http';
import { check } from 'meteor/check';
import { settings } from 'meteor/rocketchat:settings';
import { hasPermission } from 'meteor/rocketchat:authorization';
import { Users, Rooms, Subscriptions } from 'meteor/rocketchat:models';
import { getDe... |
import React, {Component} from 'react';
import {
StyleSheet,
Text,
View,
Dimensions,
TouchableOpacity,
ImageBackground,
StatusBar,
ScrollView,
TouchableWithoutFeedback,
Image,
Button,
ActivityIndicator,
AppRegistry,
Alert,
TextInput
} from 'react-native';
import ImagePicker from 'rea... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import * as R from 'ramda';
import withStyles from '@mui/styles/withStyles';
import Dialog from '@mui/material/Dialog';
import DialogTitle from '@mui/material/DialogTitle';
import DialogContent from '@mui/material/DialogContent';
import ... |
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... |
let modInfo = {
name: "社区树 - The Communitree!",
id: "allofem",
author: "ducdat0507",
pointsName: "points",
discordName: "The Prestreestuck Server",
discordLink: "https://discord.gg/fHcWmmprGm",
initialStartPoints: EN (10), // Used for hard resets and new players
offlineLimit: 1, // In hours
}
// Set your ve... |
'use strict';
/**
* This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
*/
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache Licens... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _omit = _interopRequireDefault(require("omit.js"));
var _classnames = _interopRequireDefault(require("classnames"));
var _checkbox = _interopRequire... |
const app = require('../app');
const db = app.locals.db;
const flow = app.locals.flow;
const flame = app.locals.flame;
const hashify = app.locals.hashify;
const arrayify = app.locals.arrayify;
const log = app.locals.log;
const sql = require('./sql.js');
const emails = require('../helpers/emails.js');
const certificates... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
const {networkStats, networkConnections} = require("systeminformation")
const os = require("os")
const {execSync, exec} = require("child_process")
const {stat, readFile} = require("fs")
const getMem = () => {
const total = os.totalmem()
const free = os.freemem()
return {
total,
free,
... |
"use strict";
const MINE_IMG = '<img src="img/mine.png">';
const FLAG_IMG = '<img src="img/flag.png">';
const EMOGI_WIN = '😎';
const EMOGI = '🙂';
const EMOGI_DEAD = '😖';
const EMOGI_PLAYING = '🤓';
var gLevel = [{ SIZE: 4, MINES: 2 }, { SIZE: 6, MINES: 5 }, { SIZE: 8, MINES: 15 }]
var gCurrLevel = 0;
var gBoard... |
var autoRefreshCount = 0;
var autoRefreshIntervalId = null;
// Initial date/time (next Monday)
var initialDateTime = moment().startOf('isoWeek').add(1, 'weeks').set('hour', 9);
// DOM element where the Timeline will be attached
var container = document.getElementById('visualization');
var assignedMaintenanceJobs = ne... |
/*
* Copyright (c) 2017-2018 Aion foundation.
*
* This file is part of the aion network project.
*
* The aion network project 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 ver... |
// this is an example of improting data from JSON
import orders from '../data/orders.json';
import users from '../data/users.json';
import companies from '../data/companies.json';
function timeConverter(UNIX_timestamp) {
let a = new Date(UNIX_timestamp * 1000);
let year = a.getFullYear();
let ... |
#!/usr/bin/env node
/**
* deferred-maintenance
* Manage maintenance Findings in JupiterOne for one or more CodeRepos.
*
* @author JupiterOne <https://github.com/jupiterone>
*/
const init = require("./utils/init");
const cli = require("./utils/cli");
const log = require("./utils/log");
const { validateEnv } = req... |
// rest_api.js
//
// Packt Publishing - Build a Network Application with Node
// RESTful API for managing events
var logger = require('../lib/logger'),
moment = require("moment"),
gravatar = require("gravatar"),
util = require('util'),
EventEmitter = require('events').EventEmitter;
var RestAPI = function(con... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
/*
* Copyright 2004 ThoughtWorks, 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 agreed t... |
let developMode = true;
/* Exts functions */
//let ArrayExt =
// (function(){
//
// })();
// logger //
let Log = {
trace(msg) {
if (developMode)
console.log(msg);
},
error(msg) {
if (developMode)
console.error(msg);
}
};
Array.prototype.removeItem = function (i) {
if (i != -1) {
thi... |
"use strict";
var $ = require("../core/renderer"),
errors = require("../core/errors"),
seriesConsts = require("./components/consts"),
vizUtils = require("./core/utils"),
extend = require("../core/utils/extend").extend,
commonUtils = require("../core/utils/common"),
rangeModule = require("./tran... |
'use strict';
var importOnce = require('node-sass-import-once');
var options = {};
// #############################
// Edit these paths and options.
// #############################
// The root paths are used to construct all the other paths in this
// configuration. The "project" root path is where this gulpfile.j... |
var __assign = (this && this.__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];
}
return t;
};
Object.defineProperty(exports, "__esModul... |
'use strict';
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
var CopyWebpackPlugin = require('copy-webpack-plugin');
var CompressionPlugin = require('compression-webpack-plugin');
var NameAllModulesPlugin ... |
/* eslint-disable consistent-this */
// @inheritedComponent Drawer
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
import { duration } from '../styles/transitions';
import withTheme from '../styles/with... |
/**
* Builds the query that retrieve the list of all classifications.
*/
const classifications = () => `
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
SELECT ?classification ?code ?label WHERE {
?classification rdf:type skos:ConceptScheme ; skos:... |
/**
=========================================================
* Material Dashboard 2 React - v2.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-react
* Copyright 2022 Creative Tim (https://www.creative-tim.com)
Coded by www.creative... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const plsqlParser_1 = require("./plsqlParser");
const path = require("path");
const fs = require("fs");
class PlSqlNavigator {
static goto(cursorInfos, lineOffset, parserRoot, pkgGetName_cb, search_cb, findSpec) {
return new Promis... |
// global variable for displaying the user's lists
var listId = "";
var hString = "";
var mString = "";
var personalCats = [];
var cardName = "";
var cardImg = "";
var listAuthor = "";
var listSrc = "";
var footer = "";
var num = 0;
var listdata = [];
var userId = "Kim";
// global variables used for the code that crea... |
var debug = require('debug')('genscrape:scrapers:wikitree'),
utils = require('../utils'),
GedcomX = require('gedcomx-js'),
schema = require('../schema');
var urls = [
utils.urlPatternToRegex('http://www.wikitree.com/wiki/*-*')
];
module.exports = function(register){
register(urls, run);
};
var prefix... |
const canvas = document.getElementById('game')
const ctx = canvas.getContext('2d')
let gameLoop;
const drawImageRotated = (obj, img) => {
let x = obj.x + obj.size / 2
let y = obj.y + obj.size /2
const to_radians = Math.PI/180
ctx.translate(x, y)
ctx.rotate(obj.direction * to_radians)
... |
/**
* Clean-css - https://github.com/GoalSmashers/clean-css
* Released under the terms of MIT license
*
* Copyright (C) 2011-2014 <EMAIL>
*/
var ColorShortener = require('./colors/shortener');
var ColorHSLToHex = require('./colors/hsl-to-hex');
var ColorRGBToHex = require('./colors/rgb-to-hex');
var ColorLongToSh... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2010 <NAME>
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/g... |
import line from 'd3-shape/src/line';
import { monotoneX } from 'd3-shape/src/curve/monotone';
import select from 'd3-selection/src/select';
import selectAll from 'd3-selection/src/selectAll';
import mouse from 'd3-selection/src/mouse';
import { point as scalePoint } from 'd3-scale/src/band';
import scaleLinear from 'd... |
'use strict'
var fs = require('fs')
var path = require('path')
var Broker = require('./broker')
var DxlError = require('./dxl-error')
var MalformedBrokerError = require('./malformed-broker-error')
var util = require('./util')
var provisionConfig = require('./_provisioning/provision-config')
var DEFAULT_MQTT_KEEP_ALIV... |
class sprite {
constructor(x, y, imagesrc, framewidth, frameheight, jumpmax, framemax = 4, frameratio = 5) {
// Image
this.image = new Image();
this.image.src = imagesrc;
// Animation Frames
this.framewidth = framewidth;
this.frameheight = frameheight;
this.f... |
import React, {PureComponent, Fragment} from 'react';
import {connect} from 'dva';
import styles from './DataDistributionList.less';
import T from './../../utils/T';
import router from 'umi/router';
import {formatMessage} from 'umi-plugin-react/locale';
import {EnumPluginListPageInfo, EnumDataSyncPageInfo} from... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var WalletConnectProvider = require('@walletconnect/web3-provider');
var ethers = require('ethers');
var Web3Modal = require('web3modal');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' ... |
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var del = require('del');
var es = require('event-stream');
var bowerFiles = require('main-bower-files');
var print = require('gulp-print');
var Q = require('q');
// == PATH STRINGS ========
var paths = {
scripts: 'app/**/*.js',
styles:... |
// # browserify
// # uglify
// 1. process .js -> single .js
// 2. process .js + package.json -> package.json
// 3. process .js + README.md -> README.md
// 4. create package and publish
const findNpmPrefix = require('find-npm-prefix');
const recast = require('recast');
const path = require('path');
const fs = require('f... |
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Design Automation team for Inventor
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
... |
/*当页面滚动时,取消输入框自动补齐的Autocomplete功能*/
$(document).scroll(function(){
$("#textToSearch").autocomplete("close");
});
/*记录li_has_children的li_open和li_close*/
var liStatus;
if($.cookie('li_status') != null){
liStatus = str2array($.cookie('li_status'));
//console.log(liStatus);
if(liStatus.length == $('.li_has_children'... |
/**
* @module ajax
* @summary
* ES6 Import Example:
* ```js
* import {getJSON} from 'fmjs';
*
* // or:
* import {getJSON} from 'fmjs/ajax.js';
* ```
*
*/
import {serialize, unserialize} from './url.js';
const caches = {};
const appendQs = (url, rawData) => {
const urlParts = url.split('?');
const glue... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import _ from 'lodash';
import { i18n } from '@kbn/i18n';
/**
* Converts El... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.addLicenseToDmg = void 0;
function _bluebirdLst() {
const data = require("bluebird-lst");
_bluebirdLst = function () {
return data;
};
return data;
}
function _builderUtil() {
const data = require("builder-util");
... |
import {LitElement, html, css} from './util/external_lib.js';
import {icon} from './common.js';
import {Awakening} from './util/awakening.js';
import {Type, typeToKiller} from './util/type.js';
import {bind, bindRadio} from './util/bind.js';
import {iconRadio, toggleCheckbox, radio} from './component/checkbox.js';
impo... |
#!/usr/bin/env node
/* eslint-disable */
const updateNotifier = require('update-notifier');
const fs = require('fs');
const fse = require('fs-extra');
const path = require('path');
const inquirer = require('inquirer');
const chalk = require('chalk');
const semver = require('semver');
const kebabCase = require('lodash.k... |
"use strict";
var _ = require("lodash");
var errors = {
// JSHint options
E001: "Bad {a}option: '{b}'.",
E002: "Bad option value.",
// JSHint input
E003: "Expected a JSON value.",
E004: "Input is neither a string nor an array of strings.",
E005: "Input is empty.",
E006: "Unexpected early end of progr... |
'use strict'
const axios = require('axios')
const express = require('express')
const QR = require('qrcode')
const uuid4 = require('uuid4')
const urljoin = require('url-join')
const ANSII_GREEN = '\u001b[32m'
const ANSII_RESET = '\x1b[0m'
const PORT = 4000
const verityUrl = '<< PUT VERITY APPLICATION SERVICE URL HERE... |
import React from 'react';
import MuiButton from '@material-ui/core/Button';
import ThemeContext from './theme/ThemeContext';
import hexContrastColor from 'hex-contrast-color';
let height = 48;
const Button = React.forwardRef(
(
{
children,
flat,
outlined,
contained,
small,
m... |
import { __assign, __spreadArray } from "tslib";
import { invariant } from "../globals/index.js";
import { visit, } from 'graphql';
import { checkDocument, getOperationDefinition, getFragmentDefinition, getFragmentDefinitions, getMainDefinition, } from "./getFromAST.js";
import { filterInPlace } from "../common/filterI... |
/**
* Javascripts for the checkout
*
**/
//apply form masks
function setCountrySettings(prefix, countryCode) {
//add masks to a country
//console.log('Apply mask ' + countryCode);
var phoneSelector = '.' + prefix + '-phone';
var postalCodeSelector = '.' + prefix + '-postalCode';
if(countryCode=='CA') {//mask ... |
"use strict";
const Module = require("module");
const path = require("path");
const callsites = require("callsites");
const $ = require("../zjsunit/zjquery");
const new_globals = new Set();
let old_globals = {};
let actual_load;
const module_mocks = new Map();
const template_mocks = new Map();
const used_module_mo... |
function writeToEspruinoHack() {
Espruino.Core.CodeWriter.writeToEspruino = (code, callback) => {
/* hack around non-K&R code formatting that would have
broken Espruino CLI's bracket counting */
code = reformatCode(code);
if (code === undefined) return; // it should already have erro... |
// This file is part of Indico.
// Copyright (C) 2002 - 2019 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
var languages = {en_GB: 'en', fr_FR: 'fr'};
var userLanguage = 'en_GB';
type(
'RichTextEditor',
... |
// Copyright 2012 The Closure Library Authors. 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 requ... |
const path = require("path");
const outputDirectoryForAliases = "dist";
const buildTools = require("@dev/build-tools");
const externalsFunction = buildTools.webpackTools.externalsFunction;
// option - min files or max files, but it is just the filenames. all will have sourcemaps
// option type of build served
... |
import React from 'react'
import GoogleMapReact from 'google-map-react'
import { connect } from 'react-redux'
import styled, { injectGlobal } from 'styled-components'
import ReactDOM from 'react-dom'
const { fetch } = window
injectGlobal`
* {
box-sizing: border-box;
}
body {
margin: 0;
background-c... |
/*
* Copyright (C) 2015 <NAME>.
* 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 app... |
function createSearchMenuItem(msg, currentProvider, silent) {
browser.contextMenus.create({
id: currentProvider.name,
title: `${browser.i18n.getMessage('searchWith')} ${currentProvider.name}: ${msg}`,
contexts: ['selection', 'link', 'editable'],
onclick() {
const query = encodeURIComponent(msg);... |
import template from './sw-flow-sequence-action.html.twig';
import './sw-flow-sequence-action.scss';
import { ACTION } from '../../constant/flow.constant';
const { Component, State, Mixin } = Shopware;
const utils = Shopware.Utils;
const { ShopwareError } = Shopware.Classes;
const { mapState, mapGetters } = Component.... |
// <reference types="Cypress" />
import * as user from "../../../fixtures/Users.json";
export const workflowNamespace = Cypress.env("AGENT_NAMESPACE");
export const agent = Cypress.env("AGENT");
export const targetAppNamespace = Cypress.env("TARGET_APP_NS");
describe("Testing the workflow schedule on a recurri... |
/**
* Copyright (c) 2014, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
var moc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.