text stringlengths 2 1.04M |
|---|
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
... |
'use strict'
const d3 = require('./d3.js')
class FgTooltipContainer {
constructor ({ tooltip, tooltipHtmlContent, showDelay = 700, hideDelay = 200 }) {
this.tooltip = tooltip
this.ui = tooltip.ui
this.tooltipHandler = null
this.tooltipHtmlContent = tooltipHtmlContent
this.d3TooltipHtml = toolti... |
// Copyright 2019 Iced Development, 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 agr... |
/**
* 表格time格式化
*/
export function formatDate(cellValue) {
if (cellValue == null || cellValue == "") return "";
var date = new Date(cellValue)
var year = date.getFullYear()
var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
var day = date.getDate() < 10 ? '0' + date.ge... |
var tokenGen = require('./lib/saToken.js'),
client = require('./lib/restClient.js');
module.exports.createToken = tokenGen.create;
module.exports.restClient = client.create; |
'use strict';
/* eslint-env node, mocha */
const config = require('../../../../test/properties');
const expect = require('chai').expect;
const fixtures = require('../../../../test/fixtures');
const mysqlx = require('../../../../');
describe('MySQL 5.7 authentication', () => {
context('mysql_native_password', () ... |
import { useCallback } from 'react';
import {
shallowEqual,
useDispatch,
useSelector as useReduxSelector,
} from 'react-redux';
export const useAction = action => {
const dispatch = useDispatch();
return useCallback(prop => dispatch(action(prop)), [action, dispatch]);
};
export const useSelector = selector ... |
const { createReadStream } = require('fs');
const nodecsv = require('csv');
const CSV = require('..');
const FILE = `${__dirname}/twitter.csv`;
const parser = nodecsv.parse();
parser.on('readable', function () {
let record;
while ((record = parser.read())) {
process.stdout.write(CSV.stringify(record));
}
... |
import { Vector2, Vector3 } from 'three';
import Protobuf from 'pbf';
import { VectorTile } from '@mapbox/vector-tile';
import { worldDimension3857 } from 'Core/Geographic/Extent';
import { FeatureCollection, FEATURE_TYPES } from 'Core/Feature';
import { featureFilter } from '@mapbox/mapbox-gl-style-spec';
import Style... |
'use strict';
const supertest = require('supertest');
const expect = require('chai').expect;
const agent = supertest.agent(require('../../index'));
describe('Testing reply-related APIs.', () => {
it('Fetch latest replies', async () => {
const url = '/api/reply/latest';
const response = await agent.get(url)... |
import React from 'react';
import NavbarTwo from './component/Navbar/NavbarTwo';
import FBanner from './component/Banner/frelencerBanner';
import PortfolioSlider from './component/Portfolio/PortfolioSlider';
import ServiceTwo from './component/ServiceTwo';
import TestimonialTwo from './component/Testimonial/Testimonial... |
/* tests/ini-spec.js v.1.0.2 */
var autoUpg = require('./../index.js');
describe("Initial load module test", function () {
it("Is autoUpg loaded", function () {
expect(autoUpg).toBeDefined();
});
it('Is autoUpg a object', function(){
expect(typeof autoUpg).toBe('object');
});
it('Exists in a... |
function myFunction(id,element) {
//console.log(id);
var dots = document.getElementById("dots_"+id);
// var moreText = document.getElementById("more_"+id);
var ansText = document.getElementById("answer_"+id);
var btnText = document.getElementById("question_"+id);
if (dots.style.display === "none") {
dots... |
const { check } = require('express-validator');
exports.categoryCreateValidator = [
check('type').not().isEmpty().withMessage('Type is required'),
]; |
import { toCamelCase } from '@/utils/helper';
const blocksHandler = require.context('./blocks-handler', false, /\.js$/);
const handlers = blocksHandler.keys().reduce((acc, key) => {
const name = key.replace(/^\.\/handler-|\.js/g, '');
acc[toCamelCase(name)] = blocksHandler(key).default;
return acc;
}, {});
ex... |
const normalizeObjectKeys = require('../utils/normalizeObjectKeys')
const createParameterValidator = require('./parameter')
module.exports = (headers, option) => {
const validators = Object.keys(headers).map(name => {
const validator = createParameterValidator({ ...headers[name], name }, option)
return head... |
import React, { Component } from 'react'
import './App.css'
import Section from '../Components/Section/Section'
import FeedbackOptions from '../Components/FeedbackOptions/FeedbackOptions'
import Statistics from '../Components/Statistics/Statistics'
import Notification from '../Components/Notification/Notifacation'
exp... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" /></React.Fragment>
, 'ClearTwoTone'); |
/* eslint-disable prefer-destructuring */
/* eslint-disable prettier/prettier */
import React from 'react';
import { I18nManager, ColorPropType, Text, ViewPropTypes, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import Picker from '../picker-view';
import { CoreUtils, NumberUtils, RatioUtils, Th... |
export default function counter(state = 0, action) {
switch (action.type) {
case 'INCREMENT':
return state + 1
case 'INCREMENT_IF_ODD':
return (state % 2 !== 0) ? state + 1 : state
case 'DECREMENT':
return state - 1
case 'PRODUCTS_REQUESTED_REAL':
console.log(action.products)
... |
function caller() {
called(argument);
function argument() {}
} |
"use strict";
exports.__esModule = true;
exports.createThemeVars = createThemeVars;
var _utils = require("@chakra-ui/utils");
var _calc = require("./calc");
var _cssVar3 = require("./css-var");
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var so... |
const IP = "http://localhost"
var mainSocket = io.connect(IP)
var roomSocket = undefined
var token = undefined
var isInMain = true
//Button callback
function register() {
var name = document.getElementById("name")
mainSocket.emit('reg', name)
}
//Utility function if needed
function getCurrentSocket() {
return (is... |
import HomeContainer from "../HomeContainer";
import '../assets/HomePage.css';
function HomePage(props) {
return (
<div className="py-2 sm:p-2 bg-gray-200 bg-opacity-75 mb-2 sm:mx-48 rounded border-2">
<h1 className="">{global.searchable && <div></div>}</h1>
<HomeContainer />
</div>
);
}
expor... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.paginationConfig = exports.paginationProps = void 0;
var _vue = requi... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
// test.js
// This is a harness for running the tethr.io tests
// tethr.io tests rely on a backend signaling server (webrtc.io) as well as more than one other peer in the same room.
// Thus we cannot simply use a packaged test harness, but wrap our own with phantomjs
var async = require('async')
var launcher = requir... |
function initGroupCable() {
var messages = $('#group-messages');
if(messages.length <= 0) return;
var groupId = messages.data('group-id');
var userId = messages.data('user-id');
var template = JST['templates/message'];
var page = 2;
var totalPages = 37;
var loadingMessages = false;
var toBottom = f... |
/**
* Player component
*/
function Player(player, index) {
return e('div', { key: `player-${index}`, className: 'player' },
e('div', { className: 'player-rank' }, (index + 1)),
e('div', { className: 'player-name' }, player.name),
e('div', { className: 'player-titles' }, player.titles.join(', ')),
e... |
const path = require("path")
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions
const blogresult = await graphql(`
query {
allContentfulBlogPost(sort: {fields: publishDate, order: DESC}) {
edges {
node {
id
slug
}
... |
/**
* A uniform wrapper for hsluv.
* // http://www.hsluv.org/
*
* @module color-space/hsluv
*/
'use strict'
var xyz = require('./xyz');
var lchuv = require('./lchuv');
var _hsluv = require('hsluv');
module.exports = {
name: 'hsluv',
min: [0,0,0],
max: [360,100,100],
channel: ['hue', 'saturation', 'lightness... |
/**
* @module hammer
*
* @class Detection
* @static
*/
var Detection = Hammer.detection = {
// contains all registred Hammer.gestures in the correct order
gestures: [],
// data of the current Hammer.gesture detection session
current: null,
// the previous Hammer.gesture session data
// is... |
!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Animated } from 'react-native';
import styles from './SwipeNav.styles';
import getStatusBarHeight from '../../helpers/statusBarHeight';
class SwipeNav extends Component {
static propTypes = {
header: PropTypes.node,
... |
import React from 'react';
import { Box, Image, Flex } from 'rebass';
import { StaticQuery, graphql } from 'gatsby';
import styled from 'styled-components';
import ReactMarkdown from 'react-markdown';
import Fade from 'react-reveal/Fade';
import Section from '../components/Section';
import Triangle from '../components/... |
/******/ (() => { // webpackBootstrap
/*!***************************************!*\
!*** ./resources/js/qrCodeScanner.js ***!
\***************************************/
var qrcode = window.qrcode;
var axentix = window.Axentix;
var video = document.createElement("video");
var canvasElement = document.getElementById("... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchHistory } from '../actions';
import ListGroup from 'react-bootstrap/ListGroup';
class ErrorHistory extends Component {
componentDidMount() {
this.props.fetchHistory();
}
renderHistory() {
if (t... |
/*
* This combined file was created by the DataTables downloader builder:
* https://datatables.net/download
*
* To rebuild or modify this file with the latest versions of the included
* software please visit:
* https://datatables.net/download/#bs/dt-1.10.22/r-2.2.6/sc-2.0.3
*
* Included libraries:
* Data... |
const path = require('path');
module.exports = {
entry: {
app: "./js/app.js"
},
mode: 'production',
node: {
fs: "empty",
Buffer: true
},
module: {
rules: [
{
test: /\.js$/,
include: [
path.resolve(__... |
const { parentPort } = require("worker_threads");
const sharp = require("sharp");
/**
* Calculates the perceptual hash of an image.
* @param {Buffer} buf buffer to be calculated
* @returns {Promise<string>} phash
*/
async function makePhash(buf) {
try {
const regularImageBuffer = await sharp(buf)
... |
//# sourceMappingURL=commons-4b831f565dd1935718e8.js.map |
'use strict';
var cache = require('../../lib/cache');
module.exports = function (router) {
router.get('/', function (req, res) {
cache.get('name', function(err, reply) {
var username;
// Switch to render a 503 page
if (err) console.log(err);
if (reply) {... |
const errorDescription = {
UNKNOWN_CALL_FAILURE: 'UnknownCallFailure',
LOCUS_RATE_LIMITED_INCOMING: 'LocusRateLimitedIncoming',
LOCUS_RATE_LIMITED_OUTGOING: 'LocusRateLimitedOutgoing',
LOCUS_UNAVAILABLE: 'LocusUnavailable',
LOCUS_CONFLICT: 'LocusConflict',
TIMEOUT: 'Timeout',
LOCUS_INVALID_SEQUENCE_HASH: ... |
import axios from 'axios';
const API_KEY = '26e79e643ea73e647c4d0d8438075dca';
const ROOT_URL = `http://api.openweathermap.org/data/2.5/forecast?appid=${API_KEY}`
export const FETCH_WEATHER = 'FETCH_WEATHER';
export function fetchWeather(city) {
const url = `${ROOT_URL}&q=${city},us`;
const request = axios.get(u... |
import colors from 'colors'
import InvalidArgument from '../errors/InvalidArgument.js'
import RouterElement from './RouterElement.js'
/** Middleware element for custom router. */
export default class Middleware extends RouterElement {
/**
* Instanciate Middleware object
*
* @param {string} name Middleware... |
import React, { useCallback, useMemo } from 'react';
import isHotkey from 'is-hotkey';
import { Editable, withReact, Slate, useSlate } from 'slate-react';
import { createEditor, Editor, Transforms } from 'slate';
import { withHistory } from 'slate-history';
import serialize from './HtmlSerializer';
import Box from '@m... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
module.exports = {
threshold: 0.01,
tolerance: 0.0015,
config: {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
x: {
type: 'timeseries',
time: {
... |
import React from 'react';
import './App.css';
import Head from "./Components/head"
import Footer from "./Components/footer"
import List from "./Components/list"
function App() {
return (
<div>
<Head/>
<div className="App">
<br/><br/>
<List/>
</div>
<Footer/>
</... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default function NavbarMenu({
active,
children,
className,
component,
...props
}) {
const Element = component;
const classes = classNames('navbar-menu', className, {
'is-active': active,
});
... |
import React from 'react';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
import IEmpty from './index';
describe("Test IEmpty component on the self's props", () => {
beforeEach(() => {
jest.useFakeTimers();
});
afterEach... |
import * as store from './store';
var defaultVertexSource =
'\
attribute vec2 vertex;\
attribute vec2 _texCoord;\
varying vec2 texCoord;\
void main() {\
texCoord = _texCoord;\
gl_Position = vec4(vertex * 2.0 - 1.0, 0.0, 1.0);\
}';
var defaultFragmentSource =
'\
uniform sampler2D texture;\
varying vec2 texCoor... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
var _lodash = _interopRequireDefault(require("lodash"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const {
asValue,
nameClass
} = require('../../jit/pl... |
//import { browser, element, by } from "protractor"
require('dotenv').config();
var bcscRedirectPage = require('../../pageobjectfactory/bcscredirectpage');
var landingPage = require('../../pageobjectfactory/landingpage');
var bcscRedirectPage = require('../../pageobjectfactory/bcscredirectpage');
var orgVerificati... |
import { border, brand } from "../../variables";
/*
DISCLAIMER:
Do not change this file because it is core styling.
Customizing core files will make updating Atlas much more difficult in the future.
To customize any core styling, copy the part you want to customize to styles/native/app/ so the core styling is overwrit... |
const HttpError = require('http-errors');
const flattenObject = require('flattenjs');
const { ObjectId } = require('mongodb');
const {
flatten, omit, get, mapValues, pick, omitBy, isString, reduce, merge, isFunction,
} = require('lodash');
const pluralize = require('pluralize');
const isSafeRegex = require('safe-rege... |
/*!
* tui-code-snippet.js
* @version 1.3.0
* @author NHNEnt FE Development Lab <dl_javascript@nhnent.com>
* @license MIT
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' ... |
/**
* Copyright (c) INOVUA SOFTWARE TECHNOLOGIES.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export default (value, min, max) => {
if (min == null) {
min = value;
}
return value < min ? min : max != null && va... |
// // table_id:需要转化成json的表格id,返回json数组
// function htmlToJson(table_id){
// var table = angular.element('#'+table_id);
// var data = [];
//
// if(!table.length){
// return data;
// }
//
// var vtable = table.clone();
//
// var thead = [];
// // 这里表头如果是用的td可以在find里面写成 tr:first-child t... |
/**
* Kendo UI v2016.2.607 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
/**
* Copyright © 2018 by Pyriter
* Author: Phong Vuong (pyriter.io@gmail.com)
*/
"use strict";
const assert = require('chai').assert;
const api = require("../../../src/services/robinhood.services");
const credentials = require('../../../test-credentials.config');
const stock = "AAPL";
describe('Instruments', () =... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'sr-latn', {
alt: 'Alternativni tekst',
btnUpload: 'Pošalji na server',
captioned: 'Captioned image', // MISSING
infoTab: 'Info slike',
... |
/*! ramp-theme-fgp-int 12-06-2015 14:29:13 : v. 5.5.0-4
*
* RAMP GIS viewer - Groundhog; Sample of an implementation of RAMP with Intranet Theme
**/
define(["dojo/_base/lang","utils/tmplUtil"],function(a,b){"use strict";return{dataBuilder:function(a,c){var d={data:null,config:null,str:null,lyr:null,fn:null},e=Obj... |
/* global sinon, QUnit*/
sap.ui.require([
'sap/ui/model/Model',
'sap/ui/core/message/Message',
'sap/ui/core/library',
'sap/ui/core/ComponentContainer',
'sap/ui/model/json/JSONModel',
'sap/ui/core/UIComponent'
], function(Model, Message, library, ComponentContainer, JSONModel, UIComponent){
"use strict";
var oMo... |
function update(event) {
// var event =
const api = 'https://www.thebluealliance.com/api/v3/event/' + event + '/matches?X-TBA-Auth-Key=aSeFMfnmXUczi0DbldlhqJ6u2EyCgEt3XcQyFtElytJCdRHj7swAs8S2vatmCeBX';
var json;
var LRL = [];
var RLR = [];
var LLL = [];
var RRR = [];
var obj = {};
v... |
/**
* Combines one or more files to display in the terminal output
* Usage: cat file1.txt file2.txt
*/
import parseOptions from '../parser/option-parser';
import * as FileOp from '../fs/operations-with-permissions/file-operations';
import * as OutputFactory from '../emulator-output/output-factory';
import { resolveP... |
"use strict";
var path = require("path");
var process = require("process");
var childProcess = require("child_process");
var chalk_1 = require("chalk");
var fs = require("fs");
var micromatch = require("micromatch");
var os = require("os");
var isString = require("lodash/isString");
var isFunction = require("lodash/isF... |
module.exports.run = (bot, message, args, discord) => {
if (message.channel.type == "dm") {
message.channel.send("There is no guild to get the id from!")
} else {
message.channel.send(`Server ID: ${message.channel.guild.id}`)
}
}
module.exports.help = {
name: "serverid"
} |
const got = require('got');
const clientV1 = got.extend({
prefixUrl: 'https://ipna.herokuapp.com/v1/',
headers: {
'Content-Type': 'application/json'
},
responseType: 'json'
});
module.exports = { clientV1 } |
const target = {
id: 'target',
foo: 'bar',
};
Object.defineProperty(target, 'foo1', {
configurable: false,
});
const handler = {
// a cumbersome way to execute the native method logic
// get(trapTarget, property, receiver) {
// if (property === "foo") {
// return "intercepted v... |
"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... |
/**
* Reference tag
*
* Syntax:
* {% __reference %}
* + [Link](url)
* ...
* {% end__reference %}
*/
function r_wrap(ctx) {
return function referenceTag(args, content) {
const __ = ctx.theme.i18n.__(ctx.theme.i18n.languages); // i18n
var renderedText = ctx.render.renderSync({text: con... |
/* KindEditor 4.1.10 (2013-11-23), Copyright (C) kindsoft.net, Licence: http://www.kindsoft.net/license.php */(function(w,i){function Z(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Array]"}function wa(a){if(!a)return!1;return Object.prototype.toString.call(a)==="[object Function]"}function J(a,... |
/*
* modals.js
*
* Demo JavaScript used for modals.
*/
"use strict";
$(document).ready(function(){
//===== Modals & Dialogs =====//
}); |
var dir_59ce701f2525fbe9cbb57c2ffffde7ff =
[
[ "algorithms.hpp", "indexing__suite_2algorithms_8hpp_source.html", null ],
[ "container_proxy.hpp", "indexing__suite_2container__proxy_8hpp_source.html", null ],
[ "container_suite.hpp", "indexing__suite_2container__suite_8hpp_source.html", null ],
[ "contai... |
// Copyright (C) 2017 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: |
Collection of assertion functions used throughout test262
defines: [assert]
---*/
function assert(mustBeTrue, message) {
if (mustBeTrue === true) {
... |
module.exports={A:{A:{"1":"A B","2":"L H G E jB"},B:{"1":"C D d K I N J BB"},C:{"1":"0 1 2 3 5 6 7 8 9 F L H G E A B C D d K I N J P Q R S T U V W X Y Z a b c e f g h i j k l m n o M q r s t u v w x y z AB CB DB EB O GB HB","2":"gB IB aB ZB"},D:{"1":"0 1 3 5 6 7 8 9 K I N J P Q R S T U V W X Y Z a b c e f g h i j k l m... |
/// <reference path="../typings/tsd.d.ts" />
var app;
(function (app) {
angular.module('productManagement', []);
})(app || (app = {})); |
const express = require('express')
const app = express()
const PORT = 8888
const bodyParser = require('body-parser')
const cors = require('cors')
const fs = require('fs')
const nodemailer = require('nodemailer')
const { google } = require('googleapis')
const OAuth2 = google.auth.OAuth2
const config = require('./config... |
//# sourceMappingURL=1-d1827376c8c2ea0887d9.js.map |
// @flow
import type { bottomCategoryStateType } from '../types/componentSelectorHeader';
import {
COMPONENTS,
CONTAINERS,
CUSTOM
} from '../types/componentSelectorHeader';
export const SELECT_BOTTOM_CATEGORY: 'SELECT_BOTTOM_CATEGORY' =
'SELECT_BOTTOM_CATEGORY';
export const changeBottomCategory = (data: bot... |
define(function (require) {
'use strict';
var componentContainerMixin,
_ = require('underscore');
componentContainerMixin = {
/**
* Getter/setter for components
*
* @param {string} name
* @param {BaseComponent=} component to set
*/
pageC... |
import React from 'react';
import cn from 'classnames';
import './ButtonAction.css';
const ButtonActionType = {
default: 'default',
service: 'service',
events: 'events',
};
export const ButtonAction = ({
type = ButtonActionType.default,
onClick = () => {},
active = false,
label,
children,
}) => (
<b... |
const fs = require('fs')
const crypto = require('crypto')
/**
* Transforms the result of readFile into a promise
* @param {String} url the file url
*/
const readFile = url => new Promise((res, rej) =>
fs.readFile(url, 'utf8', (err, data) => {
if (err) return rej(err)
return res(data)
}))
/**
* Spreads... |
const tokens = {
admin: {
token: 'admin-token'
},
editor: {
token: 'editor-token'
},
shop: {
token: 'shop-token'
},
}
const users = {
'admin-token': {
roles: ['admin'],
introduction: 'I am a super administrator',
avatar: 'http://www.zhongjubang.com/api/upload/companylogo.png',
... |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.gradient.object.invalidoffset
// Description:
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js");
var t = async_test("");
var t_pass = t.done.... |
const context = require('./contextFixture.js');
const report = require('../../lib/reporters/report.js');
describe('Terminal reporter', () => {
it('produces colored terminal output', () => {
context.reporter = 'terminal';
const snippet = report(
context,
context.instructions[1],
context.ins... |
import axios from 'axios';
import router from '@/router';
import { AtomSpinner } from 'epic-spinners';
import sortBy from 'lodash/sortBy';
import shared from '@/shared/shared';
import moment from 'moment';
import getSymbolFromCurrency from 'currency-symbol-map';
import Highcharts from 'highcharts';
import stockInit fr... |
(function(a){if(typeof define==="function"&&define.amd){define(["../datepicker"],a)}else{a(jQuery.datepicker)}}(function(a){a.regional.tr={closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kası... |
// Docsify Setup
window.$docsify = {
name: 'aerobase-angular',
repo: 'ssh://git@github.com/aerobase/aerobase-angular',
auto2top: true,
homepage: 'docs/en/README',
alias: {},
coverpage: {
'/': 'docs/en/_coverpage.md',
'/pt/': 'docs/pt/_coverpage.md'
},
onlyCover: false,
executeScript: true,
l... |
import { Button } from 'components/layout/button/button';
import React from 'react';
import PropTypes from 'prop-types';
import styles from './footer-call-to-action.style.scss';
export const FooterCallToAction = (props) => {
const { onClick } = props;
return (
<div className={styles.root}>
<div classNam... |
Number.parseFloat("3.14");
Number.parseInt("10"); |
var popup = (function(configModule) {
var dce = function(str) { return document.createElement(str); };
var cfg = configModule.popupConfirmBox;
var popupBoxTemplate = dce('li');
popupBoxTemplate.innerHTML = cfg.innerHTML;
var createPopup = function(event, userAgent) {
(function(event) {
// TODO: In... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";(function(t,n){
/*!
* Vue.js v2.5.22
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
//# sourceMappingURL=index.ec749f1.js.map |
import { defineConfig } from 'tsup'
import BuildConfig from '../../tsup.config'
import { lessLoader } from 'esbuild-plugin-less';
export default defineConfig({
...BuildConfig,
esbuildPlugins: [lessLoader()]
}) |
export const toDate = value => new Date(value);
export const gtNow = value => value > new Date(); |
/**
* @file playlist-loader.js
*
* A state machine that manages the loading, caching, and updating of
* M3U8 playlists.
*
*/
import resolveUrl from './resolve-url';
import {mergeOptions} from 'video.js';
import { isEnabled } from './playlist.js';
import Stream from './stream';
import m3u8 from 'm3u8-parser';
impo... |
const assert = require('assert').strict
const { parseStringPromise } = require('xml2js')
const certToPem = require('./lib/certToPem')
const verifyCert = require('./lib/verifyCert')
const verifyXMLSignature = require('./lib/verifyXMLSignature')
const verifyMessage = require('./lib/verifyMessage')
const getUser = require... |
const HOME = '/'
const routes = {
home: HOME
}
export default routes |
var class_dem_1_1indexing__functor__row__col =
[
[ "MatrixType", "class_dem_1_1indexing__functor__row__col.html#a3b60c9d162a386342f729652fad60710", null ],
[ "indexing_functor_row_col", "class_dem_1_1indexing__functor__row__col.html#a8a7c618f00b1188ffae30d8bf093791f", null ],
[ "operator()", "class_dem_1_1i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.