text stringlengths 3.22k 29.5k |
|---|
// take in the user's zip code
// take in an activity
// validate form fields
// if zip code is > 5 numbers, or typeof != number, return error/none
// if activity field is "select activity" return error
// on submit, call zip code radius api to identify all zip codes in a 100 radius
// store zip codes and state codes i... |
/**
* @Author: jrucker
* @Description
* @Date: 2019/6/25 16:27
* @Last Modified by: jrucker
* @Last Modified time: 2019/6/25 16:27
*/
import React, {Component} from 'react'
import {connect} from 'react-redux';
import {Form, Typography, Tabs, Button, Table, Input, Modal, Switch} from 'antd';
import {
getSched... |
'use strict';
const toString = Object.prototype.toString;
const colors = require('ansi-colors-browserify');
let called = false;
let fns = [];
const complements = {
'yellow': 'blue',
'cyan': 'red',
'green': 'magenta',
'black': 'white',
'blue': 'yellow',
'red': 'cyan',
'magenta': 'green',
'white': 'blac... |
/* Copyright 2011 <NAME>, see LICENSE */
"use strict";
var https = require('https');
var querystring = require('querystring');
function setup_response_handler(req, callback) {
if (typeof callback !== "function") {
//console.log("missing callback");
return;
}
req.on('response',
func... |
'use strict'
var trim = require('trim')
var parse = require('./rule-codes.js')
module.exports = affix
/* Rule types. */
var T_ONLYINCOMPOUND = 'ONLYINCOMPOUND'
var T_COMPOUNDRULE = 'COMPOUNDRULE'
var T_COMPOUNDMIN = 'COMPOUNDMIN'
var T_WORDCHARS = 'WORDCHARS'
var T_KEEPCASE = 'KEEPCASE'
var T_NOSUGGEST = 'NOSUGGEST'... |
/*
* Rebind bootstrap UI components after Primefaces ajax calls
*/
function bind_bsui_components(){
// Breadcrumb Tree Keep Open
$(document).on('click', '.dropdown-menu', function (e) {
$(this).hasClass('keep-open'),
e.stopPropagation();
});
// Collapse Header Icons
$('div[id^="pan... |
import {
Mesh,
BufferGeometry,
CylinderGeometry,
InstancedBufferGeometry,
InstancedBufferAttribute,
ShaderLib,
Color,
Object3D,
Vector3,
Vector2,
MeshBasicMaterial
} from 'three'
import TWEEN from 'tween.js'
import BaseClass from './BaseClass'
import { latLongToCartesian } fro... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.menuProps = exports.MenuMode = undefined;
var _babelHelperVueJsxMergeProps = require('babel-helper-vue-jsx-merge-props');
var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps);
var _defineProper... |
exports = module.exports = User;
var remove = require('unordered-array-remove');
var channel = require('./channel');
var user = require('./user');
var fips = require('fips');
var config = require('../conf/config');
var geoip = require('geoip-lite');
function User(emitter, uid, nick, ident, host, vhost, ip, uptime, rea... |
import React from 'react';
import { Grid, Typography, Tooltip } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import gravatars from 'components/Gravatar';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { createStructu... |
"use strict";
var interfaces_1 = require('./util/interfaces');
var errors_1 = require('./util/errors');
var bundle_1 = require('./bundle');
var helpers_1 = require('./util/helpers');
var events_1 = require('events');
var child_process_1 = require('child_process');
var config_1 = require('./util/config');
var template_1... |
import {KML} from "ol/format.js";
import getProjections from "./getProjections";
import proj4 from "proj4";
const projections = getProjections("EPSG:25832", "EPSG:4326", "32"),
colorOptions = [
{color: "blue", value: [55, 126, 184]},
{color: "black", value: [0, 0, 0]},
{color: "green", valu... |
//import React from 'react';
import ReactDOM from 'react-dom';
import React, { useState } from 'react';
import './App.css';
//import PropTypes from 'prop-types';
var playerName ="Diana";
class Cell extends React.Component {
getValue(){
if (!this.props.value.isRevealed){
return this.props.value.isFl... |
import React, { Component } from 'react';
import { arrayOf, func, node, number, oneOfType, shape, string } from 'prop-types';
import isEqual from 'lodash/isEqual';
import { withGoogleMap, GoogleMap, OverlayView } from 'react-google-maps';
import { OVERLAY_VIEW } from 'react-google-maps/lib/constants';
import { types as... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.OutlineItemInternal = void 0;
var _extends2 = _interopRequireDefau... |
var fs = require('fs');
var path = require('path');
var common = require('./common');
var os = require('os');
common.register('cp', _cp, {
cmdOptions: {
'f': '!no_force',
'n': 'no_force',
'u': 'update',
'R': 'recursive',
'r': 'recursive',
'L': 'followsymlink',
... |
import {
SourceMapConsumer,
SourceMapGenerator,
} from 'source-map';
import coffee from 'coffee-script';
import { BabelCompiler } from 'meteor/babel-compiler';
// The coffee-script compiler overrides Error.prepareStackTrace, mostly for the
// use of coffee.run which we don't use. This conflicts with the tool's us... |
/**
* File system based on storage provider
*/
var fs = require('fs-extra');
var path = require('path');
var async = require('async');
var File = require('./file').File;
var Container = require('./container').Container;
var mkdirp = require('mkdirp');
module.exports.storage = module.exports; // To make it consisten... |
var elementClass = require('element-class');
var dirtyClean = require('../dirty-clean');
var util = require('../util');
var rangeUtil = require('../range-util');
var passThrough = require('../pass-through');
var capitalize = require('capitalize');
var escapeStack = require('escape-stack');
module.exports = function (o... |
import React, { useState, Suspense, lazy } from 'react';
import { Switch, Link } from 'react-router-dom';
import { store } from 'react-notifications-component';
import LoadingOverlay from 'react-loading-overlay';
import { FiMenu } from 'react-icons/fi';
import moment from 'moment';
import socket from '../../services/... |
/**
* Service for actions with account
*/
import firebase from "firebase";
const authProvider = new firebase.auth.GoogleAuthProvider();
// authProvider.addScope("https://www.googleapis.com/auth/drive.file");
export class AccountService {
static isAdmin = false;
/**
* This method converts external profile i... |
{
"translatorID": "5e385e77-2f51-41b4-a29b-908e23d5d3e8",
"label": "NCBI Nucleotide",
"creator": "<NAME>",
"target": "^https?://(www\\.)?ncbi\\.nlm\\.nih\\.gov/nuccore/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcs",
"lastUpdated":... |
//
//Copyright (c) 2015, Skedans Systems, 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,
// th... |
var docViewer;
function getDocViewer(){
if(docViewer)
return docViewer;
else
docViewer = window.FlexPaperViewer_Instance.getApi();
return docViewer;
}
/**
*
* FlexPaper constructor (name of swf, name of placeholder, config)
*
*/
window.FlexPaperViewer = window.$f = function() {
var config... |
/*
Copyright 2018 Makoto Consulting Group, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
import {parseISO} from "date-fns";
import $ from "jquery";
import render_user_group_list_item from "../templates/user_group_list_item.hbs";
import render_user_profile_modal from "../templates/user_profile_modal.hbs";
import render_user_stream_list_item from "../templates/user_stream_list_item.hbs";
import * as browse... |
'use strict';
const fs = require('fs');
const vm = require('vm');
const v8 = require('v8');
const path = require('path');
const { fork } = require('child_process');
const Module = require('module');
v8.setFlagsFromString('--no-lazy');
if (Number.parseInt(process.versions.node.split('.')[0], 10) >= 12) {
v8.setFlag... |
// @see https://devcenter.heroku.com/articles/nodejs#write-your-app
var express = require('express')
, fs = require('fs') // node
, gm = require('gm')
, http = require('http') // node
, https = require('https') // node
, mime = require('mime')
, url = require('url') // node
// @see http://aaronheckmann.p... |
/** notes **/
/*
todo:
1. fix preview
2. figure out how to print multiple tile codes <-- working on
i. add indexes [done]
ii. fix grid toggling
iii. add tile selector
3. make it look better
4. settings saving
5. tile saving
*/
/** defines/inits **/
// max dimensions
var MAXROW = 2;
var MAXCOL ... |
"use strict";
const Promise = require('bluebird');
const mongodb = Promise.promisifyAll(require('mongodb'));
const MongoClient = mongodb.MongoClient;
const assert = require('assert');
const log = require('../utils/log');
const util = Promise.promisifyAll(require('../utils/util'));
const _ = require('underscore');
const... |
import '/client/main.js';
Template.iAmInvestor.onRendered(() => {
Meteor.setInterval(() => { // ERROR CHECKER
var errorComesin = Session.get('errorComesIn');
var errorStage = Session.get('processStage');
if (errorComesin !== null && errorComesin !== undefined) {
if (Date.now() >... |
import gulp from 'gulp';
import plugins from 'gulp-load-plugins';
import runSequence from 'run-sequence';
import path from 'path';
import _ from 'lodash';
import {argv} from 'yargs';
import GitHubApi from 'github';
import Electron from 'electron-packager';
import Config from './package.json';
import semver from 'semver... |
var fs = require("fs");
var path = require("path");
var yauzl = require("../");
var util = require("util");
var Readable = require("stream").Readable;
var Writable = require("stream").Writable;
var BufferList = require("bl");
exports.runTest = runTest;
function usage() {
process.stdout.write("" +
"zip64.js usag... |
/*
* Copyright (c) 2016 Internet of Protocols Alliance (IOPA)
*
* 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 ... |
'use strict';
class ConnectionNode extends Element {
constructor() {
super();
this.update_priority_ = 1;
this.pos = new Vec;
this.grab_pos_ = null;
this.anim_pos_ = new Vec;
this.dir = new Vec(this instanceof OutputNode ? 1 : -1, 0);
this.an... |
var CmdWnd = (function () {
function CmdWnd(parent) {
this.NUM_COLS = 80;
this.NUM_ROWS = 25;
this.isVictory = false;
this.parent = parent;
this.tokens = [];
this.InitBlankGrid();
}
CmdWnd.prototype.GetCharAt = function (row, column) {
if (row >= this.... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { useState, useContext } from "react";
import styled from "styled-components";
import { Container } from "react-bootstrap";
import { useScrollPosition } from "@n8tb1t/use-scroll-position";
import { Link } from "gatsby";
import GlobalContext from "../../context/GlobalContext";
import CartContext from "../... |
"use strict";
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
'use strict'
const crs = require('crypto-random-string')
const appRoot = require('app-root-path')
const knex = require(`${appRoot}/db/knex`)
const Comments = () => knex('comments')
const CommentLinks = () => knex('comment_links')
const CommentViews = () => knex('comment_views')
module.exports = {
async streamResour... |
'use strict';
function $(elem) {
return document.querySelector(elem);
}
function hasClass(el, className) {
return el.classList ? el.classList.contains(className) : new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
}
function addClass(el, className) {
if (el.classList) {
el.classList.add(classNam... |
import crelt from "crelt"
import {Plugin} from "prosemirror-state"
import {MenuItemGroup, icons, joinUpItem, liftItem, redoItem, undoItem, selectParentNodeItem} from "./menu"
const prefix = "ProseMirror-menubar";
function buildMenuItems(context) {
let groups = {
types: {type: 'dropdown', sortOrder: 100... |
var addr, port, version, clientid, username, password, clean_session;
var pub_topic_handle_json = {};
var sup_topic_id = 0, pup_topic_id = 0;
var ca_file_str = '';
Date.prototype.Format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, // 月份
"d+": this.getDate(), // 日
"H+": this.getH... |
/*
*
* ListNewStudyPage
*
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { createStructuredSelector } from 'reselect';
import { StickyContainer, Sticky } from 'react-sticky';
import { touch } from 'redux-form';
import Modal ... |
import {app, BrowserWindow, ipcMain, Menu, shell, Tray, Notification, dialog, crashReporter} from 'electron'
// 自动更新相关
import {autoUpdater} from 'electron-updater'
// 引入自动启动模块
const startOnBoot = require('./startOnBoot.js')
// 崩溃报告
import * as Sentry from '@sentry/electron'
// package.json
import pkg from '../../pa... |
const tradeIpc = require('electron').ipcRenderer;
const crypto = require('crypto');
tradeIpc.on('trade-whisper', (event,line,stashBoundConifgured) => {
try{
var tradeWhisper = new TradeWhisper(line).toElement(stashBoundConifgured);
makeClickable(tradeWhisper);
pushTradeWhisper(tradeWhisper,... |
/*
The broker contract is responsible for storing information about topics.
Each topics has a publisher, a list of subscribers and a message.
*/
'use strict';
const { Contract } = require('fabric-contract-api');
const axios = require('axios');
var Web3 = require('web3');
const fs = require('fs');
const PrivateKeyP... |
import Vue from 'vue'
import VTooltip from 'v-tooltip'
import VueTimeago from 'vue-timeago'
import VeeValidate from 'vee-validate'
import AsyncComputed from "vue-async-computed";
import Focus from 'renderer/directives/focus'
import Big from 'big.js';
import {existsSync} from 'fs';
import i18n from 'lib/i18n'
const e... |
//let fs = require("fs");
//var options = {
// key: fs.readFileSync('/home/ec2-user/sslkey/browzly.com.key').toString(),
// cert: fs.readFileSync('/home/ec2-user/sslkey/aab8c08ca3615948.crt').toString()
//};
require('events').EventEmitter.defaultMaxListeners = Infinity;
let app = require('express')(),
express = requ... |
// Copyright 2019 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this fileAccessObject 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 ... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
window.Vue = require('vue');
import store from "./store";
import router from './router/router';
i... |
"use strict";
const {CompositeDisposable} = require("atom");
const {normalisePath} = require("alhadis.utils");
const Consumer = require("./consumer.js");
/**
* Patches the `fuzzy-finder` package to report important DOM changes.
* @class
*/
class FuzzyFinder extends Consumer{
constructor(){
super("fuzzy-finde... |
import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.125.0/build/three.module.js";
import { OrbitControls } from "https://cdn.jsdelivr.net/npm/three@0.125.0/examples/jsm/controls/OrbitControls.js";
import { Rhino3dmLoader } from "https://cdn.jsdelivr.net/npm/three@0.125.0/examples/jsm/loaders/3DMLoader.js";
imp... |
import wrapSettingsDialog from 'SettingsDialog.js';
/**
* Primary functions used here will be Settings.get to get the user options and
* Settings.display to display the settings.
* @extends OO.EventEmitter
*/
class Settings extends OO.EventEmitter {
/**
* @param {Object} config
* @param {OptionsConfig} config... |
/* Redmine - project management software
Copyright (C) 2006-2019 <NAME> */
var draw_gantt = null;
var draw_top;
var draw_right;
var draw_left;
var rels_stroke_width = 2;
function setDrawArea() {
draw_top = $("#gantt_draw_area").position().top;
draw_right = $("#gantt_draw_area").width();
draw_left = $("#... |
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
c... |
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
const router = require("express").Router()
const User = require("../models/User")
const bcrypt = require("bcrypt")
const API = process.env.API
const Api = require("../functions/Api")
const fs = require("fs");
const path = require("path")
const url = require("url")
const rimraf = require("rimraf");
const axios = re... |
/**
* Created by ice3x2 on 2015. 9. 12..
*/
var SimpleDb = require('simple-node-db');
var persist = require('node-persist');
var path = require('path');
var log = include('ColorLog');
var fs = require('fs');
const KEY_UPDATE_INFO = "KEY_UPDATE_INFO";
const KEY_DATA = "data";
var DBController = function() {
v... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = toDate;
var _index = _interopRequireDefault(require("date-fns/_lib/toInteger/index.js"));
var _index2 = _interopRequireDefault(require("date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js"));
var _tzParseTimezone = _... |
var app;
setIsOld(false);
if (window.location.hash) {
const cc = window.location.hash.substring(1);
setCurrentCourse(cc);
window.location.replace(window.location.href.split("#")[0]);
}
function getCurrentCourse() {
if (window.location.hash) {
return window.location.hash.substring(1).split("#"... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _vue = require("vue");
var _toConsumableArray2 = _interopRequire... |
const { Pool } = require("pg");
const Cursor = require("pg-cursor")
const admin = require("firebase-admin");
const crypto = require("crypto");
const AWS = require("aws-sdk");
const fs = require("fs");
// === CONFIGURATION
// This script will first check if file already exists in S3 and Firestore. Default behavior is n... |
console.log("start of bluetooth.js");
var BluetoothSettingsPage={};
var Bluetooth = {}; //new BluetoothSettings();
BluetoothSettingsPage.TemplateHTML = "DNA_common/components/bluetooth/bluetooth.html";
BluetoothSettingsPage.ShowPage = function() {
console.log('bluetooth page show_click();');
$('#settingsPageLis... |
// Global Tools //
app.controller('globalToolsCtl', function ($scope, $http, $compile, $sce, $stateParams, customerService, supportService, buildingService, generalService, adminService, $timeout){
$scope.customerData = {};
$scope.globalScopeVar = true;
$scope.sipToolLeft = false;
$scop... |
const fs = require('fs')
const axios = require('axios')
const csv = require('csv-parse/lib/es5')
const through2 = require('through2')
const { Readable, PassThrough } = require('stream')
const zip = require('lodash/zip')
const isArray = require('lodash/isArray')
const isMatch = require('lodash/isMatch')
const isInteger ... |
import cards from './cards.json';
export const getCurrentRules = (ruleObj) => {
const rules = [];
for (const rule in ruleObj) {
if (ruleObj[rule]) {
rules.push(rule);
}
}
return rules;
};
export const computeNaiveScore = grid => grid.reduce((score, { isPlayer }) => score + (isPlayer ? 1 : -1), ... |
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedNumber, FormattedMessage } from 'react-intl';
import { get } from 'lodash';
import withIntl from '../../lib/withIntl';
import { capitalize } from '../../lib/utils';
import Link from '../Link';
import ExternalLinkNewTab fr... |
import PropTypes from 'prop-types'
import React, { useState, useEffect } from 'react'
import styled from 'styled-components'
import { ExternalLink } from '@gnomad/ui'
import { getCategoryFromConsequence } from '../vepConsequences'
import { LofteeFilter, LofteeFlag } from '../VariantPage/Loftee'
const AttributeName =... |
const parseToFn = function (fnOrBool) {
if (typeof fnOrBool == 'boolean')
return function () { return fnOrBool };
return fnOrBool;
}
const getKey = function (name, variant) {
var _name = name.toLowerCase();
if (typeof variant == 'string') {
_name += "#" + variant.toLowerCase();
}
... |
let deck, currentCards;
let doubleData, hitData, splitData, standData;
let numCorrect = numWrong = numStreak = maxStreak = 0;
let numChips = 0;
// Setup/Listeners
$(function() {
// Setup Checkboxes and Data
setupCheckboxes();
$.getJSON('data/double.json', (data) => doubleData = data);
$.getJSON('data/hit.json', (... |
"use strict";
exports.__esModule = true;
var path = require("path");
var fs = require("fs");
/*
import {
Application,
ProjectReflection,
Reflection,
DeclarationReflection,
SignatureReflection,
ParameterReflection,
ReflectionKind,
TraverseProperty,
Decorator
} from "typedoc";
import ... |
import './index.css';
import * as serviceWorker from './serviceWorker';
// import css
import './css/main.scss';
import config from './css/_config.scss';
// import react and js
import MediaPlayer from './js/MediaPlayer';
import NonMedia from './js/Templates/NonMedia/NonMedia'
import WebView from './js/Templates/WebVie... |
/**
*
* 1, define the edge ( begin and end ) of every title field
* 2, parse all the lines except the title line, get all the connected-domains
* 3, group all the connected-domains vertically overlapped.
* 4, a domain group belongs to a title field if they vertically overlapped
* 5, calculate all the edge info th... |
const xml2js = require('xml2js');
const xpath = require('xml2js-xpath');
const extend = require('util')._extend;
const sizeOfImage = require('image-size');
const imageprocessor = {
/**
* Clear all dynamic images that were not replaced by valid ones.
* @param document
* @returns {*}
*/
clearEmptyImages ... |
import React, { Component } from 'react';
import {
Header,
Grid,
Input,
Button,
Divider,
Message
} from 'semantic-ui-react';
import { PageTitle, Loader } from '@common/components';
import { service } from '@utils';
import { withCookies } from 'react-cookie';
import { Redirect } from 'react-router-dom';
impo... |
$.ajaxSetup({ cache: false });
var file_contents="";
var country_to_search_for="";
var google_trends_api_search_term="";
var sentimental_analysis=[];
var article_summary=""
var google_search_term_array=[];
var twitter_country_location="";
var twiiter_news="";
// var url_value="./"+$("#filenameurl").val();
function... |
'use strict';
/**
* svg-sprite is a Node.js module for creating SVG sprites
*
* @see https://github.com/svg-sprite/svg-sprite
*
* @author <NAME> <<EMAIL>> (https://github.com/jkphl)
* @copyright © 2018 <NAME>
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/
const fs = require('fs')... |
/* global alert */
import { Alert, Linking, PermissionsAndroid, Platform } from 'react-native';
import RNFS from 'react-native-fs';
import Share from 'react-native-share';
import loc from '../loc';
import DocumentPicker from 'react-native-document-picker';
import isCatalyst from 'react-native-is-catalyst';
import { lau... |
// LOADING JS
const wait = ( delay = 0) => new Promise(resolve => setTimeout(resolve, delay))
const setVisible = (elementOrSelector, visible) =>
(typeof elementOrSelector === 'string'
? document.querySelector(elementOrSelector)
: elementOrSelector
).style.displa... |
const _ = require("lodash");
const { getComponentByModel, isModelComponent } = require("./component-utils");
const {
buildComponentsJoin,
buildComponentsTargetJoin,
} = require("./build-deep-query");
/**
* Add joins and where filters
* @param {Object} qb - knex query builder
* @param {Object} model - Bookshelf ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import webpack from 'webpack'; // bundler being used to bundle files
import path from 'path'; // path utilities provided by Node
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import StyleLintPlugin from 'stylelint-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { conf... |
'use strict';
function _extends() { _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; }; return _extends.apply(this, a... |
'use strict';
var loc = window.location.pathname.split('/');
var isMenu = (loc[3] === 'select_events' && loc[5] === 'items' && loc[6] === undefined);
var isItem = (loc[6]);
var isCheckout = (loc[5] === 'checkout');
var isRestuarants = (loc[1] === 'my');
var TAX = 0.105;
var api = 'https://api.jstassen.com/apps/chromee... |
import React from 'react';
import { Route } from 'react-router-dom'
import { getIssueIdsByName } from '../constants';
import Collection from '../components/Collection';
const CollectionAlias = props => (
<Collection
{...props}
issueId={props.issueId}
page={props.match.params.page || 1}
/>
);
export co... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports["default"] = exports.styles = exports.MTableHeader = vo... |
"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)... |
const { TestResult } = require('./device');
const { delay } = require('./util');
const glob = require('glob');
const path = require('path');
class DeviceLog {
constructor({ name, log }) {
this._name = name;
this._log = log;
}
error(...args) {
this._log.error(this._name + ':', ...args);
}
warn(...args) {... |
/**
* 请不要删除 init 方法, 否在外面拿不到 upload 实例
*/
/* ```````````````````````````````````````````````````````````````````````````
<!-- 上传图片盒子 -->
<div id="uploader-avatar">
<!-- 上传文件相关 -->
<div class="queueList">
<div class="placeholder">
<!-- 上传图片按钮 -->
<div id="filePicker"></div>
... |
import React, { useState } from "react";
import {
StyleSheet,
ImageBackground,
Dimensions,
Keyboard,
KeyboardAvoidingView,
Alert,
View,
ScrollView
} from "react-native";
import { Block, Text, theme } from "galio-framework";
import { argonTheme } from "../constants";
import { Button, Icon, Input } from "... |
import React from "react";
import Head from "next/head";
import GithubCorner from "react-github-corner";
import { HighlightWithinTextarea } from "react-highlight-within-textarea";
import { Kwic } from "@strboul/kwic-ts";
const DEFAULT_WINDOWS = { left: 3, right: 3 };
const DEFAULT_TERM = "phrase";
const DEFAULT_TEXT ... |
"use strict";
Socket.topologyChanged = function (shouldRenderVolumes) {
if (shouldRenderVolumes) renderVolumes();
reRenderZones();
updateControllerState();
updateCurrentStatus();
}
Socket.transportStateChanged = function (player) {
if (player.state.playerState == 'TRANSITIONING') return;
reRe... |
title = "Control";
description = `
`;
characters = [
`
ll
ll
ccllcc
ccllcc
ccllcc
cc cc
`,`
cc cc
ccllcc
ccllcc
ccllcc
ll
ll
`,`
yyy
yyy
y
`,`
ppp
p p
p p
p p p
p p
ppp
`,`
pp
pp
`
];
const G = {
WIDTH: 100,
HEIGHT: 150,
STAR_SPEED_MIN: 0.5,
STAR_SPEED_MAX: 1.0,
PLAYER_FIRE_RAT... |
import { PenInput } from '../pen-input/pen-input.js';
import { defineElement } from '../utils/define-element.js';
import { html, render } from 'lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
var css = "#container .label-div{display:flex;justify-content:space-between;padding:var(--small-pad... |
/**
* voxels
* Premium ultra-fine iconic iconery
*
*/
export const BrowserLayoutIcon = () => {
return (
<svg className="dashicon dashicons-grid-view" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="20" height="20">
<path fill="#444444" d="M45,45H3c-1.105,0-2-0.... |
import QuestionContainer from "./QuestionContainer";
import React from "react";
import ListItem from "@mui/material/ListItem";
import List from "@mui/material/List";
import ListItemText from "@mui/material/ListItemText";
import CopyIcon from '@mui/icons-material/ContentCopy';
import HighlightIcon from '@mui/icons-mater... |
import React, { Component } from 'react'
import { autorun } from 'mobx'
import { inject } from 'mobx-react'
import * as d3 from 'd3'
import d3Tip from "d3-tip"
import * as utilities from '../lib/utilities'
import './Chart.css'
// Theme
import theme from './theme.json'
// Constants
const DURATION = 1000
const OFFSET... |
$(document).ready(function(){
$('#barraInformes').attr('aria-expanded','true');
$('#informes').removeClass();
$('#informes').addClass('subMenu1 collapse in');
$('.tituloSeccionPantalla').text('Estadísticas Generales');
$('#opcInformesGenerales').attr('style','border-left: 6px solid #185891; background-color: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.