text stringlengths 3.22k 29.5k |
|---|
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {Checkbox, Button, Skeleton, Col, Row, Select, Spin, List, Descriptions, Card, Tag, Tooltip, Switch, Modal} from 'antd';
import {Maincontainer} from "../../lib/styled";
import {
LeftOutlined
} from '@ant-des... |
/*
Unit Module (UNIT).
Please define the following:
- UNIT_MAP = <object> of structure 'input_id' => ['list','of','unit','names']
- UNIT_PLACES = <integer> (number of places)
Please include the following in your onload script:
- UNIT_onload()
References the following entities:
- unit_select: a <select> element conta... |
// creating mobile menue elements
const div = document.createElement('div');
const content = document.createElement('div');
const closeBtn = document.createElement('a');
closeBtn.innerHTML = '×';
div.appendChild(closeBtn);
div.appendChild(content);
const icon = document.querySelector('#menu-icon');
let link = ... |
/**
*
* pvforecast adapter
*
*
*/
'use strict';
// you hav e to require the utils module and call adapter function
const schedule = require('node-schedule');
const utils = require('@iobroker/adapter-core');
const request = require('request')
const axios = require('axios');
var adapter = new utils.Adapter('... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React, { useState } from 'react';
import { Layout, Menu, Breadcrumb, Divider, InputNumber } from 'antd';
import { UserOutlined, LaptopOutlined, NotificationOutlined, UploadOutlined } from '@ant-design/icons';
import { Form, Input, Button, Checkbox, Row, Col, Upload, Radio, Select, DatePicker } from 'antd';
impor... |
import React, { useRef, useEffect, useState } from 'react';
import color from './color';
import Checkbox from '../checkbox';
const d3 = Object.assign({},
require('d3-selection'),
require('d3-force'),
require('d3-drag'),
);
Object.defineProperty(d3, 'event', { get: () => require('d3-selection').event });
... |
/**
* This module contains the method that builds an Ethereum transaction confirm and complete object.
*/
const misc_shared_lib = require('../public/javascripts/misc/misc-shared');
const common_routines = require("../common/common-routines");
const EthTransLifecycle = require('./ethereum-state-machine').EthTransLife... |
/* eslint react/no-danger: 0 */
/* eslint react/prop-types: 0 */
/* eslint no-plusplus: 0 */
/* eslint no-cond-assign: 0 */
/* eslint no-param-reassign: 0 */
import { arrayOf, func, object, number } from "prop-types";
import React from "react";
import styled, { keyframes } from "styled-components";
import {
Action,
... |
var url;
/**
* 页面初始化后做些东西
*/
$(document).ready(function(){
console.log('init');
// 当查询完数据之后绘制图表,图表的数据来源于datagrid
$('#dg').datagrid({
onLoadSuccess:function(data){
//要判断或者执行的代码
//console.log(data);
drawEcharts(data);
}
});
});
//通过让数据表格url为调用js方法,这样可以... |
/*
Copyright 2015, 2016 OpenMarket Ltd
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, sof... |
/**
* --------------------------------------
* Sophisticated Worker | Youtuberis.lt
* Designed to be updated with new release
* --------------------------------------
*/
const date = '30/11-18';
const cachePrefix = 'Youtuberis';
// Website/mandatory assets
const assetsCache = `${cachePrefix}::assets::${date}`;
... |
const faker = require('faker');
const db = require('./connection');
const { Employee, Client, Part, WorkOrder } = require('../models');
db.once('open', async () => {
await Employee.deleteMany({});
await Client.deleteMany({});
// create employee data
const employeeData = [];
for (let i = 0; i < ... |
import { getElementAnchors } from "components";
import { replaceComponentAnchor } from "./utils";
import { MODE_DRAG, MODE_SELECT } from "./interactionModes";
export const startDragging = (state, action) => {
const coordinatesToMove = [];
const adhesivePoints = [];
state.selection.forEach((selectedId) => {
... |
'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... |
const nodemailer = require('nodemailer');
const envConfig = require('./env.config');
/**email template for mailing */
const emailFormat = function () {
const emailTemplate = `<body style="font-family:Arial, Helvetica, sans-serif; margin:0; padding:0; background-color:#ffffff">
<center style="border:1px solid ... |
/**
* Created by sdl on 6/6/2014.
*/
var currentLevel = 1;
var heroBall = null;
var target = null;
var X1 = null,
X2 = null,
Y1 = null,
Y2 = null;
var ballReady = null,
heroOrigin = null,
heroOld = null,
heroOldSprite= null,
heroPoints =[],
vectorMade = null,
shotPo... |
// iVisDesigner - scripts/node/panorama.js
// Author: <NAME>
//
// LICENSE
//
// Copyright (c) 2014, The Regents of the University of California
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:... |
import React, { Component } from "react";
import { Platform, StatusBar, Alert, StyleSheet, SafeAreaView, ScrollView, Dimensions, View, FlatList, TouchableOpacity } from "react-native";
import {
Container,Header,Title,Content,Button, List, ListItem, Separator,
Icon,Left,Right,Body,Text, Thumbnail
} from "nati... |
/**
*
*/
function SelectType( type ) {
jQuery( "#stripe_field_group" ).slideUp();
jQuery( "#stripe_field_group input[type=\"text\"], #stripe_field_group select" ).val( "" );
jQuery( "#stripe_field_group input:checked" ).prop( "checked", false );
jQuery( document ).trigger( 'gfp_stripe_rule_select_type', type ... |
const bottleneck = require('bottleneck');
const { dim, green, red, yellow } = require('chalk');
const fs = require('fs');
let requestUnwrapped = require('request-promise-native');
const WebSocket = require('ws');
const config = require('./config');
const Gamemode = require('./gamemode');
const OSU_SERVER = 'https://os... |
/*eslint semi: ["error", "never"], no-console:0, no-nested-ternary:0 */
/*eslint no-unused-expressions: ["error", { "allowTernary": true }]*/
/*eslint-env node, es6 */
/**
* =====================================================================================================================
* Utilities for managing ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const fs = require("fs");
const configUtils = require("../configuration/configUtils");
const fsUtils = require("../fileSystem/fsUtils");
const child_process = require("child_process");
const stsTokenizer_1 = requi... |
const { Msg } = require('../utils/msgutils');
const { getmd5 } = require('../utils/nodeutils');
let G_CONFIG, DRIVE_MAP, oneCache, onepoint;
let _event;
const ajax_funcs = [];
//@flag 比较凌乱,以后再修改
exports.func = async (spConfig, cache, event) => {
let p2 = event.p2;
if (p2 == '/') return Msg.html(200, vue_html);... |
import React, { Fragment, useEffect, useState } from 'react';
import AppInput from '../AppInput/AppInput';
import DatePicker from '../DatePicker/DatePicker';
import PhoneNumber from '../PhoneNumber/PhoneNumber';
import RoundedChekBox from '../RoundedCheckBox/RoundedChekBox';
const errorTexts = [
'არასწორი ელ-ფოს... |
import React, {useState, useEffect} from 'react'
import {View, Text, ScrollView, Alert} from 'react-native'
import api from '../../api'
import styles from '../../page/styles/Appointment.styles'
import CustomPickerStyles from '../styles/CustomPickerStyles'
import CustomInputStyles from '../styles/CustomInputStyles'
impo... |
import AircraftMeshSet from './aircraft-mesh-set';
import animation from './animation';
import CarMeshSet from './car-mesh-set';
import configs from './configs';
import {clamp, colorToRGBArray, lerp} from './helpers';
import {isDarkBackground} from './helpers-mapbox';
import ThreeLayer from './three-layer';
import {Col... |
'use strict';
var section = document.getElementById('images');
var listOfItems = [];
var listOfImages = [
['Bag', '../assets/img/bag.jpg'],
['Banana', '../assets/img/banana.jpg'],
['Bathroom', '../assets/img/bathroom.jpg'],
['Boots', '../assets/img/boots.jpg'],
['Breakfast', '../assets/img/breakfast.jpg'],
... |
const {User, Message} = require('hubot');
const ChatTools = require('./../utils/chat-tools.js');
const Listener = require('./../listener.js');
const Logger = require('./../logger.js');
const PendingRequest = require('./../pending-request.js');
const Step = require('./../step.js');
// Class for defining questions
clas... |
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import Clear from 'mdi-react/CloseIcon';
import { useFilter } from '@react-aria/i18n';
import { FocusScope } from '@react-aria/focus';
import { useListState } from '@rea... |
/*
* =================================================================
*
* 01.02.18 <-- Date of Last Modification.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* -----------------------------------------------------------------
*
* **** Module : js-client/cofe.communication.js
* ~~~~~~~~~
... |
/* Project Cards */
const projectcards = document.querySelector(".projectcards");
// Array of object for projects
const projects = [
{
title: "Edumark.lk",
cardImage: "assets/images/project-page/edumarknew.PNG",
description: "This is an advanced realtime Full Stack React.JS project which won the Best Te... |
import React, { Fragment, Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles, Card, CardContent, Typography, Switch, FormControlLabel, Snackbar } from '@material-ui/core';
import axios from 'axios';
import { messaging } from '../component/firebase';
const ROOT_URL = 'notification-proxy';... |
import React from 'react';
import { useStaticQuery, graphql, Link } from 'gatsby';
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
import styled from 'styled-components';
import { Icon } from '@components/icons';
import DotUpTime from '../uptime';
const StyledProjectsGrid = styled.ul`
list-style: none;
... |
var p = [];
var pa = [];
entry()
$(document).ready(function() {
scaner ();
if($('#svg-1').length > 0){snapChart();checkSnapChart();}
if($('#am-cv-form').length > 0){cvForm();}
if (screen && screen.width > 768) {verticalScroll();}
events();
function scaner (){
$('.am-scaner-circle').drags();
}
f... |
// create Agora client
var client = AgoraRTC.createClient({ mode: "live", codec: "vp8" });
// RTM Global Vars
var isLoggedIn = false;
var localTracks = {
videoTrack: null,
audioTrack: null
};
var localTrackState = {
videoTrackEnabled: true,
audioTrackEnabled: true
}
// Hand raise state
var handRaise... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
//inject a matchRef, isRef, and a getRef function?
//could use the same pattern with objects.
//I don't really want to force __id__
//should be able to use anything, aslong as you
function shallowEqual (a, b) {
if(isObject(a)
&& isObject(b)
&& (a.__id__ == b.__id__ || a === b))
return true
... |
/** @jsx jsx */
import React, { useState } from "react" // eslint-disable-line no-unused-vars
import Helmet from "react-helmet"
import { graphql, Link, StaticQuery } from "gatsby"
import { navigate } from "@reach/router"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import {
faUserGraduate,
faHo... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardHeader from '@material-ui/core/CardHeader';
import CardContent from '@material-ui/core/CardContent';
import Typography from '@material-ui/core/Typography';
import { red } from '@materi... |
// Here is all the code that builds the list of objects on the right-hand
// side of the Labelme tool.
//
// The styles for this tools are defined inside:
// annotationTools/css/object_list.css
var IsHidingAllPolygons = false;
// This function creates and populates the list
function RenderObjectList() {
... |
/**
* @fileoverview Handle WebPageTest API
* @author <NAME>
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const Progress = require('progress')
let debug = require('debug')
const asy... |
import React, { useState } from 'react';
import { useDispatch } from 'react-redux';
import { useNavigate } from 'react-router-dom';
import { GoogleLogin } from 'react-google-login';
import { signin, signup } from '../../actions/auth';
import { AUTH } from '../../constants/actionTypes';
const initialState = { firstNam... |
'use strict';
//e.g,,, /member: 12 -> set room member max capacity.
const special_command =/^\/[a-z]*:(.*)$/;
const room_id = $('#get_data').data('string');
const websocket_url = '/chat_' + room_id;
const socket = io.connect(websocket_url);
function dispatcher (path, func) {
dispatcher.path_func = dispatcher.path... |
const consola = require('consola')
const leaderBoardsRefreshTime = 120 // Refresh every x minutes
let leaderBoardModes = {
// Modes that should be prefetched
nts: true,
race: true,
dd: true,
dl: true,
sh: true,
total: true,
rtf: true
}
leaderBoardModes = new Map(Object.entries(leaderBoardModes))
const ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGenerator3 = _interopRequireDef... |
var AIRTIME = (function(AIRTIME){
var mod;
if (AIRTIME.schedule === undefined) {
AIRTIME.schedule = {};
}
mod = AIRTIME.schedule;
return AIRTIME;
}(AIRTIME || {}));
var serverTimezoneOffset = 0;
function closeDialogCalendar(event, ui) {
$el = $(this);
$el.dialog... |
const async = require("async");
const {
stringToSqlTime,
} = require('../common.js')
module.exports = function(s,config){
const runQuery = async.queue(function(data, callback) {
s.databaseEngine
.raw(data.query,data.values)
.asCallback(callback)
}, 4);
const mergeQueryValues = fu... |
import axios from 'axios';
import { utils as _utils } from './utils.js';
import _msg from './msg.js';
var axiosInstance = axios.create({
// timeout: 1000 * 30
});
// request inject
axiosInstance.interceptors.request.use(function(config) {
// Do something before request is sent
config.headers.common['x-csrf-toke... |
//search plugin
$(document).on('click','.search',function(e){
e.preventDefault();
var search_field = $(this).data('search-field');
$(search_field).toggleClass('hidden');
$(search_field).children('input').focus();
});
$(document).on('keyup','.table-search',function(e){
e.preventDefault();
... |
'use strict'
const express = require('express')
const router = express.Router()
const Recipe = require('./recipe.model')
const Food = require('../food/module').model
const UnitTypes = require('../food/module').unitTypes
const wrapper = require('../response-wrapper')
const VLD = require('../request-validator')
const au... |
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
let log = msg => Components.classes['@mozilla.org/consoleservice;1'].
getService(Components.interfaces.nsIConsoleService).
logStringMessage(msg);
let chrome;
let httplsSh... |
import React, { useEffect, useState, useRef } from "react";
import { useDispatch, useSelector } from "react-redux";
import { connectWallet } from "../../redux/blockchain/blockchainActions";
import { fetchData } from "./../../redux/data/dataActions";
import * as s from "./../../styles/globalStyles";
import whitelistAddr... |
import { createGlobalStyle } from 'styled-components';
import { normalize } from 'polished';
import { fontFamily } from '../design/type';
import { primary, neutral, blue, red, yellow, teal } from '../design/color';
/*
* Global styles for the entire application via createGlobalStyle.
*/
const GlobalStyle = createGl... |
import React, { useState, useRef, useEffect} from 'react';
import classNames from "classnames";
// material
import {Tooltip, Box, Grid, Container, Typography, CssBaseline, Button, AppBar, Toolbar
, IconButton, TextField, Snackbar ,
Menu,
MenuItem,
Drawer, List, Slider, Divider, Avatar} from '@material-ui/core';
import ... |
import React, { Component } from 'react'
import { Card, Badge, Spinner, Image, Container, Row, Col, FormLabel, FormGroup, FormControl, Button, Form } from 'react-bootstrap';
import ReactImageZoom from 'react-image-zoom';
import StarRatingComponent from 'react-star-ratings';
import { image } from "../../image";
import A... |
var socket = io.connect(ADMIN_SERVER);
var SERVERS = [];
var statusLabelClass = {
online: "label-success",
stopped: "label-warning",
errored: "label-danger"
};
var myAlert = function(alertClass, content, timeout) {
var html = Mustache.to_html($("#my_alert").html(), {
class: alertClass,
... |
/* eslint-env es2020 */
'use strict';
const axios = require('axios').default;
const fs = require('fs');
const path = require('path');
const yaml = require('js-yaml');
const https = require('https');
const configFile = path.resolve(__dirname, '../config/_files.yml');
const apiURL = 'https://data.jsdelivr.com/v1/packa... |
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const util = require('util');
const readline = require('readline');
const program = require('commander');
const ejs = require('ejs');
const mkdirp = require('mkdirp');
const minimatch = require('minimatch');
const sortedObject = require('sort... |
function checkType(j) {
for(var i = 1; i <= 3; i++){
if(i == j){
$('.form-attribute-' + i).attr('style', "display:block");
}else{
$('.form-attribute-' + i).attr('style', "display:none");
}
}
}
/* комментарии */
function openAnswer(id, lvl) {
var newLvl = lvl ... |
/**
* @namespace Utils
* @memberOf Model
*/
/**
* Deep Object Comparison
* https://stackoverflow.com/questions/30476150/javascript-deep-comparison-recursively-objects-and-properties
*
* with optional ignored properties
* @param {{}} a
* @param {{}} b
* @param {string} [propsToIgnore]
* @return {boolean}
*/... |
import React, { useEffect, useState } from "react";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faAngleDown, faAngleUp , faArrowDown, faArrowUp , faEdit, faEllipsisH, faExternalLinkAlt, faEye, faTrashAlt } from '@fortawesome/free-solid-svg-icons';
import { faCheck, faTasks , faPlus , faCo... |
let valorTela = document.getElementById("telaEntrada");
let valorSaida = document.getElementById("telaSaida");
let calculo = 0;
let resultado;
let aux;
// Funções do menu mobile
function abreMenu() {
document.getElementById("menu-mobile").style.right = `${'0'}`
}
function fecharMenu() {
document.get... |
import { polyfill } from 'es6-promise';
import { browserHistory } from 'react-router';
import _ from 'lodash';
import ServiceUtil from '../../services/serviceUtil';
import { serverUrls } from '../../../server/controllers/apiAggregatorEndPoints';
import localeInfoUtil from '../../services/localeInfoUtil';
import { load... |
'use strict';
const { HttpClient } = require('@0xproject/connect');
const { BigNumber } = require('@0xproject/utils');
const { Web3Wrapper } = require('@0xproject/web3-wrapper');
const Exchange = require('./Exchange');
const TokenInfo = require('./TokenInfo');
class StandardRelayer extends Exchange {
constructo... |
$(document).ready(function(){
// if (window.location.href.indexOf("blog") > -1)
// $('html, body').prepend('<a href="#" class="back-to-top"></a>');
// $('a.back-to-top').click(function() {
// $('html, body').animate({
// scrollTop: 0
// }, 700);
// return false;
... |
function topUp() {
$(".fa-angle-up").addClass("topUp"), $(".fa-angle-up").removeClass("topUp2");
}
function topDn() {
$(".fa-angle-up").addClass("topUp2"), $(".fa-angle-up").removeClass("topUp");
}
function nextRight() {
$(".fa-angle-double-right").addClass("nextRight"),
$(".fa-angle-double-right").removeClas... |
// only left is touch event
// gotta work on them ASAP
class Editor extends HTMLElement {
ismadeChanges =false ;
selectioncolour = "rgb(65, 169, 201)";
selectedchild ;
allboxes = [] ;
fontSize ;
prevtouches = {pageX : 0
,pageY : 0
};
containerTouchRef ;
listner ;
backgr... |
import {InspectorControls, PanelColorSettings, useBlockProps} from '@wordpress/block-editor';
import {
AnglePickerControl,
Button,
ButtonGroup,
Panel,
PanelBody,
PanelRow,
RangeControl,
ResizableBox,
SelectControl,
TextControl,
ToggleControl
} from '@wordpress/components';
i... |
import ReactDOM from "react-dom";
import React, { Component } from "react";
import { BrowserRouter, Route } from "react-router-dom";
import "../public/css/style.css";
import noImage from "../public/img/NoProductImage_300.jpg";
// Main Component
class App extends Component {
constructor(props) {
super(props);
... |
var _readline = require('readline');
// Progress-Bar constructor
function Bar(opt, preset){
// options set ?
opt = opt || {};
// preset set ?
var options = preset || {};
// merge options - take precedence over preset
for (var attb in opt){
options[attb] = opt[attb];
}
// the ... |
import _ from 'lodash'
import BigNumber from 'bignumber.js'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import duration from 'dayjs/plugin/duration'
import numeral from 'numeral'
import moment from 'moment'
import { matchPath } from 'react-router'
import {
tokens,
networks,
a... |
let F = require('futil-js')
let _ = require('lodash/fp')
let publishDestroy = (model, id, req) => model._publishDestroy(id, req)
let publishCreate = (model, record, req) => model._publishCreate(record, req)
let publishUpdate = (model, id, record, req) => model._publishUpdate(id, record, req)
let hash = require('object-... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.readConfig = exports.route_methods = exports.ignore_Controllers = exports.classmap_file_path = exports.PACKAGE_NAME = exports.scrollToText = exports.saveAppURL = exports.getRouteFilePath = exports.app_url = exports.routes_contents = ex... |
import React, { useEffect, useRef, useState } from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, View, TextInput, Button, Text, FlatList, TouchableOpacity, Image } from 'react-native';
import * as SQLite from 'expo-sqlite';
import { StackActions } from '@react-navigation/native';
import * a... |
var app = angular.module('app', ['ui.router']);
app.run(['$state', function ($state) { }]);
app.config(function ($stateProvider) {
var anotherOneState = {
name: 'authfb',
url: '/authfb',
templateUrl: 'pages/auth-facebook.html'
}
$stateProvider.state(anotherOneState);
... |
/*
* 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 ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _stringify = require("babel-runtime/core-js/json/stringify");
var _stringify2 = _interopRequireDefault(_stringify);
var _keys = require("babel-runtime/core-js/object/keys");
var _keys2 = _interopRequireDefault(_keys);
function _int... |
import React from 'react'
import axios from 'axios'
import Paper from '@material-ui/core/Paper'
import TextField from '@material-ui/core/TextField'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemText from '@material-ui/core/ListItemText'
import ListItemSeconda... |
import {WebHelper} from "../../../components/Helpers/WebHelper.js";
import {AddToPersonalList} from "../AddToPersonalList.js";
import {ReviewItem} from "./Review/ReviewItem.js";
const webHelper = new WebHelper();
document.getElementById('src-ppl').addEventListener('keypress', function (ev) {
if (ev.keyCode === 13)... |
#!/usr/local/bin/node
/**
* @file application-log-standard.js
* @brief Standardised level names and console formatting.
* @author Anadian
* @copyright Copyright 2019 Canosw
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software... |
const crypto = require('crypto')
const util = require('util')
const fs = require('fs')
const ppump = util.promisify(require('pump'))
/**
* neocitiesLocalDiff returns an array of files to delete and update and some useful stats.
* @param {Array} neocitiesFiles Array of files returned from the neocities list api.
*... |
var options ={};
var scatter,map;
var charts =[scatter,map];
d3.queue()
.defer(d3.json,'data/Access_Elec_HAP_CO2.json')
.defer(d3.json,'data/countries.json')
.awaitAll(function (error, results) {
if (error) { throw error; }
scatter = new DirectedScatterPlot(results[0]);
scatter.update(results[0]);
... |
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css, keyframes } from 'styled-components';
import { LiveAnnouncer, useLiveAnnouncer } from './live-announcer';
import { UnstyledButton, Button } from './button';
import { Icon } from './icon';
import { Progress } from './progress';
import {... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button, Table, Form, Select, Input, Popconfirm } from 'antd';
import createApi from '../../api/list';
import styles from './index.less';
import { auctionCoinType, auctionOrderStatus } from '../../utils/map';
import { timestampToTi... |
/**
* Миграция из valaam-phonegap в phonegap
* @module data/db
*/
import { openDB, deleteDB, wrap, unwrap } from 'idb';
import { jsonSize } from '../utils/utils.js';
import {
format,
startOfYear,
endOfYear,
parse,
} from '../utils/date-utils.js';
import getDownloadItems from '../download/items.js';
import db fr... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.PureCouponInput = void 0;
var _regenerator = _interopRequireDefault(r... |
/*
* Book Leave request pop-up window.
*
* */
$(document).ready(function(){
$("select#company").change(function() {
UpdateSelector('employee');
})
$("select#company_id").change(function() {
UpdateSelector('department');
})
$('input.book-leave-from-input').datepicker(datepicker_default);
$('inp... |
import React, { Component } from 'react'
import './style.css'
import * as d3 from 'd3';
import { createID } from '../../utils/hash';
import { MAX_ZOOM, DEFAULT_TIME_FORMAT, DEFAULT_COLORS, TIMELINE_DATA_COLS } from '../../utils/const';
import moment from 'moment';
const defaultStrokeColors = DEFAULT_COLORS;
co... |
'use strict';
const fs = require('fs');
const Dry = require('./Dry');
class Template {
// Sets how strict the parser should be.
// :lax acts like liquid 2.5 and silently ignores malformed tags in most cases.
// :warn is the default and will give deprecation warnings when invalid syntax is used.
// :stri... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _asn1js = require("asn1js");
var asn1js = _interopRequireWildcard(_asn1js);
var _pvutils = require("pvutils");
var _pkijs = require("pkijs");
var _ATSHashIndex = require("./ATSHashIndex.js");
var _ATSHashIndex2 = _interopRequireDef... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
import { Howl } from 'howler'
import anime from 'animejs'
import { Errors, parseItem, parseCase } from '@/utils'
import sortBy from 'lodash-es/sortBy'
import uniqBy from 'lodash-es/uniqBy'
import shuffle from 'lodash-es/shuffle'
// import Inventory from '@/components/inventory'
// import Item from '@/components/item... |
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* 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 righ... |
import React, { useState, useEffect } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import moment from 'moment';
import Snackbar from '@material-ui/core/Snackbar';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/T... |
'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... |
const path = require("path");
const { tests, utils } = require("@iobroker/testing");
const { expect } = require("chai");
function delay(t, val) {
return new Promise(function(resolve) {
setTimeout(function() {
resolve(val);
}, t);
});
}
// Run unit tests - See https://github.com/ioBroker/testing for a detaile... |
Webcam.set({
width: 480,
height: 270,
dest_width: 1280,
dest_height: 720,
image_format: 'jpeg',
jpeg_quality: 90
});
var oriCanvas = document.createElement('canvas');
var final_width = Webcam.params.crop_width || Webcam.params.dest_width;
var final_height = Webcam.params.crop_height |... |
var NUM_OF_COLS=75;
var NUM_OF_ROWS=75;
var canvas_width=525;
var canvas_height=525;
var radius;
var cell_size;
var cells;
var cell_to_be_moved;
var cell_changed;
var population_type_1;
var population_type_2;
var running_time_in_seconds=600;
var frame_per_second=5;
var frame_number = 0;
var frame_interval;
var refreshI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.