text
stringlengths
3.22k
29.5k
#! /usr/bin/env node "use strict"; // this is expected to run in nodejs /* global require, module */ /* jshint esnext:true */ /** * TODO: I put this currently in here because I'm on an airplane and want * to resuse this docker image and probably some code as well. But, * this service should be separated from this i...
/** * Human demo for browsers * * @description Demo app that enables all Human modules and runs them in separate worker threads * */ // @ts-nocheck // typescript checks disabled as this is pure javascript import Human from '../../dist/human.esm.js'; // equivalent of @vladmandic/human import GLBench from '../helpe...
const handlebars = require('handlebars') const config = require('config') const moreHandlebars = require('./more-handlebars') const monsters = require('../util/monsters') const { cpMultipliers, types, powerUpCost, } = require('../util/util') const moves = require('../util/moves') const TranslatorFactory = require('.....
// Set editor var editor = ace.edit("editor"); editor.setOptions({fontSize: "10pt"}); editor.setTheme("ace/theme/crimson_editor"); editor.getSession().setMode("ace/mode/asciidoc"); editor.getSession().on('change', _.debounce(function() {draw.diagram();}, 100)); // Put all of the process variables in to global var id, ...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
/* @author <NAME> */ const contentArea = id("globalNavPageContentArea"); const studentCourseHeading = "Emner hvor du er: Student"; const assCourseHeading = "Emner hvor du er: Læringsassistent"; const waitLen = "Vent mens modulen lastes...".length; const courseModule = id("div_3_1"); const announcementsModule = id("d...
import React, { useState, useEffect, Fragment } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import Table from "components/Table/Ta...
export function Displaydestinationdata(selectedMonth){ d3.select(".barplot").remove(); const chosenMonth = new Date(selectedMonth[0]).getMonth(); let destinationData = []; let month, day; var temp = []; let grocpharma = 'grocery_and_pharmacy_percent_change_from_baseline' let transit = 't...
var Log = { elem: false, write: function(text){ if (!this.elem) this.elem = document.getElementById('log'); this.elem.innerHTML = text; this.elem.style.left = (500 - this.elem.offsetWidth / 2) + 'px'; } }; function addEvent(obj, type, fn) { if (obj.addEventListener)...
import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/styles'; import { DenunciationsToolbar, DenunciationsTable } from './components'; import { Dialog, DialogActions, DialogContent, DialogTitle, Button, CircularProgress, Snackbar, SnackbarContent, Backdrop } f...
import React, {Component} from 'react' import {gql, graphql} from 'react-apollo' import {compose} from 'redux' import {css} from 'glamor' import {max} from 'd3-array' import Router from 'next/router' import Meta from '../Frame/Meta' import withT from '../../lib/withT' import Loader from '../Loader' import Play from '...
import React, { useEffect, useMemo, useState } from "react"; import { Card, CardBody } from "@windmill/react-ui"; import PageTitle from "../../../components/Typography/PageTitle"; import { Table, TableCell, TableBody, TableRow, TableContainer, TableHeader, Label, Input, Button, HelperText, Select...
/** * @see https://github.com/yuanyan/boron */ import React, { PropTypes, createClass, } from 'react'; import ReactDOM from 'react-dom'; import cx from 'classnames'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import ClassNameMixin from '../mixins/ClassNameMixin'; import TransitionEvents ...
'use strict'; const capitalize = require('capitalize'); const helpers = require('../helpers'); const pluralize = require('pluralize'); const DICTIONARY = require('../schema/dictionary'); // pluralize.addIrregularRule('data', 'datas'); var generateTableElement = function(label, data) { try { if (data.length > 1) ...
const { updateTask, updateAllTasks, updateTfmTask, } = require('./tasks.controller'); const { handleTaskEditFlagAndStatus } = require('../tasks/tasks-edit-logic'); const mapTaskObject = require('../tasks/map-task-object'); const { generateTaskEmailVariables } = require('../helpers/generate-task-email-variables');...
import * as THREE from 'three'; class ShapePointsMesh extends THREE.Points{ _defaultShape = 1; _defaultSize = 6; _defaultColor = 0x00ff00; _cnt = 0; _verts = []; _color = []; _config = []; _dirty = false; constructor( i...
// RULES: // 1. The whole input is an JSON Array // 2. 'next' should always be an JSON Array // 3. If the layer is for description, where the type is set as 'description', this layer should have exactly two JSON in type 'description' and 'response'. // (In this layer, type 'description' should be placed in front of...
function getRootDBPath() { // Figure out the root DB path given the current url of the page. This will // return just the hostname and the database name with /jobs or /fwjrs. var urlParts = location.href.split('/'); var rootDBName = urlParts[3].split('%2F')[0]; return "http://" + urlParts[2] + "/" + rootDBNa...
import React from 'react'; import { map, get, isEmpty } from 'lodash'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import { bindActionCreators } from 'redux'; import { Form, Select, Modal, message } from 'antd'; import { ALLOWED_IMG_FORMATS, MAX_IM...
/* jslint node: true */ 'use strict'; var assert = require('assert'); var _ = require('lodash'); const renderStringLength = require('./string_util.js').renderStringLength; exports.wordWrapText = wordWrapText2; const SPACE_CHARS = [ ' ', '\f', '\n', '\r', '\v', '​\u00a0', '\u1680', '​\u180e', '\u2000​',...
// @remove-file-on-eject // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will // terminate the Node.js process with a non-zero exit code. process.on("unhandledRejection", err => { throw err; }); const fs = require("fs-extr...
/* Lambda entry point for web pages The request comes in from Amazaon Gateway services with lambda proxy integration */ "use strict"; var fs = require('fs'); var ejs = require('ejs'); var superagent = require("superagent"); // var lambdaRefreshToken = require('./lambdaRefreshToken'); var base64 = require('../common...
var val = "Fill the field(s): "; function check_form(id, name){ if ($('#' + id).val() == ""){ val = val + name + ", "; return false; } return true; } //show post add form $('#add-post').click(function(e){ e.preventDefault(); $('#post-edit').show(); $('#post-form').append('<inpu...
var XML3D = require("./global.js").XML3D; var Config = require("./interface/elements.js").config; var sendAdapterEvent = require("./utils/misc.js").sendAdapterEvent; var Options = require("./utils/options.js"); var CSS = require("./utils/css.js"); var ConfigureRenderer = require("./renderer/renderer/configure.js"); var...
import cookie from 'js-cookie' /** * 获取缓存数据 * @param {string} key * @param {string} type: 缓存类型 'local'(默认) / cookie / session; */ export function getCacheItem(key, type = 'local') { // key = user_id + '_' + key; let data switch (type) { case 'cookie': data = cookie.get(key) ...
/** * @copyright (c) 2016, <NAME> & <NAME> * @copyright (c) 2007-present, <NAME> & <NAME> * @license BSD-3-Clause (see LICENSE in the root directory of this source tree) */ import { Enum } from '../Enum'; import { requireNonNull } from '../assert'; import { DateTimeException } from '../errors'; import { MathUtil }...
import React, {PropTypes as T} from 'react' import {Field, FieldArray, reduxForm, formValueSelector} from 'redux-form' import {connect} from 'react-redux' import {Button, ButtonType} from 'office-ui-fabric-react/lib/Button' import {Label} from 'office-ui-fabric-react/lib/Label' import {MessageBar} from 'office-ui-fabri...
/* * LiskHQ/lisk-service * Copyright © 2020 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, ...
import { graphql } from 'gatsby'; import DocLink from '../../components/DocLink'; import LinkedHeading from '../../components/LinkedHeading'; import Callout from '../../components/Callout'; import CodeBlock from '../../components/CodeBlock'; import ComponentApi from '../../components/ComponentApi'; import ReactPlaygro...
import React from "react"; import Login from "./Login"; import Addlist from "./Addlist"; import Addlistitem from "./Addlistitem"; import firebase from "firebase"; import base, { firebaseApp } from "../base"; import Editlist from "./Editlist"; import EditItem from "./EditItem"; class User extends React.Component { st...
'use strict'; var _ = require('lodash'); var mongoose = require('mongoose'); var Article = mongoose.model('Article'); var User = mongoose.model('User'); var Comment = mongoose.model('Comment'); var qiniuHelper = require('../../util/qiniu'); var path = require('path'); var URL = require('url'); var MarkdownIt = require...
var map; var map_width_change = 0; var map_height_change = 0; var view; var projection; var projection_image; var source_icon_temp; var layerTemp; var iconStyleTemp; var coor; var layerSwitcher; // var layer_vector_icon var initExtentCode = "var extent = [" + initExtentStr + "];" // alert(initExtentCode); eval(initExte...
'use strict'; // Original file https://raw.githubusercontent.com/elasticio/node-ntlm-client/master/lib/ntlm.js const os = require('os'), flags = require('./flags'), hash = require('./hash'); const NTLMSIGNATURE = "NTLMSSP\0"; function createType1Message(workstation, target) { let dataPos = 32, pos = 0, buf = ...
const test = require('tape'); const xml = require('../lib'); const emptyOk = { emptyDoc: true }; const laxAttr = { laxAttr: true }; test('simple tag', t => { t.deepEqual(xml.parse('<a />').toJS(), [ 'a' ], '<a />'); t.deepEqual(xml.parse('<a/>').toJS(), [ 'a' ], '<a/>'); t.deepEqual(xml.parse('<a></a>').toJS(),...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Button, Card, CardBody, CardGroup, Col, Container, Row } from 'reactstrap'; import { Link } from 'react-router-dom'; import Form from "react-jsonschema-form"; import { loginService } from '_services/login.services.js'; import { u...
let c_width = 600; // Window Size params let c_height = 300; let redd = 30; // Background Colors let grenn = 30; let blu = 30; let window_active = false; let tutorial_text = [ 'click me.', 'press space.', 'click outside of me.', '' ]; Tone.Transport.bpm.value = 120; // Musical Shape Arrays let none = ...
/** An object that provides helper functions that generate [HTMLElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement), usually for populating {@link Component.dom}. @example dom.li() // returns an `li` HTMLElement: `<li></li>` dom.div() // returns a 'div' HTMLElement: '<div></div>' dom.span('Some t...
require('dotenv').load(); var express = require('express'); var app = express(); var http = require('http').Server(app); var path = require('path'); var io = require('socket.io')(http); var Twitter = require('twitter'); var havenondemand = require('havenondemand'); var async = require("async"); var RateLimiter = requi...
/** * unicom 联通 想到中国联通就想到了这个名字 -_- * 目的,提供vue 全局的转发机制 * [2019-07-21] 重构,以事件模型为基础,多组件之间 订阅者和发布者来制作 */ // 目前所有实例化的 unicom通讯 方便做 订阅者和发布者 // #id let unicomGroupByID = {} function updateUnicomGroupByID(target, newId, oldId) { // 更新 if (oldId && unicomGroupByID[oldId] == target) { delete unicomGroupByID...
function getDefaultData() { // Initialize DB db = new Dexie("bookmarklets") db.version(1).stores({ services: 'id,value' }) // Modal for adding a bookmarklet modal = {show: false} // Array to hold stuff read from DB services = [] // Temporary object to put to DB servicesTemp = {} // Templates ...
// Generate Functions // ================== // Functions that accept a scaffolding object and generate a `.spec` // file from that object. The `generate` function looks in the spec // file and injects the tests into the blocks where they are needed. 'use strict'; var fs = require('fs'); var path = require('path'); ...
// weather.js made by Juho. // documentation for openweathermapAPI: http://openweathermap.org/ const http = require('http'); const { URL } = require('url'); const settings = require('../settings.json'); let openweathermapAPI = settings.openweathermap; /* preserve:start */ //Openweathermap Weather codes and corressp...
import axios from 'axios'; import env from '../../build/env'; import semver from 'semver'; import packjson from '../../package.json'; let util = { }; util.title = function (title) { title = title || 'iView admin'; window.document.title = title; }; const ajaxUrl = env === 'development' ? 'http://127.0.0.1...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateCheck = void 0; const fs_1 = require("fs"); const path_1 = __importDefault(require("path")...
"use strict"; var __assign = (this && this.__assign) || function () { __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....
function showAirplaneModelConfigurations(modelId) { var airlineId = activeAirline.id $.ajax({ type: 'GET', url: "airlines/" + airlineId + "/configurations?modelId=" + modelId, contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(result) { ...
import fs from "fs-extra"; import path from "path"; import axios from "axios"; import os from "os"; import extract from "extract-zip"; import { v4 as uuid } from "uuid"; import C from "../../../shared/lib/constants"; import utils from "../../../shared/lib/utils"; const updateStatus = async (req, db, status, error ...
"use strict"; var Computable = require('../computable'); var inherits = require('util').inherits; var get_function_ast = require('../../lib/get_function_ast'); var functionParser = require('../../lib/function_parser'); var IRAnyType = require('../types/any'); var IRVoidType = require('../types/void'); var IRStringType...
import fs from 'fs'; import Diacritics from 'diacritic'; import Discord from 'discord.js'; import { result } from 'lodash'; const requireFunc = typeof __webpack_require__ === 'function' ? __non_webpack_require__ : require; const config = requireFunc('./config.json'); const toUpperFirst = (str) => { return str.charA...
$(document).ready(function(){ // $(window).bind('unload', function(){ // alert(1); // $.ajax({ // type: 'get', // async: false, // url: 'permission/logout' // // }); // }); $("#insertPermission").click(function () { $('#ModalPermission').modal('show'); ...
import React from 'react'; import { withRouter, Switch, Route, Redirect } from 'react-router-dom'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; import Base from './components/Layout/Base'; import BasePage from './components/Layout/BasePage'; // import BaseHorizontal from './components...
const tags = ["PCG"] const StyleSetName = 'UnrealJS' function purge(world) { let prev_actors = world.GetAllActorsOfClassAndTags(StaticMeshActor, tags).OutActors prev_actors.forEach((actor) => world.EditorDestroyActor(actor)) } function generate_spiral(world, opts) { const mesh = opts.mesh con...
import Helpers from '../../Helpers.js'; import { html } from 'htm/preact'; import State from '../../State.js'; import Session from '../../Session.js'; import LanguageSelector from '../../components/LanguageSelector.js'; import {translate as t} from '../../Translation.js'; import {setRTCConfig, getRTCConfig, DEFAULT_RTC...
import Service from '@ember/service'; import Papa from 'papaparse'; import { Promise as EmberPromise } from 'rsvp'; import EmberObject from '@ember/object'; import { readOnly } from '@ember/object/computed'; import math from 'npm:mathjs'; import ChartsCommon from './backend/charts/common'; import ChartsByLastSprint fro...
const merge = require('deepmerge'); const he = require('he'); const htmlparser = require('htmlparser2'); const { BlockTextBuilder } = require('./block-text-builder'); const defaultFormatters = require('./formatter'); const { limitedDepthRecursive, set, splitSelector } = require('./helper'); // eslint-disable-next-lin...
'use strict'; var https = require('https'); var fs = require('fs'); var BASE_URL = ""; var cachedUpdateData = null; var installFolderPath, packageFilename; if (process.platform === "darwin") { installFolderPath = process.execPath.substring(0, process.execPath.lastIndexOf('Versions')) + "Resources/"; packageFile...
'use strict'; ///////////////////////////////////////////////// ///////////////////////////////////////////////// // LECTURES const movements = [200, 450, -400, 3000, -650, -130, 70, 1300]; const eurToUSD = 1.1; /* // Normal function // const movementsUSD = movements.map(function (mov) { // return mov * eurToUSD; /...
import _ from 'underscore'; import Onyx from 'react-native-onyx'; import lodashGet from 'lodash/get'; import Log from '../../Log'; import BankAccount from '../../models/BankAccount'; import * as Plaid from '../Plaid'; import CONST from '../../../CONST'; import ONYXKEYS from '../../../ONYXKEYS'; import * as store from '...
/* Wave API return customer list The loadDoc function makes a request to the Wave API for customer information. Once a successful response is recieved, multiple functions are called with the returned data passed as a parameter. This function is called when the index.html page loads (on body tag). The Authorization ke...
/* eslint-disable global-require, import/no-dynamic-require, valid-typeof */ /* eslint-disable import/no-cycle */ import { printTable } from 'console-table-printer'; import fs from 'fs'; import semver from 'semver'; import { writeFileSync } from './systemTools/fileutils'; import { npmInstall, executeAsync } from './s...
/** * Worker to fetch typescript definitions for dependencies. * Credits to @CompuIves * https://github.com/CompuIves/codesandbox-client/blob/dcdb4169bcbe3e5aeaebae19ff1d45940c1af834/packages/app/src/app/components/CodeEditor/@workers/fetch-dependency-typings.js * * global ts * @flow */ import path from 'path';...
import { MatF32 as mf32, // shorter name, since we only use float values VecF32 as vf32, // shorter name, since we only use float values } from '../../jsmatrix.js'; import * as m from '../../jsmatrix.js'; // near and far value for projection var near = 1; var far = 20; // number of random points var numPoint...
const Logger = require('./logger'); const Users = require('./users'); const Roles = require('./roles'); const Queue = require('./queue'); const roleUtil = require('./roleUtil'); const TOKEN_TYPE_OPTIONS = ['personal', 'oauth', 'job']; const URL = 'https://gitlab.com'; const TOKEN_TYPE = 'personal'; const MA...
import React, { Component } from 'react'; import { Modal } from 'react-bootstrap'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { bindActionCreators, dispatch } from 'redux'; import { actionLoadTemplateFile, actionCheckReportId } from '../../actions/CaptureReportTempl...
/******************************************************************************* * Copyright 2017 IBM 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/...
import React from 'react'; import { withRouter } from 'react-router-dom'; import styled from "styled-components"; import { BaseContainer } from "../../helpers/layout"; import { api, handleError } from "../../helpers/api"; import { Button } from "../../views/design/Button"; import PictureGrid from "./PictureGrid" cons...
const goodUniqueBaseTypes = [ // Amulets "Onyx Amulet", // Astramentis, Ashes, Omni, many others "Coral Amulet", // Primordial Chain "Jade Amulet", // Karui Ward "Paua Amulet", // Atziri's Foible "Turquoise Amulet", // Ungil's Harmony, Badge of the Brotherhood // Belts "Stygian Vise", // Darkness Enthro...
import nextConnect from 'next-connect'; import { connect } from '../../../middleware/databaseM.js'; import { NextApiRequest, NextApiResponse } from 'next'; import {objectId} from 'mongodb'; const fs = require('fs'); export default async function (req, res) { const id = req.body.id const whatChange = req.body...
// Sasha's hunt // <NAME> // 2021.03.01 //UI variables let heart; let question; let instruction = {isAlive: false}; let instructionButton; let pixleFont; //display character and movement let charactersize = 45; let character; let characterLife = 3; //animation display variables let characterImg; let rightWalk; let ...
import React from 'react'; import { CanvasToolbar } from './canvas-toolbar'; import { ContentCanvasHeadersAlbumMedia } from './content-canvas-headers-album'; import { AlbumMediaCanvasRow } from './album-media-canvas-row'; import { MediaCanvasTile } from './media-canvas-tile'; import MediaSort from '../../../helpers/med...
// This extension does not use data-binding frameworks. // We push model updates directly to our view (old partial MVC). // To achieve this, we can match any view element to a model // part through IDs. // // Processors have a generated UUID. // They hold links. Link IDs are based on // « <processor ID>-<index of the l...
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
const debug = require('debug'); const fs = require('fs'); const mkdirp = require('mkdirp'); const ora = require('ora'); const path = require('path'); const { cloneDeep } = require('lodash'); const { writeFrontmatterMarkdown, writeJSON, writeYAML } = require('./file-writers'); const FILE_WRITERS = { 'frontmatter-md...
/* TO DO =================== AUTOFILL CITIES SEARCH ---------------------- - find 3rd party api to autofill cities - integrate into current input fields GETTING WEATHER ------------------- - caputre response from fetch call and parse the necessary information (current conditions & 5 day forcast) - Style the index ...
"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...
//The current phase const DuelPhase = { WAIT : 0, DRAW : 1, EFFECT : 2, ACTION : 3, BATTLE : 4, DAMAGE : 5, END : 6 }; //Each half of the board is created in a side state. class SideState { constructor() { //Slots on the game board. this.slots = {}; //List of meme cards ...
#!/usr/bin/env node // Copyright (C) <2019> Intel Corporation // // SPDX-License-Identifier: Apache-2.0 'use strict'; var databaseUrl = process.env.DB_URL; if (!databaseUrl) { databaseUrl = 'localhost/owtdb'; } var db = require('mongojs')(databaseUrl, ['rooms', 'services']); var Fraction = require('fraction.js');...
import postcss from "postcss" import balanced from "balanced-match" const VAR_PROP_IDENTIFIER = "--" const VAR_FUNC_IDENTIFIER = "var" const VAR_FUNC_REGEX = /(^|[^\w-])var\(/ // matches `name[, fallback]`, captures "name" and "fallback" const RE_VAR = /[\f\n\r\t ]*([\w-]+)(?:[\f\n\r\t ]*,[\f\n\r\t ]*([\W\w]+))?/ /**...
'use strict'; let _ = require('underscore'); let async = require('async'); let moment = require('moment'); var fs = require("fs"); var soap = require('strong-soap').soap; var xml2js = require('xml2js'); var parser = new xml2js.Parser(); module.exports = function(Invoice) { /** * @name buildLetterPorteXML * @de...
import './style.scss'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash/isEmpty'; import isEqual from 'lodash/isEqual'; import get from 'lodash/get'; import cloneDeep from 'lodash/cloneDeep'; import { TransitionGroup, CSSTransition } from 'react-transition-group'...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleAlksDeveloperConfigure = void 0; var tslib_1 = require("tslib"); var cli_color_1 = tslib_1.__importDefault(require("cli-color")); var checkForUpdate_1 = require("../checkForUpdate"); var confirm_1 = require("../confirm"); var err...
import React, { Component } from 'react'; import formValidator from './formValidator'; import { getValidationMessage, getValidationClassName } from './helpers'; import validate from 'strickland'; class App extends Component { constructor(props) { super(props); this.state = { form: { ...
"use strict"; /** * @license * Copyright 2018 Google LLC. 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...
// Off-canvas menu init // ============================================================================= const oc = { toggleClassMenu() { oc.menu.classList.add('OffCanvas--anim'); if (!oc.menu.classList.contains('OffCanvas--vis')) { oc.menu.classList.add('OffCanvas--vis'); } else { oc.menu.cla...
import { Tools } from '../core/Tools'; import { Proto } from '../core/Proto'; function Fps ( o ) { Proto.call( this, o ); this.round = Math.round; this.autoHeight = true; this.baseH = this.h; this.hplus = 50; this.res = o.res || 40; this.l = 1; this.pa1 = []; this.pa2 = []; ...
"use strict"; /* Attaches the appropriate bits to serve the schema, with exposed views and/or objects whitelisted Handles socket.io sockets as well. */ var zlib = require('zlib'); var _ = require('underscorem'); //exports.name = 'minnow-service'; //exports.dir = __dirname; exports.module = module //exports.requ...
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a...
import React from 'react'; import { connect } from "react-redux"; import { GameState, CardData, betToString } from '../../api/game' import styles from './game.module.css'; import Card from './Card' function PlayerAtTable(props) { const playerClass = (props.active ? styles.activePlayer : "") + " " + styles.gameT...
import { messageAPI } from '../api/message'; import { formatter } from '../util'; function create(html) { const div = document.createElement('div'); div.insertAdjacentHTML('afterbegin',html); return div.firstElementChild; } /** * @typedef Score * @property {number} pp * @property {number} [accuracy] * @prop...
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import memoize from 'memoize-one'; import { console, object, schemaTransforms } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { formatPublicationDate } from '@hms-dbmi-bgm/shared-portal-...
var artistBuckets = ['biographies', 'hotttnesss', 'familiarity', 'artist_location', 'urls', 'years_active', 'songs', 'id:facebook', 'id:twitter', 'genre', 'id:musicbrainz', 'id:whosampled']; function en_getSongInfo(songSpotifyID, songTitle, artistName) { // try obtaining info through ID - it it doesn't work t...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, mergeProps, normalizeClass, createElementVNode, toHandlers, renderSlot, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString } from "vue"; const _sfc_main$1 = { emits: ["pagination-change-page"], props: { data:...
import 'whatwg-fetch' import React from 'react'; import QS from 'querystring'; import Layout from './layout'; import Table from './table'; import Select from 'react-select'; import 'react-select/dist/react-select.css'; const KEYS = [ { value: 'archive_url', label: 'archive_url' }, { value: 'assignees_url', label:...
/* * Copyright 2005-2015 WSO2, Inc. (http://wso2.com) * * 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...
import { getUuid, getType, renderElement, setClassName } from '@/utils' import { temp, tableTemp, theadTemp, tbodyTemp, thTemp, trGroupTemp, trTemp, tdTemp } from './temps' // 渲染主函数 export default function render (options) { const plugins = [...this.constructor.plugins] const { id, className, rowCl...
"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...
import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react' import PropTypes from 'prop-types' import { Inside } from 'use-inside' import { warnOnce, unselectable } from '../../utils' import { BIG_RADIUS, GU, RADIUS, textStyle } from '../../style' import { useTheme } from '../../theme' import { Ico...
import React, { Component } from 'react'; import { Redirect } from 'react-router' import axios from 'axios'; import './Game.css'; import Objective from './Objective' import Inputname from './Inputname' import fire from '../assets/pic/fire.gif' import fire2 from '../assets/pic/fire2.gif' // import timegif from '../asset...
import React, { useContext, useState, useEffect } from "react"; import axios from "axios"; import { useHistory } from "react-router-dom"; import ArriveInfo from "./ArriveInfo.js"; import Footer from "components/Footer/Footer.js"; import Button from "components/CustomButtons/Button.js"; import GridContainer from "comp...