text
stringlengths
3.22k
29.5k
function loadDemo() { var navigation = $($.find('.navigation')); var me = this; var lastclicked; navigation.find('.navigationContent').click(function (event) { var target = event.target; if (lastclicked == target) return false; lastclicked = target; var el...
import loadMainStore from "../../general/mainStore.js"; import rajaOngkir from "../../request/rajaOngkir.js"; import {getToko, updateToko} from "../../request/toko.js"; import cloudinary from "../../request/cloudinary.js"; import getAllKurir from "../../request/jasaPengiriman.js"; import {getUrlPath} from "../../genera...
import React,{ Component } from 'react' import { Link } from 'gatsby' import styled from 'styled-components' //import wall from '../../images/wall.jpg' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faBars,faTimes } from '@fortawesome/free-solid-svg-icons' const Wrapper = styled.header` bac...
// import hic from '../../node_modules/juicebox.js/dist/juicebox.esm.js'; import igv from '../../node_modules/igv/dist/igv.esm.js'; import { MultipleTrackFileLoad } from '../../node_modules/igv-widgets/dist/igv-widgets.js'; import ModalTable from '../../node_modules/data-modal/js/modalTable.js' import { StringUtils } f...
/*! * Copyright 2019 - present <NAME> * https://github.com/RakanAlanazi * * Date: 2020-09-07 */ var parts = window.location.pathname.toString().split('/'); var project = parts[parts.length - 2] console.log('project: ' + project) var versionselected = '' var base_url = "/graph/" + p...
import _ from 'lodash'; import path from 'path'; import axios from 'axios'; import Promise from 'bluebird'; import { constants } from 'auth0-source-control-extension-tools'; import { getPersonalAccessTokenHandler, getBasicHandler, WebApi } from 'vso-node-api'; import config from '../config'; import logger from '../log...
const crypto = require('crypto') const { resolve } = require('path') // 48 ->64位 yHE9Jux1bVtCfmfUbgAUhjr6s_OJpFl1FwwGauXOWlAa7qIhIzfpMypMxMsQnYAX // 16,18 -> 24位字符: 43K1zmgDiTC_UHaey6CoCg== 18最后不会是2个= // 6,8 -> 8B, 12B exports.generateRandom = (len = 18) => crypto.randomBytes(len) .toString('base64') .repla...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.handler = exports.builder = exports.des...
'use strict'; const { spawn } = require('child_process'); const EventEmitter = require('events'); const fs = require('fs'); const http = require('http'); const path = require('path'); const readline = require('readline'); require('./polyfill.js'); const MachinaModels = require('./mod...
import React, { useEffect, useState } from "react"; import swal2 from "sweetalert2"; import withReactContent from "sweetalert2-react-content"; import { CCard, CCardHeader, CCardBody, CButton, CModal, CModalHeader, CModalTitle, CRow, CCol, CButtonGroup, CAlert, } from "@coreui/react"; import Data...
function processFileClasses(parent) { parent.find(".-cvz-file").each(function () { var $this = $(this); var fileId = $this.text().trim(); var filePath = $("#-cvz-file-" + fileId).attr("_fp"); if (filePath) { var fileName = filePath.slice(filePath.lastIndexOf(SYSPROP.fileSep) + 1); var fileExt = fileName....
import { validateArray, validateEnum, validateKeys, validateString, validateFullPath, validateObject, validateContainerEl, validateBoolean, } from "../utils/validation-helpers.js"; import { inBrowser } from "../utils/environment-helpers.js"; import * as singleSpa from "single-spa"; import { resolvePath ...
/* jAlert v.2 Made with love by Versatility Werks (http://flwebsites.biz) MIT Licensed */ $(function(){ /* Positions an alert based on screen height */ var positionjAlert = function(thisAlertWrap){ thisAlert = thisAlertWrap.find('.jAlert'); var divHeight = thisAlert.innerHeight(), winHeight = $(window).heigh...
/* eslint-disable global-require */ const net = require('net') const { DOMParser } = require('xmldom') const { rePrintXml, cardPaymentxml, xmlToByteArray, arrayBufferToString, // reprintLastTicket, DeviceResponseXml, } = require('./util.js') let localStorage let currentTransaction if (window.localStorage...
var handlebars = require('handlebars'); var glob = require("glob"); var fs = require("fs"); var path = require("path"); const chalk = require("chalk"); var mkdirp = require('mkdirp'); class HandlebarsPlugin { constructor(options) { this.options = Object.assign({ entry: null, outpu...
const { expectRevert, time, constants, ether, BN } = require('@openzeppelin/test-helpers'); const timeMachine = require('ganache-time-traveler'); const AliumToken = artifacts.require('AliumToken'); const MasterChef = artifacts.require('MasterChef'); const MockBEP20 = artifacts.require('libs/MockBEP20'); const SHPMock ...
/** * The Agent API Simulator is being released under the standard MIT License. * Copyright (c) 2020 Genesys. All rights reserved. */ /** * Provides functionality to allow for transforming the data files used by the simulator. * The format of example data files used is not necesarily a convenient format for simulato...
const { keys } = Object; const { hasOwnProperty } = Object.prototype; // Does not consider the empty string a prefix of any string const findKeyPrefixOf = (object, string) => { const { length } = string; let end = 1; while (end <= length) { const key = string.substring(0, end); if (hasOwnProperty.call(ob...
"use strict"; const Card = require('../models/card'); const OAuth = require('../models/oauth'); const WeeblyCardAPI = require('../weebly/card'); const QuoteAPI = require('../svcs/quote.js'); /*** WHEN DO YOU NEED TO UPDATE THE CARD API DATA? You need to update the Card Data in the API EVERY TIME that your app receive...
// Default current form to first form on page var currentForm = $('form:first'); // Explicitly render any recaptchas that are on the page var renderRecaptchas = function() { var recaptchas = $('.g-recaptcha'); recaptchas.each(function() { var currentForm = $(this).closest('form'); var params = { site...
/** * * @license * @Author: <NAME>, Kenneth * @Date: 2016-01-20T18:56:22-05:00 * @Email: <EMAIL> * @Last modified by: Astrianna * @Last modified time: 2016-02-27T19:55:12-05:00 */ import { GATE_SUBSTITUTIONS, GATE_EXCEPTIONS, TREEBANK_CONTRACTIONS } from './constants'; export function treeBankTokenize(input) { ...
import { B2_LIST_FILE_NAMES_ENDPOINT, CACHE_DIR_SECONDS, HTML_CONTENT_TYPE, KV_CONFIG_KEY, } from './constants' import { rewriteErrorResponse } from './error_handling' /** * Given a URL that ends in a slash (/), list files in the bucket that begin with * that prefix. * * @param {Request} request t...
import { delArticle as delArticleApi } from "./../api/index"; import EFireWorks from "./fireWork"; export const redirectUrlKey = "originalUrl"; const msgOption = { timeOut: 2500, }; export function message(msg, type = "success", option = {}) { if (window.toastr) { window.toastr.options = { ...msgOption, ......
import React from "react"; import { Link } from "gatsby"; import Img from "gatsby-image"; import image_tab_1 from "../uploads/tab-1.png"; import image_tab_2 from "../uploads/tab-2.png"; import image_tab_3 from "../uploads/tab-3.png"; class TabsWithImage extends React.Component { constructor (props) { super(prop...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import axios from 'axios'; import Header from 'component/header/header'; import Toast from 'component/toast/toast'; import Loading from 'component/loading/loading'; import SelectMenus from 'component/select-menus'; import { PullToRefresh,...
/** * * FBillBox.js * v0.5 * * 11. August 2013 * * <NAME> * <EMAIL> * * http://kennethfrederick.de/ * http://blog.kennethfrederick.de/ * * * FBillBox * * Create Max Bill shapes * http://www.kettererkunst.de/kunst/kd/details.php?obnr=100039513&anummer=1 * */ folio.F3D.FPath3.inject({ //----------...
// var Mock = require('./mock') // var Util = require('./util') var Util = Mock.Util // BEGIN(BROWSER) /* 期望的功能: 1. 完整覆盖原生 XHR 的行为 2. 完整模拟原生 XHR 的行为 3. 在发起请求时,检测是否需要拦截 4. 如果不必拦截,则执行原生 XHR 的行为 5. 如果需要拦截,则执行虚拟 XHR 的行为 关键方法的逻辑: * new 此时尚无法确定是否需要拦截,所以创建原生 XHR 对象是必须的。 * open 此...
// require all modules var _ = require('lodash') /* * TOKEN class */ function Token(type, data) { this.type = type this.data = data } Token.prototype.functionality = function() { switch (this.type) { case Token.kind.dot: case Token.kind.blank: case Token.kind.class: case Token.kind.char: cas...
import React from 'react'; import { connect } from 'dva'; import { Row, Col, Table, Card } from 'antd'; import { MemberApplayInter, MerchantWall, MerchantAddRate} from '@/components/Merchant'; import {routerRedux} from 'dva/router'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import...
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.a...
import React, {Component} from 'react'; import { View, WebView, StyleSheet, ActivityIndicator, Platform, Dimensions, Alert, } from 'react-native'; import createInvoke from './native.js' import MD5 from 'crypto-js/md5' import Buffer from 'buffer' import HttpTools from "../common/HttpTools"; ...
/* eslint-disable no-console */ 'use strict'; // module const path = require('path'); const os = require('os'); const fs = require('fs'); const electron = require('electron'); const app = electron.app; const Menu = electron.Menu; const BrowserWindow = electron.BrowserWindow; const ipc = electron.ipcMain; const app_pat...
var J = require('JSUS').JSUS; var NDDB = require('NDDB').NDDB; var path = require('path'); var fs = require('fs'); var util = require('util'); var ngc = require('nodegame-client'); var Matcher = ngc.Matcher; var log = require('./log').log; var logln = require('./log').logln; var logln2 = require('./log').logln2; // H...
var height = 300, width = 300, margin = {left: 10, right: 50, top: 15, bottom: 15}; var svg = d3.select('body') .append('svg') .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + ","...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import DndStatus from 'ringcentral-integration/modules/Presence/dndStatus'; import { map } from 'ramda'; import PresenceStatusIcon from '../PresenceStatusIcon'; import PlaceholderImage from '../Placeh...
#!/usr/bin/env node // Views registry info about a package. const kleur = require('kleur'); const got = require('got'); const validateNpmPackageName = require('validate-npm-package-name'); const boolean = require('extra-boolean').parse; const cpExec = require('./_cpExec'); const E = process.env; const URL = 'https://w...
import { StateHandler, controllerMixin } from 'oskari-ui/util'; import { groupLayers } from './util'; import { FILTER_ALL_LAYERS } from '..'; import { GROUPING_PRESET, GROUPING_DATAPROVIDER } from '../preset'; const ANIMATION_TIMEOUT = 400; const LAYER_REFRESH_THROTTLE = 2000; const GROUPING_METHODS = {}; GROUPING_PRE...
// Provides a simple wrapper around WebGL textures that supports render-to-texture. // ### new GL.Texture(width, height[, options]) // // The arguments `width` and `height` give the size of the texture in texels. // WebGL texture dimensions must be powers of two unless `filter` is set to // either `gl.NEAREST` or `gl....
// # JsonML // // Various functions for handling // jsonml in array form. // For more info on jsonml, // see [jsonml.org](http://jsonml.org/) // or [wikipedia](http://en.wikipedia.org/wiki/JsonML) // // Implemented to be as portable as possible. // Not depending on any libraries, and also // avoid regular expressions ...
import {BaseComponent} from "../../components/base/BaseComponent"; import React from "react"; import {Dimensions, FlatList, Image, ScrollView, StyleSheet, Text, View} from "react-native"; import {CommonStyle} from "../../common/CommonStyle"; import TouchableView from "../../components/TouchableView"; import {PAGE_SIZE}...
const fs = require("fs").promises; const AoeMap = require('../../js/map'); const ScxMapBuilder = require('../../js/scx/scx'); const TestBuilder = require('../../js/test/testmap'); const LoadingScreen = require('../loading/loading'); const TopBar = require('../topbar/topbar'); const Dashboard = require('../dashboard/d...
import React from "react"; import gql from "graphql-tag"; // import { jsPDF } from "jspdf"; import Loader from "components/Loader/Loader"; import { useLazyQuery, useMutation } from "react-apollo"; import styled from "styled-components"; import { useRouteMatch } from "react-router"; import { getGraphqlIdFromDBId } from ...
/**************************************************************************** * Copyright 2017 British Broadcasting Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
var ping = new Audio('../audio/sfx/ping.wav'); var app = angular.module('indexApp', []) var socket = io.connect(); function getCookie(cookie, cname) { var name = cname + "="; var ca = cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } ...
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { mentorAddNewCourseDashboardActions } from "../../actions/mentorAddNewCourseDashboardActions"; import ErrorMessage from "../ErrorMessage"; import Loader from "../Loader"; import SuccessMessage from "../Su...
import 'beaker://editor/js/main.build.js' import 'beaker://webterm/js/main.js' import './files-explorer.js' /** * NOTE * Any changes to sidebar state should be routed through * the background process via `executeSidebarCommand` as * the background-process tracks some state and needs to * be kept in sync with the ...
import { connect } from "react-redux"; import React, { Component } from "react"; import config from "lightcone/config"; import { emptyOrderBooks, fetchOrderBooks, updateSocketOrderBooks, } from "redux/actions/market/OrderBook"; import { emptyTrades, extendTrades, fetchTradeHistory, } from "redux/actions/ma...
import React, { Component } from "react"; import MapView, { Polyline, PROVIDER_GOOGLE } from "react-native-maps"; import { Image, Platform, View, Text, StyleSheet, TouchableWithoutFeedback, Animated, Easing, Dimensions, ScrollView } from "react-native"; import {geoService} f...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.bezierCurveToPolyline = bezierCurveToPolyline; exports.getBezierCurveLength = getBezierCurveLength; exports["default"] = void 0; var _slicedToAr...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); /** * Next, we will create a fresh Vue application instance and attach...
import * as DeviceKeyboard from '#mobile/lib/IOSDevice/Keyboard'; import { isIPad, isIOS, isWKWebView, isLandscapePhone, } from '#mobile/lib/IOSDevice/IOSDetections'; const DEFAULT_LAYOUT_SELECTOR = 'body'; let preventScrollNeeded = true; let htmlHeight; let windowHeight; let isBannerHidden; let isScrolling = f...
//for scroll tracking w.optimizelyScrollTrackerID = '/plans'; $('#contact-us-button').on('click', function(e){ w.optly.mrkt.modal.open({ modalType: 'contact-sales' }); e.preventDefault(); }); $('.js-enterprise-plan-cta').on('click', function(e){ w.optly.mrkt.modal.open({ modalType: 'contact-sales' }); e.preve...
var child_process = require('child_process'); var express = require('express'); var sqlite3 = require('sqlite3').verbose(); var DBNAME = 'fxfdata.db'; var ALL_KEYS = ['relevance', 'text', 'actions']; var ALL_REVISION_TYPES = ['added', 'changed', '', 'removed', '']; var app = express(); var db; app.set('views', __dir...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
var covid = require('../covid.js'); var assert = require('assert'); // --- Population Lookup Table --- describe('Population Lookup Table', function () { it('no arguments should return 1', function () { assert.equal(1, covid.p()); }); it('null argument should return 1', function () { assert.equal(1, covid...
'use strict'; function showError(title,text,islight){ $.gritter.add({ title: title || '错误信息', text: text, class_name: 'gritter-error'+(islight?' gritter-light':'') }); } function showWarn(title,text,islight){ $.gritter.add({ title: title || '警告信息', text: text, ...
const miActividad = document.getElementById("miActividad--btn"); const egendar_evento = document.getElementById("agendarEvennt--btn"); const iniciarSesion_btn = document.getElementById("iniciarSesion--btn"); let editStatus = false; let id = ""; const obtenerFecha = (timeStamp) => { const d = new Date(timeStamp); l...
/******************************************************************************* Helper script that parses data files and fetches implementation information from Web status platforms such as Can I use and those provided by browser vendors To parse files: node src/build-index.js [data folder/file]+ ********************...
var btn=document.getElementById("add_line"); var boox=document.getElementById("show_line_box"); btn.onclick=function(){ //发送ajax请求 获取题库 var contextPath = /*[[@{/}]]*/''; var optionHtml=""; $.ajax({ async :false, url: contextPath+"getAllQuestionPool", type:"POST", success:...
import React from "react"; // @material-ui/core components import { DataGrid } from "@material-ui/data-grid"; import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import Card from "comp...
var express = require('express'); // Express contains some boilerplate to for routing and such var app = express(); var http = require('http').Server(app); // var io = require('socket.io')(http); // Here's where we include socket.io as a node module var io = require('socket.io').listen(http); const https = require('ht...
class Audio { constructor() { console.log("Building Audio") this.sounds = []; this.createSound("BackgroundMusic", 0.1, true); this.createSound("MainMenuMusic", 1, true); this.createSound("Heal", 1, false); this.createSound("Arrow", 1, false); this.c...
import { useState, useEffect } from "react"; import { Redirect } from "react-router-dom"; import ModulesComponent from "../commoncomponents/modulescomponent"; import VehicleService from "../service/vehicleservice"; import ServicingService from '../service/servicingservice'; import DataGridComponent from "../commoncomp...
import React, { useState } from 'react' import {Row, Col, Form} from 'react-bootstrap' import 'bootstrap/dist/css/bootstrap.min.css' import axios from 'axios' import { generateModal } from '../components/Modal' import { FaTimesCircle, FaArrowAltCircleLeft, FaSave, } from 'react-icons/fa' import { TextIconButton } f...
/* global describe test expect */ var note = require("../index"); const $ = str => str.split(" "); const map = (fn, str) => str.split(" ").map(fn); describe("tonal-note", () => { test("tokenize", () => { expect(note.tokenize("Cbb5 major")).toEqual(["C", "bb", "5", "major"]); expect(note.tokenize("Ax")).toEq...
/** * Copyright (c) 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, di...
/* Hash Kit Copyright (c) 2014 - 2020 <NAME> The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
/* One True List Copyright (c) 2019 - 2020 <NAME> The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
/* eslint no-unused-vars: [1, {"args": "after-used"}] */ 'use strict' // HACK to disable transitions // when the doc is not in view function flushD3Transitions() { var now = Date.now Date.now = function() { return Infinity } d3.timer.flush() Date.now = now } var D3transition = d3.selection.prototype.tr...
var THREE = require('zincjs').THREE; /** * Create a {@link Zinc.Renderer} on the dom element with corresponding elementID. * @param {String} elementID - id of the target dom element. * @returns {Zinc.Renderer} */ var createRenderer = function () { var WEBGL = require('../utilities/WebGL').WEBGL; var localConta...
const crypto = require('crypto') const fs = require('fs') const UrlResolve = require('url').resolve const Xml2js = require('xml2js') const WXBizMsgCrypt = require('wechat-crypto') const axios = require('axios') const mkdirp = require('mkdirp') const FormData = require('form-data') const marked = require('marked') const...
import React from "react"; import { Link } from "react-router-dom"; import Helmet from "react-helmet"; import { ThemeContext } from "../layouts"; import Article from "../components/Article"; import Headline from "../components/Article/Headline"; import Bodytext from "../components/Article/Bodytext"; import Button fro...
import * as util from '../../util'; import * as math from '../../math'; import * as is from '../../is'; /* eslint-disable no-unused-vars */ const defaults = { fit: true, // whether to fit the viewport to the graph directed: false, // whether the tree is directed downwards (or edges can point in any direction if fa...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import { Card, Modal, Row, Col, Table, Input, message, } from 'antd'; import moment from 'moment/moment'; import numeral from 'numeral'; import DescriptionList from 'components/DescriptionList'; import OrderTable from '...
import React, { Component } from 'react'; import { Image, TouchableOpacity, StatusBar, Text, TextInput, Animated, View, SafeAreaView, Alert, Linking, Modal, ActivityIndicator, RefreshControl, BackHandler } from 'react-native'; import { ScrollView } from 'react-native-gesture-handler'; import AwesomeButton from "react-...
/* * This file belongs to Hoist, an application development toolkit * developed by Extremely Heavy Industries (www.xh.io | <EMAIL>) * * Copyright © 2021 Extremely Heavy Industries Inc. */ import {HoistInputModel, HoistInputPropTypes, useHoistInputModel} from '@xh/hoist/cmp/input'; import {hoistCmp} from '@xh/hoist...
const DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded', }; function getDefaultAdapter() { if (wx.request) { return wxAdapter; } return xhrAdapter; } const defaults = { adapter: getDefaultAdapter(), timeout: 0, headers: { common: { Accept: 'application/json, tex...
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
import _ from 'lodash/fp' import { Fragment, useState } from 'react' import { div, h, h2, img, li, p, strong, ul } from 'react-hyperscript-helpers' import Collapse from 'src/components/Collapse' import { backgroundLogo, ButtonPrimary, ButtonSecondary, Clickable, IdContainer, RadioButton, spinnerOverlay } from 'src/comp...
/* surveyJS Lite v4.0.0 | <NAME> (@SimplySayHi) | https://www.valeriodipunzio.com/plugins/surveyJS/ | https://github.com/SimplySayHi/surveyJS | MIT license */ const isDOMNode = node => Element.prototype.isPrototypeOf(node), customEvents_destroy = "sjs:destroy", customEvents_init = "sjs:init", deepFreeze = obj => (Objec...
drawAreaChart(); drawBarChart(); let parseTest = d3.timeParse("%Y-%m-%d"); console.log(parseTest('2013-01-14')); function drawAreaChart() { // Margin object with properties for the four directions let margin = {top: 40, right: 10, bottom: 40, left: 60}; // Chart size let width = 620 - margin.left - margin.righ...
import { TestScheduler } from 'rxjs/testing'; import sinon from 'sinon'; import { Appointment, ItemId, DateTime, MessageBody, EmailAddress, AppointmentType, Item, WellKnownFolderName, SendInvitationsMode } from 'ews-javascript-api'; import moment from 'moment'; import { clearAllEventsEpics } from '../...
const now = new Date() const from = '2020-03-15' const to = formatDate(now) let countries let country let weeks = [] let week const availableCases = [ 'total', 'active', 'closed', 'mild', 'serious', 'recovered', 'dead' ] let selectedCases let displayedCases let chart let router let refreshCases // Common chart confi...
/** * Created by Adsoph on 7/8/2017. */ var map; var initLoc; var marker; var socket = io.connect('http://192.168.3.11:8080'); var rMarker = []; //initialize map /*function initMap() { var initLoc = {lat: 14.1390, lng: 122.7633}; this.map = new google.maps.Map(document.getElementById('map'), { mapTy...
var tabla; //función que se ejecuta al inicio function init() { mostrarForm(false); listar(); $("#formulario").on("submit",function(e){ guardarEditar(e); }); //Cargamos los items al select proveedor $.post('../ajax/ingreso.php?op=selectProveedor', function(r){ $('#idproveedor...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra Modified by @hiyuki */ const formatCodeFrame = require('@babel/code-frame') const Tokenizer = require('css-selector-tokenizer') const postcss = require('postcss') const loaderUtils = require('loader-utils') const assign = requi...
import React, {Component} from 'react'; import {Route} from 'react-router-dom'; import axios from "axios/index"; import BaseContainer from "../BaseContainer"; import {Image} from 'react-bootstrap'; import PerfilTabs from "./PerfilTabs"; import API from '../../api' import ConfirmationModal from "../ConfirmationModal"; ...
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var shelljs = require('shelljs'); var crypto = require('crypto'); var _ = require('lodash'); module.exports = yeoman.generators.Base.extend({ initializing: { printJHipsterLogo: function() { this.log(' \n' + ...
/* eslint-disable react-hooks/exhaustive-deps */ import React, { useEffect, useState, useRef, useCallback } from 'react'; import { LogViewerContainer } from '../styledComponents/LogViewerStyledComponents'; import LogViewerList from './LogViewerList'; import { connect } from 'react-redux'; import { parseRegExp } from '....
import { Link } from "gatsby" import PropTypes from "prop-types" import React, { useState } from "react" import { isMobile } from "react-device-detect" import { motion } from "framer-motion" import { StaticQuery, graphql } from 'gatsby' import "./Sidebar.scss" const Sidebar = ({ data, location }) => { const locat...
import { drizzleConnect } from 'drizzle-react'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AddIcon from '@material-ui/icons/Add'; import Button from '@material-ui/core/Button'; import Snackbar from "@material-ui/core/Snackbar"; import InputLabel from "@material-ui/core/InputLab...
class SquareMapChart { create(classicalWorld, squaredWorld) { this.width = 1060; this.height = 800; this.isNew = true; this.margin = {top: 0, left: 0, right: 0, bottom: 0} this.world = classicalWorld; this.worldTile = squaredWorld; this.svg = d3.select('.visua...
/* * 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"); you ...
/** * @file Error view component. * @copyright IBM Security 2019, 2021 */ import classnames from "classnames"; import PropTypes from "prop-types"; import React from "react"; import Link from "./../../components/Link"; const namespace = "cds"; const backgroundImage = "/Images/entitlement@2x.png"; const labels =...
const path = require('path'); const isEmptyString = (value) => !(value != null && value.length > 0); const splitPairParameter = (parameter) => { const pos = parameter.indexOf('='); const key = parameter.substring(0, pos).trim(); const value = parameter.substring(pos + 1).trim(); if (isEmptyString(key)...
/** * 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsonld_context_parser_1 = require("jsonld-context-parser"); const ErrorCoded_1 = require("jsonld-context-parser/lib/ErrorCoded"); const ContextTree_1 = require("./ContextTree"); const JsonLdParser_1 = require("./JsonLdParser"); /** * Da...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Button, Tag, TextInput } from 'carbon-components-react'; import TooltipHover from '../TooltipHover'; import { Add16, Information16 } from '@carbon/icons-react'; import { settings } from 'carbon-components'...
import React from 'react'; import PropTypes from 'prop-types'; import CodeMirror from 'react-codemirror'; import 'codemirror/mode/yaml/yaml'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Row, Col, } from 'reactstrap'; import { message, } from '../../../../../service'; import { getMappings, } f...
var pos = require("parts-of-speech"); var _ = require("lodash"); var natural = require("natural"); var math = require("./math"); var ngrams = natural.NGrams; var moment = require("moment"); var Lemmer = require("lemmer"); var Dict = require("./dict"); var Utils = require("./utils"); var async = require("async"); var st...