text
stringlengths
2
1.05M
(function(f){f.parser={auto:true,onComplete:function(e){},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","progressbar","tree","combobox","combotree","combogrid","numberbox","validatebox","searchbox","numberspinner","timespinner","calendar","datebox","d...
import axios from "axios"; const myaxios = axios.create({ baseURL: "http://127.0.0.1:8000/api/v1/", }); export default myaxios;
import { Link } from "react-router-dom"; import { dateToRelativeTime } from "../helpers/date"; import UserAvatar from "./UserAvatar"; import { useAuth } from "../hooks/useAuth"; const Comment = ({ data = {}, deleteComment }) => { const { user } = useAuth(); const handleDelete = async () => { try { const ...
const server = require('./server'); const keys = require('./keys.json'); // Initialize express server api server.listen(keys.port, () => console.log(`listening on port ${keys.port} ...`));
var http = require("http"), url = require("url"), fs = require("fs"), gracefulFs = require("graceful-fs"), fsExtra = require("fs-extra"), originalFs = require("original-fs"); var server = http.createServer(function(req, res) { var path = url.parse(req.url, true).query.path; fs.readFileSync(path); // NOT...
/*global describe, it, expect, example, before, after, beforeEach, afterEach, mocha, sinon*/ 'use strict'; var assert = require('chai').assert; var $ = require('jquery'); var faker = require('faker'); var utils = require('./utils'); var profile = require('../profile'); // Add sinon asserts to chai.assert, so we can d...
/** Detect free variable `global` from Node.js. 检测Node.js中的自由变量`global` */ const freeGlobal = typeof global === 'object' && global !== null && global.Object === Object && global export default freeGlobal
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Card, CardMedia, CardTitle } from 'material-ui/Card'; import history from '../../history'; import s from './Lesson.css'; class Lesson extends React.Component { static propTypes = {...
import InsightsConfigWarning from 'ee/insights/components/insights_config_warning.vue'; import { shallowMount } from '@vue/test-utils'; describe('Insights config warning component', () => { const image = 'illustrations/monitoring/getting_started.svg'; const title = 'There are no charts configured for this page'; ...
import React, { Component } from 'react'; import { showModal } from 'react-redux-modal-provider'; import ExampleModal from './exampleModal'; class App extends Component { state = { message: 'Pass me to the modal' } render() { return ( <div> <p> React Modal Provider App <...
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { BrowserRouter, Link, Route } from 'react-router-dom'; const NavLink = ({ className, classNameActive, classNameHasActiveChild, active, hasActiveChild, to, externalLink, hasSubMenu, toggleSubMen...
/** * 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. * * strict * @format */ "use strict"; function _toConsumableArray(arr) { return ( _arrayWithoutHoles(arr) || _iterableToArr...
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n(1);var i=n(298),o=r(i),s=n(299...
export async function fetchData(url) { const res = await fetch(url); const data = await res.json(); return data; } export const delay = (ms) => new Promise((res) => setTimeout(res, ms));
// @flow import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import userInfoFragment from '../../fragments/user/userInfo'; import type { UserInfoType } from '../../fragments/user/userInfo'; import type { EditUserInput } from '../../../../api/models/user'; export type EditUserType = { ...$Exact<Use...
mycallback( {"CONTRIBUTOR OCCUPATION": "Attorney", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Eric Weaver", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1009 Creston Rd", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR ...
/** * Base webpack config used across other specific configs */ import path from 'path'; import webpack from 'webpack'; export default { module: { rules: [{ test: /\.jsx?$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { cacheDirectory: true ...
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 48, height: 48, viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
'use strict'; var dns = require('dns'); var EventEmitter = require('events').EventEmitter; var bitcore = require('bitcore-lib-cash'); var sha256 = bitcore.crypto.Hash.sha256; var Peer = require('./peer'); var Networks = bitcore.Networks; var util = require('util'); var net = require('net'); function now() { return ...
goog.provide('ol.tilegrid.WMTS'); goog.require('goog.array'); goog.require('goog.asserts'); goog.require('ol.proj'); goog.require('ol.tilegrid.TileGrid'); /** * @classdesc * Set the grid pattern for sources accessing WMTS tiled-image servers. * * @constructor * @extends {ol.tilegrid.TileGrid} * @param {olx.ti...
import{r as n,o as a,c as e,a as s,w as l,F as t,b as p,d as o}from"./app.bd6623af.js";const i={},c=s("h1",{id:"config",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#config","aria-hidden":"true"},"#"),p(" Config")],-1),r=p("Reference of default theme config, which can be set via "),u=p("themeConfig"),d=p("."),h=s...
import angular from 'angular'; /* Services */ import urlBuilder from 'shared/services/util/ps-urlBuilder'; import exceptionService from 'shared/services/util/ps-exception'; import interceptorService from 'shared/services/util/ps-interceptor'; import { pickUpServiceName, pickUpService } from './pickUp.service'; const M...
module.exports = { purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"], darkMode: false, // or 'media' or 'class' theme: { extend: { colors: { primary: "#FF6363", secondary: { 100: "#E2E2D5", 200: "#888883", }, }, fontFamily: { bod...
// This file was procedurally generated from the following sources: // - src/class-elements/rs-static-generator-method-privatename-identifier.case // - src/class-elements/productions/cls-decl-after-same-line-static-gen.template /*--- description: Valid Static GeneratorMethod PrivateName (field definitions after a stati...
/** @license React vundefined * react-dom-unstable-fizz.node.development.js * * 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. */ 'use strict'; if (process.env.NODE_ENV !== "product...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FilePrinter = exports.ConsolePrinter = exports.PrinterFactory = void 0; var fs_1 = __importDefau...
export const cilDataTransferDown = ["512 512","<rect width='480' height='32' x='16' y='464' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><polygon fill='var(--ci-primary-color, currentColor)' points='395.313 299.313 372.687 276.687 280 369.373 280 16 248 16 248 369.373 155.313 276.687 132.687 299.313...
// constructor function for departement class Departement { constructor(name) { this.name = name; } } module.exports = Departement;
var woof_edit_view = false; var woof_current_conatiner_class = ''; var woof_current_containers_data = {}; jQuery(function () { jQuery('.woof_edit_view').click(function () { woof_edit_view = true; var sid = jQuery(this).data('sid'); var css_class = 'woof_sid_' + sid; jQuery(this).nex...
const R = require('ramda'); const async = require('async'); const querystring = require('querystring'); const httpClient = require('@src/clients/http-client'); const oauthWrapper = require('@src/utils/oauth-wrapper'); const CONSTANTS = require('@src/utils/constants'); const accountLinkingApi = require('./resources/acc...
const { exec } = require('child_process') module.exports = { commands: ['execute'], callback: async (message, args) => { if (message.author.id !== '298589600132366339') return message.channel.send('You cannot use this command.') exec(args.join(' '), (error, stdout) => { const respon...
"use strict"; var copyPrototype = require("./copy-prototype"); module.exports = copyPrototype(Map.prototype);
import React, { useEffect, useState } from 'react'; import {Stack, Layout, TextStyle, DisplayText, Card, Button, Frame} from '@shopify/polaris'; import instance from './Interceptor'; // import Empty from './Empty'; import Skeleton from './utils/Skeleton'; const Dashboard = () => { const [ installed, setInstalled ...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'tachyons'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();...
/** * Copyright IBM Corp. 2019, 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. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
import React from 'react'; import ToolBox from './ToolBox'; import Product from './Product'; class Products extends React.Component{ state = { products:[] }; componentDidMount(){ fetch('http://localhost:3003/products').then(response => response.json()) .then(data=>{ cons...
import './src/base.css';
import { inject, observer } from "mobx-react"; import React, { useEffect, useState } from "react"; import { Container, Nav, Navbar, NavDropdown, } from "react-bootstrap"; import { useHistory } from "react-router-dom"; import AuthService from "../../../Services/AuthService"; const Layout = (props) => { ...
/* eslint-disable */ import React from 'react'; import { Svg, Path } from 'react-native-svg'; import { getIconColor } from './helper'; let Iconlocation = ({ size, color, ...rest }) => { return ( <Svg viewBox="0 0 1024 1024" width={size} height={size} {...rest}> <Path d="M511.424 885.994667c-7.7653...
import React from "react" import { Link, graphql } from "gatsby" import Layout from "../components/layout" import SEO from "../components/seo" export default function Home({ data }) { return ( <Layout> <SEO title="home" /> {data.allWpPost.nodes.map((node) => ( <div key={node.slug}> ...
var Uber = require('node-uber'); var secrets = require('../secrets'); var authenticate = function (req, reply) { var models = server.plugins.models; var uber = new Uber(secrets.uber); var code = req.payload.code; var id = req.params.user_id; uber.authorization({authorization_code: code}, function (err, at, r...
$.extend($.fn.datagrid.methods, { autoMergeCells: function(jq, fields) { return jq.each(function() { var target = $(this); if (!fields) { fields = target.datagrid("getColumnFields"); } var rows = target.datagrid("getRows"); var i = ...
import { formattedDay, yearMonthDay, parseDay, parseMonth, parseYear, getFirstDay, getLastDay, getDates, isSelected, setSelected, beforeFirstDayInMonth, afterLastDayInMonth, } from "./_util"; import dayjs from "dayjs"; const state = { today: "2020-01-01", firstAvailableDate: "2020-01-01", ...
var jsxControlStatements = require('jsx-control-statements'); const addTemplatesToModule = require('./addTemplatesToModule'); const constructTemplates = require('./constructTemplates'); const isComponent = require('./helpers/is-component'); module.exports = function (babel) { const t = babel.types; // skip passin...
switch (foo) { case 1: break; case 2: break; case 3: break; }
import { SET_QUERY, SET_QUERY_OPTIONS, LOG_QUERY, LOG_COMBINED_QUERY, SET_LOADING, SET_TIMESTAMP, SET_HEADERS, SET_STREAMING, SET_QUERY_LISTENER, SET_SEARCH_ID, SET_ERROR, SET_PROMOTED_RESULTS, } from '../constants'; import { setValue } from './value'; import { updateHits, updateAggs, pushToStreamHits } fr...
const buildQuery = require('../gql/query-factories/block-magazine-latest-issue'); /** * @param {ApolloClient} apolloClient The Apollo GraphQL client that will perform the query. * @param {object} params * @param {string} [params.queryFragment] The `graphql-tag` fragment * to ...
/* generated by Svelte v3.43.0 */ "use strict"; const { SvelteComponent, append, attr, detach, init, insert, noop, safe_not_equal, svg_element } = require("svelte/internal"); function create_fragment(ctx) { let svg; let path; return { c() { svg = svg_element("svg"); path = svg_element("path"); attr(pat...
$(function () { $(window).on("scroll", onScroll); function onScroll() { var sct = $(window).scrollTop(); $(".navigation ul li").each(function () { var list = $(this).children("a"); var t = $(this).children("a").attr("href"); var off = $(t).offset().top; var off_end = off + $("sectio...
import ls from 'local-storage' import React, { useContext, useReducer, createContext } from 'react' import { AUTH, NAVIGATION, TOAST } from 'constants/actions' const authData = ls.get('auth') const initialStore = { auth: { data: authData, inProgress: false, status: !!authData }, error: null, navi...
// Generated by CoffeeScript 1.12.7 (function() { var Address, Attachment, BackboneElement, Base, CodeableConcept, Coding, ContactPoint, DT, DomainResource, Element, ElementDefinition, ElementDefinitionBindingComponent, ElementDefinitionConstraintComponent, ElementDefinitionMappingComponent, ElementDefinitionSlicingC...
module["exports"] = [ "Ada", "Adina", "Adriana", "Adrijana", "Agata", "Alemka", "Alenka", "Alisa", "Alka", "Alma", "Amalija", "Ana", "Ančica", "Anamarija", "Anastazija", "Anci", "Anči", "Ancica", "Anda", "Anđela", "Anđelika", "Anđel...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.1.2 (2019-11-19) */ !(function() { 'use strict' var ...
"use strict"; class Hist { static hashChange (forceLoad) { if (Hist.isHistorySuppressed) { Hist.setSuppressHistory(false); return; } const [link, ...sub] = Hist.getHashParts(); let blankFilterLoad = false; if (link !== Hist.lastLoadedLink || sub.length === 0 || forceLoad) { Hist.lastLoadedLink = ...
window.addEventListener('DOMContentLoaded', (event) => { toggleMenu() scrollSpy() })
const litmus = require("../lib/litmus"); const logger = require("../src/logger"); const assert = require("assert"); const path = require("path"); litmus.testThat( "logger.decompressFile should return a string if no second argument is provided", async (failureHandler, successHandler) => { let logFileNames = a...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['980',"tlece_InvoiceItem Class","topic_0000000000000398.html"],['984',"Properties","topic_0000000000000398_props--.html"],['993',"StartPeri...
import React, { useEffect } from 'react' import propTypes from 'prop-types' import { useDispatch } from 'react-redux' import { addAlert } from '@open-tender/redux' import { ModalClose, ModalHeader, ModalFooter, Button, } from '@open-tender/components-pos' import { addTender, closeModal } from '../../slices' imp...
/*! * lib/order-lesson-bytime.js * homeschool-ds (https://github.com/dstegen/homeschool-ds) * Copyright 2021 Daniel Stegen <info@danielstegen.de> * Licensed under MIT (https://github.com/dstegen/homeschool-ds/blob/master/LICENSE) */ 'use strict'; function orderLessonByTime (lessonA, lessonB) { if ((lessonA.ti...
const Discord = require("discord.js"); const client = global.client; // ---------------------------------------------- // Siteden aldığınız kodları bu kısımada koyabilirsiniz. // ---------------------------------------------- client.login(global.Ayarlar.Token).catch(err => {console.error("Geçersiz bir to...
import webpackConfig from '../webpack.config.babel' export default function (config) { config.set({ browsers: [process.env.TRAVIS ? 'ChromeTravis' : 'Chrome'], singleRun: true, frameworks: ['mocha', 'chai'], files: ['karma.webpack.js'], preprocessors: { 'karma.webpack.js': ['webpack', 'sour...
function sampleFunc () { console.log("test page for printing generic"); };
import React, { Component } from 'react'; import clsx from 'clsx'; import { withStyles, withTheme } from '@material-ui/core/styles'; import IconButton from '@material-ui/core/IconButton'; import Drawer from '@material-ui/core/Drawer'; import Divider from '@material-ui/core/Divider'; import List from '@material-ui/core/...
/*jslint this: true, browser: true, long: true, for: true, bitwise: true, unordered: true */ /*global window console demonstrationHelper */ /** * Follows WebSocket behaviour defined by spec: * https://html.spec.whatwg.org/multipage/web-sockets.html */ (function () { // Create a helper function to remove some b...
'use strict'; angular.module('myApp.view1', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/view1', { templateUrl: 'view1/view1.html', controller: 'View1Ctrl as vm' }); }]) .controller('View1Ctrl', ['convertService',function(convertService) { var vm= this; vm....
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fas'; var iconName = 'users'; var width = 640; var height = 512; var ligatures = []; var unicode = 'f0c0'; var svgPathData = 'M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 6...
import axios from 'axios'; import { UPLOAD_IMAGE } from '../constants/upload'; /** * Upload image * * @param {Object} image */ export function uploadImage(image) { const data = new FormData(); data.append('image', image); let config = { headers: { 'content-type': 'multipart/form-data', }, };...
var BasketModel = (function () { function BasketModel(attributes) { if (attributes === void 0) { attributes = null; } // Items attributes this.id = 0; this.items = []; this.chainId = 0; this.date = ''; this.storeId = 0; this.attributes = attributes; ...
import React from 'react'; import Enzyme, { mount, shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import createConnector, { createConnectorWithoutContext, } from '../createConnector'; import { InstantSearchProvider } from '../context'; Enzyme.configure({ adapter: new Adapter() }); describe(...
export function up(schema) { return schema.createTable('entities', table => { table.increments('id'); table.string('name'); table.string('email'); table.string('phone'); table.string('address'); table.string('image'); table.integer('receiver_id').index(); table.integer('parent_id').in...
/* TODO: */ "use strict" const assert = require("chai").assert const sinon = require("sinon") const config = require("../../config") // File to be tested. const UpdateBalances = require("../../src/commands/update-balances") // Mock data // const testwallet = require("../mocks/testwallet.json") // const { bitbox...
/* * Copyright 2008 The Closure Compiler 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 applicable ...
module.exports = { title: 'GPI Resource', /** * @type {boolean} true | false * @description Whether show the settings right-panel */ showSettings: true, /** * @type {boolean} true | false * @description Whether need tagsView */ tagsView: true, /** * @type {boolean} true | false * ...
const express = require('express') const User = require('../models/User') const UserController = require('../controllers/UserController') const EmployersController = require('../controllers/EmployersContoller') const CategoriesController = require('../controllers/CategoryController') const router = express.Router() ro...
/* Main entry point for the squeegee server */ const express = require('express'); const Cors = require('cors'); const Debug = require('debug'); const http = require('http'); const morgan = require('morgan'); const bodyParser = require('body-parser'); const passport = require('passport'); const io = require('./socketio...
/** * rapidJS: Automatic serving, all-implicit-routing, pluggable fullstack scoped * function modules, un-opinionated templating. * * Copyright (c) Thassilo Martin Schiepanski */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const wrapper_1=require("./wrapper"),endpoint=(0,wrapper_...
import { MatTable, MatTableModule } from '@angular/material'; import { BehaviorSubject } from 'rxjs'; import { debounceTime } from 'rxjs/operators'; import { Injectable, Directive, Input, ViewContainerRef, Host, Self, Optional, NgModule, defineInjectable } from '@angular/core'; import { isEqual } from 'lodash'; /** *...
// https://www.codewars.com/kata/582ba36cc1901399a70005fc function getAverageAge(list) { return Math.round(list.reduce((acc, coder) => acc + coder.age, 0) / list.length); } const { assert } = require('chai'); describe('Tests', () => { it('test', () => { // ========== FIXED TEST CASES ========= const list1...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerShape = void 0; var CustomizeUtils = _interopRequireWildcard(require("../utils/CustomizeUtils")); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) ...
const FoodPage = require('../generated_pages/skip_condition_not_set/food-block.page'); const DrinkPage = require('../generated_pages/skip_condition_not_set/drink-block.page'); const SummaryPage = require('../generated_pages/skip_condition_not_set/summary.page'); describe('Skip Conditions - Not Set', function() { bef...
import __ from "lodash"; import React from "react"; /** * 旋转坐标转化 * @param {string} options.rotate 旋转角度 * @param {int} options.x x坐标 * @param {int} options.y y坐标 * @param {int} options.width 宽度 * @param {int} options.height 高度 * @return {string} 旋转坐标的函数 ...
module.exports = { root: true, env: { browser: true, node: true, es6: true, }, // the ts-eslint recommended ruleset sets the parser so we need to set it back parser: '@typescript-eslint/parser', parserOptions: { ecmaFeatures: { jsx: true, tsx: true, }, ecmaVersion: 12, ...
$(document).ready(function () { 'use strict'; //Bootstrap Select JS Plugin $('.selectpicker').selectpicker(); // // gm code here $("#nav-tab a").click(function () { $(".main-Box").addClass("hideForce"); $(".tabsHolder .tab-content").addClass("setB"); }); // end gm here //Tabs remove Jque...
/** * @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 */ import { stringify } from '../util'; /** * Allows to refer to references which are not yet defined. * * For instan...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-myevents-myevents-module"],{ /***/ "./src/app/pages/myevents/myevents.module.ts": /*!***************************************************!*\ !*** ./src/app/pages/myevents/myevents.module.ts ***! \**************************************************...
import setCookie from './setCookie'; export default function (cookieName) { setCookie(cookieName, '', { expires: -1 }) }
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-ja...
/** * 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 { StaticQuery, graphql } from 'gatsby' import seoData from '../...
const path = require('path'); const sarif = require('../lib/sarif'); const io = require('@actions/io'); const os = require('os'); const tempPath = path.join(__dirname, 'TEMP'); describe('pmd-github-action-sarif', function () { beforeEach(async function () { await io.rmRF(tempPath); await io.mkdirP(tempPath...
const assert = require('assert'); const path = require('path'); const ID_MAIN = path.join(__dirname, 'main.js'); const ID_FOO = path.join(__dirname, 'foo.js'); const ID_NESTED = path.join(__dirname, 'nested', 'nested.js'); const ID_PATH = 'path'; let rendered = false; module.exports = { description: 'provides modul...
import init from '../src/init'; import updateAttributes from '../src/updateAttributes'; jest.mock('../src/init'); describe('Update Attributes', () => { beforeEach(() => { // Clear all instances and calls to constructor and all methods: init.mockClear(); delete process.env.COG_POOL_ID; }); it('shoul...
/* eslint-disable import/prefer-default-export */ /* eslint-disable import/no-extraneous-dependencies */ import 'vtk.js/Sources/favicon'; import JSZip from 'jszip'; import macro from 'vtk.js/Sources/macro'; import HttpDataAccessHelper from 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; import vtkFul...
import React, { useEffect } from 'react'; import { Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { logout } from '../../../../../actions'; import { BURGER_BUILDER_ROUTE } from '../../../../routes'; /** * Logout component */ const Logout = (props) => { const { onLogout } = pro...
/* eslint-disable no-nested-ternary */ import axios from "axios"; const apiAdapter = (url, { start, success, failure }) => () => dispatch => { dispatch(start()); const secureURL = url.includes("https") ? url : `${url.slice(0, 4)}s${url.slice(4)}`; return axios .get(secureURL) .then(res => { ...
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with th...
import { BLOCK_TYPES } from "./EditorSettings"; import StyleButton from "./StyleButton"; import React from "react"; const BlockStyleControls = props => { const { editorState } = props; const selection = editorState.getSelection(); const blockType = editorState .getCurrentContent() .getBlockForKey(selection.getS...
var construct = function(question,details) { switch (question.idQ) { case 2: question.body = question.persoBody[0] + " " + details.name + " " + question.persoBody[1]; break; case 7: question.body = question.persoBody[0] + " " + details.sportBeforeComing + " " + question.persoBody...
var express = require("express"), router = express.Router(), passport = require("passport"), User = require("../models/user"), middleware = require("../middleware"), functions = require("../functions"); // router.get("/admin/:username/dashboard", middl...
import Uri from "../ThirdParty/Uri.js"; import when from "../ThirdParty/when.js"; import Check from "./Check.js"; import Credit from "./Credit.js"; import defaultValue from "./defaultValue.js"; import defined from "./defined.js"; import Ion from "./Ion.js"; import Resource from "./Resource.js"; import RuntimeError from...
import React from "react"; import Svg, { Path } from "react-native-svg"; import PropTypes from "prop-types"; const UilEnvelopeBookmark = props => { const { color, size, ...otherProps } = props; return ( <Svg width={size} height={size} viewBox="0 0 24 24" fill={color} {...otherProp...