text stringlengths 3.07k 16k |
|---|
/**
* Classe de gestion des popups
*
* <pre>
* Elias 09/02/15 Création
* </pre>
* @author Elias
* @version 1.0
* @package Popup
*/
function Popup()
{
// ==== Constructeur ====
// ---- Affectation du fond noir ou blanc ----
Popup.prototype._divShadow = '#div_RBZ_commonShadow';
} // Popup
Popup.proto... |
const Alpha = require('alpha_vantage_api_wrapper').Alpha;
const apiKey = process.env.API_KEY; //my api user unique key
const alpha = new Alpha(apiKey);
function compareHandler (db, stock1, stock2, like, ip, res) {
//getting the stock data from the alphavantage API
alpha.stocks.quote(stock1, {"datatype": "json"})/... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_js_1 = require("./config.js");
const logger_js_1 = require("./logger.js");
const harFileList_js_1 = require("./harFileList.js");
const fs = require("fs");
const express = require("express");
const urlParser = require("url");
const... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { palette } from 'styled-theme';
import { getSortOption } from 'utils/sort';
import appMessage from 'utils/app-message';
import { STATES as CHECKBOX_STATES } from 'components/forms/IndeterminateCheckbox';
impo... |
const c = require('ansi-colors');
const SearchAddon = require('xterm-addon-search').SearchAddon;
const SearchAddonBar = require('xterm-addon-search-bar').SearchBarAddon;
const Unicode11Addon = require('xterm-addon-unicode11').Unicode11Addon;
const WebLinksAddon = require('xterm-addon-web-links').WebLinksAddon;
const th... |
import validator from 'validator'
import moment from 'moment'
import { AnyRule, AnyValidator } from './Any'
import { cleanObject } from '../helpers'
const formatErrorDate = date => {
return moment(date, 'YYYY-MM-DD').format('MMM Do, YYYY')
}
/****************************************
Rule Builder
*****************... |
import * as React from 'react';
import PropTypes from 'prop-types';
import axios from 'axios';
import { Form, Formik, Field } from 'formik';
import {
Button,
Box,
Dialog,
DialogContent,
DialogContentText,
DialogTitle,
TextField,
FormControlLabel,
Checkbox,
Stack,
Alert,
AlertTitle,
Tabs,
Ta... |
// STYLES SHOULD ONLY BE IN `STYLE.CSS`
// v1.2.1-alpha
const arras = unsafeWindow.Arras();
const clone = JSON.parse(JSON.stringify(arras));
const settings = GM_getValue('settings', clone);
const backgroundImage = GM_getValue('backgroundImage');
// Set and apply Arras() setting
const update = (prop, key, val) => {
s... |
//****************************************************************************************
//Nombre: mainGD.css
//Objetivos: Código JS para guardar los datos de la glucosa en la consulta de
// detección, usa validaciones y funcionalidades para su pantalla.
//Creado por: <NAME>
//Fecha: ... |
import React, { useState } from 'react'
import set from 'lodash/set'
import get from 'lodash/get'
import update from 'immutability-helper'
import FormContext from './FormContext'
import validateField, { registerValidators } from './validateField'
import { registerMessages } from './messages'
import { registerStateStrs ... |
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _scale = require("../../scale");
var _common = require("../../util/common");
var _global = _interopRequireDefault(require("../../global"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
fu... |
/*
WFM - Workflow Manager
Copyright (c) 2015 - 2020 <NAME>
The MIT License (MIT)
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 right... |
import React from 'react';
import {connect} from "react-redux";
import { Link } from "react-router-dom";
import Upload from 'rc-upload';
import { Callout, Button, Icon } from '@blueprintjs/core';
import { Row, Col } from 'react-bootstrap';
import { cancelablePromise } from '../../utils/promise';
import { deploymentLis... |
const Discord = require("discord.js");
const YTDL = require("ytdl-core");
var bot = new Discord.Client();
const search = require('random-puppy')
const TOKEN = "";
const PREFIX = "??";
let em = new Discord.RichEmbed()
var fortunes = [
"Yes",
"No",
"Maybe",
"Fucc u not telling"
];
... |
import React, { Component } from 'react';
import { StyleSheet, Text, TextInput, View, Image, TouchableHighlight} from 'react-native';
import { Header, Divider } from 'react-native-elements';
import Voice from 'react-native-voice';
import Dimensions from 'Dimensions';
export default class ListenRepeat extends Componen... |
"use strict";
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];
... |
var FormGlblData = {
FormObjData: null
}
$(document).ready(function () {
var resize = function () {
var height = $(window).height(); // Get the height of the browser window area.
var element = $("body"); // Find the element to resize.
element.height(height); // Set... |
var module_inits = [];
var upload_permission = true;
var atkname = 'xinqing';
function load_init_modules() {
for (var i = 0; i < module_inits.length; i++) {
module_inits[i]();
}
}
function call_me(fun) {
module_inits.push(fun);
}
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/Micr... |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib Authors.
*
* 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 a... |
"use strict"
//--- USER INPUT ---
//--- Variables and constants ---
var cScrollSpeed = 0.1;
var cursorsDir;
if(window.innerWidth > 800) {
cursorsDir = 'assets/img/cursors32/';
} else {
cursorsDir = 'assets/img/cursors16/';
}
//--- Keyboard input ---
var kbKey = {
esc : false,
left : false,
right : false,
up ... |
import React, { useReducer, useState, useEffect } from 'react'
import get from 'lodash/get'
import pick from 'lodash/pick'
import pickBy from 'lodash/pickBy'
import kebabCase from 'lodash/kebabCase'
import fbt from 'fbt'
import { useStateValue } from 'data/state'
import Modal from 'components/Modal'
import ImagePick... |
/* dados dos candidatos */
let presidenteUm = {
nome: "julius",
cargo: "presidente",
discurso: "Se eu não comprar nada, <br> o desconto é maior.",
codigo: "345",
img: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcREXTvRidWdzJtmibcqy3zY12f0LjE4qcvCQ__l2KmF8C2WQ4jCRaCo1I-VEnSVOzAu2b4&us... |
import GLOBALS from 'codechum-app-globals';
import {
determinePercentageColorClass,
determineRankColorClass,
getRankString,
isFeatureLocked,
} from 'codechum-app-utils';
import {
Button,
Cody,
Container,
Icon,
Span,
Text,
Tooltip,
} from 'components/elements';
import { buttonTypes, textTypes } fro... |
import React from 'react'
import {Table, Tag, Space, Row, Col, Form, Input, message} from 'antd';
import SignUpDrawer from "./SignUpDrawer";
import PropTypes from 'prop-types'
import {Link} from "react-router-dom";
import {Typography, Button, Modal, DatePicker} from 'antd';
import {addMatch, stopSignup} from "../../../... |
/* globals user, active_form_id, _user_form_config */
/* exported editor */
let editor
let dirs = ['button', 'checkbox', 'email', 'hidden', 'number', 'password', 'radio', 'range', 'select', 'text', 'textarea']
const promises = []
const options = {}
const template = {}
dirs.forEach(dir => {
promises.push(fetch(`snip... |
import React from 'react'
import './css/Modale.css'
import { Link, navigate } from '@reach/router'
import store from '../store.js'
import Partenaire from './Partenaire.js'
import { LayoutRender } from './Layout.js'
import ArticleThumbnail from './ArticleThumbnail.js'
import RedirectingBlockToAllArticles from './Redirec... |
const inquirer = require('inquirer');
const fs = require('fs');
// const Employee = require('./lib/employee');
const Manager = require('./lib/manager');
const Engineer = require('./lib/engineer');
const Intern = require('./lib/intern');
var cards = []
// questions() called at end of page. first time asking, role === ... |
import FileBrowser from "./FileBrowser.js";
import GitLab from "../GitLab.js";
import { NO_FILES_TEXT, HTMLHasText, getHTMLElementWithText, wait, joinFilePaths } from "../HelperFunctions.js";
const TEST_FILE = "201806_VdM/IP8/lhcb_1st_part_MAIN_Jun2018.txt";
const TEST_FILE2 = "201806_VdM/IP1/IP1_LSC_B1X_12Nov17.txt";... |
// Set new default font family and font color to mimic Bootstrap's default styling
Chart.defaults.global.defaultFontFamily = 'Nunito', '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#858796';
function loadMain(book, intervalo)... |
/**
* Utilize specific naming convention for forms
* @properties={typeid:35,uuid:"188BE213-F15B-456D-B9C9-9B9B6AF3EA86",variableType:-4}
*/
var NC = {
Small: 'Mobile',
Large: 'Desktop',
Container: 'Container'
}
/**
* Callback method for when solution is opened.
* When deeplinking into solutions, the argument p... |
'use strict'
var Utils = require('../utils.js')
var Constants = require('./constants.js')
var Url = require('url')
var QS = require('querystring')
class V4 {
/**
* @public
* @getter
* @method algorithm
* @return this signer's algorithm name
*/
get algorithm () {
return 'SDK-HMAC-SHA256'
}
... |
import { schema } from 'normalizr';
import { marketplacesTypes } from './types';
import categories from './categories';
import { schedulerTypes } from '../scheduler';
import { MARKETPLACE_COUNTRY_SYNC_JOB } from '../../main/marketplace/countries/marketplace-country-sync-job-handler';
import { TAX_TREATIES_SYNC_JOB } fr... |
const { response, request } = require("express");
const { db } = require("../database/connection")
const Teacher = require('../models/teacher');
const Graduation_courses = require("../models/graduation_courses");
const Graduation_section = require("../models/graduation_section");
const { Op, fn, col } = require("sequel... |
const express = require('express')
const path = require('path')
const favicon = require('serve-favicon')
const logger = require('morgan')
const cookieParser = require('cookie-parser')
const bodyParser = require('body-parser')
const lessMiddleware = require('less-middleware')
const session = require('express-session')
c... |
/* eslint-disable no-restricted-properties */
import GeohashLib from 'latlon-geohash';
const MAX_ZOOM = 19;
function ObjectValues(object) {
return Object.values ? Object.values(object) : Object.keys(object).map((key) => object[key]);
}
/**
* The precision determines the size of the bounding box (diagonal), max 12... |
var swiper = new Swiper('.swiper-container', {
effect: 'cube',
autoplay: 5000,
cube: {
shadow: true,
slideShadows: true,
shadowOffset: 20,
shadowScale: 0.94
}
});
//MV
var _mvleft = 0;
$(".mv_start").hover(function(){
_mvleft = $(".mv-container").position().left;
... |
//浏览器(czy)
$(document).ready(function (e) {
var counter = 0;
if (window.history && window.history.pushState) {
$(window).on('popstate', function () {
window.history.pushState('forward', null, '#');
window.history.forward(1);
//alert("不可回退"); //如果需在弹框就有它
self.location = "./mine.htm... |
// MIT License
//
// Copyright 2018 Electric Imp
//
// SPDX-License-Identifier: MIT
//
// 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... |
import {getChrColor} from "../bam/bamTrack.js"
import Locus from "../locus.js"
import {CircularView} from "../../node_modules/circular-view/dist/circular-view.js"
import {createSupplementaryAlignments} from "../bam/supplementaryAlignment.js"
import {IGVColor} from "../../node_modules/igv-utils/src/index.js"
/**
* The... |
import React, { useState, useEffect } from 'react';
import {
Grid,
Form,
Segment,
Header,
Button,
Divider,
Message,
} from 'semantic-ui-react';
import axios from 'axios';
import { SERVER_URL } from './url';
import ipfs from '../../ipfs';
import OrganContract from '../../contracts/OrganChain.json';
import ... |
import React, { useState, useEffect, useContext } from 'react';
import 'materialize-css';
import SectionList from '../sections/SectionList';
import { QUIZ_CARD, SUB_PLAT_CARD } from '../../types/cardTypes';
import { QuizzesContext } from '../../context/QuizState';
import { PlatformContext } from '../../context/Platform... |
"use strict";
/*
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? val... |
const config = {
no_ref: "off", // Control the HTTP referrer header, if you want to create an anonymous link that will hide the HTTP Referer header, please set to "on" .
theme: "default", // Homepage theme, use the empty value for default theme. To use urlcool theme, please fill with "theme/urlcool" .
cors: "on", //... |
const scenegraph = require("scenegraph");
const { generateArtboards } = require("./generate");
const { exportFiles } = require("./project_folder");
const { changeOutputUiText } = require("./ui/components/output_ui");
const { cleanVarName } = require("./widgets/util/widgets_util");
const { generateComponents } = require... |
import React, { useState, useEffect } from 'react';
import { Text, Image, View, StyleSheet, ScrollView, DeviceEventEmitter, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome5';
import { SpeedDial, Overlay } from 'react-native-elements';
import CircularProgress from 'react-n... |
/**
*
* MyShows
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { Grid, Cell ... |
'use strict';
var getWrappedService = require('../util/api-gateway-retry-wrapper');
var awsApiGateway = getWrappedService({ apiVersion: '2015-07-09' });
var async = require('async');
var ApiMethodService = require('../api-method/api-method-service');
var Constants = require('../constants');
var getCorsMethodUpdateOper... |
import React, {Component} from 'react';
import {
AreaChart, Area, Cell, BarChart, CartesianGrid, XAxis,
YAxis, Tooltip, Legend, Bar, ResponsiveContainer
} from 'recharts';
import {
Row, Col, Progress, Card, CardBody, CardText, Badge,
Button, ListGroup, ListGroupItem,
Input, FormGroup, Label, Table
}... |
import { app, Menu, dialog } from 'electron';
import { push } from 'connected-react-router';
import fs from 'fs';
import { undo, redo } from './shared/actions';
import { loadProject } from './App/Project/Project.actions';
import { zoom, removePaths, linkPath } from './App/Editor/Canvas/Canvas.actions';
import { addBod... |
var app = require('app'); // Module to control application life.
var BrowserWindow = require('browser-window'); // Module to create native browser window.
var buildMenu = require('./menu.js');
var VERSION = app.getVersion();
console.log("Running Melange v" + VERSION);
// Report crashes to our server.
require('cras... |
var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "test-2a6ee.firebaseapp.com",
databaseURL: "https://test-2a6ee.firebaseio.com",
projectId: "test-2a6ee",
storageBucket: "test-2a6ee.appspot.com",
messagingSenderId: "125014748717",
appId: "1:125014748717:web:2411be226b6536dd"
};
// Init... |
import React, { createRef, useEffect, useRef, useState } from 'react';
import styled from 'styled-components';
import { getSubject } from '../api/SubjectOfSearch';
import GreyButton from '../components/greyButton';
import HowToRequestEvidence from '../components/HowToRequestEvidence/HowToRequestEvidence';
import BreadC... |
// https://github.com/sindresorhus/awesome-electron
import {app} from 'electron';
import shellEnv from 'shell-env';
import fixPath from 'fix-path';
import path from "path";
import config from './configs/app.config';
// import {addPepFlashCommandLine} from './main/pepflash';
import {destroyTray, setTray} from './main/tr... |
const uuidV4 = require('uuid/v4');
const JKISS31 = require('../jkiss');
const {floodFill} = require('./util');
const garbageCoordsToIndex = ((state, x, y) => {
if (x < 0) {
return undefined;
}
if (x >= state.width) {
return undefined;
}
// Guards for y can omitted.
return x + state.width * (state.... |
/* eslint-disable no-bitwise */
/* eslint-disable no-console */
/* eslint-disable max-len */
const input = require('./input');
/**
* --- Day 21: Chronal Conversion ---
You should have been watching where you were going, because as you wander the new North Pole base, you trip and fall into a very deep hole!
Just kidd... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Service = void 0;
const adapter_commons_1 = require("@feathersjs/adapter-commons");
const core_1 = require("@mikro-orm/core");
const errors_1 = require("@feathersjs/errors");
const lodash_1 = require("lodash");
const feathersSpecialQue... |
import React, { Component } from "react";
import {
View,
StyleSheet,
Text,
ScrollView,
TouchableOpacity,
Image,
Modal,
ImageBackground
} from "react-native";
import NavigationBar from "../../../../components/@jcmall/navbar";
import Icon from "../../../../config/iconFont";
import {
PublicStyles,
wind... |
const { DateTime } = require("luxon");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const Nunjucks = require("nunjucks");
module.exports = function(eleventyConfig) {
const nunjucksEnvironment = new Nunjucks.Environment(
new Nunjucks.FileSystemLoader("_includes")
);
// Lets us acces... |
var S3 = require("aws-sdk").S3;
var Readable = require("stream").Readable;
var childProcess = require("child_process");
var Writable = require("stream").Writable;
var _ = require("lodash");
var fs = require("fs");
var inherits = requir... |
/**
* test-mockRequire from qmock v0.13.1
*
* Copyright (C) 2018 <NAME>
* Licensed under the Apache License, Version 2.0
*/
'use strict';
var fs = require('fs');
var unrequire = require('./');
var mockRequire = { unrequire: unrequire };
module.exports = {
before: function(done) {
// create the mock ... |
$(document).ready(function(){
$("#format-select-btn").click(function () {
let rows = $('#table-format > tbody > tr');
var max = 0;
for (i = 1; i < rows.length; i++){
let row = rows[i];
let check = $(row).find('> td > .check-input');
let lat = $(row).find('... |
const express = require('express');
const router = express.Router();
const logger = require('../helpers/logger');
var jsonwebtoken = require('jsonwebtoken');
const Mailer = require('../helpers/mailer');
const TokenMaker = require('../helpers/tokenMaker');
var secretKey = process.env.TEAM_MANAGER_SECRET... |
import m from 'mithril';
import Stats from 'vendor/stats';
import { STEREOSCOPIC_LAYOUTS } from 'consts';
const OMG_FKN_VR_BBQ = true;
// THREE doesn't seem to export a default THREE namespace
import {
//BackSide,
LinearFilter,
Math as ThreeMath,
Mesh,
MeshBasicMaterial,
PerspectiveCamera,
... |
// Whole-script strict mode syntax
"use strict";
/**
MIT License
Copyright (c) 2020 Openlaw
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 r... |
import React, { PropTypes, Component } from 'react';
import ReactDOM from 'react-dom';
import autobind from 'autobind-decorator';
import { transform } from 'babel-standalone';
// Import Style
import styles from './ComponentStyler.css';
import styled from 'styled-components';
import CodeMirror from 'react-codemirror'... |
import Log from 'lib/log';
const log = new Log('AACDemux');
export default class AACDemux {
constructor({
audioTrack,
mediaInfo
}) {
this._audioTrack = audioTrack;
this._mediaInfo = mediaInfo;
this._mpegSamplingRates = [
96000,
88200,
64000,
48000,
44100,
32000,
24000,
22050,
1... |
// common variables
let iBytesImported = 0
let iBytesTotal = 0
let iPreviousBytesLoaded = 0
let iMaxFilesize = 104857600 // 100MB
let timer = 0
let importInProgress = 'n/a'
let isProcessing = false
let url = null
/* CACHED ELEMENTS */
const importForm = document.getElementById('import-form')
const importInput = docum... |
import React from "react";
import { Spin, Form, Input, Select, Button, InputNumber, message } from "antd";
import "./add_update_director.sass";
import * as router from "../router";
const Option = Select.Option;
const roundRobin = "round_robin";
const fallback = "fallback";
const random = "random";
const hash = "hash... |
'use strict'
function updateUI(game) {
game.ui.c.clearRect(0, 0, game.ui.c.canvas.width, game.ui.c.canvas.height);
for (let i = 0; i < game.ui.elements.length; i++) {
if (game.ui.elements[i].isVisable) {
game.ui = game.ui.elements[i].refresh(game.ui, game.input, game);
}
}
htmlImgs.forEach(function (img) {
... |
'use strict';
const ObjectId = require('mongodb').ObjectID;
const pr = {};
pr.get = function (req, res) {
let { query, options } = req;
let database = options.database;
let workout_id = query.workout_id && query.workout_id.length === 24 ? new ObjectId(query.workout_id) : null;
let user_id = query.user_id && ... |
const fs = require("fs").promises;
const path = require("path");
const Arguments = {
// Conditions
LESS_THAN: 0x40,
LESS_EQUAL: 0x41,
GREATER_THAN: 0x42,
GREATER_EQUAL: 0x43,
OVERFLOW: 0x44,
NOT_OVERFLOW: 0x45,
POSITIVE: 0x46,
MINUS: 0x47,
CARRY: 0x48,
NOT_CARRY: 0x49,
Z... |
// global parameters controlling system behavior
var alpha = 0.125 // controls sensitivity/aggression of the updates
var C = 750.0 // controls the spread in values
var correctionFactor = 0.7 // discount the point spread to eliminate bias
var winningScore = 5 // game to 5
$(document).ready(function(){
$('#details').hi... |
import React, { useState, useEffect } from 'react';
import { Link as RouterLink, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import validate from 'validate.js';
import { makeStyles } from '@material-ui/styles';
import {
Grid,
Button,
IconButton,
TextField,
Link,
Typography
} fr... |
// https://github.com/zondax/cosmos-delegation-js/
// https://github.com/cosmos/ledger-cosmos-js/blob/master/src/index.js
import 'babel-polyfill';
//import Cosmos from "@lunie/cosmos-js"
import TransportWebUSB from "@ledgerhq/hw-transport-webusb";
import CosmosApp from "ledger-cosmos-js"
import { signatureImport } from... |
import React, { useState, useEffect } from "react";
import "./styles.css";
import { TextField, Button, Typography } from "@material-ui/core";
import Grid from "@material-ui/core/Grid";
import { makeStyles } from "@material-ui/core/styles";
import { Link } from "react-router-dom";
import { green } from "@material-ui/cor... |
let inventoryTable = null
let splitTable = null
let selItem = null
let splitData = []
const addRow = () => {
if(selItem == null)
{
alert("Select the Item to split")
return false;
}
let data = {}
data.h_batch = selItem.hBatch
data.metrc_tag = $('#inputMetrc').val()
data.qtyonh... |
/* eslint-disable import/no-cycle */
import uuid from 'uuid/v4'
import Big from 'big.js'
import { startOfYesterday } from 'date-fns'
import types from './types'
import { showSnackbar } from '../user/actions'
import {
addTransactions,
deleteTransactions,
getAccountTransactions,
updateTransactions
} from '../tran... |
import React, { useEffect, useState, useRef } from 'react';
import { observer } from 'mobx-react-lite';
import './index.less';
import { Icon, Button, Tooltip } from 'choerodon-ui';
import { useOrgOverviewRightSide } from '../../stores';
// 点击展示更多
function handleDropDown(e) {
const pNode = e.currentTarget.par... |
const express = require('express');
const bodyParser = require('body-parser');
const dotenv = require('dotenv').config();
const app = express();
const crypto = require('crypto');
const cookie = require('cookie');
const nonce = require('nonce')();
const querystring = require('querystring');
const request = require('requ... |
// search and content filtering functions
function buildSearchTool($node){
// create element div, class of search-tool, containing a form,
// form, id of search-tool, with default or requested attributes
// an input text field, an input submit button
// responds enter text and hit enter, responds ... |
const { MessageEmbed } = require('discord.js');
const ayarlar = require("../ayarlar.json");
const data = require('../Models/yasakliTag.js')
const { rolVer, renk, embedCreator, trueEmbed,setRoles,positionEmbed,botEmbed } = require('../functions');
exports.run = async(client, message, args, author, victim) => {
... |
/**
* (c) 2010-2016 <NAME>
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
import '../parts/Options.js';
import '../parts/Chart.js';
import '../parts/SvgRenderer.js';
var Chart = H.Chart,
defaultOptions = H.defaultOptions,
each = H.each... |
import React, { useEffect, useState } from 'react';
import {useHistory } from 'react-router-dom';
import axios from "axios";
import MomentUtils from '@date-io/moment';
// import DateFnsUtils from '@date-io/date-fns';
import { makeStyles } from "@material-ui/core/styles";
import { InputLabel, TextField } from "@materi... |
const _ = require('lodash')
const Catbox = require('catbox')
const CatboxRethinkdb = require('catbox-rethinkdb')
const Promise = require('bluebird')
const rethinkdbdash = require('rethinkdbdash')
const Matchers = require('./matchers')
const Utils = require('./utils')
const rethinkClient = rethinkdbdash({
host: proc... |
var Pager = Class.create ({
initialize: function (i, n) {
this.mycase = -1;
this.i = parseInt(i);
this.n = parseInt(n);
this.end_len = 2;
this.span_len = 5;
this.middle = this.getMiddle();
},
showInputs: function (target) {
var target = $(target);
target.insert (new Element ("div").update ("cur: "... |
const passport = require('passport');
const bcrypt = require('bcrypt');
const mongoose = require('mongoose');
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false });
var roomId;
const roomSchema = new mongoose.Schema({
room_id: {type: String, required: ... |
/*
* =======================================================
* Document Info
* =======================================================
*
* @Doc Description: metaco web site Custom Under Constraction Canvas
* @Author: d4rth0nyx
* @Creation Date: 2017-11-29
* @Copyright: Copyright (c) 2017 techasoft - http://techasof... |
#!/usr/bin/env node
/* eslint-disable no-console */
'use strict';
// Filer's path messes with process.cwd(), cache the real one
const cwd = process.cwd();
const path = require('path');
const fs = require('fs');
const { S_IFMT } = fs.constants;
const SerializableMemoryProvider = require('../tests/lib/serializable-mem... |
import React, { useState, useEffect } from 'react';
import { Card, Box, Typography, Grid, Divider, Icon, Button, Link, Popover, Tooltip } from '@material-ui/core';
import { ToggleButton, ToggleButtonGroup } from '@material-ui/lab';
import QuickStatusIcon from '../helpers/QuickStatusIcon';
import moment from 'moment';
i... |
function ttml2srt(data,forceFps) {
// get framerate
const FPSnumMatch = data.match(/ttp:frameRate="(\d+)"/);
const FPSmulMatch = data.match(/ttp:frameRateMultiplier="(\d+) (\d+)"/);
const FPSnum = FPSnumMatch ? parseInt(FPSnumMatch[1]) : 0; // numerator
const FPSmul = FPSmulMatch ? parseIn... |
/**
* Preparation for running own selenium tests in autotester (browser env)
* see: selenium-webdriver/lib/test/**
*/
// const FILE_SERVER_BASE_URL = 'http://127.0.0.1:2310/common/';
const FILE_SERVER_BASE_URL = 'http://selenium-fileserver.herokuapp.com/common/';
const SELFTEST_EXTENSION_ID = 'cidkhbpkgpdkadkjpkfoo... |
"use strict";
// Web server
const express = require("express");
const app = express();
// Web browser
const puppeteer = require("puppeteer-extra");
const StealthPlugin = require("puppeteer-extra-plugin-stealth");
puppeteer.use(StealthPlugin());
// HTTP Proxy Agent support
const pageProxy = require("puppeteer-page-prox... |
/**
* Copyright (c) 2017, <NAME>
* 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.
*/
import React, { Component, PropTypes } from 'react';
import ConfirmRemoveDialog from './dialogs/ConfirmRemoveDialog';
import... |
import { __assign, __rest } from "tslib";
import { get } from '@antv/util';
import { interaction, animation, theme, state, scale, annotation } from '../../adaptor/common';
import { interval } from '../../adaptor/geometries';
import { findGeometry, flow, transformLabel, deepAssign } from '../../utils';
import { Y_FIELD,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _css = _interopRequireDefault(require("../utile/css"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _classCallCheck(instance, Constructor) { ... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import axiosInstance from 'httpConfig';
import { Alert, Button, Modal, Table } from 'components';
import { Container, EmptySection, Header, Select } from 'views/BranchOfficeSettings/components';
import { Grid, TextField } from '@material-ui... |
import reducerAllDragons from '../reducers/reducer_all_dragons';
import reducerDragons from '../reducers/reducer_dragons.js';
import reducerFightingDragon from '../reducers/reducer_fighting_dragon.js';
import reducerHuman from '../reducers/reducer_human.js';
import reducerMergingDragon from '../reducers/reducer_merging... |
import * as qs from 'qs';
import Notifications from 'react-notification-system-redux';
// While app is simple, keep everything in one action module :)
/*
* action types
*/
export const GET_FILTER_OPTIONS = 'GET_FILTER_OPTIONS';
export const RECEIVE_FILTER_OPTIONS = 'RECEIVE_FILTER_OPTIONS';
export const UPDATE_S... |
/*jshint esversion: 9 */
const Common = require('@helpers/common'),
TextToSpeechService = require('@services/TextToSpeechService'),
auth = require("@auth"),
rp = require('request-promise'),
prism = require('prism-media'),
lame = require('lame'),
samplerate = require('node-libsamplerate'),
xmlbuild... |
/*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.