text stringlengths 2 1.05M |
|---|
fetch("https://bing-news-search1.p.rapidapi.com/news?safeSearch=Off&textFormat=Raw", {
"method": "GET",
"headers": {
"x-bingapis-sdk": "true",
"x-rapidapi-key": "02fcb00b00mshca77b871d58f815p1b82d4jsn385d5be92e0a",
"x-rapidapi-host": "bing-news-search1.p.rapidapi.com"
}
})
.then(response => {
console.log(resp... |
/**
* @license AngularJS v1.2.10-build.2155+sha.756c52d
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {'use strict';
/**
* @description
*
* This object provides a utility for producing rich Error messages within
* Angular. It can be called as follows... |
/**
* Please provide all your functions in this file.
* Consider using extending built-in objects.
*/
"use strict";
/**
* A URL PARSER
* This function analyses an url.
* Please refer to the "https://de.wikipedia.org/wiki/Uniform_Resource_Locator"
*/
function analyseUrl(pUrl) {
let r = {
host: null
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define('navodyDigitalFrontend', factory) :
(factory());
}(this, (function () { 'use strict';
(function(undefined) {
// Detection from https://github.com/Financial-Ti... |
/* global describe, it */
describe( 'MD2Character', () => {
it( 'is bundlable', () => {
should.exist( Three['MD2Character'] )
} )
it( 'is instanciable', () => {
should.exist( new Three['MD2Character']() )
} )
} )
|
$(document).on('change', '.tipo', function(e) {
var tipo = $(e.currentTarget).val();
if (tipo == 0) {
$('#areas').prop('disabled', true).trigger("chosen:updated");
$('#employees').prop('disabled', true).trigger("chosen:updated");
} else if (tipo == 1) {
$('#areas').prop('disabled', f... |
import request from 'supertest';
jest.setTimeout(100 * 1000);
global.API_URL = 'http://localhost:3000';
global.request = request;
|
function Scope(name)
{
if (Scope.prototype.newScopeId === undefined)
{
var scopeId = 0, self = Scope.prototype;
self.newScopeId = function() {
return scopeId++;
}
self.toString = function() {
return "Scope{" + this.name + "(" + this.id + ")}";
}
}
if (!(this instanceof Scope))
return new Sc... |
import React from "react";
import { useGameContext } from "../../context/GameContext"
function GameEnd() {
const { gameState, updateGameState,
playerState, setPlayerState,
draggedCard, setDraggedCard,
dealCards, setGameState
} = useGameContext()
const winningPlayer = () => {
const p1Score = game... |
const prettyBytes = require('pretty-bytes');
const observableSlim = require('observable-slim');
const data = require('../data/movies.json');
const mutate = require('./mutate-data');
let changeCount = 0;
let maxMem = 0;
function checkMem() {
const mem = process.memoryUsage();
if (mem.rss > maxMem) maxMem = mem.... |
(function() {
var DropTarget = kendo.ui.DropTarget,
Draggable = kendo.ui.Draggable,
span,
targetElement,
target,
draggable;
module("kendo.ui.DropTarget", {
setup: function() {
span = $("<span/>").appendTo(QUnit.fixt... |
'use strict';
/**
* @fileoverview Match suite descriptions to match a pre-configured regular expression
* @author Alexander Afanasyev
*/
const astUtils = require('../util/ast');
const defaultSuiteNames = [ 'describe', 'context', 'suite' ];
function inlineOptions(context) {
const pattern = new RegExp(context.o... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom'
import update from 'immutability-helper';
import Swiper from 'react-id-swiper';
import SliderHStoreCapture from '../components/SliderHStoreCapture.js'
import $ from 'jquery';
window.jQuery = window.$ = $;
var ReactGA = require('react-ga');
Reac... |
'use strict';
describe('Controller: AssetDeleteCtrl', function () {
// load the controller's module
beforeEach(module('clientApp'));
var AssetDeleteCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Asset... |
/*
* Copyright (c) 2015-2019 Snowflake Computing Inc. All rights reserved.
*/
const snowflake = require('./../../lib/snowflake');
const async = require('async');
const assert = require('assert');
const connOption = require('./connectionOptions');
const testUtil = require('./testUtil');
const Util = require('./../../l... |
var myKeyQueue = [];
document.addEventListener("keydown", function(e) {
var code = {key:(e.charCode !== 0 ? e.charCode : e.keyCode), shift:e.shiftKey};
myKeyQueue.push(code);
processKeyQueue();
});
function processKeyQueue() {
var key = myKeyQueue[0].key;
var shift = myKeyQueue[0].shift;
myKeyQ... |
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { Container, Divider, Grid } from 'semantic-ui-react'
import classNames from 'classnames'
const mID = 'separator'
const Separator = ({ className, isRow, cssClass, id }) => (
<>
{isRow ? (
<Grid.Row className={className}>
... |
import React, { useState, useEffect } from "react";
//Redux
import { createStore, combineReducers, applyMiddleware } from "redux";
import { Provider } from "react-redux";
import ReduxThunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
//Reducer
import {
authReducer,
cartReducer... |
import React, {PureComponent} from 'react';
import {Card, Steps, List, Button, message, Row, Col, Modal, Tag, Input, Form, Divider, Badge, Alert} from 'antd';
import {connect} from 'dva';
import classNames from 'classnames';
import {fetchApiSync} from '../../../utils/rs/Fetch';
import {formatDate} from '../../../utils/... |
// this is the only approach that was significantly faster than using
// str.replace(/\/+$/, '') for strings ending with a lot of / chars and
// containing multiple / chars.
const batchStrings = [
'/'.repeat(1024),
'/'.repeat(512),
'/'.repeat(256),
'/'.repeat(128),
'/'.repeat(64),
'/'.repeat(32),
'/'.repe... |
/*
dhtmlxScheduler v.4.1.0 Stardard
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.config.year_x = 4;
scheduler.config.yea... |
// META: title=EventSource: unknown fields and parsing fun
var test = async_test()
test.step(function() {
var source = new EventSource("resources/message.py?message=data%3Atest%0A%20data%0Adata%0Afoobar%3Axxx%0Ajustsometext%0A%3Athisisacommentyay%0Adata%3Atest")
source.onmessage = function(e... |
// Copyright 2018-2021 Polyaxon, Inc.
//
// 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 agre... |
var utils = require('./utils');
var config;
const { Cc, Ci, Cr, Cu } = require('chrome');
Cu.import('resource://gre/modules/Services.jsm');
const INSTALL_TIME = 132333986000;
// Match this to value in applications-data.js
function debug(msg) {
// dump('-*- webapp-manifest.js: ' + msg + '\n');
}
let io = Cc['@mozill... |
const interval = setInterval(pop,100)
function pop () {
// Quick check if user clicked the button using a keyboard
for (let i = 0; i < Math.floor((delay.delayTime.value/0.6)*30); i++) {
// We call the function createParticle 30 times
// As we need the coordinates of the mouse, we pass them as argument... |
Main.dynamicallyLoadScript(Main.base_url + "/js/campaign-create.js");
$( document ).ready(function() {
$('body').scrollspy({ target: '#nav-create-campaign' });
$('[data-spy="scroll"]').on('activate.bs.scrollspy', function () {
$(".navbar-inverse .active").removeClass("active").parent().addClass("a... |
let cart =[{ name: "Pacotinfo", amount: 2, value: 10.00 }];
function add(item){
cart.push(item);
return cart;
}
function remove(nomeItem){
car = car.filter(produto => produto.name != nomeItem);
return car;
}
function exist(nomeItem){
let itemExiste = car.find(produto => produto.name === nomeItem ? 1 : 0);
... |
import React from 'react'
import {Button, Panel} from 'react-bootstrap'
import {ItemsList} from 'components/common'
function InvoiceListItem ({id, customer, discount, total}) {
return <Panel
bsStyle='info'
header={`Invoice ${id}`}
footer={`Total price is $${total}`}
>
<p>Customer: {customer &&... |
const { Report } = require('../models');
const fs = require('fs');
const GETallReports = async (req, res) => {
try {
const reports = await Report.findAll({ order: [ ['createdAt', 'DESC'] ] });
return res
.status(200)
.render('reports/allReports', {
... |
var fs = require('fs');
var readline = require('readline');
var google = require('googleapis');
var googleAuth = require('google-auth-library');
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/calendar-nodejs-quickstart.json
var SCOPES = ['https://www.googleapis.com/auth/cal... |
'use strict';
var React = require('react')
import css from 'components/AppHeader/AppHeader.css';
import shareImage from '!file?name=[name].[ext]!assets/share_img.png';
var ViewActions = require('actions/ViewActions')
, HeaderMenu = require('components/AppHeader/HeaderMenu')
, GenreHeader = require('components/Ap... |
import Document, { Html, Head, Main, NextScript } from 'next/document'
class MyDocument extends Document {
render() {
return (
<Html>
<Head>
<link
href='https://fonts.googleapis.com/css2?family=Noto%20Sans%20HK&display=optional'
rel='stylesheet'
/>
... |
function increment(selector) {
let container = $(selector);
let fragment = document.createDocumentFragment();
let textArea = $('<textarea>');
let incBtn = $('<button>Increment</button>');
let addBtn = $('<button>Add</button>');
let list = $('<ul>');
textArea.val(0);
textArea.addClass('c... |
define({wrap:"Aplauzt",verticalAlignment:"Vertikālā salāgošana"}); |
require('./dist/sample')
|
// Generated by BUCKLESCRIPT VERSION 4.0.5, PLEASE EDIT WITH CARE
'use strict';
var Spectacle = require("spectacle");
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js");
function make(children) {
return ReasonReact.wrapJsForReason(Spectacle.Fit, { }, children);
}
exports.make = make;
/* spectacle ... |
import React from "react"
// import { rhythm, scale } from "../utils/typography"
import { Link } from "gatsby"
import Image from "./customImage.js"
import P from "../p5/p5"
const Header = () => {
let header
// if (path === rootPath) {
header = (
<div id="header-box">
{/* <div className="home-header">... |
import { equal } from "@ember/object/computed";
import Component from "@ember/component";
export default Component.extend({
planButtonSelected: equal("planTypeIsSelected", true),
paymentButtonSelected: equal("planTypeIsSelected", false),
actions: {
selectPlans() {
this.set("planTypeIsSelected", true);... |
if( typeof module !== 'undefined' )
require( 'wTools' );
var _ = wTools;
// Input element
var got = _.arrayReplace( [ 1, 2, 3, 3, 4 ], 3, 4 );
logger.log( 'Two elements Replaced', got )
var got = _.arrayReplaceOnce( [ 1, 2, 3, 3, 4 ], 3, 4 );
logger.log( 'Two elements Replaced', got )
var got = _.arrayReplaceOnceSt... |
/*
This module runs the scripts from react-scripts (Create React App)
and gives an opportunity to override the Webpack config by creating
a "config-overrides.dev.js" or "config-overrides.prod.js" file in the
root of the project.
The config-override file should export a single function that takes a
... |
import React, { useState, useEffect, useCallback } from 'react';
import { Link, Redirect } from 'react-router-dom';
import { I18n } from 'react-i18next';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { signIn } from 'Actions'
import styles from '../Accounts.scss';
const Sig... |
import Vue from 'vue';
import Vuex from 'vuex'
import App from './App.vue';
import router from './router';
Vue.config.productionTip = false;
Vue.use(Vuex)
new Vue({
router,
render: h => h(App),
}).$mount('#app');
|
/**
* ssh2 sftp client
*/
const { Client } = require('@electerm/ssh2')
const proxySock = require('./socks')
const _ = require('lodash')
const { readRemoteFile, writeRemoteFile } = require('./sftp-file')
const alg = require('./ssh2-alg')
const getPort = require('get-port')
class Sftp {
constructor () {
this.c... |
"use strict";(self.webpackChunkdocusaurus_template=self.webpackChunkdocusaurus_template||[]).push([[6718],{3905:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return u}});var a=n(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}... |
import { NightShiftDark } from './themes/night-shift-dark'
import { NightShiftLight } from './themes/night-shift-light'
import { MacOSDark } from './themes/mac-os-dark'
import { MacOSLight } from './themes/mac-os-light'
import { OneDark } from './themes/one-dark'
import { OneLight } from './themes/one-light'
import { G... |
$(document).ready(function() {
//$('table.highchart').highchartTable();
function financial_position(el)
{
type = $(".report-period-type option:selected").val();
console.log(type);
period= $(el).val();
console.log(period);
if(type && period) {
$.post('/fin... |
/*
* 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 agreed to in writing, software
* distributed u... |
var base_url = $("#txt_base_url").val();
function des_habilitar(a, b) {
$("#btn_nuevo").prop("disabled", b);
$("#btn_modificar").prop("disabled", a);
$("#btn_anular").prop("disabled", a);
$("#btn_aceptar").prop("disabled", a);
$("#btn_cancelar").prop("disabled", a);
$("#cmb_tipo_bloqueo").prop("disabled", a);
... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
export default function debouce(func, wait, immedia... |
import { css, unsafeCSS } from 'lit-element';
import { ImagesCss as twbsImagesCss } from 'twbs-css-string-literals';
/**
* @returns {import('lit-element').CSSResult}
*/
export const ImagesCss = css`${unsafeCSS(twbsImagesCss)}`; |
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.
const awsmobile = {
"aws_project_region": "us-west-2",
"aws_cognito_identity_pool_id": "us-west-2:03510299-fb40-4e52-9ad7-025e3f5d1221",
"aws_cognito_region": "us-west-2",
"aws_user_pools_id": "us-wes... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
"use strict";
var normalize = require("../../document/#/normalize");
var isArray = Array.isArray;
module.exports = function (childIgnored/*, …child*/) {
var result = normalize.apply(this.ownerDocument, arguments);
if (!result) return this;
if (isArray(result)) result.forEach(this.appendChild, this);
else this.ap... |
/*
* 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 agreed to in writing, software
* distributed under the... |
/* eslint no-unused-vars: ["error", { "argsIgnorePattern": "app" }] */
const { resolveFromVersion } = require('../../utils/resolve.utils');
const responseUtils = require('../../utils/response.utils');
const errors = require('../../utils/error.utils');
module.exports.search = function search ({ profile, logger, config,... |
import { SYNC_RENDER, NO_RENDER, FORCE_RENDER, ASYNC_RENDER, ATTR_KEY } from '../constants';
import options from '../options';
import { extend, applyRef } from '../util';
import { enqueueRender } from '../render-queue';
import { getNodeProps } from './index';
import { diff, mounts, diffLevel, flushMounts, recollectNode... |
$(document).ready(function () {
$(function () {
$(".preloader").fadeOut();
$('#side-menu').metisMenu();
});
// Theme settings
//Open-Close-right sidebar
$(".right-side-toggle").click(function () {
$(".right-sidebar").slideDown(50);
$(".right-sidebar").toggleClass("shw... |
CKEDITOR.plugins.setLang("a11yhelp","si",{title:"ළඟා වියහැකි ",contents:"උදව් සඳහා අන්තර්ගතය.නික්මයෙමට ESC බොත්තම ඔබන්න",legend:[{name:"පොදු කරුණු",items:[{name:"සංස්කරණ මෙවලම් ",legend:"ඔබන්න ${මෙවලම් තීරු අවධානය} මෙවලම් තීරුවේ එහා මෙහා යෑමට.ඉදිරියට යෑමට හා ආපසු යෑමට මෙවලම් තීරුකාණ්ඩය හා TAB හා SHIFT-TAB .ඉදිරියට යෑමට... |
var _ = require('underscore');
var FormView = require('./__FormView'),
$ = require('jquery'),
Backbone = require('backbone'),
goodsTpl = require('../templates/_entityGoods.tpl');
var config = require('../conf');
Backbone.$ = $;
//** 模型
var Goods = Backbone.Model.extend({
idAttribute: '_id',
urlRoot: config.ap... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Validation
*/
function validateLength (v) {
// a custom validation function for checking string length to be used by the model
return v.length <= 30;
}
/**
* Category Schema
*/
var CategorySc... |
app.controller('saveImportedSummaryController', function ($uibModalInstance, $uibModal, $scope, $rootScope) {
$scope.imported = null;
$scope.notImported = null;
$scope.areThereImported = false;
$scope.areThereNotImported = false;
$scope.showImported = false;
$scope.sortingKey = '';
$scope... |
'use strict';
/**
* Replace parameters in a URL template with values from a `params` object.
*
* Returns an object containing the expanded URL and a dictionary of unused
* parameters.
*
* replaceURLParams('/things/:id', {id: 'foo', q: 'bar'}) =>
* {url: '/things/foo', params: {q: 'bar'}}
*/
function repl... |
'use strict';
const express = require('express');
// import getAllMoviesHandler
const getAllMoviesHandler = require('../API/API.controller');
// import Interface to contact with DB
const Interface = require('../models/Interface');
// import user model
const userModel = require('../models/usersModel');
// create ne... |
'use strict'
/* global describe, it, beforeEach */
const expect = require('chai').expect
const dustcover = require('../')
const Bookshelf = require('./helpers/bookshelf')
const models = require('./helpers/models')
const migrations = require('./helpers/migrations')
const seeds = require('./helpers/seeds')
let bookshelf
... |
$(function() {
var inputkpm = $("#kpm");
$.get(site_url+'Master/sugestkpm', function(data){
inputkpm.typeahead({
source: data,
minLength:1,
});
},'json');
inputkpm.change(function(){
var current = inputkpm.typeahea... |
var gulp = require('gulp');
var coveralls = require('gulp-coveralls');
gulp.task('coveralls', function() {
gulp.src('coverage/**/lcov.info')
.pipe(coveralls());
});
|
const express= require("express")
const router=express.Router()
const {registerUser,loginUser,currentUser, logoutUser, notificationsSubscribe, verifyUser}=require("../controllers/user")
const { checkToken } = require("../middleware/auth")
router.post("/login",loginUser)
router.post("/register",registerUser)
router.get... |
var xdprxss__hw_8h =
[
[ "XDPRXSS_GUID_NBYTES", "xdprxss__hw_8h.html#ga3a6d3739a23b0a6c4742f32e376ef3f5", null ],
[ "XDPRXSS_HW_H_", "xdprxss__hw_8h.html#gaa6c84195ed3863aaf6938c1c24c3e6de", null ],
[ "XDpRxSs_In32", "xdprxss__hw_8h.html#ga240806c20a656dc4d273f6bcd6e024b8", null ],
[ "XDPRXSS_LANE_COUNT... |
import {makeStyles} from '@material-ui/core/styles'
const useStyles = makeStyles(theme => ({
margin: {
margin: theme.spacing(1),
},
menuButton: {
marginRight: 'auto',
},
menuButtonIcon: {
height: '50px',
},
shareButton: {
boxShadow: 'none',
'&:hover': {
backgroundColor: `${theme... |
/**
* Created by yagocarballo on 04/02/2015.
*/
import React, {Component, PropTypes} from 'react';
import { connect } from 'react-redux';
@connect(state => ({
courseId: state.router.params.courseId,
classId: state.router.params.classId,
level: state.router.params.level
}), null)
export default class LevelInfo ... |
import PropTypes from "prop-types";
import React from "react";
require("prismjs/themes/prism-okaidia.css");
import Seo from "../components/Seo";
import Article from "../components/Article";
import Post from "../components/Post";
import { ThemeContext } from "../layouts";
import Back from "../components/Post/Back";
c... |
import { AbVariantDeclaration } from "../AbVariantDeclaration";
test('constructor sets name', () => {
var variant = new AbVariantDeclaration("one");
expect(variant.name()).toEqual("one");
});
test('constructor sets default values', () => {
var variant = new AbVariantDeclaration("one");
expect(variant.weight()).to... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2019 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... |
import { __assign, __extends } from "tslib";
import { each, isArray } from '@antv/util';
import { getDistanceToCenter } from '../../util/coordinate';
import { getPointAngle } from '../../util/coordinate';
import GeometryLabel from './base';
var HALF_PI = Math.PI / 2;
/**
* 极坐标下的图形 label
*/
var PolarLabel = /** @class... |
!function(e){const i=e["en-gb"]=e["en-gb"]||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"","Bulleted List":"Bulleted List",Cancel:"Cancel","Centered image":"Centred image","Change image text ... |
import AbstractPwrCallState from "./AbstractPwrCallState";
import WaitForUserRegState from "./WaitForUserRegState";
import EndState from "./EndState";
import WPCompleteState from "./WPCompleteState";
import TechnicalProblemState from "./TechnicalProblemState";
//>>>> don't change the CUSTOM CODE comments, if you do gen... |
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
/******/... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
/// that the following conditions are met:
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
/// ... |
export default import('x/' + 'y');
|
import React from 'react'
import styled from 'styled-components'
import mq from '@styles/media-queries'
import Heading from './heading'
import Paragraph from './paragraph'
const Container = styled.div`
text-align: left;
`
const TextContainer = styled.div`
@media ${mq.tablet3_up} {
padding-right: 60px;
}
... |
import { configure, addDecorator } from '@storybook/react';
import { withConsole } from '@storybook/addon-console';
// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.js$/), module);
// console config
addDecorator((storyFn, context) => withConsole()(stor... |
import AddButton from "../AddButton";
import React, { Component } from "react";
import * as types from "../../types";
import { setConfiguration, Container, Row, Col } from 'react-grid-system';
setConfiguration({ gutterWidth: 0 });
import {
orderProperties,
retrieveSchema,
getDefaultRegistry,
getUiOptions,
A... |
const { Emitter, Disposable } = require('event-kit');
const crypto = require('crypto');
const fs = require('fs-plus');
const path = require('path');
// const postcss = require('postcss');
// const selectorParser = require('postcss-selector-parser');
// const StylesElement = require('./styles-element');
// const DEPRECA... |
import React from 'react'
import styled from '@emotion/styled'
import system from '../../../design/theme'
import Zoom from 'react-reveal'
import Checkbox from './Checkbox'
import TimeRangeSlider from './Slider'
import Status from './Status'
import PropTypes from 'prop-types'
const Slider = ({
id,
name,
closedAll... |
//All code will be ready run when the page is rendered
$(document).ready(function() {
//eventListner for the search button
//will find the search value in the search value id
$("#search-button").on("click", function() {
var searchValue = $("#search-value").val();
// clear input box
//sets t... |
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const TerserPlugin = require("terser-webpack-plugin"); // from webpack
const OptimizeCssAssetsPlugin = require("optimize-css-assets-webpack-plugin");
const package = require("./package.json");
/**... |
'use strict';
/*jshint -W117 */
/*jshint globalstrict: true*/
/* jasmine specs for directives go here */
function replacer(k, v) {
if (typeof v === 'function') {
v = v.toString();
} else if (window.File && v instanceof File) {
v = '[File]';
} else if (window.FileList && v instanceof FileLis... |
import React from "react";
import {
GRAY,
WHITE,
LIGHT_GREEN,
TEXT_TITLE
} from "../../utils/webColors";
import {getContentInfo, getDateTimeInFormat, getTimeInFormat} from "../../utils/webHelperFunctions";
import { Card, Typography, Avatar } from "@material-ui/core";
const ChatRoomRightItem = ({ item, styleLis... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.1-.03-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.2... |
/*!
* robust-admin-theme (http://demo.pixinvent.com/robust-admin)
* Copyright 2017 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
$(window).on("load",function(){var scatter_chart_svg=dimple.newSvg("#scatter-chart","100%",500),vertical_lollipop_scatter_svg=dimple.newSvg("#vertical-lollipop-scatter",... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.AiOutlinePicLeft = function AiOutlinePicLeft (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 1024 1024"},"child":[{"tag":"path","attr":{"d":"M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-... |
import collectionTypes from "../../constants/collections";
let initialState = {
[collectionTypes.CATEGORIES]: {},
[collectionTypes.REVIEWS]: {
byUser: {},
byPlace: {},
latestReviews: {},
},
[collectionTypes.USERS]: {},
[collectionTypes.PLACES]: {},
[collectionTypes.OUTFITS]: {},
[collectionTy... |
const Joi = require('joi');
const id = Joi.number().integer().positive().max(32767);
const name = Joi.string().min(2).max(30);
const description = Joi.string().max(255);
const modules = Joi.array();
const limit = Joi.number().integer().min(2);
const offset = Joi.number().integer().min(0);
const filter = Joi.string().... |
//Bootstrap 4 + daemonite material UI + Summernote wysiwyg text editor
//doc : https://github.com/summernote/summernote
$(document).ready(function (){
$('#my-summernote').summernote({
minHeight: 200,
placeholder: 'Escriba aqui ...',
focus: false,
airMode: false,
fontNames: ['Roboto', 'Calibri', '... |
// @ts-nocheck
import { stringToArray, mergeArrays, arrayToString } from './utils.js'
/*
Based heavily on the Streaming Boyer-Moore-Horspool C++ implementation
by Hongli Lai at: https://github.com/FooBarWidget/boyer-moore-horspool
*/
function coerce (a) {
if (a instanceof Uint8Array) {
return (index) => a[in... |
// @flow
import { describe, it } from 'flow-typed-test';
import FakeTimers from '@sinonjs/fake-timers';
describe('@sinonjs/fake-timers', () => {
it('install', () => {
FakeTimers.install({
target: global,
now: 150,
loopLimit: 250,
});
// $ExpectError
FakeTimers.install(true);
});
... |
module.exports = function preamble(config, genesis) {
//
// Set AWS credentials and region.
//
const region = config.credentials.region;
genesis.addProvider('aws', {
access_key: config.credentials.accessKeyId,
secret_key: config.credentials.secretAccessKey,
region,
}, [
`Provider: AWS region... |
function getInternetExplorerVersion() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0) {
// IE 10 or older => return version number
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
}
var trident = ua.indexOf('Trident/');
if (trident > 0) {
... |
import * as UTILS from '../../globals';
const mouse = new WHS.VirtualMouseModule();
const world = new WHS.App([
new WHS.ElementModule(),
new WHS.SceneModule(),
new WHS.CameraModule({
position: new THREE.Vector3(0, 10, 50)
}),
new WHS.RenderingModule({
bgColor: 0x162129,
renderer: {
antial... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.