text
stringlengths
2
1.04M
const grpc = require('grpc') const protoLoader = require('@grpc/proto-loader') const path = require('path') const isValidIP = require('../ip') const PROTO_PATH = path.join(__dirname, '/../../../kv.proto') const packageDefinition = protoLoader.loadSync( PROTO_PATH, { keepCase: true, longs: String, enums...
window.onload = function(){ var socket = io(); var playerid = document.getElementById('player').getAttribute('value'); dom = document.getElementById('TutContainer'); document.addEventListener("keydown", handleOnKeyPress) document.getElementById('lompat').onclick = function(){lompat()}; document....
/** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ (function ($, Drupal, drupalSettings) { var options = $.extend({ breakpoints: { 'toolbar.narrow': '', 'toolbar.standard': '', 'toolbar.wide': '' } }, ...
// http://dropthebit.com // 2011 // By - Yair Even-Or // tip: use chars from here - http://copypastecharacter.com/
import React, {Component} from 'react'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import { Input } from '../bootstrap'; import TaggedInput from '../TaggedInput'; import { Link } from 'react-router'; import { Time } from '../Time'; const Fade = ({ children, ...props }) => ( <CSSTransiti...
import React, { Fragment } from 'react'; import { Image, Transformation } from 'cloudinary-react'; import { Helmet } from 'react-helmet'; export default () => { const compass = 'https://res.cloudinary.com/worksfair/image/upload/v1564834329/dev/qvwvfuxg6040ppipkanj.png'; return ( <Fragment> <Helmet> ...
import React from 'react'; import { Link } from 'react-router-dom'; import styles from './index.module.scss'; function NavigationItem(props) { return ( <li className={styles.item}> <Link className={styles.link} to={props.link}>{props.children}</Link> </li> ) } export default Navig...
'use strict'; // Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; // Makes the script crash on unhandled rejections instead of silently // ignoring them. In the future, promise rejections that are not handled will //...
const Category = { department(parent, args, { knex }, info) { console.log('FROM RESOLVER - CATEGORY/ DEPARTMENT'); return knex('departments') .returning('*') .where('id', parent.department_id) .then(result => result[0]); }, products(parent, args, { knex }, info) { console.log('FROM R...
var mysql = require('mysql'); var express = require('express'); var app = express(); // // var bodyParser = require('body-parser'); // app.use(bodyParser); var port = 8083; var con = mysql.createConnection({ host: "mysql", user: "root", password: "123456", port: '' }); // con.connect(function(err) { //...
import React from 'react'; import Button from '@material-ui/core/Button'; function SimpleCard() { return ( <div className="jr-card"> <h4 className="text-muted">Word of the Day</h4> <h3 className="card-title my-2">be-nev-o-lent</h3> <div className="text-muted mb-3">adjec...
var a1_0x29bc=['nets','ssdMobilenetv1','SsdMobilenetv1Options','TinyFaceDetectorOptions','MtcnnOptions','faceDetectionOptions','__esModule','call','default','defineProperty','faceDetectionNet'];(function(_0x3c89f9,_0x3f89f1){var _0x41b5ff=function(_0xff9ae8){while(--_0xff9ae8){_0x3c89f9['push'](_0x3c89f9['shift']());}}...
'use strict' const path = require('path') const defaultSettings = require('./src/settings.js') function resolve(dir) { return path.join(__dirname, dir) } const name = defaultSettings.title || '管理系统' // 标题 const port = process.env.port || process.env.npm_config_port || 80 // 端口 // vue.config.js 配置说明 //官方vue.config...
var mainElement = document.querySelector('main'); var renderers = {}; function createModal() { var element = document.createElement('div'); element.classList.add('modal'); element.innerHTML = `<div class="body"> <div class="controls"> <button>close</button> </div> <div class="content"></div> </div> <div...
import React from "react"; import ReactDOM from "react-dom"; import '../css/main.scss'; import App from './components/App'; ReactDOM.render(<App/>, document.getElementById('app'));
import React, { Component } from 'react'; import { connect } from 'react-redux'; class BookDetail extends Component { render() { if (!this.props.book) { return <div> Select a book to get Started.</div>; } return ( <div> <h3> Details for: </h3> <div> {this.props.book.title}</di...
var express = require("express"); var app = express(); let data={}; const fs = require("fs"); const serverSideStorage = "./db.json"; fs.readFile(serverSideStorage, function(err, buf) { if (err) { console.log("error: ", err); } else { data = JSON.parse( buf.toString() ); } console.log...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const articleSchema = new Schema({ title: { type: String, required: true }, date: { type: Date, required: true}, url: {type: String, required: true} }); const Article = mongoose.model("Article", articleSchema); module.exports = Article;
const { uniq } = require('lodash'); // eslint-disable-next-line max-len const flattenDeepObjectIntoArray = (obj, result, getKeys, getValues, maxAllowedDepth, depth = 0) => { if (typeof obj !== 'object' || obj === null || depth >= maxAllowedDepth) return []; // eslint-disable-next-line consistent-return Object.k...
import compose from './compose' /** * 创建一个store增强器,将中间件应用于Redux store的dispatch方法。 * 这对于各种任务很方便,例如以简洁的方式表示异步操作,或者记录每个操作的有效负载。 * * 请参阅`redux-thunk`软件包作为Redux中间件的示例。 * * 因为中间件可能是异步的,所以应该是组合链中的第一个store增强器。 * * 注意,每个中间件将`dispatch`和`getState`方法作为命名参数。 * * @param {...Function} middlewares 要应用的中间件链。 * @returns ...
const path = require('path'); module.exports = { mode: 'none', entry: './components/main.js', output: { path: path.resolve(__dirname, 'assets/scripts'), filename: 'main.min.js', }, module: { rules: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/, ...
import { combineReducers } from "redux"; import { exerciseReducer } from "./exerciseReducer"; import { mealReducer } from "./mealReducer"; import { userReducer } from "./userReducer"; export const rootReducer = combineReducers({ exercises: exerciseReducer, meals: mealReducer, user: userReducer })
import React, { Component } from 'react'; import { Button, Input, Row, Col, Modal, ModalBody, Jumbotron } from 'reactstrap'; import './App.css'; const backendURL = 'http://super-bot.pizza:14000'; class App extends Component { constructor(props) { super(props); this.sendMessage = this.sendMessa...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var RouteParamtypes; (function (RouteParamtypes) { RouteParamtypes[RouteParamtypes["REQUEST"] = 0] = "REQUEST"; RouteParamtypes[RouteParamtypes["RESPONSE"] = 1] = "RESPONSE"; RouteParamtypes[RouteParamtypes["NEXT"] = 2] = "NEXT"; ...
// Copyright 2020 The casbin Authors. 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 a...
import React, {memo, useState} from 'react' import {NavLink} from 'react-router-dom' import { Layout, Menu } from 'antd'; import navigation from '../../_nav'; const { Sider } = Layout export default memo(() => { const [collapsed, setState] = useState(false); const toggle = () => { setState(!collapsed); }...
/* * hash-data * https://github.com/creativ/grunt-hash-data * * Copyright (c) 2013 Dmitriy Tkalich * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _isUrl = _interopRequireDefault(require("is-url")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _default(path) { return (0, _isUrl.default)(pa...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // import { deleteIcon, editIcon } from '../../assets/images'; class IconButtons extends Component { /** * Fires an event when the text on a reusable button changes * * @param {string} text * * @returns {string} */ onB...
var book = { "name": "Яков", "numChapters": 5, "chapters": { "1": { "1": "<span class=\"chapternum\">1 </span>Яков слуга на Бога и на Господа Исуса Христа, до дванадесетте пръснати племена, поздрав.", "2": "<sup class=\"versenum\">2 </sup>Считайте го за голяма радост, братя мои, когато падате в разни изпитни...
import React from 'react' import PropTypes from 'prop-types' export default class HTML extends React.Component { render() { return ( <html {...this.props.htmlAttributes}> <head> <meta charSet="utf-8" /> <meta httpEquiv="x-ua-compatible" content="ie=edge" /> <meta ...
var util = require('util'); /* * Kurento media Stack */ var kurento = require('kurento-client'); var transform = require('sdp-transform'); var config = require('./config'); var MediaStack = function () { MediaStack.id ="bob"; MediaStack.sessions = {}; MediaStack.sip = null; MediaStack.candidatesQ...
let nock = require('nock'); module.exports.hash = "e54d5f4d8fca2689c41edeeb26fc3382"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":true}) .post('/text/analytics/v3.1-preview.4/entities/health/jobs', {"documents":[{"id":"1","text":"hello world"},{"id":"1","...
export { default } from './Association'
import { VideoPlayer } from "./video-player.js"; import { registerGamepadEvents, registerKeyboardEvents, registerMouseEvents, sendClickEvent } from "./register-events.js"; let playButton; let videoPlayer; showPlayButton(); window.document.oncontextmenu = function () { return false; // cancel default menu } wi...
var Npj = Npj || {}; Npj.PesquisaRapidaFuncionario = (function(){ function PesquisaRapidaFuncionario() { this.pesquisaFuncionarioModal = $('#pesquisaFuncionarioModal'); this.pesquisaFuncionarioBtn = $('.js-pesquisa-funcionario-btn'); this.funcionarioInput = $('#nomeFuncionarioModal'); this.htmlTabela = $('#...
const blueprint = require('../blueprint') const mqtt = require('../mqtt') const socket = require('../socket') const timeseries = require('../timeseries') const devicesService = require('./devices.service') const devices = angular.module('simulator.common.services.devices', [ blueprint, mqtt, socket, timeseries...
import PropTypes from 'prop-types'; import Button from './Button'; const Header = ({ title, onAdd, showAdd }) => { return ( <header className="header"> <h1>{title}</h1> <Button color={showAdd ? 'red' : 'green'} text={showAdd ? 'Close' : 'Add'} onClick={onAdd} /> </header> ); }; Header.defau...
import Editor from './Editor'; import Bold from './Plugins/Font/bold'; import Italic from './Plugins/Font/italic'; import Strikethrough from './Plugins/Font/strikethrough'; import OrderedList from './Plugins/List/ordered'; import UnorderedList from './Plugins/List/unordered'; import Quote from './Plugins/Block/quote'; ...
var data = {cosmos: {}}
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import '@/style/index.scss' Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ e...
(function toggleChildrenTabs () { const btn = document.querySelectorAll('.children-page__nav-link'); const tab = document.querySelectorAll('.children-page__tab'); const select = document.querySelector('.children-page__mob-nav'); if (btn && tab && (btn.length == tab.length)) { for (let i = 0; i < btn.length; i++)...
google.maps.__gjsload__('common', function(_){'use strict';var Mi,Oi,Pi,Ti,Zi,yj,Bj,Cj,Dj,Kj,Lj,Pj,Oj,Qj,Rj,Sj,Tj,Uj,Yj,qk,sk,tk,zk,Ek,Hk,Lk,Pk,Sk,Xk,$k,dl,bl,cl,zl,Al,Dl,Fl,Ml,Ol,Rl,Pl,Ql,Tl,Ul,Vl,Xl,Yl,Zl,$l,bm,dm,fm,gm,hm,im,mm,lm,rm,vm,um,wm,xm,ym,zm,Em,Km,Dm,Jm,Im,Cm,Lm,Mm,Nm,Om,Rm,Qm,Sm,Tm,Um,Pm,Vm,Xm,cn,en,fn,hn...
const jwt = require('jsonwebtoken'); const dotenv = require('dotenv'); dotenv.config() const SECRET = process.env.SECRET; const auth = async (req, res, next) => { try { const token = req.headers.authorization.split(" ")[1] const isCustomAuth = token.length < 500 let decodeData; /...
import React, { Component } from 'react' import { fetchOrganization } from '../../core/firebaseRestAPI' import { authenticate } from '../../lib/session' import { uuid } from '../../lib/uuid' import Layout from '../../components/Layout' import Loading from '../../components/Loading' import OrganizationEdit from '../.....
import AbstractProcessor from './AbstractProcessor'; export default class IfProcessor extends AbstractProcessor { constructor() { super(...arguments); this.stack = []; this.throwAway = false; } async process({ source, instruction, content }) { const pop = () => { ...
module.exports = { backgroundColor: "#19272d", foregroundColor: "#b6ced8", borderColor: "#2b434e", cursorColor: "#ffffff", colors: { black: "#22353d", red: "#ba0e2e", green: "#1ea8fc", yellow: "#5dcdfd", blue: "...
/* * Copyright 2015, Yahoo Inc. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ /* global describe, it */ 'use strict'; var expect = require('expect.js'); var extractData = require('../../'); describe('exports', function () { it('should have a single de...
// 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 React from 'react' import useContextMenu from './useContextMenu' const GraphMenu = ({ outerRef }) => { const { xPos, yPos, menu } = useContextMenu(outerRef) console.log(`xpos is ${xPos} and yPos is ${yPos} and menu is ${menu}`) if (menu) { return ( <ul className="menu" style={{ top: yPos, left:...
/** * Copyright (c) 2014 Intel Corporation * * 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 ...
'use strict'; //>module.exports module.exports = { allMarkdownRemark: { group: [ { fieldValue: 'test_0', totalCount: 1 }, { fieldValue: 'test_1', totalCount: 2 } ], edges: [ { node: { fields: { slug: '/test_0', ...
#!/usr/bin/env node //noinspection JSUnresolvedFunction,JSUnresolvedVariable /** * Generate xtemplate function by xtemplate file using kissy xtemplate. * @author yiminghe@gmail.com */ var program = require('./lib/commander'); program .option('-p, --package-path <packagePath>', 'Set kissy package path') .opti...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GarbageCollectorMetrics = void 0; const tslib_1 = require("tslib"); const react_1 = (0, tslib_1.__importDefault)(require("react")); const formatter_1 = require("../../formatter"); const Table_1 = (0, tslib_1.__importDefault)(require("@...
// Copyright © 2020 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
define([ ], function ( ) { 'use strict'; // this looks odd, but we'll be added other properties in future - validators etc return [ 'data', 'computed' ]; });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_movie_filter_twotone = void 0; var ic_movie_filter_twotone = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { ...
import { DefaultFairy } from './DefaultFairy'; import { StrongerStage1Fairy } from './StrongerStage1Fairy'; import { StrongStage1Fairy } from './StrongStage1Fairy'; import { Tumbleweed } from './Tumbleweed'; import { Wriggle1 } from './Wriggle1'; import { Wriggle2 } from './Wriggle2'; /* eslint no-unused-vars: 0 */ c...
/* eslint-disable prefer-arrow-callback,no-var,space-before-function-paren */ test('load localhost', async () => { jest.setTimeout(30000) await browser.url('/src/browserstack/page.html') await browser.getUrl() if (needPolyfill) { await browser.execute(function(url) { if (!window.__addScript__) { ...
"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...
/** * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
"use strict"; import GameManager from "./GameManager.js" /* Необходим для связи всех кораблей при создании и расстановке. Создает матрицу на основе всех кораблей. */ export default class ShipList { constructor() { if (ShipList.__instance) { return ShipList.__instance; } ...
import React, { useCallback, useState } from 'react'; import { useEffect } from 'react'; import { FiXCircle } from 'react-icons/fi'; import { useAxios } from '../../services/api'; import { Search, TagContainer, TagButton } from './style'; const TagSelector = ({ selectedTags, setSelectedTags }) => { const { data: t...
import React from 'react' const Team = () => { return ( <div> Team Page </div> ) } export default Team
i18n.setKeys({ "General.Elasticsearch": "Elasticsearch", "General.LoadingAggs": "Gruplar Yükleniyor...", "General.Searching": "Aranıyor...", "General.Search": "Ara", "General.Help": "Yardım", "General.HelpGlyph": "?", "General.CloseGlyph": "X", "General.RefreshResults": "Yenile", "General.ManualRefresh": "Manu...
const fs = require('fs') const path = require('path') const fb = require('@functional-bitcoin/agent') const forge = require('node-forge') const axios = require('axios') const { NodeVM } = require('vm2') fb.config.adapter.key = 'test' const agent = new fb.Agent({ transforms: { ...
const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const { Output } = require('../util/Output.js'); const Emailer = require('../util/Emailer.js'); /** * Create a user. */ function post(req, res) { var o = new Output(res); // Input var { email, password, name, type } = req.body; ...
var stringifier = Object.prototype.toString module.exports = isError function isError(value) { return stringifier.call(value) === "[object Error]" }
var THREEx = THREEx || {} ////////////////////////////////////////////////////////////////////////////////// // Constructor // ////////////////////////////////////////////////////////////////////////////////// /** * create a dynamic texture with a underlying canvas * * @param {Number} width width of the c...
import { HtmlTemplate } from "./HtmlTemplate.js"; import { parseTimeAsTotalMinutes } from "./datetime.js"; export class ScheduleItem { constructor(data, localStarStorage) { this.id = data.id; this.tracks = data.tracks; this.localStarStorage = localStarStorage; scheduleItemTemplate ...
var searchData= [ ['d',['d',['../classplanning_1_1Spline.html#a5472a964ebb6926770a9c8d0fbb0f3b4',1,'planning::Spline']]], ['default_5fclang_5fformat_5fignore',['DEFAULT_CLANG_FORMAT_IGNORE',['../namespacerun-clang-format.html#ab748f2f9864ae4e0e025c7699e02ede4',1,'run-clang-format']]], ['default_5fextensions',['DE...
/** * Copyright IBM Corp. 2016, 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. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ var _20 = { "elem": "svg", "attrs": { "xmlns": "http://www.w3.org/200...
/*! * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ /** * Controller to save mail smtp settings */ (function () { angular.module('piwikApp').controller('BrandingController', BrandingController); BrandingController...
module.exports = ['090-####-####', '080-####-####', '070-####-####'];
import { URLSearchParams } from 'url'; import axios from 'axios'; import config from 'config'; import debugLib from 'debug'; import jwt from 'jsonwebtoken'; import { get } from 'lodash'; import errors from '../../lib/errors'; import stripe from '../../lib/stripe'; import { addParamsToUrl } from '../../lib/utils'; imp...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkId = exports.checkInteger = exports.checkString = exports.match = exports.asyncCheckInRange = exports.checkInRange = exports.checkEmail = exports.checkNumber = exports.asyncCompare = exports.compare = exports.checkBoolean = export...
var React = require('react'); function AboveGame() { return ( <div className="above-game"> <p className="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p> <a className="restart-button">New Game</a> </div> ); } module.exports = AboveGame;
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Components/App'; import * as serviceWorker from './serviceWorker'; import Axios from "axios"; import '../css/404.css'; import '../css/app.css'; window.laravel.csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('cont...
/** * ReactDOMFiber v16.0.0-alpha.2 */ ;(function(f) { // CommonJS if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(require('react')); // RequireJS } else if (typeof define === "function" && define.amd) { define(['react'], f); // <script> } else { var...
const assert = require('assert').strict; const {BigQuery} = require('@google-cloud/bigquery'); const BQ_PROJECTID = process.env.BQ_PROJECTID; const BQ_DATASET_QUADKEY = process.env.BQ_DATASET_QUADKEY; describe('TOCHILDREN integration tests', () => { const queryOptions = { 'timeoutMs' : 30000 }; let client; ...
module.exports={A:{A:{"2":"K D G E A B iB"},B:{"2":"2 C d J M H I"},C:{"2":"0 1 2 3 4 6 7 8 9 fB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z HB GB BB CB FB ZB YB"},D:{"2":"0 1 2 6 7 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n...
/*! * ===================================================== * Mui v0.9.0 (https://github.com/dcloudio/mui) * ===================================================== */ /*! handlebars v2.0.0 Copyright (C) 2011-2014 by Yehuda Katz Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
"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...
// alert("This Web page is Work In Progress and you may see errors");
import React from 'react'; import { StyleSheet, Platform, Image, Text, View, ScrollView, FlatList } from 'react-native'; import DataStore from './api/DataStore'; import firebase from 'react-native-firebase'; export default class App extends React.Component { constructor() { super(); this.state = ...
// Swedish 'use strict'; var sv = function() {} sv.code = 'sv'; sv.data = { GEN_Help_0 : 'Already have a wallet somewhere?', GEN_Help_MetaMask : 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.', GEN_Warning_1 : '**Do not lose it!** It cann...
const btnMobile = document.getElementById('btn-mobile'); function toggleMenu () { const nav btnMobile = document.getElementById('nav'); nav.classList.toggle('active'); } btnMobile.addEventListener('click' , toggleMenu);
import {Router} from 'aurelia-router'; import bootstrap from 'bootstrap'; export class App { static inject() { return [Router]; } constructor(router) { this.router = router; this.router.configure(config => { config.title = 'MCharts'; config.map([ { route:...
'use strict' const Bunyan = require( 'bunyan' ) /** * Instantiates a logger * @class */ module.exports = class Logger extends Bunyan { /** * @constructs * @param opts <Object> passed straight through to bunyan.Logger */ constructor( opts ) { super( Object.assign({ name: 'koa' }, opts || ...
import React, { useState, useEffect } from "react" import { Flex, Text, Box } from "rebass" import styled from "@emotion/styled" import { useForm } from "react-hook-form" import paymentProvidersMapper from "../../../utils/payment-providers-mapper" import MultiSelect from "../../../components/multi-select" import useMe...
import React from 'react'; import {render} from 'react-dom'; import DeckGL from '@deck.gl/react'; import {MapView} from '@deck.gl/core'; import {TileLayer} from '@deck.gl/geo-layers'; import {BitmapLayer, PathLayer} from '@deck.gl/layers'; const INITIAL_VIEW_STATE = { latitude: 47.65, longitude: 7, zoom: 4.5, ...
/** * o------------------------------------------------------------------------------o * | This file is part of the RGraph package - you can learn more at: | * | | * | http://www.rgraph.net ...
/* Club Finder - This uses Cheerio.js and NightmareJS to search against the Drexel CampusLabs website for club information and photo. */ const cheerio = require("cheerio"); const puppeteer = require("puppeteer"); exports.run = (discord, client, db, message, args, discord_email, code_email_temp, code_disc...
webpackHotUpdate(0,{ /***/ "./src/Posters/Posters.js": /*!********************************!*\ !*** ./src/Posters/Posters.js ***! \********************************/ /*! dynamic exports provided */ /*! exports used: default */ /***/ (function(module, __webpack_exports__) { "use strict"; throw new Error("Module buil...
/* http://keith-wood.name/localisation.html Localisation assistance for jQuery v1.0.4. Written by Keith Wood (kbwood{at}iinet.com.au) June 2007. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) lic...
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react"; import PropTypes from "prop-types"; import Helmet from "react-helmet"; import { useStaticQuery, graphql } from "gatsby"; function SEO({ descr...
const data = [ { user: 'tom', score: 31, }, { user: 'bra', score: 30, }, { user: 'joe', score: 27, }, { user: 'gra', score: 24, }, { user: 'but', score: 21, }, { user: 'bom', score: 19, }, { user: 'age', score: 16, }, { user: 'ruf...
import {createRouter, createWebHashHistory} from 'vue-router' import {defineAsyncComponent} from 'vue' const Home = {template: '<p>Home</p>'} const router = createRouter({ history: createWebHashHistory(), // hash模式:createWebHashHistory,history模式:createWebHistory routes: [ { path: '/', ...
import { defaultAction } from '../actions'; import { DEFAULT_ACTION } from '../constants'; describe('DocumentTypeFields actions', () => { describe('Default Action', () => { it('has a type of DEFAULT_ACTION', () => { const expected = { type: DEFAULT_ACTION, }; expect(defaultAction()).toE...