text
stringlengths
2
1.04M
import safeString from '../helpers/strings/safeString'; export default (sequelize, DataTypes) => { const Faction = sequelize.define('Faction', { id: { allowNull: false, primaryKey: true, type: DataTypes.INTEGER, autoIncrement: true, }, name: { allowNull: false, type: D...
//we need hardhat environment// const hre = require('hardhat') async function main(){ // Hardhat always runs the compile task when running scripts with its command // line interface. // // If this script is run directly using `node` you may want to call compile // manually to make sure everything ...
/** * Copyright 2019 The AMP HTML 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 require...
export default { email: 'john@snow.com', password: '1qwertyuiopQ', userType: 'student', };
import PropTypes from 'prop-types'; export const groupProps = { description: PropTypes.string.isRequired, id: PropTypes.string.isRequired, }; export const helpMenuProps = { id: PropTypes.string.isRequired, title: PropTypes.string.isRequired, type: PropTypes.string.isRequired, visible: PropTypes.bool, hr...
define("dijit/layout/LinkPane", [ "./ContentPane", "../_TemplatedMixin", "dojo/_base/declare" // declare ], function(ContentPane, _TemplatedMixin, declare){ /*===== var _TemplatedMixin = dijit._TemplatedMixin; var ContentPane = dijit.layout.ContentPane; =====*/ // module: // dijit/layout/LinkPane // summary:...
module.exports = { description: 'Deoptimize when __proto__ is used' };
navigator.getUserMedia = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); function getUserMedia(constaints, onSuccess, onError) { navigator.getUserMedia(constaints, onSuccess, onError); } function isInnerCandidate(candidate){ var innerIP = /192.[...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; const fs = require('fs'); module.exports = function readPodfile(podfilePath) { const podContent = fs.rea...
function _defineProperties(target, props) { for(var i = 0; i < props.length; i++){ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descript...
const modifier = (text) => { let modifiedText = text //either put your code here, either call another function // do nothing if the function isn't defined if (typeof myInputMod === "function") modifiedText = myInputMod(modifiedText) //end of the part where you put your code // Yo...
const defaultConfig = require('tailwindcss/defaultConfig'); const plugin = require('../src/index'); module.exports = { ...defaultConfig, plugins: [plugin()], };
import React from 'react' class organDetail extends React.Component { constructor(props){ super(props) } render(){ return ( <div>detail</div> ) } } export default organDetail
import { createMuiTheme, colors } from '@material-ui/core'; import shadows from './shadows'; import typography from './typography'; const theme = createMuiTheme({ palette: { background: { dark: '#F4F6F8', light: colors.blue[100], default: colors.common.white, paper: colors.common.white ...
const settings = { "async": true, "crossDomain": true, "url": "http://mockbin.com/har", "method": "POST", "headers": { "content-type": "application/json" }, "processData": false, "data": "{\n \"foo\": \"bar\"\n}" }; $.ajax(settings).done(function (response) { console.log(response); });
"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. */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? tar...
/** * @author Charlie Calvert */ function myTests() { 'use strict'; test('MyFirstTest', function() { ok(true); }); test('MySecondTest', function() { ok(1 === 1); }); test('TestAdd', function() { var app = new App(); var result = app.add(2, 3); var ex...
import { gql } from "apollo-server-express"; export default gql` type File { id: ID! name: String type: String # path: String } extend type Query { getFiles: [File] } extend type Mutation { uploadFile(file: Upload!): File } `;
/* * The AnVIL * https://www.anvilproject.org * * The AnVIL header component. */ // Core dependencies import {Link} from "gatsby"; import React from "react"; // App dependencies import ClickHandler from "../click-handler/click-handler"; import * as HeaderService from "../../utils/header.service"; // Images impo...
export function CreateVerticalSplitter (splitterDiv, callbacks) { let originalPosition = null; let mouseMoveHandler = (ev) => { ev.preventDefault (); const diff = ev.clientX - originalPosition; callbacks.onSplit (diff); }; let mouseUpHandler = () => { document.removeEve...
const fs = require('fs'); const config = require('./config'); const date = config.date; const folder = `../2_result/${date}_after/`; const outerFolder = `../dm_location`; const locationName = config.location const minLatitude = config.minLatitude; const maxLatitude = config.maxLatitude; const minLongitude = config.minL...
/* eslint-disable react/prop-types */ import React from 'react'; import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import {withTheme} from 'react-native-paper'; import {useTranslation} from 'react-i18next'; import {useDispatch, useSelector} from 'react-redux'; import {GoogleSignin, statusCodes} fr...
var weixin = require('../weixin.js'); function AuthorizeManager() { this.pageUrl = '/pages/_authorize/_authorize'; }; AuthorizeManager.scopes = { userInfo: 'scope.userInfo' }; AuthorizeManager.prototype = { authorize: function (scope, callback) { var me = this; me._isAuthorized(scope, function (authorized) ...
import { createTeam } from '../data.js'; export default async function(){ this.partials = { header: await this.load('./templates/common/header.hbs'), footer: await this.load('./templates/common/footer.hbs'), createForm: await this.load('./templates/create/createForm.hbs'), ...
import { gql } from "@apollo/client"; export const GET_ALL_PROVIDERS = gql` query GetAllProviders { allProviders { _id providerName address location { latitude longitude } slug updatedAt } } `;
import { combineReducers } from 'redux'; import { createResponsiveStateReducer } from 'redux-responsive'; import { routerReducer } from 'react-router-redux'; import counter from './counter'; export default combineReducers({ router: routerReducer, browser: createResponsiveStateReducer(null, { infinity: 'veryBig...
var Events = require('./events.js'); var Logger = require('./logger.js'); var Config = require('./config.js'); var DeployManager = require('../contracts/deploy_manager.js'); var ABIGenerator = require('../contracts/abi.js'); var Dashboard = require('../dashboard/dashboard.js'); var ServicesMonitor = require('./service...
(function () { 'use strict'; angular .module('app') .controller('TriviaController', TriviaController); TriviaController.$inject = ['TriviaService', '$location', 'FlashService']; function TriviaController(TriviaService, $location, FlashService) { var vm = this; vm.allTr...
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'eval', context: path.resolve('./frontend'), entry: { javascriptt: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', 'react-hot-loader/patch', 'whatwg-fetch', ...
/*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $...
const axios = require('axios'); const enabledBots = []; enabledBots.push({ name: 'SimpleBot', urlBase: undefined, authorizationKey: undefined, }); if (process.env.BOT_DEEPROLE_API_KEY) { enabledBots.push({ name: 'DeepRole', urlBase: 'https://deeprole-proavalon.herokuapp.com/deeprole', ...
'use strict'; const nacos = require('./lib/nacos'); module.exports = app => { if (app.config.nacos.app) { nacos(app); } };
// @flow strict strict export { default } from './Tags';
}if(document.documentElement.scrollWidth<=window.outerWidth){return true}}}}if(layer.style.msTouchAction==="none"||layer.style.touchAction==="manipulation"){return true}firefoxVersion=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(firefoxVersion>=27){metaViewport=document.querySelector("meta[name=viewport...
// flow-typed signature: 22f41e7777ffa0fed6ae5e6f72cf0586 // flow-typed version: <<STUB>>/postcss-import_v^12.0.0/flow_v0.81.0 /** * This is an autogenerated libdef stub for: * * 'postcss-import' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work ...
// 相似歌曲 module.exports = (query, request) => { const data = { songid: query.id, limit: query.limit || 50, offset: query.offset || 0 } return request( 'POST', `https://music.163.com/weapi/v1/discovery/simiSong`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} ) }
/** * This class facilitates the tracking of user input, such as mouse clicks * and button presses. * @author alvin.lin.dev@gmail.com (Alvin Lin) */ /** * Empty constructor for the Input object. */ function Input() { throw new Error('Input should not be instantiated!'); } /** @type {boolean} */ Input.LEFT_CLI...
import Web3 from "web3"; import fetch from "node-fetch" import states from "../libes/states"; export function parseFeed(msg) { const data = msg.Body const text = data.toString().trim(); let json_parsed = false try { json_parsed = JSON.parse(text) } catch (e) { console.log("login fee...
"use strict"; var date = 12; var money = 100; var ob = { 3: 0.12/12, 6: 0.16/12, 12: 0.18/12 }; function calDep(datePar, moneyPar, obPar) { for (var i in ob) { if (i == datePar) { var sum = moneyPar; for (var j = 1; j <= datePar; j++) { sum += sum * obPar[i]; console.log('month...
"use strict"; /* Sample without replacement from an array */ function getRandomSubarray(arr, size) { var shuffled = arr.slice(0), i = arr.length, temp, index; while (i--) { index = Math.floor((i + 1) * Math.random()); temp = shuffled[index]; shuffled[index] = shuffled[i]; shuffl...
/* eslint-disable */ // rename this file from _test_[name] to test_[name] to activate // and remove above this line QUnit.test("test: FPO Gram Panchayat", function (assert) { let done = assert.async(); // number of asserts assert.expect(1); frappe.run_serially([ // insert a new FPO Gram Panchayat () => frapp...
const path = require('path'); const { FREE_PLAN_ID } = require('../constants'); /** * Required Unique Service Name */ exports.name = 'ms-payments'; /** * Set to true if you want debug options * @type {boolean} */ exports.debug = process.env.NODE_ENV !== 'production'; /** * Logger plugin configuration. * @type...
'use strict'; // Adapted from https://gist.github.com/paulirish/1579671 which derived from // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill by Erik Möller. // Fixes fro...
webpanda.language ({ // compiler 'compiler-0001' : '错误命令', 'compiler-0002' : '模板内容', 'compiler-0003' : '警告命令', 'compiler-0004' : '模板内容', 'compiler-0005' : '调试标记', // parse 'parse-0001' : '“${1}” 命令不能在同一个标签中同时存在或存在多个!', 'parse-0002' : '“${1}” 命令不能在同一个标签中存在多个!', 'parse-0003' : '“...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ export default [ [ ['mn', 'o', 'm', 'a', 'n'], ['middernag', 'die oggend', 'die middag', 'die aan...
var migrations = require('sise-cweb-data') var api = require('../src/index.js') var test = require('sise-cweb-restful-api-tests').base test(migrations, api)
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; import type {LayoutEvent, PressEvent, TextLayoutEvent} from 'CoreEventTypes'; i...
const express = require('express'); const bodyParser = require('body-parser'); const api = require('./notifications.js'); function debug (...args) { if (process.env.DEBUG) { console.debug(...args); } } const router = express.Router(); router.get('/', (req, res, next) => { const msg = api.next(); if (!msg...
import { assertionsEnabled, isBlank } from 'angular2/src/facade/lang'; import { BaseException } from 'angular2/src/facade/exceptions'; import { ListWrapper } from 'angular2/src/facade/collection'; import { AbstractChangeDetector } from './abstract_change_detector'; import { ChangeDetectionUtil } from './change_detectio...
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.alert"]); angular.module("ui.bootstrap.tpls", ["template/alert/alert.html"]); angular.module("ui.bootstrap.alert", []).directive('alert', function () { return { restrict:'EA', templateUrl:'template/alert/alert.html', transclude:true, r...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
export const initialSystemControls = { "ioopt": 3, "maxit": 100, "weapon": 1, "nmerit": 1, "fix_wt": 1.5, "con_wt": 1.0, "zero_wt": 10.0, "viol_wt": 1.0, "mfn_wt": 0.01, "objmin": 0.00005, "del": 1.0, "delmin": 0.0001, ...
/** * @param {number} N */ var ExamRoom = function(N) { this.n = N this.hasSeated = 0 this.seats = {} // 优化点1 -> map代替数组 }; /** * @return {number} */ ExamRoom.prototype.seat = function() { // 无座 if (this.hasSeated === this.n) { return null } // 第一个座 if (this.hasSeated === 0...
/* eslint-env mocha */ const CountSort = require('../../../src').algorithms.sort.CountSort; const assert = require('assert'); describe('Count Sort', () => { it('should have no data when empty initialization', () => { const inst = new CountSort(); assert.equal(inst.size, 0); assert.deepEqual(inst.unsorted...
define("ace/snippets/batchfile",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="batchfile"}); (function() { window.require(["ace/snippets/batchfile"], function(m) { if (typeof module == "object" && typeof exports == ...
"use strict" //Codigo del Cuadrado const perimetroCuadrado = (lado) => lado * 4; const areaCuadrado = (lado) => lado * lado; //Código del Triángulo const perimetroTriangulo = (lado1,lado2,base)=> lado1 + lado2 + base; const areaTriangulo = (base,altura)=> (base + altura) / 2; //Código del Circulo //Diametro cons...
class Boat { constructor(x, y, width, height, boatPos) { this.body = Bodies.rectangle(x, y, width, height); this.width = width; this.height = height; this.image = loadImage("./assets/boat.png"); this.boatPosition = boatPos; World.add(world, this.body); } remove(index){ setTimeout(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var IsolateModule = (function () { function IsolateModule() { this.elementsByFullScope = new Map(); this.delegatorsByFullScope = new Map(); this.fullScopesBeingUpdated = []; this.vnodesBeingRemoved = []; ...
function parse (str) { return str .replace(/&lt;/g, '<') .replace(/&gt;/g, '>'); }
module.exports = (req, res) => { res.end('hello'); };
describe("less.js javascript disabled error tests", function() { testLessErrorsInDocument(); });
/*! showdown 25-11-2016 */ //# sourceMappingURL=showdown.min.js.map
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _child_process = require("child_process"); var _fsExtra = _interopRequireDefault(require("fs-extra")); var _path = _interopRequireDefault(require("path")); var _split = _interopRequireDefault(require("split...
/** * Copyright 2017 The AMP HTML 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 require...
// This file is the factory for the GUI part..bundleRenderer.renderToStream // The imporant thing here is the createElement async method // This file must be an es module in order to be loaded with the SDK (with dynamic imports) import QuadrafuzzHTMLElement from './Gui.js'; export { QuadrafuzzHTMLElement }; /** * A ...
const fs = require('fs'); const path = require('path'); const {setupBuildTest, readFiles} = require('../../test-utils'); const cwd = path.join(__dirname, 'build'); let files = {}; describe('config: buildOptions.metaUrlPath', () => { beforeAll(() => { setupBuildTest(__dirname); files = readFiles(cwd); });...
'use strict'; // Media controller angular.module('media').controller('MediaController', ['$scope', '$stateParams', '$location', 'Authentication', 'Media', function ($scope, $stateParams, $location, Authentication, Media) { $scope.authentication = Authentication; var isAdmin = $scope.authentication.user.role...
const isTesting = process.env.TESTING === 'true'; module.exports = { presets: [ [ '@babel/preset-env', { debug: !isTesting, // Don't debug per file (jest) :') }, ], '@babel/preset-typescript', ], plugins: [ '@babel/plugin-syntax-dynamic-import', 'babel-plugin-transform-inline-environment-vari...
export const source = 'Vehicle Complaints'; export const queryConfig = { tz: 'UTC', time:{ timeField: 'failtimestamp_real', from: '+1995-01-01 08:00:00.000', to: '+2014-07-10 07:00:00.000' }, filters: [], groups: [ { name: 'year_string', limit:...
'use strict'; module.exports = [ { regexp: /^(TINYINT|BOOLEAN|BOOL|SMALLINT|MEDIUMINT|INTEGER|INT|BIGINT)[0-9()\s]*(SIGNED|UNSIGNED|ZEROFILL)?$/i, f: result => { let [, type, attr = ''] = result; type = type.toUpperCase(); attr = attr.toUpperCase(); ...
/* global window:true, document:true */ import React from 'react'; import {mergeRight, once} from 'ramda'; import PropTypes from 'prop-types'; import * as styles from './styles/styles.js'; import * as constants from './constants/constants.js'; /* eslint-disable-next-line no-console */ const logWarningOnce = once(conso...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import * as actions from '../../actions'; import InfoBox from '../infoBox'; import SupportRequestContent from './supportRequest_content'; import addHeaderNav from '../HOC/addHeaderNav'; class ...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'bidi', 'ms', { ltr: 'Text direction from left to right', // MISSING rtl: 'Text direction from right to left' // MISSING } );
import styled from "styled-components" import Image from "gatsby-image" //Assets import variables from "../../assets/styles/variables" import { breakpoints } from "../../assets/styles/breakpoints" // spring: import { animated as a } from "react-spring" const Container = styled.section` background: whitesmoke; po...
chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({ url: "https://blockmodo.com/home/ZRX" }, function(tab) { }); });
'use strict'; var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _createClass2 = require('babel-runtime/helpers/createClass'); var _createClass3 = _interopRequireDefault(_createClass2); function _interopRequireDefault(obj) { ...
import React, { Component } from 'react'; import {Link,Route,Switch} from 'react-router-dom'; import Home from './Home'; import About from './About'; import Category from './category/Index'; import Error404 from './Error404'; class Header extends Component { render() { return ( <...
mergeInto(LibraryManager.library, { $foreignCounter: 0, foreignFunctionThatTakesThreeParameters__deps: ['$foreignCounter'], foreignFunctionThatTakesThreeParameters: function(a, b, c) { foreignCounter += a + b + c; return foreignCounter; } });
import Container from 'nyc/Container' import ReplaceTokens from 'nyc/ReplaceTokens' import Share from 'nyc/Share' const manifest = '{"name": "App Name", "description": "App Description"}' let target beforeEach(() => { $.resetMocks() fetch.resetMocks() fetch.mockResponseOnce(manifest) target = $('<div></div>')...
$(document).ready(function(){ $('.grid-container .select-pagina').change(function(){ window.location.href = $(this).attr('data-url')+'&pagina='+$(this).val(); }); $('.grid-container .bt-limpar-pesquisa').click(function(){ var $form = $(this).closest('form'); $form.find('[name=pe...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('yup')) : typeof define === 'function' && define.amd ? define(['yup'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.yup)); }(this, (function (Yup) { 'us...
module.exports = { "cart_index_1": "商品信息", "cart_index_2": "单价", "cart_index_3": "数量", "cart_index_4": "库存不足", "cart_index_5": "最少起订量为{0}", "cart_index_6": "小计", "cart_index_7": "操作", "cart_index_8": "删除", "cart_index_9": "失效商品", "cart_index_10": "失效", "cart_index_11": "全选", "cart_index_12": "批量删除", "cart_...
// image minification const imagemin = require('imagemin'), plugins = [ require('imagemin-mozjpeg')(), require('imagemin-pngquant')({ strip: true }), require('imagemin-svgo')() ]; module.exports = class { data() { return { permalink: false, eleventyExcludeFromCollections: true ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
import React, { useState, useEffect } from 'react'; import { useGlobalFilter, useSortBy, useTable, usePagination, useBlockLayout, useResizeColumns, useFlexLayout, } from 'react-table'; import Table from 'react-bootstrap/Table'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { f...
'use strict'; var _24 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 24, height: 24, }, content: [ { elem: 'path', attrs: { d: 'M16 28a11 11 0 1 1 11-11 11 11 0 0 1-11 11zm0-20a9 9 0 1 0 9 9 9 9 0 0 0-9-9zM4 7.592l3....
const date = require(`./Time`); const cron = require("node-cron"); const chalk = require("chalk"); const fs = require('fs'); async function dtfd(client) { cron.schedule("30 06 * * *", () => { console.log( chalk.green( `--------------------------------------------------------------------------------...
const { expect } = require('chai'); const { startApiBuilder, stopApiBuilder, requestAsync } = require('./_base'); describe('Endpoints', function () { this.timeout(30000); let server; /** * Start API Builder. */ before(() => { server = startApiBuilder(); return server.started; }); /** * Stop API Build...
/* Template Name: Vallume Author: <a href="https://www.os-templates.com/">OS Templates</a> Author URI: https://www.os-templates.com/ Licence: Free to use under our free template licence terms Licence URI: https://www.os-templates.com/template-terms File: Mobile Menu JS Thanks to: "Convert a Menu to a Dropdown for Smal...
import World from '@world/World'; import Reviver from '@libs/Reviver'; const reviver = new Reviver(); reviver.register(World); export default reviver;
/* * ! ${copyright} */ sap.ui.define([ "sap/ui/fl/apply/_internal/flexState/UI2Personalization/UI2PersonalizationState", "sap/ui/fl/apply/_internal/flexState/FlexState", "sap/ui/fl/apply/_internal/ChangesController" ], function( UI2PersonalizationState, FlexState, ChangesController ) { "use strict"; /** *...
var Plotly = require('plotly.js'); var gd = require('h')('div'); document.body.appendChild(gd); var data = {"data": [{"xaxis": "x1", "yaxis": "y1", "type": "surface", "x": [[2, 2.15459736599116, 2.30270690576858, 2.44448899256451, 2.58010399961122, 2.70971230014093, 2.83347426738592, 2.95155027457841, 3.0...
import { FETCH_FAV } from "../constants/actions"; export default (wishList = [], action) => { switch (action.type) { case FETCH_FAV: return action.payload; default: return wishList; } };
'use strict'; var istanbul = require('browserify-istanbul'); module.exports = function(config) { config.set({ basePath: '../', frameworks: ['jasmine', 'browserify'], preprocessors: { 'app/js/**/*.js': ['browserify', 'coverage'] }, browsers: ['Chrome'], reporters: ['progress', 'covera...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // 0, 2, 10, 30 second delays before reconnect attempts. const DEFAULT_RETRY_DELAYS_IN_MILLISECONDS = [0, 2000, 10000, 30000, null]; /** @private */ export class DefaultReconnectPolic...
module.exports = { configureWebpack: { resolve: { alias: { 'assets': '@/assets', 'common': '@/common', 'components': '@/components', 'network': '@/network', 'views': '@/views', } } } }
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PromotionShippingAction = exports.PromotionOrderAction = exports.PromotionItemAction = exports.PromotionAction = void 0; const pick_1 = require("@vendure/common/lib/pick"); const configurable_operation_1 = require("../../common/configu...
import { createSlice } from "@reduxjs/toolkit" const uiTypes = {login: 'login', registration: 'registration', loggedin: 'loggedin'}; const loginSlice = createSlice({ name: "login", initialState: { cachedUser: { username: "", password: "", email: "", }, uiType: uiTypes.login }, re...
/* * * akshay sharma * fxn769@gmail.com * 5/7/2020 * */ var socialtags = [{ img: "img/github.svg", link: "https://github.com/akshay2211" }, { img: "img/linkedin.svg", link: "https://www.linkedin.com/in/akshay-sharma-80478448/" }, { img: "img/gitlab.svg", link: "https://gitlab.com/akshay...