text stringlengths 2 1.04M |
|---|
/* CELSIUS EM FAHRENHEIT (VICE VERSA)
* Crie uma função que receba uma string em celsius ou fahrenheit e faça a transformação de uma unidade para outra
C = (F - 32) * 5/8
F = C * 9/5 + 32
*/
function transformDegree(degree) {
const celsiusExists = degree.toUpperCase().includes('C')
co... |
layui.use('upload', function(){
var $ = layui.jquery,
upload = layui.upload;
var duotu = true;
upload.render({
elem: '#test2',
url: '/admin/upload/imgs',
multiple: duotu,
data: {'_csrf':'TlhROE5NRVB8HwdpFCIUfXsqKV0FAyoHHQkaaSEBHCAlNzUIOS4EPw=='},
done: function(res){
var imgName =... |
/*******************************************************************************
* Licensed Materials - Property of IBM
* © Copyright IBM Corporation 2017. All Rights Reserved.
*
* Note to U.S. Government Users Restricted Rights:
* Use, duplication or disclosure restricted by GSA ADP Schedule
* Contract with IBM ... |
var common = require("./editable-text-base-common");
var enums = require("ui/enums");
var EditableTextBase = (function (_super) {
__extends(EditableTextBase, _super);
function EditableTextBase(options) {
_super.call(this, options);
}
EditableTextBase.prototype.dismissSoftInput = function () {
... |
var ebml = require('../lib/ebml/index.js'),
assert = require('assert');
describe('embl', function() {
describe('Pipeline', function() {
it('should output input buffer', function(done) {
var decoder = new ebml.Decoder();
var encoder = new ebml.Encoder();
var buffer = ... |
// Copyright 2015 Joyent, Inc.
module.exports = {
read: read,
readPkcs1: readPkcs1,
write: write,
writePkcs1: writePkcs1
};
var assert = require('assert-plus');
var asn1 = require('asn1');
var algs = require('../algs');
var utils = require('../utils');
var Key = require('../key');
var PrivateKey = require('../pr... |
5; |
/**
* Plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
define(
'tinymce.plugins.code.Plugin',
[
'tinymce.core.PluginManager',
'tinymce.plugins.code.... |
import React from "react"
import PropTypes from "prop-types"
import reduxFormField from "./../../../utils/reduxFormField"
import { Select } from "antd"
const Option = Select.Option
const Select1 = props => {
return (
<div style={{ marginBottom: "25px" }}>
<p className="label">{props.label}</p>
<Sel... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
export { default as Button } from "./Button";
export { default as Container } from "./Container";
export { default as Icon } from "./Icon";
export { default as WombakLogo } from "./WombakLogo"; |
console.clear();
function updateInventory(arr1, arr2) {
// All inventory must be accounted for or you're fired!
/*
Reversing done!
console.log( reverser( reverser( arr1 ).sort() ) );
*/
arr2.map( function(i){
let reminder = 0;
arr1.map( function(j){
if( j[1]... |
'use strict'
/* global describe, it, beforeEach */
const checkUsage = require('./helpers/utils').checkOutput
const expect = require('chai').expect
const english = require('../locales/en.json')
let yargs = require('../')
require('chai').should()
describe('validation tests', () => {
beforeEach(() => {
yargs.rese... |
const fs = require('fs');
module.exports = function() {
this.addOccurrences = (stringTally, inputString) => {
for(let i = 0; i < inputString.length; ++i) {
if (stringTally[i] === undefined || stringTally[i] === null) {
stringTally[i] = {};
}
let positionTally = stringTally[i];
le... |
import { rollupTypescript } from "../../scripts/rollup";
export default rollupTypescript("node/index", {
external: ["@vuepress/utils", "vuepress-plugin-sass-palette"],
}); |
/*! kjua v0.6.0 - https://larsjung.de/kjua/ */ |
/**
* @author arman
* @since 8/20/18
*
*/
'use strict';
import React from 'react';
import isUrl from 'is-url';
import styled from 'react-emotion';
import { Block, Value } from 'slate';
import initialValue from './value.json';
import App from './app.component';
import ListItemContainer from './list-item.container';... |
import React from 'react';
import { ProgressBarDefault } from './index';
export default class ProgressBarKitchenSink extends React.Component {
render() {
return (
<React.Fragment>
<ProgressBarDefault />
</React.Fragment>
);
}
} |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/et/i18nBase",{general:{cancel:"T\u00fchista",close:"Sulge",none:"Puudub",ok:"OK",other:"Muu",stamp:"Tempel",now:"Praegu",choose:"Val... |
module.exports = {
name: 'landing',
preset: '../../jest.preset.js',
globals: {
'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' },
},
transform: {
'^.+\\.(ts|html)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'js', 'html'],
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageD... |
/**
* Search Console Settings stories.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICEN... |
"use strict";
var NotificationService = require('../services/notification-service');
var token_auth = require('../../JWT_Checker/loginToken');
var express = require('express');
var router = express.Router();
var service = new NotificationService();
router.get('/list', token_auth, function (req, res) {
service.getLi... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | planning-event/panel', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (... |
describe('Hotel collection specs', () => {
it('should fetch 2 hotels and show it in screen when visit /hotels urls', () => {
// Arrange
const params = {
apiPath: '/hotels',
fixture: 'fixture:hotels',
fetchAlias: 'fetchHotels',
};
// Act
cy.loadData(params);
cy.visit('#/hotel... |
/*
@license
dhtmlxScheduler v.5.3.11 Standard
To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com
(c) XB Software Ltd.
*/
Sch... |
function parseJson(s) {
var XSSI_PREFIX = ")]}'";
return JSON.parse(s.replace(XSSI_PREFIX, ""));
}
function onSubmitButtonClick(key, xsrfToken, button) {
var formData = $("#" + key).serializeArray();
var request = JSON.stringify({
"xsrf_token": xsrfToken,
"key": key,
"payload": {
"form_data":... |
const inquirer = require("inquirer");
const Employee = require("./models/Employee");
const Role = require("./models/Role");
const Department = require("./models/Department");
const cTable = require("console.table");
const { raw } = require("express");
// Sets up the information to be displayed in the table shown in th... |
import inquirer from 'inquirer';
import prettyjson from 'prettyjson';
import emoji from 'node-emoji';
import chalk from 'chalk';
import { validateNumber } from '../utils';
export default async sqs => {
const DEFAULT_MAX_NUMBER_OF_MESSAGES = 1;
const DEFAULT_WAIT_TIME_SECONDS = 10;
const DEFAULT_VISIBILITY_TIMEOU... |
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const UserSchema = new Schema({
email: {
type: String,
trim: true,
unique: true,
required: "Please enter an email",
},
password: { type: String, trim: true, required: "Please enter a password" },
firstName: { type: String, t... |
/**
* @ngdoc service
* @name refigureShared.services:errorInterceptor
* @description
* HttpProvider Error interceptor
*/
(function (angular) {
'use strict';
angular
.module('refigureShared')
.factory('errorInterceptor', errorInterceptor);
errorInterceptor.$inject = [
'$q',
... |
const dropContainer = document.getElementById('drop-zone');
const fileInput = document.getElementById('file-input');
fileInput.onchange = function (e) {
onFileChange(e);
};
dropContainer.ondragover = dropContainer.ondragenter = function (evt) {
evt.preventDefault();
};
function onDrop(evt) {
// pretty si... |
export const getApps = jest.fn().mockReturnValue([]);
export const initializeApp = jest.fn(); |
$(function() {
$('.post-item-card').click(function(e) {
window.location.href = $(this).attr('post-path');
});
}) |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "../release/go", "./Polylin... |
module.exports = {
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
reactStrictMode: true,
trailingSlash: true,
productionBrowserSourceMaps: true,
webpack: (config, _options) => {
config.modul... |
Ext.gesture.Drag = Ext.extend(Ext.gesture.Touch, {
handles: ['dragstart', 'drag', 'dragend'],
dragThreshold: 5,
direction: 'both',
horizontal: false,
vertical: false,
constructor: function() {
Ext.gesture.Drag.superclass.constructor.apply(this, arguments);
if (this.direction... |
import { v4 as uuidv4 } from 'uuid'
const validEvents = {
identify: 'identify',
group: 'group',
session: 'session',
pageview: 'pageview',
screenview: 'screenview',
action: 'action',
}
export default class Event {
/**
*
* @param {string} event - Event type to create
* @param {Object} config - Ev... |
// 검색어 enter
$("#fullTextSearch").keyup(function(e) {
if(e.keyCode == 13) {
if(fullTextSearchCheck()) {
fullTextSearch();
}
}
});
// 검색 버튼을 눌렀을때
$("#fullTextSearchButton").click(function() {
if(fullTextSearchCheck()) {
fullTextSearch();
}
});
// 닫기 버튼 클릭
$('#districtSearchCloseButton').click(function() {
... |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { includes } from 'lodash';
import { FormattedDate, FormattedMessage } from 'react-intl';
import expenseStatus from '../../lib/constants/expense-status';
import expenseTypes from '../../lib/constants/expenseTypes';
import { PayoutMetho... |
// LICENSE@@@
//
// Copyright (c) 2009-2013 LG Electronics, 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 require... |
import React, { Component } from "react"
import SEO from "components/seo"
import Header from "components/header"
import { StickyContainer } from "react-sticky"
import UnAuthResultWrapper from "../../../components/trip/unauth-result"
import { connect } from "react-redux"
import omit from "../../../../node_modules/loda... |
/** Source Code Line Manager Class
This class takes some Source Code Adapter to construct its indexed collection of source
code lines. This manager will command the Source Code Lines.
Rules:
- A Source Code Adapter must be passed in the constructor
- Assumes existence of SourceCode class
- Us... |
'use strict'
const nodemailer = require('nodemailer')
const store = require('../src/componentes/users/store')
const { config } = require('../config/config')
const { unauthorized } = require('@hapi/boom')
const jwt = require('jsonwebtoken')
const AdminEmail = config.AdminEmail
const emailpass = config.EmailPass
async ... |
(function() {
'use strict';
angular.module('todos')
.service('TodoResources', TodoResources);
TodoResources.$inject = ['TodoConsts'];
function TodoResources(TodoConsts) {
this.todosPath = TodoConsts.api.path.todos;
this.todosParamNoCache = TodoConsts.api.param.noCache;
}
})()... |
/* bubbleChart creation function. Returns a function that will
* instantiate a new bubble chart given a DOM element to display
* it in and a dataset to visualize.
*
* Organization and style inspired by:
* https://bost.ocks.org/mike/chart/
*
*/
// ==============================================================... |
//=require rspec.js |
const winston = require("winston");
const common = require("./common")
require('winston-daily-rotate-file');
const tsFormat = () => (new Date()).toLocaleTimeString();
var logger = new(winston.Logger)({
transports: [
// colorize the output to the console
new(winston.transports.Console)({
... |
var HeaderFW = Object.getPrototypeOf(app).HeaderFW = new Component("headerFW");
// HeaderFW.debug = false;
HeaderFW.createdAt = "1.0.0";
HeaderFW.lastUpdate = "1.4.10";
HeaderFW.version = "1.3.1";
// HeaderFW.loadingMsg = "This message will display in the console when component will be loaded.";
He... |
import Cookies from 'js-cookie'
const TokenKey = 'Authorization'
export function getToken() {
return null
// Cookies.get(TokenKey)
}
export function setToken(token) {
return Cookies.set(TokenKey, token)
}
export function removeToken() {
return Cookies.remove(TokenKey)
} |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_vue_views_Articles_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/vue/components/Articles/Articles.vue?vue&type=script&lang=j... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Html5Fill = {
name: 'html5',
theme: 'fill',
icon: {
tag: 'svg',
attrs: { viewBox: '64 64 896 896', focusable: false },
children: [
{
tag: 'path',
attrs: {
... |
import React, { Component } from 'react'
import { getIpfsGateway } from 'utils/config'
class Gallery extends Component {
state = { active: 0 }
render() {
const { pics } = this.props
const active = pics[this.state.active]
const ipfsGateway = getIpfsGateway()
if (!active) return null
return (
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
import { NgModule, InjectionToken } from '@angular/core';
import { FlatpickrDirective } from './flatpickr.directive';
import { FlatpickrDefaults } from './flatpickr-defaults.service';
import * as ɵngcc0 from '@angular/core';
export const... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var util_1 = require("./parser/util");
var isExportArray = function (e) {
return e.startsWith('[') && e.endsWith(']');
};
var parseExportArray = function (e) {
return e
.replace('[', '')
.replace(']', '')
.split... |
// Must turn these off so we don't have CA file supplied automatically.
TestData.usex509 = false;
TestData.useSSL = false;
var SERVER_CERT = "jstests/libs/server.pem";
var CLIENT_CERT = "jstests/libs/client.pem";
var CLIENT_USER = "C=US,ST=New York,L=New York City,O=MongoDB,OU=KernelUser,CN=client";
jsTest.log("Asser... |
sourceset_dependencies='{":flippable:dokkaHtml/androidTestRelease":[],":flippable:dokkaHtml/debug":[],":flippable:dokkaHtml/main":[],":flippable:dokkaHtml/release":[]}' |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
export function treatAsUTC(date) {
var result = new Date(date);
result.setMinutes(result.getMinutes() - result.getTimezoneOffset());
return result;
}
export const millisecondsPerDay = 24 * 60 * 60 * 1000;
export function daysBetween(startDate, endDate) {
return (treatAsUTC(endDate) - treatAsUTC(startDa... |
/**
* @typedef {Object} Item
* @name items
* @property {string} name Unique name for the item.
* @property {string} label Label of the item.
* @property {string} iconName The Lightning Design System name of the icon displayed before the item label. Names are written in the format 'standard:account' where 'standard... |
( function( $ ) {
$('.swipebox').swipebox();
} )( jQuery );
var loadImgs = function(jsonPath) {
$.getJSON(jsonPath, function(data){
$("title").text(data["title"]);
var imgHtml = "";
$.each(data["imgs"], function(imgIndex, img){
imgHtml += "<li><img src=\"$src$\" alt=\"$alt$\"/></li>".replace... |
if (typeof console === 'undefined') {
window.console = {
warn: function () {},
error: function () {}
}
}
function hasWarned (msg) {
var count = console.error.calls.count()
var args
while (count--) {
args = console.error.calls.argsFor(count)
if (args.some(containsMsg)) {
return true
... |
const express = require('express');
const router = express.Router();
const controller = require('../controllers/document.controller');
router.post('/', controller.post);
module.exports = router; |
// Packages
import fetch from'isomorphic-unfetch';import retry from'async-retry';import{parse as parseContentType}from'content-type';const fetchAPI=function(path,token=null,opts={}){try{const headers=opts.headers||{};if(token){headers.Authorization=`bearer ${token}`;}// accept path to be a full url or a relative path
/... |
// This file is part of InvenioRequests
// Copyright (C) 2022 CERN.
//
// Invenio RDM Records is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.
import { IS_LOADING, SUCCESS, HAS_ERROR, IS_REFRESHING } from "./actions";
export const ini... |
/**
* @license
* Copyright 2013 Google Inc. 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
var GUI =
(window["webpackJsonpGUI"] = window["webpackJsonpGUI"] || []).push([[1],{
/***/ 1480:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
/* harmony... |
/*
jQWidgets v4.0.0 (2016-Jan)
Copyright (c) 2011-2016 jQWidgets.
License: http://jqwidgets.com/license/
*/
|
'use strict';
var dependencies = [
/* 3rd party */
'ngCookies',
'ngResource',
'ngSanitize',
'ngAnimate',
'ui.router',
'ui.bootstrap',
/* modules */
require('./layout/layout.module.js').name,
require('./home/home.module.js').name,
];
module.exports = angular.module('app', dependencies)
.config(require('./ap... |
export function rewriteRequest(){
try {
const originRequest = wx.request;
Object.defineProperty(wx, 'request', {
configurable:true,
enumerable: true,
writable: true,
value: function(){
let options = arguments[0] || {};
//对于发送错误信息的接口不收集,防止死循环
var regexp = new RegExp("https://xxxx/... |
var path = require('path')
var babelrc = JSON.parse(require('fs').readFileSync('.babelrc').toString())
var pkg = require('./package.json')
var webpack = require('webpack')
var ignore = [
new webpack.IgnorePlugin(/react\/addons/),
new webpack.IgnorePlugin(/react\/lib\/ReactContext/),
new webpack.IgnorePlugi... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.lang.oo.aop"]){dojo._hasResource["dojox.lang.oo.aop"]=true;dojo.provide("dojox.lang.oo.aop");d... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { Link } from 'react-router-dom'
import IconTask from './assets/task.svg'
import IconAccount from './assets/account.svg'
const Nav = styled.nav`
align-items: center;
display: flex;
margin: 0;
position: f... |
define([
'app/config',
'app/map/MapController',
'app/search/Stream',
'dojo/dom-construct',
'dojo/promise/Promise',
'esri/map',
'sinon',
'sinon-chai'
], function (
config,
MapController,
Stream,
domConstruct,
Promise,
Map,
sinon,
sinonChai
) {
c... |
import axios from 'axios'
import { toastr } from 'react-redux-toastr'
import { reset as resetForm, initialize } from 'redux-form'
const BASE_URL = 'http://localhost:3003/api'
export function getList() {
const request = axios.get(`${BASE_URL}/sysMenus`)
return {
type: 'BILLING_CYCLES_FETCHED',
... |
// COPYRIGHT © 2018 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
const question = [[162, 332], [182, 299], [141, 292], [158, 264], [141, 408], [160, 400], [177, 430], [151, 442], [155, 425], [134, 430], [126, 447], [139, 466], [160, 471], [167, 447], [182, 466], [192, 442], [187, 413], [173, 403], [168, 425], [153, 413], [179, 275], [163, 292], [134, 270], [143, 315], [177, 320], [1... |
const Sequelize = require('sequelize')
const db = require('../db')
const TripPlace = db.define('tripplace', {
date: {
type: Sequelize.DATE,
allowNull: false,
validate: {notEmpty: true}
}
})
module.exports = TripPlace |
//Load modules
const npm = require("../modules/NPM.js");
npm.npm();
//load database
dbinit = require("../modules/dbinit.js");
dbinit.dbinit();
//start
module.exports = {
name: "unmute",
description: "[mod] unmute MENTION",
explain: `When a user is muted you can use this command with the users mention to unmute ... |
import Converter from './converter'
import Style from './style/converter'
export default class Drawing extends Converter{
convertStyle(el){
super.convertStyle(...arguments)
var style=this.wordModel.getDirectStyle()
style && style.parse([new this.constructor.Properties(el.style,this)])
}
}
class Properties ex... |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.9
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* Thanks to vor, eskimoblood, spiffistan, FabrizioC
*/
(function (factory) {
if (typeof d... |
/* eslint-env mocha */
'use strict'
const { expect } = require('aegir/utils/chai')
const http = require('../../utils/http')
const sinon = require('sinon')
const testHttpMethod = require('../../utils/test-http-method')
const { AbortSignal } = require('native-abort-controller')
const defaultOptions = {
cidVersion: 0,... |
var namespaces_dup =
[
[ "cmd", "namespacecmd.html", null ],
[ "cuba", "namespacecuba.html", null ],
[ "ruba", "namespaceruba.html", null ]
]; |
const { AuthError, InputError } = require('@kansa/common/errors')
const isTrueish = require('@kansa/common/trueish')
module.exports = function logout(db, req) {
const data = Object.assign({}, req.query, req.body)
const opt = isTrueish(data.reset)
? 'reset'
: isTrueish(data.all)
? 'all'
: null
... |
/// <reference types="Cypress" />
context('basic', () => {
beforeEach(() => {
cy.visit('http://localhost:9000', {
timeout: 9000,
});
});
after(() => {
cy.exec('yarn kill-app');
});
it('should display passing test count', () => {
cy.wait(2000);
cy.getByText('test-all-good.spec.js')... |
import { Resource } from '@qgrid/core';
export class ColumnChooserState {
constructor() {
this.resource = new Resource();
this.canAggregate = false;
this.canSort = true;
}
} |
import Uniqid from "../../generator/Uniqid"
export default class CollectionItemController {
constructor() {
this.replace = {
title: '$TITLE$',
text: '$TEXT$'
}
this.id = Uniqid()
this.html = `
<li id="` + this.id + `" class="collection-item">
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.SlateReactPlaceholder = {}),global.React));
}(this, (function (exports,React) { 'use ... |
function getCell(planet, x, y) {
return planet.cells[x + y * planet.dimensions.x];
}
function pointerPosition(pos, domNode) {
// pixel pos to grid pos
let rect = domNode.getBoundingClientRect();
return {
x: Math.floor((pos.clientX - rect.left) / scale),
y: Math.floor((pos.clientY - rec... |
import AssetSerializer from '@apps/maha/serializers/asset_serializer'
import Profile from '@apps/maha/models/profile'
import googlephotos from './googlephotos/create'
import Asset from '@apps/maha/models/asset'
import instagram from './instagram/create'
import facebook from './facebook/create'
const getCreate = (servi... |
import * as ActionType from './actions'
export default (history) => () => (next) => (action) => {
switch (action.type) {
case ActionType.PUSH_HISTORY:
history.push(action.payload.href)
break
case ActionType.REPLACE_HISTORY:
history.replace(action.payload.href)
... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-%typedarray%.prototype.set-typedarray-offset
description: >
Throws a TypeError if targetBuffer is detached on ToInteger(offset)
info: >
22.2.3.23.2 %TypedArray%.p... |
// flow-typed signature: e0056fd09a33a332c0ad120f7d50308d
// flow-typed version: 452cd002ef/@testing-library/react_v9.x.x/flow_>=v0.104.x
declare module '@testing-library/react' {
// This type comes from
// https://github.com/facebook/flow/blob/v0.104.0/lib/react-dom.js#L64
declare type ReactDOMTestUtilsThenable... |
const { injectBabelPlugin } = require('react-app-rewired');
module.exports = function override(config) {
config = injectBabelPlugin(['import', { libraryName: 'antd', libraryDirectory: 'es', style: 'css' }], config);
return config;
}; |
import React from 'react';
import { expect } from 'chai';
import { mount } from 'enzyme';
import { Box } from '@material-ui/core';
import { Checkboxes } from './Checkboxes';
import { renderWithStore } from '../../../../test/utils/redux';
import InputComponent from './InputComponent';
let component;
const onChange1 = ... |
CKEDITOR.plugins.setLang("sourcedialog","en-au",{toolbar:"Source",title:"Source"}); |
// Copyright (C) 2019-2020 Paul Rosen (paul at paulrosen dot net)
//
// 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 right... |
var classPHP__Token__ENDIF =
[
[ "__toString", "classPHP__Token__ENDIF.html#acaceb755d410d45b3b701ff0d13c6b76", null ],
[ "getId", "classPHP__Token__ENDIF.html#a2a16dabb2bbd437c2ba1f83d05af3a8a", null ],
[ "getLine", "classPHP__Token__ENDIF.html#a65b3ac33c6861378ee7aa071ba6539eb", null ],
[ "$id", "clas... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
"use strict";
var $fwindow = $(window);
// portfolio menu controler
$fwindow.on("load", function() {
// Animate loader off screen
$(".loader_wrapper").fadeOut("5000");
if ($('.grid').length > 0) {
var $grid = $('.grid').isotope({
// options
itemSelector: '.grid-item',
... |
var loaderUtils = require('loader-utils');
var coffee = require("coffeescript");
var esprima = require('esprima');
var CoverageInstrumentor = require('coffee-coverage/lib/coffeeCoverage').CoverageInstrumentor;
var instrumentor = new CoverageInstrumentor({
instrumentor: 'istanbul'
});
module.exports = function(so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.