text
stringlengths
3.22k
29.5k
import React, { PropTypes } from 'react' import { Table, Progress, Tooltip } from 'antd' import styles from './HostList.less' import classnames from 'classnames' import { sortTable } from '../../utils/sort' import DiskList from './DiskList' import HostActions from './HostActions' import { nodeStatusColorMap } from '../...
// // Author: <NAME> <EMAIL> // backendjs 2018 // const util = require('util'); const fs = require('fs'); const path = require('path'); const url = require('url'); const cluster = require('cluster'); const core = require(__dirname + '/core'); const lib = require(__dirname + '/lib'); const logger = require(__dirname ...
import React, {useState, useEffect} from 'react'; import { StyleSheet, View, ScrollView, Text, TextInput, Picker, TouchableOpacity, Alert, } from 'react-native' import { Container, Header, Content, Section, SectionHeader, SectionTitle, SectionContent, Da...
/** * Livereload and connect variables */ var LIVERELOAD_PORT = 35729; var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; var projectName = "Offline WebApp"; module.exports = f...
const chalk = require('chalk') const fs = require('fs') var start = new Date().getTime(); let args = process.argv.slice(2); let pathToFile = args[0] let alpha = parseFloat(args[1]) let outputName = pathToFile.split("/"); outputName = outputName[outputName.length-1] outputName = outputName.replace(".csv",""); var CSV...
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function _defineProperty(obj, key, value) { if (k...
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import warning from 'warning'; import { breakingChangesX } from '../../globals/js/feature-flags'; import settings from '../../globals/js/sett...
/******************************************************************************* uBlock Origin - a browser extension to block requests. Copyright (C) 2017-present <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
#!/usr/bin/env node import '../../server/env'; // Only run on the first of the year const today = new Date(); if (process.env.NODE_ENV === 'production' && today.getDate() !== 1 && today.getMonth() !== 0 && !process.env.OFFCYCLE) { console.log('NODE_ENV is production and today is not the first of year, script aborted...
import * as R from 'ramda' import { db } from '@server/db/db' import * as Survey from '@core/survey/survey' import * as NodeDef from '@core/survey/nodeDef' import * as NodeDefLayout from '@core/survey/nodeDefLayout' import * as NodeDefLayoutUpdater from '@core/survey/nodeDefLayoutUpdater' import * as ObjectUtils from...
import copy from "copy-to-clipboard" import React from "react" import PropTypes from "prop-types" import styled, { css } from "styled-components" import moment from "moment-timezone" import { ToastContainer, toast } from "react-toastify" import "react-toastify/dist/ReactToastify.css" import { media, basedStyles } from ...
import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import GridItem from "../../components/Grid/GridItem.js"; import GridContainer from "../../components/Grid/GridContainer.js"; import Button from "../../components/CustomButtons/Button.js"; import Card from "../../...
/* eslint-disable no-underscore-dangle */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { toast } from 'react-toastify'; import { productValidate as validate } from '../../../assets/js/validate....
/** * Template für Übungsaufgabe VS1lab/Aufgabe3 * Das Skript soll die Serverseite der gegebenen Client Komponenten im * Verzeichnisbaum implementieren. Dazu müssen die TODOs erledigt werden. */ /** * Definiere Modul Abhängigkeiten und erzeuge Express app. */ var http = require('http'); //var path = require('pa...
const request = require('request-promise'); const fs = require('fs'); const flutter_source_url = 'https://pub.dartlang.org/api/packages?page=1'; const chuangcache_cdn_url = 'https://pub.flutter-io.cn/api/packages/'; const cdn_base_address = 'pub.flutter-io.cn'; const cdn_browser_resource_address = 'https://pub.flutt...
let current = '2.4' function waitForElement(els, func, timeout = 100) { const queries = els.map(el => document.querySelector(el)); if (queries.every(a => a)) { func(queries); } else if (timeout > 0) { setTimeout(waitForElement, 300, els, func, --timeout); } } function getAlb...
var request = require('request'); var url = require('url'); var cheerio = require('cheerio'); var fs = require('fs-extra'); var moment = require('moment-timezone'); var getTimerTime = function (time, delay) { var date = moment().tz('Asia/Shanghai').format('HH:mm:ss'); var h, m, s, result = 0, h2, m2, s2, total, tota...
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 _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWith...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
var board = { rc11: 0, rc12: 0, rc13: 0, rc14: 0, rc15: 0, //rc16: 0, //rc17: 0, //rc18: 0, rc21: 0, rc22: 0, rc23: 0, rc24: 0, rc25: 0, //rc26: 0, //rc27: 0, //rc28: 0, rc31: 0, rc32: 0, rc33: 0, rc34: 0, rc35: 0, //rc36: 0, //rc37: 0, //rc38: 0, rc41: 0, rc42: 0,...
var posibilities = [ { id: 1, url: "https://images.unsplash.com/photo-1557800636-894a64c1696f?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxleHBsb3JlLWZlZWR8MXx8fGVufDB8fHw%3D&auto=format&fit=crop&w=500&q=60" }, { id: 2, url: "https://images.unsplash.com/photo-1528825871115-3581a5387919?ixlib=rb-1.2.1&ixid=...
import React from 'react'; import styled from 'styled-components'; import { Container } from '../Container'; import { GiTexas } from 'react-icons/gi'; const Wrapper = styled('footer')` background: var(--color-secondary); color: #9b9b9b; padding: 29px 0; border-top: 1px solid #606060; @media screen and (max-w...
export { default as plus } from './icons/plus.js'; export { default as primitiveDot } from './icons/primitive-dot.js'; export { default as primitiveSquare } from './icons/primitive-square.js'; export { default as quote } from './icons/quote.js'; export { default as threeBars } from './icons/three-bars.js'; export { def...
import _extends from 'babel-runtime/helpers/extends'; import PropTypes from '../../_util/vue-types'; import BaseMixin from '../../_util/BaseMixin'; import { getOptionProps, hasProp, getComponentFromProp } from '../../_util/props-util'; import { cloneElement } from '../../_util/vnode'; import KeyCode from '../../_util/K...
/* CodeSelfPortrait by <NAME> Creates self portrait of author using various shapes, lines, and colors. */ //State machine var state; var stateHappy=0; var stateSad=1; var stateAngry=2; var stateSleepy=3; //coordinate variables var leftX; var leftY; var rightX; var rightY; var tearLeft=320; var tearRight=320;...
const Path = require('path'); const Fs = require('fs-extra'); const MagicString = require('magic-string'); const hasOwnProperty = Object.prototype.hasOwnProperty; function nativePlugin(options) { let copyTo = options.copyTo || './'; let destDir = options.destDir || './'; let dlopen = options.dlopen || fa...
/** * Created by grahamclapham on 03/09/2014. */ function EasleRenderer(target, opt_data, opt_config) { BaseChart.call(this, target, opt_data, opt_config); // call super constructor. } EasleRenderer.prototype = Object.create(BaseChart.prototype); EasleRenderer.prototype.constructor = EasleRenderer; EasleRender...
import { getCommonHeader, getCommonContainer } from "egov-ui-framework/ui-config/screens/specs/utils"; import { sortByEpoch, getEpochForDate, getBpaTextToLocalMapping, getTextToLocalMapping } from "../utils"; import { getBpaSearchResults, getSearchResults } from "../../../../ui-utils/commons"; import { handleSc...
import React from 'react'; import { inject, observer } from 'mobx-react'; import { library } from '@fortawesome/fontawesome-svg-core'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCaretDown, faCaretRight, faPlusCircle } from '@fortawesome/free-solid-svg-icons'; import {BLANK_TABLE_CELL} ...
let formContainer = document.querySelector('.slide-form-container'); let slideBtns = document.querySelectorAll('.slide-btn'); let slideItems = document.querySelectorAll('.slide-form-item'); let progressIndicator = document.querySelector('.progress-indicator span') let totalAnswers = document.querySelectorAll('.field');...
let authUtil = require("./../../util/authUtil"); let commonAuthZMw = require("./common.authorizationMiddleware"); let _ = require('lodash'); let logger = global.logger; function isMonAccessControlValid(req) { let accessLevel = req.user.accessControl.accessLevel; let appsAdmin = []; if (accessLevel == "Sel...
import OrgChart from '../js/orgchart-webcomponents.min.js'; function closest(el, fn) { return el && ((fn(el) && el !== document.querySelector('org-chart')) ? el : closest(el.parentNode, fn)); } function addClass(elements, classNames) { elements.forEach((el) => { if (classNames.includes(' ')) { className...
/** * @module saxo/utils/fetch * @ignore */ import log from '../log'; // -- Local variables section -- const LOG_AREA = 'Fetch'; // list of content-types that will be treated as binary blobs const binaryContentTypes = { 'application/pdf': true, 'application/octet-stream': true, 'appli...
"use strict"; var canvas; var gl; var numPositions = 36; var texSize = 256; var numChecks = 8; var program; var texture1, texture2; var t1, t2; var c; var flag = true; var image1 = new Uint8Array(4*texSize*texSize); for (var i = 0; i < texSize; i++) { for (var j = 0; j <texSize; j++) { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.selectFileForPinning = exports.applyAllFixes = exports.fixIndividualRequirementsTxt = exports.pipRequirementsTxt = void 0; const debugLib = require("debug"); const pathLib = require("path"); const sortBy = require('lodash.sortby'); con...
import React, { useState, useRef } from "react"; import "./TableModal.css"; import { Modal, Form, Row, Col } from "react-bootstrap"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faTrashAlt, // faCog, faPlusCircle, } from "@fortawesome/free-solid-svg-icons"; import { Button } from "re...
import PointerInteraction from 'ol/interaction/Pointer'; import { CLASS_CONTROL, CLASS_UNSELECTABLE } from 'ol/css'; import {Vector as VectorSource} from 'ol/source'; import {Vector as VectorLayer} from 'ol/layer'; import Feature from 'ol/Feature'; import Overlay from "ol/Overlay"; import {Control} from 'ol/control'; i...
import hex2rgba from "hex2rgba" // TODO all of _this_ import { // borders as b, breakpoints as bp, colors as c, fonts as f, fontSizes as fs, fontWeights as fw, letterSpacings as ls, lineHeights as lh, mediaQueries as mq, radii as r, shadows as sh, sizes as s, space as sp, transition as t, ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActionCreators } from 'redux-undo'; import { StyleSheet, css } from 'aphrodite'; import * as TracksActions from '../actions/tracks'; import * as TrackActions from '../actions/track'; im...
import React from "react"; import PropTypes from "prop-types"; import axios from "axios"; import Fab from "@material-ui/core/Fab"; import { withStyles } from "@material-ui/core/styles"; import withLanguage from "./LanguageContext"; import Texts from "../Constants/Texts"; import ActivityOptionsModal from "./OptionsModal...
//globals var listStopWatch = []; var idCounter = 1; //gives id to the watch object //given time in seconds returns a string in format hh:mm:ss function GiveTimeString(remSeconds) { var secs = remSeconds % 60; remSeconds = remSeconds - secs; var mins = (remSeconds / 60) % 60; remSeconds = remSeconds / 60 - min...
const Fs = require('fs'); NEWSCHEMA('Templates', function(schema) { schema.define('id', UID); schema.define('type', ['page', 'post', 'newsletter'], true); schema.define('name', 'String(50)', true); schema.define('body', String, true); schema.setGet(function($) { NOSQL('templates').one().where('id', $.id).call...
var gcloud = require('gcloud') , util = require('util'); // check interval for real queries, not system queries var BLOCK_CHECK_INTERVAL = 1000; // 1sec var MAX_RESULTS_FOR_EACH_FETCH = 1000; var jobname_jobid_map = {}; var Executer = exports.Executer = function(conf, logger){ if (conf.name !== 'bigquery') t...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.RxSchema = undefined; var _typeof2 = require('babel-runtime/helpers/typeof'); var _typeof3 = _interopRequireDefault(_typeof2); var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); var _slicedToArray3 = _intero...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScrollableView = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _classnames = _interopRequireDefault(require("classnames")); var _DomHandler = ...
/** * 用户相关 */ import { loginByUsername, logout, getUserInfo, userCurrent } from "@/api/login"; import { columnListAll } from "@/api/cms/columnManage"; import { UserCurrent } from "@/api/user/user"; import { getAuth, setAuth, removeAuth, setBaseInfor, setColumnAll, setColumnAllOrigin, setCoo...
// Convert GeoJSON features to flat binary arrays export function geojsonToBinary(features, options = {}) { const firstPassData = firstPass(features); return secondPass(features, firstPassData, { coordLength: options.coordLength || firstPassData.coordLength, numericPropKeys: options.numericPropKeys || first...
import React, { Component } from 'react' import './css/GraphVisual.css' import Hoverer from './Hoverer' import { give_mouse_pos, grid_initialise, change_cell_info, change_origin } from '../private/actions/GridActionCreator' import { mouse_pos_change, mouse_left_click, SELECTABLE_COMPONENT } from '../private/actions/Mou...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { toDate, getFirstDayOfMonth, getDayCountOfMonth, getWeekNumber, getStartDateOfMonth, DAY_DURATION, SELECTION_MODES, deconstructDate, hasClass, getOffsetToWeekOrigin } from '../../../utils/date...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2019 Adobe ~ ~ 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/li...
const logger = require('winston'); const axios = require('axios'); const moment = require('moment'); const Contract = require('./contract'); const FD = require('./frontdata'); const rentModel = require('../models/rent'); const occupantModel = require('../models/occupant'); const config = require('../config'); const _f...
/** * Copyright (c) 2020 <NAME> and CAD Team * (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/graphs/contributors) * Licensed under MIT * (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/blob/3.X.X-Branch/LICENSE) * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IM...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toCamel = exports.fromCamel = exports.capitalizeFirstChar = exports.smartRepeat = exports.strRepeat = exports.subString = exports.removeStrByNum = exports.chinese2Number = exports.number2Chinese = exports.strPadEnd = exports.strPadStar...
'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Account2FA = exports.AccountMultisig = exports.MULTISIG_CONFIRM_METHODS = exports.MULTISIG_CHANG...
'use strict'; /** @namespace DevKit */ var DevKit; (function (DevKit) { 'use strict'; DevKit.msdyn_bookingsetupmetadataApi = function (e) { var EMPTY_STRING = ''; var f = '@OData.Community.Display.V1.FormattedValue'; function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entit...
import React, { Component } from 'react'; import { fetchAuthorRecords, reviseAuthor, deleteAuthor } from '../../actions/authors'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { setUserNumberOfEdits } from '../../utils/secure'; import _ from 'lodash'; import Notifications, {notify} ...
import 'source-map-support/register' import { Server } from 'http' import express from 'express' import MqttConnection from 'mqtt-connection' import path from 'path' import wrapApiHandler from 'resolve-api-handler-express' import createCommandExecutor from 'resolve-command' import createEventStore from 'resolve-es' imp...
import React from 'react'; import CSSModules from 'react-css-modules'; import InlineSVG from 'svg-inline-react'; import {Parse} from 'parse'; import ContentBase from './ContentBase'; import {MediaItemData} from 'models/MediaItemData'; import {FILE_SIZE_MAX} from 'ConnectConstants'; import {MODAL_TYPE_MEDIA} from 'duck...
// EWE var lang = { "AD": "Andorradu", "AE": "United Arab Emiratesdu", "AF": "Afghanistadu", "AG": "Antigua kplɛ Barbudadukɔwo", "AI": "Anguilladu", "AL": "Albaniadu", "AM": "Armeniadu", "AO": "Angoladu", "AQ": "Antartica nutome", "AR": "Argentinadu", "AS": "Amerika Samoadu",...
#! /usr/bin/env node var package = require('./package'); var cmd = require('commander'); var colour = require('colour'); var fs = require('fs'); var p = require('path'); var omit = require('lodash/omit'); var merge = require('lodash/merge'); var get = require('lodash/get'); var mapValues = require('lodash/mapValues'); ...
import { copyAndExtendArray, copyArray } from "vis-util/esnext"; let errorFound = false; let allOptions; const printStyle = "background: #FFeeee; color: #dd0000"; /** * Used to validate options. */ class Validator { /** * @ignore */ constructor() {} /** * Main function to be called * * @param ...
//state variables cellTypes = { 1:'obstacle', 2:'start', 3:'end', 4:'bfs' } positions = { 1: [], 2: [], 3: [] } start = []; end = []; currentStage = 1; startFlag = false; endFlag = false; grid = [ [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,...
var simulationColor = "#0579A8"; var currentColor = "#696969"; var qualityFactors = []; var strategicIndicators = []; var categories = []; var detailedCharts = []; function getAllQualityFactors () { var url = "../api/qualityFactors/current"; $.ajax({ url : url, type: "GET", success: fu...
import 'babel-polyfill'; import gulp from 'gulp'; import * as glob from 'glob'; import path from'path'; import {merge} from 'event-stream'; import runSequence from 'run-sequence'; import shell from 'gulp-shell'; import WebpackDevServer from 'webpack-dev-server'; import open from 'open'; import os from 'os'; import fs ...
var express = require('express'), exphbs = require('express-handlebars'), session = require('express-session'), bodyParser = require('body-parser'), https = require('https'), oauthserver = require('oauth2-server'), config = require('./config.json')[process.env.NODE_ENV || 'dev'], //ecgapi =...
/* * Copyright (C) 2019 The Android Open Source Project * * 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 app...
import fs from 'fs'; import path from 'path'; import { promisify } from 'util'; import resolve from 'resolve'; import { getPackageInfo, getPackageName } from './util'; import { exists, realpath } from './fs'; import { isDirCached, isFileCached, readCachedFile } from './cache'; const resolveImportPath = promisify(res...
/* * phi */ /* * 定数 */ var SCREEN_WIDTH = 720; var SCREEN_HEIGHT= 480; var CIRCLE_RADIUS = 30; var CIRCLE_MAX_NUM = 15; var CIRCLE_PURSUIT_RATE = 0.25; // 収束率 /* * グローバル */ var app = null; var pad = null; var player = null; var bulletGroup = null; var enemyGroup = null; var attackButton = null; var play...
/* The MIT License (MIT) Copyright (c) 2019 <NAME>, <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, merg...
import mockjs from 'mockjs'; import { getRule, postRule } from './mock/rule'; import { getActivities, getNotice, getFakeList, ok } from './mock/api'; import { getFakeChartData } from './mock/chart'; import { imgMap } from './mock/utils'; import { getProfileBasicData } from './mock/profile'; import { getProfileAdvancedD...
const path = require('path') var fs = require('fs') var app = angular.module('invoiceapp',['angularjs-gauge',"chart.js",'angularUserSettings']); function isDev() { return process.mainModule.filename.indexOf('app.asar') === -1; } app.config(['ChartJsProvider', function (ChartJsProvider) { // Configure all charts ...
'use strict'; import Base from './base.js'; var fs = require('fs'); var path = require('path'); export default class extends Base { /** * index action * @return {Promise} [] */ async indexAction() { let videos = await this.model('video').limit(10).select(); return this.success({ videoLis...
const WindowUtils = require('sdk/window/utils'); const BrowserWindows = require("sdk/windows").browserWindows; const ViewFor = require("sdk/view/core").viewFor; const PrivateBrowsing = require("sdk/private-browsing"); const _ = require("sdk/l10n").get; // The style used by other containers. It's applied by element id ...
// JavaScript Document // set up registry object var AppData = new function() { this.ajax = null; this.statusDiv = null; this.itemDiv = null; this.form1 = null; this.itemData = new Array(); this.editActive = false; this.screenDiv = null; this.hoverDiv = null; }; // AppData // set up application ob...
const apiKey = "066175ef18c1de669d745d524ec3467a"; let lat = "44.506159"; let long = "-73.27059"; let city = "Burlington" let place = "Vermont"; let timeOffset = ""; let weather = { fetchWeather: function(lat, long, city) { fetch( // "https://api.openweathermap.org/data/2.5/weather?q=" + zip...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const names = require("./names"); const random = require("./random"); /** A store of pseudonyms, indexed by type and variable index. */ exports.variableMapping = {}; exports.usedForType = {}; function pseudonymize(s, labels) { let [type, e...
import React, { useContext, useState } from 'react'; import PropTypes from 'prop-types'; import { graphql, Link, useStaticQuery } from 'gatsby'; import clsx from 'clsx'; import ReactModal from 'react-modal'; import { object, string } from 'yup'; import { useForm } from 'react-hook-form'; import { yupResolver } from '@h...
const images = [ {src: 'img/Asset_1.svg', width: 267.02, height: 218.31}, {src: 'img/Asset_11.svg', width: 204.36, height: 375.54}, {src: 'img/Asset_12.svg', width: 252.37, height: 254.81}, {src: 'img/Asset_13.svg', width: 262.87, height: 364.2}, {src: 'img/Asset_14.svg', width: 256.19, height: 365.41}, {sr...
/* eslint-disable camelcase, no-underscore-dangle, class-methods-use-this, max-classes-per-file */ const url = require('url'); const path = require('path'); const got = require('got').default; const NodeCache = require('node-cache'); const symbols = require('../symbols'); const AsyncQueue = require('../async_queue');...
/****************************************************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the abov...
import React from 'react'; import { Editor, EditorState, CompositeDecorator, RichUtils, getDefaultKeyBinding, KeyBindingUtil, convertFromRaw, convertToRaw } from 'draft-js'; import Link from '../components/Link' import { findLinkEntities, addLink } from '../modifiers/link' import Mention from '../components/Mention' ...
/* Template Name: Doctris - Doctor Appointment Booking System Author: Shreethemes Website: https://shreethemes.in/ Mail: <EMAIL> Version: 1.0.0 Updated: July 2021 File Description: Main JS file of the template */ /*********************************/ /* INDEX */ /*==============...
/** * This file demonstrates the process of starting WebRTC streaming using a KVS Signaling Channel. */ const viewer = {}; async function startViewer(remoteView, formValues, onStatsReport, onRemoteDataMessage) { // viewer.localView = localView; viewer.remoteView = remoteView; // Create KVS client co...
/** * Created by niek on 29-3-2016. */ //maak database waar locatie van pokomons inzitten if (window.openDatabase) { //Create the database the parameters are 1. the database name 2.version number 3. a description 4. the size of the database (in bytes) 1024 x 1024 = 1MB var mydb = openDatabase("pokomon_db", "0...
/** @license Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
let c = 1; var playertwo; var playerone; function forfeit() { document.getElementById("forfeit").classList.toggle("hide", false); document.getElementById("game").classList.toggle("hide", true); } function rage() { document.getElementById("forfeit").classList.toggle("hide", true); document.getElementById("game")...
import { treatString, treatNumber, treatObject, treatOther } from './treat' import React from 'react' import { findRuleByDottedName, disambiguateRuleReference, findRule, findParentDependency } from './rules' import { chain, cond, evolve, path, map, mergeAll, keys, is, T, pipe, pick } from 'ramda' import...
/* * == BSD2 LICENSE == * Copyright (c) 2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
document.addEventListener("DOMContentLoaded", function (event) { let ajaxSpinner = document.querySelectorAll(".ajax-status-spinner"); let apiPublicSettingsWrapper = document.getElementById('publicApiSettings'); let TwigTemplates = document.getElementById('extensionCollapseParent'); let btnBack = docume...
'use strict'; /** @module ember-cli */ const path = require('path'); const findUp = require('../../../utilities/find-up').findUp; const { promisify } = require('util'); let resolve = promisify(require('resolve')); const fs = require('fs-extra'); const _ = require('lodash'); const nodeModulesPath = require('node-module...
import React from "react" import { graphql } from "gatsby" import { useIntl } from "gatsby-plugin-intl" import { MDXProvider } from "@mdx-js/react" import { MDXRenderer } from "gatsby-plugin-mdx" import styled from "styled-components" import { Twemoji } from "react-emoji-render" import Button from "../components/Butto...
"use strict"; 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) { t...
#!/usr/bin/env node const { Pool } = require('undici') const path = require('path') const mkdirp = require('mkdirp') const fs = require('fs') const sodium = require('sodium-universal') const pump = require('pump') const tar = require('tar-fs') const gunzip = require('gunzip-maybe') const os = require('os') const IMS =...
/** * Module dependencies. */ const _ = require('lodash'); // const glob = require('glob'); const gulp = require('gulp'); const gulpLoadPlugins = require('gulp-load-plugins'); const path = require('path'); const { runCLI } = require('@jest/core'); const inquirer = require('inquirer'); const plugins = gulpLoadPlugins...
import React from "react"; import { StyleSheet, Dimensions, ScrollView, Image, ImageBackground, Platform, Alert, AsyncStorage, KeyboardAvoidingView, ActivityIndicator } from "react-native"; import { Block, Text, theme } from "galio-framework"; import {key} from '../googleAPIKey'; import { Button, Ic...
import React, { Component } from 'react' import {connect} from 'react-redux'; import { Link } from 'react-router-dom' import { Button, FormGroup, Label, Input } from 'reactstrap'; import AnnotatedSection from '../components/AnnotatedSection' import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-...
'use strict' /** * This is a module that takes an original image and resizes * it to common icon sizes and will put them in a folder. * It will retain transparency and can make special file * types. You can control the settings. * * @module tauricon * @exports tauricon * @author <NAME>-Yvetot * @license MIT ...
/* Copyright 2018 <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,...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom' import { Control } from 'react-redux-form'; import { Card, CardHeader, CardBody, FormGroup, Col, Button, Label} from 'reactstrap'; import { BootstrapTable, TableHeaderColumn } from 'react-b...
/* global $, JitsiMeetJS */ const options = { hosts: { domain: 'room.jhmeeting.com', anonymousdomain: 'guest.room.jhmeeting.com', muc: 'muc.room.jhmeeting.com' }, bosh: 'https://room.jhmeeting.com/http-bind' }; const confOptions = { openBridgeChannel: true }; const gumConstrai...