text stringlengths 5.97k 41.2k |
|---|
// wink-helpers
// Functions for cross validation, shuffle, cartesian product and more
//
// Copyright (C) 2017-18 GRAYPE Systems Private Limited
//
// This file is part of “wink-helpers”.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and... |
// Base App Framework
var app = {
username: '',
cacheBust: 0,
proto: location.protocol.match(/^https/i) ? 'https://' : 'http://',
secure: !!location.protocol.match(/^https/i),
retina: (window.devicePixelRatio > 1),
mobile: !!navigator.userAgent.match(/(iOS|iPhone|iPad|Android)/),
base_api_url: '/api',
plain_... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MongoBinaryDownload = void 0;
const tslib_1 = require("tslib");
const os_1 = tslib_1.__importDefault(require("os"));
const url_1 = require("url");
const path_1 = tslib_1.__importDefault(require("path"));
const fs_1 = require("fs");
con... |
const $ = function(selector, element) {
element = element || document;
if(selector.indexOf('#') === 0) {
return element.getElementById(selector.replace('#', ''))
}
return element.querySelector(selector)
};
$.all = function(selector, element) {
element = element || document;
return element.querySelector... |
var graph = new joint.dia.Graph;
var paper = new joint.dia.Paper({ el: $('.paper'), width: 2048, height: 2048, gridSize: 1, model: graph });
// Create a custom element.
// ------------------------
joint.shapes.html = {};
joint.shapes.html.Element = joint.shapes.basic.Rect.extend({
defaults: joint.util.deepSupplem... |
//chat
var previewRoot = 'https://streaminglive.church'
var displayName = 'Anonymous';
var keyName = 'master';
var prayerGuid = '';
var socket;
var userGuid = '';
var timerId = 0;
//player
var videoUrl = 'about:blank';
var keyName = 'master';
var currentService = null;
var data = null;
var oldData = null;
var chatEna... |
/// <reference path="base.js" />
/// <reference path="../jQuery.js" />
/// <reference path="../iChart.js" />
var homeIntervalTime = 1000 * 60 * 5;
var intervalHot;
var intervalData;
var brand_name = ""//空字符串或者没有字段就是全部
$(function () {
if(parseUrl('customer')){
sLogin(function(result){//模拟登录
//city= resu... |
// from: https://codepen.io/seanseansean/pen/EaBZEY
//import { WEBGL } from 'three/examples/jsm/WebGL.js';
class Environment {
camera = null;
scene = null;
renderer = null;
theta = 0;
radius = 0;
inScene = {
particles: null,
}
constructor() {
}
initSceneScape(cameraSettings) {
var scene = new THREE... |
import React, { Component } from 'react';
import jQuery from 'jquery';
import {findDOMNode } from 'react-dom';
import logo from './logo.svg';
import './CADViewerSpaceObjects.css';
import { render } from '@testing-library/react';
// We want to export some variables back to CADViewerHelperMethods after we have placed o... |
/*
Manages the players in the game.
Adds/removes player meshes to the scene.
*/
import Ola from "ola";
import * as THREE from "three";
import { TextGeometry } from "three/examples/jsm/geometries/TextGeometry.js";
import { scene } from "../globals";
import player from "../entity/player/Player";
import textureManager ... |
/*
* Copyright © 2018 Software AG, Darmstadt, Germany and/or its licensors
*
* SPDX-License-Identifier: Apache-2.0
*
* 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.apa... |
/**
The MIT License (MIT)
Copyright 2017-2021 <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, modi... |
var listdata = [];
var lastrow,lastcell;
var labelnohandover="";
var last_scan_ele="";
$(function(){
$("#dataGrid").dataGrid({
url: baseUrl + 'in/wmsinhandoverbound/labellist',
datatype: "local",
data: listdata,
colModel: [
{ label: '标签号', name: 'LABEL_NO', index: 'LABEL_NO', width: 120 },... |
var timelog;
if (typeof require !== 'undefined') {
timelog = require('timelog');
}
var debug = localStorage.getItem('TimeLogDebug') || false;
var regexDuration = /P((([0-9]*\.?[0-9]*)Y)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[0-9]*)W)?(([0-9]*\.?[0-9]*)D)?)?(T(([0-9]*\.?[0-9]*)H)?(([0-9]*\.?[0-9]*)M)?(([0-9]*\.?[... |
import { Widget, VDOM } from "../../ui/Widget";
import { Container } from "../../ui/Container";
import { startAppLoop } from "../../ui/app/startAppLoop";
import { FocusManager, oneFocusOut, offFocusOut } from "../../ui/FocusManager";
import { isSelfOrDescendant, closest } from "../../util/DOM";
import { parseStyle } fr... |
import { NONE, GLOBAL_ABSOLUTE, LOCAL_RELATIVE, LOCAL_ABSOLUTE, END, START, J_LOCAL, J_GLOBAL, MAX_VALUE } from '../constants.js';
import { _Math } from '../math/Math.js';
import { V2 } from '../math/V2.js';
import { Bone2D } from './Bone2D.js';
import { Tools } from './Tools.js';
function Chain2D ( color ){
thi... |
/**
* Module dependencies.
*/
var passport = require('passport-strategy')
, url = require('url')
, querystring= require('querystring')
, crypto = require('crypto')
, jws = require('jws')
, base64url = require('base64url')
, util = require('util')
, utils = require('./utils')
, OAuth2 = requ... |
/**
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... |
// Javascript Functions for phpMyHue
// <NAME> 2015/02/10
//------------------------------------------------------------------------
// Functions list :
// isMobile returns true/false if navigator is used from a mobile device
// uniqid generates a pseudo unique id of 13 char (+ prefix if supplied)
// $.scrollbar... |
/**
* PS Log Viewer
* Main File
* Use this file to start the server
*/
'use strict';
// Load Globals
try {
require('express');
require('socket.io');
} catch (e) {
console.error('Dependencies Unmet! Automatically installing them...');
require('child_process').execSync('npm install --production', {
stdio: 'in... |
// Run tests seperate eg truffle test ./test/Token.test.js
// Running all tests eg truffle test may have challenges
import { tokenFormat, etherFormat, EVM_REVERT, ETHER_ADDRESS } from './helpers'
const Token = artifacts.require('./Token')
const Exchange = artifacts.require('./Exchange')
const Lighthouse ... |
import React from 'react';
import { forceManyBody, forceCollide } from 'd3-force';
import { ForceGraph2D } from 'react-force-graph';
import LicenseChart from './LicenseChart';
import ZoomToolkit from './ZoomToolkit';
import Sidebar from './Sidebar';
import Navbar from './Navbar';
import { ReactComponent as InfoI... |
// Definition of Array & object for devices
let videoDevices = [];
let hddDevices = [];
let ssdDevices = [];
let videoResolutions = ['HD : 1280 x 720', 'FULL HD : 1920 x 1080', 'UHD : 3840 x 2160', '4K : 4096 x 2160'];
let videoTypes = ['LCD', 'LED', 'Plasma'];
let diskSize = ['500GB', '1TB', '2TB', '4TB'];
let platte... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import router from 'umi/router';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Button,
Modal,
Upload,
message,
Icon,
Tooltip,
Popconfirm,
Divider,
} from 'antd';
import StandardTable from '@/components/Sta... |
import * as THREE from 'three';
import { VignetteShader } from 'three/examples/jsm/shaders/VignetteShader.js';
import { TestShader } from '../../libs/three/shaders/TestShader.js';
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
import { RenderPass } from 'three/examples/jsm/postpro... |
/**
* External dependencies
*/
import { CheckboxControl, Button } from '@wordpress/components';
import { applyFilters } from '@wordpress/hooks';
import { Fragment, useRef, useState } from '@wordpress/element';
import { compose } from '@wordpress/compose';
import { focus } from '@wordpress/dom';
import { withDispatch,... |
import clock from "clock";
import { display } from "display";
import * as document from "document";
import { preferences } from "user-settings";
import * as util from "../common/utils";
import { me as appbit } from "appbit";
import { user } from "user-profile";
import { battery } from "power";
import { charger } from ... |
var $ID = '';
lastFocus = '',
dataAjax = {
cliente: ''
},
dom = 'frtip',
$CREAR = 0,
$CP = null;
$('[readonly]').each(function(){
$(this).attr('disabled', true);
});
$('input[data-db]:not([data-codigo]), input[data-crud], textarea[data-db]').attr('readonly', true);
$('select[data-db]:not([data-codigo]), select[dat... |
/* globals fileUpload AudioRecorder KonchatNotification chatMessages */
import toastr from 'toastr';
import mime from 'mime-type/with-db';
import moment from 'moment';
import {VRecDialog} from 'meteor/rocketchat:ui-vrecord';
function katexSyntax() {
if (RocketChat.katex.katex_enabled()) {
if (RocketChat.katex.do... |
import React, { useEffect, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux';
import { offers } from './redux/actions/oferts';
import Swal from 'sweetalert2'
const styleTable = {
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
};
const table = {
overflowX: ... |
var WIDTH = 400;
var HEIGHT = 400;
var DEFAULT_COLOR = "#ffffff";
var EDGE_COLOR = "#000000";
var U2_COLOR = "#e6e6e6";
var U2_EDGE_COLOR = "#ee5f5b";
var ctx = initCanvas();
var g_graph, g_algo, g_order, g_hasNextStep;
var colorAllButton = document.getElementById("colorall");
var colorNextButton = document.getElemen... |
/* eslint-disable no-console */
const config = require("./config.json");
const Casca = require("casca");
const Redis = require("ioredis");
const CronJob = require("cron").CronJob;
const Twitter = require("twitter");
const prettyms = require("pretty-ms");
Redis.Promise = require("bluebird");
// monkaS
require("jimp").... |
import Base64 from 'base64-arraybuffer';
// Services
const CUBE_STATE_SERVICE = '0000aadb-0000-1000-8000-00805f9b34fb';
const CUBE_INFO_SERVICE = '0000aaaa-0000-1000-8000-00805f9b34fb';
// Characteristics
const CUBE_STATE_RESPONSE = '0000aadc-0000-1000-8000-00805f9b34fb';
const CUBE_INFO_RESPONSE = '0000aaab-0000-100... |
/*
MIT License
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const fs = tslib_1.__importStar(require("fs"));
const colors_1 = tslib_1.__importDefault(require("colors"));
const lodash_1 = tslib_1.__importDefault(require("lodash"));
const path = tslib_1.__importStar(requi... |
"use strict";
let progressBar;
let progressBarTop;
document.addEventListener("DOMContentLoaded", () => {
document.body.classList.remove("no-js");
menuScreenInterface.show();
// localStorage.clear();
// It verifies if the browser supports web storage and local storage
if (typeof (Storage) !== "un... |
import Bitcoin from 'bitcoinjs-lib'
import { sha3 } from 'ethereumjs-util'
import { getBip32RootKey } from '/api/bip39'
import { encryptAES128CTR, decryptAES128CTR } from '/api/crypto'
import { formatCoin, decimalsMax, bigNumber } from '/api/numbers'
import {
decryptBIP38 as _decryptBIP38,
encryptBIP38 as _encr... |
var _dec, _dec2, _dec3, _dec4, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
function _initDefineProp(target, property, descriptor, c... |
// Generated by CoffeeScript 1.10.0
(function() {
var autoLink,
slice = [].slice;
autoLink = function() {
var callback, k, linkAttributes, option, options, pattern, v;
options = 1 <= arguments.length ? slice.call(arguments, 0) : [];
pattern = /(^|[\s\n]|<[A-Za-z]*\/?>)((?:https?... |
//THREEJS RELATED VARIABLES
var scene,
camera,
fieldOfView,
aspectRatio,
nearPlane,
farPlane,
shadowLight,
light,
renderer,
container;
//SCREEN VARIABLES
var HEIGHT,
WIDTH,
windowHalfX,
windowHalfY,
xLimit,
yLimit;
// FISH BODY PARTS
var fish,
bodyFish,
... |
/**
*
*/
var popusertimer = null;
var query = '?';
$("#topbar_username,.panel-setting").hover(function(){
$(".panel-setting").css("display","block");
},function(){
$(".panel-setting").css("display","none");
});
// Firefox, Google Chrome, Opera, Safari, Internet Explorer from version 9
function OnInput (event) {
... |
const assert = require('assert');
require('./m68k_global');
const { BitvalN } = require('./bitvaln');
// MOVE
state.reset();
assert.equal(''+state[D0], 'a7a6a5a4a3a2a1a0 b7b6b5b4b3b2b1b0 c7c6c5c4c3c2c1c0 d7d6d5d4d3d2d1d0');
assert.equal(''+state[D7], 'C7C6C5C4C3C2C1C0 D7D6D5D4D3D2D1D0 E7E6E5E4E3E2E1E0 F7F6F5F4F3F2F1F0... |
/**
* Created by jzg on 2017/1/3.
*/
/**
* Created by wanglijun on 2016/12/29.
*/
var data ={
"model.IsInternalCarSource":false,
"model.MakeID":0,
"model.ModelID":0,
"model.StyleID":0,
"model.ProvID":0,
"model.CityID":0,
"model.CityName":'',
"model.PageIndex":1,
"model.PageSize"... |
"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];
})... |
// sbbackground.js
// Copyright © 10/4/2017 <NAME> - All Rights Reserved
// You may use, distribute and modify this code for charitable use only.
// This code was developed to assist the Boy Scouts of America.
// TODO refactor code using setInterval Clumsy now.
/*
chrome.browserAction.setBadgeText({text:'+'});... |
/***************************************************************************
*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org... |
'use strict';
var _ = navigator.mozL10n.get;
var SETTINGS_CLOCKMODE = 'settings_clockoptions_mode';
var ClockView = {
_clockMode: null, /* is read from settings */
get digitalClock() {
delete this.digitalClock;
return this.digitalClock = document.getElementById('digital-clock');
},
get analogClock()... |
import download from 'downloadjs';
import { elements, appObject, relatedImagesGridMasonryObject } from './base';
import { addSpinner } from './spinner';
import { fetchImage, fetchImages, removeChildNodes } from '../utils';
import { clearFilters, removeImagesFromGrid, getTagsUrl, licenseInfo } from './helper';
// eslin... |
'use strict';
const EventEmitter = require('events');
const tls = require('tls');
const http2 = require('http2');
const QuickLRU = require('quick-lru');
const kCurrentStreamsCount = Symbol('currentStreamsCount');
const kRequest = Symbol('request');
const kOriginSet = Symbol('cachedOriginSet');
const nameKeys = [
// ... |
// Copyright 2016-2019 the Bayou Authors (<NAME> et alia).
// Licensed AS IS and WITHOUT WARRANTY under the Apache License,
// Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0>
import { CaretId, CaretOp, CaretSnapshot } from '@bayou/doc-common';
import { Delay } from '@bayou/promise-util';
import { Qu... |
import React, { Component, PropTypes } from 'react';
import moment from 'moment'
import DatePicker from 'react-datepicker'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import striptags from 'striptags';
import Selection from './commons/Selection'
import DropDownList from './commons/DropDownList'
import ... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
import Grid from "@material-ui/core/Grid";
import Typography from "@material-ui/core/Typography";
import TextField from "@material-ui/core/Tex... |
'use strict';
// modules
var browserify = require('browserify');
var browserSync = require('browser-sync');
var collate = require('./tasks/collate');
var compile = require('./tasks/compile');
var concat = require('gulp-concat');
var csso = require('gulp-csso');
var del = require('del');
var gulp = require('gulp');
var... |
import React from 'react'
import IcicleRect from 'components/icicle-rect'
import Ruler from 'components/ruler'
import BreadCrumbs from 'components/breadcrumbs'
import { generateRandomString } from 'random-gen'
import MinimapBracket from 'components/minimap-bracket'
import { animate, clear } from 'animation-daemon'... |
import React, { useReducer, useCallback, useMemo, Fragment, useEffect } from 'react';
import ReactPaginate from 'react-paginate';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
... |
// =============================================================
var DEFAULT_COLOR = '#d3d3d3';
var OVERRIDES = {
'arabidopsis thaliana': DEFAULT_COLOR, // otherwise conflicts with ara = Arachis
'arachis ipaensis': '#aaab00',
'*user sequences': '#990000' // TODO: use genusToColor?
}
moreBrewerColors = chroma.b... |
import React from 'react'
import { Zoom } from 'react-slideshow-image';
import {Image, Transformation, CloudinaryContext} from 'cloudinary-react';
import stars from '../assets/particle_video.mp4'
import './index.css'
const Captions = ["hello world"]
const zoomInProperties = {
duration: 2000,
transitionDuration: 1... |
var Packer = require("./packer.js"),
_ = require("lodash"),
utils = require("./utils.js");
// https://github.com/geidav/ombb-rotating-calipers
var Vector = function(x, y) {
this.x = x;
this.y = y;
this.min = function(vec) {
x = Math.min(x, vec.x);
y = Math.min(y, vec.y);
};
this.max = function(ve... |
var energyTypes = ["computer", "heater", "light", "projector"];
var url = new URL(window.location.href);
var isColliding = function( $div1, $div2 ) {
var d1_offset = $div1.offset();
var d1_height = $div1.outerHeight( true );
var d1_width = $div1.outerWidth( true );
var d1_d... |
$(document).ready(function(){
});
var tempHeight = 0;
var tempWidth = 0;
function refreshResponsiveSlideContent(){
tempHeight = $('#content-informasi-slide').height();
tempWidth = $('#content-informasi-slide').width();
if(tempWidth > 992){
if($('.ci-gambar').height() > tempHeight-20){
... |
"use strict";
function getInput(){
var input = {};
// Get list of channels
var csel=document.getElementById('channel');
var copts=csel.selectedOptions;
var channels=[];
for(var i=0; i<copts.length; i++){
channels.push(copts[i].value);
}
if(channels.length==0){
alert("Please ... |
import React, { Component } from "react";
import { observer, inject } from 'mobx-react';
import styled from 'styled-components';
import {
MDBContainer,
MDBRow,
MDBCol,
MDBModal,
MDBModalBody,
MDBModalFooter,
MDBModalHeader,
MDBBtn,
MDBDataTable,
MDBIcon,
MDBEdgeHeader,
MD... |
//---------App:
var controlHubVersion = "1.4.1";
//---------Pages:
var HOME = "home";
var HOME_TITLE = "S.E.P.I.A. Control HUB";
var HOME_DESC = "The S.E.P.I.A. Control HUB helps you set-up, configure and manage your assistant and servers.";
function buildPages(sideMenuEle){
//Home
ByteMind.page.registerSection... |
import _debug from 'debug'
const debug = _debug('app:sockserver')
import config from '../config'
const path = require("path")
var fs = require('fs');
import crc from 'crc';
import _ from 'lodash';
var uploads = config.utils_paths && config.utils_paths.uploads && config.utils_paths.uploads() || path.join(process.cwd()... |
/*jshint node: true*/
/*global -WeakMap*/
"use strict";
// XXX Note: exceptions thrown from handlers and handler cancelers may
// interfere with dispatching to subsequent handlers of any change in progress.
// It is unlikely that plans are recoverable once an exception interferes with
// change dispatch. The internal ... |
var pubs = [
{"name" : "Frontiers", "year" : 2012,
"values" : [{"label" : "2008", "value" : 0 }, {"label" : "2009", "value" : 2 }, {"label" : "2010", "value" : 3 }, {"label" : "2011", "value" : 6 }, {"label" : "2012", "value" : 4 }]},
{"name" : "SAB", "year" : 2012,
"values" : [{"label" : "2008", "value" : 5 }, {"lab... |
import React, { useEffect, useState } from "react";
import {
getMyStats,
getPendingGrants,
submitCuration,
} from "../adapters/moralis";
import Loader from "./Loader";
import Confetti from "react-dom-confetti";
import Modal from "./Modal";
import ReactTooltip from "react-tooltip";
import ReactQuill from "react-qu... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>, All rights reserved.
* See the file LICENSE in the top level directory for more details.
*/
//==== DONT TOUCH BELOW ===
//==== INTERNAL USE ===
/*
* tzOffset: (integer, internally)
* firstRetrieve: (integer, internally)
* totalPoints: (integer, internally)
* the num... |
import FlexChildResize from './FlexChildResize.js';
import Typer from './Typer.js';
const
isChrome = navigator.userAgent.match(/Chrom(?:e|ium)\/(\d+)\./),
isFF = navigator.userAgent.match(/Firefox\/(\d+)\./),
keywords = [
'do', 'enum', 'finally', /*'for',*/ 'in', 'instanceof', 'interface... |
/**
* Copyright 2013-2021 the original author or authors <NAME>
* This file is part of the Kujang Generator
* for more information.
*
* 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
*
... |
"use strict";
var possibilities = {
AC: [ "AM", "RO" ],
AM: [ "AC", "RO", "RR", "PA", "MT" ],
AL: [ "SE", "PE", "BH" ],
AP: [ "PA" ],
BA: [ "SE", "AL", "PE", "PI", "TO", "GO", "MG", "ES" ],
CE: [ "RN", "PI", "PB", "PE" ],
ES: [ "BA", "MG", "RJ" ],
GO: [ "MS", "MT", "TO", "BA", "MG" ],
... |
/* global THREE */
import {vec2, mat3} from 'gl-matrix'
import TWEEN from 'tween.js'
import Ticker from './ticker'
import StandardFaceData from './standard-face-data'
import DeformableFaceGeometry from './deformable-face-geometry'
const ROT_Z_90 = new THREE.Matrix4().makeRotationZ(Math.PI)
const OUTLINE_INDICES = [... |
import React, { Component } from 'react';
import * as firebase from 'firebase';
import FileUploader from "react-firebase-file-uploader";
import {
Button,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Form,
FormGroup,
FormText,
Input,
InputGroup,
InputGroupAddon,
InputGroupText,
Label,
Moda... |
import { CFormCheck } from '@coreui/react'
import React from 'react'
import { useEffect, useState } from 'react'
import 'src/views/GestionCompte/gestioncompte.css'
import 'src/views/gestion_examen/gestion_examen.css'
import { addQuestion, deletequestion, getReponseByQuestion } from 'src/services/questionService'
impor... |
import { LitElement, html, css } from "lit";
import { Vector2 } from "three/src/math/Vector2";
import { Vector3 } from "three/src/math/Vector3";
import { MeshStandardMaterial } from "three/src/materials/MeshStandardMaterial";
import { Scene } from "three/src/scenes/Scene";
import { RingGeometry } from "three/src/geomet... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/*
* @Date: 2020-11-27 12:06:50
* @LastEditTime: 2021-09-30 10:44:50
* @Description: 根据swagger生成配置文件
*/
const http = require('http')
const fs = require('fs')
const path = require('path')
const argv = process.argv.slice(2)
// 检查执行该文件的参数
function checkArgv(argv) {
let ips = []
if (!argv.length) {
throw new Error... |
require('dotenv').config();
const express = require('express');
const bodyParser = require('body-parser');
const db = require('../database/index.js');
const request = require('request');
const pgp = require('pg-promise')();
const path = require('path');
const cookieParser = require('cookie-parser');
const utils = requi... |
// Native Node Imports
const url = require("url");
const path = require("path");
const fs = require("fs");
const config = JSON.parse(fs.readFileSync("../config.json", "utf8"));
// Used for Permission Resolving...
const Discord = require("discord.js");
const mconfig = require("../main.json");
// Express Session
const ex... |
import React, { Component, Fragment } from 'react';
import { connect } from 'dva';
import router from 'umi/router';
import moment from 'moment';
import Prompt from '@/components/Prompt';
import {
Row,
Col,
Form,
Input,
Select,
Icon,
Button,
Collapse,
DatePicker,
PageHeader,
Radio,
} from 'antd';
i... |
const { user: userDocument, artist: artistDocument, album: albumDocument, track: trackDocument, playlist: playlistDocument, category: categoryDocument } = require('../models/db');
var FuzzySearch = require('fuzzy-search');
const limitOffset = require('../middlewares/limit-offset');
// initialize db
const checkMonoo... |
// Copyright 2011 <NAME> <<EMAIL>>
//
// 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, ... |
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* html2pdf.js v0.8.2
* Copyright (c) 2018 <NAME>
* Released under the MIT License.
*/
import 'es6-promise/auto';
import jsPDF from 'jspdf';
import html2canvas from 'html2canvas';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : functi... |
const t = require('babel-types');
const generate = require('babel-generator').default;
const template = require('babel-template');
const path = require('path');
const queue = require('./queue');
const utils = require('./utils');
const deps = [];
const config = require('./config');
const buildType = config['buildType'];... |
//globals
//for focus cycling
window.last_focus_search_term = "";
window.focus_class_name = "api_cycle_focus";
window.is_names_list_scrolling = false;
window.is_main_scroll_auto = false;
window.scroll_time_ms = 400;
window.main_scroll_event_delay = 100;
window.user_scroll_detect_delay = 100;
window.is_user_scrolling_ma... |
/**
* Module Dependencies
*/
var _ = require('lodash'),
async = require('async'),
utils = require('../../utils/helpers'),
normalize = require('../../utils/normalize'),
hasOwnProperty = utils.object.hasOwnProperty;
/**
* Builds up a set of operations to perform based on search criteria.
*
* This ... |
let socket = null;
let raids = [];
let raidConfigs = [];
let selectedRaidsArray = [];
let individualSettings = [];
let wasDown = false;
let noTwitter = false;
let soundNotifs = {
"funf-dancho": '/assets/sounds/funf.mp3',
"beeps": '/assets/sounds/Beeps_Appear.wav',
"lily-event-ringring": '/assets/sounds/Lily_Event_R... |
import { ActionButton, AssetDropdownMenuItem } from "styles/Styles";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
Instruction,
MyModal,
Section,
TextPopupTitle,
} from 'modals/styles/Styles';
import { Col, Input, Row, Spin } from 'antd';
import { connect } from 'react-redux';
imp... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
"use strict";
var ValidationTypes = module.exports;
var Matcher = require("./Matcher");
function copy(to, from) {
Object.keys(from).forEach(function(prop) {
to[prop] = from[prop];
});
}
copy(ValidationTypes, {
isLiteral: function (part, literals) {
var text = part.text.toString().toLower... |
module.exports = {
getDoc,
getApi,
getOperationId,
getScope,
getIdName,
assignResponse
};
const { resolve: pathResolve } = require("path");
const { readdirSync } = require("fs");
const { kebabCase } = require("lodash");
const pluralize = require("pluralize");
const _ = require("lodash");
const toJsonSchema... |
import _ from 'lodash/fp';
import shouldUpdate from 'recompose/shouldUpdate';
import { deepEquals } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';
import FormPage from './containers/FormPage';
import ReviewPage from './review/ReviewPage';
// An active page is one that will be shown to the use... |
const readline = require('readline');
const fs = require('fs');
const util = require('./util');
var commentDelimiter;
class Snippet {
constructor(lang, name) {
this.lang = lang
this.name = name
this.group = ''
this.bodyBlock = ''
this.innerBodyBlockArray = []
}
setGroup(name) {
this.gro... |
/**
* @license
* Copyright 2019 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
// @ts-check
"use strict";
const os = require("os");
// Regular expression for matching common newline characters
// See NEWLINES_RE in markdown-it/lib/rules_core/normalize.js
const newLineRe = /\r\n?|\n/g;
module.exports.newLineRe = newLineRe;
// Regular expression for matching common front matter (YAML and TOML)
... |
const Q = require('q')
const _ = require('busyman')
const mqtt = require('mqtt')
const mosca = require('mosca')
const debug = require('debug')('lwmqn-shepherd:init')
const mutils = require('./components/mutils')
const msghdlr = require('./components/msghandler')
const MqttNode = require('./components/qnode')
const in... |
const PUBLISH = false;
export default class StatisticData {
constructor(db, table,year,month,types=['基础','框架和库','MVVM','图形','构建服务','数据库','其它','综合知识','浏览器','图形处理','工具','app','编程语言']) {
this.db = db;
this.year = year;
this.month = month;
this.table = table;
this.types = types;... |
function Packet(stream) {
this.stream = stream;
}
Packet.TAGS = {
0: "Reserved - a packet tag MUST NOT have this value",
1: "Public-Key Encrypted Session Key Packet",
2: "Signature Packet",
3: "Symmetric-Key Encrypted Session Key Packet",
4: "One-Pass Signature Packet",
5: "Secret-Key Packe... |
// React port of - http://bl.ocks.org/msqr/3202712
import React from "react";
import PropTypes from 'prop-types';
// selectively import d3 components for reducing file size
// import * as d3 from "d3";
import {
format as d3Format ,
scaleLinear as d3ScaleLinear,
range as d3Range,
arc as d3Arc,
sel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.