text stringlengths 2 1.04M |
|---|
import React from 'react'
import './style.scss'
import { Mention } from 'antd'
export default function(ReactDOM, mountNode) {
const { toString } = Mention
function onChange(editorState) {
console.log(toString(editorState))
}
ReactDOM.render(
<Mention
style={{ width: '100%', height: 100 }}
... |
import React from "react"
import BackgroundImage from "gatsby-background-image"
import "./BackgroundModule.scss"
const BackgroundModule = ({ backgroundImg, styleClass, children, title }) => {
return (
<BackgroundImage className={styleClass} fluid={backgroundImg}>
<div>
<h1 className="background_cus... |
import * as React from "react";
function IconStrikethrough({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-strikethrough" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fi... |
(t),n)},e(d,t);var v=d.prototype;v.getChannel=function(){return this.channel},v.getCentrifuge=function(){return this._centrifuge},v.subscribe=function(e){var t={method:"subscribe",params:{channel:this.channel}};this._centrifuge.send(t),e&&this.on("message",e)},v.unsubscribe=function(){this._centrifuge._removeSubscripti... |
!function(t){Craft.RecentEntriesWidget=Garnish.Base.extend({params:null,$widget:null,$body:null,$container:null,$tbody:null,hasEntries:null,init:function(i,e){this.params=e,this.$widget=t("#widget"+i),this.$body=this.$widget.find(".body:first"),this.$container=this.$widget.find(".recententries-container:first"),this.$t... |
export const onKeyDown = ({ key, dispatch }) => {
if (key.match(/Up|Down|Left|Right|Home|End|PageUp|PageDown/)) {
switch (key) {
case "Right":
dispatch({ type: "KEY_RIGHT", payload: "" });
break;
case "Left":
dispatch({ type: "KEY_LEFT", payload: "" });
break;
cas... |
const express = require('express');
const app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
const fileupload = require('express-fileupload');
var short = require('short-uuid');
app.use(fileupload());
app.use(express.static(__dirname + '/public'))
app.use(express.static... |
import {buildJSONRPCRequest, validateJSONRPCResponse} from '@resdir/json-rpc';
import postJSON from '@resdir/http-post-json';
import {createClientError, createRemoteError} from '@resdir/error';
const GET_METHODS_METHOD_VERSION = 1;
const INVOKE_METHOD_VERSION = 1;
export class RemoteResource {
static $import(specif... |
'use strict'
const Joi = require('joi')
const t = (module.exports = require('../tester').createServiceTester())
t.create('language count').get('/badges/shields.json').expectBadge({
label: 'languages',
message: Joi.number().integer().positive(),
})
t.create('language count (empty repo)')
.get('/pyvesb/emptyrepo... |
export * from '@styled-icons/feather/Trello'; |
define(["./theme/lumo/vaadin-grid-sorter.js"],function(_vaadinGridSorter){"use strict"}); |
export default class IDSequence {
constructor() {
this.current = 0;
}
nextID() {
const id = this.current;
this.current++;
return id;
}
}
const seq = new IDSequence();
export function nextID() {
return seq.nextID().toString();
} |
/*
* Kendo UI Web v2013.1.319 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the
* GN... |
import React, { Component } from 'react';
import { Route, withRouter } from 'react-router-dom';
import './privateRoute.css'
class PrivateRoute extends Component {
constructor(props) {
super(props);
this.state = {
isAuthenticated: window.sessionStorage.getItem("userName") ? true: false
... |
export default {
getPostById: (state) => (id) => {
return state.postInfoList.find(post => post.id == id)
}
} |
import Ember from 'ember'
import layout from '../templates/components/frost-link'
function addPriorityClass (priority, classes) {
switch (priority) {
case 'primary':
classes.push('primary')
break
case 'secondary':
classes.push('secondary')
break
case 'tertiary':
classes.push... |
const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
let host = 'http://galaxylab.com.cn/';
host = `${host}/posts/`;
const response = await got.get(host);
const $ = cheerio.load(response.data);
const list = $('#scroll > section > ul > li');
... |
var querystring = require("querystring"),
fs = require("fs"),
formidable = require("formidable");
function start(response) {
console.log("Request handler 'start' was called.");
var body = '<html>' +
'<head>' +
'<meta http-equiv="Content-Type" content="text/html; ' +
'charset=UT... |
import { listenPjaxEvent } from 'utils/pjax'
import { scrollTo } from 'utils/scroll'
import { GITHUB_PAGE_CONTAINER_ID } from 'constants/github'
import { GITHUB_NAV_BAR_HEIGHT } from 'constants/base'
import { noop, throttle, chunk } from 'lodash'
import sha256 from 'crypto-js/sha256'
const DEFAULT_TIMEOUT = 1000 * 6
... |
var fs = require('fs')
let ReadStream = fs.createReadStream(__dirname + '/text.txt', 'utf-8')
ReadStream.on('data', function(chunk) {
console.log(chunk)
}) |
import express from 'express';
import {config,getGlobbedPaths} from './config';
import path from 'path';
import morgan from 'morgan';
export default function(){
let app = express();
initLogger(app);
initServerRoutes(app);
return app;
}
function initLogger(app){
app.use(morgan('dev'));
}
function initServer... |
validate.validators.pesel = function (value, options, key, attributes) {
if (value === null || value === undefined)
return null;
const pesel = value;
if (!pesel.match(/^[0-9]*$/))
return "^Pesel musi składać się wyłącznie z cyfr";
if (pesel.length !== 11)
return "^Pesel musi m... |
// @flow
import {version} from '../../package.json';
import {extend, bindAll, warnOnce, uniqueId} from '../util/util';
import browser from '../util/browser';
import window from '../util/window';
const {HTMLImageElement, HTMLElement, ImageBitmap} = window;
import DOM from '../util/dom';
import {getImage, getJSON, Resou... |
eval('console.log("Hello");');
eval('console.log("Hello again");'); |
import{r as t,h as s}from"./p-1c0c10bb.js";import"./p-4a6e3791.js";import{b as r}from"./p-1dd23f18.js";const l=class{constructor(s){t(this,s),this.title="",this.decoratorControllers=[]}receivedControllersDescription(t){const s=t.detail;t.stopImmediatePropagation(),s&&s.length>0&&(this.decoratorControllers=JSON.parse(JS... |
'use strict';
const canEditUsers = ({ currentAdmin, record }) => {
return (
currentAdmin &&
(currentAdmin.role === 'admin' ||
currentAdmin._id == record.param('ownerId'))
);
};
const canModifyAdmins = ({ currentAdmin }) => {
return currentAdmin && currentAdmin.role === 'admin';
};
module.exports ... |
/* -*- mode: js; indent-tabs-mode: nil -*-
Copyright 2014 Jens Lindström, Opera Software ASA
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
Un... |
import './checkbox.scss'; |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
const httpStatuses = require('http-status-codes')
, getPayloadValue = require('../helpers/getPayloadValue')
, DocumentsCollection = require('../models/DocumentsCollection')
module.exports = async function canReadDocument(req, res){
const id = getPayloadValue(req, 'id')
try{
const permission = a... |
import React from 'react';
import Icon from '../Icon';
const Mail = props => (
<Icon viewBox='0 0 24 24' a11yTitle='Mail' {...props}>
<path fill='#01A982' fillRule='evenodd' d='M23,20 L23,6 L12,15 L1,6 L1,20 L23,20 Z M12,12 L22,4 L2,4 L12,12 Z' />
</Icon>
);
export default Mail; |
/*
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
* See LICENSE in the source repository root for complete license information.
*/
"use strict";
function createApplication(applicationConfig) {
var clientApplication = new Msal.UserAgentApplication(applicationConfig.clientID, ... |
'use strict';
const assert = require('assert');
const input = require('./input');
const testCase = [
'5 1 9 5',
'7 5 3',
'2 4 6 8'
];
const TEST_CASE_RESULT = 18;
function calculateChecksum(table) {
return table.map((row) => row.split(' ').map((number) => parseInt(number, 10)))
.map((row) => {
re... |
$().ready(function() {
validateRule();
});
$.validator.setDefaults({
submitHandler : function() {
save();
}
});
function save() {
$.ajax({
cache : true,
type : "POST",
url : "/system/sysDept/save",
data : $('#signupForm').serialize(),// 你的formid
async : false,
error : function(request) {
parent.la... |
export const DISHES_LOADING = 'DISHES_LOADING';
export const ADD_DISHES = 'ADD_DISHES';
export const DISHES_FAILED = 'DISHES_FAILED';
export const ADD_COMMENTS = 'ADD_COMMENTS';
export const COMMENTS_FAILED = 'COMMENTS_FAILED';
export const ADD_COMMENT = 'ADD_COMMENT';
export const PROMOS_LOADING = 'PROMOS_LOADING';
ex... |
var Promise = require('bluebird');
var Err = require(__dirname+'/error.js');
var helper = require(__dirname+'/helper.js');
var EventEmitter = require('events').EventEmitter;
var MAX_CALL_STACK = 1000;
function Cursor(connection, token, options, type) {
this.connection = connection;
this.token = token;
this._st... |
import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './store/createStore'
import AppContainer from './containers/Ap... |
const path = require('path')
const defu = require('defu')
module.exports = function (moduleOptions) {
const options = defu(moduleOptions, this.options.device, {
defaultUserAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.39 Safari/537.36',
refres... |
var e="/assets/screen.d83a0a7c.png";export{e as default}; |
var closeFindUserRule = function () {
var $myUserRuleTable = $('#myUserRuleTable'), findUserRuleParam;
var findUserRuleId = $('#findUserRuleId').val(), findUserRuleType = $('#findUserRuleType').val(),
findUserRuleParentTableId = $('#findUserRuleParentTableId').val();
var findUser... |
/**
* Copyright IBM Corp. 2016, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
export { default as KalturaPlayer } from './KalturaPlayer'; |
import React, { Component } from 'react';
import { render } from 'react-dom';
import {
Button,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Form,
Input,
Label,
Row,
Table,
FormGroup,
PaginationItem,
PaginationLink,
Modal,
ModalBody,
ModalFooter,
ModalHeader
} from 'reactstrap';
// im... |
module.exports = {
siteMetadata: {
title: `spectral`,
description: `quick spectral analysis in the browser`,
author: `@tomtwo`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/imag... |
var searchData=
[
['false_5fimplement_46',['false_implement',['../_constants_8cpp.html#a514adbd239d925cc624269f99c562d5f',1,'Constants.cpp']]],
['float_5fimplement_47',['float_implement',['../_convert_8cpp.html#aa0e064207d66761f3e28c1eda9379e99',1,'Convert.cpp']]],
['floatexponent_5fimplement_48',['floatexponent_... |
var invariant = require('invariant');
var hasOwnProperty = Object.prototype.hasOwnProperty;
var splice = Array.prototype.splice;
var assign = Object.assign || /* istanbul ignore next */ function assign(target, source) {
getAllKeys(source).forEach(function(key) {
if (hasOwnProperty.call(source, key)) {
tar... |
class FilterBreadCrumbsControl {
//Filter Breadcrumbs Config
constructor(filtercontrol) {
this._fc = filtercontrol;
}
/**
* @description Get all Indices of val in string
* @param {string} str - String to search in
* @param {string|RegExp} val - Value to be found
* @returns {... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// 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-exports
es6id: 15.2.3
description: The default export may not be a LexicalDe... |
var Stream = require('stream').Stream,
Tweek = require('./index');
var stream1 = new Stream();
stream1.writable = true;
stream1.readable = true;
stream1.write = function (data) {
this.emit('data', data);
this.emit('interaction', data);
return true;
}
stream1.destroy = function () {
clearInterval(this.in... |
// Types
export * from './models/OffsetModel';
export * from './models/ViewPortModel';
// Helpers
export * from './DomHelpers';
export * from './_TypesHelpers';
// Basic
export * from './_DataUtil';
export * from './_DOMEventHandlerUtil';
export * from './_ElementStyleUtil';
export * from './ElementAnimateUtil';
export... |
module["car"] = [
"red",
"black",
"white",
"grey",
"blue",
] |
import { observable, action, computed } from 'mobx';
import React from 'react';
import ReactDOM from 'react-dom';
import getProgramStore from './programPageProgram';
import ProgramPageUIStore from './programPageUIStore';
import { IndicatorFilterType } from '../../../constants';
export default class ProgramPageRootStor... |
const AppError = require('../utils/appError');
const handleCastErrorInDB = (err) =>
new AppError(`Invalid ${err.path}: ${err.value}`, 400);
const handleDuplicateErrorInDB = (err) => {
const value = Object.values(err.keyValue)[0];
const key = Object.keys(err.keyValue)[0];
return new AppError(
`${value} is alread... |
import React from "react";
function Cta() {
return (
<section className="z-10 font-ubuntu bg-dark-blue-500">
<div className="flex flex-wrap max-w-4xl mx-auto p-12 text-center">
{[
{
value: "800+",
title: "Attendees"
},
{
value: "3",
... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 ... |
/* istanbul ignore file */
import mailer from 'nodemailer';
import mg from 'nodemailer-mailgun-transport';
import logger from 'winston';
export const sendEmail = (config, msg) => {
const { mailApiKey, mailDomain, mailFrom, mailTo } = config;
if (!mailApiKey || !mailDomain || !mailFrom || !mailTo) {
l... |
define([
], function () {
'use strict';
return [
'urn:fontoxml:names:tc:dita:spec:learning:xsd:learningContent.xsd:1.3'
];
}); |
/*
* 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... |
// Override original templates
Template.post_content_laval.replaces("post_content");
Template.post_info_laval.replaces("post_info");
Template.post_item_laval.replaces("post_item");
Template.post_page_laval.replaces("post_page");
Template.post_title_laval.replaces("post_title");
Template.logo_laval.replaces("logo"); |
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
import Header from '../components/UI/Header';
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
const Forgotpass = () => (
<View style={styles.container}>
<Header title="Forgot Password" />
</View>
);
expor... |
// parse signature from string to tree
var match = {
'{': '}',
'(': ')'
};
var knownTypes = {};
'(){}ybnqiuxtdsogarvehm*?@&^'.split('').forEach(function(c) {
knownTypes[c] = true;
});
module.exports = function parseSignature(signature) {
var index = 0;
function next() {
if (index < signature.length) {
... |
import XEUtils from 'xe-utils/methods/xe-utils'
import inputAPI from './input'
const apis = [
{
name: 'Props',
descKey: 'app.api.title.props',
type: '',
enum: '',
defVal: '',
list: XEUtils.clone(inputAPI.find(item => item.name === 'Props').list.filter(obj => !['type'].includes(obj.name)), tru... |
'use strict';
/* eslint quote-props: ["error", "as-needed", { "numbers": true }] */
var utils = require('../utils');
var MozEndpoint = require('../moz-endpoint');
module.exports = MozEndpoint.extend({
endpoint: 'links',
bitFlagsMapping: {
sourceCols: 'url-metrics',
targetCols: 'url-metrics',
linkCol... |
/**
* @param preferences - target student focus
* @param knowsProgramming - if student can do programming and know basics
* @param config - private student ability to perform for different focus modes
* @returns number of weeks needed for finish education
*/
module.exports = function getTimeForEducation(
focu... |
import * as types from '../actions/types';
export default function goods_info(infoList = {}, action) {
switch (action.type) {
case types.SET_GOODS_INFO_SINGLE:
let key = 'info_' + action.gid;
let obj = {};
obj[key] = action.v;
return Object.assign({}, infoList, obj);
case types.CLEAR_GOODS_INFO... |
/**
* Auto-generated action file for "Ritc" API.
*
* Generated at: 2019-05-07T14:43:54.445Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / ritc-io-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the Apache... |
$(function() {
console.log("ready!");
//show open_table table on button click
$(".open_label").on('click',function(){
$("#open_table").show()
$(".hide_label").show()
$("#closed_table").hide()
});
//show closed_table table on button click
$(".closed_label").on('click',function(){
$("#clos... |
/**
* @license Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import Model from '../../src/model/model';
import ModelRange from '../../src/model/range';
import ViewRange from '../../src/view/range';
im... |
/* global bard, $compile, $rootScope, helpService */
describe('rvHelp', () => {
let scope;
let directiveElement;
function mockTranslate($provide) {
$provide.service('$translate', () => {
return {
use: () => {},
};
});
}
function mockTranslat... |
import Home from './Home';
import * as Transition from './Transition';
import * as Gestures from './Gestures';
export {Home, Transition, Gestures}; |
import React, { useState } from 'react';
import styled from 'styled-components';
import { useCopyToClipboard } from '../../hooks/useCopyToClipboard';
import TheForm from './TheForm';
import InputField from './InputField';
import InputLabel from './InputLabel';
import InputStatus from './InputStatus';
import SubmitInput... |
(function (app) {
'use strict';
app.registerModule('klasses');
}(ApplicationConfiguration)); |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ka', {
btn_about: 'SCAYT-ის შესახებ',
btn_dictionaries: 'ლექსიკონები',
btn_disable: 'SCAYT-ის გამორთვა',
btn_enable: 'SCAYT-ის ჩართვა'... |
import React, { Component } from 'react';
class Test extends Component {
render() {
return (
<div className="animated fadeIn">
<br/>
<h1 className="text-center">Coming Soon</h1>
</div>
);
}
}
export default Test; |
'use strict';
var socket = '';
const storage = {
deleteKey : function(parent, key) {
var jsonSaved =this.getItem(parent).value || {};
if (jsonSaved[key] == undefined)
return;
delete jsonSaved[key];
this.setItem(parent, jsonSaved);
},
getI... |
import React from "react"
import Header from "./header"
import Footer from "./footer"
export default ({ children }) => (
<div style={{ margin: `0 auto`, width: `100vw` }}>
<Header />
{children}
<Footer />
</div>
) |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview A core interface for WebChannelBase.
*
*/
goog.provide('goog.labs.net.webChannel.Channel');
goog.requireType('goog.Uri');
goog.requireType('goog.labs.net.webChannel.ChannelRequest');
goog.requ... |
import React from "react"
import Layout from "../components/layout"
const Contact = () => {
return (
<Layout currentPage="contact">
<main className="portfolio-container">
<header className="portfolio-header">
<h2 className="portfolio-header-title">Contact me</h2>
<h3 className="... |
import { get } from 'lodash';
import PropTypes from 'prop-types';
import React from 'react';
import { useQuery, useMutation } from 'react-apollo';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import { Bell } from '@styled-icons/feather/Bell';
import { BellOff } from '@styled-i... |
export const QUERY = gql`
query {
posts {
id
title
body
createdAt
}
}
`
export const Loading = () => <div>Loading...</div>
export const Empty = () => <div>Empty</div>
export const Failure = ({ error }) => <div>Error: {error.message}</div>
export const Success = ({ posts }) => {
... |
import styled from 'styled-components/native';
export const Container = styled.View`
padding: 5px 15px;
height: 50px;
background: #333;
border-radius: 4px;
flex-direction: row;
align-items: center;
`;
export const TInput = styled.TextInput.attrs({
placeholderTextColor: '#C8BCB5',
})`
flex: 1;
font-s... |
import React from 'react'
import { Link } from 'react-router-dom'
import './styles.css'
const Button = ({text, onClick, to, className, ...props}) => (
to
? <Link
to={to}
className={`${className ? className : ''} Button`}
{...props} >
{text}
</Link>
: <button
onClick={(... |
'use strict';
exports.__esModule = true;
var _Pie = require('./Pie');
Object.defineProperty(exports, 'Pie', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_Pie).default;
}
});
var _ResponsivePie = require('./ResponsivePie');
Object.defineProperty(exports, 'ResponsivePie', {
enu... |
/**
* MIT License
*
* Copyright (c) 2017-present, Elasticsearch BV
*
* 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 strict';
var concat = require('../concat');
var forall = require('../forall');
module.exports = function(equals) {
return forall({
// (x `concat` y) `concat` z = x `concat` (y `concat` z)
associativity: function(x, y, z) {
var lhs = concat(concat(x)(y))(z);
var rhs = concat(x)(concat(y)(... |
"use strict";
/* Copyright 2016 Ling Zhang
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,... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.14/15.4.4.14-1-11.js
* @description Array.prototype.indexOf applied to Date object
*/
function testcase() {
var obj = new Date();
obj.length = 2;
obj[1] = true;
return Array.proto... |
import { Panel } from "../../../Panel";
import React, { useCallback, useContext, useEffect, useMemo } from "react";
import { EuiFieldText, EuiForm, EuiFormRow, EuiSpacer } from "@elastic/eui";
import { EuiComboBoxSelect } from "../../../../../../../components/form/combo_box/EuiComboBoxSelect";
import ExperimentContext ... |
import PercyClient from '@percy/client';
import PercyConfig from '@percy/config';
import logger from '@percy/logger';
import Queue from './queue';
import Browser from './browser';
import createPercyServer from './server';
import { getSnapshotConfig } from './config';
import {
createRootResource,
createLogResource,... |
// Copyright 2013 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
mergeInto(LibraryManager.library, {
$TTY__deps: ['$FS'],
#if !M... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const Hash = require("./Hash");
const BULK_SIZE = 2000;
// We are using an object instead of a Map as this will stay static during the runtime
// so access to it can be optimized by v8
const digestCache... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-id.case
// - src/dstr-binding/default/for-let.template
/*---
description: Binding as specified via property name and identifier (for statement)
esid: sec-for-statement-runtime-semantics-labelledevaluation
features: [... |
import * as loanScreener from './existingLoanScreener';
import * as loanIntent from './loanIntent';
import * as loanHistory from './loanHistory';
export { loanScreener, loanIntent, loanHistory }; |
/**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.u2.svg.graph',
name: 'ZoomedOutFObjectGraphNodeView',
extends: 'foam.u2.View',
css: `
^ {
overflow: auto;
}
^view {
zoom: 0.7;
ov... |
/* TODO: enable linting and fix resulting errors */
/* eslint-disable */
/* Copyright (c) Trainline Limited, 2016-2017. All rights reserved. See LICENSE.txt in the project root for license information. */
'use strict';
// Manage all services
angular.module('EnvironmentManager.configuration').controller('ServicesContr... |
$(function(){
$(".showModalButton").click(function(){
$("#modal").modal('show')
.find("#modalContent")
.load($(this).attr('value'));
});
}); |
module.exports = (function() {
const env = require('vialer-js/lib/env')({section: 'app'})
let options = {
env,
plugins: {
builtin: [
{module: require('../plugins/page'), name: 'page'},
],
custom: [],
},
}
return options
})() |
import { combineReducers } from 'redux'
import { reducer as form } from 'redux-form'
import { routerReducer } from 'react-router-redux'
import projects from './projects'
const reducers = {
routing: routerReducer,
form,
projects
}
const rio = combineReducers(reducers)
export default rio |
var fs = require('fs')
, path = require('path')
, join = require('path').join;
fs.existsSync || (fs.existsSync = path.existsSync);
var modul8 = require('./lib/api');
modul8.minifier = require('./lib/plugins/minifier');
modul8.testcutter = require('./lib/plugins/testcutter');
modul8.version = require('./packa... |
module.exports = function ConnectionArgFilterPlugin(
builder,
{
connectionFilterAllowedFieldTypes,
connectionFilterAllowedOperators,
connectionFilterOperatorNames = {},
} = {}
) {
builder.hook("build", build => {
const connectionFilterOperators = {};
return build.extend(build, {
connec... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.