text stringlengths 3.07k 16k |
|---|
const default_device = "Nitrokey FIDO2";
const known_certs_hashed = {
"Nitrokey FIDO2": "<KEY>",
"Nitrokey FIDO2 2.0": "<KEY>",
"Nitrokey FIDO2 Development": "<KEY>",
};
const known_pubkey_hashed = {
"Nitrokey FIDO2": "6910be885991e4c8776020e946e991474e2805db52445de99fb9c74dc54c8d... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import log from 'logger';
import {
toggleInputDisabled,
changeInputFieldHint,
sendPOData,
deletePopupMessage,
cancelPO
} from 'actions';
import { withStyles } from '@material-ui/core/styles';
import MuiDialogTitle from '@materi... |
'use strict';
let searchPlace = 'Amsterdam',
content = '',
limitResult = 10,
records = '',
radius = 500,
maxRadius = 800,
minRadius = 500,
place = [],
radiusTemplate = '',
resultTemplate = '',
version = '0.0.1 beta';
(function init() {
fetchData();
initData();
userLo... |
// From issue: https://github.com/EnCiv/undebate-ssp/issues/7
import React, { useEffect, useState, useRef } from 'react'
import { createUseStyles } from 'react-jss'
import Calendar from 'react-calendar'
import { SvgCalendar } from './lib/svg'
import 'react-calendar/dist/Calendar.css'
const splitDate = mdy => {
co... |
import React from "react";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import { debounce } from "throttle-debounce";
import { matchSorter } from "match-sorter";
import TextField from "@material-ui/core/TextField";
import TablePagination from "@material-ui/core/TablePagination";
import IconButton fr... |
import React, { useState, useEffect } from "react";
import Header from "../../../components/Header";
import NoticesCard from "../../../components/NoticesCard";
import { MyCardLink, MyFilteredOptions, MySideCardLink, Page, MyCardMap } from "../../../styles/default";
import imgTest from "../../../assets/icon.svg";
impor... |
const socket = io('/');
const offsetDisplay = document.querySelector("#offset-display");
const videoTitle = document.querySelector('.title .video-title');
const videoAuthor = document.querySelector('.title .video-author');
const searchButton = document.querySelector('#searchButton');
const searchBar = document.q... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
import Adapters from 'next-auth/adapters'
import prisma from '../../../api/models'
import nodemailer from 'nodemailer'
export default (req, res) => NextAuth(req, res, options)
const options = {
callbacks: {
/**
* @param {object} ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* Forum */
const forumTable = document.querySelector('#forum-posts');
const textForm = document.querySelector('#text-form');
const sortForm = document.querySelector('#sort');
/* Pagination */
const pages = document.querySelector('#pagination');
// neues Thema
textForm.addEventListener('submit', (e) => {
e.preven... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
// window.baseUrl+ 'http://127.0.0.1:8000'... |
var database = require("./database.js");
var onlineUserSenders = {};
var onlineUsers = {};
module.exports = function(socket,io){
function setUser(userId,name){
onlineUserSenders[userId] = {
sendMessage: (text,sender,groupId) => {
if (groupId === undefined){
socket.... |
/*
* #%L
* metasfresh-e2e
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later vers... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/*
Helper functions for the embedded graph colors
*/
import * as d3 from "d3";
import { interpolateRainbow, interpolateCool } from "d3-scale-chromatic";
import memoize from "memoize-one";
import * as globals from "../../globals";
import parseRGB from "../parseRGB";
import { range } from "../range";
/*
given a color mo... |
require('module-alias/register')
const config = require('config');
const HDWalletProvider = require("@truffle/hdwallet-provider");
const { getPostPrice,
getRootAddress } = require('@lib/ghostAdminApi');
const mnemonic = config.get('passphrase');
const Web3 = require('web3');
let provider = new HDWalletProvider(... |
function rollup(data, dimension) {
var counts = dvl().name('counts');
var values = dvl().name('values');
dvl.register({
listen: [data, dimension],
change: [counts, values],
fn: function() {
var _data = data.get();
var _dimension = dimension.get();
if (_data == null || _dimension ==... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import { Button, Row, Col, Card } from 'antd';
import DescriptionList from '@/components/DescriptionList';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { formatMessage, FormattedMessage } from 'umi/locale';
imp... |
/* FIXME eslint-disable is added to make the eslint pass for deploy. Too much clean up to do to fix this tech debt */
/* eslint-disable react/prop-types */
import * as React from 'react';
import { compose } from 'recompose';
import { injectState } from 'freactal';
import isObject from 'lodash/isObject';
import FilterI... |
import React from "react";
// import "jquery-slimscroll/jquery.slimscroll.min";
import { Redirect } from "react-router-dom";
import Moment from "moment";
import MasterForm from "../../../views/Masters/Form";
// core components
import IconButton from "@material-ui/core/IconButton";
import Avatar from "@materi... |
"use strict";
window.onload = function () {
updateIframe();
setInterval(updateIframe, 15000);
};
var data = {};
var currentStreamName = "";
/**
* Updates webpage on a 15s interval if a new best stream is determined.
*/
function updateIframe() {
var pin = document.getElementById("buttonPin").value;
if (pin ... |
import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"
import { connect } from "react-redux"
import WPCampusLogo from "../svg/logo"
import { SearchForm } from "../components/search"
import { LogoutLink } from "../utils/auth"
import { isBrowser } from "../utils/utilities"
import ava... |
const mark = require('@discordjs/builders');
const languageData = {
// PING: (ms) => `Pong! Bot's latency: ${ms}ms`,
NO_COMMAND: "This command doesn' seem to exist",
ONLY_OWNER: "Only the owner of this bot cant execute this command",
ADD_DATABASE: "This guild was not in our database. We have now added ... |
var margin = {top: 50, right: 0, bottom: 0, left: 0},
width = 550 - margin.right - margin.left,
height = 500 - margin.top - margin.bottom;
var i = 0;
var tree = d3.layout.tree()
.size([height, width]);
var svg = d3.select("#viz").append("svg")
.attr("width", width + margin.right + margin.left)
... |
var width = 300;
var arcSize = (6 * width / 100);
var innerRadius = arcSize * 3;
function allresidential_gauge(datapercent) {
var oldsvg = d3.selectAll('svg').remove();
var svg = d3.select('#result').append('svg').attr('width', width).attr('height', width);
var data = [
{value: da... |
import React from 'react'
import { Link } from 'react-router-dom'
import axios from 'axios'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import CreateButton from './CreateButton'
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
import ItemManagerContractJSON from '../../cont... |
/*
*
* Javascript Terminal (JST)
* Created By Davenchy And Some ♥
* Tools Version 4.5
*
*/
// Material Colors
var Color = {
"Red": "#F44336",
"Pink": "#E91E63",
"Purple": "#9C27B0",
"Indigo": "#3F51B5",
"Blue": "#2196F3",
"LightBlue": "#03A9F4",
"Teal": "#009688",
... |
import React, { Component } from 'react';
import { observer } from "mobx-react";
import { store } from "../../../data/store.js";
import { randomId } from "../../../models/models.js";
export const LoadSaveModal = observer(class LoadSaveModal extends Component {
selectedSongTitle = '';
selectedSongId = '';
b... |
import "./style.scss";
import jQuery from 'jquery';
//import * as cb from './js/jquery.colorbox';
let winW;
let tb;
function getWidth() {
winW = window.innerWidth;
tb = 768;
}
getWidth();
////mvのアクション
let gStages = document.querySelector('.p-gStages');
if (gStages) {
mvAction();
}
function mvAction() {
gStag... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { Dropdown, Icon, Button } from 'semantic-ui-react'
import PropTypes from 'prop-types'
import { withRouter, Link } from 'react-router-dom'
import * as moment from 'moment'
import qs from 'query-string'
import { changeSelectedUser, ch... |
var bkg = chrome.extension.getBackgroundPage();
var current = 'HackerNews';
function reloadTab() {
chrome.extension.sendMessage({requestTab: true} , function(response) {
if (response.currentTab == 'HackerNews') {
getHackerNews();
} else if (response.currentTab == 'Reddit') {
getReddit();
} el... |
import boxen from "boxen";
import chalk from "chalk";
import execa from "execa";
import fs from "fs";
import kebabCase from "just-kebab-case";
import Listr from "listr";
import ncp from "ncp";
import path from "path";
import { projectInstall } from "pkg-install";
import { promisify } from "util";
import shelljs from "s... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import get from "lodash/get";
import { withStyles } from '@material-ui/core/styles';
import Typography from "@material-ui/core/Typography";
import AdvancedSearchIcon from '@material-ui/icons/LineWeight';
import Popover from "@material-ui/... |
/*
* Copyright (C) 2020 con terra GmbH (<EMAIL>)
*
* 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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var RangedFilter_1 = require("./RangedFilter");
var ChildrenNode_1 = require("../../snap/ChildrenNode");
var Node_1 = require("../../snap/Node");
var util_1 = require("@firebase/util");
var Change_1 = require("../Change");
var LimitedFilter ... |
'use strict';
var connect = require('connect');
var io = require('socket.io-client');
var crypto = require('crypto');
var util = require('util');
var winston = require('winston');
var logger = new winston.Logger({
transports: [ new winston.transports.Console({ level: 'info' }) ],
levels: { silly: 0, debug: 1, verbo... |
import DocumentTitle from 'components/shared/DocumentTitle';
import ClusterStatus from 'Home/ClusterStatus';
import { relativeDate } from 'lib/helpers';
import RoutePath from 'lib/routePath';
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { bindActionCr... |
'use strict';
if (!Cache.prototype.add) {
Cache.prototype.add = function add(request) {
return this.addAll([request]);
};
}
if (!Cache.prototype.addAll) {
Cache.prototype.addAll = function addAll(requests) {
var cache = this;
// Since DOMExceptions are not constructable:
function NetworkError(m... |
const Nightmare = require('nightmare')
const nightmare = Nightmare({
show: true,
})
var config = {
"username": "Taken from Input",
"password": "<PASSWORD>",
"linkedin": "https://www.linkedin.com/",
"searchUrl": "https://www.linkedin.com/search/results/people/?keywords=",
"query": "Taken from Input",
"sea... |
addEvent(window, 'load', initForm);
var highlight_array = new Array();
function initForm(){
browserDetect();
initializeFocus();
ifInstructs();
showRangeCounters();
initAutoResize();
checkPaypal();
checkMechanicalTurk();
}
// for radio and checkboxes, they have to be cleared manually, so they are... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createNodelist;
Object.defineProperty(exports, "TAGNAME_COMMENT", {
enumerable: true,
get: function () {
return _core().TAGNAME_COMMENT;
}
});
exports.SAMELESS = exports.CLOSER = exports.OPENER = void 0;
functio... |
import Cesium from '@/cesiumUtils/cesium'
import getPath from '@/cesiumUtils/aircraftPath'
import DrawLines from '@/cesiumUtils/drawLinesOld'
import ImportModel from '@/cesiumUtils/importModelOld'
const baseObj = {}
const radarObj = {}
const viewPosition = [98.5, 25.2]
let planeModel
let traceEntities = []
let thisL... |
//get all elements with class and get the biggest box
function get_biggest(elements){
var biggest_height = 0;
for ( var i = 0; i < elements.length ; i++ ){
var element_height = $(elements[i]).height();
//compare the height, if bigger, assign to variable
if(element_height > biggest_height ) biggest_height ... |
'use strict';
/**
* Module dependencies
*/
var path = require('path'),
mongoose = require('mongoose'),
Result = mongoose.model('Result'), //Need Result model to fetch all relevant results
Dashboard = mongoose.model('Dashboard'),
errorHandler = require(path.resolve('./modules/core/server/controllers/erro... |
var searchCityEl = document.querySelector('#searchCity')
var cityInputEl = document.querySelector('#searchbar')
var cityForecast = document.querySelector('#city-forecast')
//Todays Variables
var cityName = document.querySelector('#city-name');
var day0 = document.querySelector('#day0');
var icon0 = document.querySele... |
function sub(a, b) {
return {
x: a.x - b.x,
y: a.y - b.y
};
}
function add(a, b) {
return {
x: a.x + b.x,
y: a.y + b.y
};
}
function mul(a, b) {
return {
x: a.x * b,
y: a.y * b
};
}
function clamp(a, b) {
return {
x: a.x > b.x ? b.x : (a.x < 0 ? 0 : a.x ),
y: a.y > b.y ? b.y : (a.y < 0 ? 0 : a.... |
const jwtSecret = "<KEY>"
const jwt = require('jsonwebtoken');
const User = require('../../db/User');
const redis = require("../../db/RedisDb.js").client
const config = require("../../lib/config.js")
function getUser(req) {
const user = req.user
if(!req.user) {
throw new Error("Please call ensure-authenticated ... |
/*Copyright 2018 Bang & <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublice... |
import * as classNames from 'classnames';
import PropTypes from 'prop-types';
import * as React from 'react';
import './playerArea.css';
// dimensions of game area
export const WIDTH = 1200;
export const HEIGHT = 800;
// [EditByRan] device-specific rendering
import {isMobile} from '../../views/room';
/*
* A higher ... |
//
// Jet.js is available under *either* the terms of the
// modified BSD license *or* the Academic Free License
// version 3.0.
//
// As a recipient of Jet.js, you may choose which license
// to receive this code under. No external contributions
// are allowed under licenses which are fundamentally
// incompatib... |
var COLORS = [
"#001f3f",
"#0074D9",
"#7FDBFF",
"#39CCCC",
"#3D9970",
"#2ECC40",
"#01FF70",
"#FFDC00",
"#FF851B",
"#FF4136",
"#85144b",
"#F012BE",
"#B10DC9"
];
class Player extends Entity {
constructor(params) {
super();
this.id = params.sessionId;
this.name = params.savedName;
... |
// Import the discord.js module
const Discord = require('discord.js');
// Import request for API access
var request = require('request');
// auth file
var auth = require('./auth.json');
// import async
var async = require('async');
var q = async.queue(function(task, callback) {
cName = task.name;
channel = task.i... |
const canvas = document.getElementById("cnvs");
const gameState = {};
function onMouseMove(e) {
gameState.pointer.x = e.pageX;
gameState.pointer.y = e.pageY
}
function queueUpdates(numTicks) {
for (let i = 0; i < numTicks; i++) {
gameState.lastTick = gameState.lastTick + gameState.tickLength;
... |
/*!
=========================================================
* Paper Dashboard React - v1.3.0
=========================================================
* Product Page: https://www.creative-tim.com/product/paper-dashboard-react
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:... |
// Hamburger Btn start //
const cover = document.querySelector('.prefer-menu');
const btnCloseMenu = document.querySelector('.exit-btn');
const btnOpenMenu = document.querySelector('.hamburger');
const BtnOpenMenuAbout = document.querySelector('.hamburger-about');
const options = document.querySelectorAll('.link');
con... |
import {
estimateMultisigTransactionFee,
satoshisToBitcoins,
} from "unchained-bitcoin";
import BigNumber from "bignumber.js";
import { fetchAddressUTXOs } from "../blockchain";
import { isChange } from "../utils/slices";
import { naiveCoinSelection } from "../utils";
import {
setBalanceError,
setChangeOutput,... |
import React, {
Component
} from 'react';
import ReactDOM from "react-dom";
import AsyncSelect from 'react-select/lib/Async';
class WithCallbacks extends Component {
constructor(props) {
super(props);
this.state = {
isLoading: false,
callfail: false,
defaultOp: []
};
this.re... |
import { isUndefined } from "./helpers/utils";
import { calculateRadianToDegree, withinRadian } from "./helpers/sector";
function withinRotationRect({ slope, yIntercept, mouseX, mouseY, modelXPositions, compX, compY, detectionSize = 0, }) {
const [x1, x2] = modelXPositions;
const posY = slope * (mouseX - compX)... |
import { Platform } from "react-native";
import {
SELECT_OFFLINE_PODCAST,
SAVE_PODCAST_OFFLINE,
SAVE_PODCAST_OFFLINE_UPDATE,
SAVE_PODCAST_OFFLINE_ERROR,
DELETE_PODCAST_OFFLINE,
DELETE_PODCAST_OFFLINE_ERROR
} from "./types";
import RNBackgroundDownloader from "react-native-background-downloader";
import { ha... |
import Link from 'next/link'
import React, { useState } from 'react'
import { useMutation } from '@apollo/client'
import { login } from '../../utils/auth'
import { LOGIN_MUTATION } from '../../utils/constants'
import FormError from '../Shared/FormError'
const Login = () => {
const [email, setEmail] = useState('')
... |
import React from "react";
import { Line, defaults } from "react-chartjs-2";
import moment from "moment";
const stateCodes = {
AP: "Andhra Pradesh",
AR: "Arunachal Pradesh",
AS: "Assam",
BR: "Bihar",
CT: "Chhattisgarh",
GA: "Goa",
GJ: "Gujarat",
HR: "Haryana",
HP: "Himachal Pradesh",
JH: "Jharkhand... |
/*
* NEJ File Content Parser
* @module script/parser
* @author genify(<EMAIL>)
*/
var path = require('path'),
util = require('util'),
_nej = require('./nej/util.js'),
_dep = require('../util/dependency.js'),
_util = require('../util/util.js'),
_path = require('../util/path.js');
//... |
var explosionSettings = {
type: SPE.distributions.SPHERE,
position: {
spread: new THREE.Vector3(10),
radius: 1,
},
velocity: {
value: new THREE.Vector3(100)
},
size: {
value: [30, 0]
},
opacity: {
value: [1, 0]
},
color: {
value: [new THREE.Color('yellow'), new THREE.Color('red')]... |
import * as THREE from './three.module.js';
class DynLineMesh extends THREE.LineSegments{
_defaultColor = 0x00ff00;
_cnt = 0;
_verts = [];
_color = [];
_config = [];
_dirty = false;
constructor( initSize = 20 ){
super(
_n... |
// -----------------------------------------------------------------------------
// Part I: Rule.prototype.makeCopyWithFreshVarNames() and
// {Clause, Var}.prototype.rewrite(subst)
// -----------------------------------------------------------------------------
function rndStr() {
var range = "ABCDEFGHIJKLMN... |
const inBrowser = typeof window !== 'undefined';
const _toString = Object.prototype.toString;
// 判断是否支持HTML5 history
export const supportsPushState =
inBrowser &&
(function() {
var ua = window.navigator.userAgent;
if (
(ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
ua... |
import h from 'react-hyperscript';
import RichTextEditor from 'react-rte';
import classNames from 'classnames';
import helpers from 'hyperscript-helpers';
import { useState, useEffect, memo } from 'react';
import { Author } from './author';
import { ReplyView } from './reply';
import { ErrorBoundary } from '../errors';... |
// 工具缓存数据过期时间(秒)
const TOOL_DATA_EXPIRY = 3600 * 24
// 徽章过期时间(天)
const BADGE_EXPIRY = 5
// 分类徽章
const BADGE_CATEGORY = []
// 工具徽章
const BADGE_TOOL = []
// 默认常用工具
const DEFAULT_COMMON_TOOL = [
'hash', 'encrypt', 'json', 'base64', 'url', 'timestamp',
'qrCode', 'pinyin', 'ip', 'code', 'unicode',
'text', 'rando... |
import React from 'react'
import events from '../events'
import HTML5Backend from 'react-dnd-html5-backend'
import { DragDropContext } from 'react-dnd'
// import BigCalendar from 'react-big-calendar'
import BigCalendar from '../../src/index'
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop';
impor... |
import bcrypt from 'bcrypt';
import jwt, { verify } from 'jsonwebtoken';
import slugify from 'slugify';
import uniqid from 'uniqid';
import path from 'path';
import { translate } from '../config';
import { User, Language, SliderContent } from '../models';
import { QueryHelper } from './QueryHelper';
import { validate }... |
refreshBox = function() {
$("#horarioCumprido").text(pontoHoje.horaAtualTrabalhadas().format("HH:mm"));
var porcentagem = pontoHoje.porcentagem_horaAtualTrabalhadas();
$("#progress-bar").css("width", porcentagem + "%").text(parseInt(porcentagem) +"%");
};
// gambeta para carregar css
var cssId = 'myCss';
... |
function getOKTAUserFromCookie(userinfo) {
let user = null;
if(userinfo.hasOwnProperty('first_name')){
return `${userinfo.first_name}.${userinfo.last_name}`;
}
return user;
}
function getOktaUsername(userinfo) {
return `${userinfo.first_name}.${userinfo.last_name}`;
}
async function checkAndSplitText(text, l... |
const fs = require('fs');
const { resolve } = require('path');
const jscodeshift = require('jscodeshift');
// const _ = require('lodash');
const j = jscodeshift;
// global objects
const constants = require('../../static/constants.json');
const allExternalDeps = Object.keys(constants).reduce((accumulator, key) => acc... |
//按钮样式
$(function(){
$(".btn").mouseover(function(){
$(this).find(".lf_btn").css("background-position","0 -60px");
$(this).find(".rf_btn").css("background-position","right -60px");
});
$(".btn_sp").mouseover(function(){
$(this).find(".lf_btn").css("background-position","0 -90px");
$(this).find(".rf_btn").css... |
// node_modules imports
import React from "react";
// Style imports
import "../../sass/AudioPlayer.sass";
class AudioPlayer extends React.Component {
constructor(props) {
super(props);
this.audio = new Audio(this.props.audiosrc);
this.changeTime = this.changeTime.bind(this);
this.dragTime = this.drag... |
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//
// Copyright (c) 2021, <NAME>
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE fil... |
import {getValueFromObjectByPath} from "./getValueFromObjectByPath.js";
import moment from "moment";
import thousandsSeparator from "./thousandsSeparator";
/**
* Maps the feature properties by the given object.
* @param {Object} properties The feature properties.
* @param {Object} mappingObject Object to me mapped.
... |
"use strict";
/**
* @file
* This is the main script file, it contains all the logic behind the inputs and outputs.
*/
/**
* This is a shorthand function for `document.querySelector`, it simply makes it easier to work with the code.
*
* @param {string} query - A CSS query selector .
* @returns {object} - The D... |
import * as React from 'react';
import { hot } from 'react-hot-loader';
import { connect } from 'react-redux';
import Loadable from 'react-loadable';
import { ethers } from 'ethers';
import { Switch, Route } from 'react-router-dom';
import loading from './components/Loading';
import ScrollToTop from './components/Scrol... |
import React, {Component} from 'react';
import { Col, Collapse, InputGroupAddon, InputGroup } from 'reactstrap';
import ModalPage from './ModalPage';
import 'bootstrap/dist/css/bootstrap.css';
import DoctorsListModal from './DoctorsListModal';
import RecordGuide from './../Doctor Module/Guides';
import image from './..... |
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.... |
/*
* Copyright 2010-2015 Amazon.com, Inc. or its affilfiates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lic... |
var enableIPerfLog = false;
function iperfLog(message, flow) {
if (enableIPerfLog) {
console.log('flow: ' + flow.flowId + '===>' + message);
}
}
function hasIPerf(flow) {
return flow && flow.iperfFetchTimeout;
}
function clearIPerf(flow) {
iperfLog('clearing iperf interval for: ' + flow.flowId, flow);
clearTi... |
/**
* AnsiRenderer - ascii/ansi terminal renderer,
* using VT-100/ANSI control escape sequences for terminal cursor hopping and colors
* http://ascii-table.com/ansi-escape-sequences-vt-100.php
*
* @class AnsiRenderer
*/
class AnsiRenderer {
constructor() {
this.escapeSequence = '\u001b[';
thi... |
let Parser = require('rss-parser')
let fs = require('fs')
let querystring = require('querystring')
let urlMod = require('url')
let URL = urlMod.URL
let feedxUrls = {
'路透': 'https://feedx.net/rss/reuters.xml',
'纽约时报': 'https://feedx.net/rss/nytimes.xml',
'美国之音': 'https://feedx.net/rss/mgzy1.xml',
'维权网': 'https:... |
import React, { Component } from 'react';
import { Container, Row, Col,Card,Tab ,DropdownButton,Dropdown,Tabs,ListGroup, FormControl, Button} from 'react-bootstrap';
import { Link, StaticQuery, graphql } from 'gatsby'
import GoogleMapReact from 'google-map-react';
import CallIcon from '../../img/icons/CallIcon.svg';... |
/* eslint-disable import/no-cycle */
import { MessageBox, Message } from 'element-ui';
import { EventCenter } from './eventcenter';
import exec, {
RenameNodeCommand, PasteNodeCommand, RemoveNodeCommand, RemoveConnectorCommand,
} from './command';
import editor from './editor';
import model from "@/views/pipeline/mode... |
import xmldom from 'xmldom'
import linksRe from 'app/utils/Links'
import {validate_account_name} from 'app/utils/ChainValidation'
const noop = () => {}
const DOMParser = new xmldom.DOMParser({
errorHandler: {warning: noop, error: noop}
})
const XMLSerializer = new xmldom.XMLSerializer()
/** Split the HTML on top-... |
/**
* Copyright 2015 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 colors = [
{"code":"1A", "name":"<NAME>", "photo":"./img/photos/SinFoto.png"},
{"code":"2A", "name":"<NAME>", "photo":"./img/photos/SinFoto.png"},
{"code":"2B", "name":"<NAME>", "photo":"./img/photos/SinFoto.png"},
{"code":"2F", "name":"<NAME>", "photo":"./img/photos/SinFoto.png"},
{"code":"2G",... |
import * as action from '../../store/actions';
import _ from 'lodash';
import axios from 'axios';
import WvPbEventPayload from "../../models/WvPbEventPayload";
import NodeUtils from "../../utils/node";
function getSelectValues(select) {
var result = [];
var options = select && select.options;
var opt;
f... |
#!/usr/bin/env node
'use strict';
var shutdown = require('shutdown');
var persistence = require('gitter-web-persistence');
var through2 = require('through2');
var Promise = require('bluebird');
var mongooseUtils = require('gitter-web-persistence-utils/lib/mongoose-utils');
var onMongoConnect = require('gitter-web-pers... |
//=========================================== Customer Add - Start ===========================================//
let select_id = 0;
$('#customer_add_form').submit( (event) => {
//Noktalı virgül şart değil.
event.preventDefault();
const cname = $("#cname").val()
const csurname = $("#csurname").val(... |
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import {
Row,
Col,
Collapse,
} from 'reactstrap';
import classnames from 'classnames';
import s from './Accordion.scss';
class Accordion extends React.Component {
constructor(props) {
super(props);
this.toggle... |
/**
*
* Goal: The main script is to be executed client side, and generate the scene data on-device.
*
* This means we bundle everything here using browserify, and push updates to our client devices,
* that will then run this on a Javascript interpreter. (After evaluating Rhino and Duktape, went
* back to Chrome i... |
// Copyright (c) 2005-2016 Intel 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 o... |
var countriesTag = '#customersDT';
jQuery(function() {
'use strict'
//GLOBALS
var customersDT = $(countriesTag).DataTable({
columns: [
{ title: "ID", data: "id" },
{ title: "Name", data: "name" },
{ title: "Email", data: "email" },
{ title: "Usernam... |
/**
* Module : neoui-year
* Author : liuyk(<EMAIL>)
* Date : 2016-08-11 15:17:07
*/
import {
on,
off,
stopEvent
} from 'tinper-sparrow/src/event';
import {
addClass,
makeDOM,
showPanelByEle,
getZIndex,
removeClass
} from 'tinper-sparrow/src/dom';
import {
extend
} from 'tinper... |
import React, { Component } from 'react';
import { Button, Card, CardBody, CardFooter, Col, Container, Form, Input, InputGroup, InputGroupAddon, InputGroupText, Row } from 'reactstrap';
import axios from 'axios';
import { reject } from 'q';
import { Typeahead } from 'react-bootstrap-typeahead';
import { mockGetAllTeam ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.