text stringlengths 3.22k 29.5k |
|---|
const Discord = require('discord.js');
const mongoose = require('mongoose');
const { Client } = require('dsteem');
const { stripIndents } = require('common-tags');
const config = require('./config');
const User = require('./models/User');
const {
convertSPToVests,
findSFRComment,
getContent,
getSbdPerRshares,
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof3 = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = require("vue");
var _objectSpread2 = _interopRequireDefa... |
/* Copyright 2017 Tierion
* 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, soft... |
// Copyright 2014 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 applicable law or... |
/* eslint-disable no-else-return */
/* eslint-disable no-magic-numbers */
/* eslint-disable no-undefined */
/* eslint-disable no-eval */
/* eslint-disable prefer-const */
import { Stock } from '@ant-design/charts';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { isUndefined, omitB... |
#!/usr/bin/env node
'use strict'
const request = require('./src/http');
const parseArgs = require('./src/parseargs.js')
const Game_ES = require('./src/game-es.js')
const MonteCarlo = require('./src/monte-carlo.js')
var readline = require('readline');
// Setup
let refresh = 1000;
let args;
let ellipse = 0;
let didpri... |
#!/usr/bin/env node
"use strict";
/***********************************************************************************************************************
* VUE-COCO - COMPONENT COMPOSER for VUE
***********************************************************************************************************************
... |
'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 map from 'lodash/map';
import forEach from 'lodash/forEach';
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import justifiedLayout from 'justified-layout';
import settings from '/imports/utils/se... |
var player;
var obstacles;
var coins;
var scoretext;
var gameover;
var gameover2;
var dead;
var score;
var snow;
var speed;
var moving;
var gates;
var middles;
var multiplier;
var scoresback;
var multipliertext;
var mutliplierback;
var speedtext;
Element.prototype.remove = function () {
this.parentElement.removeChild... |
/*
Viewports / ViewportManager
=======================================
- *Author* liamegan
- *email* <EMAIL>
- *Created* 2015-10-07 10:33:20
- *namespace* com.wtc.utilities
- *Description* These are two classes that are used for inserting and maintinaing viewports. Thi... |
var express = require('express');
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var fs = require('fs');
app.use(express.static(__dirname + '/public'));
app.get('/', function (req, res, next) {
res.sendFile(__dirname + '/index.html');
});
io.on('connec... |
import React from 'react';
import { useThemeUI, ThemeProvider } from 'theme-ui';
import { system } from '@theme-ui/presets';
import { Controls } from './';
import { Flex } from 'rebass';
import { hasTimer } from './controls';
import { forms } from './constants';
const ThemeContext = React.createContext({});
const Fram... |
/* Duino-Coin Mining handler
For documention about these functions see
https://github.com/revoxhere/duino-coin/blob/useful-tools
2019-2021 Duino-Coin community */
const crypto = require('crypto');
const kolka = require('./kolka');
const fs = require('fs');
const chalk = require('chalk');
const info = chalk.blue;
con... |
const Discord = require('discord.js')
const bot = new Discord.Client();
var prefix = ("s/")
bot.on('ready', function() {
bot.user.setGame("GFX_Sondages | By ℳ𝓒𝓰𝓪𝓶𝒆𝓻𝓭𝓾 | préfixe: s/");
console.log("Connected");
});
bot.login("process.env.TOKEN");
bot.on('message', message => {
if (mess... |
/* Javascript approximation library for jQuery, v. 0.5.
*
* Released under the MIT License (MIT)
* Copyright (c) 2008-present, <NAME> <<EMAIL>>
*
*/
function GramMatrix(data, degreeOFApolynomial)
{
/*
Gram matrix for polinom (a + bx + bx^2 + cx^3 + ... zx^n = y) :
sum(xi^0) + sum(xi^1) + sum(xi^2) ... |
// https://github.com/mochajs/mocha/wiki/Third-party-reporters
// https://github.com/mochajs/mocha/blob/master/lib/reporters/markdown.js
/**
@module mocha2md
*/
/**
Module dependencies.
*/
const fs = require('fs');
const path = require('path');
const mocha = require('mocha');
const Base = mocha.reporters.Base;
const ... |
/*globals*/
/*jshint node:true*/
/**
* @author lattmann / https://github.com/lattmann
* @author pmeijer / https://github.com/pmeijer
* @author brollb / https://github.com/brollb
*/
'use strict';
var fs = require('fs'),
Q = require('q'),
path = require('path'),
requireUncached = require('require-uncac... |
const {isArray, clone} = require('lodash')
const bidi = require('./bidi')
var kDefaultInlineObjectChar = '?'
function trimTrialingSpaces({text, styles}) {
const trailingSpacesStart = text.search(/[\s]*$/)
if(trailingSpacesStart === text.length)
return {text,styles}
return {
text: te... |
import _ from 'lodash';
import moment from 'moment';
import { MetricsPanelCtrl } from 'app/plugins/sdk';
import { bosunIncidentListPanelEditor } from './editor';
var statusMap = {
"normal": 0,
"warning": 1,
"critical": 2,
"unknown": 3
}
export class BosunIncidentListCtrl extends MetricsPanelCtrl {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FlowExecInfoContainer = undefined;
var _asyncToGenerator = _interopRequireDefault(require('async-to-generator'));
let getFlowVersionInformation = (() => {
var _ref = (0, _asyncToGenerator.default)(function* (flowPath, root) {
... |
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE
'use strict';
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var $$Event = require("./Event.bs.js");
var Utils = require("../../utils/Utils.bs.js");
var Belt_Set = require("bs-platform/lib/js/belt... |
'use strict';
var _ = require('lodash');
var moment = require('moment');
ManagerController.$inject = ['$scope', '$state', '$timeout', 'ngDialog', 'toastr', 'localStorage', 'dataStorage', 'CONSTANTS'];
function ManagerController($scope, $state, $timeout, ngDialog, toastr, localStorage, dataStorage, CONSTANTS) {
$sc... |
import React, { Component } from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import PropTypes from 'prop-types';
// Styles
import './styles/App.scss';
// Import components
import GlobalScopeScripts from './components/GlobalScopeScripts';
import Loading from './components/Loading';
import S... |
import "../model";
import {transformToMapProjection} from "@masterportal/masterportalapi/src/crs";
import store from "../../../src/app-store";
const OsmModel = Backbone.Model.extend(/** @lends OsmModel.prototype */{
defaults: {
minChars: 3,
osmServiceUrl: "",
limit: 50,
street: "",
... |
/*
(c) 2021 Open AR Cloud
This code is licensed under MIT license (see LICENSE for details)
*/
/* Provides models for generic content, provided by the content discovery */
import {Box, Cylinder, Mesh, Plane, Program, Sphere, Torus, Transform, Vec4} from 'ogl';
import defaultFragment from '@shaders/defaultfragme... |
const BELL_STORAGE = 'SILENT_BELLS'
const PREFERENCE_STORAGE = 'PREFERENCE'
const frontendStorageDB = new StorageDB()
// Unread Button
const unreadButtonID = 'unreadButton'
const unreadButtonTextID = 'unreadButtonText'
function getHashID(key) {
return CryptoJS.SHA256(key).toString().slice(0,7)
}
// ID is based on... |
/*
style: { position: absolute }
element.dimensions = {
aspect: t/f,
transforms: [ // { type: translate / rotate / scale / color, vector: [x, y, z(, r)] }
translate1,
rotate1,
scale1,
color1,
...
]
};
*/
var moduleDependencies = {
vision: "https://raw.githubusercontent.com/Atlas-of-Kaeon/At... |
/**
* Created by rowthan on 2017/12/9.
* 包含核心 api 获取id,获取元素,不含UI
*/
import { getCoords, initFunction, simpleFyId } from "./helper";
var document = window.document,
noop = function () {},
whatsElementPure = initFunction(),
prototype = whatsElementPure.prototype;
const SPLIT_MODE_CODE = " ";
prototype.getUniq... |
import { drizzleConnect } from 'drizzle-react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import * as testData from '../../../data/snapshot.json'
import { Box, Flex } from '@rebass/grid'
import {Radius} from '../basics/Style'
import { B, A, E } from '../basics/Colors.js'
import Text fro... |
'use babel'
/**
* Vlt Service to manage vlt commands
*
* - checkout
* - push
* - pull
* - add
* - status
*
* command can be executed in silent mode or with notifications to user
* every command accepts a payload to act on and silent flag to manage
* notifications.
*
*
* @author prince89arora
*/
import {... |
var util = require('util');
should = require('should'),
JSUS = require('./../jsus').JSUS;
var str_null, str_und, str_func, str_func2;
var str_obj, str_obj_special, str_obj_proto;
var f = function(a,b) { console.log(a+b); };
var f2 = function(a,b) {
this.a = a;
this.b = b;
};
var o = {
a: "a",
b: "b"... |
const puppeteer = require('puppeteer');
const moment = require('moment');
const isDocker = require('is-docker');
const logger = require('../helpers/logger');
const _RETRY_DELAY_MS = 10000;
const _RETRY_NUM = 18;
const _DEBUG_MODE = true;
function startBrowser(headless = _DEBUG_MODE) {
if (isDocker()) {
logger.... |
/**
* @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
// The editor creator to use.
import DecoupledEditorBase from '@ckeditor/ckeditor5-editor-decoupled/src/decouplededitor';
import Essentials from '@ck... |
/*** CONSTANTS ***/
var ELEMENT_NODE_TYPE = 1;
var TEXT_NODE_TYPE = 3;
var UNEXPANDABLE = /(script|style|svg|audio|canvas|figure|video|select|input|textarea)/i;
var HIGHLIGHT_TAG = 'highlight-tag';
var HIGHLIGHT_CLASS = 'highlighted';
var SELECTED_CLASS = 'selected';
var DEFAULT_MAX_RESULTS = 500;
var DEFAULT_HIGHLIGHT... |
import '../../vendor/raf-polyfill'
import React from 'react'
import PropTypes from 'prop-types'
import * as icons from '../../svgs'
import store from '../../utils/store'
import frequently from '../../utils/frequently'
import { deepMerge, measureScrollbar, getSanitizedData } from '../../utils'
import { PickerPropTypes... |
const fetch = require('isomorphic-fetch')
const AbortController = require('abort-controller')
const crypto = require('crypto')
const {createHmac} = crypto
const {checkDecrypt} = require('./encryption-check')
const db = require('./db/models');
const {Sequelize, sequelize} = db
const {Op} = Sequelize
let debug = requi... |
import React, {useState, useEffect} from "react"
import { graphql, StaticQuery } from "gatsby"
import Img from 'gatsby-image'
import imagesJson from '../../src/images/images.json'
import OpacityText from '../components/OpacityText'
import {axiosGet, axiosPost} from "../functions/axios"
const backgroundColor="#FF7034"
... |
// Copyright 2017-2018 by <NAME> for Autolotto.
// This is hereby released under the terms of the BSD 3-clause license, the MIT/X11 license, and the Apache 2.0 license.
// These functions are for finding order in lines. Eudoxus did this with the stars.
const logician = require("./logician.js");
const geometer = requi... |
import React, {useState} from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
import {Box, Button, Container, Grid, Typography} from '@material-ui/core'
import {ColorText} from '../components/style'
import BG1T from '../images/tool_bg_1_tn.png'
import BG2T from '../images/tool_bg_2... |
'use strict';
/*!
* Connect - Consul
* Copyright(c) 2018 wad-jet <<EMAIL>>
* MIT Licensed
*/
// DOC: https://learn.hashicorp.com/consul/getting-started/agent
// npm consul : https://www.npmjs.com/package/consul
var debug = require('debug')('connect-consul');
var Consul = require('consul');
// var Txn = require('.... |
// test = {
// "EntityId": ["99643000000125354", "99643000000125353", "99643000000125352", "99643000000125351", "99643000000125350", "99643000000125349", "99643000000125348", "99643000000125347", "99643000000125346", "99643000000125345"],
// "Entity": "Leads",
// "ButtonPosition": "ListView"
// }
// test =... |
"use strict";
const NodeHelper = require("node_helper");
const CallMonitor = require("node-fritzbox-callmonitor");
const vcard = require("vcard-json");
const phoneFormatter = require("phone-formatter");
const xml2js = require("xml2js");
const moment = require('moment');
const exec = require('child_process').exec;
cons... |
import React, { Component } from 'react';
import { Button } from 'reactstrap';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Formik, Field, Form } from 'formik';
import { Redirect, withRouter, Link } from 'react-router-dom';
import { Prompt } from 'react-router';
import Loa... |
module.exports = function(file, fileName) {
return parseGrammar(new Input(file, fileName), 0)
}
class Node {
constructor(type, start, props, end) {
this.type = type
this.start = start
this.end = end
if (props) for (let prop in props) this[prop] = props[prop]
}
}
const wordChar = /[\w_$]/
class ... |
'use strict';
const path = require('path');
const BowerResolvePlugin = require('bower-resolve-webpack-plugin');
const webpack = require('webpack');
const webpackStream = require('webpack-stream');
const combine = require('stream-combiner2');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemap... |
import React from 'react';
import { ScrollView, StyleSheet, View, ImageBackground, Button, Alert, ActivityIndicator } from 'react-native';
import { ListItem } from 'react-native-elements'
import { connect } from 'react-redux';
import { getLocalInspections } from '../js/api';
import * as uuid from 'react-native-uuid';
i... |
var sidebar = new ol.control.Sidebar({ element: 'sidebar', position: 'right' });
var jsonFiles, filesLength, fileKey = 0;
var projection = ol.proj.get('EPSG:3857');
var projectionExtent = projection.getExtent();
var size = ol.extent.getWidth(projectionExtent) / 256;
var resolutions = new Array(20);
var matrixIds = new... |
import { Random } from './Random';
import { Color } from '../Drawing/Color';
import * as Util from '../Util/Util';
/**
* Linear interpolation between a and b
* @internal
* @param time number between [0, 1]
* @param a starting number
* @param b ending number
*/
function _lerp(time, a, b) {
return a + time * (b... |
"use strict";
import $ from "jquery";
import {
bbcode_to_html,
//html_to_bbcode
} from './bbcode';
export const USE_NEW_EDITOR = false;
//if (USE_NEW_EDITOR) {
//import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
//}
import Tooltip from 'tooltip.js';
export function setupTextAreaEditorPrevi... |
//#region const
const GITHUB_API_URL = 'https://api.github.com';
/**
Matches a GitHub repo URL.
Captures:
1. Username
2. Repo
3. Ref
4. File name
**/
const REGEX_REPO_URL = /^https?:\/\/github\.com\/(.+?)\/(.+?)\/(?!releases|commit\/)(?:(?:blob|raw)\/)?(.+?)\/(.+)/i;
/**
Matches a GitHub commit URL.
Captures:... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
import React, {Component} from 'react';
import axios from 'axios';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import {
Button,
Clipboard,
Col,
FormControl,
FormGroup,
Label,
Message,
Modal,
ProgressBar,
Row,
Switch,
Tile
} from 'tinper-bee';
import {lintAppListData} f... |
/*
* @author PureMVC JS Native Port by <NAME>, <NAME>, & <NAME>
* @author Copyright(c) 2006-2012 Futurescale, Inc., Some rights reserved.
*
* @hide
* A an internal helper class used to assist classlet implementation. This
* class is not accessible by client code.
*/
var OopHelp=
{
/*
* @private
*... |
//====================================================================
// Convert Renderer
//====================================================================
// This renderer file is responsible for all user interaction in the
// convert section of the application. It is responsible for telli... |
import React from "react";
import HexEditor from 'react-hex-editor';
import oneDarkPro from 'react-hex-editor/themes/oneDarkPro';
let PETSCII= '';
PETSCII += '@ABCDEFGHIJKLMNOPQRSTUVWXYZ[£]↑←'
PETSCII += ' !"#$%&\'()*+,-./0123456789:;<=>?'
PETSCII += '..............................π.'
PETSCII += ' ....... |
import { encodeQuery, parseQuery, RefreshController, TokenExpirationStatus } from '../utilities'
import ExpiredAuthSessionError from '../includes/ExpiredAuthSessionError'
import nanoid from 'nanoid'
const isHttps = process.server ? require('is-https') : null
const DEFAULTS = {
response_type: 'token',
tokenName: 'A... |
/* © 2020 <NAME> */
import {
copyFile,
lstat,
readFile,
writeFile,
writeVersionedFile,
} from '@grr/fs';
import { AbortError, ErrorMessage } from '@grr/oddjob/error';
import cssnano from 'cssnano';
import { join } from 'path';
import minify from 'babel-minify';
import { pathToFileURL } from 'url';
import po... |
var crypto = require('crypto-js/md5');
var request = require('request');
var MovieDB = require('moviedb')('866913fcc5a950bed785551769c37f7c');
var async = require('async');
function ivaURL() {
// TODO: make bash scripts to export variables at some point for secret values
var secret = 'vnwjrhxowupaujpy';
this.ba... |
/**
* Created by Bane.Shi.
* Copyright MoenSun
* User: Bane.Shi
* Date: 2019-05-25
* Time: 10:40
*/
import extend from 'extend';
import Quill from "quill";
import Emitter from "quill/core/emitter";
import InsertPicker from "../ui/insert-picker";
import icons from "../ui/icons";
import GiraffeTooltip from "./to... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Link, hashHistory } from 'react-router'
import ArtistSentence from './ArtistSentence'
import VolumeControl from './Fields/VolumeControl'
import LatencyControl from './Fields/Laten... |
import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'dva';
import {
Row,
Col,
Icon,
Tabs,
Table,
Radio,
Select,
Menu,
Dropdown,
Button,
Form,
message,
Upload,
} from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import WrapGenerateCert ... |
import React, { Component } from 'react';
// import { FormattedMessage } from 'react-intl';
// import NavBar from './NavBar';
// import HeaderLink from './HeaderLink';
// import messages from './messages';
import { Link } from 'react-router-dom';
import NavBarItem from './navbarItem';
import { isMobile } from 'react-de... |
"use strict";
class EditierenForm {
constructor(app, db, id) {
this._app = app;
this._db = db;
this._id = id;
if (this._id != "") {
// ID wurde uebergeben, versuche doc aus DB zu holen
this._db.getById(this._id).then(doc => {
if (doc.exists) {
// Inhalte gefunden
this._data = doc;
... |
import DOMPurify from 'dompurify';
import addToCSS from '../../../utils/add-to-css';
import getIcon from '../../../utils/get-icon';
import './editor.scss';
/**
* WordPress Dependencies
*/
import {
__,
} from '@wordpress/i18n';
import {
addFilter,
applyFilters,
} from '@wordpress/hooks';
import {
Fragment,
} fr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _sortBy2 = _interopRequireDefault(require("lodash/sortBy"));
var _uniqBy2 = _interopRequireDefault(require("lodash/uniqBy"));
var _get2 = _interopRequireDefault(require("lodash/get"));
var _debounce2 = _int... |
/**
* Created by yuanzhou.xu on 2018/5/15.
*/
import React, { Component } from 'react';
import {
StatusBar,
View,
StyleSheet,
Platform,
TouchableOpacity,
Text,
Dimensions,
BackHandler,
SafeAreaView,
} from 'react-native';
import VLCPlayerView from './VLCPlayerView';
import PropTypes from 'prop-typ... |
var unicodeMatchers = require('./unicode');
var multiByteCharsetMatchers = require('./mbcs');
var iso2022 = require('./2022');
var singleByteCharsetMatchers = require('./sbcs');
var DEFAULT_CS_RECOGNIZERS = [
require('./charset-recog-utf8'),
unicodeMatchers['UTF-16BE'],
unicodeMatchers['UTF-16LE'],
... |
/********************************************************* {COPYRIGHT-TOP} ***
* Licensed Materials - Property of IBM
* 5725-Z22, 5725-Z63, 5725-U33, 5725-Z63
*
* (C) Copyright IBM Corporation 2016, 2017
*
* All Rights Reserved.
* US Government Users Restricted Rights - Use, duplication or disclosure
* restrict... |
import { Kind, visit, getOperationAST } from 'graphql';
import isPromise from 'is-promise';
import DataLoader from 'dataloader';
import { relocatedError } from '@graphql-tools/utils';
// adapted from https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-graphql/src/batching/merge-queries.js
function cr... |
const systemInit = require( '../../systemInit' );
const i18n = require( '../../lang/' + systemInit.language );
const tools = require( '../tools' );
const EntityDB = require( '../../db/entities' );
const TxDB = require( '../../db/transactions' );
const daysToZero = systemInit.tokenDyn.daysToZero;
const baseTimeToZero ... |
/**
* This file is part of the @iconify/iconify package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the license.txt or license.gpl.txt
* files that were distributed with this source code.
*
* Licensed under Apache 2.0 or GPL 2.0 at your option.
* If derivative prod... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
this.EXPORTED_SYMBOLS = ["BrowserNewTabPreloader"];
const Cu = Components.utils;
const Cc = Compon... |
const azure = require('azure-storage');
const fs = require('fs');
const mime = require('mime-types');
const parse = require('csv-parse/lib/sync');
const path = require('path');
const slugid = require('slugid');
const xml2js = require('xml2js');
const unzip = require('unzip');
const { Writable } = require('stream');
... |
if (window.NC_DBG) console.log(`inc ${module.id}`);
/*//////////////////////////////// ABOUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\
Messager - Handle a collection of named events and their handlers
https://en.wikipedia.org/wiki/Event-driven_architecture#JavaScript
NOTE: This class is often WRAPPED by othe... |
$(document).ready(function() {
init();
//顶部轮播点击切换
$('.carousel-ctrl ul li a').click(function(e) {
e.preventDefault();
navClick($(this));
});
//直播间右边栏点击切换
$(".part3 aside ul li").click(function(e) {
e.preventDefault();
liveChange($(this));
});
$(".inner-se... |
/**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
// Flux
import CollectionsStore from '../../../../stores/Collections/CollectionsStore';
import IntlStore from '../../../../s... |
const { spawn } = require('child_process')
const { PassThrough } = require('stream')
const parser = require('url')
const http = require('http')
const fs = require('fs')
const path = require('path')
const nexssOS = require('@nexssp/os')
const os1 = new nexssOS()
module.exports.startServer = (server, opts, runSequence)... |
'use strict';
const path = require('path');
const semver = require('semver');
const dateFormat = require('dateformat');
const fs = require('fs-extra');
// eslint-disable-next-line security/detect-child-process
const execSync = require('child_process').execSync;
const packageJSON = require('../package.json');
const pre... |
/* eslint-env node */
/* eslint-disable no-sync */
var gulp = require('gulp');
var sass = require('gulp-sass');
var del = require('del');
var execSync = require('child_process').execSync;
var osenv = require('osenv');
var path = require('path');
var runSequence = require('run-sequence');
var eslint = require('gulp-e... |
var arrayNodes = []
var edges = []
var clickedNode
var clickedNodoValue
var network = null
var dataDownload = []
var slider = document.getElementById("customRange2")
var switchToggle = document.getElementById("flexSwitchCheckDefault")
class Nodo{
constructor(id, dato){
this.id = id
this.dato = dato
... |
import React, { useState, useEffect } from "react"
import { Link, navigate } from "gatsby"
import Accordion from "react-bootstrap/Accordion"
import Card from "react-bootstrap/Card"
import {
Logo,
LogoSmall,
Hamburger,
Wishlist,
Account,
Cart,
Search,
Cross,
Instagram,
Facebook,
Twitter,
YouTube... |
function toggleOrderWithInvoice() {
if(jQuery('#orderWithInvoice').length > 0) {
if(jQuery('#orderWithInvoice').hasClass('hide')) {
jQuery('#orderWithInvoice input').attr('required', true);
jQuery('#orderForm').validator('update');
jQuery('#orderWithInvoice').removeC... |
/***
* @author <NAME>
* @date Oct 2021
* @description LWC Component to display a list of Cards, leveraging the LDS for each record
* (with a configurable list of fields).
* @see PEG_LIST package (https://github.com/pegros/PEG_LIST)
*
* Legal Notice
*
* MIT License
*
* Copyright (c) 2021 pegros
*
* P... |
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2021
*/
'use strict';
const path = require('path');
const { expect } = require('chai');
const constants = require('@instana/core').tracing.constants;
const Control = require('../Control');
const config = require('../../../serverless/t... |
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
import ItemNavigation from "@ui5/webcomponents-base/dist/delegate/ItemNavigation.js";
imp... |
import Paddle from 'object/Paddle';
import Ball from 'object/Ball';
import Switch from 'object/Switch';
import Hud from 'object/Hud';
import {
WidthScreen,
HeightScreen,
BallStartDelay,
BallRandomStartingAngleLeft,
BallRandomStartingAngleRight,
BallVelocity,
paddleSegmentsMax,
paddleSegmentHeight,
pad... |
import React, {useContext} from 'react'
import {makeStyles} from '@material-ui/core/styles'
import TextField from '@material-ui/core/TextField'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'
impo... |
/// <reference types="./Mesh.d.ts" />
/// <reference lib="dom" />
import { Vector3 } from "../math/Vector3.js";
import { Vector2 } from "../math/Vector2.js";
import { Sphere } from "../math/Sphere.js";
import { Ray } from "../math/Ray.js";
import { Matrix4 } from "../math/Matrix4.js";
import { Object3D } from "../core/... |
import React, { useState, useEffect } from 'react';
import { useParams, Link } from 'react-router-dom';
import { Modal, Toast } from 'react-bootstrap';
import api from '../../services/Api';
function ComiteUpdate() {
const [modalShow, setModalShow] = useState(false);
const [toastShow, setToastShow] = useState(false... |
/*!
* @silen/sticky v0.0.1
* (c) 2021
* author: sunsilent
* @license MIT
*/
'use strict';
function _extends() {
_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.has... |
/**
* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
import util from 'util'
import Docker from 'dockerode'
import uniq from 'lodash/uniq'
import { getContainerLogs, parseWanIP, redactIPAddress } from './helpers'
import {
HELP_TEXT,
MULTI_NODE_SUCCESS_SUMMARY,
MULTI_NODE_WARNING_SUMMARY,
NODE_AVAILABLE_SUMMARY,
NODE_AVAILABLE_MESSAGE,
NODE_UNREACHABLE_SUMMA... |
/*!
* Copyright (c) 2018, <NAME> (pseudonym)
* Distributed under the MIT software license, see the accompanying
* file COPYING or http://www.opensource.org/licenses/mit-license.php
*
* https://github.com/worldmobilecoin/wmcc-desktop
*/
'use strict';
const Assert = require('assert');
const {crypto, utils} = requ... |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.testing.ContinuationTestCaseTest');
goog.setTestOnly();
const ContinuationTestCase = goog.require('goog.testing.ContinuationTestCase');
const GoogEventTarget = goog.require('goog.events.EventTarget')... |
const Archiver = require('archiver')
const fs = require('fs')
const blobs = require('./lib/blobs')
var _extend
module.exports = (function () {
XlsxWriter.write = function (out, data, cb) {
var writer
writer = new XlsxWriter({
out: out
})
writer.addRows(data)
return writer.writeToFile(cb)
... |
/**
* @license
* Copyright 2020 <NAME>
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Connect.
* @author <EMAIL> (<NAME>)
*/
'use strict';
// Height times width (not counting borders) should be even.
// For Easy/Normal/Hard modes.
var HEIGHTS = [5, 7, 9];
var WIDTHS = [8, 12, 16];
// Number of ro... |
import { rolesByName } from '../src/js/constants/userConstants';
import DeviceConstants from '../src/js/constants/deviceConstants';
import { SORTING_OPTIONS } from '../src/js/constants/appConstants';
export const undefineds = /undefined|\[object Object\]/;
window.mender_environment = {
features: {
hasMultitenanc... |
import {t} from '@lingui/macro'
import {Trans, Plural} from '@lingui/react'
import Color from 'color'
import _ from 'lodash'
import React from 'react'
import TimeLineChart from 'components/ui/TimeLineChart'
import ACTIONS from 'data/ACTIONS'
import JOBS from 'data/JOBS'
import STATUSES from 'data/STATUSES'
import Modu... |
import { app, BrowserWindow, ipcMain, dialog, shell } from 'electron'
import Conf from 'conf'
import log from 'electron-log'
import fs from 'fs'
import path from 'path'
import OS from 'os'
import { ProcessMonitor } from './process'
import { HttpMonitor } from './http'
import { getExeDir, getLogsPath, getBasePath } fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.