text stringlengths 3.22k 29.5k |
|---|
var _ = require('underscore');
// horrible hack to get localStorage Backbone plugin
var Backbone = (!require('../util').isBrowser()) ? Backbone = require('backbone') : Backbone = window.Backbone;
var CommandEntryCollection = require('../models/collections').CommandEntryCollection;
var Main = require('../app');
var Com... |
import React, {PropTypes} from 'react';
import ErrorMsg from './ErrorPlugin';
import {Reference} from './../../Reference/Reference';
import createPubPubPlugin from './PubPub';
let styles = {};
const InputFields = [
{title: 'reference', type: 'reference'},
{title: 'description', type: 'textArea', params: {placeholde... |
import React, { useEffect, useRef, useState, useMemo } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { useParams } from 'react-router-dom'
import { FormattedMessage } from 'react-intl'
import { Spinner } from 'react-bootstrap'
import { useLearningLanguage, useDictionaryLanguage, hiddenFeatu... |
import React, { Component } from 'react'
import './App.css'
import config from './config.js'
import DeckGL, { MapController, FlyToInterpolator } from 'deck.gl'
import { StaticMap } from 'react-map-gl'
import scrollama from 'scrollama'
import { GeoJsonLayer } from '@deck.gl/layers'
import axios from 'axios'
import { Mar... |
const rando = require('./randonneurs');
const ly = require('./lien_yseop');
const recastai = require('recastai');
const wc = require('which-country');
const ca = require('country-query');
exports.save = function(result, profil)
{
// Instanciation client
var client = new rando.randonneurs(profil, 'mic... |
/**
* New Emails Widget
*/
import React, { Component, Fragment } from 'react';
import { Media } from 'reactstrap';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/Dia... |
/**
* Copyright 2019 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { HAXStore } from "@lrnwebcomponents/hax-body/lib/hax-store.js";
/**
* `h-a-x`
* @element h-a-x
* `Single tag to transform authoring`
*
* @microcopy - language worth noting:
* - HAX - Headless... |
'use strict';
var myDiagram;
var actualEditJobID;
var actualWorkzoneName;
var wzOverview;
var jobTimer;
var bottomJsonEditor;
var jsonEditor;
var jobPredecessorState;
var showValidWz;
var showValidJob;
var datepicker = $("#datepicker");
function validateEditor(values) {
var isValid = true;
$.each(values, function ... |
import React, { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import {
ArticleTitle,
Background,
HeroContainer,
BreadcrumbsWrapper,
HeroLeftWrapper,
HeroRightWrapper,
HeroImageContainer,
InfoText,
WriterImage,
WrittenbyText,
BodyContainer,
LeftBody... |
var _ = require("../../../third_party/underscore/underscore.js")._;
/**
* @see http://www.1stworks.com/ref/RuskeyCombGen.pdf
*/
var LENGTH = 7;
var BASE = 5;
exports.preamble = ["Finding shortest debruijn-esque sequence for", LENGTH,
"subsequence given an alphabet of length and special required criteria."
];
//... |
const _ = require('lodash')
const { serializeError } = require('serialize-error')
const VError = require('verror')
const { validateHmacSignature } = require('../../utils/hmacValidator')
const adyenEvents = require('../../../resources/adyen-events.json')
const { getNotificationForTracking } = require('../../utils/common... |
var db;
var store;
var rawTrans;
var rawStore;
var visible = new Array();
var displayed = new Array();
//timeDelta é servidor-cliente, somar à hora do cliente no envio
var timeDelta = 0;
var servPreviousStatus = 1;
var ready = false;
function addPass(form) {
formData = document.getElementById('pass_data');
var p... |
import React from "react";
import {observer} from "mobx-react";
import {connect} from "react-redux";
import Store from './store';
import TypeData from "./steps/TypeData";
import UploadFile from "./steps/UploadFile";
import FormatData from "./steps/Format";
import Detail from "./steps/Detail";
import {confirm, showWarni... |
const { dirname } = require("path");
const semanticRelease = require("semantic-release");
const { check } = require("./blork");
const getLogger = require("./getLogger");
const getSynchronizer = require("./getSynchronizer");
const getConfig = require("./getConfig");
const getConfigSemantic = require("./getConfigSemanti... |
import React, { Component } from "react";
import { Link } from "react-router";
import { connect } from "react-redux";
import { Helmet } from "react-helmet";
import classnames from "classnames";
import _ from "lodash";
import moment from "moment";
import {
getDiscussions,
getPinnedDiscussions,
updateSortingMethod... |
const _ = require('underscore');
const Mn = require('backbone.marionette');
const App = require('../../main');
const CertificateModel = require('../../../models/certificate');
const template = require('./form.ejs');
const i18n = require('../../i18n');
const ... |
import React from 'react'
import {useTable, usePagination} from 'react-table'
import styled from 'styled-components'
import axios from 'axios'
import Sparkle from 'react-sparkle'
const Styles = styled.div`
padding: 1rem;
* {
margin-left: auto;
margin-right: auto;
font-family: sans-serif;
}
table {
... |
/**
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"); you may not use... |
const { extensions, aliasExtensions } = require("./extensions.js")
function assert(bool, message) {
if (!bool) throw "Assertion failed! " + (message || "")
}
function isArray(o) {
return o && o.constructor === Array
}
// List of classes we're allowed to override.
var overrideCategories = [
"motion",
"looks",... |
/**
* Copyright 2014-2020 BigML
*
* 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 ... |
/* 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
* distributed unde... |
/**
* @author zhangxinxu(.com)
* @version -
* @create 2020-04-23
* @description 因为多次遇到直接静态原型最为最终上线版本的需求
* 静态资源的版本管理,以及压缩等是个头疼的问题,因此
* 有了本文件。
* 静态资源版本添加,以及简易的压缩功能实现
* @url https://github.com/zhangxinxu/mockup
* @license MIT 保留原作者和原出处
* @edited by littleLionGuoQing: 20-06... |
// run with: node --max-old-space-size=8192 populate_analytics.js
// will oom without the added tag
// Load Environment Variables
require('dotenv').config();
const mongoose = require('mongoose');
const { GetPrices } = require('../serverjs/prices');
const { getElo } = require('../serverjs/cubefn.js');
const carddb = ... |
// Set new default font family and font color to mimic Bootstrap's default styling
try {
Chart.defaults.global.defaultFontFamily = 'Nunito', '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#858796';
} catch (e) {
}
let ... |
/*
* Copyright 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distrib... |
/*
* Copyright 2016 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... |
import React, { Component } from 'react';
import { Container, Row, Col, Card, CardBody, Pagination, PaginationItem, PaginationLink } from 'reactstrap';
import { Link } from "react-router-dom";
//Import Light box
import Lightbox from 'react-image-lightbox';
import 'react-image-lightbox/style.css';
//Import components
... |
import * as tslib_1 from "tslib";
import { autobind } from '@microsoft/office-ui-fabric-react-bundle';
import { DynamicDataProvider } from '@microsoft/sp-component-base';
import { Log, Text } from '@microsoft/sp-core-library';
import { Dropdown } from 'office-ui-fabric-react/lib/components/Dropdown/Dropdown';
impo... |
const results3433 = [
{
id: 1,
fatsecret_food_id: 3433,
serving_id: 10690,
retrieved_at: "2019-12-17T22:00:26.796Z",
food_name: "White Bread",
food_type: "Generic",
brand_name: null,
serving_url:
"https://www.fatsecret.com/calories-nutrition/generic/bread-white?portionid=10690&po... |
import net from 'net';
import os from 'os';
import _ from 'lodash';
import B from 'bluebird';
import { plist, fs } from '@appium/support';
import LengthBasedSplitter from '../util/transformer/length-based-splitter';
import UsbmuxDecoder from './transformer/usbmux-decoder.js';
import UsbmuxEncoder from './transformer/us... |
/*To append the three svg's*/
// function ReadAppend(file,appendFile){
//
// fs.readFile(appendFile, function (err, data) {
// if (err) throw err;
// console.log('File was read');
//
// fs.appendFile(file, data, function (err) {
// if (err) throw err;
// console.log('The "data to append" was ap... |
/*
Copyright 2013-2015 ASIAL CORPORATION
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, so... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
var skipArray = require('../vmodel/parts/skipArray')
var legalTags = {wbr: 1, xmp: 1, template: 1}
var events = 'onInit,onReady,onViewChange,onDispose'
var componentEvents = avalon.oneObject(events)
var immunity = events.split(',').concat('is', 'define')
var onceWarn = true
function initComponent(src, rawOption, local... |
var Penggunaan_CariSkpd = new SkpdCls({
prefix : 'Penggunaan_CariSkpd', formName:'PenggunaanKetetapan_form'
});
var Penggunaan_Cari = new DaftarObj2({
prefix : 'Penggunaan_Cari',
url : 'pages.php?Pg=Penggunaan_Cari',
formName : 'PenggunaanKetetapan_form',// 'ruang_form',
el_ipk : '',
CariPenggunaa... |
const whiteKeys = [
'C3', 'D3', 'E3', 'F3', 'G3', 'A4', 'B4', 'C4', 'D4', 'E4', 'F4', 'G4', 'A5', 'B5', 'C5', 'D5', 'E5', 'F5', 'G5', 'A6', 'B6'
];
const blackKeys = [
'Cs3', 'Ds3', 'Fs3', 'Gs3', 'As4', 'Cs4', 'Ds4', 'Fs4', 'Gs4', 'As5', 'Cs5', 'Ds5', 'Fs5', 'Gs5', 'As6'
];
const audioPath = '../../static/study/aud... |
(function() {
var app = angular.module('actuate', ['ngRoute']);
var managementURL = localManagementURL();
var managementAuth = null;
var managementContextPath = getManagementPath(managementURL,localBaseURL());
app.config(function($routeProvider) {
$routeProvider
.when('/health'... |
var bridge = require("./bridge");
var transformer = require("./transformer");
bridge.registerListener( "clearContents", function() {
clearContents();
});
bridge.registerListener( "setMargins", function( payload ) {
document.getElementById( "content" ).style.marginLeft = payload.marginLeft + "px";
document... |
const Discord = require('discord.js');
const db = require("quick.db");
const ayarlar = require("../ayarlar.json");
exports.run = (client, message, args) => {
let prefix = db.fetch(`prefix_${message.guild.id}`) || ayarlar.prefix//! yerine kendi prefixini yaz!
let yazılar = db.fetch(`${message.guild.id}.otocevap.... |
// DataGenerator - A generator for fake data
//
// This module uses a random timeout to delay the resolution of any promise.
// When you create a DataObject it will store the created_on and wait till
// start() is called. Once that happens it will kick off the timeout and return
// a promise who's value with be the Dat... |
const input = document.getElementById('File');
const k = 7;
let data = {};
let dataColors = [];
let titles = [];
let canvases = [];
let summarizedData = [];
input.addEventListener('change', (event) => {
let file = event.target.files;
if(file.length===1){
readSingleFile(file);
}
else{
alert... |
import * as THREE from "three"
import { Canvas, useFrame, useThree } from "@react-three/fiber"
import React, { Suspense, useCallback, useEffect, useRef, useContext } from "react"
import { ContactShadows, Text, Html } from "@react-three/drei"
import { A11y, useA11y, A11yAnnouncer, A11yUserPreferences, useUserPreferences... |
/**
* <NAME>
* Developed by Engagement Lab, 2016
* ==============
*
* Script for GROUP'S WikiGeeks socket events. Loaded to group screen upon load of monitor view.
* ==========
*/
var clockInterval;
var wikiAnimSlider;
var openAnim = new TimelineLite();
// Show players
openAnim
.from($('.room-container'), 1, ... |
'use strict'
const fs = require(`fs-extra`)
const path = require(`path`)
const webpack = require(`webpack`)
const TerserPlugin = require(`terser-webpack-plugin`)
const nodeExternals = require(`webpack-node-externals`)
const AssetsPlugin = require(`assets-webpack-plugin`)
const StartServerPlugin = require(`start-server... |
'use strict'
const _ = {
difference: require('lodash/difference')
}
const { ShortcutNode } = require('../data/data-node.js')
const { LayoutNode, CollapsedLayoutNode } = require('./layout-node.js')
const { pickLeavesByLongest } = require('./stems.js')
const { uniqueMapKey, removeFromCounter } = require('../validatio... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const fetch = require("node-fetch");
const AtlasAccountName = process.env["AtlasAccountName"] || null,
apiPrefix = `https://${AtlasAccountName}.catalog.purview.azure.com/api`;
// GET all type definitions
async function getTypeDefs... |
// Copyright 2015 Joyent, Inc.
module.exports = Signature;
var assert = require('assert-plus');
var algs = require('./algs');
var crypto = require('crypto');
var errs = require('./errors');
var utils = require('./utils');
var asn1 = require('asn1');
var SSHBuffer = require('./ssh-buffer');
var InvalidAlg... |
import React from 'react';
import {
FlatList,
View,
Platform,
Image,
TouchableOpacity,
Keyboard,
InteractionManager,
Geolocation,
} from 'react-native';
import {
RkButton,
RkText,
RkTextInput,
RkAvoidKeyboard,
RkStyleSheet,
RkTheme,
} from 'react-native-ui-kitten';
import _ from 'lodash';
im... |
/*
*
* This allows the user to capture the audio playback time at the start of each
* paragraph.
*
* Each paragraph under .cmiTranPara, for transcripts containing audio and that have not yet
* been timed, have a bullseye icon inserted at the beginning. When audio is played, pressing
* the 'C' on the audio pla... |
const util = require('util');
util.inspect.defaultOptions = {compact:false,breakLength:Infinity};
const cheerio = require('cheerio');
const Discord = require('discord.js');
const {limit: {verification: verificationLimit, rcgcdw: rcgcdwLimit}} = require('../util/default.json');
const newMessage = require('../util/newMe... |
import React from "react";
import "./App.css";
import mondaySdk from "monday-sdk-js";
import { initializeIcons } from 'office-ui-fabric-react/lib/Icons';
import { Stack } from 'office-ui-fabric-react/lib/Stack';
import { FontWeights } from '@uifabric/styling';
import { Persona, Text } from 'office-ui-fabric-react';
imp... |
/* eslint-disable no-nested-ternary */
import React from 'react'
import PropTypes from 'prop-types'
import {padding, margin, ellipsis, backgrounds} from 'polished'
import {useTranslation} from 'react-i18next'
import {Flex as ChakraFlex} from '@chakra-ui/core'
import {Box, Text, Input, Button} from '../../../shared/comp... |
/**
* Copyright 2020 Infinite Automation Systems Inc.
* http://infiniteautomation.com/
*
* 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
... |
const inquirer = require('inquirer');
const mysql = require('mysql');
const cTable = require('console.table');
const connection = mysql.createConnection({
host: "localhost",
// Your port; if not 3306
port: 3306,
// Your username
user: "root",
// Your password
password: "<PASSWORD>",
... |
import Ember from "ember";
import { COLORS, NO_THREAD_COLOR } from 'stromx-web/colors';
import { OPERATOR_SIZE, CONNECTOR_SIZE } from 'stromx-web/geometry';
export default Ember.Component.extend({
tagName: 'g',
color: function() {
var thread = this.get('model.thread');
if (thread === undefined || thread =... |
const inquirer = require("inquirer");
const flatten = require("lodash/flatten");
const get = require("lodash/get");
const uniqBy = require("lodash/uniqBy");
const { format } = require("sql-formatter");
const isEmpty = require("lodash/isEmpty");
const orderBy = require("lodash/orderBy");
const TableSelector = require(".... |
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot... |
import React, { Component } from 'react';
import { Row, Col, Button, Icon, Table, DatePicker, InputNumber } from 'antd';
import moment from 'moment';
import request from '../../../../utils/request';
import { handleResponse } from '../../../../utils/globalUtils';
import { getEnterprise } from '../../../../utils/enterpri... |
// import { BrowserWindow } from 'electron';
const http = require('http');
const https = require('https');
const WebSocket = require('ws');
const net = require('net');
const fs = require('fs')
const path = require('path')
const {BrowserWindow,app} =require('electron')
const common=require('./common.js')
const Aler... |
$(document).ready(function($) {
var _table;
var _trueque;
ObtenerMonedas();
ObtenerEmpresaMoneda();
desactivarCrear();
});
//Funcion que no permite ingresar valores distintos de float con 2 decimales
$('#txtcambio').on('keypress', function (e) {
// Backspace = 8, Enter = 13, ’0′ = 48, ’9′... |
var mysql = require('mysql');
var express = require('express')
var config = require('./config.js')
var exphbs = require('express-handlebars');
const app = express();
app.engine('handlebars', exphbs({defaultLayout: 'main'}));
app.set('view engine', 'handlebars');
var db = mysql.createConnection(config.database);
db.... |
const path = require('path')
const argv = require('yargs').argv
const c = require('ansi-colors')
const rc = require('rc')
const tildify = require('tildify')
const format = {
selected: (options, selected) => {
let styledOptions = options.map((option) => {
if (option === selected) return c.bold.... |
/********************************************************************************************************
* Name: UML to YANG Mapping Tool
* Copyright 2015 CAICT (China Academy of Information and Communication Technology (former China Academy of Telecommunication Research)). All Rights Reserved.
* Licensed under the... |
const resumeData = {
info: {
key: 'INFO',
name: '<NAME>',
summary: 'Interactive Designer & Developer with over fifteen years experience in Digital Advertising, UI/UX, Graphic Design, Animation, Front-End Development, Audio/Video, and everything in between.',
website: '<EMAIL>',
email: '<EMAIL>',
location: ... |
import React from 'react'
import Hero from '../components/Hero'
import Layout from '../components/Layout'
import InfoSwitcher from '../components/InfoSwitcher'
import Team from '../components/Team'
import Contact from '../components/Contact'
import Background from '../components/Background'
import Slider from '../compo... |
const particleCount = 100;
const edgeThreshold = 250;
const driftThreshold = 200;
const edgeAlpha = 0.3;
const particleColor = "#ffffff";
const edgeColor = "#ffffff";
const edgeThickness = 0.5;
const colorArray = ["#0c7bc9", "#b61924", "#0c0140", "#8a0641", "#2f6103", "#068c7d", "#000000"];
const gammaCorrection = 0.8;... |
'use strict';
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _classCallCheck2 = _interopRe... |
import $ from 'jquery';
//eslint-disable-next-line
function flurry($, undefined) {
/**
* requestAnimationFrame polyfill by <NAME>. fixes from Paul Irish and <NAME>
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationfr... |
const config = require("./config/config");
const blockPrefix = config.blockPrefix;
const utxoPrefix = config.utxoPrefix;
const utxoIncludingAddressPrefix = config.utxoIncludingAddressPrefix;
const makeAddressIndex = config.makeAddressIndex;
const headerPrefix = config.headerPrefix;
const transactionPrefix=config.transa... |
const fs = require("fs");
const path = require("path");
const config = require("../config");
/**
* 用于生成可视化的HTML文件
* 便于项目成员查看错误所在的位置以及错误分布情况
*/
class HtmlGenarator {
constructor(options) {
this.cwd = options.cwd;
this.options = options;
this.templatePath = path.join(__dirname, "./template.... |
const addBabyButton = document.getElementById('add-baby-button');
const addBabyForm = document.getElementById('add-baby-form');
const addBabyCard = document.querySelector('.card-add-baby');
const cancelAddButton = document.getElementById('cancel-add-button');
const babiesContainer = document.getElementById('babies-cont... |
/*
Copyright (c) 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 the hope t... |
// page/page4/page4.js
const com = getApp().globalData.com;
const code = {
d1: `<e-base-list
title='编辑名片'
subTitle='2018-09-27 11:41:48'>
</e-base-list>`,
d2: `<e-icon-list
title='小姐姐'
subTitle='13066666666'
detail='2018-06-01 13:12'>
<e-head-portrait
slot='icon'
size='150'
src='/imgs/defaul... |
import {
isObj,
DOMMUTATION,
syErr,
isCallable,
valueType,
array,
isAtag,
consW,
getId,
isDefined,
hasChildren
} from "./helpers.js"
function makeReactive(obj, call){
if("___" in obj && obj["___"]==true){
... |
'use strict'
var path = require('path')
, ParsedStatement = require('../db/parsed-statement')
, shimmer = require('../shimmer')
, urltils = require('../util/urltils')
, logger = require('../logger').child({component : 'mongodb'})
, MONGODB = require('../metrics/nam... |
import { uniqueId } from 'lodash';
import { historyReplaceState, NO_SCROLL_TO_HASH_CLASS } from '~/lib/utils/common_utils';
import {
ACTIVE_TAB_CLASSES,
ATTR_ROLE,
ATTR_ARIA_CONTROLS,
ATTR_TABINDEX,
ATTR_ARIA_SELECTED,
ATTR_ARIA_LABELLEDBY,
ACTIVE_PANEL_CLASS,
KEY_CODE_LEFT,
KEY_CODE_UP,
KEY_CODE_RI... |
const _ = require('lodash');
var {
isEmpty
} = require('../config/customFunctions');
const Campaign = require('../models/campaign');
const User = require('../models/User');
const moment = require('moment');
const photo = require('../models/PhotoCollection');
const PhotoEntries = require('../models/PhotoCollection');... |
/**
*
* Invite
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import './style/style.css';
import images from '../../../images';
class Invite extends React.Component { // eslint-disable-line react/prefer-stateless-fu... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { throttle, isEmpty } from "lodash";
import PropTypes from "prop-types";
import { Form } from "@ant-design/compatible";
import "@ant-design/compatible/assets/index.css";
import { PlusOutli... |
const { join, resolve } = require('path');
const webpack = require('webpack');
const { argv } = require('yargs');
const TerserPlugin = require('terser-webpack-plugin');
const LoadablePlugin = require('@loadable/webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebPackPlugin = requir... |
$(document).ready(function() {
$('.linea_rojo1').css({'display': 'block'});
$('.id_btn_pro').css({'color': '#E13124'});
$('.preoductos').css({'display': 'block'});
$('.informacion').css({'display': 'none'});
$('.id_btn_pro').click(function(){
$('.linea_rojo1').css({'display': 'block'});
$(this).cs... |
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
function clearInput(elem){
elem.val('').addClass('incorectInput');
}
function incorectBorder(elem){
elem.addClass('incorectInput');
}
function borderRed(elem){
elem.addClass('border-red');
}
$... |
'use strict';
const fs = require('fs');
const path = require('path');
const meguminQuotes = require(path.join(
__dirname,
'/../data/megumin-quotes.json'
));
const Discord = require('discord.js');
const tokenFile = require(path.join(__dirname, '/../config/token.json')); // process.env.token;
const explosionQuotes = re... |
/* istanbul ignore file */
/**
* WebSockets client module.
*/
const WS = require('ws');
const {v1: uuid} = require('uuid');
const {path} = require('ramda');
const Raven = require('raven');
const fetch = require('node-fetch');
const SuitestError = require('../utils/SuitestError');
const texts = require('../texts');
... |
import {useState, useEffect, useContext} from 'react'
import useAxios from 'axios-hooks'
import {
CCard,
CCardBody,
CCardHeader,
CCol,
CDataTable,
CRow,
CPagination,
CSelect,
CButton
} from '@coreui/react'
import { datesObj, formatDate } from 'src/utils/dateUtils'
import { PUBLIC_API } from '../../... |
//Isomer.js references for shrothand, must be stored globally
let Shape = Isomer.Shape;
let Point = Isomer.Point;
let Color = Isomer.Color;
//Setting up canvas, context, and Isomer canvas
let iso = new Isomer(document.getElementById('art'));
let canvas = document.getElementById('art');
let context = canvas.getContext('... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.line = undefined;
var _utils = require('../utils');
var _utilsLite = require('utils-lite');
function getLineXAxis(args) {
var dimension = args.dimension,
rows = args.rows,
xAxisName = args.xAxisName,
axisVisib... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _StyleUtils = require("..... |
$(document).ready(function () {
calculate();
$("#calculate").click(function (event) {
event.preventDefault();
calculate();
});
});
function calculate() {
var firstInvest = parseFloat($("#firstInvestment").val());
var monthlyInvest = parseFloat($("#monthlyInvestment").val());
... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { ScrollView, View, StyleSheet, Platform, RefreshControl, ViewPropTypes } from 'react-native';
import { shallowEqual } from './utils';
import Row from './Row';
const AUTOSCROLL_INTERVAL = 100;
const ZINDEX = Platform.OS === 'ios' ? 'zIn... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var dot = require('./matrix').dot;
var BADNUM = require('../constants/numerical').BADNUM;
var polygon = module... |
/* eslint-disable no-prototype-builtins */
const { expect } = require("chai");
// const exp = require("constants");
const { ethers, upgrades } = require("hardhat");
const { MerkleTree } = require("merkletreejs");
const keccak256 = require("keccak256");
const dataRaw = [
"0xbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",... |
import ActionButton from 'react-native-action-button';
import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/Ionicons';
import { View, StyleSheet, TextInput, Text, TouchableOpacity, SafeAreaView, FlatList, LayoutAnimation, Platform } from 'react-native';
import { con... |
const movieList = document.getElementById("all-movies");
const searchBox = document.getElementById("search-box");
const closeBtn = document.getElementById("closeBtn");
const modal = document.getElementById("modal");
const myMovies = document.getElementById("my-movies-list");
const searchImage = document.getElementById(... |
import React, {Component} from 'react';
import PropTypes from 'prop-types'
import {Link, withRouter} from 'react-router-dom';
import QueueAnim from 'rc-queue-anim';
import Modal from '../component/Modal';
import FullPage from '../component/FullPage';
import hitokotoDriver from '../API/hitokotoDriver'
import showNotifi... |
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
let regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { Embed, Checkbox } from 'semantic-ui-react';
import Link from 'next/link';
import { withRouter } from 'next/router';
import downloadIcon from 'static/icons/icon_download.svg';
import shareIcon from 'static/icons/icon_share.... |
var hasValueChanged = false;
function setChangeStatus(status) {
hasValueChanged = status;
}
function adminChangeStatus(status, templateId)
{
$.ajax({
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
type: 'PUT',
url: `/admin/templates/${templateId... |
Hooks.once('init', async function () {
//On init, we initialise all settings and settings menus and override the HUD as required.
//console.log(`Initializing manageAspects`);
//We will be using this setting to store the world's list of aspects.
game.settings.register("ModularFate", "aspects", {
... |
const path = require('path');
const fs = require('fs');
function getJavaTemplateContent(rootPath) {
var templateName = 'javaTemplate.java';
var tempalteFilePath = path.resolve(__dirname, '../../template/' + templateName);
var customTemplateFilePath = path.join(rootPath, '../template/', templateName);
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.