text
stringlengths
3.22k
29.5k
/* eslint-disable no-console */ 'use strict'; // const install = require('./install') const runCmd = require('./runCmd'); const getBabelCommonConfig = require('./getBabelCommonConfig'); const merge2 = require('merge2'); const { execSync } = require('child_process'); const through2 = require('through2'); const transfor...
import PropTypes from 'prop-types'; import React from 'react'; import { FlatList, View, StyleSheet, Keyboard, TouchableOpacity, Text, ImageBackground } from 'react-native'; import LoadEarlier from './LoadEarlier'; import Message from './Message'; import Color from './Color'; import { warning } from './utils'; const st...
var AWS = require('../core'); var STS = require('../../clients/sts'); var iniLoader = AWS.util.iniLoader; /** * Represents credentials loaded from shared credentials file * (defaulting to ~/.aws/credentials or defined by the * `AWS_SHARED_CREDENTIALS_FILE` environment variable). * * ## Using the shared credential...
/** * @license * Copyright 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ============================================================================= */ /** * Interfaces and methods for tra...
import * as mars3d from "mars3d" export let map // mars3d.Map三维地图对象 export let graphicLayer // 矢量图层对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) export const mapOptions = { scene: { center: { lat: 31.608821, lng: 117.255084, alt: 32429, heading: 2, pitch: -49 } } } /** * 初始化地图业务,生命周期钩子函数(必须) * 框架在地图初始化完成后自动调...
/** * First we will load all of this project's JavaScript dependencies which * include Vue and Vue Resource. This gives a great starting point for * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); /** * Next, we will create a fresh Vue application instance and attach...
// Copyright (c) YugaByte, Inc. import React, { Component } from 'react'; import Cookies from 'js-cookie'; import { Row, Col, Tab } from 'react-bootstrap'; import { YBFormInput, YBButton, YBToggle, YBControlledSelectWithLabel } from '../common/forms/fields'; import { Formik, Form, Field } from 'formik'; import { brows...
import React from 'react'; import Icon from './Icon'; const Icons = { Add: props => <Icon name="icon_add_30px" {...props} />, Airplane: props => <Icon name="icon_airplane_30px" {...props} />, Alarm: props => <Icon name="icon_alarm_30px" {...props} />, Analyse: props => <Icon name="icon_analyse_30px" {...props}...
/* eslint-disable no-console */ const rainbowLinearGradient = `linear-gradient(to right, hsl(0, 100%, 50%), hsl(39, 100%, 50%), hsl(60, 100%, 50%), hsl(120, 100%, 50%), hsl(180, 100%, 50%), hsl(240, 100%, 50%), hsl(300, 100%, 50%), hsl(360, 100%, 50%) )`; const UnicornLog = { // ==============================...
(function () { var host = "https://localhost:44300"; angular.module("filePicker", []) .controller("searchCtrl", ["$scope", "$http", function ($scope, $http) { $scope.items = []; $scope.searchTerms = ""; $scope.waiting = true; $scope.active_view = "OneDrive"; $scope.b...
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ 'use strict'; /** * Constants */ var DEBUG = false; /** * Debug method */ function debug(msg, optObject) { if (DEBUG) { var output = '[DEBUG # Settings] ' + msg; if (o...
import { _Math } from '../../math/Math'; import { Vector3 } from '../../math/Vector3'; import { Matrix4 } from '../../math/Matrix4'; /** * @author zz85 / http://www.lab4games.net/zz85/blog * Extensible curve object * * Some common of Curve methods * .getPoint(t), getTangent(t) * .getPointAt(u), getTangentAt(u) ...
import React, { Component, Fragment } from "react"; import { connect } from "react-redux"; import PropTypes from "prop-types"; import Button from "@material-ui/core/Button"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typograp...
import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { makeStyles, useTheme } from '@material-ui/core/styles' import useMediaQuery from '@material-ui/core/useMediaQuery' import TextField from '@material-ui/core/TextField' import MenuItem from '@material-ui/core/MenuItem' import T...
var moment = require("../../moment"); function equal(test, a, b, message) { test.ok(Math.abs(a - b) < 0.00000001, "(" + a + " === " + b + ") " + message); } exports.diff = { "diff" : function(test) { test.expect(5); test.equal(moment(1000).diff(0), 1000, "1 second - 0 = 1000"); ...
var map = L.map('map', { center: [13.335017, 101.719808], zoom: 7, zoomControl: false }); var osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', lyr: 'bas...
/* 18.2 Workbook */ var wbnsregex = /<\w+:workbook/; function parse_wb_xml(data, opts) { var wb = { AppVersion:{}, WBProps:{}, WBView:[], Sheets:[], CalcPr:{}, xmlns: "" }; var pass = false, xmlns = "xmlns"; data.match(tagregex).forEach(function xml_wb(x) { var y = parsexmltag(x); switch(strip_ns(y[0])) { cas...
//Requires const modulename = 'OutputHandler'; const fs = require('fs'); const chalk = require('chalk'); const bytes = require('bytes'); const { dir, log, logOk, logWarn, logError } = require('../../extras/console')(modulename); //Helpers const anyUndefined = (...args) => { return [...args].some((x) => (typeof x === '...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i...
var tap_id = []; var tanggal_status = []; var event_type_id = []; var params = {}; var TABLE_TREE = $("#table-tree"); reset(); setParams(); TABLE_TREE.DataTable({ oLanguage: { sProcessing: "loading..." }, processing: true, serverSide: true, tableReload: true, ajax: { "url": base_url + "tree/l...
/** * Copyright 2016 The AMP HTML Authors. 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 require...
/** * Connectix Boards 1.0, free interactive php bulletin boards. * Copyright (C) 2005-2010 <NAME>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at y...
import _ from 'lodash'; import * as d3 from "d3"; // load the data import charList from './data/char_list.json'; import songList from './data/song_list.json'; import rawLines from './data/lines.json'; import themeList from './data/theme_list.json'; import rawCharacters from './data/characters.json'; import rawThemes fr...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {intlShape} from 'react-intl'; import {Keyboard, View} from 'react-native'; import {Navigation} from 'react-native-navig...
import { BufferGeometry, FileLoader, Float32BufferAttribute, Loader, LoaderUtils, Points, PointsMaterial } from '../../../src/Three'; var PCDLoader = function ( manager ) { Loader.call( this, manager ); this.littleEndian = true; }; PCDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {...
import "core-js/modules/es.promise.js"; import "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.string.iterator.js"; import "core-js/modules/es.array.iterator.js"; import "core-js/modules/web.dom-collections.iterator.js"; import "core-js/modules/es.function.name.js"; import "core-js/modules/web.dom-...
import React from 'react' import styled from 'styled-components' import { useStaticQuery, graphql } from 'gatsby' import Img from 'gatsby-image' import Layout from '../layouts' import SEO from '../components/seo' import BG from '../components/bg' import scrollTo from 'gatsby-plugin-smoothscroll' import MiniCard from '....
/* global alert */ import React, { Component } from 'react'; import { View, ScrollView, TouchableOpacity, Text, TextInput, Linking, StatusBar, StyleSheet } from 'react-native'; import { SafeBlueArea, BlueCard, BlueText, BlueLoading, BlueSpacing20, BlueCopyToClipboardButton, BlueNavigationStyle, } from '.....
import { css } from "@emotion/css"; import scrollbarStyles from "../styles/scrollbars.js"; import { defaultBtn } from "../styles/buttons.js"; import { select } from "../styles/inputs.js"; const switchWidth = 50; const switchPadding = 3; const switchHeight = switchWidth / 2 + switchPadding; const switchRadius = switchH...
var __create = Object.create; var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropSymbols = Object.getOwnProp...
'use strict'; Object.defineProperty(exports, '__esModule', {value: true}); function _interopDefault(ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var axios = _interopDefault(require('../../axios')); var R = _interopDefault(require('ramda')); var RS = _interopDefault(requi...
/* * Copyright 2021 Lightbend 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * A JavaScript implementation of the RSA Data Security, Inc. MD4 Message * Digest Algorithm, as defined in RFC 1320. * Version 2.1 Copyright (C) <NAME>, <NAME> 1999 - 2002. * Other contributors: <NAME>, <NAME>, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for more i...
/* Copyright 2019-present OmiseGO Pte Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
var WebGL = require('../../index'), document = WebGL.document(), requestAnimationFrame = document.requestAnimationFrame, fs = require('fs'); eval(fs.readFileSync(__dirname + '/glMatrix-0.9.5.min.js', 'utf8')); var gl; var width = 500; var height = 500; var canvas_id = 'canvas'; var shaders = { fragment...
/*! * Module dependencies. */ var _ = require('underscore'), keystone = require('../../'), util = require('util'), cloudinary = require('cloudinary'), utils = require('keystone-utils'), super_ = require('../field'); /** * CloudinaryImage FieldType Constructor * @extends Field * @api public */ function clo...
import React, { Component } from 'react'; import styled from 'styled-components/macro'; import PostContentTitle from './Title'; import PostContentFullText from './FullText'; import PostActions from './Actions'; import EmbedWidget from '../EmbedWidget'; import LoadingBubble from '../../../shared/LoadingIndicator/Bubble'...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { __awaiter } from "tslib"; import uuid from "uuid/v4"; import { PumpManagerImpl } from "./pumpManager"; import { AbortController } from "@azure/abort-controller"; import { logger, logErrorStackTrace } from "./log"; i...
/** * @description The main part of live2d-widget */ import { config } from './config/configMgr'; import { createElement, currWebGL, currCanvas } from './elementMgr'; import { UtSystem, UtDebug, LDTransform, LDGL, Live2D, Live2DModelWebGL, Live2DModelJS, ...
import {chance} from 'jest-chance' import {parseFormulaStrict} from '../index' import language from './helpers/language' import factories from './helpers/factories' const parse = (str, fs = factories) => parseFormulaStrict(str, language, fs) describe('atoms', () => { test('predicate atoms', () => { expect(...
import {useControlledState as $vhjCi$useControlledState, clamp as $vhjCi$clamp, snapValueToStep as $vhjCi$snapValueToStep} from "@react-stately/utils"; import {NumberFormatter as $vhjCi$NumberFormatter, NumberParser as $vhjCi$NumberParser} from "@internationalized/number"; import {useState as $vhjCi$useState, useMemo a...
var browserify = require('browserify'); var browserSync = require('browser-sync'); var buffer = require('vinyl-buffer'); var child_process = require('child_process'); var concat = require('gulp-concat'); var del = require('del'); var filter = require('gulp-filter'); var fs = require('fs'); var gulp = require('gulp'); v...
// Copyright 2017 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* eslint-disable camelcase */ const cloneDeep = require('lodash.clonedeep'); const selectn = require('selectn'); const EventsHaNode = require('../EventsHaNode'); const { renderTemplate } = require('../../helpers/mustache'); const { shouldIncludeEvent } = require('../../helpers/utils'); const nodeOptions = { debu...
const IOTACrypto = require('iota.crypto.js'); const MAX_USES = require('./constants').MAX_USES; const helpers = require('./helpers'); const getLastBranch = require('./multisig').getLastBranch; const getMinimumBranch = require('./multisig').getMinimumBranch; const TransferErrors = { NULL_VALUE: -1, REMAINDER_INCREA...
var bsv = require('bsv') // Extend BSV require('bitcoin-ibe') var CryptoJS = require('crypto-js') const DEBUG = false /* BitDiary Basic Function: Constructor - Create a diary instance readDiary - Read a single diary with ViewKey from remote node readDiaries - Read all diaries from remote node ...
import React from 'react' import PropTypes from 'prop-types' import ReactNative, { View, Text, TouchableOpacity, FlatList, ViewPropTypes, } from 'react-native' import SketchCanvas from './src/SketchCanvas' import { requestPermissions } from './src/handlePermissions'; export default class RNSketchCanvas exten...
//Section list const QUIZ_SECTIONS = document.querySelectorAll(".quiz-section"); //Start const START_SECTION = document.getElementById("start"); const START_BTN = document.getElementById("start-button"); //Quiz questions const QUIZ_SECTION = document.getElementById("quiz-questions"); const TIME_REMAINING = d...
// Collection Functions // -------------------- // The cornerstone, an `each` implementation, aka `forEach`. // Handles raw objects in addition to array-likes. Treats all // sparse array-likes as if they were dense. _.each = _.forEach = function(obj, iteratee, context) { iteratee = optimizeCb(iteratee, context); v...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); var _objectWithoutPropertiesLoose = _interopDefaul...
/*Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribut...
const { default: Axios } = require('axios') const cheerio = require('cheerio') const qs = require('qs') const FormData = require('form-data') function ssstik(url) { return new Promise((resolve, reject) => { var BASEurl = 'https://ssstik.io' Axios.request({ url: BASEurl, ...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Input from '../Input/index.tsx'; import Icon from '../Icon/index.tsx'; import Trigger from 'rc-trigger'; import {polyfill} from 'react-lifecycles-compat'; import {HAVE_TRIGGER_TYPES, TYPE_VALUE_RESOLVER_MAP, DEFAU...
require('es6-object-assign').polyfill(); var fs = require('fs'); var request = require('request'); var http = require('http'); var now = require("performance-now"); var Promise = require('promise'); var csvWriter = require('csv-write-stream'); var ArgumentParser = require('argparse').ArgumentParser; var Queue = requ...
var ErrorCodes = require("../../ErrorCodes"); exports.drop = function (driver, opts, cb) { var i, queries = [], pending; queries.push("DROP TABLE IF EXISTS " + driver.query.escapeId(opts.table)); for (i = 0; i < opts.many_associations.length; i++) { queries.push("DROP TABLE IF EXISTS " + driver.query.escapeId(o...
document.getElementById("preloader").style.display = "block"; // update function for btn and top opener id function generateModal(customId) { document.getElementById("fake-modal-container").insertAdjacentHTML( "beforeend", `<div class="modal fade" id=${customId} tabindex="-1" role="dialog" aria-lab...
'use strict'; var validator = require('validator'); var xssFilters = require('xss-filters'); var dateCalculator = require('./dateCalculator'); var mongoose = require('mongoose'); validator.extend('isLogin', function (str) { var regExp = /[\w\.@]{4,100}$/; return regExp.test(str); }); validator.extend('isNotV...
const path = require('path') ; const url = require('url') ; const https = require('https') ; const fs = require('fs') ; const express = require('express') ; const kurento = require('kurento-client') ; const socketIO = require('socket.io') ; const minimist = require('minimist') ; const { Session, Register } =...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function ...
const fsx = require("fs-extra"); const path = require("path"); const fs = require("fs"); const DENO_STD_VERSION = "0.119.0"; async function copyPackage(packageName, packageDir, destinationDir) { if (packageName.endsWith("-deno")) { // skip here - copy instead at the end return; } await fsx.mkdirp(path....
// ========================================================================== // YouTube plugin // ========================================================================== import utils from './../utils'; import controls from './../controls'; import ui from './../ui'; // Standardise YouTube quality unit function map...
/* This broadcast implementation is clearly inspired from https://github.com/Chat-Wane/CausalBroadcastDefinition This is a broadcast customizable, if you want to specifiy Ensure single delivery and causality between 2 consecutive messages from a single site */ 'use strict' const AbstractBroadcast = require('./../abst...
import * as DomEvent from './DomEvent'; import * as Util from '../core/Util'; import {Point} from '../geometry/Point'; import * as Browser from '../core/Browser'; /* * @namespace DomUtil * * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model) * tree, used by L...
import {data} from './friends-supporting-data.js'; import {Portraits} from './friends-supporting-portraits.js'; import {palette, style} from './friends-supporting-style.js'; import Vizzu from 'https://vizzuhq.github.io/vizzu-beta-release/0.2.0/vizzu.js'; const skip = [ 's01e15', 's01e18', 's01e21', 's01e22', 's0...
"use strict"; require('../libs.js'); function flush() { filepaths = json.parse(json.read("db/cache/filepaths.json")); } function dump() { json.write("user/cache/filepaths.json", filepaths); } function genericFilepathCacher(type, basepath) { logger.logInfo("Routing: " + basepath + "/"); let inputDir...
import Utils from '../utils/cik/Utils'; import CargoListView from './CargoListView'; import CargoView from './CargoView'; import Pool from '../utils/cik/Pool'; import PackedCargoBoxView from './PackedCargoBoxView'; import PackingSpaceView from './PackingSpaceView'; import Tween from '../utils/cik/Tween'; import Packer ...
import { autoUpdater } from 'electron-updater'; import { EventEmitter } from 'events'; import { dialog, nativeImage, ipcMain, BrowserWindow } from 'electron'; import path from 'path'; import { logger } from './Logger.js'; autoUpdater.logger = logger; /** @typedef {import('electron-updater').UpdateInfo} UpdateInfo */ ...
import React from 'react'; import PropTypes from 'prop-types'; import SearchIcon from 'react-icons/lib/fa/search'; import { compose } from 'recompose'; import autobind from 'auto-bind-es5'; import memoizeOne from 'memoize-one'; import debounce from 'lodash/debounce'; import isObject from 'lodash/isObject'; import mapKe...
/** This class contains global definitions */ import environmentConfiguration from "./EnvironmentConfig"; class API { // Routes static rootApi = environmentConfiguration.apiHost + "/api/"; static routes = { // Routes in server server: { root: this.rootApi, health: this.rootApi + "health", ...
window.onload=llenarDepartamento(); function ingresarDepartamento(){ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var FrmData = { descripcionDepartamento:$('#descripcionDepartamento').val(), ...
'use strict'; // Some settings you can edit easily // Flows file name const flowfile = 'flows.json'; // Start on the dashboard page const url = "/ui"; // url for the editor page const urledit = "/admin"; // tcp port to use //const listenPort = "18880"; // fix it just because const listenPort = parseInt(Math.random()*...
$('#cont_voucher_pago').hide(); $('#cont_banks').hide(); $('.no').hide(); document.getElementById('codticket').disabled = true; document.getElementById('cod_product').disabled = true; document.getElementById('name_product').disabled = true; document.getElementById('cant').disabled = true; document.getElementById('price...
/* Copyright 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
const Router = require("./router"); const data = [ { name: "Google", url: "https://www.google.com" }, { name: "Facebook", url: "https://www.facebook.com" }, { name: "Cloudflare", url: "https://www.cloudflare.com" }, ]; const social = `<a href='https://www.twitter.com'><svg role="img" viewBox="0 0 24 24" xmlns="ht...
// just to keep the IDE happy var io = io || null; var angular = angular || null; var THREE = THREE || null; var app = angular.module('deviceOrientationApp', [ 'ngRoute', 'monospaced.qrcode' ]); app.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/', { ...
const s7 = ( sketch ) => { const width = 600; const height = 600; class Ray { constructor(x, y, dir, radius) { this.px = x; this.py = y; this.radius = radius; this.dir = dir; } } class Point { constructor(x, y) { t...
// ==UserScript== // @name SE Active Post Notifier // @namespace https://github.com/ArcticEcho/SE-Post-Notifier // @version 0.3.2 // @description Adds inbox notifications for posts that you've CVd/DVd and later become active. // @author Sam // @include /^https?:\/\/stack(overflow|exchange).c...
/* eslint-disable no-self-assign */ /* eslint-disable no-inline-comments */ // We import modules. const url = require("url"); const ejs = require("ejs"); const path = require("path"); const chalk = require("chalk"); const express = require("express"); const config = require("../config"); const passport = require("pass...
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { PureComponent } from '../component' import { getProps, defaultProps } from '../utils/proptypes' import { getParent } from '../utils/dom/element' import normalizeWheel from '../utils/dom/normalizeWheel' import { scr...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/* eslint-disable no-inline-comments */ import fs from 'fs-extra'; import path from 'path'; import _ from 'lodash'; import { dasherize } from '../common/utils'; const jsonLinePrefix = '//--JSON:'; const paragraphBreak = '<!--break-->'; class ChallengeFile { constructor(dir, name, suffix) { this.dir = dir; t...
var $breadcrumb = $(".breadcrumb"); var $main_content = $(".main-content"); var $card = $(".card"); var $card_block = $(".card-block"); $(window).on("load", function() { setTimeout(function() { $(".page-loader").fadeOut() }, 500) }), $(document).ready(function() { // 设置主题色 var theme_col...
/* global Path2D */ import * as is from '../../../is'; import * as util from '../../../util'; let CRp = {}; CRp.drawNode = function( context, node, shiftToOriginWithBb, drawLabel = true, shouldDrawOverlay = true ){ let r = this; let nodeWidth, nodeHeight; let _p = node._private; let rs = _p.rscratch; let p...
// Adapter for testharness.js-style tests with Service Workers /** * @param options an object that represents RegistrationOptions except for scope. * @param options.type a WorkerType. * @param options.updateViaCache a ServiceWorkerUpdateViaCache. * @see https://w3c.github.io/ServiceWorker/#dictdef-registrationopti...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; 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)) { tar...
import React from 'react'; import { connect } from 'dva'; import moment from 'moment'; import _ from 'lodash'; import { Modal, Form, Input, Select, InputNumber, Radio, Button, DatePicker, Col, Row } from 'antd'; import { FormItem } from '../../../../utils/ui'; import { upload } from '../../../../utils'; import { getPro...
import CVEs from './CVEs'; import { mountWithIntl } from '../../../Helpers/MiscHelper'; import { BrowserRouter as Router } from 'react-router-dom'; import toJson from 'enzyme-to-json'; import { initialState } from '../../../Store/Reducers/CVEsStore' import { Provider } from 'react-redux'; import configureStore from 're...
/* * Copyright 2013 Mobile Helix, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
let consent_btn = document.getElementById("consent-list-btn"); var consent_list = ""; var center_ids = ""; fetch('http://127.0.0.1:5000/mamphi/center/ids') .then(response => response.json()) .then(json => (center_ids = json)) consent_btn.addEventListener('click', function() { let body = document.getEleme...
const COMBINING_BMP = [ [0x0300, 0x036f], [0x0483, 0x0486], [0x0488, 0x0489], [0x0591, 0x05bd], [0x05bf, 0x05bf], [0x05c1, 0x05c2], [0x05c4, 0x05c5], [0x05c7, 0x05c7], [0x0600, 0x0603], [0x0610, 0x0615], [0x064b, 0x065e], [0x0670, 0x0670], [0x06d6, 0x06e4], [0x06e7, 0x06e8], [0x06ea, 0x06e...
import React , { Component } from 'react' ; import { connect } from 'react-redux' ; import { updateData } from '../../../store/actions/rootActions' ; import generateRandromString from '../../../funcs/generateRandromString' ; import GridItem from './gridItem' ; class Grid extends Component { state = { isCombine...
'use strict' var fs = require('fs') var utils = require('./utils') var limon = require('limon') var prevNextPlugin = require('limon-prev-next') var tokenize = require('./postjson/tokenizer') var Latin = require('parse-latin') limon .use(prevNextPlugin()) .use(function matcherPlugin (app) { return function (ch...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
import React from 'react'; import PropTypes from 'prop-types'; import cmf, { cmfConnect } from '@talend/react-cmf'; import Form from '@talend/react-forms'; import omit from 'lodash/omit'; import get from 'lodash/get'; import { Map } from 'immutable'; import memoizeOne from 'memoize-one'; import kit from './kit'; import...
import MobileLayout from "../src/components/layouts/MobileLayout"; import {AndroidBackButton, Fab, Toolbar} from "../src/components"; import React from "react"; import images from "../public/static/assets/images"; import {navigation, waitForData} from "../src/utils"; import {Animated, Platform, Text, TouchableOpac...
/* eslint-disable no-loss-of-precision */ import { deepMap } from '../../utils/collection' import { sign } from '../../utils/number' import { factory } from '../../utils/factory' const name = 'erf' const dependencies = [ 'typed' ] export const createErf = /* #__PURE__ */ factory(name, dependencies, ({ typed }) => ...
fc.sourceNormalizers = []; fc.sourceFetchers = []; var ajaxDefaults = { dataType: 'json', cache: false }; var eventGUID = 1; function EventManager(options, _sources) { var t = this; // exports t.isFetchNeeded = isFetchNeeded; t.fetchEvents = fetchEvents; t.addEventSource = addEventSource; t.removeEventS...
'use babel' import { TextEditor, CompositeDisposable } from 'atom' import { execSync, exec } from 'child_process' import BangCommands from './bang-commands' class BangView { constructor (state) { // Create the view this.miniEditor = new TextEditor({ mini: true }) this.miniEditor.element.addEventListener...
/* * * Copyright (c) 2019-present for NEM * * Licensed under the Apache License, Version 2.0 (the "License "); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
/* Copyright [2016] [Relevance Lab] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...