text
stringlengths
2
1.04M
/** * @license * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
module.exports={A:{A:{"2":"I D E F A B fB"},B:{"1":"R S T U V W X P Y Z G","2":"C J K L M N O"},C:{"2":"0 1 2 3 4 5 6 7 8 9 gB VB H a I D E F A B C J K L M N O b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB WB FB XB Q GB HB IB JB KB LB MB NB OB PB QB RB SB YB ZB aB R S T hB U V W X P Y Z G iB jB"},D:{...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _IRIs = _interopRequireDefault(require("./IRIs")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // N3.js implementations of the RDF/JS core data types // Se...
function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("@nativescript/core/ui/time-picker/time-picker-common"));
function onNumberInputValueChanges(min, max, value) { var newValue = Number(value.replace(/[^0-9]/g,'')); if (newValue < min) { return min; } if (newValue > max) { return max; } return newValue; } function onKeyDown(e) { // e.keyCode is deprecated (see https://developer.mozilla.org/en-US/docs/Web...
import { Image } from 'test/common'; describe('we check paintPoints', function () { it('should yield the painted image', function () { let size = 5; let data = new Array(size * size * 3); for (let i = 0; i < data.length; i++) { data[i] = i; } let image = new Image(size, size, data, { kind: ...
// Advent of Code 2019 // Day 22: Slam Shuffle // To deal into new stack, create a new stack of cards by dealing the top card // of the deck onto the top of the new stack repeatedly until you run out of // cards // const reverseArr = (arr) => arr.reduce((acc, next) => [next, ...acc], []); // number -> []any -> []any c...
goog.module('grrUi.config.configBinariesViewDirective'); goog.module.declareLegacyNamespace(); const apiService = goog.requireType('grrUi.core.apiService'); /** * Controller for ConfigBinariesViewDirective. * @unrestricted */ const ConfigBinariesViewController = class { /** * @param {!angular.Scope} $scope ...
// @ts-check // @errors: 2339 /** @param {any[]} arr */ function compact(arr) { if (arr.length > 10) return arr.trim(0, 10) return arr }
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
'use strict'; const _ = require('lodash'); const path = require('path'); const reply = require('../lib/reply')(); const config = require('../lib/config'); const cli = require('./lib/cli'); exports.command = 'status [cluster_sh]'; exports.desc = 'shows the status of the asset on a cluster or a group of clusters'; expo...
import { Link } from 'react-router-dom' export default function BarContent() { return ( <> <div className="menu-container"> <h3 className="menu-container__title">Menú</h3> <ul className="list"> <Link className="list__href" to="/"> ...
'use strict'; import { getMatchingCommand, getMatchingScreenName, getMatchingTweet } from './cmd'; import { Tw } from './twitter'; var timeline = []; var mentionsTimeline = []; browser.omnibox.setDefaultSuggestion({ description: `Tweet (e.g. "hello world")` }); // Update the suggestions whenever the input is ...
import Sketch from "../../common/Sketch"; import MandelbrotSetScript from "./MandelbrotSetScript"; import PageLayout from "../../common/PageLayout"; export default function MandelbrotSetPage() { return ( <PageLayout title="Mandelbrot Set" description="Simple rendering of the Mandelbrot Set using ...
const assert = require('assert') const numberList = [3, 7, 8, 19, 18, 11, 17, 4, 14, 5] let totalOfOddNumbers = numberList.reduce(function(accumulator, currentValue) { // Code this reducer function so that the result is the sum // of only the odd values (3, 7, 19, etc). Do not alter any other code. // PLACE YOU...
function butCheckForm_onclick() { var myForm = document.form1; if (myForm.ID.value == "" ) { alert("Please enter the product ID number!"); myForm.ID.focus(); window.location.reload(); } else //alert("Please wait while fetching the details for product with ID number...
export default { auth: { TokenKey: 'authorization-app', // 本地存储的token key值 expires: 2 // token过期时间 }, request: { // www.yeev.vip apiURL: '/cpmarket', // 项目线上域名 timeout: 100000 // http://sscby.cn/cpmarket/ // 请求超时时间 } } //http://q...
(function ($) { "use strict"; // Start of use strict // Closes responsive menu when a scroll trigger link is clicked $('.js-scroll-trigger').click(function () { $('.navbar-collapse').collapse('hide'); }); // closes responsive menu when clicking out of menu $(document).on("click", function (e) ...
const emojis = require('./minifiedEmoji.json') const regex = new RegExp(/:([a-zA-Z1-9+_-]*?):/) const toneRegex = new RegExp(/:(.*?)::(skin-tone-\d*):/) const emojiRegex = new RegExp(/(\B|^)((:\)|:\/|:\(|:'\(|:\||;\))\B|(:D|:P|:o)\b)/) let emoji export const smileParse = (str, options) => { // Figure-out :) :( etc ...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */
// @flow export interface Experience { id: string; category: any | null; title: string; location: any; pricePerPerson: number; reviews: any[]; preview: any; popularity: number; } export interface ExperienceCategory { id: string; mainColor: string; name: string; experience: any | null; } expor...
var searchData= [ ['fast_5fcorners_2ecl',['fast_corners.cl',['../fast__corners_8cl.xhtml',1,'']]], ['fastcorners_2ecpp',['FastCorners.cpp',['../benchmark_2_c_l_2_fast_corners_8cpp.xhtml',1,'(Global Namespace)'],['../benchmark_2_n_e_o_n_2_fast_corners_8cpp.xhtml',1,'(Global Namespace)'],['../validation_2_c_l_2_fast_...
import React from 'react' import 'should' import Preview from '../../../../src/components/Preview/Preview.js' import { shallow } from 'enzyme' // don't find out such kind of component tests very much useful, but contributions welcome describe('<Preview />', () => { it('calls componentDidMount', () => { shallow(<...
const ajaxUrl = "ajax/admin/users/"; let datatableApi; function updateTable() { $.get(ajaxUrl, updateTableByData); } function enable(checkbox, id) { const checked = checkbox.checked; // https://stackoverflow.com/questions/22213495/jquery-post-done-and-success/22213543#22213543 $.ajax({ url: aj...
module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, siteUrl: `https://gatsbystarterdefaultsourc...
export function __cargo_web_snippet_3c5e83d16a83fc7147ec91e2506438012952f55a(Module, $0) { var o = Module.STDWEB_PRIVATE.acquire_js_reference( $0 );return (o instanceof Element); }
import { preloadImages, preloadFonts, clamp, map } from './utils'; import Cursor from './cursor'; import LocomotiveScroll from 'locomotive-scroll'; // document.body.addEventListener('touchmove', function(e){ e.preventDefault(); }); Promise.all([preloadImages('.gallery__item-imginner'), preloadFonts('vxy2fer')]).then(...
module.exports = { columngroup: { name: "ColumnGroup", description: "Columns can be grouped at header and footer sections by defining a ColumnGroup with nested rows and columns", "doc-url": "datatable" } };
const { renderComponentHtmlToCheerio, getExamples, } = require('../../../test/unit/component-helpers') const examples = getExamples('tag') describe('Tag component', function () { context('by default', function () { let $component beforeEach(function () { const $ = renderComponentHtmlToCheerio('ta...
const test = require("ava"); const Eleventy = require("../src/Eleventy"); const EleventyWatchTargets = require("../src/EleventyWatchTargets"); const TemplateConfig = require("../src/TemplateConfig"); test("Eleventy, defaults inherit from config", async (t) => { let elev = new Eleventy(); let config = new Template...
import { createNamespace, isDef, addUnit } from '../utils'; var _createNamespace = createNamespace('progress'), createComponent = _createNamespace[0], bem = _createNamespace[1]; export default createComponent({ props: { color: String, inactive: Boolean, pivotText: String, textColor: String, ...
import * as types from '../../mutation-types' // import statistics from './statistics' // import forms from './forms' import dashboard from './dashboard' // import ui from './ui' // import maps from './maps' // import tables from './tables' import auth from './auth' // import extra from './extra' import notifications f...
"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")...
'use strict'; const applyTimestampsToChildren = require('../update/applyTimestampsToChildren'); const applyTimestampsToUpdate = require('../update/applyTimestampsToUpdate'); const cast = require('../../cast'); const castUpdate = require('../query/castUpdate'); const setDefaultsOnInsert = require('../setDefaultsOnInser...
* Lightning v1.2.0 * * https://github.com/WebPlatformForEmbedded/Lightning cbxd=t*(t*(3*xa)+2*xb)+xc;if(cbxd>1e-10&&cbxd<1e-10){// Problematic. Fall back to binary search method. break;}t+=dx/cbxd;}// Fallback: binary search method. This is more reliable when there are near-0 slopes. var minT=0;var maxT=1;for(var _i...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2077ff"],{a192:function(t,s,o){"use strict";o.r(s);var e=function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("div",{staticClass:"flex flex-col"},[o("div",{staticClass:"mr-2"},[o("span",{staticClass:"capitalize"},[t._v(t._s(t.attr))]),o("d...
const TBNAME = 'category_table'; const COLS = [ 'category_id', 'category_name', 'category_description', 'category_isExpense', 'category_userID' ]; const db_user = require('./db_user'); module.exports.TBNAME = TBNAME; module.exports.COLS = COLS; module.exports.create_table = async function() { ...
import phenomicStatic from "phenomic/lib/static"; import metadata from "../src/metadata.js"; import routes from "../src/routes.js"; import store from "../src/store.js"; module.exports = options => phenomicStatic({ ...options, metadata, routes, store });
var { '@kingjs': { '-rx': { SubscribeAndAssert, '-async': { Timeout }, '-static': { clock } } }, } = module[require('@kingjs-module/dependencies')]() process.nextTick(async () => { await clock(100) [Timeout](75, 'error') [SubscribeAndAssert](null, { error: 'error', delay: 75 }) awa...
const { spawn, exec } = require('child_process'); const fs = require('fs'); const path = require('path'); function getCurrentCommitHash () { return new Promise((resolve, reject) => { exec('git rev-parse HEAD', (err, stdout) => { if (err) { reject(err); } else { resolve(stdout.trim());...
var searchData= [ ['calibrationfunction_8386',['CalibrationFunction',['../class_quant_ext_1_1_linkable_calibrated_model.html#a80488386afb1c0c879f7991542f9620d',1,'QuantExt::LinkableCalibratedModel']]] ];
var nnet_simple_component_8cc = [ [ "RearrangeIndexes", "nnet-simple-component_8cc.html#ac37caf62dbe225383341d770509b2d55", null ], [ "YzxVectorIndex", "nnet-simple-component_8cc.html#a264b986f95f2cb1e5bc7032967c69a27", null ], [ "ZyxVectorIndex", "nnet-simple-component_8cc.html#a25b3b76367d2844fb0f48334f1b...
module.exports = db => db .collection("authors") .find() .toArray() .then(authors => { const user_collection = db.collection("users"); const users = authors.map(author => { const time_and_salary_count = author.queries_count; co...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addQuantity, removeQuantity } from '../store/actions/productActions'; import { QuantityButton, QuantityLabel, QuantityContainer } from '../styles/styles'; class Quantity extends Component { quantity = this.props.item.add...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue').default; /** * The following block of cod...
import propsEqual from '../src/utils/propsEqual'; describe('propsEqual', () => { test('should be true for two empty objects', () => { expect(propsEqual({}, {})).toBeTruthy(); }); test('should be true for equal objects', () => { const a = { foo: 'bar', bar: 'foo' }; const b = { bar: 'foo', foo: 'bar'...
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/alpinejs/dist/module.esm.js": /*!**************************************************!*\ !*** ./node_modules/alpinejs/dist/module.esm.js ***! \**************************************************/ /***/ ((__unused_webpac...
/** * inventory.js * Stripe Payments Demo. Created by Romain Huet (@romainhuet) * and Thorsten Schaeff (@thorwebdev). * * Simple library to store and interact with products stored on Stripe. * These methods are using the Stripe Products API, but we tried to abstract them * from the main code if you'd like to use...
import { responsiveFontSizes } from '@material-ui/core' import { createTheme } from '@material-ui/core/styles' export default function setTheme(theme, darkMode) { return responsiveFontSizes(createTheme({ palette: { type: darkMode ? 'dark' : 'light', primary: { light: '#ff784e', main: ...
require('dotenv').config() const { MessageType, WAConnection, Mimetype } = require("@adiwajshing/baileys") const QRCode = require("qrcode") const { v4: uuidv4 } = require('uuid') const { ErrorHandler } = require("../Exceptions/InvalidNumber.exception") const fs = require("fs") const axios = require("axios")...
export const UniqueIndex = () => { if (isNaN(window.__BRAFT_MM_UNIQUE_INDEX__)) { window.__BRAFT_MM_UNIQUE_INDEX__ = 1 } else { window.__BRAFT_MM_UNIQUE_INDEX__ += 1 } return window.__BRAFT_MM_UNIQUE_INDEX__ }
/*! ========================================================= * Argon Design System React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-design-system-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT ...
module.exports = { siteMetadata: { title: `Arvindeva Wibisono`, description: `Frontend Engineer`, author: `@arvindeva`, }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `${__dirname}/src/images`, ...
//# sourceMappingURL=fis.min.js.map
import React from 'react'; import { Helmet } from 'react-helmet'; import App from '../components/App'; import { headData } from '../mock/data'; import 'bootstrap/dist/css/bootstrap.min.css'; import '../style/main.scss'; export default () => { const { title, lang, description, url, ogImage, keywords } = headData; ...
/** * Malayalam language functions * * @author Santhosh Thottingal */ ( function ( $ ) { 'use strict'; $.i18n.languages.ml = $.extend( {}, $.i18n.languages['default'], { convertGrammar: function ( word, form ) { form = form.toLowerCase(); switch ( form ) { case 'ഉദ്ദേശിക': case 'dative': if...
import truncateModuleTests from './shared/truncateModule.shared.js' /** @see tests in ./shared */ truncateModuleTests('truncateModule')
const express = require("express"); const db = require("../services/db"); const { verifySignature } = require("../utils/sign"); const { EVENT_TYPES, createEvent } = require("../utils/events"); const { withRole } = require("../middlewares/auth"); const router = express.Router(); /** * Get all Builds. */ router.get("...
const path = require('path') const express = require('express') const morgan = require('morgan') const compression = require('compression') const session = require('express-session') const passport = require('passport') const SequelizeStore = require('connect-session-sequelize')(session.Store) const db = require('./db'...
/*! ramp-pcar 11-06-2015 22:18:13 : v. 5.5.0-3 * * RAMP GIS viewer - Groundhog; Sample of an implementation of RAMP **/
/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : Uize.Widget.AutoTooltip Class | / / / | | / / / /| | ONLINE : http://www.uize.com | /____/ /__/_| | COPYRIGHT : (...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_local_gas_station_outline = void 0; var ic_local_gas_station_outline = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": []...
import { AppEvent } from './event_types' const common = { inputEvent: 'input' } const busEvents = Object.freeze({ showSnackbarEvent: new AppEvent('show-snackbar'), hideSnackbarEvent: new AppEvent('hide-snackbar'), showLoaderEvent: new AppEvent('show-loader'), hideLoaderEvent: new AppEvent('hide-loader'), ...
const { resolve } = require('path'); const getStream = require('get-stream'); const execa = require('execa'); const findComments = (text) => text.match(/<!--(.*?)-->/gms); const plantuml = async (uml) => { const plantumlJar = resolve(__dirname, '../vendor/plantuml.jar'); console.log("svg data", uml) const s...
/* @flow */ import type Watcher from './watcher' import { remove } from '../util/index' import config from '../config' let uid = 0 /** * A dep is an observable that can have multiple * directives subscribing to it. * 依赖对象 */ export default class Dep { static target: ?Watcher; id: number; subs: Array<Watche...
$(document).ready(function() { let symbolsArray; let itemsArray = $('.machine .item'); let winData; function getSymbols() { $.ajax({ type: 'POST', url: '/api/get_symbols', dataType: 'json', success: function (data) { symbolsArray ...
import "core-js/modules/es.symbol"; import "core-js/modules/es.symbol.description"; import "core-js/modules/es.symbol.iterator"; import "core-js/modules/es.array.find-index"; import "core-js/modules/es.array.for-each"; import "core-js/modules/es.array.index-of"; import "core-js/modules/es.array.iterator"; import "core-...
import React from 'react'; import './App.css'; import Header from './components/Header'; import EmployeeData from './components/EmployeeData'; function App() { return ( <div> <Header /> <EmployeeData /> </div> ); } export default App;
import {events} from './Api' export function postEvent (json) { let new_event = {} new_event.title = json.title new_event.uid = json.uid new_event.description = json.description new_event.room = json.room new_event.startDate = json.startDate new_event.finalDate = json.finalDate new_event.responsable =...
$(document).ready(function() { // ------------------------------ // - Variables // ------------------------------ var id_tmp = 0; var empleado = 0; var fecha_nacimiento = ''; // ------------------------------ // - Funciones // ------------------------------ function consulta ()...
define(["lib-build/tpl!./ViewVideoCommon", "lib-build/css!./ViewVideoCommon", "storymaps/common/utils/connector/Vimeo", "lib-build/tpl!./ViewVideoCommonDetail"], function ( viewTpl, viewCss, VimeoConnector, viewTplDetail ){ return function ViewVimeo(container, showView) { var _vimeo = new VimeoCo...
import mutations from '~/ide/stores/mutations/merge_request'; import state from '~/ide/stores/state'; describe('IDE store merge request mutations', () => { let localState; beforeEach(() => { localState = state(); localState.projects = { abcproject: { mergeRequests: {} } }; mutations.SET_MERGE_REQUEST...
/* Copyright 2020 Foundries.IO Ltd. 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 */ class OGError extends Error { constructor(message) { super(me...
import Component from '@ember/component'; import layout from '../../templates/components/models-table/columns-hidden'; /** * Table row used within [models-table/table-body](Components.ModelsTableTableBody.html). * * Component used when all columns are hidden and no data items are shown. Usually it contains a simple...
const router = require('express').Router(); const { Post, User, Comment } = require('../../models'); const withAuth = require('../../utils/auth'); //get all posts router.get('/', (req, res) => { Post.findAll({ attributes: ['id', 'title', 'content', 'created_at'], order: [ ['created_at', 'DESC'] ], ...
import fs from 'fs'; import { platform } from 'os'; import path, { posix } from 'path'; import slash from 'slash'; const VOLUME = /^([A-Z]:)/i; const IS_WINDOWS = platform() === 'win32'; // Helper functions const noop = () => null; const matches = (pattern, importee) => { if (pattern instanceof RegExp) { retur...
import React from 'react'; const icons = { "abap": { "path": [ "M1.51 59.70L14.41 9.28L21.59 9.28L34.49 59.70L28.23 59.70L24.40 43.24L11.60 43.24L7.77 59.70L1.51 59.70ZM23.24 38.21L18 14.38L12.73 38.21L23.24 38.21ZM40.89 59.70L40.89 9.28L53.05 9.28L53.05 9.28Q58.71 9.28 62.44 12.16L62.44 12.16L62.44 12.16...
define({ "originError": { "message": "O aplicativo que você está tentando acessar não se origina da URL fornecida.", "close": "Fechar", "options": "Opções avançadas", "linkMessage": "Prosseguir para" } });
define({"topics" : [{"title":"Configuring LDAP Authentication","shortdesc":"\n <p class=\"shortdesc\">If your organization uses LDAP, configure <span class=\"ph\">Data Collector</span> to use LDAP authentication. After you configure LDAP authentication, users log in to <span class=\"ph\">Data Coll...
// 'use strict'; // module.exports = { // client: { // lib: { // css: [ // 'public/lib/bootstrap/dist/css/bootstrap.min.css', // 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', // ], // js: [ // 'public/lib/angular/angular.min.js', // 'public/lib/angular...
var moment = require('moment'); module.exports = { book: { assets: './assets' }, hooks: { 'page:before': function(page) { if(this.options.pluginsConfig['add-js']) { var _urls = this.options.pluginsConfig['tbfed-pagefooter']['urls'] || []; var _html = ''; for(var i = 0; i < _u...
import styled from 'styled-components'; export const WorkingAtmosphereContainer = styled.div` img { filter: grayscale(100%); &:hover { filter: none; } } `;
/// @file JSRoot.interactive.js /// Basic interactive functionality JSROOT.define(['d3', 'painter'], (d3, jsrp) => { "use strict"; let TooltipHandler = { /** @desc only canvas info_layer can be used while other pads can overlay * @returns layer where frame tooltips are shown */ hints_layer...
var __ul = '<ul></ul>'; var __li = '<li><span class="{span1class}"><a class="ftree-file-name">{file}</a></span></li>'; function fTree(element, children) { console.log(children); tree1(children.children); } var tree1 = function (children){ children.forEach(function(item){ var type = (item.isFolder)? 'folder'...
'use strict'; const builder = require('./builder'); const deliveries = require('./schemas/deliveries'); const template = require('./schemas/email.template'); const addressList = require('./schemas/address.list'); const emailLabel = require('./schemas/email.label'); /** * @property {Object} delivery - about email del...
/* eslint-disable camelcase */ import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import {UserProfile} from './user-profile' import {fetchOrders} from '../store/user' import {updateUser} from '../store/admin-user' const headers = ['Id', 'Price', 'Shipping Addr...
'use strict'; var assocIndexOf = require('./_assocIndexOf'); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function list...
import React, { useState } from "react"; import PropTypes from 'prop-types'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import "...
import capitalize from 'Framework/Utilities/Strings/capitalize'; export default describe("Framework/Utilities/Strings/capitalize", function() { it("should capitalize a string", function() { expect(capitalize('test')).toBe('Test'); }); });
const Discord = require('discord.js'); const concatQueueTitles = queue => { return queue.map(elem => `${elem.title}\n`).join(''); }; exports.run = function(client, message) { const playlist = client.playlist; if (!playlist.queue.length) { return message.reply('No songs in queue', {code:'asciidoc'}); } l...
import React from "react"; import { withStyles } from "@material-ui/core/styles"; import { t } from "../utils/t"; import Card from "@material-ui/core/Card"; import CardContent from "@material-ui/core/CardContent"; import Button from "@material-ui/core/Button"; import ButtonGroup from "@material-ui/core/ButtonGroup"; ...
const { GraphQLSchema } = require('graphql') const { ApolloServer } = require('apollo-server-express') const compression = require('compression') const { createContext } = require('./dataloader') const { generateSchema } = require('./generator') const defaultOptions = { modelDirPath: null, customsDirPath: nul...
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ControlLabel, Button, FormGroup, FormControl } from 'modules/common/components'; import { Wrapper } from 'modules/layout/components'; import FieldsPreview from './...
const expect = require("chai").expect; const screenshot = require("../src/screenshot"); const child_process = require("child_process"); const fs = require("fs"); const path = require("path"); const sandbox = require("sinon").createSandbox(); function screenshotFunction() { return Buffer.from("screentshot").toString...
// weak function requirePropFactory(componentNameInError) { /* istanbul ignore if */ if (process.env.NODE_ENV === 'production') { return () => null; } const requireProp = requiredProp => (props, propName, componentName, location, propFullName) => { const propFullNameSafe = propFullName || propName; ...
'use strict'; module.exports = function(ctx){ var filter = ctx.extend.filter; filter.register('template_locals', require('./i18n')); };
define(function (require) { var transformer = require('components/agg_response/hierarchical/_transform_aggregation'); var collectKeys = require('components/agg_response/hierarchical/_collect_keys'); return function (agg, metric, aggData) { // Ceate the split structure var split = { label: '', slices: { ch...
/*! https://mths.be/codepointat v0.2.0 by @mathias */ if (!String.prototype.codePointAt) { (function() { 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` var defineProperty = (function() { // IE 8 only supports `Object.defineProperty` on DOM elements try { var object = {}; va...
/** * jVectorMap version 1.2.2 * * Copyright 2011-2013, Kirill Lebedev * Licensed under the MIT license. * :{}},markerStyle:{initial:{fill:"grey",stroke:"#505050","fill-opacity":1,"stroke-width":1,"stroke-opacity":1,r:5},hover:{stroke:"black","stroke-width":2},selected:{fill:"blue"},selectedHover:{}}},jvm.WorldMap...