text
stringlengths
2
1.04M
module.exports = function (sequelize, Sequelize) { let Group = sequelize.define('group', { id: { autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, name: { type: Sequelize.STRING, allowNull: false }, users: { type: Sequelize.JSON, allowNull:...
import { useMutation, useLazyQuery } from '@apollo/client'; import { withApollo } from '../../libs/apollo'; import { REMOVE_FROM_CART_MUTATION } from '../../mutation/mutation'; import { CART_QUERY } from '../../queries/cartQuery'; import styles from '../../styles/SubCategoryType.module.css'; const SubCategoryItem = (...
const express = require("express"); const router = express.Router(); const pool = require("../db"); const Podcast = require("podcast"); // node podcast module: https://github.com/maxnowack/node-podcast // npm page for podcast: https://www.npmjs.com/package/podcast // npm page for rss: https://www.npmjs.com/package/rss...
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Row from 'react-bootstrap/lib/Row' import Alert from 'react-bootstrap/lib/Alert' class DistrictNotice extends React.Component { render() { const { district } = this.props return ( <div> <Row style={{margin:...
import styled from 'styled-components'; export const HeroContainer = styled.div` background: #0c0c0c; display: flex; justify-content: center; align-items: center; padding: 0 30px; height: 700px; position: relative; z-index: 1; @media screen and (max-width: 800px) { height: 950px; } ` export c...
/*! * slotgames: Core, es5 * Built with http://stenciljs.com */ /* webpackInclude: /\.entry\.js$/ */ /* webpackMode: "lazy" */
import express from 'express'; import usersControllers from '../controllers/user.controller'; import validator from '../middlewares/validators'; const userRouter = express.Router(); userRouter.get('/', usersControllers.allUsers); userRouter.post('/auth/signup', validator.signUp, usersControllers.createUser); export...
var divRendersTo = function (test, div, html) { Tracker.flush({_throwFirstError: true}); var actual = canonicalizeHtml(div.innerHTML); test.equal(actual, html); }; var nodesToArray = function (array) { // Starting in underscore 1.4, _.toArray does not work right on a node // list in IE8. This is a workaround...
//-- copyright // OpenProject is a project management system. // Copyright (C) 2012-2013 the OpenProject Foundation (OPF) // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License version 3. // // OpenProject is a fork of ChiliProject, which is a ...
var constraints = { video: { facingMode: "user" }, audio: false }; var track = null; const cameraView = document.querySelector("#camera--view"), cameraOutput = document.querySelector("#camera--output"), cameraSensor = document.querySelector("#camera--sensor"), cameraTrigger = document.querySelector("#camer...
/* * 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 OtsModel = require('../utils/otsModel'); const adminModel = new OtsModel('admin', [{ name: "pk_user_id", pk: ["user_id"] }]); var get = adminModel.get.bind(adminModel); var del = adminModel.del.bind(adminModel); var add = adminModel.add.bind(adminModel); // var put = adminModel.put.bind(adminModel); var up...
import React from "react"; import * as _ from "lodash"; import models from "../models"; import interpreter from "../interpreter"; import { evaluateObjectProperties } from "../interpreter"; import { calculateStateProjection } from "../reducer"; import { connect } from "react-redux" import Checkbox from "@material-ui/cor...
const constants = require('./constants'); const path = require('path'); const fs = require('fs-extra'); const _ = require('lodash'); const graphQLConfig = require('graphql-config'); const amplifyConfigHelper = require('./amplify-config-helper'); const FILE_EXTENSION_MAP = { javascript: 'js', graphql: 'graphql', ...
var WATCH_STORAGE; (($, chrome) => { WATCH_STORAGE = { Storage: chrome.storage.sync, text: { QUOTA_BYTES_PER_ITEM: 'ウォッチ数の限界に到達しました。ウォッチ出来ません。ウォッチの数を減らして下さい。' }, /** * 第一引数で指定された_item(object)を_tableに追加する。 * @param {object} _item objectを指定します。objectにidは必ず含めて下さい。 * @param {string} _table DBのテーブル名を...
const searchController = require('../../../controllers/search'); module.exports = router => { router.get('/', (req, res) => { searchController.show(req.query.q).then(results => { res.json(results); }) .catch(err => { res.status(err.status); ...
import { TAdapterSubscriptionStatus, TAdapterConfigurationStatus, } from '@flopflip/types'; import React from 'react'; import { render as rtlRender } from '@flopflip/test-utils'; import useAdapterSubscription from './use-adapter-subscription'; const createAdapter = () => ({ getIsConfigurationStatus: jest.fn( ...
/** * Copyright (c) 2006 * Martin Czuchra, Nicolas Peters, Daniel Polak, Willi Tscheschner * * 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 limit...
const Discord = require('discord.js'); const { token, id } = require('./config.json'); global.client = new Discord.Client({ partials: ['MESSAGE', 'CHANNEL', 'REACTION'] }); client.on('ready', () => { client.user.setActivity('mh!help', { type: 'STREAMING', url: 'https://www.twitch.tv/ ' }); require('./command...
'use strict' const la = require('lazy-ass') const is = require('check-more-types') // storage adapter for Cypress E2E testing tool /* global cy, expect, fetch */ la(is.fn(fetch), 'missing fetch') const filename = 'snap-shot.json' let snapshots function loadSnapshots () { return snapshots } function saveSnapshot...
import React from 'react'; import Helmet from 'react-helmet'; import tw from 'twin.macro'; import { Link } from 'gatsby'; import { useAllMarkdownRemarkForPopularList, useSiteMetadata, useCategoriesList } from '../../hooks'; import ImageWrap from '../Image/ImageWrap'; import { SPACER, TEXT_GATSBY_LINK_H3 } from '../Tail...
/* * LiskHQ/lisk-service * Copyright © 2019 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, ...
/* jshint node:true, mocha: true*/ /** * @author kecso / https://github.com/kecso */ var testFixture = require('../../_globals.js'); describe('corediff apply', function () { 'use strict'; var gmeConfig = testFixture.getGmeConfig(), projectName = 'coreDiffApply', projectId = testFixture.proj...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const implSymbol = utils.implSymbol; const ctorRegistrySymbol = utils.ctorRegistrySymbol; const interfaceName = "NodeList"; exports.is = value => { return utils.isObject(value) && utils.hasOwn(value, implSymbol) ...
// 'blockchain.block.get_chunk' // 'express-async-router' const router = require('express-async-router').AsyncRouter(); // 'blockchain.address.get_balance' router.get('/balance', async (req, res) => { const address = req.query['address']; const json = await req.locals.ecl.blockchainAddress_getBalance(address)...
const BikeRent = artifacts.require("BikeRent"); module.exports = function(deployer){ deployer.deploy(BikeRent); }
/** * Created by WYH on 17/2/9. */ $(document).ready(function () { var editor = new wangEditor('editor'); editor.create(); bindNewArticleClickEvent(editor); }); function bindNewArticleClickEvent(editor) { bindSubmitButtonClick(editor); } function bindSubmitButtonClick(editor) { $(".submit_butt...
import React, { useState } from 'react'; import { mnet } from 'mnet-ui-base/themes'; import { Box, Button, MnetUIBase, Paragraph, Spinner } from 'mnet-ui-base'; const PageContent = () => { // 'show=true' will trigger the announcement const [show, setShow] = useState(false); return ( <Box align="center" gap=...
//# sourceMappingURL=runtime-main.6a47c489.js.map
<script>document.getElementById('year').innerHTML = Date()</script>
console.log('Olá Mundo!'); document.getElementById('btn-submit').addEventListener('click', e => { console.log('O botão foi clicado!'); }) document.getElementById('form-login').addEventListener('mouseenter', e => { console.log('O mouse está sobre o formulário.'); }); document.querySelector('#form-login').a...
import Tenant from './tenant'; describe('tenant', () => { it('returns the id from the query args as id', async () => { const testId = 'test-id'; const id = await Tenant.id({}, {id: testId}); expect(id).toBe(testId); }); });
/* eslint-disable linebreak-style */ const CONTENT_WS_PORT = 8181; const WebSocket = require('ws'); const moment = require('moment'); const contentWS = new WebSocket(`ws://127.0.0.1:${CONTENT_WS_PORT}`); const path = require('path'); const fs = require('fs'); function getRootPath() { const n = __dirname.split(path.s...
requirejs.config({ paths: { 'jquery' : 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min', 'd3' : '/static/js/d3.v3.min', 'topojson': '/static/js/topojson.v1', 'when' : '/static/js/when', 'mvi' : '/static/js/mvi' } });
var app = require('app'); // Module to control application life. var amqp = require('amqp'); var ipc = require('ipc'); var util = require('util'); var BrowserWindow = require('browser-window'); // Module to create native browser window. // Report crashes to our server. require('crash-reporter').start(); // Keep a ...
/// <reference path="../typings/PlayFab/PlayFabServer.d.ts" /> var PlayFab = require("./PlayFab.js"); exports.settings = PlayFab.settings; exports.AddCharacterVirtualCurrency = function (request, callback) { if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.DeveloperSecretKey set...
/************************************************************* * * MathJax/jax/output/HTML-CSS/optable/MiscTechnical.js * * Copyright (c) 2010-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
import styled from 'styled-components'; export const BarChartWrapper = styled.div` width: 100%; max-width: 190px; `;
function map() { emit({ city: this.city, house_type: this.house_type, unique_id: this.unique_id, block_id: this.block_id, block_name: this.block_name }, { view_count: this.view_count, update_date: this.date }); }
// SCM of range function smallestCommons(arr) { if (arr[0]>arr[1]) { minN=arr[1]; maxN=arr[0]; } else { minN=arr[0]; maxN=arr[1]; } var SCMFound = false; var test=maxN; while (SCMFound===false) { var thisTest=true; for (var n=minN;n<=maxN;n...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
$(document).ready(function() { $('#team-update-modal').modal(); $('.delete_update').bind('ajax:success', function() { $(this).closest('tr').fadeOut(); }); }); $(function() { var startDate; var endDate; var selectCurrentWeek = function() { window.setTimeout(function () { $('.team...
/* jasmine-fixture Makes injecting HTML snippets into the DOM easy & clean! site: https://github.com/searls/jasmine-fixture */ (function() { var createHTMLBlock; (function($) { var jasmineFixture, originalAffix, originalInject, originalJasmineFixture; originalJasmineFixture = window.jasmineFixture; or...
var fs_8cpp = [ [ "fopen", "fs_8cpp.html#a19c84cec4ae9accfbc88a83e48f7ee92", null ], [ "freopen", "fs_8cpp.html#a48c28561938a368ff7dbbf4515920f50", null ] ];
require("source-map-support").install(); module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache ...
const validators = { initWith: function (monaco) { const dummyDiv = document.createElement('div'); const dummyEditorInstance = monaco.editor.create(dummyDiv); const editorInstanceConstructorName = dummyEditorInstance.constructor.name; const editorModelConstructorName = dummyEditorInstance.getModel().c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const winston_1 = require("winston"); // Configure the Winston logger. For the complete documentation see https://github.com/winstonjs/winston const logger = winston_1.createLogger({ // To see more detailed errors, change this to 'debug' ...
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Cell } from 'react-md'; import './stylesheets/Component.css'; /** * A instance of an active game, saves: * 1 : Amount of players * 2 : Code needed to enter the game * 3 : IP, not sure if it should be displayed * */ class InstanceItem ...
import { ADD_POST, ADD_POSTS, DELETE_POST, EDIT_POST, THUMB_UP_COMMENT, THUMB_DOWN_COMMENT } from './PostActions'; // Initial State const initialState = { data: [] }; const PostReducer = (state = initialState, action) => { switch (action.type) { case ADD_POST : return { data: [action.post, ...stat...
/*! * Copyright 2015 Drifty Co. * http://drifty.com/ * * Ionic, v1.3.1 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @benjsperry, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */
// implementation of AR-Experience (aka "World") var World = { // you may request new data from server periodically, however: in this sample data is only requested once isRequestingData: false, // true once data was fetched initiallyLoadedData: false, // different POI-Marker assets markerDrawable_idle: null, m...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import * as tslib_1 from "tslib"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license ...
// @flow import React, { Component } from 'react'; import { Draggable } from 'react-beautiful-dnd'; import { RankableTableBodyRow } from '../../styled/rankable/TableRow'; import type { HeadType, RowType } from '../../types'; import withDimensions, { type WithDimensionsProps, } from '../../hoc/withDimensions'; import ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.lset = lset; function lset(key, i, value) { if (!this.data.has(key)) { throw new Error('no such key'); } if (this.data.has(key) && !(this.data.get(key) instanceof Array)) { throw new Error('Key ' + key + ' does not co...
import React, { Component } from 'react'; import "./feature2.css" class Feature2 extends Component { render() { return ( <div className="feature2">Feature2 </div> )} } export default Feature2;
const { toBytes32 } = require('../../..'); const { connectContract } = require('./connectContract'); async function implementsMultiCollateral({ network, deploymentPath }) { const AddressResolver = await connectContract({ network, deploymentPath, contractName: 'AddressResolver', }); const collateralManager = ...
import SuccessMessage from './SuccessMessage.js'; export default class SetupSuccessMessage extends SuccessMessage { constructor(options) { super(options); this.name = options.name; this.type = 'setupSuccessMessage'; } };
/** * @license * Copyright 2018 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.dao', name: 'Relationship', implements: [{ path: 'foam.mlang.Expressions', java: false }], documentation: 'An Axiom for defining Relationships between models.'...
window.onload = function() { $("#cy").cytoscape({ layout: { name: 'arbor', liveUpdate: true, maxSimulationTime: 8000, ungrabifyWhileSimulating: true, gravity: true, fit: true, stiffness: 80, repulsion: 10000 ...
// @flow import * as ACTIONS from 'constants/action_types'; import REWARDS from 'rewards'; import { Lbryio } from 'lbryinc'; import { doClaimRewardType } from 'redux/actions/rewards'; import { parseURI } from 'util/lbryURI'; import { doAlertWaitingForSync } from 'redux/actions/app'; import { doToast } from 'redux/actio...
const withPWA = require('next-pwa'); const config = { publicRuntimeConfig: { // Will be available on both server and client CONTENTSTACK_API_KEY: process.env.CONTENTSTACK_API_KEY, CONTENTSTACK_DELIVERY_TOKEN: process.env.CONTENTSTACK_DELIVERY_TOKEN, CONTENTSTACK_ENVIRONMENT: process.env.CONTENTSTACK_...
import React from 'react' import {connect} from 'react-redux' import ReactLoading from 'react-loading' import {withRouter} from 'react-router-dom' import socket from '../socket' import {setRoute, setLobbyWaitingText} from '../store' import {ShareLobby, LobbyPlayers, Instructions} from './' class Lobby extends React.Co...
/* AUTOMATICALLY GENERATED FROM @pokemon-showdown/sets, DO NOT EDIT! */
async function newFormHandler(event) { event.preventDefault(); const title = document.querySelector('input[name="post-title"]').value; const post_url = document.querySelector('input[name="post-url"]').value; const response = await fetch('/api/posts', { method: 'POST', body: JSON.string...
import React from "react"; // reactstrap components import { Container, Row, Col } from "reactstrap"; // core components function SegmentTitle(props) { return ( <> <div className="section"> <Container className="text-center"> <Row className="justify-content-md-center"> <Col ...
require('./bootstrap'); window.Vue = require('vue') import router from './router' import ViewUI from 'view-design'; import store from './store'; import 'view-design/dist/styles/iview.css'; Vue.use(ViewUI); Vue.component('mainapp',require('./components/mainapp').default) import common from './common' import jsonToHtml f...
/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/mast...
import createSagaMiddleware from 'redux-saga'; import createStore from './createStore'; import { persistStore } from 'redux-persist'; import rootReducer from './modules/rootReducer'; import rootSaga from './modules/rootSaga'; import persistReducers from './persistReducers'; const sagaMonitor = process.env.NODE_ENV ...
export const isValidWidthUnit = (val) => ['px', 'rem', 'em', 'vw', '%', 'vmin', 'vmax'].some(unit => val.endsWith(unit), ) export const isValidComponentSize = (val) => ['', 'large', 'medium', 'small', 'mini'].includes(val)
/** * Module dependencies */ var buildOutletFunction = require('../helpers/build-outlet-function'); /** * 403 (Forbidden) Handler * * Usage: * return res.forbidden(); * return res.forbidden(err); * return res.forbidden(err, 'some/specific/forbidden/view'); * * e.g.: * ``` * return res.forbidden('Access ...
// 如果没有通过拦截器配置域名的话,可以在这里写上完整的URL(加上域名部分) let hotSearchUrl = '/ebapi/store_api/hot_search'; let indexUrl = '/ebapi/public_api/index'; // 此处第二个参数vm,就是我们在页面使用的this,你可以通过vm获取vuex等操作,更多内容详见uView对拦截器的介绍部分: // https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F const install = (V...
import { httpFetch } from '../../request' import { weapi } from './utils/crypto' import { dateFormat2 } from '../..' let cursorTools = { cache: {}, getCursor(id, page, limit) { let cacheData = this.cache[id] if (!cacheData) cacheData = this.cache[id] = {} let orderType let cursor let offset ...
import React from 'react'; import PropTypes from 'prop-types'; import InputLabel from '@material-ui/core/InputLabel'; import Grid from '@material-ui/core/Grid'; import FormHelperText from '@material-ui/core/FormHelperText'; import FormGroup from '@material-ui/core/FormGroup'; import {SQFormCheckboxGroupItem, useSQFormC...
const { describe, it } = require('mocha'); const { expect } = require('chai'); const { SodiumPlus, X25519SecretKey, X25519PublicKey } = require('../index'); let sodium; describe('Backend', () => { it('crypto_box_keypair_from_secretkey_and_publickey', async function () { if (!sodium) sodium = await SodiumPl...
const snakeCase = (text)=>text.toLowerCase().replace(/[^a-zA-Z0-9\s]/g, '').replace(/\s/g, '_'); const titleCase = (text)=>text.replace(/\w\S*/g, (txt)=>txt.charAt(0).toUpperCase()+txt.substr(1).toLowerCase()); const kebobCase = (text)=>text.toLowerCase().replace(/[^\w]+/g, '-'); const camelCase = (text)=>text.replace(...
let handler = async (m, { conn }) => { let caption = `hanya bisa di gunakan di chat pribadi karna demi kepribadian anda` conn.sendButton( m.chat, caption, `©️ zifabotz`, `>>Oky ngab<<`, `.👍`, m) } handler.customPrefix = /^(daftar|daftar|daftar)/i handler.command = new RegExp module.exports = handler
/** * Conatin all the defualt middleware definition */ const { $M, Print, lmap } = require('lesscode-fp') const { v1: uuidv1 } = require('uuid') const cors = require('cors') const bodyParser = require('body-parser') const ua = require('useragent') const jwt = require('jwt-simple') const dotenv = require('dotenv').con...
/* * Wallet API * * OpenAPI spec version: 1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.15 * * Do not edit the class manually. * */ ;(function(root, factory) { if (typeof define ===...
import FessJQuery from 'jquery'; (function($){ FessJQuery.fn.suggestor12 = function(setting) { var $boxElement; var $textArea; var inputText = ""; var isFocusList = false; var listNum = 0; var listSelNum = 0; var isMouseHover = false; var started = false; var interval = 5; var settingMinTerm = 1; var set...
sap.ui.define([ "sap/ui/core/mvc/XMLView" ], function (XMLView) { "use strict"; XMLView.create({ viewName: "c1.app.view.App" }).then(function (oView) { oView.placeAt("content"); }); });
// dependencies import jwt from 'jsonwebtoken'; import config from 'config'; // testing tools import sinon from 'sinon'; import { expect } from 'chai'; // what's being tested import * as auth from '../server/lib/auth'; describe('authlib', () => { it('should generate valid tokens', () => { // Given that time `D...
import React, { Component, PropTypes } from 'react'; import { Link } from 'react-router'; import FontAwesome from 'react-fontawesome'; import { getLocation, cutString } from 'linkify/utils'; import './Link.scss'; export default class LinkItem extends Component { static propTypes = { id: PropTypes.number, o...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var core = require('@mantine/core'); var data = require('./data.js'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; } var React__default = /*#__PU...
import React from "react"; import { Link } from "react-router-dom"; export default function _404Page() { document.title = "404 - Page not found."; return ( <div className="grid justify-items-center items-center h-screen"> <div className="sm:flex"> <h1 className="text-indigo-500 font-bold text-7xl...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:steps', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var controller = this.subject(); assert.ok(controller); });
const map = new Map(); map.set('name', 'John'); map.set('age', 25); console.log(map.get('name')); console.log(map.get('sex'));
(window.webpackJsonp=window.webpackJsonp||[]).push([[370],{4412:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(12),n(2),n(4),n(8),n(3),n(10);var r=n(0),o=n.n(r);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.proto...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hexToBuffer = exports.bufferToHex = exports.bufferToBigNumberString = exports.bigNumberToBuffer = void 0; var _browserifyBignum = _interopRequireDefault(require("browserify-bignum")); function _interopRequireDefault(obj) { return ...
const scanner = require('i18next-scanner') const vfs = require('vinyl-fs') const option = require('../i18next.option.js') // this script is run by npm run build-translation and generate i18next.scanner/**/*.json // -------------------- // 2018/07/27 - currently, last version is 2.6.5 but a bug is spaming log with er...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EthereumProviderError = exports.EthereumRpcError = void 0; const fast_safe_stringify_1 = require("fast-safe-stringify"); /** * Error subclass implementing JSON RPC 2.0 errors and Ethereum RPC errors * per EIP-1474. * Permits any int...
// // xtour-client // // Version: 2.25 // Build: 1.0.56236 function XTourClient(requestURL, activeRequestLimit) { "use strict"; if (typeof activeRequestLimit !== "number" || activeRequestLimit <= 0) { activeRequestLimit = Number.MAX_VALUE; } requestURL = findRequestURL(requestURL); var a...
define([ 'knockout', 'text!./explore-evidence.html', 'components/Component', 'utils/AutoBind', 'utils/CommonUtils', 'atlas-state', ], function ( ko, view, Component, AutoBind, commonUtils, sharedState, ) { class ExploreEvidence extends AutoBind(Component) { constructor(params) { super(params); ...
// @flow import { lg } from '~/theme/variables' export const styles = () => ({ container: { marginTop: lg, }, row: { cursor: 'pointer', '&:hover': { backgroundColor: '#fff3e2', }, }, expandedRow: { backgroundColor: '#fff3e2', }, extendedTxContainer: { padding: 0, '&:last...
/** @jest-environment ./packages/test/harness/src/host/jest/WebDriverEnvironment.js */ describe('scroll to end button', () => { test('should show and hide properly', () => runHTML('scrollToEndButton.visibility.html')); });
'use strict' const crypto = require('crypto') const https = require('https') const { test } = require('tap') const { Client, buildConnector } = require('..') const pem = require('https-pem') const caFingerprint = getFingerprint(pem.cert.toString() .split('\n') .slice(1, -1) .map(line => line.trim()) .join('')...
var webpack = require('webpack') var WebpackDevServer = require('webpack-dev-server') var config = require('./webpack.dev.config') new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, inline: true, historyApiFallback: true, watchOptions: { aggregateTimeout: 300, po...
import express from 'express'; import GXChainService from '../services/GXChainService'; import LevelDBService from '../services/LevelDBService'; import HoldrankService from '../services/HoldrankService'; import jdenticon from 'jdenticon'; import crypto from 'crypto'; import IPFSService from '../services/IPFSService'; ...
const express = require('express'); const fs = require('fs'); const path = require('path'); const { imagesRoute } = require('../routes/routes'); const options = require('./options'); const errHandler = require('../middleware/errorHandler'); let fileList = []; let imageRouter = express.Router({caseSensitive: false}); ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.10/esri/copyright.txt for details. //>>built define({toggle:"\u062a\u0628\u062f\u064a\u0644 \u062e\u0631\u064a\u0637\u0629 \u0627\u0644\u0623\u0633\u0627\u0633"});
import chai from 'chai'; import chaiHttp from 'chai-http'; import server from '../server/app'; const { expect } = chai; chai.use(chaiHttp); const url = '/'; describe('Test for base url', () => { it('should return a status code of 200', (done) => { chai.request(server) .get(url) .end((error, respon...