text
stringlengths
3.22k
29.5k
var bodyParser = require('body-parser'); var app, options; var hooks = {}; var modelMap = {}; var kalamata = module.exports = function(_app_, _options_) { app = _app_; options = _options_; app.use(bodyParser.json()); if(!options) options = {}; if(!options.apiRoot) options.apiRoot = '/'; else ...
/** * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * 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...
const { ipcRenderer } = require('electron'); const { dialog } = require('electron').remote; const low = require('lowdb'); const FileSync = require('lowdb/adapters/FileSync'); const adapter = new FileSync('db.json'); const db = low(adapter); window.onload = () => { checkLogin(); ipcRenderer.on('loginres', (event, re...
/* Copyright 2016 First People's Cultural Council 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 w...
"use strict"; var REFLECTION_ID = 0; function resetReflectionID() { REFLECTION_ID = 0; } exports.resetReflectionID = resetReflectionID; (function (ReflectionKind) { ReflectionKind[ReflectionKind["Global"] = 0] = "Global"; ReflectionKind[ReflectionKind["ExternalModule"] = 1] = "ExternalModule"; Reflectio...
'use strict'; const Joi = require('@hapi/joi'); const Hoek = require('@hapi/hoek'); const ExcelJs = require('exceljs'); const FastCsv = require('fast-csv'); const internals = { routeMap: new Map() }; exports.plugin = { pkg: require('../package.json'), register: (server, options) => { internals....
import React, { Component } from 'React'; import { connect } from 'dva'; import { Table, Row, Col, Button, Form, Input, Card, DatePicker, Modal, Popconfirm, Popover, Cascader } from 'antd'; import { G2, Chart, Geom, Axis, Tooltip, Coord, Label, Legend, View, Guide, Shape, Facet, Util } from "bizcharts"; import styles f...
function isOnePointZero(n) { return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1; } function pad2(c) { return c.length == 1 ? '0' + c : '' + c; } function isPercentage(n) { return typeof n === "string" && n.indexOf('%') != -1; } function convertDecimalToHex(d) { return Math.round(parseF...
// Github: https://github.com/shdwjk/Roll20API/blob/master/FateDots/FateDots.js // By: <NAME>, <NAME> // Contact: https://app.roll20.net/users/104025/the-aaron var API_Meta = API_Meta||{}; API_Meta.FateDots={offset:Number.MAX_SAFE_INTEGER,lineCount:-1}; {try{throw new Error('');}catch(e){API_Meta.FateDots.offs...
const clone = require('lodash/clone'); const each = require('lodash/each'); const isEmpty = require('lodash/isEmpty'); const isPlainObject = require('lodash/isPlainObject'); const Oracle_Compiler = require('../../oracle/query/oracle-querycompiler'); const ReturningHelper = require('../utils').ReturningHelper; const Blo...
import React from 'react'; import Grid from '@material-ui/core/Grid'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import TextField from '@material-ui/core/TextField'; import FormControlLabel from '@material-ui/core/FormCo...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var consola = _interopDefault(require('consola')); var child_process = require('child_process'); var chalk = _interopDefault(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = stem; var _findMatchingEndingInArray = require("../morphoHelpers/findMatchingEndingInArray"); /** * Checks whether the character is a vowel. * * @param {string} character The character to check. * @param {string[]...
import root from 'window-or-global'; require('./bootstrap'); // let token = document.head.querySelector('meta[name="csrf-token"]'); if (token) { root.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; } else { console.error('CSRF token not found.'); } root.Vue = require('vue'); Vue.config.productio...
#!/usr/bin/env node import fs from 'fs'; import path from 'path'; import { assign, compact, debounce, get, isEmpty, map, size, } from 'lodash'; import portfinder from 'portfinder'; import bodyParser from 'body-parser'; import cors from 'cors'; import helmet from 'helmet'; import compression from 'compression'; imp...
/** * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module image/imagetype/imagetypeediting */ import { Plugin } from 'ckeditor5/src/core'; import { Element, enablePlaceholder } from ...
/*! @license Firebase v4.3.0 Build: rev-bd8265e Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Sha1 = undefined; var _hash = require('./hash'); /** * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (...
'use strict'; /* @flow */ const Value = require('../Value'); const PropertyDescriptor = require('./PropertyDescriptor'); const CompletionRecord = require('../CompletionRecord'); const PrimitiveValue = require('./PrimitiveValue'); const NullValue = require('./NullValue'); const GenDash = require('../GenDash'); const Ev...
"use strict"; var canvas; var gl; var trans= vec3(0,0,0); var scale=vec3(1, 1, 1); var rotationX= 0; var rotationY= 1; var rotationZ= 2; var count = 36; var rotation= 0; var theta2 = 0.0; var color= [0,0,0,1] ; var colorLoc; var speed= 0.5; var FOVY=45,posX=0,posY=1,posZ=2,tarX=0,tarY=0,tarZ=0 ; var bufferT...
const selectListener = Symbol("selectstartListener"); const touchStartListener = Symbol("downListener"); const touchMoveListener = Symbol("touchMoveListener"); const touchStopListener = Symbol("touchStopListener"); const mouseStartListener = Symbol("mouseStartListener"); const mouseMoveListener = Symbol("mouseMoveLis...
import Quill from 'quill' import TableColumnTool from './modules/table-column-tool' import TableSelection from './modules/table-selection' import TableOperationMenu from './modules/table-operation-menu' import BetterTableSnowTheme from "./themes/better-table-snow"; import TablePicker from "./ui/table-picker"; // impor...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
import express from 'express'; import https from 'https'; import http from 'http'; import ip from 'ip'; import favicon from 'serve-favicon'; import path from 'path'; import fs from 'fs-extra'; import chalk from 'chalk'; import { logger, colors, instance as npmLog } from '@storybook/node-logger'; import fetch from 'node...
var style, gestureHandling; if (navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1 ) { style = "width: 100%; height: 300px;"; gestureHandling = "cooperative"; } else { style = "width: 100%; height: 600px;"; gestureHandling = "greedy"; } /**Trabaando con la Red Li...
/** * Created by Ady on 12/27/2014. */ var http = require('http'); var Q = require('q'); var Class = require('./Class.js').Class; const events = require('events'); const util = require('util'); const request = require('request'); const _ = require('underscore'); var Bot = require('./bot.js'); var AdminBot = require('...
const { isHidden } = require('lib/path-utils.js'); const { Logger } = require('lib/logger.js'); const { shim } = require('lib/shim'); const BaseItem = require('lib/models/BaseItem.js'); const JoplinError = require('lib/JoplinError'); const ArrayUtils = require('lib/ArrayUtils'); const { time } = require('lib/time-utils...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _defineProperty2 = _interopRequir...
/** Filename: commands.js AppLamp.nl led light API: wifi box byte commands � AppLamp.nl: you can share,modify and use this code (commercially) as long as you keep the referer "AppLamp.nl led light API" in the file header. RESPECT AT LEAST 50 MS BETWEEN EACH SEND COMMAND TO PREVENT PACKAGE LOSS The functions in t...
String.prototype.render = function (context) { var tokenReg = /(\\)?\{([^\{\}\\]+)(\\)?\}/g; return this.replace(tokenReg, function (word, slash1, token, slash2) { if (slash1 || slash2) { return word.replace('\\', ''); } var variables = token.replace(/\s/g, '').split('.'); ...
import { Plugin, PluginKey } from 'prosemirror-state'; import { Decoration, DecorationSet } from 'prosemirror-view'; import { cellAround, pointsAtCell, setAttr } from './util'; import { TableMap } from './tablemap'; import { TableView, updateColumns } from './tableview'; import { tableNodeTypes } from './schema'; expo...
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _applyNativeMe...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.POUCH_HASH_KEY = exports.POUCHDB_LOCAL_PREFIX = exports.POUCHDB_DESIGN_PREFIX = exports.OPEN_POUCHDB_STORAGE_INSTANCES = void 0; exports.getEventKey = getEventKey; exports.getPouchIndexDesignDocNameByIndex = getPouchIndexDesignDocNa...
import React, { Component, PureComponent, forwardRef } from "react" import hoistStatics from "hoist-non-react-statics" import { createAtom, Reaction, _allowStateChanges, $mobx } from "mobx" import { findDOMNode as baseFindDOMNode } from "react-dom" import EventEmitter from "./utils/EventEmitter" import inject from "./...
/** * Code coverage via istanbul. * * @module grunt-template-jasmine-istanbul * @class template */ var path = require('path'); var istanbul = require('istanbul'); var grunt = require('grunt'); var lodashTemplate = require('lodash.template'); var REPORTER = __dirname + '/reporter.js'; var TMP_REPORTER = 'grunt-tem...
$( document ).ready(function() { G.modelsSidebar = new ModelsSidebar(""); }); const MAX_SIDEBAR_WIDTH = 500; const MIN_SIDEBAR_WIDTH = 20; /** * Function to show an HTML rename input in place of the given labelDiv. * @param {HTMLElement} labelDiv The div to replace temporarily. * @param {String} type Either 'm...
import faker from 'faker'; import { pick, sum } from 'ramda'; import { dataStore, view } from './data-store'; import { extendedProjects } from './projects'; import { extendedUsers } from './users'; import { fakePastDate, isBefore } from '../util/date-time'; import { fields as testDataFields } from './fields'; import {...
/** * pty_win.js * Copyright (c) 2012-2015, <NAME>, <NAME> (MIT License) */ var net = require('net'); var path = require('path'); var extend = require('extend'); var inherits = require('util').inherits; var BaseTerminal = require('./pty').Terminal; var pty = BaseTerminal.native; // Counter of number of "pipes" cre...
var Transport = require("./transport").Transport, MailComposer = require("mailcomposer").MailComposer, XOAuthGenerator = require("./xoauth").XOAuthGenerator, helpers = require("./helpers"), packageData; try{ packageData = require("../package.json"); }catch(E){ // probably node 0.4 which doesn't...
import { useState } from "react"; import Image from "next/image"; import { Accordion, AccordionItem, AccordionButton, AccordionPanel, } from "@reach/accordion"; import ArrowIcon from "../icons/arrow.svg"; import "@reach/accordion/styles.css"; const DEFAULT_CLUB = "https://media.contentapi.ea.com/content/da...
const config = require("./config") const Entities = require('html-entities').Html5Entities const entities = new Entities() const {commentsDB,metaDataDB,textAnalysisResultCache,postIndex,invertedPostIndex} = require("./db") const tokenize = str => { //(?:https?:\/\/)(?:www\.)?([\w-\.]+\.[a-z]+)(?:\/\S*)? //s...
import {Meteor} from 'meteor/meteor'; import {Facts} from "../imports/api/facts"; import {Names} from "../imports/api/names"; import {Persons} from "../imports/api/persons"; import {Families} from "../imports/api/families"; import {Children} from "../imports/api/children"; import {Notes} from "../imports/api/notes"; im...
var jumpToCell; var jumps; var isSnake; var boardSize; var cellSize; var boardOffset; var playerOffset; var playerSize; var playerStarted; var playerPosOld; var playerPosNew; var playerPosJmp; var playerActive; var diceNum; var repeatThrow; var diceLocked; var gameover; var winner; $(document).ready(fu...
import Ember from 'ember'; import gridLayout from '../utils/grid-layout'; const UNIT = (units) => { return `${ units.share}% - (${ units.gutter } * ${ units.gutterShare})`; }; const POSITION = (positions) => { return `calc((${positions.unit} + ${positions.gutter }) * ${positions.offset})`; }; const DIMENSION = (...
// App args. var APP_ARGS; // Basic objects. var CAM_VIDEO = document.createElement('video'); var BG_CANVAS = document.getElementById('BG_CANVAS'); var TJ_CANVAS = document.getElementById('TJ_CANVAS'); // Drawing tools. var CVT_CANVAS = document.createElement('canvas'); var TMP_MATRIX = new THREE.Matrix4(); // Three...
// searchData contains the values selected by the user // { // 'materials': ["Birchbark", "Palm Leaf"], // 'languages': ... // } var results; var searchData; let paramTypes = ['languages', 'contexts', 'forms', 'materials']; let keys = ['id', 'manuscript', 'languages', 'geopolitical_context', 'terminus_p...
import './scss/widgets.scss'; import ApolloClient from 'apollo-boost'; // import { IntrospectionFragmentMatcher } from 'apollo-cache-inmemory'; // import { InMemoryCache } from 'apollo-cache-inmemory'; import gql from 'graphql-tag'; import Vue from 'vue'; import VueI18n from 'vue-i18n' import _ from 'lodash'; import Vu...
import React, { Component } from 'react'; import { AppRegistry, Platform, StyleSheet, Text, View, ImageBackground, BackHandler, Image, TouchableOpacity, Button, TextInput, ScrollView, CheckBox, ActivityIndicator,Alert, } from 'react-native'; import { createStackNavigator } from 'react-navigation' import CardStack, ...
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import App from 'app/app'; import TinyMce from './TinyMce'; import TagEditor from './TagEditor'; import FeaturedImagePicker from './FeaturedImagePicker'; import ConfigPostEditor from './ConfigPostEditor'; const Translate = require('re...
"use strict"; const prettyMs = require("pretty-ms"); const fecha = require("fecha"); const sameDay = (a, b) => a.getDate() === b.getDate() && a.getMonth() === b.getMonth() && a.getYear() === b.getYear(); const lceq = (a, b) => a.toLowerCase() === b.toLowerCase(); function renderSlackErrorDM(build, report) { con...
'use strict'; import kmStyle from "./km.module.css"; var _ = require('./underscore_ext'); import PureComponent from './PureComponent'; var React = require('react'); import {Button} from 'react-toolbox/lib/button'; import Dialog from 'react-toolbox/lib/dialog'; var Axis = require('./Axis'); var {linear, linearTicks} ...
// Copyright 2018 Google LLC // // 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 ...
'use strict'; const ECKey = require('../ec-key'); const expect = require('chai').expect; const fs = require('fs'); describe('EC Key', function() { var re = /-+BEGIN .* KEY-+([\s\S]+)-+END .* KEY-+/m; var names = [ 'prime256v1', 'secp384r1', 'secp521r1', 'secp256k1' ]; var curves = {}; before(function() { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireWildcard(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _cssClasses = _interopRequireDefault(require("../cssClasses")); var _dimensions = r...
"use strict"; const renderer = new THREE.WebGLRenderer({ antialiasing: false, alpha: false, preserveDrawingBuffer: true }); renderer.setSize(window.innerWidth, window.innerHeight); renderer.setPixelRatio(window.devicePixelRatio); renderer.setClearColor(0x000000); const exposure = 1.2; renderer.toneMapping = THREE.Re...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContextMenu = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; desc...
import videojs from "video.js"; /**@ignore */ const Plugin = videojs.getPlugin('plugin'); /**@ignore */ const MenuItem = videojs.getComponent('MenuItem'); /**@ignore */ const MenuButton = videojs.getComponent("MenuButton"); /**@ignore */ var defaults = {}, currentResolution = {}, // stores current resolution menuI...
#!/usr/bin/env node /** * CLI tool to parse git diff and build a package.xml file from it. * This is useful for using the MavensMate deployment tool and selecting the existing package.xml file * Also used in larger orgs to avoid deploying all metadata in automated deployments * * usage: * $ sfpackage master fea...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Image, TextInput, Dimensions, KeyboardAvoidingView, ActivityIndicator, Platform, Scroll...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _VData = require("../VData"); var _VDataFooter = _interopRequireDefault(require("./VDataFooter")); var _themeable = _interopRequireDefault(require("../../mixins/themeable")); var _helpers = require("../../u...
import { EquipmentFieldTypes } from '@/lib/Character/Character/enums'; import { EquipmentTypes } from '@/lib/Character/CharacterEquipment/enums'; import DataContainer from '@/views/SkillQueryOld/utils/DataContainer.js'; import handleSkillFormula from '@/views/SkillQueryOld/utils/handleFormula.js'; class SkillBranchHa...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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...
/* eslint-disable react/react-in-jsx-scope */ /* eslint-disable jsx-a11y/alt-text */ /* eslint-disable no-undef */ import { useRouter } from "next/router"; import { formatDate } from "../utils/utils"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faPaw, faBaby, faChevronDown, faChev...
'use strict'; var compileSchema = require('./compile') , resolve = require('./compile/resolve') , Cache = require('./cache') , SchemaObject = require('./compile/schema_obj') , stableStringify = require('json-stable-stringify') , formats = require('./compile/formats') , rules = require('./compile/rules') ...
import { useState, useRef, useEffect, useContext } from 'react'; import Menu from '../Menu'; import { PlayingContext } from '../../contexts/PlayingContext'; import api from '../../services/api'; import './styles.scss'; import { FaAngleDoubleLeft, FaAngleDoubleRight, FaAngleDown, FaAngleUp, FaPause, FaPlay, Fa...
/** * MIT License * * Copyright (c) 2019 <<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, modif...
// const { trim } = require("jquery"); (function ($) { // Preloader Image $(document).ready(function() { $('#loader').fadeOut('slow',function(){$(this).remove();}); }); // Sticky Header $(window).scroll(function() { if($('.header').length){ var mainHeader = $('.header').height(); var window...
/** * Created by dwelter on 04/02/15. */ $(document).ready(function() { //used to display the error msg of form validation $('#filter-form :input').tooltipster({ //find more options on the tooltipster page trigger: 'custom', // default is 'hover' which is no goo...
import ArrayChanges from 'array-changes'; import ObjectAssign from 'object-assign'; import isNativeType from './isNativeType'; import convertToDiff from './convertToDiff'; import Weights from './Weights'; import * as DiffCommon from './diffCommon'; import RequiresAsyncError from './requiresAsyncError'; function diffE...
var reporting = { initPage: function(){ reportingZTree.initZTree(); /*补全功能:根据key查询关联仪表盘*/ $('#keyword').input(function() { setTimeout(function() { var key = $("#keyword").val(); reporting.autocomplete(key); $('#tipContent').css('display', 'block'); }, 30) }); }, autocomplete: function(key) ...
//pdbSubmit SubmitBox with canva var Core = require('./Core.js').Core; var sprintf = require("sprintf-js").sprintf, vsprintf = require("sprintf-js").vsprintf; // Constructor var pdbSubmit = function(opt) { var nArgs = opt ? opt : {}; Core.call(this, nArgs); } pdbSubmit.prototype = Object.create(Core.protot...
import React, {useState} from 'react'; import PropTypes from 'prop-types'; import {useTranslation} from 'react-i18next'; import {StyleSheet, ScrollView, View} from 'react-native'; import { Button, Chip, Dialog, Portal, RadioButton, Text, TextInput, TouchableRipple, } from 'react-nati...
import React, {useState, useEffect} from 'react'; import axios from 'axios'; // import {formatDistance} from 'date-fns'; // import { // formatDate, // formatDateAbsolute, // validateCTS // } from '../utils/common-functions'; import * as R from 'ramda'; /* import * as Icon from 'react-feather'; import {Link} from ...
const cheerio = require('cheerio'); const config = require('../config'); const logger = require('../logger'); // Page tags to always include const alwaysIncludeTags = ['scp', 'supplement', 'tale']; // Page tags to exclude const excludeTags = ['artwork', 'workbench', 'author'] /** * Filters given document by tags *...
/* Copyright 2016 OpenMarket Ltd Copyright 2018 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("74295afcbe3851329365d06de2aa5a5e.js"); /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at h...
var CLIENT_EVENTS = require('slack-client').CLIENT_EVENTS; var RTM_EVENTS = require('slack-client').RTM_EVENTS; var RTM_CLIENT_EVENTS = require('slack-client').CLIENT_EVENTS.RTM; var RtmClient = require('slack-client').RtmClient; var MemoryDataStore = require('slack-client').MemoryDataStore; var Auth = require('./auth'...
var aFeatureHasBeenSelectedGbdx = aFeatureHasBeenSelected; aFeatureHasBeenSelected = function(feature, event) { if (feature.getProperties().featureType == "gbdx") { displayGbdxFeatureInfo(feature, event.pixel); } else { aFeatureHasBeenSelectedGbdx(feature, event); } } function buildGbdxVectorTypesTable() { var t...
import * as THREE from 'three'; import TWEEN from '@tweenjs/tween.js'; import webXRScene from '../../webxrscene/src'; import vorhangSchiene from '../ThreeD/Vorhangschiene'; import SeilPoints from '../ThreeD/seilPoints'; import {AmbientLight, MeshBasicMaterial, SpotLight, Vector3} from 'three'; import HDRI from '../.....
"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)...
// app/AsideHead.js import React, {Component} from "react"; import {connect} from "react-redux"; import {withRouter} from "react-router-dom"; import {avatarUrlGenerator, OnWindowFocusInOut, avatarNameGenerator, socketStatus, routeChange} from "../utils/helpers"; import classnames from "classnames"; //strings import st...
// @flow import React from 'react'; import { Row, Col, Card, CardBody, Button, ButtonGroup, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem, Progress, } from 'reactstrap'; import classNames from 'classnames'; import avatar1 from '../../assets/images/users/av...
/* Copyright 2010, Google Inc. All rights reserved. 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 above copyright notice, this list of conditions and the following discla...
"use strict"; var md5 = require('MD5'); // Damn npm dependency, this isn't supposed to be a node project // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random // Returns a random integer between min (included) and max (excluded) // Using Math.round() will give you a non-unifo...
const fs = require('fs'); const Discord = require('discord.js'); const { prefix, token } = require('.//config.json'); // const ytdl = require('ytdl-core'); // const ytdldiscord = require('ytdl-core-discord'); const client = new Discord.Client(); client.commands = new Discord.Collection(); // const timestampForStatus...
import React, { useEffect, useState } from "react"; import { View, Text, StyleSheet, Button, Dimensions, Modal, } from "react-native"; import { ActivityIndicator, Colors } from "react-native-paper"; import axios from "axios"; import AppLoading from "expo-app-loading"; import Firebase from "../...
const assert = require('assert') const { assertMatches } = require('../../../test/support/asserts') const { join, resolve } = require('path') const Page = require('../src/page') const { testProjectPath } = require('../../../test/support/paths') const pagesPath = resolve(testProjectPath, 'src', 'uiengine', 'pages') con...
"use strict"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ Object.defineProperty(exports, "__esModule", { value: true }); var fs = require("fs"); var path = requi...
import React, { useState, useContext, useEffect, useCallback } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import styled from 'styled-components'; import { faStar } from '@fortawesome/free-solid-svg-icons'; import { useMutation, useLazyQuery } from '@apollo/react-hooks'; import Prop...
let jQuery = window.jQuery const resourcesDatabases = resourcesDatabase let userPosition let resourcesFilter = {} jQuery(document).ready(function () { // findUniqueStates() setUpUSAMap() populateStateSelectionDropdown() populateResourceCategoriesList() }) // $(window).on('scroll', function () { // if ($(this...
import React from "react"; import { AnchorButton, Tooltip, Position, NumericInput, Collapse, H4 } from "@blueprintjs/core"; import { connect } from "react-redux"; import * as globals from "../../globals"; import Category from "./category"; import { AnnotationsHelpers, ControlsHelpers } from "../../util/stateManager"; i...
const HP = require('../../ui/hp/index.js'); const ATB = require('../../ui/atb/index.js'); const Name = require('../../ui/name/index.js'); const type = require('../../model/actionType'); const ee = require('../../manager/eventEmitter'); module.exports = class Mob { constructor(model, index, nbMob) { this....
////////////////////////////////////////////////// // Home Screen ////////////////////////////////////////////////// import Lobby from './Lobby'; import OS from '../tablet/OS'; import IO from '../tablet/IO'; import Project from '../editor/ui/Project'; import Localization from '../utils/Localization'; import ScratchAud...
/** * sbus-gateway * Copyright(c) 2018 Process and Plant Automation Limited * Written by: <NAME> * Credits: coming soon * MIT Licensed */ 'use strict'; const sbusLib = require("./udp_server"); let statusUpdateInterval = 1000; var deviceTypes = {}; let periodictimer; let scheduledtimer; module.exports = { ...
var files = [ '2014-06-23-2029.gpx', '2014-07-02-1035.gpx', '2014-07-11-0942.gpx', '2014-07-21-1930.gpx', '2014-07-28-0954.gpx', '2014-08-05-1009.gpx', '2014-08-12-1021.gpx', '2014-06-24-0951.gpx', '2014-07-07-0931.gpx', '2014-07-15-1742.gpx', '2014-07-22-0934.gpx', '2014-07-28-1838.gpx', '201...
import axios from 'axios'; import { OpenVidu } from 'openvidu-browser'; import React, { Component } from 'react'; import './App.css'; import UserVideoComponent from './UserVideoComponent'; const OPENVIDU_SERVER_URL = 'https://' + window.location.hostname + ':4443'; const OPENVIDU_SERVER_SECRET = 'MY_SECRET'; class A...
import * as rsys from '../client/rsys'; import Dataframe from '../renderer/dataframe/Dataframe'; import { DEFAULT_ID_PROPERTY } from '../renderer/Metadata'; import CartoValidationError, { CartoValidationErrorTypes } from '../errors/carto-validation-error'; import util from '../utils/util'; import Base from './Base'; ...
import React from 'react'; import PropTypes from 'prop-types'; import { Typography, TextField, Grid } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import iconRetinaUrl from 'leaflet/dist/images/marker-icon-2x.png'; import ic...
import Ember from 'ember'; const { keys, create } = Object; // jshint ignore:line const { computed, observer, $, run, on, typeOf, debug, isPresent } = Ember; // jshint ignore:line const { defineProperty, get, set, inject, isEmpty, merge } = Ember; // jshint ignore:line const a = Ember.A; // jshint ignore:line const pa...
/* This file is part of CoverflowAltTab. CoverflowAltTab is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CoverflowA...
import React,{Component} from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import {Link} from 'react-router-dom' import './style.less' class Shop extends Component{ constructor(props){ super(props) } //总金额 getTotalNum() { let num = 0; if (this.props.cartFoodList) { ...