text
stringlengths
2
1.04M
import InitialPage from '../pages/initial.f7.html'; import HomePage from '../pages/home.f7.html'; import RightPanelPage from '../pages/right-panel.f7.html'; import EnvPage from '../pages/env.f7.html'; import ScanPage from '../pages/scan.f7.html'; import ChatsPage from '../pages/chats.f7.html'; import ChatPage from '...
var mongoose = require('mongoose'); var Schema = mongoose.schema; var DelegationTokenScheme = new Schema({ a_personID : {type: Number, required : true}, a_delegationToken : {type: String, required: true}, a_proposition : {type: Number, required: true} }); module.exports = mongoose.model('delegationTokenM...
var canid = parseInt($.url().param('id')); if(!canid) { window.location.href = "page404-candidate.html"; } var application = alasql('select * from application where id = ?',[canid])[0]; var intreq = alasql('select * from interviewRequest where appid = ?',[canid]); var scheduleInterview = alasql('select * from sche...
'use strict'; const pageCustomNextSteps = require('./page-custom-next-steps'); /** * Get Custom Next step for specified page * * @param {Object} req - request parameters * @param {string} pageName - name of the page * * @returns {string} - the next step string of the url to be directed to. */ const getPageNextS...
// This test is inherently a race between the client and the server, and the test is unreliable. // We compare the duration of a query as seen by the server with the duration as seen by the // client, and if the client is delayed by a few milliseconds, or, in extreme cases, by even // 1 millisecond, it may think that t...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ADD_NOTICE = 'ADD_NOTICE'; exports.REMOVE_NOTICE = 'REMOVE_NOTICE'; exports.REMOVE_ALL = 'REMOVE_ALL'; function messagesReducer(state, action) { if (state === void 0) { state = []; } switch (action.type) { case exports....
(function() { 'use strict'; angular .module('indexcityApp') .factory('DataUtils', DataUtils); DataUtils.$inject = ['$window']; function DataUtils ($window) { var service = { abbreviate: abbreviate, byteSize: byteSize, openFile: openFile, ...
/** @module ember-data */ import {ManyArray} from "./record_arrays"; var get = Ember.get, set = Ember.set; var forEach = Ember.EnumerableUtils.forEach; /** @class RecordArrayManager @namespace DS @private @extends Ember.Object */ var RecordArrayManager = Ember.Object.extend({ init: function() { this.f...
/* --- name: XML description: JSON encoder and decoder. requires: [Array, String, Number, Function] provides: [XML] ... */ (function() { if (!window.DOMParser) { var DOMParser = window.DOMParser = function() {}; DOMParser.implement({ parseFromString: function(data, mime) { ...
// this middleware adds protection to certain tabs that should only be accessible by logged-in users const User = require('../models/User') module.exports = (req,res,next) => { // fetch the user from the database. If user doesn't exist, redirect to the home page User.findById(req.session.userId,(error,user) =>...
import express from 'express'; import cors from 'cors'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import 'babel-polyfill'; import dotenv from 'dotenv'; dotenv.config(); //Routes import indexRouter from './routes/index'; import usersRouter from './routes/users'; import realStateRouter fro...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import expect from '@kbn/expect'; export function UpgradeAssistantProvider({...
const Settings = { navTheme: 'light', // 拂晓蓝 primaryColor: '#1890ff', layout: 'mix', contentWidth: 'Fluid', fixedHeader: false, fixSiderbar: true, colorWeak: false, title: 'Secure SQL', pwa: false, logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', iconfontUrl: '', }; e...
console.info('学习npm') console.info('打印 module.js 的输出内容:', require('./module'))
function newImage(url) { let image = new Image(); image.src = url; return image; } const rfcRobot = newImage(process.env.PUBLIC_URL + '/robot-top.png'); const bitbotsRobot = newImage(process.env.PUBLIC_URL + '/wolfgang.png'); const ball = newImage(process.env.PUBLIC_URL + '/ball.png'); export { rfcRobot, bitbot...
/*jshint node:true*/ 'use strict'; module.exports = function(environment) { var ENV = { modulePrefix: 'eager-blog', environment: environment }; return ENV; };
/** * Extra **/ /** * Extra@foo:bar-baz.moo@woo-hoo() * * It's really needed to be able to use event names like * foo.bar or foo:bar or foo-bar or even foo:bar-baz.moo **/
(function(angular) { 'use strict'; angular.module('xpsui:directives') .directive('xpsuiPortalWidgetGalleryView', ['xpsui:logging', '$compile', function(log, $compile) { return { restrict: 'A', scope: { data: '=xpsuiPortalWidgetGalleryView', index: '=' }, link: function(scope, elm, attrs, ctrls...
/**! * * Copyright 2013 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
'use strict'; var bitcore = require('bitcore-lib-dinero'); var async = require('async'); var TxController = require('./transactions'); var Common = require('./common'); function AddressController(node) { this.node = node; this.txController = new TxController(node); this.common = new Common({log: this.node.log})...
module.exports={A:{A:{"2":"O D G E A B lB"},B:{"2":"C I F P J K L M KB N R S T XB"},C:{"33":"0 1 2 3 4 5 6 7 8 9 H Y O D G E A B C I F P J K L Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB PB GB HB IB JB Q LB MB NB FB W V UB QB RB SB TB OB M KB N kB R S","164":"jB aB sB vB"},D:{"2":"0 1 2 3 4 5 6...
class Game { constructor() { this.resetTitle = createElement("h2"); this.resetButton = createButton(""); this.leadeboardTitle = createElement("h2"); this.leader1 = createElement("h2"); this.leader2 = createElement("h2"); } getState() { var gameStateRef = database.ref("gameState"); g...
/** * Copyright JS Foundation and other contributors, http://js.foundation * * 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 r...
self.addEventListener('install', function(event) { console.log("INSTALLED"); })
export const debugTarget = (vec) => { const dbgNode = document.querySelector(".js-target"); dbgNode.innerHTML = `${Math.round(vec.x)}, ${Math.round(vec.y)}, ${Math.round(vec.z)}`; };
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint = Matter.Constraint; var engine, world, backgroundImg,boat; var canvas, angle, tower, ground, cannon; var balls = []; var boats = []; function preload() { backgroundImg = loadImage("./assets/background.gif"); ...
const HtmlWebpackPlugin = require('html-webpack-plugin'); const webpack = require('webpack'); module.exports = ({ mode } = { mode: 'production' }) => { console.log(mode); return { mode, output: { filename: 'bundle.js', hotUpdateChunkFilename: 'hot/hot-update.js', hotUpdateMainFilename: 'h...
import execa from 'execa' import fs from 'fs' // get/set defaults from .env file const { WEB_ROOT = '/var/www/auto-deploy', TEMP_OUTPUT_DIR = '/var/www/temp', } = process.env // run full deploy script export const deploy = async ({ baseUrl, user, project }) => { // get extra details from package.json after pull...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { getAmountErrorObject, getGasFeeErrorObject, getToAddressForGasUpdate, doesAmountErrorRequireUpdate, } from './send.utils' import { debounce } from 'lodash' import { getToWarningObject, getToErrorObject, } from './send-conte...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WeakSetPredicate = void 0; const has_items_1 = require("../utils/has-items"); const predicate_1 = require("./predicate"); class WeakSetPredicate extends predicate_1.Predicate { /** @hidden */ constructor(options) { ...
import { AgeMaker } from '../src/AgeMaker.js' describe('AgeMaker', function() { it('should instantiate the object', function() { let anAge = new AgeMaker("11/16/1966","female", "mercury"); expect(anAge.gender).toEqual("female"); }); it('should change a property in the object', function() { let anAg...
'use strict'; const gatewaySymbol = Symbol(); let AttributeSetter = require('./attribute_setter').AttributeSetter; let ApplePayCard = require('./apple_pay_card').ApplePayCard; let AndroidPayCard = require('./android_pay_card').AndroidPayCard; let AuthorizationAdjustment = require('./authorization_adjustment').Authori...
import React from 'react'; import Helmet from 'react-helmet'; const Head = () => { return ( <Helmet> </Helmet> ); }; export default Head;
// JavaScript Document //Funcion diferencia de dias $(function() { //<!--InHabilitar ENTER en FORM--> $('form').keypress(function(e){ if(e == 13){ return false; } }); $('input').keypress(function(e){ if(e.which == 13){ return false; } }); //<!--InHabilitar ENTER en FORM--> ...
const path = require("path"); const v8 = require("v8"); const WebpackShellPlugin = require("webpack-shell-plugin"); const clone = (object) => v8.deserialize(v8.serialize(object)); let getJsConfig = (minimize) => { return { entry: ["./tool/dropzone.dist.js"], mode: "production", module: { rules: [ ...
/* eslint-disable react/jsx-props-no-spreading */ import mem from 'mem'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDiffViewer from 'react-diff-viewer'; import Spark from 'spark-md5'; import config from '../config'; // memoized MD5 calculation const md5 = mem((s) => Spark.hash(s)); con...
/*! For license information please see 748.bundle.js.LICENSE.txt */
/** * Copyright IBM Corp. 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { useState, useEffect, useRef } from 'react'; import classnames from 'classnames'; import { Car...
/// <reference types="Cypress" /> class GLogin { visit(){ //cy.viewport(1366 , 768) cy.visit("https://www.neutrogena.com/login?original=%2Faccount") } // this method is use to login form enterEmail(value){ const field=cy.get(":nth-child(4) > #username") field.clear() ...
deepmacDetailCallback("8439be900000/28",[{"d":"2015-09-15","t":"add","a":"Yuexiu District of Shuiyin Road No.56th courtyard No.1 building six-floor\nGuangzhou Guangdong 510627\n\n","c":"CN","o":"Guangdong SunMeng Information Technology?Co. Ltd."},{"d":"2015-09-19","t":"change","a":"Yuexiu District of Shuiyin Road No....
const Discord = require('discord.js'), core = require('./core.js'); let self = (module.exports = { execute(client, msg, args = []) { if (!args.length) return self.list(client, msg); if (self[args[0]]) return self[args[0]](client, msg, args[1], args[2]); // surely this shouldn't work lmao - ghetto as fuck ...
module.exports = (app, next) => { const express = require('express'); const router = express.Router(); // To Get Chat history router.get("/", app.controller.chat.history) app.use('/v1/chat', router) }
(function(App) { 'use strict'; App.Helper = App.Helper || {}; App.Helper.Tooltip = Backbone.View.extend({ initialize: function() { // The model must be initialized here in a parent view, if we don't do that all the child views will share the same model. // Yes I know, a little bit crazy ...
import React, {useState, useEffect} from 'react'; import { Row, Col, CardBody, Card, Badge } from './../../../components'; import axios from "axios" import { getParsedJwt } from "../../../provider" import { AdvancedTable } from './components'; import { HeaderMain } from "../../components/HeaderMain"; import { Card...
import * as types from '../constants/eon_detail_action_types'; export function CHANGE_TAB(tab) { return { type: types.CHANGE_TAB, payload: tab }; } export function SHOW_COMMAND(tab) { return { type: types.SHOW_COMMAND, payload: tab }; } export function HIDE_COMMAND() { return { type: ty...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
let http = require('http'); let logger = require('./perfect-logger'); function time() { return "time"; } logger.addStatusCode("try", "TRY", false); logger.setTimeZone("Asia/Colombo"); logger.setLogDirectory("./NodeLogs"); logger.setLogFileName("UCSCRES"); logger.setMaximumLogSize(10000); logger.setApplicationInfo...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.indexof description: > Array.prototype.indexOf throws TypeError exception when 'length' is an object with toString and valueOf methods that don�...
/** * @license Angular v4.3.5 * (c) 2010-2017 Google, Inc. https://angular.io/ * License: MIT */ import { APP_BOOTSTRAP_LISTENER } from '@angular/core'; import { Router } from '@angular/router'; import { UpgradeModule } from '@angular/upgrade/static'; /** * @license * Copyright Google Inc. All Rights Reserved. ...
'use strict'; angular.module('biyblApp') .controller('LoginCtrl', function ($scope, Auth, $location) { $scope.user = {}; $scope.errors = {}; $scope.login = function(form) { $scope.submitted = true; if(form.$valid) { Auth.login({ email: $scope.user.email, password...
/** * BetterDiscord Plugin API * Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks * All rights reserved. * https://betterdiscord.net * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ im...
/* * Copyright (c) 2015-2016 Fraunhofer FOKUS * * 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...
/*! * @copyright &copy; Kartik Visweswaran, Krajee.com, 2014 * @version 1.2.0 * * A multi level dependent dropdown JQuery plugin. The plugin * allows nested and combined dependencies. * * For more JQuery plugins visit http://plugins.krajee.com * For more Yii related demos visit http://demos.krajee.com */ (fun...
//# sourceMappingURL=80.cf5180bd.chunk.js.map
//# sourceMappingURL=identifier-app.b36b0d07.chunk.js.map
// @flow const proc = require('child_process'); const {promisify} = require('util'); const {tmpdir} = require('os'); const { readFile, writeFile, access, readdir, mkdir: makeDir, lstat, realpath, } = require('fs'); /*:: import {Writable, Readable, Duplex} from 'stream'; export type Exec = (string, ExecO...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
mongoose = require("mongoose"); var Schema = mongoose.Schema; var ProductSchema = new Schema({ name: { type: String, required: [true, "El nombre es requerido"] }, amount: { type: Number, required: [true, "La cantidad del producto es requerida"], }, amountUnit: { type: String, required: [true, "...
const getSubList = require('./util/getSubList.js') const currentGuilds = require('../util/storage.js').currentGuilds const MenuUtils = require('../structs/MenuUtils.js') const log = require('../util/logger.js') const config = require('../config.json') function addRole (message, role, links) { message.member.addRole(...
import React from 'react' import HashFilter from './HashFilter' import { Form } from 'react-bootstrap' const TokenFilter = ({ filters, on_update, show_every_token_on_link, on_show_every_token_on_link_update }) => ( <HashFilter filters={filters} on_update={on_update} title="Filter by token addresses (one address or s...
import _ from 'lodash'; import Button from 'material-ui/Button'; import Link from 'next/link'; // choi voi simpe href va query ?xxx=xxx&aaa=aaa // import Snackbar from 'material-ui/Snackbar'; import App from '../components/App'; import withData from '../libraries/withData'; // import { dump } from '../libraries/helpe...
define({ "map": { "error": "Karte ni mogoče ustvariti", "licenseError": { "message": "Vaš račun ni licenciran za uporabo konfigurabilnih aplikacij, ki niso javne. Prosite administratorja v vaši organizaciji, da vam dodeli tip uporabnika, ki vsebuje aplikacije Essential Apps ali licenco za dodatne aplika...
const Web3 = require("web3"); const toBytes32 = require("./constants").toBytes32; const web3 = new Web3(); export const identityClaims = { isNone: 0, isVerified: 1, isSophisticatedInvestor: 2, hasBankAccount: 4, isAccountFrozen: 8, }; export function serializeClaims( isVerified, isSophisticatedInvestor...
/** * @fileoverview A module that filters reported problems based on `eslint-disable` and `eslint-enable` comments * @author Teddy Katz */ "use strict"; const escapeRegExp = require("escape-string-regexp"); /** * Compares the locations of two objects in a source file * @param {{line: number, column: number}} it...
/** * Description: 公共store * Created by lijm6@asiainfo.com */ import {observable, action} from 'mobx' //公共store class CommonStore { @observable userInfo = {} @observable httpAgent = null @observable systemInfo = {} @observable menus = [] // 获取userInfo @action setUserInfo = (userInfo) => { this.use...
/* @flow */ const path = require('path'); const userHome = require('./util/user-home-dir').default; type Env = { [key: string]: ? string }; export const DEPENDENCY_TYPES = [ 'devDependencies', 'dependencies', 'optionalDependencies', 'peerDependencies', ]; export const YARN_REGISTRY = 'https://registry.yar...
// Copyright 2019 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 in ...
const chainMaker = { chain: [], getLength() { return this.chain.length; }, addLink(value) { const stringRepresentation = String(value); const newChainMaker = Object.assign({}, this); const newChain = [...this.chain, stringRepresentation]; newChainMaker.chain = newChain; return newChainM...
/* eslint-disable no-await-in-loop */ const util = require('util'); const path = require('path'); const fs = require('fs'); const mkdirp = require('mkdirp'); const { promisify } = require('util'); const LRU = require('lru-cache'); const redis = require('redis'); const { Op } = require('@rickbergfalk/sequelize'); const ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
#!/usr/bin/env node 'use strict'; const {exec} = require('child-process-promise'); const {join} = require('path'); const {logPromise} = require('../utils'); const run = async ({cwd, dry, tempDirectory}) => { const defaultOptions = { cwd: tempDirectory, }; await exec('yarn install', defaultOptions); awai...
import * as React from 'react'; /** * @ignore - internal component. * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>} */ const AccordionContext = React.createContext({}); if (process.env.NODE_ENV !== 'production') { AccordionContext.displayName = 'AccordionContext'; } expo...
import { handleActions } from 'redux-actions'; import { Map } from 'immutable'; import { requestDeleteVendor, successDeleteVendor, rejectDeleteVendor } from 'actions/vendors'; const initialState = new Map({ isDeletingVendor: false, }); const deleteVendorReducer = handleActions( { [requestDeleteVendor]: state...
/* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. */ /****************************************************************************** * * You may not use the identified files except in compliance with the Apache * License, Version 2.0 (the "License.") * * You may obtain a copy of the Licens...
const Format = require('./format-msg.js') const Settings = require('../config/settings.json') const Engine = require('./engine.js') const Handlers = require('./handlers.js') module.exports = { async route (msg) { if (!msg.content.startsWith(Settings.trigger)) return const params = msg.content.replace(Settin...
var pcVazio = document.getElementById("pc")//esta variável el foi declarada no escopo global pq serve para as duas funções var resultado = document.getElementById("placar") function jogar(){ var pedra = document.getElementById("bPedra") var papel = document.getElementById("bPapel") var tesoura = document.ge...
Input:: //// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] export * from "./tools.interface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; export class...
"use strict"; function ShaderMaterialEditor(parent, closeable, container, index) { TabElement.call(this, parent, closeable, container, index, Locale.material, Global.FILE_PATH + "icons/misc/material.png"); var self = this; //Preview configuration this.previewForm = new TableForm(); this.previewForm.setAutoSize(...
(function () { var defs = {} // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id) var fragments = id.split('.')...
module.exports = { "rules": { // Specify a list of disallowed at-rules. //"at-rule-disallowd-list": null, // Require or disallow an empty line before at-rules. "at-rule-empty-line-before": ["always", { "except": ["first-nested"], "ignore": ["after-comment", "blockless-after-blockless"], ...
"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ Object.defineProperty(exports, "__esModule", { value: true }); const Character = require("../misc/Character"); const AtomTransition_1 ...
/*! DSFR v0.6.0 | licence MIT */ (function () { 'use strict'; var namespace = 'dsfr'; var api = window[namespace] || { core: {} }; window[namespace] = api; var HEADER_SELECTOR = api.core.ns.selector('header'); var HEADER_TOOLS_SELECTOR = api.core.ns.selector('header__tools'); var HEADER_SEARCH_BAR_SEL...
import React from 'react' import Helmet from 'react-helmet' import {StyleSheet, css,} from 'aphrodite' const App = ({ children }) => ( <div className={css(styles.root)}> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap .min.css" /> <Helmet title="Bookworm"...
import { Routes, Route } from "react-router-dom"; import TasksList from "./features/tasks/TasksList"; import { AddTaskForm } from "./features/tasks/AddTaskForm"; import { SingleTaskEdit } from "./features/tasks/SingleTaskEdit"; import { UserSignUp } from "./features/users/userSignUp"; import { UserLogIn } from "./featu...
/******************************************** - THEMEPUNCH TOOLS Ver. 1.0 - Last Update of Tools 16.04.2014 *********************************************/ /* * @fileOverview TouchSwipe - jQuery Plugin * @version 1.6.6 * * @author Matt Bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson...
/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const StartupChunkDependenciesRuntimeModule = require("./StartupChunkDependenciesRuntimeModule"); const StartupEntrypointRuntimeModule = require("./StartupEntrypointRuntimeModule");...
.1m;
/* * Copyright © 2016-2018 The Thingsboard Authors * * 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 applicabl...
exports.translate = function (load) { if (this.builder && this.transpiler) { load.metadata.format = 'esm'; return 'exp' + 'ort var __useDefault = true; exp' + 'ort default ' + JSON.stringify(load.source) + ';'; } load.metadata.format = 'amd'; return 'def' + 'ine(function() {\nreturn ' + JSON.stringify(load.sou...
// Get stored parks from localStorage and parse the JSON string to an array // Using localStorage for now, until I get a database set up. var storedBeen = JSON.parse(localStorage.getItem("beenList")) || []; var beenParks = []; console.log(storedBeen); arrayify(); function arrayify() { // If parks were fetched from ...
import React from 'react'; import renderer from 'react-test-renderer'; import { LocalizationProvider } from './Provider'; import { Message } from './Message'; const TRANSLATIONS = { en: { name: 'Alex', }, }; describe('Message', () => { it('translates from key to text', () => { const tree = renderer ...
/** * Stub of TouchID for Android. * * @providesModule TouchID * @flow */ 'use strict'; var warning = require('warning'); var TouchID = { test: function test() { warning('Not yet implemented for Android.'); } }; module.exports = TouchID;
deepmacDetailCallback("70b3d598d000/36",[{"d":"2020-11-18","t":"add","s":"ieee-oui36.csv","a":"Motohaus Powersports Limited, 1a Rose Estate Osborn Way Hook GB RG27 9UT","c":"GB","o":"Motohaus Powersports Limited"}]);
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
/* 编辑区域 */ import $ from '../util/dom-core.js' import { getPasteText, getPasteHtml, getPasteImgs } from '../util/paste-handle.js' import { UA } from '../util/util.js' // 获取一个 elem.childNodes 的 JSON 数据 function getChildrenJSON($elem) { const result = [] const $children = $elem.childNodes() || [] // 注意 chil...
import _ from 'underscore'; import $ from 'jquery'; import { parse, View as VegaView } from 'vega-lib'; import moment from 'moment'; import View from 'girder/views/View'; import JobStatus from '../JobStatus'; import JobsGraphWidgetTemplate from '../templates/jobsGraphWidget.pug'; import timingHistoryChartConfig ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users'; import {getChannel} from 'mattermost-redux/selectors...
const webpack = require('webpack'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const BabiliPlugin = require('babili-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); // Config directories const SRC_DIR = path.resolve(__dirname, 'src'); cons...
import React from 'react' import { StyleSheet } from 'elementum' const styles = StyleSheet.create({ self: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexDirection: 'column', marginBottom: '40px', position: 'relative', '&::after': { content: '" "', posit...
/** * The `Matter.Bounds` module contains methods for creating and manipulating axis-aligned bounding boxes (AABB). * * @class Bounds */ export class Bounds { /** * Creates a new axis-aligned bounding box (AABB) for the given vertices. * @method create * @param {vertices} vertices * @return {bou...