text stringlengths 3.07k 16k |
|---|
import React from "react";
import cx from "classnames";
const XMLEditor = require("./XMLEditor").default;
const Tokens = require("./tokens").default;
const Modal = require("react-bootstrap/lib/Modal");
import i18n from "../../service/i18n";
import sys from "../../sys";
import uri from "../../util/uri";
import Icon ... |
import JSEncrypt from 'jsencrypt'
import Rails from './rails'
import { getOneTimeToken, tokenizeCreditCard, startPayment } from './api'
import threeDChallenge from './three-d-challenge'
import { validator, validateCVC, cardExpiryVal } from './card'
import { getCardData, setCardValue, showError, hideErrors, injectScript... |
/**
* Created by Administrator on 2017/2/8.
*/
var obj;
var objImg;
$(function () {
$(".btn-danger").click(function () {
var id = $(this).attr('id');
deleteAlert(id);
});
editplate();
$('#headpic1').click(function () {
$('#headpic').attr('src','/admin/images/jiahao.jpg');
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import React, { Component } from 'react'
import { Button, Dropdown, Form, Input, Table, Loader } from 'semantic-ui-react'
import '../../../Assets/Css/AdminTools/ManageUsers.css'
import { Link } from "react-router-dom"
import i18n from '../../../Component/i18n/i18n';
import Moment from 'moment';
export class ManagePets... |
const fs = require('fs')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin')
const TerserPlugin = require('terser-webpack-plugin')
const getClientEnvironment = require('../env')
const modules = require('../modules')
const paths = re... |
'use strict';
const BigNumber = require('bignumber.js');
const _ = require('lodash');
const logger = require('winston');
const twitter = require('./twitter');
const archive = require('./archive');
const utils = require('./utils');
const getUrlEntities = tweet => {
if (!tweet.entities.urls) return [];
return twee... |
/* 数据格式演示
var aqiSourceData = {
"北京": {
"2016-01-01": 10,
"2016-01-02": 10,
"2016-01-03": 10,
"2016-01-04": 10
}
};
*/
// 以下两个函数用于随机模拟生成测试数据
function getDateStr(dat) {
var y = dat.getFullYear();
var m = dat.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = dat.ge... |
import { Button } from '@mui/material';
import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom';
import styled from 'styled-components'
import { useAuthorization } from '../../hooks/useAuthorization';
import { SearchBar } from '../searchBar/SearchBar';
import hunky from '../../assets/hunk... |
/* <NAME>
11057777
Java Script with functions for main.js */
// update the bar chart
function updatebar(data1, country, year1, x, y, remove) {
// remove old chart
d3.selectAll(".yaxis").remove()
d3.selectAll(".bar").remove()
d3.selectAll(".xaxis").remove()
// append the x values and y values to lists
dataPi... |
import AbstractService from './AbstractService';
import Problem from '../models/Problem';
export class ProblemService extends AbstractService {
constructor(studentService) {
super({
baseURL: process.env.REACT_APP_PROBLEM_SVC_BASE_URL,
timeout: 10000,
tokenSupplier: studentService.currentToken
... |
import React from 'react'
import styled from 'styled-components'
import Helmet from 'react-helmet'
import Image from '../components/image-sm'
const SubscribeFormStyle = styled.div`
/* .email-octopus-form-wrapper { */
transition: transform 2s ease-in-out;
margin: 5rem auto;
max-width: 500px;
padding: 2rem 5re... |
'use strict';
const express = require('express');
const superagent = require('superagent');
const pg = require('pg');
const methodOverride = require('method-override');
require('dotenv').config();
const PORT = process.env.PORT;
const client = new pg.Client(process.env.DATABASE_URL);
client.connect();
client.on('err'... |
import React, { useState, useRef, useContext } from 'react';
import axios from 'axios';
import styled from 'styled-components';
import { Popup } from 'semantic-ui-react';
import colors from '../../styles/colors';
import AnalysisContext from '../Context/AnalysisContext';
import 'semantic-ui-css/semantic.min.css'
const ... |
import React, { useContext, useEffect, useRef, useState } from 'react';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.min.css';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCheckCircle, faExclamationCircle, faPlus } from '@fortawesome/f... |
import React from 'react'
import Layout from './../components/layout'
import './../oferta.css'
import infoImage from './../assets/info-img.png'
import aboutImage from './../assets/about-img.png'
import adr from './../assets/ADR.svg'
import automatyzacja from './../assets/automatyzacja.svg'
import elektromechanika from ... |
/**********************************************************************
French number parser
Author: <NAME>
Last edited: August 2014
**********************************************************************/
var numbers = {'seperator': '-', 'conjunction': 'et', '':'un', 'negative':'moins',
0:'zéro', 1:'un', 2:'deux', 3... |
import { useReducer, useState, useEffect, useRef } from "react"
import { ColoredButton } from "components/button"
import { SmallSpan, OnClickText } from "components/pretty-defaults"
import warning from "warning"
const warnUncontrolledToControlled = (componentName, controlPropName) =>
`\`${componentName}\` is chang... |
import React, { useState, useEffect, useCallback, useReducer } from 'react';
import { OpenfinApiHelpers } from 'stockflux-core';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Minichart from '../minichart/Minichart';
import Components from 'stockflux-components';
import { StockFlux... |
const puppeteer = require('puppeteer');
const systemEmail = '<EMAIL>';
const sleep = async delay => {
return new Promise(resolve => {
setTimeout(resolve, delay);
});
};
const waitForReload = async page => {
return new Promise(resolve => {
page.once('load', resolve);
});
};
/**
* Take... |
import React, { useEffect, useState, lazy } from "react";
import {
CBadge,
CCard,
CCardBody,
CCardHeader,
CCol,
CDataTable,
CRow,
CButton,
CCollapse,
CModal,
CModalBody,
CModalFooter,
} from "@coreui/react";
import {
loadInactiveUserList,
updateUser,
userDelete,
} from "... |
import { getSession } from 'next-auth/client'
import {
Badge,
Box,
Divider,
Flex,
Icon,
SimpleGrid,
Skeleton,
Spacer,
Spinner,
Stack,
Text,
} from '@chakra-ui/react'
import { ImUsers } from 'react-icons/im'
import { FaQuestionCircle } from 'react-icons/fa'
import { MdTimer } from 'react-icons/md'
... |
import React from 'react'
import { Button } from './Button.js'
import styled from 'styled-components'
import Colors from '../Colors'
import * as Mixins from '../Mixins'
import { media, mediaMin } from '../MediaQueries'
import { withTheme } from 'styled-components'
import * as t from '../Typography'
import { lighten, da... |
import React, { useEffect, useState } from "react";
import axios from "axios";
import Moment from "moment";
import "moment/locale/pt-br";
import Classnames from "classnames";
import { FiThumbsUp, FiYoutube } from "react-icons/fi";
import {
FaSortAmountDown,
FaSortAmountDownAlt,
FaSortAlphaDown,
FaSortAlphaUp,
}... |
var questionsContainer = document.querySelector("#questionsContainer");
var intro = document.querySelector("#intro");
var highScoreFormEl = document.querySelector("#highScoreForm");
var enterInitialsForm = document.querySelector("#enterInitialsForm ");
var initialsInput = document.querySelector("#enterInitials-text");
... |
var express = require('express');
var router = express.Router();
var pokedex = require('pokedex-promise-v2');
var dex = new pokedex();
var rawPokemonData = {
title: "Pokémon Details",
id: null,
name: null,
weight: null,
weightI: null,
height: null,
heightI: null,
exp: null,
typeList: {},
abilityList: {},
e... |
var width = document.body.clientWidth;
var height = document.body.clientHeight;
var canvas = document.getElementById('theCanvas');
var interaction_canvas = document.getElementById('interactionCanvas');
var param_names = {
realMin: "Minimum X",
realMax: "Maximum X",
imagMin: "Minimum Y",
imagMax: "Maxi... |
import React, { useState, useEffect } from 'react';
import { useParams, useHistory } from 'react-router-dom';
import { toast } from 'react-toastify';
import { FiArrowLeft } from 'react-icons/fi';
import { Formik, Form, Field } from 'formik';
import { format } from 'date-fns';
import * as Yup from 'yup';
import { FormC... |
import React from 'react';
import {StatusBar, StyleSheet, SafeAreaView, Text, Image, View, Dimensions, TextInput, Platform, TouchableOpacity} from 'react-native';
import DeviceInfo from 'react-native-device-info';
const screenWidth = Math.round(Dimensions.get('window').width);
const screenheight = Math.round(Dimension... |
import React, {Component} from "react"
import PropTypes from "prop-types"
import {whenSelectionChange,ACTION, dom} from "we-edit"
import {compose, shouldUpdate, setDisplayName} from "recompose"
import Shape from "../shape"
import Group from "../group"
import Movable from "./movable"
import Resizable from "./resizable"... |
$(document).ready(function() {
reset_sort_headers();
split_debug_onto_two_rows();
hide_all_errors();
$('.sortable').click(toggle_sort_states);
$('.results-table-row').click(function() {
$(this).next('tr.debug').toggle('fast');
$(this).children('.col-result').children('.hide_error').toggle();... |
// 7 Days Live Simulation
// Everyday you got 5 action point
// Everyday you smust do some actions: Eat, Study, Work
// The actions will cost action point and it will affect to your stamina, academic, and money
// Eat will cost 2 AP, reduce 300 money, add 50 stamina
// Study will cost 3 AP, reduce 500 money, redu... |
"use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
import { useEffect, useState } from "react";
import PropTypes from "prop-types";
import Card from "@mui/material/Card";
import Grid from "@mui/material/Grid";
import SuiBox from "components/SuiBox";
import SuiTypography from "components/SuiTypography";
import LoadingAnimation from "components/LoadingAnimation";
import ... |
/** @jsx jsx */
import { jsx, css } from '@emotion/core';
import {
forwardRef,
useImperativeHandle,
useCallback,
useRef,
useState,
Fragment,
useEffect
} from 'react';
import cn from 'classnames';
import { FiX } from 'react-icons/fi';
import useUpload from '../useUpload';
import { Button } from '../../Butt... |
import _ from 'lodash';
import math from 'mathjs';
import Vec2 from './vec2';
import opacityMixin from './graphics/opacity';
import { FilledCircle } from './graphics/circle';
import { combinations, intBounds, mulVec2 } from '../utils';
import {
SPOT_COL_DEF,
SPOT_COL_HLT,
SPOT_OPACITY_DEF,
} from '../conf... |
import {
WebGLRenderer,
PCFSoftShadowMap,
sRGBEncoding,
Scene,
SpotLight,
Object3D,
PerspectiveCamera,
HemisphereLight,
AmbientLight,
DoubleSide,
InstancedMesh,
Matrix4,
MeshBasicMaterial,
VideoTexture,
MeshStandardMaterial,
Vector3,
BoxBufferGeometry,
MeshNormalMaterial,
} from "../... |
import React, { useState } from "react";
import { useHistory, useParams } from "react-router-dom";
import {
Form as FormUI,
Button,
Container,
Row,
Col,
ButtonToolbar,
ToggleButtonGroup,
ToggleButton
} from "react-bootstrap";
import DatePicker from "react-datepicker";
import CurrencyInput from "react-cu... |
var gulp = require('gulp'),
usemin = require('gulp-usemin'),
wrap = require('gulp-wrap'),
connect = require('gulp-connect'),
watch = require('gulp-watch'),
minifyCss = require('gulp-cssnano'),
minifyJs = require('gulp-uglify'),
concat = require('gulp-concat'),
sourcemaps = require('gulp-sou... |
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i &... |
// PREMIERE ETAPE : Definition des variables globales utilisées par d3 pour le rendu
// et par d'autres functions dans le code
// A ENLEVER A TERME
var paris = [2.35, 48.85];
var lyon = [4.85, 45.75];
// var marseille = [Longitudebis[6], Latitudebis[6]];
var toulouse = [1.44, 43.60];
var cc = [paris, lyon, tou... |
let domain = "https://ISI-IntegratedApp.joaoguedes01.repl.co/api"
window.onload=() => {
renderPromocoes();
}
let tblPromocoes = document.getElementById("tblPromocoes");
const renderPromocoes = async () => {
//verificar data
var today = new Date();
var dd = String(today.getDate()).padStart(2,... |
import React, {Component} from 'react';
import {Switch, InputItem, Radio, List, Button} from 'antd-mobile';
import {HuePicker} from 'react-color';
import './App.css';
import domtoimage from 'dom-to-image-more';
import GIF from 'gif.js';
//import html2canvas from 'html2canvas';
const RadioItem = Radio.RadioItem;
let s... |
import React, { Component } from 'react'
import {
Platform,
TouchableHighlight,
StyleSheet,
Image,
Text,
View,
ListView,
RefreshControl} from 'react-native';
import Parse from 'parse/react-native';
import Auth from '../helpers/Auth';
import Icon from 'react-native-vector-icons/MaterialIcons';
import Ge... |
/*
TAREA-1 CLASE 6: Empezar preguntando cuánta gente hay en el grupo familiar.
Crear tantos inputs+labels como gente haya para completar la edad de cada integrante.
Al hacer click en "calculate", mostrar en un elemento pre-existente la mayor edad, la menor edad y el promedio del grupo familiar.
Punto bonus: Crear un b... |
/*
TCP=>TLS tunnel with HTTP-proxy interface.
(c) <NAME> https://github.com/Antonius-S
License MIT
*/
'use strict';
const tls = require('tls');
const http = require('http');
const common = require('_http_common');
// ~~ Globals ~~
const config =
{
listenPort: '8443'
};
const log =
{
trace: (msg) => conso... |
import { vh, vw } from 'react-native-expo-viewport-units'
import {Text, View, TextInput, TouchableHighlight, Clipboard, Alert } from 'react-native'
import Card from './card'
import React, { Component } from "react"
import EStyleSheet from 'react-native-extended-stylesheet'
import GS from './globalStyle'
import Icon fro... |
'use strict';
var setCheckbox = function(checkboxElement, value) {
// Ensure a checkbox element will be either checked (true) or unchecked (false), regardless of what its current value is
checkboxElement.isSelected().then(function(checked) {
if (checked != value) {
checkboxElement.click();
};
});
}... |
var $ = require('gulp-load-plugins')(),
gulp = require('gulp'),
plumber = require('gulp-plumber'),
runSequence = require('run-sequence'),
browserSync = require('browser-sync').create(),
del = require('del'),
fs = require('fs'),
pug = require('pug'),
sass = require('gulp-sass'),
changed = require('gulp... |
var Trellis = require('../index.js'),
should = require('should'),
sinon = require('sinon'),
tessl_mock,
MockI2C,
spies = {};
/**
* A mocked-out implementation of the I2C 'class' available on the tessel port
*/
MockI2C = function(addr) {
this.send = function(buf, cb){
if (cb) {
cb();
... |
const inquirer = require("inquirer");
const db = require('./db/connection');
const cTable = require("console.table");
const promptUser = () => {
inquirer
.prompt([
{
type: 'list',
name: 'selectAction',
message: "What would you like to do?",
... |
#! /usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*---------------------------------------------------... |
import React, {useEffect, useMemo, useRef, useState} from 'react'
import PropTypes from 'prop-types';
import ColorHash from "color-hash";
const hash = new ColorHash({lightness: [0.35, 0.5, 0.65]})
const hexToRgb = (colour) => {
const hex = colour.replace(/#/, '');
const r = parseInt(hex.substr(0, 2), 16);
const... |
import React,{useEffect,useState}from 'react';
import { makeStyles } from '@material-ui/core/styles';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import Divider from '@material-ui/core/Divider';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemS... |
/* --------------------------
/* Author : <NAME>
/* Github : github.com/rhendz
/* ------------------------*/
// Parameters for programming the rocks
var rparams = {
number: 10,
color: ["#4f5b66"], // Type in hex values
size: {
min: 20,
max: 30
},
speed: {
x: 5,
y... |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import QueueAnim from 'rc-queue-anim';
import httpManager from '../API/httpManager';
import hitokotoDriver from '../API/hitokotoDriver';
import indexedDBManager from '../API/IndexedDBManager';
import showNotification from '../API/showNotificati... |
const infoName = document.querySelector('.name')
const infoWeight = document.querySelector('.weight')
const infoHeight = document.querySelector('.height')
let infoType = document.querySelector('.type-list')
const infoImg = document.querySelector('.info-image')
const morePokemonsList = document.querySelector('.pokemons-... |
/**
* Created by lihui on 14-7-31.
*/
var Mock = require('mockjs');
var $ = require('jquery');
module.exports = function() {
// 格式化 除去数组中的注释 只保留第一个
var remarkFormat = function(json,isFrist){
var _reJson = {};
//加上这句,不然会把[]变成{}
if(angular.isArray(json)){
_reJson = [];
... |
import _ from "lodash"
import { vendor } from "postcss"
import {
report,
ruleMessages,
cssPropertyIsVariable,
validateOptions,
} from "../../utils"
export const ruleName = "rule-properties-order"
export const messages = ruleMessages(ruleName, {
expected: (first, second) => `Expected property "${first}" to c... |
/**
*
* AddPermissionGroupForm
*
*/
import React from 'react';
import 'react-dual-listbox/lib/react-dual-listbox.css';
import { Form, Formik } from 'formik';
import { FormattedMessage } from 'react-intl';
import { Cell, Grid } from 'styled-css-grid';
import yup from 'yup';
import merge from 'lodash/merge';
import ... |
import Vue from 'vue'
import Router from 'vue-router'
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading
Vue.use(Router)
/* Layout... |
/*
=== Part of WFTools ===
MIT License
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, di... |
console.log("Hello, Welcome to JS");
var number = 5; // in-line comment
/* this is a
multi-line
comment */
number = 9;
/* Data types and variables :
undefined - not defined yet,
null - nothing,
boolean - true or false,
string - collection of strings,
symbol,
number - a numeric value,
and object - a real worl... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Button = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descripto... |
/**
* Checker.js This object is validating the request, based on the instruction of the steps and scenario
*/
var logger = require('./logger.js');
var _path = require('path');
var fs = require('fs');
var __context = {};
/**
* Context propagation, this method is receiving the context of the shoot
*
* @param {Objec... |
property = document.getElementsByClassName("property");
for (i = 0; i < property.length; i++) {
property[i].onkeyup = (e) => {
if (e.key == 'Enter')
e.target.blur();
}
}
for (i = 0; i < property.length; i++) {
property[i].onmousedown = (e) =>
doFunc("property", currentObject, [... |
/**
* Copyright 2020 IBM Corp. 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 applica... |
var fs = require("fs");
var parinferTest = require("../../test.js");
//------------------------------------------------------------------------------
// Result Data
//------------------------------------------------------------------------------
function getInitialResult() {
var result = {
cases: [],
currLa... |
// MODULES //
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import Card from 'react-bootstrap/Card';
import Button from 'react-bootstrap/Button';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import CheckboxInput from '@isle-project/components/input/checkb... |
/*
* @Author: SongShuhang
* @Date: 2020-05-18 10:26:35
* @Last Modified by: SongShuhang
* @Last Modified time: 2020-05-24 09:26:11
*/
require('./index.css');
require('page/common/header/index.js');
var _store = require('util/store.js');
var nav = require('page/common/nav/index.js');
var _cart =... |
var timespan = require('./lib/timespan');
var jws = require('jws');
var includes = require('lodash.includes');
var isBoolean = require('lodash.isboolean');
var isInteger = require('lodash.isinteger');
var isNumber = require('lodash.isnumber');
var isPlainObject = require('lodash.isplainobject');
var isString = require(... |
import React, { Component } from 'react';
import {connect} from 'react-redux';
import { handleAddAnswer } from "../actions/shared";
import { Grid, Row, Col } from 'react-flexbox-grid';
import { Link, withRouter } from "react-router-dom"
import NoMatch from "./NoMatch"
const CONST_UNANSWERED = "CONST_UNANSWERED";
const ... |
"use strict";
/**
* Created by Jesn on 2019/3/12.
* Redis 数据缓存处理
*/
const Redis = require('ioredis'),
crypto = require('crypto'),
Err = require('../tool/error'),
Ut = require('../tool/utils'),
Etc = Ut.getEtc(),
DbConfig = Etc.redis;
class RedisClass {
constructor() {
if(!DbConfig) ... |
import React from "react"
import Modal from "react-modal"
import Helmet from "react-helmet"
import { SkipNavLink } from "@reach/skip-nav"
import MdClose from "react-icons/lib/md/close"
import { navigate, PageRenderer } from "gatsby"
import presets, { colors } from "../utils/presets"
import Banner from "../components/ba... |
const {createBluetooth} = require('node-ble');
const getToken = require('./cryptor');
const AppServiceUuid = '79ab0000-9dfa-4ae2-bd46-ac69d9fdd743';
const AppServiceStatusUuid = '79ab0001-9dfa-4ae2-bd46-ac69d9fdd743';
const AppBatteryStatusUuid = '79ab0002-9dfa-4ae2-bd46-ac69d9fdd743';
const Contr... |
'use strict';
const fs = require('fs');
const path = require('path');
const promisedHandlebars = require('promised-handlebars');
const HandlebarsAsync = promisedHandlebars(require('handlebars'));
const Handlebars = require('handlebars');
const handlebarsWax = require('handlebars-wax');
const addressFormat = require('a... |
import { h, getCurrentInstance, computed } from 'vue'
import useEvents from './events-helper'
import useStyles from './styles-helper'
import { arrayFindIndex } from '../../../../src/utils/util'
import { getRowIdentity } from '../util'
function useRender(props) {
const instance = getCurrentInstance()
const parent =... |
/*
* Copyright 2020 Unisys 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... |
'use strict';
var zoom = require('../components');
var game = require('./game');
var print = require('./print');
var level = require('./level');
var score = require('./score');
var documentation = require('./documentation');
var insert = require('./insert');
var title = require('./title');
var start = require('./start... |
/**
* @file slider.js
*/
import Component from '../component.js';
import * as Dom from '../utils/dom.js';
import assign from 'object.assign';
/**
* The base functionality for sliders like the volume bar and seek bar
*
* @param {Player|Object} player
* @param {Object=} options
* @extends Component
* @class Slid... |
import React, { useEffect, useState } from 'react';
import { Calendar, Views, momentLocalizer } from 'react-big-calendar';
import moment from 'moment';
import Button from '@material-ui/core/Button';
import Grid from '@material-ui/core/Grid';
import AddOutlinedIcon from '@material-ui/icons/AddOutlined';
import NewEve... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var varint = require('varint');
var cid = require('multiformats/cid');
var Digest = require('multiformats/hashes/digest');
var dagCbor = require('@ipld/dag-cbor');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'd... |
/**
* @class SubtitleStreamController
*/
import Event from '../events';
import { logger } from '../utils/logger';
import Decrypter from '../crypt/decrypter';
import { BufferHelper } from '../utils/buffer-helper';
import { findFragmentByPDT, findFragmentByPTS } from './fragment-finders';
import { FragmentState } from... |
const { CommandContext, EventListener, MiscUtils } = require('../')
const { SwitchbladePlayerManager } = require('../music')
const fetch = require('node-fetch')
const EmojiLoader = require('../loaders/EmojiLoader.js')
const PRESENCE_INTERVAL = 60 * 1000 // 1 minute
module.exports = class MainListener extends EventLi... |
var game = {
/**
* Initialize the application
*/
onload: function() {
// Initialize the video.
if (!me.video.init(640, 480, {wrapper : "screen", scale : 'auto'})) {
alert("Your browser does not support HTML5 canvas.");
return;
}
... |
'use strict';
const _ = require('underscore');
const extend = _.extend;
const moment = require('abacus-moment');
const request = require('abacus-request');
const jwt = require('jsonwebtoken');
// Mock the cluster module
const cluster = require('abacus-cluster');
require.cache[require.resolve('abacus-cluster')].expor... |
"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 ... |
// Constants
const enemy_speed = 10;
const player_speed = 20;
const NUM_PARTICLES = 5;
const PARTICLE_SPEED = 5;
const PARTICLE_ACCELERATION = 10;
// Globals
var score = 0;
var enemies, target, player;
var particles;
let game_state = "Launch";
var key = {
left: false,
up: false,
right: false,
down: false
};
// ... |
import _extends from 'babel-runtime/helpers/extends';
import PropTypes from '../../_util/vue-types';
import classNames from 'classnames';
import ColGroup from './ColGroup';
import TableHeader from './TableHeader';
import TableRow from './TableRow';
import ExpandableRow from './ExpandableRow';
import { mergeProps } fro... |
const api = new Api({ endpoint: config.url, hash: config.hash });
let apidata = []
let pz = null
function getNested(arr, parent) {
let out = []
for (var i in arr) {
if (arr[i].bound_with == parent) {
const related = getNested(arr, arr[i].id)
const children = related.filter(r => r.bound_is === 'chi... |
import React, { Component } from "react";
import { Field, reduxForm } from "redux-form";
import GenericForm from '../../generics/form';
import { fetchEstados, fetchPartidos } from "../../../actions";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
import { RadioButton } from 'material-u... |
'use strict'
/**
* Lightweight web framework for your serverless applications
* @author <NAME> <<EMAIL>>
* @license MIT
*/
const QS = require('querystring') // Require the querystring library
const crypto = require('crypto') // Require Node.js crypto library
const { FileError } = require('./errors') // Require cu... |
$(function () {
dataTable();
countCart();
$(document).ready(function(){
let id = 1;
productByCate(id);
});
$(".category-item, .header__search-menu-item").click(function () {
id = $(this).data("id");
productByCate(id);
});
$("#search").keyup(function () {
... |
var charPic;
var prodPic;
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#char_pic')
.attr('src', e.target.result)
.width(150)
.height(150);
};
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.run = run;
exports.buildArgv = void 0;
function path() {
const data = _interopRequireWildcard(require('path'));
path = function() {
return data;
};
return data;
}
function _jestUtil() {
const data = require('jest-u... |
$(function(){
showCalender();
showTodayWeather();
showTimelineWeather();
setInterval(showCalender, 1000);
setInterval(showTodayWeather, 1000 * 60 * 60);
setInterval(showTimelineWeather, 1000 * 60 * 60);
/* for debug */
$('#btnReload').click(function(){
location.reload();
})
});
// GET YOUR ... |
// Copyright IBM Corp. 2017,2020. All Rights Reserved.
// Node module: @loopback/cli
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
const _ = require('lodash');
const ArtifactGenerator = require('../../lib/artifact-generator');
const debug... |
/**
* @file 字形编辑器
* @author mengke01(<EMAIL>)
*/
import editorFactory from 'editor/main';
import editorOptions from 'editor/options';
import settingSupport from '../dialog/support';
import program from './program';
import lang from 'common/lang';
// 支持的命令列表
const COMMAND_SUPPORT = {
// 形状组
shapes: [
... |
import React, {Component} from 'react';
import TextTruncate from './TextTruncate';
export class App extends Component {
constructor(props) {
super(props);
this.state = {
text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'... |
'use strict';
var config = require('../config.js');
var configUser = require('../config/specific/user_template_columns.js');
var helper = require('../config/helpers/helper.js');
var msgConfig = require('../config/global/messages.js');
function handlePOST (req, res) {
// Do something with the PUT request
res.sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.