text
stringlengths
3.22k
29.5k
import * as THREE from 'three'; function isIntersectedOrOverlaped(a, b) { return !(a.left > b.right || a.right < b.left || a.top > b.bottom || a.bottom < b.top); } // find label in children function hasLabelChildren(object) { const parent = object.parent; return parent.material && !parent.material...
const apiManhuatai = require('../../api/manhuatai'); const apiComment = require('../../api/comment'); const WxParse = require('../../wxParse/wxParse.js'); const filter = require('../../utils/filter'); const emoji = require('../../data/emoji'); const common = require('../../utils/common'); const app = getApp(); Page({...
"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]; })...
import { extractDestination, nextAlphanumeric, nextWSSubscriptionId } from '../util/utils.js'; import { COMMIT, FILES, NEW_FILE, PARTICIPATION_WITH_RESULT, PROGRAMMING_EXERCISE, PROGRAMMING_EXERCISES_SETUP, SCA_CATEGORIES } from './endpoints.js'; import { fail } from 'k6'; import { programmingExerciseProblemStatementJa...
import includes from 'lodash/includes'; import tokenTypes from './tokenTypes'; import Indentation from './Indentation'; import InlineBlock from './InlineBlock'; import Params from './Params'; const trimSpacesEnd = str => str.replace(/[ \t]+$/u, ''); export default class Formatter { /** * @param {Object} cfg *...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Slider = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _DomHandler = _interopRequireDefault(require("../utils/DomHandler")); var _classnames =...
var extend = require("../core/utils/extend").extend, each = require("../core/utils/iterator").each, vizUtils = require("./core/utils"), uiThemes = require("../ui/themes"), themes = {}, themesMapping = {}, themesSchemeMapping = {}, _extend = extend, _each = each, _normalizeEnum = vizU...
/** * For More Sites in Morpheus */ var dhtml_view_sites = function(){ // first time through set up the DOM $PBJQ('#selectSite').appendTo('#linkNav').addClass('dhtml_more_tabs'); // move the selectSite in the DOM $PBJQ('.more-tab').position(); // then recast the function to the post initialized state which...
/** * Module dependencies. */ var passport = require('passport') , url = require('url') , querystring= require('querystring') , util = require('util') , utils = require('./utils') , OAuth2 = require('oauth').OAuth2 , setup = require('./setup') , InternalOAuthError = require('./errors/internaloautherror'...
var directws,directstarttime; var gaws,gastarttime; var cdnws,cdnstarttime var selectedRegion; var currentregion; var table,row,direct_cell,ga_cell,cdn_cell; var content; var loop=0; var frankfurt_directurl = 'ws://35.158.115.62' var frankfurt_gaurl = 'ws://aa204fb2285eaba0f.awsglobalaccelerator.com' var frankfurt_cdn...
"use strict"; // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Per...
// 飘落效果(根据四季自动变换) let weatherImg; let param={}; $.ajax({ type: 'GET', url: 'https://api.swordpal.cn/currentWeatherImg', data: param, dataType: 'json', error: function () { console.log("获取天气异常"); }, success: function (res) { console.log("调...
let element_id = 0 function convertTime(time) { // "20190410 15:10:46.276" => "2019-04-10 15:10:46.276" const t = time.split('') t.splice(4, 0, '-') t.splice(7, 0, '-') time = t.join('') return Date.parse(time) } export function processRobotResultXML(xmlDoc) { const root = xmlDoc.documentElement const...
/** * RTC 封装 */ import ArRTC from "ar-rtc-sdk"; // 页面提示 import { ElMessage, ElNotification } from "element-plus"; // 公共方法 import { getServeInfo } from "./common"; // vuex import store from "@/store"; // import Route from "@/router"; import { LogoutRTM } from "./rtm"; // 相关接口 import { joinRoom, leaveRoom } from "@/api...
"use strict"; exports.__esModule = true; var express = require("express"); var needle = require("needle"); var moment = require("moment"); var ical = require("ical"); var app = express(); var cors = require("cors"); var mfp = require("mfp"); // MyFitnessPal app.use(cors()); // Metadata var nomadlistUser = "krausefx"; v...
import React, { PureComponent } from 'react'; import { connect } from 'react-redux'; import { withNavigation } from 'react-navigation'; import { ActivityIndicator, FlatList, Text, View } from 'react-native'; import ImageViewer from 'react-native-image-zoom-viewer'; import moment from 'moment'; import HollowButton from...
// MongoDB表字段结构 /* // 所有的定义性质的数据放到system数据库 // 后期允许客户自定义数据库,当前不允许 use system switched to db system db.tables.insert({ name: "新的表", code: "Table_Code", columns: [ {...ColumnStruct} ] }) */ /* 关于表单的设计器:创建一个表单,将创建一个物理页面(编译相关代码,生成物理代码,加速浏览效果) */ const arrToDict = arr => { let dict = {}; ...
var express = require('express'); var multer = require('multer') var path = require('path'); var app = express(); var fs = require('fs'); var bodyParser = require("body-parser"); var pg = require('pg'); const {Client } = require('pg') var copyFrom = require('pg-copy-streams').from; var first = require('firstline'); var...
'use strict'; const colors = { red: 'rgb(255, 99, 132)', orange: 'rgb(255, 159, 64)', yellow: 'rgb(255, 205, 86)', green: 'rgb(57, 191, 57)', blue: 'rgb(54, 162, 235)', purple: 'rgb(153, 102, 255)', grey: 'rgb(231,233,237)' }; let graphType = 'bar'; let timeFormat = 'YYYY-MM-DD'; let tooltipFormat = 'll...
import React from 'react'; import { Box, Link, Typography } from '@material-ui/core'; import _ from 'lodash'; import { splitStringInParentheses } from '../utils'; export const mapMaxPhase = (value) => ({ 1: String.fromCodePoint(8544), 2: String.fromCodePoint(8545), 3: String.fromCodePoint(8546), 4: ...
// @ts-check 'use strict'; const chalk = require( 'chalk' ); const clone = require( 'git-clone' ); const commander = require( 'commander' ); const fs = require( 'fs-extra' ); const packageJson = require( './package.json' ); const path = require( 'path' ); const replace = require( 'replace-in-file' ); // @TODO: Update...
"use strict"; const axios = require("axios"); const secretKeys = require("../config/secrets"); const cityNameFormats = require("./cityObjs"); const { db, models: { User, City, PrimaryStats, LivingCost, Healthcare, Transportation, Pollution, Weather, Message, Channel, // C...
const resultContainer = "[data-instant-search-output=\"results\"]"; const priceContainer = "search-result-price"; const similarContainer = "\"search-result-similar\""; const promoTextContainer = "search-promo-text"; const promoLabelContainer = "\"search-promolabel\""; const makelaarContainer = "search-result-makelaar";...
var module; var problematicRefs = {}; (function() { function Ref(ref, lastRef) { if(/[IV]/i.test(ref.bookNum||"")) { ref.bookNum = ref.bookNum.replace(/iv/i,'iiii').trim().length; } if(ref.book == 'Esdr' && ref.bookNum == 2) { delete ref.bookNum; ref.book = 'Neh'; } if(/^ibid$/i.test(this.book))...
import React, { useState, useEffect } from 'react'; import { connect } from 'react-redux'; import TimePeriodRender from './TimePeriodRender'; import { updateTimePeriod, loadFilterMapping, resetFilter, updateFilterCriteria } from '../../../../store/actions/customDataDownload/filterCriteria'; import { addAppliedFilter, ...
// renderer.js: gltf scene renderer import { renderContext as rc } from '../render-context.js' import { mathUtils } from '../utils/math-utils.js' // screen drawcall for post process let screenVbo = rc.createVertexBuffer().setData(new Float32Array([-1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0, 1.0])); let screenDrawca...
"use strict"; var fs = require('fs'); var http = require('http'); var minimist = require('minimist'); var os = require('os'); var path = require('path'); var binaries_1 = require('../binaries'); var gecko_driver_1 = require('../binaries/gecko_driver'); var cli_1 = require('../cli'); var config_1 = require('../config');...
"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]; })...
var grid; function initGrid(){ grid = $('#maingrid').WSTGridTree({ url:WST.U('admin/wxmenus/pageQuery'), pageSize:10000, pageSizeOptions:[10000], height:'99%', width:'100%', minColToggle:6, delayLoad :true, rownumbers:true, columns: [ { display: '分类名...
/* eslint-disable default-case */ import React, { Component } from "react"; // import { Bar, Doughnut, Pie } from 'react-chartjs-2'; import { Card, CardBody, CardHeader, Col, Row, Label, Input, Button, } from "reactstrap"; import axios from "axios"; import { BarChart, Bar, XAxis, YAxis, Cartes...
// Module core/issues-notes // Manages issues and notes, including marking them up, numbering, inserting the title, // and injecting the style sheet. // These are elements with classes "issue" or "note". // When an issue or note is found, it is reported using the "issue" or "note" event. This can // be used by a contai...
import React from 'react' import { useState, useEffect } from 'react' import Grid from '@mui/material/Grid'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import IconButton from '@mui/material/IconButton'; import AppBar from '@mui/material/AppBar'; import Paper from '@...
const THREE = require('three'); const { error } = require('../../../core/lib/Error'); const getSSAAChunkedRender = require('../helpers/SSAAChunkedRender'); /** * @memberof K3D.Providers.ThreeJS.Initializers * @inner * @param {K3D.Core} K3D Current K3D instance * @param {Object} on Internal type of...
import WebApi from './webApi.js'; import Api from './api.js'; import Util from './util.js'; /** 申报部分 start */ // 获取材料列表 function getMaterialList(permId) { return new Promise(function(resolve, reject) { let params = { "PERMID": permId }; console.log("获取材料列表"); WebApi.soup(Api.url_base_apply_get_...
// //load $(document).ready(function() { // addSantri("TMI"); setTable(); $(".select2").select2(); $('.datepicker').datepicker( { rtl: App.isRTL(), orientation: "left", autoclose: true, format: 'dd-mm-yyyy' }); $('.numbers-only').keypress(function(event) { var charCode = (event.which) ? event....
import React from 'react'; import PropTypes from 'prop-types'; import Amplify, { Auth, Hub } from 'aws-amplify'; import { withOAuth } from 'aws-amplify-react'; import ReactLoadingOverlay from 'react-loading-overlay'; import { AuthStorageIDB } from 'cognito-auth-storage'; const withCognitoHUI = (WrappedComponent = nul...
import { filter } from 'lodash' import { sentenceCase } from 'change-case' import { useEffect, useState } from 'react' import { Link as RouterLink } from 'react-router-dom' import { Icon } from '@iconify/react'; import { useSnackbar } from 'notistack' // import editFill from '@iconify/icons-eva/edit-fill'; // ...
/** * Arguments. */ var args = process.argv.slice(2); /** * Module dependencies. */ var migrate = require('./lib/migrate'), path = require('path'), join = path.join, fs = require('fs'); /** * Option defaults. */ var options = { args: [] }; /** * Current working directory. */ var previousWorkingDirectory =...
"use strict"; let contract = require('truffle-contract'); let Web3 = require('web3'); let HDWalletProvider = require('@truffle/hdwallet-provider'); let dotenv = require('dotenv').config({ path: require('find-config')('.env') }) // let dotenv = require('dotenv').config({path:'../.env'}) // let dotenv = require('dotenv...
var { isDefined, isSymbol, isArray, isBuffer, isDef, isFun, isEmpty, isFunction, isNumber, isBound, isString, isSystemFun, readBuffer, equals, stringify, getFunctions, getStrings, isExpressionTree, toRef, fromRef, isRef, pretty } = require('../util') var syms = require('../symbols') function isSingleL...
/* @licstart The following is the entire license notice for the JavaScript code in this file. The MIT License (MIT) Copyright (C) 1997-2020 by <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...
/* * Copyright 2014 Fitbit, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following discl...
import fs from "fs"; import path from "path"; import { v4 as uuidv4 } from "uuid"; import * as rollup from "rollup"; import StyleDictionary from "browser-style-dictionary/browser.js"; import { repopulateFileTree, getInputFiles } from "./file-tree-utils.js"; import { configPaths, encodeContents } from "./index.js"; impo...
const mediasoup = require('mediasoup'); const fs = require('fs'); const https = require('https'); const express = require('express'); const socketIO = require('socket.io'); const config = require('./config'); // Global variables // Worker de mediasoup let worker; // worker de mediasoup let mediasoupRouter; /* Route...
var O_IP_RULE_TITLE = "IP Regel-Name"; var O_ID = "ID"; var O_DATE = "Datum"; var O_RISK_SCORE = "Risikowert"; var O_START_IP = "Von IP"; var O_END_IP = "Bis IP"; var O_IP_TYPE = "IP Typ"; var O_ADD_AN_IP = "Neue IP"; var O_IP_RULE = "IP Regel-Name"; var O_IP_TYPE = "IP Typ"; var O_RANGE = "Bereich"; var O_S...
var game = { display: { MAP: document.createElement("canvas"), FPV: document.createElement("div"), HID: document.createElement("div"), draw: function (map, fpv) { this.MAP.innerHTML = map.join("\n"); this.FPV.innerHTML = fpv.join("\n"); }, plot...
import React from 'react'; import { EuiText, EuiCode, EuiSpacer, EuiIcon, EuiTextColor, EuiCodeBlock, } from '../../../../src/components'; const longLink = 'http://www.hithereimalongurl.com/dave_will_just_ramble_on_in_a_long_sentence_like_this/?ok=cool'; const wrappingExampleStyle = { width: 290, p...
import { Layouter } from 'pro-layouts'; import defaultStyles from '../../common/defaultStyles'; import { addPresetStyles } from '../presets/presets'; import dimensionsHelper from '../helpers/dimensionsHelper'; import { ItemsHelper } from '../helpers/itemsHelper'; import processLayouts from '../helpers/layoutHelper.js';...
import Parse from 'parse/node'; import { offsetToCursor, cursorToOffset } from 'graphql-relay'; import rest from '../../rest'; import { transformQueryInputToParse } from '../transformers/query'; // Eslint/Prettier conflict /* eslint-disable*/ const needToGetAllKeys = (fields, keys, parseClasses) => keys ? keys.s...
/** * 包含ad-video的属性以及方法 */ // three library import flvjs from 'flvjs'; import Hls from 'hls'; const flvOptions = { //fixAudioTimestampGap: false, //autoCleanupSourceBuffer: true, // 自动清理MSE内存 enableWorker: true, enableStashBuffer: true, stashInitialSize: 128 // 减少首桢显示等待时长 默认384 }; // util fun...
var args = arguments[0] || {}; generartabla() $.popupagregarpedidosugerido.top = "-1000"; function cerrarventanamovimiento() { $.movimientowindow.close(); } llenarconcepto(); llenarpickeralmacen(); function realizarprestamo() { popupconcepto(1) } function agregargasto() { popupconcepto(2) } function popupconcept...
/** * 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...
import isEqual from './util/deep_equal'; const operations = { /* * { command: 'setStyle', args: [stylesheet] } */ setStyle: 'setStyle', /* * { command: 'addLayer', args: [layer, 'beforeLayerId'] } */ addLayer: 'addLayer', /* * { command: 'removeLayer', args: ['layerId']...
let DOM_loaded = false const embed_div = document.createElement("div") embed_div.setAttribute("class", "reddit-embed center") // 1 -> r/anime tab // 2 -> CR tab default_tab = 1 document.addEventListener("DOMContentLoaded", ()=>{DOM_loaded=true}); chrome.runtime.sendMessage('poll-gh', console.log) chrome.storage.syn...
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import injectReducer from 'utils/injectReducer'; import injectSaga from 'utils/injectSaga'; import { connect } from 'react-redux'; import { compose } from 'redux'; import SimpleReactValidator from 'simple-react-validator'; import sa...
/***/ var NULL = null, TRUE = true, FALSE = false; // node [plugin:grunt-runner] var fs = require('fs'), path = require('path'), inherits = require('util').inherits, Emitter = require('events').EventEmitter; var argv = require('named-argv'), grunt = require('grunt'); var Const = { GruntPkg: 'pkg' }; var Default = { ...
// this module parses all the jokes to verify that they are valid and that their structure is not messed up const fs = require("fs-extra"); const jsl = require("svjsl"); const settings = require("../settings"); const debug = require("./verboseLogging"); const languages = require("./languages"); const AllJokes = requi...
const setLayer = (object, layer) => { object.layers.set(layer); object.traverse((o) => { o.layers.set(layer); }); }; const createFloatAttribute = (array, itemSize) => { const typedArray = new Float32Array(flattenArray(array)); return new THREE.BufferAttribute(typedArray, itemSize); }; const createIntA...
var args = require('yargs').argv, path = require('path'), gulp = require('gulp'), $ = require('gulp-load-plugins')(), gulpsync = $.sync(gulp), browserSync = require('browser-sync'), reload = browserSync.reload, PluginError = $.util.PluginError, del = require('del'), karmaSer...
/** * Mahjong - v1.2.0 * /statics/main.js * * CopyRight 2021 (c) yemaster * Released under the MIT license * http://opensource.org/licenses/MIT * */ // Translations const messages = { en: { nav: { home: 'Homepage', settings: 'Settings', room: 'R...
import debugModule from "debug"; const debug = debugModule("debugger:data:decode"); import {BigNumber} from "bignumber.js"; import * as memory from "./memory"; import * as storage from "./storage"; import * as utils from "./utils"; import { WORD_SIZE } from "./utils"; export function read(pointer, state) { if (poi...
/* * LeafletExport * Copyright (c) 2020 <NAME>, <NAME>, pasichnykvasyl (Oswald) * Licensed under MIT license. * This code is derived from https://github.com/pasichnykvasyl/Leaflet.BigImage */ import L from "leaflet" /** Export currently displayed content from the provided Leaflet map instance. The function loads...
(function () { "use strict"; if ( document.getElementById("ts-header").classList.contains("fixed-top") ){ if( !document.getElementsByClassName("ts-homepage")[0] ) { document.getElementById("ts-main").style.marginTop = document.getElementById("ts-header").offsetHeight + "px"; ...
var SocketIp = "172.16.17.32"; var TimeInterval; var getType = 1; var ajaxAddress = "http://kf.weimob.com/"; var Factory = { create: function () { return function () { this.init.apply(this, arguments); } } } var ChatFloatFactory = Factory.create(); ChatFloatFactory.prototype = { init: function ()...
'use strict'; const { methodCallSelector, arrayPrototypeMethodSelector, emptyArraySelector, callExpressionSelector, } = require('./selectors/index.js'); const needsSemicolon = require('./utils/needs-semicolon.js'); const shouldAddParenthesesToMemberExpressionObject = require('./utils/should-add-parentheses-to-membe...
// template import containerTemplate from './template/container.pug' // style import _style from './style.scss'; import isString from '@cycjimmy/awesome-js-funcs/judgeBasic/isString'; import isAudioPlaying from '@cycjimmy/awesome-js-funcs/media/isAudioPlaying'; export default class SimulateChat { /** * @param c...
import dgram from 'dgram'; import net from 'net'; import { ipcMain } from 'electron'; import protobuf from 'protobufjs'; import _ from 'lodash'; import RendererBridge from '../RendererBridge'; import { updateConsole } from '../../renderer/actions/ConsoleActions'; import { ansibleDisconnect, infoPerMessage, updat...
import {mount, createLocalVue} from '@vue/test-utils'; import ListingDetail from "../components/ListingDetail" import Vuesax, { wrap } from 'vuesax'; import api from "../Api"; import axios from "axios"; let wrapper; const localVue = createLocalVue(); localVue.use(Vuesax); let testListing = { "id": 1, "inventoryI...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import _ from 'lodash'; import { Form, Input, Radio, Modal } from 'antd'; import { STEEM, SBD } from '../../common/constants/cryptos'; import steemAPI from '.....
import { Toast, MessageBox } from "mint-ui"; let videoFirst = 0; //第一次初始化 export default { data() { let that = this; return { swiperOption: { direction: "vertical", observer: true, width: window.innerWidth, height: window.innerHeight, watchOverflow: true, ...
 var connectorPaintStyle = { lineWidth: 2, strokeStyle: "#999", joinstyle: "round", //outlineColor: "white", //outlineWidth: 7 }; var connectorHoverStyle = { lineWidth: 2, strokeStyle: "#225588" }; var sourceEndpointOptions = { endpoi...
import React from 'react' import _ from 'lodash' import { uniTokens } from './Tokens' import { Button, Dropdown, Form, Label, Popup } from 'semantic-ui-react' // function getUniqueListBy(arr, key) { // return [...new Map(arr.map(item => [item[key], item])).values()] // } const tokenSearch = (options, query) => { ...
import React, {Component} from 'react' import {Link} from 'react-router-dom' import {PropTypes} from 'prop-types' import {connect} from 'react-redux' import 'react-datepicker/dist/react-datepicker.css' import {makeStyles, useTheme} from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import Tab...
import { __extends } from "tslib"; import { SerializationHelper } from "@babylonjs/core/Misc/decorators"; import { Color3 } from "@babylonjs/core/Maths/math.color"; import { MaterialDefines } from "@babylonjs/core/Materials/materialDefines"; import { MaterialHelper } from "@babylonjs/core/Materials/materialHelper";...
import React , { Component } from 'react'; import ReactDOM from 'react-dom'; import {configureStore} from './dag-store'; import {getSettings} from './dag-settings'; import uuid from 'node-uuid'; import NodesList from './components/NodesList/NodesList'; require('./styles/dag.less'); var jsPlumb = require('jsplumb'); ...
var level; $(document).ready(function(){ // String replace if (!String.prototype.format) { String.prototype.format = function() { var args = arguments; return this.replace(/{(\d+)}/g, function(match, number) { return typeof args[number] != 'undefined' ? args[number] : match ; }); }; } });...
import { AVAILABILITY_STATE_OK, AVAILABILITY_STATE_WARNING, AVAILABILITY_STATE_ALERT, } from '@shopgate/pwa-common-commerce/product/constants'; /** * Used to filter products by characteristics. * @typedef {Object} ProductFilter * @property {string} id A characteristic id * @property {string} valueId A charac...
let GitHub = { ADD: 'addition', DELETE: 'deletion', NONE: 'none' }; GitHub.BlobLine = class { constructor(idx, text) { this.line_number = idx; this.text = text.replace(/ /g, "&nbsp;"); } renderHtml() { return ` <tr> <td id="L${this.line_number}" class="blob-num js-line-number" da...
var GraphQLType; (function (GraphQLType) { GraphQLType[GraphQLType["SCALAR"] = 0] = "SCALAR"; GraphQLType[GraphQLType["INLINE_FRAGMENT"] = 1] = "INLINE_FRAGMENT"; GraphQLType[GraphQLType["FRAGMENT"] = 2] = "FRAGMENT"; })(GraphQLType || (GraphQLType = {})); var typeSymbol = Symbol('GraphQL Type'); var...
function getCsrf(){ var scrfToken = ""; $.ajax({ type:"get", url:config('ip') + "/web/index.php?r=home/csrf", async:false, success:function(data){ scrfToken = data; } }); return scrfToken; } /*获取url参数*/ function _get() { var url = location.href; var parameter = new Array(); if(url.i...
import React, { Component } from "react" import ReactDOM from "react-dom" import { abi } from "./../build/contracts/PumpAndDump.json" import { contractAddress } from "./constants" import Coin from "./Coin" import Web3 from "web3" import { PortisProvider } from "portis" const ONE_MINUTE = 60000 class App extends Compo...
const router = require('express').Router(); const mime = require('mime-types'); const path = require('path'); const Problem = require('api-problem'); const telejson = require('telejson'); const _ = require('lodash'); const fileUpload = require('./upload'); const validation = require('./validation'); const carboneRen...
import React from 'react' import {Link} from 'react-router-dom' import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {Row, Col, Button, Alert} from 'reactstrap' import requests from '../utils/requests' import {image_thumb, unique} from '../utils' import WithContext from '../utils/context' import {Loadi...
const BASE_URL="http://localhost:8080" const API_VERSION="v1" const NS_URL="namespace" const WORKLOAD_URL = "workloads" let codecopied = document.getElementById("codecopied") // this is going to store the let workloadEleIDMap = {} let loads = document.getElementById("workloads") let ns = document.getElementById("nam...
import React from 'react' import { Entity, Editor, EditorState, RichUtils, AtomicBlockUtils, ContentState, convertToRaw, convertFromHTML, getSafeBodyFromHTML, CompositeDecorator, Modifier } from 'draft-js' import { BUTTON_ITEMS, Controlbar, blockRenderMap, ex...
//////////////////////////////////////////////////////////////////////////////// // description: 魅力值计算接口汇总 // author: scott (<EMAIL>) // date: 20170920 // ATTENTION: // 魅力值主要由以下几个部分构成: // VIP等级:每个VIP等级对应一个值,取最大值 // 炮倍率:每个倍率对应一个值,去最大值 // 皮肤:每个皮肤对应一个值,累加 // 皮肤星级:(后期新增功能预留)每个星期对应一个值,取最大值,多个皮肤则求和 // 收到鲜花:每收到1朵鲜花累加一次 // 使用喇...
const colors = { background: { app: "#151515", button: "C0C0C0", card: "#262626", os: "#000000", }, border: { dark: "#000000", light: "#666666", signal: "#8E1F40", }, signal: { error: "#D73400", main: "#FF4077", }, text: { faded: "#9A9A9A", main: "#C0C0C0", },...
import React from 'react'; import PropTypes from 'prop-types'; import ScrollToTop from 'react-scroll-up'; import { Link, StaticQuery, graphql } from 'gatsby'; import PreviewCompatibleImage from './PreviewCompatibleImage'; import PathContext from '../contexts/PathContext'; //import Header Img import hoverImg from '../...
import React, { useState } from "react"; import { StyleSheet, ImageBackground, Dimensions, StatusBar, KeyboardAvoidingView, Alert, TextInput, View, } from "react-native"; import { Block, Checkbox, Text} from "galio-framework"; import { Button, Icon, Input } from "../components"; import { Images, argonTh...
/** * Simple HTTP requests monitor and analyzer */ 'use strict'; const assert = require('assert'), debug = require('debug')('phantomas:modules:requestsMonitor'); /** * Given key-value set of HTTP headers returns the set with lowercased header names * * @param {object} headers * @returns {object} */ function...
import { PermissionStatus, createPermissionHook, EventEmitter, Platform, } from 'expo-modules-core'; import { _DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLIS, } from '../AV'; import ExponentAV from '../ExponentAV'; import { isAudioEnabled, throwIfAudioIsDisabled } from './AudioAvailability'; import { RECORDING_OPTIONS_PRESET_...
var _ = require('underscore'); var moment = require('moment'); var ChatExpress = require('../chat-platform/chat-platform'); //var prettyjson = require('prettyjson'); var ChatLog = require('../chat-log'); var utils = require('../../lib/helpers/utils'); var when = utils.when; var Alexa = new ChatExpress({ transport: '...
/** * \file PnlIdecScfStatus.js * web client functionality for panel PnlIdecScfStatus * \author <NAME> * \date created: 30 Dec 2017 * \date modified: 30 Dec 2017 */ // IP cust --- INSERT // --- expand state management function minimize() { if (retrieveSi(srcdoc, "StatAppIdecScfStatus", "srefIxIdecVExpsta...
/* * 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 applicable...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
/*\ Tests placeholder macros which were previously created by relink. E.G. \define relink-1() ... \define relink-filter-3() ... \*/ var utils = require("test/utils"); function testText(text, expected, report, options) { options = Object.assign({from: 'from here', to: 'to there'}, options); const wiki = options.w...
/** jQuery Calculation Plug-in**/ (function($) { var defaults = {reNumbers: /(-|-\$)?(\d+(,\d{3})*(\.\d{1,})?|\.\d{1,})/g, cleanseNumber: function (v) { return v.replace(/[^0-9.\-]/g, ""); }, useFieldPlugin: (!!$.fn.getValue), onParseError: null, onParseClear: null}; $.Calculation = {version: "0.4.0...
const SLIDERS = { features: 'featuresSlider', gallery: 'gallerySlider', testimonials: 'testimonialsSlider', } class Slider { constructor(sliderType) { const sliderWrapper = document.getElementById(SLIDERS[sliderType]); this.wrapper = sliderWrapper; if (!sliderWrapper) { return; } th...
import {parseXML} from './xml.js' import {compile} from './compile.js' import {Elmnt} from './dom.js' import {Component} from './component.js' export {Component} from './component.js' let COUNTER = 1 const doc = window.document // ========== // ensure app API // ---------- const ensureApi = (app) => { const objectA...
'use strict'; // External dependencies const express = require('express'); const router = express.Router(); const escapeHTML = require('escape-html'); const url = require('url'); const config = require('config'); const fs = require('fs'); const path = require('path'); // Internal dependencies const Thing = require('.....