text stringlengths 2 1.04M |
|---|
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.ha... |
'use strict';
/**
* Created by yghysdr on 2017/4/25.
* 权限判断
*/
const model = require('./model');
const User = model.User;
var verify = async(ctx) => {
let uid = ctx.request.headers.uid || '';
let token = ctx.request.headers.token || '';
//登入
if (ctx.request.url.indexOf('login') != -1) {
retu... |
module.exports = {
theme: '@okta/vuepress-theme-odyssey',
dest: 'dist',
name: 'Odyssey Design System',
title: 'Odyssey Design System',
head: [
[
'meta', {
'og:title': 'Odyssey, the Okta design system',
'og:type': 'article',
'og:url': 'https://odyssey.okta.design',
'og... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectCoreHtml = exports.injectCoreScripts = exports.updateIndexHtml = void 0;
var ionic_global_1 = require("./ionic-global");
var helpers_1 = require("../util/helpers");
var path_1 = require("path");
function updateIndexHtml(context) ... |
const fs = require('fs')
const path = require('path')
const {argv} = require('yargs')
createTempl()
async function createTempl() {
try {
var emptyFunction = `
const { returnObjectInit } = require("../../../plugins/nodeSrc/returnObjectInit")
//AzNodeRest
module.exports = async function (item) {
let retu... |
class Rat {
constructor(name) {
this.name = name;
this.unitedRats = [];
}
unite(otherRat) {
if (otherRat instanceof Rat) {
this.unitedRats.push(otherRat);
}
}
getRats() {
return this.unitedRats;
}
toString() {
return this.name + '\n' + this.unitedRats.map(rat => '##' + rat.name).join('\n'... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import { designSystem, Markdown } from '@commercetools-docs/ui-kit';
import { markdownFragmentToReact } from '@commercetools-docs/gatsby-theme-docs';
import transformURNLinksPlugin from '../utils/transform-urn-links-plu... |
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
... |
/**
@module iopipe
@description
IOpipe helps developers build, connect, and scale code.
Using flows, iopipe simplifies the consumption and integration
of web services through the chaining of kernels,
single-function applications.
Kernels take and transform input, providing straight-forward output
in a... |
/**
* @author mrdoob / http://mrdoob.com/
* @author Mugen87 / https://github.com/Mugen87
*/
THREE.ColladaLoader = function ( manager ) {
THREE.Loader.call( this, manager );
};
THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype ), {
constructor: THREE.ColladaLoader,
load: fu... |
import React, { Component } from 'react';
import classNames from 'classnames';
import './Header.css';
class Header extends Component {
render() {
return <h3 className={classNames('header', this.props.className)}>{this.props.children}</h3>;
}
}
export default Header; |
/*
* /MathJax/config/TeX-AMS_SVG.js
*
* Copyright (c) 2010-2016 The MathJax Consortium
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www... |
export { default as NoMatch } from './NoMatch'
export { default as Homepage } from './Homepage'
export { default as Login } from './Login'
export { default as Pages } from './Pages'
export { default as PageDetails } from './PageDetails' |
/* eslint-disable */
// Generated by gulp svg-icon - do not modify manually
import React, {Component} from 'react';
import PropTypes from 'prop-types';
const iconList = [
'advarsel-sirkel',
'advarsel-trekant',
'advarsel-trekant-fylt',
'alarm',
'alarm-ny',
'feil-sirkel-fylt',
'help-circle',
'help-circ... |
/*************************************************************
*
mw.Editor.addController(
'underline',
function () {
}, function () {
}
);
mw.Editor.addController({
name: 'underline',
render: function () {
}... |
var dlib_header = `<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='image_metadata_stylesheet.xsl'?>
<dataset>
<name>dlib face detection dataset generated by ImgLab</name>
<comment>
This dataset is manually crafted or adjusted using ImgLab web tool
Check more detail on https://... |
const { Request: TDS_Request } = require('tedious');
const EventTracker = require('./event-tracker.js');
const Connection = require('./connection.js');
const Query = require('./query.js');
const Result = require('./result.js');
const tarn = require('tarn');
/**
* @typedef {Query | Promise.<Result>} PromiseQuery
*/
... |
import weImportToHive from './index.vue';
export default weImportToHive; |
// META: timeout=long
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.drawImage.nonfinite
// Description:drawImage() with Infinity/NaN is ignored
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("45e1d6de6cbdd6f2ea33d472d566096a.js");
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
* Contributor: Robert Sayre
*/
//------------------------------... |
var templateSelect = element(by.model('template'));
var includeElem = element(by.css('[ng-include]'));
it('should load template1.html', function() {
expect(includeElem.getText()).toMatch(/Content of template1.html/);
});
it('should load template2.html', function() {
if (browser.params.browser == 'firefox') {
... |
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/... |
QUnit.testStart(function() {
const markup = '<div id="container"></div><div id="pgfc"></div>';
$('#qunit-fixture').html(markup);
});
import devices from 'core/devices';
import dataUtils from 'core/element_data';
import renderer from 'core/renderer';
import { triggerShownEvent } from 'events/visibility_change';... |
//Main
function generate(amount = BigInt){
var proxies = ""
for( i = 0; i <= amount; i++){
var proxy = "";
var proxyList = ["http://", "https://", "socks4://", "socks5://"];
var proxyType = proxyList[Math.floor(Math.random() * proxyList.length)];
var proxyPort = Math.floor(Math.... |
// pages/payfail/payfail.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide:... |
var myApp = angular.module('myApp', [], function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
}); |
import React, { Component } from "react";
import "../App.css";
import Sidebar from "./Sidebar";
import Sponsor from "./Sponsor";
export class Side extends Component {
render() {
return (
<div className="sidenav">
<Sidebar />
<Sponsor />
</div>
);
}
}
export default Side; |
var classG____cpp__setup__initPidCandidatev1__Dict =
[
[ "G__cpp_setup_initPidCandidatev1_Dict", "dd/d24/classG____cpp__setup__initPidCandidatev1__Dict.html#a50d91049d7cf8e6ae6e40e5672f5917c", null ],
[ "~G__cpp_setup_initPidCandidatev1_Dict", "dd/d24/classG____cpp__setup__initPidCandidatev1__Dict.html#a91324a8... |
/**
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
import React from 'react'
import PropTypes from 'prop-types'
import { ModalProvider } from './src/components/context/ModalContext'
require('typeface-open-sans')
export const wrapRootElemen... |
(self["webpackChunkdynamic_ui_ion"] = self["webpackChunkdynamic_ui_ion"] || []).push([["node_modules_ionic_core_dist_esm_ion-avatar_3_entry_js"],{
/***/ 305:
/*!*****************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/ion-avatar_3.entry.js ***!
\****************... |
import React from 'react';
import { ToastContainer } from 'react-toastify';
import { Provider } from 'react-redux';
import { Router } from 'react-router-dom';
import './config/ReactotronConfig';
import Routes from './routes';
import history from './services/history';
import store from './store';
import GlobalStyle ... |
import template from './sw-bulk-edit-custom-fields.html.twig';
import './sw-bulk-edit-custom-fields.scss';
const { Component } = Shopware;
Component.extend('sw-bulk-edit-custom-fields', 'sw-custom-field-set-renderer', {
template,
props: {
selectedCustomFields: {
type: Object,
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setBuildscriptDependency = exports.withBuildscriptDependency = void 0;
const config_plugins_1 = require("@expo/config-plugins");
const constants_1 = require("./constants");
/**
* Update `<project>/build.gradle` by adding google-servic... |
// Start this app from your command line with: node hellovalidate.js
// then open in web browser: http://localhost:3000/YOURNAME-HERE
var Hapi = require('hapi');
var Joi = require('joi');
var server = new Hapi.Server();
server.connection({
host: '0.0.0.0',
port: 8000
});
server.route({
method: '*',
path: '/{fir... |
const DEFAULT_CAPACITY = 5;
const NOT_FOUND = -1;
function ArrayList(other) {
this.theItems;
this.theSize;
this.modCount = 0;
this.capacity = DEFAULT_CAPACITY;
this.clear();
if (!other)
return;
if (other.constructor === Array) {
for (var i = 0; i < other.length; i++)
... |
module("Ember Type Checking");
test("Ember.typeOf", function() {
var MockedDate = function() { };
MockedDate.prototype = new Date();
var mockedDate = new MockedDate(),
date = new Date(),
error = new Error('boum'),
object = {a: 'b'};
equal( Ember.typeOf(), 'unde... |
// Selectors
const todoInput = document.querySelector(".todo-input");
const todoButton = document.querySelector(".todo-button");
const todoList = document.querySelector(".todo-list");
const filterOption = document.querySelector(".filter-todo");
// Event Listeners
if (document.readyState !== "loading") {
getTodos()... |
const express = require('express');
const router = express.Router();
const db = require('../../db/connection');
const inputCheck = require('../../utils/inputCheck');
const { route } = require('./partyRoutes');
router.post('/vote', ({body}, res) => {
//data validation
const errors = inputCheck(body, 'voter_id',... |
import { ajax, base } from '../../../../src';
const { NCPopconfirm, NCIcon } = base;
import refer from './refer';
export default function(props) {
ajax({
url: '/ncdemo-web/platform/template/queryTempletFromjson.do',
data: {
pagecode: '20520100',
pk_org: '0001A1100000000005T5',
tenantid: null,
userid: ... |
window.addEventListener('load', function() {
// global options
let duration = 1500;
let prevratio = 0.0;
// observer options
let observeroptions = {
root: null,
rootmargin: "-100px 0px -100px 0px",
threshold: buildthresholdlist()
};
// threshold list
function buildthresholdlist() {
let thresho... |
import React from 'react';
import Header from './component/Header';
import Main from './component/Main';
import logo from './logo.svg';
import './App.css';
class App extends React.Component {
render() {
return (
<React.Fragment>
<Header />
<Main />
</React.Fragment>
)
}
}
expor... |
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
*/
/* eslint-env node */
import assert from 'assert';
function load(key, value) {
return process.env[key] || value;
}
export ... |
function setup() {
createCanvas(windowWidth, windowHeight);
background("purple");
}
function draw() {
face(random(width), random(height), [random(255),random(255),random(255)], [random(255),random(255),random(255)], random(50, 200));
}
function face(x, y, facecolor, eyecolor, size) {
fill(facecolor);
ellips... |
import React, { Component } from 'react';
import { SearchResults } from '../SearchResults/SearchResults';
import Playlist from '../Playlist/Playlist';
import SearchBar from '../SearchBar/SearchBar';
import Deezer from '../../utils/Deezer';
import './App.css';
let api;
if (process.env.NODE_ENV === 'development') {
ap... |
const { src, dest, series } = require('gulp');
const minify = require("gulp-minify");
const concat = require("gulp-concat");
const htmlmin = require("gulp-htmlmin");
const replace = require("gulp-string-replace");
const htmlreplace = require("gulp-html-replace");
const cleanCSS = require("gulp-clean-css");
const plugin... |
(function() {
var currUrl = window.location.href.replace(window.location.hash, '');
var title1 = '维C满满皮肤白白,云顶甜橙纯天然无催熟,就爱橙上一点绿';
var title2 = '【U掌柜】云顶甜橙8个19.9元包邮,1小时送达';
var title3 = '纯天然无催熟,就爱橙上一点绿,云顶甜橙8个19.9元包邮,维C满满皮肤白白!';
var img_url = 'http://wx.urfresh.cn/static/hb/images/orange/orange.jpg';
var hb_url = curr... |
/**
* Schema representing master data for MRD Folder.
* The MRD folder represents the physical case note of the patient.
* See {@tutorial lab-tutorial} for an overview.
*
* @module mrdfolder
*/
// import the necessary modules
var mongoose = require('mongoose');
var resuable = require('../framework/reusableobject... |
const chalk = require('chalk');
const dev = require('./dev');
const build = require('./build');
module.exports = (api, options = {}) => {
const { command, userConfig } = api.context;
const raxComponentPlugin = userConfig.plugins.find(
config =>
Array.isArray(config) && config[0] === 'build-plugin-rax-co... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'et', {
auto: 'Automaatne',
bgColorTitle: 'Tausta värv',
colors: {
'000': 'Must',
'800000': 'Kastanpruun',
'8B4513': 'Sadulapr... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Curry function returns a message wating for dispatching
*
* widgetMessenger('douban', 'rexxar-container')('widget/alert_dialog')
*
*/
exports.default = (function (schema, host) { return function (name) { return function (payload) {
... |
// @flow
import React, { PureComponent } from 'react'
import { View, Text, Image } from 'react-native'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { connectionRoute, homeRoute } from '../common'
import { getConnection } from '../store/connections-store'
import type { Store } ... |
'use strict';
var login = {
// 退出
logout: function () {
yqd.queryAt('.weui-btn_primary', function (e) {
yqd.request({
loader: '退出中',
type: 'POST',
url: 'logout',
data: {
type: 'use',
},
... |
// Alexandre Kaspar <akaspar@mit.edu>
"use strict";
const assert = require('../../assert.js');
const DSL = require('../../dsl.js');
const geom = require('../../geom.js');
const Timer = require('../../timer.js');
const Trace = require('../trace/trace.js');
const noise = require('simplenoise');
const Action = require('.... |
describe('Unit: Constants', function() {
let constants;
beforeEach(function() {
// instantiate the app module
angular.mock.module('app');
// mock the directive
angular.mock.inject((AppSettings) => {
constants = AppSettings;
});
});
it('should exist', function() {
expect(constan... |
import React from 'react';
const About = () => (
<div className="content-container">
<div className="content-title-group not-found">
<h2 className="title">Product Wish List</h2>
<p>
This project was created to help represent a fundamental app written
with React. The shopping theme is ... |
import React,{createContext ,useState} from "react";
import "./index.css";
import {Route, Routes} from "react-router-dom";
import Sepet from "./components/Sepet";
import Toplam from "./components/Toplam";
import { data } from "./data";
import LoginForm from "./components/LoginForm";
export const ProductContext = create... |
const { connect, connection } = require('mongoose');
const connectionString =
process.env.MONGODB_URI || 'mongodb://localhost:27017/social-networkdb';
connect(connectionString, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
module.exports = connection; |
/*! For license information please see 2.4ab83f9b.chunk.js.LICENSE.txt */
//# sourceMappingURL=2.4ab83f9b.chunk.js.map |
import Hammer from "./Hammer";
import assign from "./utils/assign";
import defaults from "./defaults";
import {
INPUT_START,
INPUT_MOVE,
INPUT_END,
INPUT_CANCEL,
DIRECTION_NONE,
DIRECTION_LEFT,
DIRECTION_RIGHT,
DIRECTION_UP,
DIRECTION_DOWN,
DIRECTION_HORIZONTAL,
DIRECTION_VERTICAL,
DIRECTION_AL... |
const TokenScalar = require('../scalars/token.scalar');
const UriScalar = require('../scalars/uri.scalar');
const DateScalar = require('../scalars/date.scalar');
const { GraphQLString } = require('graphql');
/**
* @name exports
* @static
* @summary Arguments for the messageheader query
*/
module.exports = {
code:... |
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of ... |
import compose from 'recompose/compose.js';
import withHandlers from 'recompose/withHandlers.js';
import { connect } from 'react-redux';
import get from 'lodash/get.js';
import withFormHandlers from '../../../../common/handlers/withFormHandlers.js';
import LabForm from './LabForm.js';
const EnhancedLabForm = compose(
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _utils = require('../../src/utils/utils.js');
var _utils2 = _interopRequireDefault(_utils);
var _dom = require('../../src/utils/dom.js');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defaul... |
import React, { useState, useEffect } from 'react'
import { CountryModal } from './CountryModal'
import { HeaderModal } from './HeaderModal'
import { FlagType } from './types'
import { CountryFilter } from './CountryFilter'
import { FlagButton } from './FlagButton'
import { useContext } from './CountryContext'
import {... |
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some W... |
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
var path = require('path');
const server = require('http').Server(app);
const https = require('https')
const querystring = require('querystring')
const port = 5500;
app.use(bodyParser.json());
app.use(bodyParser.urlen... |
function exit(code) {
process.exit( code );
}
module.exports = exit; |
'use strict';
module.exports = {
up: async (queryInterface) => {
const data = [
{
bagId: 1,
stage: 'Ordered',
createdAt: new Date(),
updatedAt: new Date(),
},
];
return queryInterface.bulkInsert('orders', data, {});
},
down: async (queryInterface) => {
... |
const router = require('koa-router')()
const {
getList,
getDetail,
newBlog,
updateBlog,
delBlog
} = require('../controller/blog')
const { SuccessModel, ErrorModel} = require('../model/resModel')
const loginCheck = require('../middleware/loginCheck')
router.prefix('/api/blog') //前缀
router.get('/list', as... |
'use strict';
const { describe, it, expect } = require('../../index');
const ListReporter = require('../ListReporter');
const Printer = require('../utils/Printer');
describe('ListReporter', () => {
it('should print spec execution progress', () => {
const reporter = createReporter();
reporter.suiteStar... |
angular.module('jumpscale')
.directive('chart', function ($timeout, $http) {
return {
restrict: 'A',
link: function (scope, element, attrs) {
var timeoutId;
var selectedStatistic = attrs.ngStat;
scope.statisticsData = [];
var updateChart = funct... |
// JAWStats da translation file
// Last Updated: Sunday, 17th April 2011. 23:15:08
oTranslation = {
"0 seconds - 30 seconds": "0 - 30 sekunder",
"10th": "10.",
"11th": "11.",
"12th": "12.",
"13th": "13.",
"14th": "14.",
"15 minutes - 30 minutes": "15 - 30 minutter",
"15th": "15.",
"1... |
#!/usr/bin/env node --experimental-modules
import { promises as fs } from 'fs'
import chalk from 'chalk'
import cleanup from './clean.js'
import minimist from 'minimist'
import path from 'path'
import pkg from './package.json'
import updateNotifier from 'update-notifier'
import watch from './watch.js'
;(async function... |
if(typeof Raphael !== "undefined") {
// adds a Raphael custom attribute "d" which maps to "path"
// in d3/svg, the definition of a path is specified via attribute "d",
// in raphael, it's specified via attribute "path".
//
// this bridges the two worlds a little
function d3_raphael_addCustomAttr... |
const l10n = require("../helpers/l10n").default;
const id = "EVENT_ACTOR_MOVE_RELATIVE";
const fields = [
{
key: "actorId",
type: "actor",
defaultValue: "$self$"
},
{
key: "x",
label: l10n("FIELD_X"),
type: "number",
min: -31,
max: 31,
width: "50%",
defaultValue: 0
},
... |
var book = {
"name": "IINDUMISO",
"numChapters": 150,
"chapters": {
"1": {
"1": "<sup>1</sup> Hayi inyhweba yomntu ongahambiyo ngecebo labantw' abagwenxa, ongahambiyo ekhondweni lamatshijolo, umnt' ongadlelaniyo nabaphoxisayo.",
"2": "<sup>2</sup> Lowo wonwatyiswa yimiyalelo *kaNdikhoyo, ayetyise emini naseb... |
(function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.async = true;
script.src = "//sd.toneden.io/production/v2/toneden.loader.js";
var entry = document.getElementsByTagName("script")[0];
entry.parentNode.insertBefore(script, entry);
}());
ToneDenReady = win... |
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { Card, Table, Button } from 'antd'
import PropTypes from 'prop-types'
const columns = [
{
title: 'ID',
dataIndex: 'id',
key: 'id'
},
{
title: 'Title',
dataIndex: 'title',
key: 'title',
},
{
ti... |
module.exports = function(wallaby) {
var path = require('path')
process.env.NODE_PATH = path.join(wallaby.localProjectDir, 'node_modules')
return {
files: [
'time.js',
'lib/time.js',
'lib/memorystorage.js',
'lib/mocha-log.js',
],
tests: [
'test/**.js',
],
env: ... |
const { getRatesAmount, getRateArray, getOptimalTimeHash } = require('../../index');
const input = require('./data/input');
const output = require('./data/output');
const ratesArray = getRateArray(input.rates, 7);
const ratesAmount = getRatesAmount(ratesArray);
const devices = input.devices.slice(0, 1);
describe('getO... |
import React, { useCallback, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Header } from "@egovernments/digit-ui-react-components";
import DesktopInbox from "../../components/DesktopInbox";
import MobileInbox from "../../components/MobileInbox";
const Inbox = ({
useNew... |
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./edit-delete.component'));
__export(require('./create-cancel.component'));
//# sourceMappingURL=index.js.map |
/**
* Ducks - https://github.com/huan/ducks
*
* @copyright 2020 Huan LI (李卓桓) <https://github.com/huan>
*
* 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... |
/*
* Created on: 30/10/2018
* Author: Esteban Cabezudo
*/
/* global Core */
/* global templateVariables */
class SquareLinks {
constructor( { id = null, element = null } = {}) {
console.log(`Create Square links`);
this.element = element;
const validateOptions = () => {
if (id !== null) {
... |
const { existsSync } = require('fs')
const { resolve, sep, basename } = require('path')
const spawn = require('cross-spawn')
const { find, indexOf, sortBy } = require('lodash')
const esep = sep.replace('\\', '\\\\')
const defaultOptions = {
input: '',
format: 'stylish',
basename: false,
matcher: undefined,
... |
module.exports = {
// The root of your source code, typically /src
// `<rootDir>` is a token Jest substitutes
roots: ["<rootDir>/themes"],
// Jest transformations -- this adds support for TypeScript
// using ts-jest
transform: {
"^.+\\.tsx?$": "ts-jest",
},
// Runs special logic, such as cleaning ... |
import { toast } from "react-toastify";
import { action, observable, computed } from "mobx";
import BaseStore from "./BaseStore";
import * as api from "../api";
class Status extends BaseStore {
@observable
status = null;
setupStatus = null;
@action
async loadStatus() {
try {
this.loading("status"... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { debou... |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { object, layout, schemaTransforms } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { ItemFileAttachment } from './../ItemFileAttachment';
import { isNodeFile, isNodeGroup, isNodePa... |
/**
* Copyright (c) 2015, Alexander Orzechowski.
*
* 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 rights
* to use, copy, modify, ... |
// [fugu-apis]
const patterns = {
'Service Worker': {
regEx: /navigator\.serviceWorker\.register\s*\(/g,
where: 'JavaScript',
supported: (async () => 'serviceWorker' in navigator)(),
featureDetection: `(async () => 'serviceWorker' in navigator)()`,
documentation:
'https://developer.mozilla.... |
let state = {
response: ''
}
const FetchData = () => {
callApi()
.then(res => {state.response = res.express})
.catch(err => console.log(err));
return state.response;
}
const callApi = async () => {
const response = await fetch('/api/hello');
const body = await response.json();
if (response.status ... |
/**
* @fileoverview A rule to disallow duplicate name in class members.
* @author Toru Nagashima
*/
"use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//---------------------------------------------------... |
const face = require('../../utils/faceBusiness.js')
const model = require('../../utils/modelBusiness.js');
const canvasId = 'canvas2d';
const canvasWebGLId = 'canvasWebGL';
const maxCanvasWidth = 375;
// a url of sprite image
const modelUrl = '../../utils/cat_beard.png';
Page({
data: {
btnText: 'Take a photo',
... |
'use strict';
var LOCAL_URL_PREFIX = 'https://curatedcourses.org/files/';
/**
* Module Dependences
*/
var _ = require('lodash');
var debug = require('debug')('skeleton'); // https://github.com/visionmedia/debug
var cheerio = require('cheerio'); // https://github.com/cheerioj... |
/* @flow */
import type Watcher from './watcher'
import config from '../config'
import { callHook, activateChildComponent } from '../instance/lifecycle'
import {
warn,
nextTick,
devtools
} from '../util/index'
export const MAX_UPDATE_COUNT = 100
const queue: Array<Watcher> = []
const activatedChildren: Array<... |
//
// Inject Email Hunter button on Linkedin profile
//
function injectLinkedinButton() {
var icon = chrome.extension.getURL('shared/img/icon48_white.png');
if (isSalesNavigator()) {
$(".profile-actions").prepend('<button style="margin: 0 10px 0 0;" class="eh_linkedin_button eh_linked_connected"><img src="' + ... |
import { makeRequest } from './make-request';
const BASE_REC_URL = 'http://banner.chaordicsystems.com/v1/recommendations';
export function buildParams(obj) {
const newObj = {};
Object.keys(obj).forEach((key) => {
if (obj[key]) {
newObj[key] = obj[key];
}
});
return Object.keys(newObj).length >... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.