text stringlengths 2 1.05M |
|---|
module.exports = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M36 384h56c6.6 0 12 5.4 12 12v104c0 6.6-5.4 12-12 12H36c-6.6 0-12-5.4-12-12V396c0-6.6 5.4-12 12-12zm116-36v152c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V348c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12zm128-80v232c0 6.6 5.4 12 12 12h56c6.6... |
function randomNumber(min, max) {
return Math.random() * (max - min) + min;
}
function tailslap(id, by, x, y, angle, spec, radius) {
this.class = 'Object Ability Non Movable'
this.isdead = false;
this.id = id;
this.radius = radius
this.angleupd = true;
this.isbiome = false... |
'use strict';
const Code = require('@hapi/code');
const Lab = require('@hapi/lab');
const Joi = require('../..');
const Helper = require('../helper');
const internals = {};
const { describe, it } = exports.lab = Lab.script();
const { expect } = Code;
describe('alternatives', () => {
it('can be called on it... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
/**
* Copyright 2017, Yahoo Holdings Inc.
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import { get } from '@ember/object';
export default Route.extend({
/**
* @proper... |
import React from 'react';
import logo from '../../assets/trivago_logo.svg';
import {Link} from "react-router-dom";
export default (props) => (
<header className="magazine-header">
<div className="container-wide">
<div className="fixed-header">
<Link to="/">
... |
import React from 'react';
import ReactDOM from 'react-dom';
class SideBar extends React.Component {
constructor(props) {
super(props);
}
render(){
return (
<div>
<div className="btn-group btn-group-justified" role="group" aria-label="..." id="button-grp">
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import Document, { Html, Head, Main, NextScript } from 'next/document';
import config from "../../config"
import "../theme/less/index.less"
class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
rend... |
import { Provider } from 'react-redux'
import React from 'react'
import { storiesOf } from '@storybook/react'
import { CreatorLocks } from '../../components/creator/CreatorLocks'
import createUnlockStore from '../../createUnlockStore'
import { ConfigContext } from '../../utils/withConfig'
import { Web3ServiceContext } ... |
"use strict";
var __importStar =
(this && this.__importStar) ||
function(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var _... |
(function () {
/*global iD*/
window.iD = function () {
window.locale.en = iD.data.en;
window.locale.current('en');
var dispatch = d3.dispatch('enter', 'exit', 'change', 'levelchange'),
context = {};
// https://github.com/openstreetmap/iD/issues/772
// http://mathiasbynens.be/notes/localst... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.map
es5id: 15.4.4.19-3-6
description: >
Array.prototype.map - 'length' is a string containing a positive
number
---*/
function callbackfn(val, ... |
import React from 'react'
import PropTypes from 'prop-types'
import * as S from './styled'
const PostList = ({ slug, background, category, date, timeToRead, title, description }) => (
<S.PostListLink to={slug}>
<S.PostListWrapper>
<S.PostListTag background={background}>{category}</S.PostListTag>
<S.... |
// Copyright (c) 2019, Ovresko Solutions Algerie and contributors
// For license information, please see license.txt
frappe.ui.form.on('Valeur parametre vehicule', {
refresh: function(frm) {
}
});
|
const assert = require('assert');
const pluto99 = require('../dist/pluto99');
const PRECISION = 6;
describe('pluto99()', () => {
it('should return expected values for Julian day 807932.5', () => {
const pluto = pluto99(807932.5);
assert.equal(pluto.x.toFixed(PRECISION), -24.450898);
assert.equal(pluto.y... |
'use strict';
app.controller('deviceController', ['$scope', '$routeParams', 'authService', 'devicesService', 'toaster', 'signalRService',
function ($scope, $routeParams, authService, deviceService, toaster, signalRService) {
$scope.authentication = authService.authentication;
$scope.messageToDevice = null;
$s... |
const Promise = require("bluebird");
const urlLib = require("url");
const uuid = require("uuid/v4");
Promise.config({ warnings: false });
export default function websocket(url) {
//Create the message queue
var messages = [];
//Create the socket
url = url.replace("https://", "wss://").replace("http://", "ws://"... |
import axios from 'axios';
export function getRecipes(
limit = 10,
start = 0,
order = 'asc',
list = ''
){
const request = axios.get(`/api/recipes?limit=${limit}&skip=${start}&order=${order}`)
.then(response => {
if(list) {
ret... |
import i18n from '@/locales'
export default {
created () {
this.singleActions = [
{
label: i18n.t('compute.perform_delete'),
permission: 'keypairs_delete',
action: obj => {
this.createDialog('DeleteResDialog', {
vm: this,
data: [obj],
col... |
import { memo, Fragment, useCallback, useState, useEffect } from "react";
import { connect, useDispatch } from "react-redux";
import debounce from "lodash/debounce";
import { searchItems } from "shell/store/content";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSpinner, faCheck, faTimes... |
const {
applicationContext,
} = require('../../../business/test/createTestApplicationContext');
const { deleteCaseDeadline } = require('./deleteCaseDeadline');
describe('deleteCaseDeadline', () => {
const CASE_DEADLINE_ID = '6805d1ab-18d0-43ec-bafb-654e83405416';
const mockCaseDeadline = {
caseDeadlineId: C... |
/**
* Copyright <%= year %> Telerik AD
*
* 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... |
export const getData = () => {
return new Promise(resolve => {
let data = [
{ name: 'smss.exe', device: 'Stark', path: '\\Device\\HarddiskVolume2\\Windows\\System32\\smss.exe', status: 'scheduled' },
{ name: 'netsh.exe', device: 'Targaryen', path: '\\Device\\HarddiskVolume2\\Windows\... |
'use strict'
var Buffer = require('safe-buffer').Buffer
var bip66 = require('bip66')
var EC_PRIVKEY_EXPORT_DER_COMPRESSED = Buffer.from([
// begin
0x30, 0x81, 0xd3, 0x02, 0x01, 0x01, 0x04, 0x20,
// private key
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var Client = require('azure-iot-device').Client;
var Protocol = require('azure-iot-device-mqtt').Mqtt;
var deviceConnectionString = process.env.DEVICE_C... |
module.exports = {
apps: [{
name: 'demo-ecommerce-backend',
script: './src/index.ts',
watch: true,
instances: 1,
exec_mode: 'fork',
interpreter: 'node',
interpreter_args: '--require ts-node/register --require tsconfig-paths/register',
}],
}
|
'use strict';
const {
MAX_LENGTH,
MIN_LENGTH,
MIN_NUMBER_OF_COUPONS_TO_GENERATE,
ERROR_CONSTANTS
} = require('../constants.js');
const ValidationError = require('../error/validation-error.js');
const {
isArray,
isUndefined,
isInteger,
isString,
isObject,
isEmptyArray
} = require('../validator/valid... |
/*! jQuery UI - v1.11.4 - 2015-03-13
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(t){"function"==typeof define&&define.amd?define(["jquery","./effect"],t):t(jQuery)})(function(t){return t.effects.effect.size=function(e,i){var s,n,o,a=t(this),r=["position","top... |
import React from 'react';
import styles from './styles.scss';
import CSSModules from 'react-css-modules';
export type Props = {}
export type OwnProps = {}
class About extends React.Component<OwnProps & Props> {
render() {
return (
<div styleName="container">
Sup
</div>
... |
module.exports.pdf = {
templateDir: "views/invoices"
};
|
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use... |
define(function(require, exports, module) {
"use strict";
exports.snippetText = require("../requirejs/text!./d.snippets");
exports.scope = "d";
});
|
import {Model} from '@grid/core/infrastructure';
import {serialize} from './get.serialize';
describe('Model serialization to post parameters', () => {
describe('pagination', () => {
it('should set skip/take values', () => {
const model = new Model().pagination({
current: 2,
size: 50
});
const param... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+ZDr":function(t,e,n){"use strict";n("2Spj"),n("0l/t"),n("8+KV"),n("pIFo");var r=n("TqRt");e.__esModule=!0,e.withPrefix=d,e.withAssetPrefix=function(t){return[""].concat([t.replace(/^\//,"")]).join("/")},e.navigateTo=e.replace=e.push=e.navigate=e.default=void 0;... |
import snackbar from ".";
export const SNACKBAR_REQUEST = snackbar.defineType("SNACKBAR_REQUEST");
export const SNACKBAR_CLEAR = snackbar.defineType("SNACKBAR_CLEAR");
export const SNACKBAR_CLEAR_DUCK = snackbar.defineType("SNACKBAR_CLEAR_DUCK");
|
module.exports = {
capitalizeFirstLetter: function (string) {
return string.charAt(0).toUpperCase() + string.slice(1)
},
aRandom: function (length) {
return Math.floor(Math.random() * length)
}
} |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Custom bindings for the mojoPrivate API.
*/
let binding = apiBridge || require('binding').Binding.create('mojoPrivate');
binding.registerCustomH... |
'use strict'
const Hapi = require('hapi')
const server = new Hapi.Server()
server.connection() // no connection details for lambda
// flag so plugins dont get reconfigured
let loaded = false
/**
* Configures the lambda proxy to host hapi.js plugins
* @param plugins An array of plugins to register
*/
exports.confi... |
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undef... |
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... |
import "phoenix_html"
import "./socket"
import "./../../css/admin/admin.scss" |
// Copyright 2014 Samsung Electronics Co., 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
//
// Unless required by applicable la... |
/**
* Load the App component.
* (All the fun stuff happens in "/src/index.js")
*/
import { AppRegistry } from 'react-native';
import AppContainer from './src/';
AppRegistry.registerComponent('roverz', () => AppContainer);
|
import React from "react";
import { Typography, Link } from "@material-ui/core/";
const Attribution = () => {
return (
<Typography variant="caption" display="block" gutterBottom align="center">
Icons made by{" "}
<Link
href="https://www.freepik.com"
color="inherit"
style={{ te... |
// vim: ts=2 sw=2
(function () {
d3.timeline = function() {
var DISPLAY_TYPES = ["circle", "rect"];
var hover = function () {},
mouseover = function () {},
mouseout = function () {},
click = function () {},
scroll = function () {},
labelFunction = fun... |
/**
* @module TypeHeaderUtils
*/
/**
* @typedef TypeEntity
* @prop {String} type Type entry value
* @prop {Object} params Type params, like `q`, `charset`, etc.
*/
/**
* parseHeader - Parse complete type header value for Content-Type and Accept
* headers. Example:
* `text/html;q=1.0, image/png;q=0.1`.
*
* ... |
"use strict";
const NamedResourceManager = require("../NamedResourceManager");
class LocationAreaManager extends NamedResourceManager {
constructor(client) {
super(client, "location-area");
}
}
module.exports = LocationAreaManager;
|
module.exports = {
MONGO_URI: process.env.DB_CONNECTION
}; |
import {AsyncStorage} from '@react-native-community/async-storage';
class AsyncStorageUtil {
static async getAsyncStorage(key) {
return await AsyncStorage.getItem(key).then(response => {
return response;
});
}
static async setAsyncStorage(key, value) {
await AsyncStorage.setItem(key, value).ca... |
import 'can-view-href';
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.ButtonBaseRoot = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithou... |
jQuery(document).ready(function($) {
if ($('select[name=_edd_product_type]').length > 0) {
if ($('select[name=_edd_product_type]').val() == '0') {
$('#edd-software-licensing-custom-expiration').hide();
}
$('select[name=_edd_product_type]').change(function() {
if ($('select[name=_edd_product_type]').val() =... |
!function t(e,n,r){function o(s,c){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n?n:t)},f,f.ex... |
cordova.define("cordova-plugin-device-motion.Acceleration", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... |
import styled from "styled-components";
export const PieceWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
width: 75%;
height: 75%;
/* border: 1px solid black; */
border-radius: 100px;
border: ${(props) => (props.pieceData.isKing ? "1px solid white" : "none")};
-webk... |
!function(e){function r(r){for(var n,l,a=r[0],i=r[1],c=r[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r... |
import Vue from 'vue';
import eventHub from '~/filtered_search/event_hub';
import RecentSearchesDropdownContent from '~/filtered_search/components/recent_searches_dropdown_content';
import '~/filtered_search/filtered_search_token_keys';
const createComponent = (propsData) => {
const Component = Vue.extend(RecentSea... |
(function(){var a=tinymce.dom.Event,c=tinymce.grep,d=tinymce.each,b=tinymce.inArray;function e(j,i,h){var g,k;g=j.createTreeWalker(i,NodeFilter.SHOW_ALL,null,false);while(k=g.nextNode()){if(h){if(!h(k)){return false}}if(k.nodeType==3&&k.nodeValue&&/[^\s\u00a0]+/.test(k.nodeValue)){return false}if(k.nodeType==1&&/^(HR|I... |
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock' |
describe("Step", function() {
let Step;
beforeEach(module("BitriseWorkflowEditor"));
beforeEach(inject(function(_Step_) {
Step = _Step_;
}));
let step;
beforeEach(function() {
step = new Step();
});
const fields = [
{ name: "title", "config_name": "title" },
{ name: "summary", "config_name": "summar... |
var async = require("async");
var ascoltatori = require("ascoltatori");
module.exports = function(moscaSettings, createConnection) {
var instance;
var secondInstance;
var settings;
beforeEach(function(done) {
settings = moscaSettings();
settings.publishNewClient = false;
instance = new mosca.Serve... |
import AppForm from '../app-components/Form/AppForm';
Vue.component('academic-training-form', {
mixins: [AppForm],
props: ['education', 'academic', 'resume'],
data: function () {
return {
form: {
resume_id: this.resume,
education_level_id: '',
... |
//购物车,改变购物的数量值
$(function(){
$('.list dl.top dd.sl a.sub').click(function() {
// 获得当前的商品数量值
var a=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find("input[name='jian']").val();
// 获得当前商品的单价
var b=$(this).parent('dd.sl').parent('dl.top').parent('div.list').find('span.danjia').html();
// ... |
const express = require('express');
const Proto = require('uberproto');
const errorHandler = require('@feathersjs/errors/handler');
const notFound = require('@feathersjs/errors/not-found');
const debug = require('debug')('@feathersjs/express');
const rest = require('./rest');
function feathersExpress (feathersApp) {
... |
/**
* @date 2015-01-06
* @author jialin.hou@raidtalk.com
*/
;(function (window, document, undefined) {
var gg = {};
gg.$ = function (selector, element) {
if (!element) {
element = document;
}
try {
return element.querySelector(selector);
} catch (e) {
}
};
gg.$$ = function ... |
/**
* @module random
*/
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
import PostList from '../components/postList';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
}
render() {
retu... |
;(function(){var instance;var initialized=false;var util={isObject:function(o){return Object.prototype.toString.call(o)==='[object Object]'}};function initWebViewJavascriptBridge(callback){if(initialized){console.log("init has been called.")}else{window.WebViewJavascriptBridge.init(function(message,responseCallback){})... |
import React, { PureComponent } from 'react';
import { Input, Icon } from 'antd';
import styles from './index.less';
export default class EditableItem extends PureComponent {
constructor(props) {
super(props);
this.state = {
value: props.value,
editable: false,
};
}
handleCh... |
import "../wpt-env.js";
/* Delete created databases
*
* Go through each finished test, see if it has an associated database. Close
* that and delete the database. */
add_completion_callback(function (tests) {
for (var i in tests) {
if (tests[i].db) {
tests[i].db.close();
self.ind... |
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: `Tsukie - Lifestyle, technologies, travel... and more`,
author: `minhnh`,
description: `Tsukie - Blog from Tsukie studio. Written articles about lifestyles, technologies (mostly software programming rel... |
export default {
addBtn: {
backgroundColor: '#128fdc',
width: 30,
height: 30,
flex: [0, 0, '30px'],
color: '#fff',
alignSelf: 'flex-end',
boxShadow: '0 0 4px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24)',
},
container: {
display: 'flex',
},
list: {
flex: [1, 1, '90%']... |
/* eslint-disable */module.exports={languageData:{"plurals":function(n,ord){if(ord)return"other";return"other"}},messages:{"% of parent":"\uBD80\uBAA8\uC758 %","% of total":"\uC804\uCCB4\uC758 %","(Events)":"(\uC774\uBCA4\uD2B8)","(Extension)":"\uD655\uC7A5","(already installed)":"(\uC774\uBBF8 \uC124\uCE58\uB428)","(a... |
const router = require('express').Router();
const Model = require('../../database/models/model.js')
const user = require('../controller/userController.js');
const stock = require('../controller/stockController.js');
const portfolio = require('../controller/portfolioController.js');
const portfolioStock = require('../co... |
var sessionId;
sessionId();
function getData() {
var id = document.getElementById("estado").value;
var idCliente = document.getElementById("9028873-ui").value;
var webMethod = "https://www.impeltechnology.com/rest/api/selectQuery?query=select Num_Servicio,R8476682,Orden_de_Servicio,Cliente_Destino,F... |
function updateViewportDimensions(){var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;return{width:x,height:y};}var viewport=updateViewportDimensions();var waitForFinalEvent=(function(){var timers=... |
+function($) {
/**
* Animates sortable table column
*/
var tableSortable = function() {
$('table th.sortable').click(function() {
if ($(this).hasClass('asc')) {
$(this)
.removeClass('asc')
.addClass('desc');
}
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import injectSheets from 'react-jss';
import MQ from 'react-responsive';
// @todo refactor: inject theme
import { query } from 'src/common/theme/breakpoints.js';
import canUseDOM from 'src/common/utils/canUseDOM.js';
import IS_MS from 'src/co... |
// ==UserScript==
// @name Printer friendly AcWing
// @namespace work.pythoner
// @match *://*.acwing.com/*
// @grant GM_registerMenuCommand
// @version 1.3
// @author Hanson Hu
// @description 3/28/2022, 2:18:11 PM
// @homepage https://blog.pythoner.work
// @icon https://blog.py... |
import React from 'react'
import classNames from 'classnames'
import './styles.css'
const Button = ({ text, styleClass }) => (
<button className={styleClass}>{text}</button>
)
Button.defaultProps = {
text: 'click me',
}
export default Button
|
const utils = require('../utils');
// const config = require('@/config').value;
const { getUser, getUserMedia } = require('./twitter-api');
module.exports = async (ctx) => {
const id = ctx.params.id;
const { count } = utils.parseRouteParams(ctx.params.routeParams);
const params = count ? { count } : {};
... |
/*
* Copyright (c) BrownBear, 2018 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (a... |
import React from "react";
import PropTypes from "prop-types";
import styles from "./styles.scss";
import PhotoActions from "components/PhotoActions";
import PhotoComments from "components/PhotoComments";
import TimeStamp from "components/TimeStamp";
import CommentBox from "components/CommentBox";
import UserList from ... |
const config = {
siteMetadata: {
title: `They Work For Us`,
description: `ใครเป็นใคร เคยทำอะไรมาบ้าง ตอนนี้อยู่ตำแหน่งไหน และยกมือสนับสนุนอะไรในสภา`,
author: `@electinth`,
},
pathPrefix: process.env.BASE_PATH || "/",
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
... |
const paths = require('./paths')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const publicPath = paths.servedPath
const shouldUseRelativeAssetPaths = publicPath === './'
const isDev = process.env.NODE_ENV === 'development'
const getStyleLoaders = (cssOptions, preProcessor) => {
const loaders = [
... |
import { merge, sum } from "d3-array";
import { keys } from "d3-collection";
import unique from "./unique";
/**
@function merge
@desc Combines an Array of Objects together and returns a new Object.
@param {Array} objects The Array of objects to be merged together.
@param {Object} aggs An object containi... |
import React from 'react';
import PropTypes from 'prop-types';
import { QA_URL } from 'constants/index';
import PinboardButtonContainer from 'containers/landing-page/header-links/pinboard-button-container';
import styles from './header-links.sass';
export default function HeaderLinks() {
return (
<div classNam... |
import request from '@/utils/request';
export async function fakeSubmitForm(params) {
return request('/api/forms', {
method: 'POST',
data: params,
});
}
export async function getCourseByMiniProgram(params) {
return request(
'http://api.test.hongbeibang.com/backstage/education/getCourseByMiniProgram',
... |
define( [
"jquery",
"./helper",
"ui/widgets/datepicker",
"ui/i18n/datepicker-fr",
"ui/i18n/datepicker-he",
"ui/i18n/datepicker-zh-CN",
"ui/ie"
], function( $, testHelper ) {
module( "datepicker: options" );
test( "setDefaults", function() {
expect( 3 );
testHelper.init( "#inp" );
equal( $.datepicker._defaul... |
import { api } from 'lwc';
import * as testUtil from 'securemoduletest/testUtil';
export const ComponentNonLockerizedMixin = Base => {
return class extends Base {
@api COMPONENT = 'ComponentLockerizedMixin { NS: "secureothernamespace" }';
@api NAME = 'Lockerized! [ParentClass]';
@api BOOL... |
import React, { Component } from 'react';
import styles from './styles.css';
import Img from '../../atoms/Img/index.js';
import Heading from '../../atoms/Heading/index.js';
import { InfoTxt } from '../../atoms/Txt/index.js';
import Time from '../../atoms/Time/index.js';
import MediaObjectLayout from '../../atoms/... |
module.exports = {
collectCoverage: true,
collectCoverageFrom: [
"**/src/**/**.js",
"!**/tests/**.{js,ts}",
"!**/node_modules/**",
],
coverageDirectory: "coverage",
testEnvironment: "node",
automock: false,
// coverageThreshold: {
// global: {
// branches: 100,
// functions: 10... |
(window["webpackJsonpWaveUI"]=window["webpackJsonpWaveUI"]||[]).push([["menu-examples-vue"],{"3f64":function(t,n,e){"use strict";e("f926")},e770:function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("title-link",{attrs:{h2:""}},[t._v("Show on click or on ho... |
const
chai = require('chai'),
SiteTrawler = require('../../../../lib/classes/SiteTrawler.js');
/*
* Set up chai
*/
chai.should();
// Common testing timeout
var timeout = 5*1000;
var basicSiteTrawler = {
subClassSetup: {
id : "Twitter, John Petrucci, Masterclass",
maxResults : 10
... |
const { Client, Message, MessageEmbed } = require('discord.js');
const path = require('path');
const emoji = require('../../emoji.json')
module.exports = {
name: 'arara',
aliases: [''],
description: '',
/**
* @param {Client} client
* @param {Message} message
* @param {String[]} args ... |
export default (options, actions) =>
`
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${options.title || ''}</title>
<link rel="stylesheet" href="${options.stylesheetURL || './lib/html/stylesheet.css'}">
</head>
<body>
<main>
<div class="handle drag-area"></div>
<form name... |
/**
* Created by highlander on 5/7/16.
*/
const TAG = ' | (modules/api) INTERFACE | '
const uuid = require('node-uuid')
const co = require('co')
// const async = require('asyncawait/async')
// const await = require('asyncawait/await')
// const Redis = require('promise-redis')();
// const redis = Redis.createClient()... |
//! moment.js
//! version : 2.10.2
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(fact... |
window['__demo']={"hello":"Hello {name}!qqq","__name__":"en-US"}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.