text stringlengths 3.07k 16k |
|---|
// @ts-check
import { useFormikContext } from "formik";
import PropTypes from "prop-types";
import React, { useEffect, useState } from "react";
import * as Yup from "yup";
import {
RfiTextInput,
RfiDateInput,
RfiTextArea,
RfiSelect,
} from "../controls";
// Options
function getCountryOptions(resultsArrayOfObj... |
const { preprocessTypescript } = require('@nrwl/cypress/plugins/preprocessor');
const CDP = require('chrome-remote-interface');
const debug = require('debug')('cypress:server:protocol');
const fs = require('fs');
let port = 0;
let client = null;
let tracingEvents = [];
// copied from https://github.com/paulirish/autom... |
import * as echarts from '../../ec-canvas/echarts';
//app.js
var api = require('../../libs/api');
const STATE_CODE_SELECTED = 'StateCodeSelected';
const RED_COLOR = '#FF0000';
const BLUE_COLOR = '#0000FF';
const GREY_COLOR = '#888888';
//获取应用实例
var app = getApp()
Page({
data: {
currentStateName: '',
statesT... |
const fs = require("fs");
const path = require("path");
const contributionVerifier = require("./contributionVerifier");
const installationToken = require("./installationToken");
const is = require("is_js");
const uuid = require("uuid/v4");
const githubApi = require("./githubApi");
const logger = require("./logger");
c... |
"use strict";
require("dotenv").config();
require("regenerator-runtime");
const importFresh = require("import-fresh");
const fs = require("fs");
const http = require("http");
const https = require("https");
const express = require("express");
const cluster = require("./cluster");
const graceful = require("expr... |
/*
INVENTORY UI
TODO
- encapsulate this!!
*/
function updateInventoryUI() {
// bitsyLog("~~~ UPDATE INVENTORY ~~~", "editor");
updateInventoryItemUI();
updateInventoryVariableUI();
}
function updateInventoryItemUI(){
var viewport = document.getElementById("inventoryItem");
viewport.innerHTML = "";
functio... |
/*****************************
* Migrates from an "original" locker state to the version of the locker that
* uses the registry for most pacakges
*/
var fs = require("fs");
var path = require("path");
var util = require("util");
var system = require("child_process").exec;
var spawn = require("child_process").spawn;
va... |
var latitude = document.getElementById("latitude");
var longitude = document.getElementById("longitude");
var info = document.getElementById("info");
var idMap = document.getElementById("idMap");
var provider = document.getElementById("idUser");
var locations = [];
var km = 20;
var Crcl ;
var map;
var mapOptions = {... |
"use strict";
exports.viewFunction = exports.TableProps = exports.Table = void 0;
var _inferno = require("inferno");
var _inferno2 = require("@devextreme/runtime/inferno");
var _utils = require("../utils");
var _virtual_row = require("./virtual_row");
var _excluded = ["bottomVirtualRowHeight", "children", "classN... |
import React, { PropTypes } from 'react';
import { Table, Column, Cell } from 'fixed-data-table';
import { SearchApi } from 'lattice';
import PropertyTextCell from './PropertyTextCell';
import RowNeighbors from './RowNeighbors';
import RowImage from './components/RowImage';
import styles from './styles.module.css';
c... |
// Create webserver
const express = require("express");
const app = express();
const apiUtils = require("../utils/apiUtils")
const { query } = require("../db")
const modUtils = require("../utils/modUtils")
const passport = require("passport");
passport.serializeUser(function (uid, done) {
done(null, uid);
});
pa... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _crypto = _interopRequireDefault(require("crypto"));
var _defs = require("./defs");
var _utils = require("../utils");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: o... |
import React, {useEffect} from "react";
import { Button, Container, Image, List, Grid, Segment, Header, Divider, Step, Form, Table, Icon, Modal } from "semantic-ui-react";
import {Link, useHistory, withRouter} from "react-router-dom";
import Login from "./Login"
import Register from "./Register";
import LandingNav from... |
const he_key = "<KEY>";
const city = "Kolkata";
const station ="India";
const district = "West bengal";
let aqi_indicator;
$(function () {
// clock
setInterval(setTime, 1000);
setInterval(setData, 1000 * 60 * 10);
setInterval(setAQI, 1000 * 60 * 10);
let $time = $('#time');
let $d... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Class to track the progress events received by a particular plugin instance.
function EventStateMachine() {
// Work around how JS binds 'this'.
... |
/*
* @author: wxw
* @create: 2021-05-08 19:32 PM
* @license: MIT
* @lastAuthor: Spring
* @lastEditTime: 2021-05-11 19:54 PM
* @desc: 社和失败修改
*/
import {$,$1} from "./wquery.js";
let applerName=$(".applerName"); //申请人名称(中文)
let EngName=$(".EngName"); //申请人地址(英文)
let applerAdress=$(".applerAdress"); //申请人地址... |
/*
* Copyright (C) 2015-2020 Opersys inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import React, { Component, PropTypes, } from 'react';
import ReactDOM from 'react-dom';
import * as rb from 're-bulma';
import * as editorHelper from './editorHelper';
import RACodeMirror from '../RACodeMirror';
//http://stackoverflow.com/questions/22677931/react-js-onchange-event-for-contenteditable
const saveSelect... |
import React from 'react';
import { Table } from 'antd';
import { Link } from 'react-router-dom';
import axios from 'axios';
import Header from '../../common/header/header';
import './style.css';
class CompanyInfo extends React.Component {
state = {
loading: true,
dataSource: null
};
componentDidMount(... |
import React, { useEffect, useState } from 'react';
import { Form, Input, Grid } from 'semantic-ui-react';
import { useSubstrate } from './substrate-lib';
import { TxButton } from './substrate-lib/components';
function base64ToArray(base64) {
var binary_string = window.atob(base64);
var len = binary_string.length... |
var allofw = require("allofw");
var allofwutils = require("allofw-utils");
var GL = allofw.GL3;
var window = new allofw.OpenGLWindow({ config: "allofw.equirectangular.yaml" });
window.makeContextCurrent();
var omni = new allofw.OmniStereo("allofw.equirectangular.yaml");
var nav = new allofwutils.WindowNavigation(win... |
import React, {useEffect, useCallback, memo, useContext, useRef} from 'react';
import Horizen from '../../baseUI/horizen-item';
import { singerType, singerArea, alphaTypes } from '../../api/config';
import {
NavContainer,
ListContainer,
List,
ListItem,
BackTop,
} from "./style";
import {
getSingerList,
ge... |
/**
* Copyright 2017-present, Nginx, Inc.
* Copyright 2017-present, <NAME>
* Copyright 2017-present, <NAME>
* All rights reserved.
*
*/
import {
pickZoneSize,
calculateSpeed,
is4xxThresholdReached,
handleErrors,
createMapFromObject
} from './utils.js';
import appsettings from '../appsettings';
export funct... |
const Command = require('../../structures/Command');
const SignalEmbed = require('../../structures/SignalEmbed');
const { ApplicationCommandOptionType } = require('discord-api-types/v9');
const { success, mod } = require('../../utils/emojis');
module.exports = class UnbanCommand extends Command {
constructor(client) ... |
const config = require('./config');
const { decodeHtml, randomDelay, detectTextBelow, detectName, generateRcsNumbers } = require('./utils');
const puppeteer = require('puppeteer');
const path = require('path');
const colors = require('colors');
const debug = require('debug')('search');
const faker = require('faker');
c... |
import React, { useState, useEffect } from 'react'
import axios from 'axios'
import useSWR from 'swr'
import spacetime from 'spacetime'
import sanityClient from 'part:@sanity/base/client'
import {
useToast,
Menu,
MenuButton,
MenuItem,
Badge,
Box,
Button,
Inline,
Text,
Tooltip,
Dialog,
} from '@s... |
var columnTemplateResource = [
{ resourceId: 1, resourceName: "<NAME>" },
{ resourceId: 2, resourceName: "<NAME>" },
{ resourceId: 3, resourceName: "<NAME>" },
{ resourceId: 4, resourceName: "<NAME>" },
{ resourceId: 5, resourceName: "<NAME>" },
{ resourceId: 6, resourceName: "<NAME>" }
];
var... |
import { promisify } from 'util';
import config from 'config';
import request from 'superagent';
import xml2js from 'xml2js';
import { SQL } from 'sql-template-strings';
import slugify from 'slugify';
import ProgressBar from 'progress';
import pool from '../../src/util/database';
const xml2jsParseString = promisify(x... |
import React, { useState } from 'react';
import { Button, Form, Space, InputNumber, Col, Row } from 'antd';
import { maker } from '../../../utils/sluger';
import MediaSelector from '../../../components/MediaSelector';
import { SketchPicker } from 'react-color';
import getJsonValue from '../../../utils/getJsonValue';
im... |
var rhit = rhit || {};
rhit.FB_COLLECTION_PHOTOBUCKET = "Photos";
rhit.FB_KEY_URL = "url";
rhit.FB_KEY_CAPTION = "caption";
rhit.FB_KEY_LAST_TOUCHED = "lastTouched";
rhit.fbPicsManager = null;
function htmlToElement(html) {
var template = document.createElement("template");
html = html.trim();
template.innerHTML =... |
import React, {
Component
} from "react";
import Sketch from "react-p5";
import {
chunkArray
} from "../utilities.js";
const ternaryToEth = (string) => string.replaceAll("0", "E").replaceAll("1", "T")
.replaceAll("2", "H");
const drawE = (x, y, size, p5) => {
const blockSize = size / 5;
p5.rect(x, y, size, blo... |
import React, { Component } from "react";
import * as ROUTES from "../../constants/routes";
import { connect } from "react-redux";
import { compose } from "redux";
import { Redirect, NavLink } from "react-router-dom";
import "./jobs.css";
import { firestoreConnect } from "react-redux-firebase";
import _ from "lodash";
... |
import debounce from 'lodash/debounce';
import each from 'lodash/each';
import slice from 'lodash/slice';
import { h } from '@stencil/core';
import { CELL_HANDLER_CLASS } from '../../utils/consts';
import { getCell, getCurrentCell, getDirectionCoordinate, getLargestAxis, isAfterLast } from './selection.utils';
import {... |
console.log("Loaded main.js");
let lon = 90, lat = (window.pageYOffset / 30) - 15, phi = 0, theta = 0, fov = 60;
const element = document.getElementsByClassName("pano-slideshow")[0];
let width = element.getBoundingClientRect().width;
let height = element.getBoundingClientRect().height;
//Initialises the 3D space.
co... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Form, Modal, Input, Select } from 'antd';
import map from 'lodash/map';
const FormItem = Form.Item;
const { Option } = Select;
@Form.create({
mapPropsToFields(props) {
if (props.formData && props.isEdit) {
const { formD... |
"use strict";
const {
validate
} = require("schema-utils");
const mime = require("mime-types");
const middleware = require("./middleware");
const getFilenameFromUrl = require("./utils/getFilenameFromUrl");
const setupHooks = require("./utils/setupHooks");
const setupWriteToDisk = require("./utils/setupWriteToDi... |
/**
* @file webpack.config.base.js
* @author 刘巍峰 <<EMAIL>>
* Created on 2016-02-13 23:53
*/
'use strict';
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPl... |
import React from 'react'
import {
Map,
ImageOverlay,
Marker,
Popup,
LayersControl,
LayerGroup,
Circle,
} from 'react-leaflet'
import L from 'leaflet'
import RDRMapFull from '../images/rdr2-map-full.png'
import '../styles/index.css'
// import { HideoutsOverlay } from '../components/layers'
// credit: htt... |
// // creating map object
// var myMap = L.map("map", {
// center: [15.5994, -28.6731],
// zoom: 3,
// layers: [streets]
// });
// Creating tile layer with leaflet quickstart and mapbox styles
// maobox styles: https://docs.mapbox.com/api/maps/styles/
const streets = L.tileLayer('https://api.mapbox... |
var _ = require('lodash');
var fs = require('fs');
var path = require('path');
var express = require('express');
var logger = require('node-tech-logger');
var assert = require('assert');
var ls = require('list-directory-contents');
/**
* Configure everything to serve static resources for an express app with
* multi... |
import React from 'react';
import {shouldComponentUpdate} from 'react/lib/ReactComponentWithPureRenderMixin';
import {Motion, spring} from 'react-motion';
import HeightReporter from 'react-height';
const PRECISION = 0.5;
const stringHeight = height => Math.max(0, parseFloat(height)).toFixed(1);
const Collapse = R... |
const babel = require('@babel/core')
const t = require('@babel/types')
const request = require('request-promise-native')
const formatJSON = require('json-format')
const toSingleQuotes = require('to-single-quotes')
const OpenCC = require('opencc')
const opencc = new OpenCC()
const {
i18n_process_promise,
i18n_js... |
const boardData = [
{ col: '1', row: '8', lDiag: '8', rDiag: '1', active: false },
{ col: '2', row: '8', lDiag: '9', rDiag: '2', active: false },
{ col: '3', row: '8', lDiag: '10', rDiag: '3', active: false },
{ col: '4', row: '8', lDiag: '11', rDiag: '4', active: false },
{ col: '5', row: '8', lDiag: '12', r... |
var ocapi = require('./OCAPI');
var service = require('../bot-service');
var CONFIG = require('../bot-config');
var _ = require('underscore');
module.exports = {
suggestions : function(data, response) {
// parsed response body as js object
console.log(JSON.stringify(data));
// raw response
//console.log(respo... |
import React, { useState } from "react";
import { saveAs } from 'file-saver';
import Layout from "../components/layout";
import Seo from "../components/seo";
import "../components/bootstrap.css";
import { StaticImage } from "gatsby-plugin-image";
let vgRawJson = {"contactList":{},"isSuspended":false,"isVGEnabled":true... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.format = void 0;
const tslib_1 = require("tslib");
const child_process_1 = require("child_process");
const path = require("path");
const shared_1 = require("./shared");
const fileutils_1 = require("../utilities/fileutils");
const proje... |
import React from 'react'
import PropTypes from 'prop-types'
import { utils } from 'decentraland-commons'
import { Link } from 'react-router-dom'
import { Loader, Form, Checkbox, Button } from 'semantic-ui-react'
import { t, T } from '@dapps/modules/translation/utils'
import { locations } from 'locations'
import Mana ... |
function BBOX(opts) {
let _opts = opts || {};
this.minX = _opts.minX;
this.minY = _opts.minY;
this.maxX = _opts.maxX;
this.maxY = _opts.maxY;
}
// Some Static Function bind with one Canvas context
export default class Canvas {
// Bound with a canvas element.
static init(ele) {
if... |
import React, { Component } from 'react';
import './Community.css';
import CQ from './CQuestions/CQuestions';
import { browserHistory } from 'react-router-dom'
import AuthService from '../../AuthService/AuthService';
import CA from './CAnsQuestions/CAnsQuestions';
import DP from '../../Images/DP.png';
import My ... |
import React, {useState} from "react";
import {Steps} from "antd";
import { Helmet } from 'react-helmet';
import Layout from '../components/Layout';
import Separator from '../components/Separator';
const {Step} = Steps;
export const FormationCourSuperviseTemplate = () => {
const [current, setCurrent] = useState(0)... |
//constants section
var traverseTime=40; //seconds
var smoothFrames=true;
var postX = 300;
var gapX = 30;
var pathForPics = "/cgi-bin/getPic.sh";
var maxQueue = 10;
var canvas = null;
var ctx = null;
var canW = null;
var canH = null;
var startX = null;
var lastRun = null;
var dx = null;
var approxH = null;
var arrOb... |
import ShadowElement, {html, template, booleanAttribute, addCleanups} from '@cfware/shadow-element';
import Symbols from '@cfware/symbols';
import Debouncer from '@cfware/debouncer';
import '@cfware/button';
export const [
colgroupTemplate,
columnHeader,
buttonTemplate,
headerButtons,
rowButton,
rowButtons,
row... |
import React,
{ Component } from 'react';
import Car from './../../components/Car'
import Street from './../../components/Street'
import { URL_WS } from './../../constants';
import io from 'socket.io-client';
import WaitingStartBlock from './../../components/WaitingStartBlock'
import Co... |
var gulp = require('gulp');
var scsslint = require('gulp-scss-lint');
var sass = require('gulp-sass');
var clean = require('gulp-clean');
var uglify = require('gulp-uglify');
var minifyCSS = require('gulp-minify-css');
var useref = require('gulp-useref');
var fileinclude = require('gulp-file-include');
var watch = requ... |
/*
* 库封装
* <p>封装的内容依次为 : </p>
* <p> * ToURL 跳转页面封装</p>
* <p> * Dialog 弹出框体封装</p>
* <p> * ContantList 内容列队封装</p>
* <p> * ContentAdvance 内容预处理器 </p>
* <p> * Layout 布局器 </p>
* <p> * TipList 列队式提示框架 </p>
* @author fotomxq
* @version 1
*/
/**
* 封装跳转方法
*/
function ToURL(){
this.to = function(url){
... |
/* 搜索验证 */
function check(Id) {
var strings = document.getElementById(Id).value;
if (strings.replace(/(^\s*)|(\s*$)/g, "").length == 0) {
return false;
}
return true;
}
/*商品分类页*/
$(function($) {
$(".ect-category-all ul li .panel-body").click(function() {
if (!$(this).parent("li").has... |
var fos = require('filter-objects');
var _ = require('lodash');
function makeIsAuthorized(getAclRules, getAuthzdAclIds, propsToTest, defaultOptions) {
getMatchedRules = makeGetMatchedRulesFn(propsToTest, defaultOptions);
var ia = isAuthorized(getMatchedRules, getAclRules, getAuthzdAclIds);
return ia;
}
fun... |
"use strict";
import "../framework/math-extensions.js";
import { countInArray, partitionArray, shuffleArray } from "../framework/arrays.js";
import { contract } from "../framework/contract.js";
import { CardDefinition } from "./card-definition.js";
import { pickRandomCards } from "./card-util.js";
import { Card } fro... |
'use strict'
var React = require('react');
var {
Text,
View,
ListView,
ScrollView,
Navigator,
StyleSheet,
TouchableHighlight,
Image
} = require('react-native')
var Dimensions = require('../base/react-native-dimensions');
var {Link,History} = require('../base/react-native-router');
var Ta... |
import React, { useState, useEffect } from "react";
import Thumbnail from "./thumbnail";
import { Grid } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles({
root: {
flexGrow: 1,
marginBottom: '2em',
},
});
function Feed(props) {
const classes ... |
import React from 'react';
import {Text, View} from 'react-native';
import {ErrorTypes} from "../../errors";
import CardNumberInput from "./CardNumberInput";
import CardExpiryInput from "./CardExpiryInput";
import CardCVVInput from "./CardCVVInput";
const TextFields = {
CARD_NUMBER: 'CARD_NUMBER',
MONTH_YEAR: ... |
// Copyright (c) 2018 ml5
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/* ===
ml5 Example
PoseNet example using p5.js
ml5_simple_pong_better.js - modified by <NAME>
- 3/14 - improve bounce math and game over logic
- 3/15 - add score, fix bounce math again
=== */
let ... |
"use strict";
const Quill = require("quill");
const EventEmitter = require("eventemitter3");
/**
* Constructs an Editor (a thin wrapper around QuillJS)
* Should use the Builder to construct one of these
* @constructor
* @param {HTMLElement} targetEl - the DOM node that will be converted into the WYSIWYG edito... |
async function preia_date_server() {
const res = await fetch('http://localhost:3000/api/v1/memes')
return JSON.parse(await res.json())
}
function creazaRandTabel(dateRand) {
console.log(dateRand)
const rand = document.createElement('tr');
// adauga date
rand.innerHTML = `
<th class... |
var path = require( 'path' );
var Immutable = require( 'immutable' );
var store = require( './file-store' );
var Model = require( './model' );
/**
* Constructs a collection given a configuration object.
* @param config - an object containing the configuration parameters for this
* collection. It *MUST* contain... |
var padHeightWidth = 25;
var padHolderHeight;
var temp = -1;
var borderShape = 1; // 1 -> square || 0 -> circle
var borderVisible = 0; // 1 -> border is visible || 0 -> border is invisible
var colorArray = ['red', 'blue', 'yellow', 'violet', 'gray', 'green'];
var colorDic = {'red' : '#fc6041', 'yellow' : '#f1ff59', 'bl... |
import React, { useState, useEffect } from "react"
import { useDispatch } from "react-redux"
import {
Row, Col,
Form, FormGroup, Input, Button } from "reactstrap"
import Select from "react-select"
import { submitContinueLocation } from "../../../redux/booking/bookingRedux"
const stateData = [
{ value: "Al... |
const select = (element) => document.querySelector(element);
const selectAll = (element) => document.querySelectorAll(element);
let modalQtd = 1;
let modalKey;
let pizzas;
//GET CART BY SESSION STORAGE
localStorage.getItem("pizza_cart")
? (cart = JSON.parse(localStorage.getItem("pizza_cart")))
: (cart = []);
//LIST... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_... |
import { createSelector } from 'reselect';
import moment from 'moment';
import _isEqual from 'lodash/isEqual';
import _get from 'lodash/get';
import _camelCase from 'lodash/camelCase';
import { rhsmApiTypes } from '../../types/rhsmApiTypes';
import { reduxHelpers } from '../common/reduxHelpers';
/**
* Selector cache.... |
import axios from 'axios';
import moment from 'moment-timezone';
import sanitizeHtml from 'sanitize-html';
import { rrulestr } from 'rrule';
import { DateTime } from 'luxon';
const API_SECRET = process.env.REACT_APP_SECRET;
const API_URL = process.env.REACT_APP_SERVER;
export function makeTypes() {
return [
{
... |
function ispng(ar) {
return (ar[0] == 0x89 && ar[1] == 0x50 && ar[2] == 0x4E && ar[3] == 0x47);
}
function moretpdecstr(str) {
var enc = new TextEncoder('utf-8');
return moretpdec(enc.encode(str))
}
function moretpencstr(words) {
var dec = new TextDecoder('utf-8');
return dec.decode(moretpenc(words))
}
fu... |
import React from 'react';
import PropTypes from 'prop-types';
import qs from 'qs-lite';
import autoBind from 'react-autobind';
import { Grid, Row, Col } from 'react-bootstrap';
import { withRouter } from 'react-router';
import { compose } from 'react-apollo';
import { connect } from 'react-redux';
import { DebounceInp... |
//
// Login stuff
//
var loggedIn = false;
// Check for persisted login
if (Ti.App.Properties.getString('loggedIn')) {
loggedIn = true;
}
exports.isLoggedIn = function () {
return loggedIn;
};
exports.login = function(username, password, callback) {
if (username !== 'error') {
loggedIn = true;
... |
import modal from '../../components/main.js';
import config from '../../config/config.js';
import partnerAccess from './partner-access.js';
import view from './view-listing-review.js';
//Load purecloud and create the ApiClient Instance
const platformClient = require('platformClient');
const client = platformClient.Api... |
/**
* Copyright 2021 The Google Earth Engine Community 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... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import { useSelector, useDispatch } from 'react-redux';
import _, { omit, isEqual, extend, cloneDeep } from 'lodash';
import RulesEditor from './RulesEditor';
import RulesEditorToolbar from './RulesEditorToolbar';
import { fetchTemplate, fetch... |
import React, { Component } from 'react';
import axios from 'axios';
import { Chart, LineAdvance } from 'bizcharts';
import { demoMode as DEMO_MODE, demoData } from '../Demo';
import ItemChart from '../partials/ItemChart';
class Store extends Component {
constructor(props) {
super(props);
this.state = {
... |
// Define the colors
var color1 = '#007bff';
var color2 = '#dd5145';
var currentColor = color1;
// Keep track of the two datasets for CSP
var classA = [];
var classB = [];
// Keep track of two.js points for animation
var pointsA = [];
var pointsB = [];
// Toolbar
var color1btn = document.getElementById('color1btn');... |
import React from 'react'
import styled from 'styled-components';
import { StaticImage } from "gatsby-plugin-image";
const InformationFormSuccess = ({setFormStep, onHide }) => {
return(
<>
<Popup>
<Success>
<svg onClick={onHide} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http:... |
"use strict";
/*-----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
// tslint:disable-next-line
/// <reference pa... |
const core = require( '@actions/core' )
const github = require( '@actions/github' )
const { sliceInput } = require( './utils' )
async function handleGHIssues( useSubtaskMode, useEpicMode, DEBUG ) {
const actionPossible = [ "opened",
"edited",
... |
ko.bindingHandlers.chosen = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
var args = allBindingsAccessor().chosen;
var observableArray = args.options;
$(element).attr('data-placeholder', args.defaultText).addClass('chzn-select');
$(element).chosen({
... |
var Engine=Matter.Engine;
var World=Matter.World;
var Runner=Matter.Runner;
var Body=Matter.Bodies;
var Body_main=Matter.Body;
var boxes=[];
var world;
var engine;
var ground;
var Player;
var box_options;
var box_static_options;
var collision_detector_jump;
var collision_detector_lose;
var touch = false;
var rotateD... |
import React from 'react';
import PropTypes from 'prop-types';
import Table from '..';
import TableBody from '../../TableBody';
import TableCell from './Cell';
import TableRow from '../../TableRow';
import { withStyles } from '../../styles';
import ExSwitch from './ExSwitch';
import _ from 'lodash';
const styles = the... |
import {allProjects, setData, clearMemory} from '../index';
import {clearTasksDOM, renderTasks, createNewTask, addTaskFormExport} from './task';
import {
addNewProject,
deleteProject,
clearActiveProjects,
loadProjectHeader,
editProjectHeader,
loadEdit,
searchActive,
loadActive,
... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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... |
import * as dom from '../../core/dom';
import * as func from '../../core/func';
import { addHNav } from './element';
const ARTICLE_HNAV_CLASS = 'hnav';
const TEXT_NEXT = 'következő';
const TEXT_PREV = 'előző';
const TEXT_HIDE_ARTICLE_TITLE = 'Cikk kategória elrejtése';
const ANONYM_ARTICLE_AUTHOR_REGEXP = /[^(]+\( ([... |
const gulp = require('gulp');
/** To log like console.log().. */
var gutil = require('gulp-util');
/** del to remove dist directory */
const del = require('del');
/** load templates and styles in ng2 components */
var embedTemplates = require('gulp-inline-ng2-template');
/** TSLint checker */
const tslint = require... |
#!/usr/bin/env node
// @ts-nocheck
// Import packages:
const fs = require('fs-extra')
const createPackage = require('./resources/createPackage')
const createHTML = require('./resources/createHTML')
const createREADME = require('./resources/README.js')
const chalk = require('chalk')
const argv = require('yargs').argv
... |
// Copyright 2019 Google LLC
let elementsToShow;
let scroll;
let loggedIn;
const quotes =
["\"In a world too often governed by corruption and arrogance, it can be difficult to stay true to one's philosophical and literary principles.\" -<NAME>, A Series of Unfortunate Events", "\"Did you know that the Sparrow fl... |
function handle_graphs(plotType){
var dims= getDimensions();
let chosen_algs_names = getAlgorithms();
let div = {};
let nr_algs = chosen_algs_names.length;
let total_chosen = algorithms_chosen.length;
switch (dims.length) {
case 1:
div = create_dimension_div(dims, chosen_algs_names);
makeOn... |
var nextUID = 0;
if( !Object.getOwnPropertyDescriptors ){
Object.getOwnPropertyDescriptors = function( value ){
var o = {};
Object.getOwnPropertyNames(value)
.forEach(function(k){
o[k] = Object.getOwnPropertyDescriptor(value, k);
});
return o;
};
}
function getUID(){
return ++... |
import * as React from "react";
import { Grid, Row, Col } from "react-flexbox-grid";
import { Sun, Moon, Instagram, Twitter, GitHub, Linkedin } from "react-feather";
import Link from "next/link";
import { useRouter } from "next/router";
import { currentDayName } from "../utils/dateUtils";
import ElectronicFrontier fro... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
'use strict';
const msrest = require('ms-rest');
const adal = require('adal-node');
const Constants = msrest.Constants;
const AzureEnvironment = require('../az... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _UrlsRepository = _interopRequireDefault(require("../Repository/UrlsRepository"));
var _HtmlRepository = _interopRequireDefault(require("../Repository/HtmlRepository"));
var _Progress = _interopRequireDefaul... |
import {
html
} from 'htm/preact';
import {
useCallback,
useEffect,
useLayoutEffect,
useRef,
useState
} from 'preact/hooks';
import {
scrollIntoView,
sanitizeImageUrl
} from '../utils';
import {
ChangeMenuResult
} from '../common';
import {
isAny
} from 'bpmn-js/lib/util/ModelUtil';
import clsx... |
let newCity = "austin"
const apiKey = "11ae01be28641011b4eebb3bef71dd40"
const cities = JSON.parse(localStorage.getItem("Cities")) || ["Austin", "Houston", "San Antonio"];
$(document).ready(() => {
createButtons();
})
// Event listeners
document.getElementById("search").addEventListener("click", function () ... |
const express = require('express');
const app = express();
let games = {};
app.use(express.json());
app.use("/register/:code/:user", (req, res) => {
if (games[req.params.code] != undefined && games[req.params.code].users.length <= 2) {
console.log("Second player in game " + req.params.code);
games[req.para... |
'use strict';
/**
* Integration of rhases and get response.
* API DOC: http://apidocs.getresponse.com/pl/v3/resources/contacts
*/
import request from 'request';
import Q from 'q';
var logger = require('log4js').getLogger('transporter.getresponse');
import config from '../../config/environment';
var defaultHeade... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.