text stringlengths 3.22k 29.5k |
|---|
//@flow
import React, { useEffect, useCallback, useState, useMemo } from "react";
import { Mutation } from "react-apollo";
import { connect } from "@webiny/app-page-builder/editor/redux";
import { deactivatePlugin, updateElement } from "@webiny/app-page-builder/editor/actions";
import { getContent } from "@webiny/app-p... |
/**
* @typedef {import('vfile').VFile} VFile
* @typedef {import('vfile-message').VFileMessage} VFileMessage
* @typedef {import('vfile-statistics').Statistics} Statistics
*
* @typedef Options
* @property {boolean} [color]
* @property {boolean} [silent=false]
* @property {boolean} [quiet=false]
* @property {bool... |
import template from './sw-bulk-edit-order.html.twig';
import './sw-bulk-edit-order.scss';
import swBulkEditState from '../../state/sw-bulk-edit.state';
const { Component, Mixin } = Shopware;
const { Criteria } = Shopware.Data;
const { intersectionBy, chunk, uniqBy } = Shopware.Utils.array;
Component.register('sw-bul... |
///////////////////////////////////////////////////////////////////////////////
//
// Tokens
//
///////////////////////////////////////////////////////////////////////////////
const DECIMAL_DIGIT = /[0-9]/;
const BINARY_DIGIT = /[0-1]/;
const HEX_DIGIT = /[0-9a-fA-F]/;
const OCTAL_DIGIT = /[0-7]/;
const decimalDigits... |
import $ from 'jquery';
import renderjson from 'renderjson';
import CodeMirror from './codeMirrorLoader';
const $document = $(document);
function getParameterByName(name) {
name = name.replace(/\[/, '\\[').replace(/[\]]/, '\\]');
const regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
const results = regex.exe... |
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var __awaiter = (this && th... |
"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];
})... |
const fs = require('fs-extra');
const fsu = require('fsu');
const path = require('path');
const React = require('react');
const opener = require('opener');
const dateFormat = require('dateformat');
const render = require('react-dom/server').renderToStaticMarkup;
const MainHTML = require('./main-html');
const pkg = requ... |
/**
* Copyright 2017 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... |
import $ from 'jquery';
import './simselect.scss';
const SimSelect = ((el, conf) => {
const ISTOUCH = navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i) ? true : false;
class SimSelect{
constructor(el, conf){
this.init(el, conf);
this.conf = conf;
}
init (el, conf) {
var $el = $(el),
self = ... |
// OMNIA Low-Code Development Platform
// File Uploader Web Component
const TRANSLATIONS = {
default: {
Button_Label: 'Files',
Upload_Label: 'Select file(s)',
NoFiles_Label: 'No files to display',
Modal_Title_Label: 'Files',
Modal_Close_Label: 'Close'
},
ptpt: {
... |
/**
* Redux-Cluster-WS
* (c) 2018 by <NAME>.
*
* Websocket (socket.io) Server wrapper for redux-cluster
* LICENSE MIT
*/
"use strict"
var Http = require('http'),
Https = require('https'),
SocketIO = require('socket.io'),
Fs = require('fs'),
Crypto = require('crypto'),
ReduxCluster = require('redux-cluste... |
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4 */
/*global self, importScripts, postMessage, estraverse, esprima */
importScripts("esprima.js");
importScripts("estraverse.js");
/* jslint ignore:start */
console = {};
console.log = function () {
postMessage({
type : 'log',
value : argument... |
/**
* Copyright 2015 IBM Corp. 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 applica... |
const Test = require('../config/testConfig.js');
const truffleAssert = require('truffle-assertions');
const BigNumber = require('bignumber.js');
let config;
let accounts;
let firstAirline;
let secondAirline;
let thirdAirline;
let fourthAirline;
let fifthAirline;
let passenger;
contract('Flight Surety Tests', async ... |
var fs = require('fs');
var URL = require('url');
var path = require('path');
var mimes = require('./mime.json');
var $ = require('./helper');
var connect = require('connect');
var libDir = __dirname;
var rootDir = path.join(libDir, '../') + path.sep;
var templateDir = path.join(rootDir, 'template') + path.sep;
var m... |
const Highcharts = require('highcharts');
require('highcharts/modules/heatmap')(Highcharts);
var utils = require('./graph_utils');
function loadIHistogram2D(obj) {
var xAxisInfo = utils.getAxisInfo(obj.annotation.xUnits),
yAxisInfo = utils.getAxisInfo(obj.annotation.yUnits);
var xAxisLabel, yAxisLab... |
$(() => {
$('#search-input').keypress(event => {
if (event.which === 13) {
search();
}
});
$('.filter-field').each((i, ele) => {
$(ele).change(() => {
buildTable();
});
});
});
const selectAll = () => {
$('tbody > tr').each((i, e) => {
$(e).addClass('ui-selected');
});
};
const unselect = () => {
... |
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 i... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
/* eslint-disable no-unused-vars */
const { join } = require('path');
const moment = require('moment');
const chalk = require('chalk');
const appRoot = join(__dirname, '../../../');
const { isObject } = require('./type-of');
const loRound = require('lodash/round');
const loToPlainObject = require('lodash/toPlainObject... |
import React, { Component } from 'react';
import { DualAxes } from '@antv/g2plot';
import {
formatControlInfo,
formatrChartValue,
formatrChartAxisValue,
reportTypes,
getLegendType,
formatYaxisList,
getMinValue,
getChartColors
} from './common';
import { formatChartData as formatLineChartData } from './L... |
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, <NAME>
* Updated to ES9 syntax by <NAME> 2021
* Type definitions from the typed-mxgraph project
*/
import mxClient from '../mxClient';
import mxToolbar from '../util/gui/mxToolbar';
import Geometry from '../view/geometry/Geometry';
import { conv... |
'use strict';
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
exports.__esModule = true;
var _utilsChildrenValueInputValidation = require('./utils/childrenValueInputV... |
import { compile, setKmdEnv, run } from 'kmd-script/src'
import { graphiqlExpress } from 'graphql-server-express'
import { graphql } from 'graphql'
import noCache from 'nocache'
import { makeExecutableSchema } from 'graphql-tools'
import { performance } from 'perf_hooks'
import { PORT } from './constants'
import kmd fr... |
require('colors');
const glob = require('glob');
const fs = require('fs');
const path = require('path');
const defaultFeatures = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'))).defaultFeatures;
const LEAGACY_SETTINGS_PROJECT_DIR = 'source/common/res/features';
const NEW_SETTINGS_PROJECT_DIR = '... |
const helper = require('./helper');
const mockData = require('../../getFilmData/__mocks__/mock-film-data');
const mockMovieScript = require('../../__mocks__/mock-boyhood');
const {
countCharacterDialogue,
isCharFemale,
containsPatriarchalKeywords,
twoOrMoreFemalesInScene,
bechdelTestPass,
} = helper;
const scene... |
/* *
*
* Copyright (c) 2019-2021 Highsoft AS
*
* Boost module: stripped-down renderer for higher performance
*
* License: highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import U from '../../Core/Utilities.js';
var clamp = U.clamp, e... |
var width = 960,
height = 630;
//d3.select("").style("height", height + "px");
var projection = d3.geo.albers()
.rotate([-135, 0])
.center([-57, -202])
.parallels([198, 160.2])
.scale(1100)
.translate([width / 2, height / 2]);
var path = d3.geo.path()
.projection(projection);
var sv... |
/* Variety: A MongoDB Schema Analyzer
This tool helps you get a sense of your application's schema, as well as any
outliers to that schema. Particularly useful when you inherit a codebase with
data dump and want to quickly learn how the data's structured. Also useful for
finding rare keys.
Please see https://githu... |
"use strict";
/*
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, distribute, sublicense, and/or s... |
var top10 = [
'mallorqui'
,'hack-a-bracket'
,'jeremyjames'
,'method-2-the-madness'
,'bayz'
,'vince0'
,'nthustatistic'
,'adamgilfix'
,'justdukeit'
,'luckyguesser'
,'napomatic'
,'lavarez'
,'magic'
,'glicko'
,'oneshiningmgf'
,'fivethirtyeight'
,'vegas'
... |
import {
useState,
useEffect,
} from 'react';
import {
useHistory,
useLocation,
} from 'react-router';
import {
FormattedMessage,
useIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import queryString from 'query-string';
import {
useLocalStorage,
writeStorage,
} from '@rehooks/local-stora... |
const {dialogflow, NewSurface, SimpleResponse, Carousel, SignIn, TransactionDecision, TransactionRequirements, OrderUpdate, Button, BasicCard, Permission, Suggestions, Image, Confirmation} = require('actions-on-google');
const helper = require('node-red-viseo-helper');
class Message {
constructor(replies) {
... |
'use strict';
/**
* -----------------------------------------------------------------------------
* Imports
* -----------------------------------------------------------------------------
*/
const assembler = require('butter-assemble');
//const beautify = require('js-beautify').js_beautify;
const browse... |
const fs = require('fs');
const path = require('path');
const { sources } = require('webpack');
const crypto = require('crypto');
// Template cleaning helper
const cleanTemplateLiteral = (literal) => literal.replace(/(\r\n|\n|\r)/gm , ' ').replace(/\s+/g, ' ').trim();
// Source symbol cleaning helper
const cleanSymbo... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import Card from "@material-ui/core/Card";
import CardActions from "@material-ui/core/CardActions";
import CardContent from "@material-ui/core/CardContent";
import Button from "@material-ui/core/Button";
import Typography from "@material-... |
//testing code
const electron = require('electron');
const Fuse = require('fuse.js');
const url = require('url');
const path = require('path');
const { exec } = require('child_process');
const _ = require('underscore');
const fs = require('fs');
const sizeof = require('object-sizeof');
const {app, BrowserWindow, Menu}... |
const apiUrl = window.location.origin + '/api/';
let nextSectionId = 0;
let updates = {'deleteSection': [], 'addSection': [], 'updateSection': [], 'deleteItem': [], 'addItem': [], 'updateItem': []};
let oldMenu = {};
$(document).ready(function() {
// get menu
$.get(apiUrl + 'menu', {'type': TYPE}, fillMenu, 'json'... |
var layer , iframe , layerwin , cursession ;
$(document).ready(function(){
var hide ;
$('.dropdown-menu').on("click" , function(){
var distance = getDistance(this);
if(hide = true){
$(this).closest(".ukefu-btn-group").addClass("open");
}else{
$(this).closest(".ukefu-btn-group").removeClass("open")... |
const API_ROOT = 'https://noun-swapper-api.herokuapp.com/'
document.addEventListener('DOMContentLoaded', function() {
config.speakSelectedText = false;
createDropDown();
fetchPoems();
const homeButton = document.getElementById('homeButton');
homeButton.addEventListener('click', () => {
clearDOM();
... |
/*
Created By: <NAME>
Website: http://particletree.com
Date: 2/1/2006
Adapted By: <NAME>
Website: http://blog.eight.nl
Date: 21/2/2006
Inspired by the lightbox implementation found at http://www.huddletogether.com/projects/lightbox/
And the lightbox gone wild by ParticleTree at http://particletree.com/features/lightb... |
'use strict'
var express = require('express');
var router = express.Router();
var moment = require('moment');
var GilliardDb = require('epfl-enac-gilliarddb')(
{
hostname: 'localhost',
name:'testsequelize',
username:'root',
password:''
}
);
var Sequelize = require('sequelize');
var co... |
import ApiQueueDecorator from 'api/api-queue';
import Config from 'api/config';
import Setup from 'api/Setup';
import Providers from 'providers/providers';
import Timer from 'api/timer';
import Storage from 'model/storage';
import SimpleModel from 'model/simplemodel';
import { INITIAL_PLAYER_STATE, INITIAL_MEDIA_STATE ... |
const Fs = require('fs-extra');
const Minimist = require('minimist');
const Path = require('path');
const Git = require('./git');
const LocalStorage = require('./local-storage');
const Paths = require('./paths');
const Utils = require('./utils');
// Get recent commit by specified arguments
function getRecentCommit(off... |
import {ComponentController, SetInput} from "../components/SetInput.js";
import {Dialog} from "../dialogs/Dialog.js";
import {Cell} from "../components/Cell.js";
import {FormPropertyRename} from "../forms/FormPropertyRename.js";
import {backend_error, python_call} from "../utils/backend.js";
import {parsePropValString}... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ajax_1 = require("./ajax");
var app_1 = require("./app");
var countryList_1 = require("./countryList");
var modal_1 = require("./modal");
function loginUser(email, password, onData, onError) {
//http://127.0.0.1:8888/account/login?emai... |
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import UserService from "../../services/user.service";
import Table from "react-bootstrap/Table";
import Modal from "react-modal";
import Form from "react-validation/build/form";
import Input from "react-validation/build/input";
... |
'use strict'
const { traverse, VisitorOption } = require('estraverse')
const scan = require('scope-analyzer')
const {
_isRequireCall,
_isCjsExportsAssignment,
_isMutable
} = require('./utils')
// TODO
const initialCrawl = tree => {
traverse(tree, {
enter (node, parent) {
node.parent = parent
... |
//See this url for more info about valid adminCodes: http://www.geonames.org/export/geonames-search.html
var ADMIN_CODES = ['country', 'adminCode1', 'adminCode2', 'adminCode3', 'continentCode'];
var BBOX = ['east', 'west', 'north', 'south'];
var POSTALCODE_REGEX_US = /^\d{5}(-\d{4})?$/;
// from: https://en.wikipedia.o... |
var dataInfoDao = require('../dao/hospitalDataInfoDao');
var dbInfoDao = require('../dao/hospitalDbInfoDao');
var config = require('../../../config');
var MysqlDB = require('../../../models/mysql/MysqlDB');
var emrService = require('./emrService');
var core = require('../../../models');
var MysqlDB = core.MysqlDB;
var ... |
import del from 'del';
import gulp from 'gulp';
import { promises as fs } from 'fs';
import Graceful from 'node-graceful';
import realFavicon from 'gulp-real-favicon';
import {
cliArgs,
esbuild,
eslint,
getEnvAsString,
less,
LoadBalancedNodeProcessGroup,
MaildevContainer,
MinioContainer,
MongoContaine... |
import React, { useEffect } from 'react';
import { connect } from 'react-redux'
import {
StyleSheet,
View,
Image,
TouchableOpacity,
Alert,
TextInput,
ImageBackground,
ScrollView
} from 'react-native';
import { Field, reduxForm } from 'redux-form';
import { Block, Text, Button, Input } from '../../compon... |
const { expect } = require('chai');
const { Writable } = require('stream');
const semver = require('semver');
const dropMongoDbCollections = require('drop-mongodb-collections');
const mongoist = require('../');
const connectionString = 'mongodb://localhost:27017/test';
describe('cursor', function() {
this.timeout(... |
import {
difference,
filter,
get,
includes,
isEmpty,
nth,
rangeRight,
slice,
values,
cloneDeep,
map,
keys,
every,
} from 'lodash';
import moment from 'moment';
import { createSelector } from 'reselect';
import { NEW_TIMELINE_FILTERS, NEW_TIMELINE_ITEMS, ATTACHMENT_TYPES } from 'utils/constant... |
const net = require("net");
const { blake2bInit, blake2bUpdate, blake2bFinal } = require("blakejs");
const { expect } = require("chai");
const NO_CONNECTION = 14;
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function... |
/* Miscellaneous JS functions which run after the page loads to rewrite or adjust parts of the page. */
/***********/
/* HELPERS */
/***********/
/* Run the given function immediately if the page is already loaded, or add
a listener to run it as soon as the page loads.
*/
function doWhenPageLoaded(f) {
if (documen... |
let initialState = [3, 3, 1];
let goalState = [0, 0, 0];
let state = [];
let killedState = [];
let iterator = true;
// create an object for individual state
class CreateState {
constructor() {
this.value;
this.parent;
this.visited;
this.x;
this.y;
}
}
// Creating a root node.
var rootNode = new... |
/*
Copyright 2015 - 2021 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... |
import { openConfirmationDialog } from "../components/ConfirmationDialog/ConfirmationDialogActions";
import { createUser } from "../components/UserProfile/UserProfileActions";
import ErrorMessages, { ErrorCode } from "./ErrorMessages";
import { getJwtToken } from "../components/UserProfile/UserProfileReducer";
import {... |
/*
----------------------------------------->>
-- IGC: International Gaming Community
-- Date: 06 Feb 2017
-- Project: Online Live Map
-- Type: Client Side
-- Author: tcaram
----------------------------------------->>
*/
var count = 1;
function init () {
blips = [];
hasbeenupdated = [];
turfs = [];
mapX = 700... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
import {WalletGet} from "./getCredentials";
import jp from 'jsonpath';
import {PresentationExchange} from '../common/presentationExchange'
import {WalletManager} from "../register/walletManager";
import {getCredential... |
/*
* GciTravBufType.js
*/
const headerSize = 40;
class GciObjRepHdrSType { // gci.ht
constructor(buf){
this.buffer = buf;
// definitions of bottom 8 bits within _idxSizeBits
this.implem_mask = 0x03; // GC_IMPLEMENTATION_MASK
this.indexable_mask = 0x04; // GC_INDE... |
"use strict";
const { isNonEmptyArray, getStringWidth } = require("../../common/util.js");
const {
builders: { line, group, indent, indentIfBreak },
utils: { cleanDoc, willBreak },
} = require("../../document/index.js");
const {
hasLeadingOwnLineComment,
isBinaryish,
isStringLiteral,
isLiteral,
isNumeric... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WrapperStyled = exports.TitleStyled = exports.TextStyled = exports.MailStyled = exports.... |
import React, {Component} from 'react';
import {Route, Link,Redirect} from 'react-router-dom';
import BaseContainer from "../BaseContainer";
import {Role,currentRole} from '../../auth.js'
import API from "../../api";
import ConvocatoriaPesos from "./ConvocatoriaPesos";
import ConvocatoriaNuevo from "./ConvocatoriasNuev... |
import React, { Component } from 'react';
import moment from 'moment';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPlay, faClock, faTimes, faEyeSlash, faSync } from '@fortawesome/free-solid-svg-icons';
import { Button, ButtonGroup, OverlayTrigger, Spinner, Tooltip } from 'react-bootstra... |
/**
* transformation-models - v1.0.2
* description: 2D Affine and TPS transformations for use in geodesy
* author: bojko108 <<EMAIL>>
*
* github: https://github.com/bojko108/transformation-models
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
class Transformation {
cons... |
"use strict";
exports.__esModule = true;
exports.serializeWindow = serializeWindow;
exports.deserializeWindow = deserializeWindow;
exports.ProxyWindow = void 0;
var _src = require("cross-domain-utils/src");
var _src2 = require("zalgo-promise/src");
var _src3 = require("belter/src");
var _src4 = require("universal-... |
import React, {Component} from 'react';
import {StyleSheet, Text, View, Image, ScrollView, SafeAreaView, TouchableOpacity} from 'react-native';
import {PublicStyles, windowWidth} from '../../utils/style';
import {Button, List, TextareaItem} from 'antd-mobile-rn';
import fa from "../../utils/fa";
import CartModel from "... |
//
// Module : MMM-Spotify
// Developer : <NAME> (<EMAIL>)
//
const fs = require("fs")
const path = require("path")
const request = require("request")
const querystring = require("querystring")
const opn = require("open")
const express = require("express")
const app = express()
class Spotify {
constructor (config... |
/**
* DevExtreme (cjs/ui/overlay/overlay_drag.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var _transla... |
/* eslint-disable no-unused-expressions */
import Scrubber from '../Scrubber';
let scrubber;
let stubs = {};
const CLASS_SCRUBBER_HOVER = 'bp-media-scrubber-hover';
const sandbox = sinon.sandbox.create();
describe('lib/viewers/media/Scrubber', () => {
before(() => {
fixture.setBase('src/lib');
});
... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import MUITable from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableFooter from '@material-ui/core/TableFooter';
import TableRow from '@material-ui/core/TableRow';
import useMediaQuery from '@materi... |
"use strict";
/*****************
**** myQuery ****
*****************/
let $ = function( elementToFind, scope = document ) {
return $.find(elementToFind, scope);
};
$.find = function(elementToFind, scope = document) {
if(!elementToFind || 0 === elementToFind.length) {
return null;
}
// sear... |
import React, { Component } from 'react';
import { View ,Text, TouchableOpacity, Image,Platform,BackAndroid} from 'react-native';
import AV from 'leancloud-storage';
import {Column as Col, Row} from 'react-native-flexbox-grid';
import OthersCon from './OthersCon';
import Toast from 'react-native-root-toast';
import Ico... |
import React, { useState, createContext } from "react"
import Layout from "../components/layout/layout"
import SEO from "../components/seo"
import JumboHeader from "../components/sections/jumboHeader/jumboHeader"
import ThreeUpPeople from "./sections/threeUpPeople/threeUpPeople"
import ThreeUp from "../components/secti... |
var util = require('util'),
should = require('should'),
J = require('JSUS').JSUS,
NDDB = require('./../nddb').NDDB;
var db = new NDDB();
var hashable = [
{
painter: "Jesus",
title: "Tea in the desert",
year: 0,
},
{
painter: "Dali",
title: ["Portrait of <NAME>", "Da... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Redirect } from 'react-router-dom';
import {BrowserRouter as Router, Link, Route} from 'react-router-dom';
import { Pagination, Modal, Card, message, Divider } from 'antd';
import ws from '../../../tools/webservices';
import Input fro... |
const { DeliveryClient } = require('@kentico/kontent-delivery');
const { deliveryConfig } = require('./config');
const enhanceMarkup = require('../resolve/enhanceMarkup');
const { removeUnderscoreElems, sleep, removeLinkedItemsSelfReferences } = require('../general/helper');
const isPreview = require('./isPreview');
co... |
/** The MIT License
Copyright 2020 <NAME> / SousLesens <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ... |
"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];
})... |
// Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
'use strict';
var path = require('path');
var url = require('url');
var crypto = require('crypto');
var log = require('./logger').logger.getLogger('Portal');
var dataAccess = require('./data_access');
const { v4 : uuid } = require('uu... |
/*
Syntax and Convention Reference:
https://github.com/erikras/ducks-modular-redux
http://blog.jakoblind.no/reduce-redux-boilerplate/
*/
import { combineReducers } from 'redux';
import { throwError, of } from 'rxjs';
import { mergeMap, map, catchError, delay } from 'rxjs/operators';
import { combineEpics, ofTyp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.filterSvgElements = exports.isSsr = exports.validateWidthHeight = exports.filterEventsOfChild = exports.filterEventAttributes = exports.getPresentationAttributes = exports.withoutType = exports.findChildByType = exports.findAllByTyp... |
import UIElement, { EVENT } from "../../../util/UIElement";
import { LOAD, CLICK, POINTERSTART, MOVE, END, BIND, PREVENT, DOUBLECLICK, CHANGE } from "../../../util/Event";
import { Length } from "../../../editor/unit/Length";
import RangeEditor from "./RangeEditor";
import SelectEditor from "./SelectEditor";
import In... |
import clone from "clone";
import uslug from "uslug";
import Token from "markdown-it/lib/token";
const TOC = "@[toc]";
const TOC_RE = /^@\[toc\]/im;
let markdownItSecondInstance = () => {};
let headingIds = {};
let tocHtml = "";
const repeat = (string, num) => new Array(num + 1).join(string);
const makeSafe = (stri... |
/*===== SHOW MENU =====*/
const showMenu = (toggleId,navId)=>{
const toggle = document.getElementById(toggleId),
nav = document.getElementById(navId)
if(toggle && nav){
toggle.addEventListener('click', ()=>{
nav.classList.toggle('show-menu')
})
}
}
showMenu('nav-t... |
const { EventEmitter } = require('events')
const { TextChannel, MessageEmbed, Message } = require('discord.js')
const requiredPerms = ['SEND_MESSAGES', 'EMBED_LINKS', 'ADD_REACTIONS', 'MANAGE_MESSAGES']
const emojiNumbers = ["\u0030\u20E3","\u0031\u20E3","\u0032\u20E3","\u0033\u20E3","\u0034\u20E3","\u0035\u20E3", "... |
const SHEET_V1 = process.env.SHEET_ID_v1
const SHEET_V2 = process.env.SHEET_ID_v2
const SHEET_V3 = process.env.SHEET_ID_v3
const SHEET_V4 = process.env.SHEET_ID_v4
const SHEET_V5 = process.env.SHEET_ID_v5
const SHEET_V6 = process.env.SHEET_ID_v6
const SHEET_V7 = process.env.SHEET_ID_v7
const SHEET_V8 = process.env.SHEE... |
// pages/ui/mapTool/mapTool.js
//获取应用配置的常量
const app = getApp();
const base = getApp().constants;
var that;
//地图相关
// 引入SDK核心类
var aMapjs = require('../../../libs/qqmap-wx-jssdk.min.js');//高德地图js
var amap;
var mapContext;
var mapScale = 16;
//中心点移动多少距离去请求
var centerPoniteMoveDistance = 1000;
//中心点移动多少后距离上次请求时间多少才能去请求
v... |
import { GuildMember, MessageActionRow, MessageButton, MessageEmbed } from "discord.js";
import generateHash from "../lib/generateHash.js";
export const MAX_TITLE_LENGTH = 50;
export default class SuggestionBuilder {
CHANNEL_ID = "";
/** @param {string} CHANNEL_ID */
constructor(CHANNEL_ID) {
this.CHANNEL_ID = C... |
import React, { useEffect, useRef, useState } from "react";
import styled from "styled-components/macro";
import option from "../../assets/option.PNG";
import FavoriteBorderIcon from "@mui/icons-material/FavoriteBorder";
import ChatOutlinedIcon from "@mui/icons-material/ChatOutlined";
import NearMeOutlinedIcon from "@m... |
var DataType;
(function (DataType) {
DataType["null"] = "null";
DataType["string"] = "string";
DataType["number"] = "number";
DataType["bigint"] = "bigint";
DataType["symbol"] = "symbol";
DataType["boolean"] = "boolean";
DataType["function"] = "function";
DataType["undefined"] = "undefin... |
/*
* Copyright (C) 2020 con terra GmbH (<EMAIL>)
*
* 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 applica... |
/**
* Created by tandajun on 2017/1/9.
* 定义有关核心工具方法
*
* last update:
* zhaolongwei 20170629 把checkFileType移到此处;
*/
import moment from 'moment';
import wordFile from '../../images/filestyle/word.png';
import pdfFile from '../../images/filestyle/pdf.png';
import pptFile from '../../images/filestyle/pp... |
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpr... |
import React, { useState, useEffect } from 'react';
import './Alerts.css';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import Stepper from '@material-ui/core/Stepper';
import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel';
import Button from '@material-ui/... |
///////////////
/* Variables */
///////////////
// timeout with which the mouse movement will be reset
var mouseMoveTimeout;
// globally available time object
// time values in ms
var time = {
startTime: null,
lastFrame: null,
totalTime: null,
deltaTime: null
};
////... |
import alasql from "alasql";
import {getConstraintTablesConstraintKeyName, isTableVisible} from "./Utils";
class SqlManager {
constructor(tablesInfo) {
this.initialiseAlasqlTables(tablesInfo);
this.firstTable = this.getFirstTable(tablesInfo);
this.tableRelationships = this.getTableRelation... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.