text stringlengths 5.97k 41.2k |
|---|
/*!
* express-session-ws-rn
* Copyright(c) 2019 <NAME>
* MIT Licensed
*/
/*!
* forked from express-session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 <NAME>
* Copyright(c) 2014-2015 <NAME>
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var cookie = require('cookie');
v... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import {
BufferAttribute,
BufferGeometry,
InterleavedBuffer,
InterleavedBufferAttribute,
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
Vector2,
Vector3
} from "../../../build/three.module.js";
var BufferGeometryUtils = {
computeTangents: funct... |
#!/usr/bin/env node
var VERBOSE = "VERBOSE" in process.env;
var TERSE = VERBOSE;
var TESTS = "TESTS" in process.env ? process.env.TESTS.split(/,/) : null;
var ShExCore = require("@shexjs/core");
var ShExUtil = ShExCore.Util;
var ShExValidator = ShExCore.Validator;
var ShExLoader = require("@shexjs/loader");
var Mappe... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var mitt = require('mitt');
var tokens = require('../../tokens');
var AsyncValidator = require('async-validator');
var shared = require('@vue/shared');
var util = require('../../utils/util');
var validators = requir... |
if (typeof Tap === "undefined") require("tapjs");
var _ = require("underscore");
var EventEmitter = require("events").EventEmitter;
var Modernizr = require("./modernizr");
function Photoride(cont, options) {
EventEmitter.call(this);
var self = this;
this.options = _.extend({
loop: true,
showCount: true,
show... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import StartButton from './components/Button';
import Column from './components/Column';
import AceEditor from 'react-ace';
import {
playSpeech,
stopSpeech,
playScenario,
stopScenario,
save,
create,
load,
list,
remove,
... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Derivative work by <NAME>
// Configuration
var animationFrames = 36;
var animationSpeed = 10; // ms
var canvas = document.getElementById('canvas');... |
import {
Color,
DoubleSide,
MeshNormalMaterial,
RawShaderMaterial,
TextureLoader,
RepeatWrapping,
HalfFloatType,
RGBAFormat,
UnsignedByteType,
Vector2,
} from "../third_party/three.module.js";
import { ShaderPass } from "../js/ShaderPass.js";
import { ShaderPingPongPass } from "../js/ShaderPingPongP... |
/**
* command: create
* 创建初始化Lambda函数
*/
const aws = require('aws-sdk')
const path = require('path')
const fs = require('fs')
const fsPromise = fs.promises
const os = require('os')
const retry = require('oh-no-i-insist')
const NullLogger = require('../util/null-logger')
const entityWrap = require('../util/entity-wra... |
import { TilesRendererBase } from '../base/TilesRendererBase.js';
import { B3DMLoader } from './B3DMLoader.js';
import { PNTSLoader } from './PNTSLoader.js';
import { I3DMLoader } from './I3DMLoader.js';
import { CMPTLoader } from './CMPTLoader.js';
import { TilesGroup } from './TilesGroup.js';
import {
Matrix4,
Box3... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var lie = _interopDefault(require('lie'));
var getArguments = _interopDefault(require('argsarray'));
var debug = _interopDefault(require('debug'));
var events = require('events');
var inher... |
import _ from 'underscore';
import { Base64 } from 'meteor/base64';
import { EJSON } from 'meteor/ejson';
import { Random } from 'meteor/random';
import { Session } from 'meteor/session';
import { TimeSync } from 'meteor/mizzao:timesync';
import { Emitter } from '@rocket.chat/emitter';
import { e2e } from './rocketcha... |
// jshint strict: false
/**
* Selection
*
* A module to handle everything that happens with the user's selection and the
* selection range
*
* @access protected
* @module modules/Selection
*
* @example
* // Available requests / commands:
*
* requests: {
* 'selection:current': 'getCurrentSelection',
* ... |
const { getData } = require("./dataImporter");
const docx = require("docx");
const { Packer } = docx;
const getDocx = require("./getdocxdata");
const fs = require("fs");
var {
docDefinition,
getSectionTitle,
getTF,
getMTFHeader,
} = require("./utils/docDefinition");
const ProgramServiceHelper = require("../../... |
var settings = hammerhead.get('./settings');
var iframeSandbox = hammerhead.sandbox.iframe;
var cookieSandbox = hammerhead.sandbox.cookie;
var browserUtils = hammerhead.utils.browser;
var domUtils = hammerhead.utils.dom;
var shadowUI = hammerhead.sandbox.shadowUI;
var Promise = hammerhead.Promise;
te... |
import {useEffect, useReducer, useRef, useState} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import cn from 'bem-cn-lite';
import _ from 'lodash';
import MonacoEditor from 'react-monaco-editor';
import DataTable from '@yandex-cloud/react-data-table';
import {Button, DropdownMe... |
import XDate from 'xdate';
import { componentTypes, queryTypes } from './constants';
import dateFormats from './dateFormats';
import { formatDate, isValidDateRangeQueryFormat } from './helper';
export const componentToTypeMap = {
// search components
[componentTypes.reactiveList]: queryTypes.search,
[componentTypes... |
const Base = require('./base.js');
const moment = require('moment');
const rp = require('request-promise');
const fs = require('fs');
const http = require("http");
module.exports = class extends Base {
/**
* 获取订单列表
* @return {Promise} []
*/
async listAction() {
const showType = this.get('... |
$(document).ready(() => {
//Bind Radio Button Events
$("#include-sentry").on("click", includeTwitterSentry);
$("#exclude-sentry").on("click", excludeTwitterSentry);
$("#include-all").on("click", includeAllRecords);
//Bind Point Radius Slider
$("#pointRadius").val("6").html("6px");
$... |
import { assign, defaults } from "lodash";
import React, { PropTypes } from "react";
import {
PropTypes as CustomPropTypes, Helpers, VictoryTransition, VictoryLabel
} from "victory-core";
import AxisLine from "./axis-line";
import GridLine from "./grid";
import Tick from "./tick";
import AxisHelpers from "./helper-me... |
/*
* L4D2.js
* Demonstrate lighting.
*
* Adapted for WebGL by <NAME>, 2016.
*/
/*
2. Locate the default light settings in the render() function. Is this a positional or directional light?
Positional/Point light
- Directional
How can you tell?
- Because the fourth coordianate in the lpos is 0... |
// assumes one record per device-type per location
var data_master,
map,
marker,
feature_layer,
table,
filters,
selector_change,
curr_breakpoint;
var prev_breakpoint = undefined;
var show_modal = false;
var q = d3.queue();
var location_id_field = "atd_location_id";
var comm_status_field = "ip_comm_stat... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.Group = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _startsWith = _interopRequireDefault(require("lodash/startsWith"));
... |
/*
Copyright 2017, 2018 IBM All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const {Utils: utils, BaseClient} = require('fabric-common');
const FabricCAClient = require('./FabricCAClient');
const {normalizeX509} = BaseClient;
const util = require('util');
const path = require('path');
c... |
import _ from 'lodash';
import React from 'react';
import {
FormattedMessage,
FormattedTime,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import {
Button,
MultiColumnList,
Dropdown,
DropdownMenu,
Popover,
IconButton,
ExportCsv,
} from '@folio/stripes/components';
import {
... |
const TelegramBot = require('node-telegram-bot-api');
var helper = require('../../CommonHelper');
var config = require('../../config/config').config;
var StringBuilder = require("string-builder");
var sb = new StringBuilder();
const translate = require('google-translate-api');
var botLib = require('../../lib/botlib');
... |
/*
* Diigo inc.
* PDF reader and annotations
*
* use for general use
*
* Jiangbin
* April 2014
*
* */
//Use window.DEBUG to turn on/off debug output.
window.DEBUG = false;
window.DIIGO_PDF_URL = null;
window.DIIGO_LINK_ID = null;
window.DIIGO_PDF_TITLE = null;
window.DIIGO_REQUEST_SERVER = 'https://www.diigo.c... |
import _ from 'lodash';
import * as THREE from 'three';
import Parser from './Parser';
import chem from '../../chem';
const {
Complex,
Element,
SGroup,
Bond,
} = chem;
const cOrderCharCodes = {
A: 0,
S: 1,
D: 2,
T: 3,
};
const cmlStartRegexp = /\s*<\?xml\b[^?>]*\?>\s*<(?:cml|molecule)\b/i;
class CML... |
/*-------------------------------------
add images with data attributes
---------------------------------------*/
(($) => {
if ('objectFit' in document.documentElement.style === false) {
$('.bg-image').each(function attachBg() {
const img = $(this);
const src = img.attr('src');
... |
import { ObjectUtils } from "/obvia/lib/ObjectUtils.js";
import { StringUtils } from "/obvia/lib/StringUtils.js";
import { get } from "/obvia/lib/my.js";
var ApiClientGen = function (_props) {
let _defaultParams = {
url: "yaml_url",
requestBodyParamMode: 1,
title: "",
typeNamePrefix... |
var $ = require('jquery');
var _ = require('underscore');
var Backbone = require('backbone');
var marked = require('marked');
const moment = require('moment-timezone');
var BaseView = require('../../../../base/base_view');
var UIConfig = require('../../../../config/ui.json');
var ModalComponent = require('../../../../c... |
// \texttt{list.js START} \begin{lstlisting}
/**
* makes a pair whose head (first component) is <CODE>x</CODE>
* and whose tail (second component) is <CODE>y</CODE>.
* @param {value} x - given head
* @param {value} y - given tail
* @returns {pair} pair with <CODE>x</CODE> as head and <CODE>y</CODE> as tail.
*/
f... |
var ONYX = "http://www.gsi.dit.upm.es/ontologies/onyx/ns#";
var RDF_TYPE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
var plugins_params = default_params = {};
var plugins = [];
var defaultPlugin = {};
var gplugins = {};
var pipeline = [];
var converter = new showdown.Converter({simplifiedAutoLink: true});
fu... |
const FONT_HEIGHT = 12;
const LINE_HEIGHT = 20;
const canvas = window.canvas;
let defaultFont = '';
let fontDescent = 0;
let drawPending = false;
// "blocks" is a list of block objects.
// Each block object has a list of strings in "lines",
// and a "color".
const blocks = [];
const blocksWithLineBreaks = [];
let b... |
import React from "react";
import { connect } from "react-redux";
import StreamgraphChart from "../templates/StreamgraphChart";
// importing this for the linter
import d3 from "d3";
import $ from "jquery";
import {
getLabelPosition,
recalculateOverlappingLabels,
setTM,
transformData,
} from "../utils/streamg... |
import React, {PureComponent, Fragment} from 'react';
import {connect} from 'dva';
import {formatMessage, FormattedMessage} from 'umi-plugin-react/locale';
import styles from './DataSyncList.less';
import T from './../../utils/T';
import router from 'umi/router';
import {EnumDataSyncPageInfo} from './../../cons... |
var representationParamsFnMap = {
"ball+stick" : function(p) { p.multipleBond = true }
}
function resizeNglViewer(divid, width, height) {
var outerDiv = $('#' + divid);
outerDiv.css("width", width + "px");
outerDiv.css("height", height + "px");
fitNglViewer(divid);
}
/** Resize the stage */
funct... |
var ChainFind = require("./ChainFind");
var Instance = require("./Instance").Instance;
var LazyLoad = require("./LazyLoad");
var ManyAssociation = require("./Associations/Many");
var OneAssociation = require("./Associations/One");
var ExtendAssociation = require("./Associations/Extend");
... |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function updateDummy(bal, totalspent, amount, lastdebit, color) {
var someDummy = Alloy.Models.dummy;
someDummy.set({
... |
'use strict'
function checkFloatTextures() {
var ctx = document.createElement( 'canvas' ).getContext( 'experimental-webgl' );
return ctx.getExtension( 'OES_texture_half_float' );
}
function check() {
checkFloatTextures();
init();
}
if( Detector.webgl ) {
window.addEventListener( 'load', check, false );
} el... |
const Post = require('./models/Post.js')
const RegisteredUser = require('./models/RegisteredUser.js')
const Category = require('./models/Category')
const Message = require('./models/Message.js')
const multer = require('multer')
const sharp = require('sharp')
const path = require('path')
const fs = require('fs')
const h... |
#!/usr/bin/env node
/**
* The backrefs analyzer takes links to a ED crawl folder and a TR crawl folder,
* and creates a report that lists, for each spec:
*
* - Links to anchors that do not exist
* - Links to anchors that no longer exist in the ED of the target spec
* - Links to anchors that are not definitions or... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
/**
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"... |
// set the dimensions and margins of the graph
var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = 1260 - margin.left - margin.right,
height = 800 - margin.top - margin.bottom;
// parse the date / time
var parseTime = d3.timeParse("%d-%b-%y");
var allwords = []
// set the ranges
var x = d3.scale... |
// Generated by LispyScript v1.0.0
var display = function(value) {
return console.log(value);
};
var warn = function(value) {
return console.warn(value);
};
var newline = function() {
return console.log("");
};
var round = function(value) {
return parseInt(value,10);
};
var flip = function(fn) {
ret... |
const fs = require('fs');
const _ = require('underscore');
const React = require('react');
const $ = require('jquery');
const diff = require('diff');
const interpreter = require('./interpreter');
const ui = require('./renderer');
const cell_height = ui.cell_height;
function fade_background_color($element, alpha, colo... |
"use strict";
// Imports
// ====
var _ = require('underscore');
// Module
// ====
var util = {};
// UUID Generator
// -----------------
/*!
Math.uuid.js (v1.4)
http://www.broofa.com
mailto:<EMAIL>
Copyright (c) 2010 <NAME>
Dual licensed under the MIT and GPL licenses.
*/
util.uuid = function (prefix, len) {
v... |
var test = require('tape');
var fs = require('fs');
var url = require('url');
var path = require('path');
var assert = require('assert');
var tm = require('../lib/tm');
var applog = require('../lib/log');
var dirty = require('dirty');
var tmppath = tm.join(require('os').tmpdir(), 'mapbox-studio', 'tm-' + +new Date);
va... |
import React, { Component } from "react";
import { observer } from "mobx-react";
import { Divider, withStyles, Typography } from "@material-ui/core";
import moment from "moment";
import notifications from "../../../../stores/notifications";
import Bigneon from "../../../../helpers/bigneon";
import PageHeading from "..... |
function add_client_message(message) {
data = {};
data.message = message;
var now = NDateTime.Now();
data.datetime = now.ToString("yyyy-MM-dd HH:mm:ss.ffffff");
data.class = "info";
data.source = "Client";
add_message(data);
}
function add_message(data) {
$("div#m... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './style.scss';
const CronBuilder = require('cron-builder');
class CronJob extends Component {
constructor(props) {
super(props);
this.state = {
// Display the date time pickers inputs
// according to the sche... |
const GameStorageCtrl = (function(){
let scoresArray, scoresNumbers
return{
returnScoresArray: function() {
return scores
},
returnScoresNumbers: function() {
return scoresNumbers
},
registerNewRecord: function(newRecordObj) {
let indexToReplace = null
for(i = 0; i <= scoresAr... |
import React from 'react'
import {connect} from 'react-redux'
import {Row, Col, Card, Spin, Table, Radio, Button} from 'antd'
import {
getTaskAbnormalCollect,
getTaskAbnormalCountDTO,
getProjectNumCount,
getWorkHourTrend,
} from "../../../apis";
import moment from "moment";
import numeral from 'numeral';
impo... |
/**
* Created by caoshuaibiao on 2019/1/8.
* 简单表格展示
*/
import React from 'react';
import PagingTable from "../../../../../components/PagingTable";
import SimpleForm from "../../../../../components/FormBuilder/SimpleForm";
import properties from 'appRoot/properties';
import { Spin, Button, Card, Modal, Tooltip, List... |
import React, {Component} from 'react';
import {Platform,
StyleSheet,
Text,
View,
AsyncStorage,
Image,
TextInput,
TouchableWithoutFeedback}
from 'react-native';
import {Icon} from 'native-base';
import {Marker} from 'react-native-maps';
import MapView from 'react-native-maps';
import Constant... |
import {defs, tiny} from './common.js';
// Pull these names into this module's scope for convenience:
const {vec3, unsafe3, vec4, color, Mat4, Light, Shape, Material, Shader, Texture, Scene} = tiny;
export class Body {
// **Body** can store and update the properties of a 3D body that incrementally
// moves fr... |
import '../styles/main.scss';
import '../styles/themes.scss';
import '../styles/page.scss';
import '../styles/list.scss';
import '../styles/sidenav.scss';
import '../styles/tile.scss';
import '../styles/contextMenu.scss';
import '../styles/dialogs.scss';
import '../styles/help.scss';
import '../styles/override... |
'use_strict';
import React, { PropTypes, Component } from 'react';
import {
View,
Text,
ScrollView,
Image,
StyleSheet,
Platform,
Dimensions,
AppRegistry,
DatePickerIOS,
TimePickerAndroid,
TouchableHighlight,
Modal,
Button,
ActivityIndicator,
Alert,
Keyboa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const luxon_1 = require("luxon");
const Error_1 = require("./Error");
const { str, sequenceOf, choice, char, digit, whitespace, optionalWhitespace, sepBy1, many1, possibly, fail } = require("arcsecond"); // TODO: wait for this library to add t... |
/*
* rollup-plugin-assets
* @Author: Jack.Chan
* @website: https://fulicat.com
* @github: https://github.com/fulicat/rollup-plugin-assets
* @Date: 2021-05-12 13:55:51
* @Last Modified by: Jack.Chan
* @Last Modified time: 2021-05-20 15:23:17
*/
const fs = require('fs');
const path = require('path');
c... |
$(function () {
//alert if report failed to create
if (typeof error_failed !== 'undefined') {
Swal.fire(
'Error!',
error_failed,
'error'
)
}
// Autogrow Textarea
autosize($('textarea'));
//Token_CSRF
var token = $('meta[name="csrf-token"]').attr('content')
//Focus input if its has value
$('.inp... |
function setCookie (name, value, expires, path, domain, secure) {
document.cookie = name + "=" + value +
((expires) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
function setCookies(name,value,cl)
{
va... |
var aliveRules = {};
/*
** Get Elements in Page
*/
const ruleIdInput = document.getElementById("rule_id");
const ruleNameInput = document.getElementById("rule_name");
const ruleDisableInput = document.getElementById("disable_rule");
const triggerUriInput = document.getElementById("trigger_uri");
const loopUriInput = do... |
angular.module('theme_cms_app', ['slugifier', 'ui.sortable', 'ui.tinymce', 'ngSanitize', 'ui.bootstrap', 'ui.utils']).
factory('pages_factory', function($http){
return {
listAll : function(){
var promise = $http.get(apps_url+'theme_cms/list_pages').then(function(response){
return response.data;
});
... |
"use strict";
import React from "react";
class PatternHeader extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
tipsAndTricksVisible: false,
};
this.setPatternName = this.setPatternName.bind(this);
this.setTipsAndTricksVisible = this.setTipsAndTricksVisible.b... |
/* eslint no-unused-vars: ["error", {
"varsIgnorePattern": "[(timeoutId)|(step)|(duration)]",
"vars": "local",
}] */
/* global figure getShapes getPosition */
/* eslint-disable block-scoped-var, object-property-newline */
if (typeof process === 'object') {
/* eslint-disable global-require, no-unused-vars, vars... |
var curClickedObj = null;
var searchType = 'none';
var excludeDocs = [];
function print_json(results) {
hide_query_panel();
$('.progress').css('display', 'none');
$('#analysis').css('display', 'none');
$('#w_id1').val('');
$('#l_id1').val('');
$("#search_results").html('<pre><code id="debug_code">'... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _utils = require("@parcel/utils");
var _logger = require("@parcel/logger");
var _sourceMap = require("@parcel/source-map");
var _diagnostic = _interopRequireWildcard(require("@parcel/diagnostic"));
var _st... |
#!/usr/bin/env node
const fs = require('fs');
const {spawn} = require('child_process');
const tls = require('tls');
const pathToFfmpeg = require('ffmpeg-for-homebridge');
const program = require('commander');
const {Blink} = require('./blink');
const {sleep} = require('./utils');
const {Http2TLSTunnel} = require('./pr... |
module.exports = exports = {};
const $ = require('jquery');
const _ = require('lodash');
const Backbone = require('backbone');
const sha256 = require('sha256');
const THREE = require('three');
const {MeshLine, MeshLineMaterial} = require( 'three.meshline' );
const MicropedeAsync = require('@micropede/client/... |
import * as Gbi from "../../../../../include/gbi"
import {
outside_0900BC00} from "../../../../../textures/outside"
const castle_courtyard_seg7_vertex_07005110 = [
{ pos: [ -921, 20, -3526 ], flag: 0, tc: [ 990, 0 ], color: [ 255, 255, 255, 255 ] },
{ pos: [ -716, 20, -3526 ], flag: 0, tc: [ 0, 0 ], color: [ 255, 25... |
export const red50 = '#ffebee'
export const red100 = '#ffcdd2'
export const red200 = '#ef9a9a'
export const red300 = '#e57373'
export const red400 = '#ef5350'
export const red500 = '#f44336'
export const red600 = '#e53935'
export const red700 = '#d32f2f'
export const red800 = '#c62828'
export const red900 = '#b71c1c'
e... |
'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]; } } }... |
/****************
author:棒棒糖
version:1.2.1
优化属性控制调和属性值之间的联动(2017.8.4)
version:1.2.2
增加热点样式选项(2017.8.8)
***********/
var krpano = document.getElementById("krpanoSWFObject");
var spotname=""; //热点名字
var result_code=""; //代码结果
var update_status=true; //场景列表更新状态
var wh_status=false; //是否显示热点宽高.默认不显示
var tex... |
import commonUtil from "./common-util.js";
/**
* 拖拽功能实现方法,调用beginDrag触发拖拽功能
* @param {*} pageClass 模板容器class名称,string类型
*/
function Dragger(pageClass) {
this.pageClass = pageClass;
}
Dragger.prototype = {
beginDrag({
event,
$pageContainer, // 模板容器,页面dom
$movingBoundary, // 可移动的边界,dom对象
dragWrap... |
/**
* PhizeUp.js - A reimplementation of basic SizeUp functionality using the Phoenix window manager.
*
* Window partitions are as follows.
*
* +-----+-----+ +----------+ +-----+-----+ +--------------+
* | | | | | | | | | |
* | | | | Up | | TL | TR | | ... |
/**
* Generates a giant JSON object of the current configuration of the cluster.
*/
const sg = require('sgsg');
const _ = sg._;
const serverassist = sg.include('serverassist') || require('serverassist');
const MongoClient = require('mongodb').MongoCl... |
"use strict";
/* set constants */
var CHUNK_SIZE = 65536;
var FIRST_CHUNK_SIZE = 1024;
var CHUNK_MULTIPLIER = 16;
var DOWNLOAD_TASK_TIMEOUT = 70*1000;
var DOWNLOAD_CHUNK_TIMEOUT = 30*1000;
var NUM_OF_CHANNELS = 5;
var NUM_OF_SIGNAL_CONNECTIONS = 1;
var MAX_CHUNKS_IN_BUFFER = 500;
var DOWNLOAD_CHANNEL_OPENING_TIMEOUT =... |
'use strict';
const Value = require('./Value');
const CompletionRecord = require('./CompletionRecord');
const ClosureValue = require('./values/ClosureValue');
const ObjectValue = require('./values/ObjectValue');
const FutureValue = require('./values/FutureValue');
const RegExpValue = require('./values/RegExpValue');
c... |
import React from 'react';
import PropTypes from 'prop-types';
import DatePicker from './DatePicker';
import { ComponentBase, ComponentComposer } from '@kuveytturk/boa-base';
import { IconButton } from '../IconButton';
import {
getFormatDecomposition,
receiveFormat,
momentFormat,
isEqualDateTime,
getDatePicke... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
mergeStyles,
GlobalContext,
GALLERY_TYPE,
UploadServiceContext,
} from 'wix-rich-content-common';
import {
Tabs,
Tab,
LabeledToggle,
SettingsSection,
SettingsPanelFooter,
FocusManager,
SettingsMobileHeader,
Se... |
import { html, css, unsafeCSS } from "lit-element";
import { unsafeHTML } from "lit-html/directives/unsafe-html";
import { ifDefined } from "lit-html/directives/if-defined";
import { classMap } from "lit-html/directives/class-map";
import { styleMap } from "lit-html/directives/style-map";
import BTBase from "../bt-bas... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _styledComponents = _int... |
import Rx from 'rx';
import moment from 'moment';
import request from 'request';
import extend from 'extend';
const just = Rx.Observable.just;
const justThrow = Rx.Observable.throw;
export class Intelligence {
constructor(tagFollowers) {
this._tagFollowers = tagFollowers;
}
respond(input, nicknam... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _classCallCheck = _interopDefault(require('babel-runtime/helpers/classCallCheck'));
var _createClass = _interopDefault(require('babel-runtime/helpers/createClass'));
var _extends = _int... |
var $container = null;
var $infwindow = null;
var delay = (function () {
var timer = 0;
return function (callback, ms) {
clearTimeout(timer);
timer = setTimeout(callback, ms);
};
})();
var isNull = function(value) {
return typeof value === "undefined" || value === null;
};... |
// this renders a given GridPrender to a HTML canvas\
import {
CellularAutomata,
Viewer,
Vector,
NSet,
} from './import';
class CARender
{
constructor(configs)
{
// stores a reference
this.configs = configs;
// FPS controller stuff
this.configs.fps = configs.fp... |
//Date picker
//CKeditor
CKEDITOR.replace( 'ta_add_content' );// tham số là biến name của textarea
//Image Upload
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#blah').attr('src', e.target.result);
}
... |
/* HTML markup for beginning and end of code snippets */
const start = `<pre><code class='language-javascript'>`;
const end = `</code></pre>`;
/***********************************
* Create Code Snippets
*********************************** */
const STRING_CORERCION = {
snippet:`
${start}console.log(1 + -"1" + "2" +... |
var AtlasControlAdapter = require('./atlas_control_adapter').AtlasControlAdapter;
var AtlasSphere = require('./atlas_sphere').AtlasSphere;
var AtlasSpriteSheetControls = require('./atlas_sprite_sheet_controls').AtlasSpriteSheetControls;
var AtlasImageWithProgress = require('./atlas_image_with_progress').AtlasImageWithP... |
/* Configure script for xmlsec, specific for Windows with Scripting Host.
*
* This script will configure the libxmlsec build process and create necessary files.
* Run it with an 'help', or an invalid option and it will tell you what options
* it accepts.
*
* March 2002, <NAME> <<EMAIL>>
* Created for LibXML and ... |
'use strict';
var mouse = {
x: null,
y: null,
buttons: null,
start: null,
scroll: 0
};
var keyboard = {prev:{}};
var debug_output = null;
var debug_lines = {};
var ctx=null;
var background = generate_background(1200);
document.addEventListener('DOMContentLoaded',function() {
var canvas = d... |
var MinSignal = require('min-signal');
var contains = require('mout/array/contains');
var forEach = require('mout/array/forEach');
var undef;
var _win = window;
var _doc = document;
var _documentElement = _doc.documentElement;
var _isDownSkippedPreventDefault = false;
exports.hasTouch = 'ontouchstart' in _win;
//ex... |
import React, { Component } from 'react';
import {StyleSheet,View,Dimensions,Alert,Button, Text,RefreshControl,ScrollView} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'
import MaterialIcons from 'rea... |
import React, { useEffect, useState } from 'react';
import { Link, Head, useForm } from '@inertiajs/inertia-react';
import AddStake from '@/Components/AddStake';
import AddInvestment from '@/Components/AddInvestment';
import LocalizedStrings from 'react-localization';
import stringss from "../../strings";
import Guest ... |
import React, { Component } from "react"
import Layout from "../layouts/index"
import { graphql } from "gatsby"
import { Helmet } from "react-helmet"
import axios from "axios"
import "./css/index.css"
import "./css/home.css"
import Slider from "react-slick"
import "slick-carousel/slick/slick.css"
import "slick-carousel... |
"use strict";
var it = require('it'),
assert = require('assert'),
comb = require("index");
var getTimeZoneOffset = function (date) {
var offset = date.getTimezoneOffset();
var tz = [
(offset > 0 ? "-" : "+"),
comb.string.pad(Math.floor(Math.abs(offset) / 60), 2, "0"),
comb.strin... |
const ARRAY_TYPE = Float32Array;
export default class Mat4 {
/**
* column-major m_column_row
* | m00 m10 m20 m30 |
* | m01 m11 m21 m31 |
* | m02 m12 m22 m32 |
* | m03 m13 m23 m33 |
* @param {Number} m00
* @param {Number} m01
* @param {Number} m02
* @param {Number} m03
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.