text stringlengths 2 1.05M |
|---|
/*
SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const storycontract = require('./lib/storycontract.js');
module.exports.contracts = [storycontract]; |
/*
Copyright 2019-present OmiseGO Pte Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
'use strict';
const beans = require('../../testutil/configureForTest').get('beans');
const sinon = require('sinon').createSandbox();
const expect = require('must-dist');
const wikiService = beans.get('wikiService');
const groupsAndMembersService = beans.get('groupsAndMembersService');
const activitiesService = beans... |
var searchData=
[
['slo_277',['SLO',['../classmysite_1_1core_1_1models_1_1slo__models_1_1_s_l_o.html',1,'mysite::core::models::slo_models']]],
['sloinreport_278',['SLOInReport',['../classmysite_1_1core_1_1models_1_1slo__models_1_1_s_l_o_in_report.html',1,'mysite::core::models::slo_models']]],
['slostatus_279',['S... |
// 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... |
var data=[['20120731',5.156],
['20120801',5.479],
['20120802',6.038],
['20120803',6.650],
['20120806',7.321],
['20120807',8.062],
['20120813',8.379],
['20120814',8.038],
['20120815',8.150],
['20120816',8.126],
['20120817',7.974],
['20120820',8.779],
['20120821',8.474],
['20120822',8.168],
['20120823',7.915],
['20120824... |
import React from 'react';
import Relay from 'react-relay';
import addTaskMutation from './addTaskMutation';
import removeTaskMutation from './removeTaskMutation';
import editTaskMutation from './editTaskMutation';
const ENTER_KEY_CODE = 13;
const ESC_KEY_CODE = 27;
class TasksMain extends React.Component {
const... |
var event = angular.module('event', ['ui.bootstrap', 'videoService'])
event.controller('EventCtrl', function($scope, $document, $uibModal, $routeParams, $location, getVideo) {
$scope.likeOptions = {
like : function(likeCount){
likes = parseInt(likeCount) + 1
$scope.videoData.likes = likes
... |
import React, { useEffect } from 'react'
import { withGoogleMap, withScriptjs, GoogleMap, Marker } from 'react-google-maps'
import mapIcon from '../images/mapIcon2.svg'
import focusIcon from '../images/mapIcon3.svg'
const mapStyles = [
{
featureType: 'administrative.land_parcel',
elementType: 'labels',
s... |
import React, { useState } from 'react';
import './App.css';
import StripeSampleFooter from './StripeSampleFooter';
import TopNavigationBar from './TopNavigationBar';
import { Redirect } from 'react-router-dom';
function Login(props) {
const [email, setEmail] = useState('');
const [customer, setCustomer] = useStat... |
var falafel=require("falafel"),test=require("../");test("array",function(e){e.plan(5);var n="("+function(){var e=[1,2,[3,4]],n=[5,6];g([e,n])}+")()",t=falafel(n,function(e){"ArrayExpression"===e.type&&e.update("fn("+e.source()+")")}),r=[[3,4],[1,2,[3,4]],[5,6],[[1,2,[3,4]],[5,6]]];Function(["fn","g"],t)(function(n){ret... |
/*
* @Author: 谢树宏
* @Date: 2022-01-27 15:32:44
* @LastEditors: 谢树宏
* @LastEditTime: 2022-01-27 15:48:33
* @FilePath: /electron-mp-ci/script/common/winConfig.js
*/
if (process.platform === 'darwin') module.exports = {}
else
module.exports = {
icon: './resource/icon_app.ico',
target: [
{
tar... |
/**
* Created by Wolke on 06.06.2017.
*/
let Command = require('../../structures/command');
const regs = {user: /<?(?:@|@!)([0-9]+)>/};
const utils = require('../../structures/utilities');
const searcher = require('../../structures/searcher');
class Ship extends Command {
constructor({t}) {
super();
... |
//
// users.js: A Node.js Module for for management of a NewsWatcher user settings and news newsFilters CRUD operations.
// There is middleware that makes sure a user is logged in so they can only get their profile.
// A profile is really associated with a user and never goes away,
// so there is no post as it is alre... |
var seed = require('math-random-seed')
var tape = require('tape')
var html = require('bel')
var nanomorph = require('./')
if (!module.parent) {
specificTests(nanomorph)
abstractMorph(nanomorph)
} else {
module.exports = abstractMorph
}
function specificTests (morph) {
tape('nanomorph', function (t) {
t.te... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-... |
// This module is kind of small, but it will help us keep
// server_events.js simple while breaking some circular
// dependencies that existed when this code was in people.js.
// (We should do bot updates here too.)
import * as activity from "./activity";
import * as compose from "./compose";
import * as gear_menu from... |
/**
* @fileoverview Prevents usage of Function.prototype.bind and arrow functions
* in React component definition.
* @author Daniel Lo Nigro <dan.cx>
*/
'use strict';
// -----------------------------------------------------------------------------
// Requirements
// ----------------------------------... |
'use strict';
// --------------- Helpers that build all of the responses -----------------------
function buildSpeechletResponse(title, output, repromptText, shouldEndSession) {
return {
outputSpeech: {
type: 'PlainText',
text: output,
},
card: {
type: '... |
var tape = require("tape"),
sceneGraph = require("@nathanfaucett/scene_graph"),
transformComponents = require("@nathanfaucett/transform_components"),
camera = require("..");
var Scene = sceneGraph.Scene,
Entity = sceneGraph.Entity,
Transform3D = transformComponents.Transform3D,
Camera = camera... |
import i18n from "i18next";
import {initReactI18next} from "react-i18next";
import Backend from "i18next-http-backend";
import LanguageDetector from "i18next-browser-languagedetector";
import languages from "./translations/languages";
i18n
.use(Backend)
.use(LanguageDetector)
.use(initReactI18next)
.in... |
import example from './src/app';
import {
AppRegistry,
PushNotificationIOS
} from 'react-native';
class exampleIos extends example {
componentWillMount() {
super.componentWillMount();
PushNotificationIOS.addEventListener('notification', (notification) => this._onNotification(notification));
PushNot... |
const db = require("../db");
const argon2 = require('argon2');
const uuid = require("uuid").v4;
const jwt = require('jsonwebtoken');
require("dotenv").config();
module.exports = async (req, res) => {
if (typeof req.body.class !== "string" || typeof req.body.password !== "string" || typeof req.body.ipaddress !== "s... |
import firebase from "react-native-firebase";
const analytics = firebase.analytics();
const remoteConfig = firebase.config();
if (__DEV__) {
remoteConfig.enableDeveloperMode();
}
export { analytics, remoteConfig };
|
const merge = require('webpack-merge');
const common = require('./common');
module.exports = merge(common, {
devServer: {
contentBase: './',
},
mode: 'development',
});
|
function getValue(){var inputs=$("#sb input:text:visible"),val="",cb="title";return 2==inputs.length?(val=inputs.eq(0).val(),inputs.eq(0).val()&&inputs.eq(1).val()&&(val+=" "),val+=inputs.eq(1).val()):(val=inputs.val(),$("#sb select:visible[name=search_type]").length&&(cb=$("#sb select:visible[name=search_type]").val()... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, Route, Switch } from 'react-router-dom';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = a... |
import { connect } from 'react-redux'
import Container from './Container'
const mapStateToProps = state => {
return {
state,
loaders: state.loaders,
employees: state.employees.data,
legal_units: state.legal_units,
departments: state.departments,
customers: state.customers,
project: state.... |
import {AddComputerPage} from "./AddComputerPage";
//<reference type ="cypress" />
export class LandingPage{
//const addButton = cy.get('')
constructor(){
cy.xpath("(.//*[normalize-space(text()) and normalize-space(.)='Create'])[1]/following::a[1]").should('be.visible');
}
... |
// @flow
export const colors = {
brand: '#0079BF',
};
export const grid: number = 8;
|
const urls = {
login: 'https://www.linkedin.com/uas/login',
loginSubmit: 'https://www.linkedin.com/uas/login-submit',
peopleYouMayKnow: 'https://www.linkedin.com/voyager/api/relationships/peopleYouMayKnow',
normInvitations: 'https://www.linkedin.com/voyager/api/growth/normInvitations',
};
const headers = {
l... |
Clazz.declarePackage ("J.awtjs2d");
c$ = Clazz.declareType (J.awtjs2d, "JSFont");
c$.newFont = Clazz.defineMethod (c$, "newFont",
function (fontFace, isBold, isItalic, fontSize, type) {
fontFace = (fontFace.equals ("Monospaced") ? "Courier" : fontFace.startsWith ("Sans") ? "Sans-Serif" : "Serif");
return (isBold ? "bo... |
import React from "react";
import styled from "styled-components";
const FlexDiv = styled.div`
display: flex;
height: fit-content;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 10px;
`;
const Thumbnail = styled.img`
width: 80px;
height: 80px;
border-radius: 50%;
back... |
import * as types from '../actions/types';
const contractBasedFeatures = [
// Used in retrieval of EOS Token information
// https://github.com/greymass/customtokens
'customtokens',
// Used to retrieve USD price feeds
// https://github.com/eostitan/delphioracle
'delphioracle',
// Used in retrieval of Bloc... |
import base from './base'
import axios from '@/api/http'
const couple = {
getUserCouple() {
return axios.get(`${base.api}/event`)
},
getCoupleList() {
return axios.get(`${base.api}/orderForm/`)
},
getCoupleRule() {
return axios.get(`${base.api}/coupons`)
},
createCoupleRule(params) {
retu... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
var ApiGen = ApiGen || {};
ApiGen.elements = [["f","_perform_ldap_auth()"],["c","Example"],["c","Format"],["c","Key"],["c","REST_Controller"]];
|
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
/**
* Homepage selectors
*/
import { createSelector } from 'reselect';
const selectUser = (state) => state.get('userDetails');
const makeSelectUserLocks = () => {
return createSelector(
selectUser,
(userState) => userState.get('locks')
);
};
export {
selectUser,
makeSelectUserLocks
};
|
/**
* @param {string} ref
* @param {string} path
* @param {string | undefined} title
* @returns
*/
export function transform(ref, path, title) {
title = title ?? path
switch (ref) {
case 'wikipedia':
return `<a href="https://en.wikipedia.org/wiki/${path}">${title}</a>`
case 'wikimo':
return `<a href="... |
'use strict';
(function () {
angular.module('About', [])
.controller('AboutCtrl', function () {
});
})();
|
'use strict'
const t = require('tap')
const test = t.test
const sget = require('simple-get').concat
const Fastify = require('fastify')
const fs = require('fs')
const path = require('path')
const minifier = require('html-minifier')
const minifierOpts = {
removeComments: true,
removeCommentsFromCDATA: true,
collap... |
const deepMerge = require('deepmerge')
const semver = require('semver')
/**
* @param {object} config
* @param {string} env
* @param {object} htmlWebpackPluginOptions
*/
function rewireHtmlWebpackPlugin(config, env, htmlWebpackPluginOptions = {}) {
let optionKey = 'options'
const webpack = require('webpack')
... |
import React from "react";
import { InputGroup, FormControl, Button } from "react-bootstrap";
const MobileNoCard = (props) => {
return (
<>
<div className="pt-4 zoomeffect">
<InputGroup className="mb-3">
<InputGroup.Prepend>
<InputGroup.Text>+91</InputGroup.Text>
</I... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _themer = require("../../../... |
import Head from 'next/head';
import { Box, Container, Grid } from '@mui/material';
import { Vacancy } from '../dashboard/vacancy';
import { StatBy } from '../dashboard/statby';
import { Noti } from '../dashboard/noti';
import { CandidateStat } from '../dashboard/candstat';
import { Alarm } from '../dashboard/alarm';
i... |
mycallback( {"ELECTION CODE": "G2010", "EXPENDITURE PURPOSE DESCRIP": "Labels", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "95841", "MEMO CODE": "X", "PAYEE STATE": "CA", "PAYEE LAST NAME": "", "PAYEE CITY": "Sacramento", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "2523- I St., Apt. #5", "PAY... |
"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
Object.defineProperty(e... |
/**
* This test ensures readers on a secondary are unable to read from unique indexes that temporarily
* violate their uniqueness constraint. When oplog entries are applied in parallel batch writes,
* operations can be applied out-of-order, and reading at an inconsistent state is possible.
*
* For example, take tw... |
const myArray = ['Hello', 'Welcome', 'Greetings'];
const temp = randomItem(myArray);
const h1 = document.getElementById('Greet');
const message = document.createTextNode(temp);
h1.appendChild(message);
function randomItem(arr) {
return arr[Math.floor(Math.random() * arr.length)];
} |
var HSA_scrollAreas = new Array();
var HSA_default_imagesPath = "img";
var HSA_default_btnLeftImage = "button-left-trans.png";
var HSA_default_btnRightImage = "button-left-trans.png";
var HSA_default_scrollStep = 5;
var HSA_default_wheelSensitivity = 10;
var HSA_default_scrollbarPosition = 'bottom'; //'top';//'bottom'... |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2009 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project'... |
import React, { Component } from "react";
import { Label, Col, Row } from "reactstrap";
import Sidenav from "../SideNav";
import Subjects from "./Subjects";
import Labs from "./Labs";
class Subject extends Component {
constructor(props) {
super(props);
this.state = {
selectedOption: "option1"
};
... |
(() => {
const monaco = "https://cdn.jsdelivr.net/npm/monaco-editor@0.27.0";
requirejs.config({
urlArgs: (_, url) => url.startsWith(monaco) || url.includes("-")
? ""
: "?v={{version}}",
paths: {
vs: `${monaco}/min/vs`,
},
});
window.MonacoEnvironment = {
getWorkerUrl: (_worke... |
const { getOptions } = require( "loader-utils" );
const { optimize } = require( "svgo" );
/**
* @param {string} source
* @this {LoaderContext}
* @return {string}
*/
module.exports = function svgoLoader( source ) {
const {
plugins = [{ name: "preset-default" }],
...options
} = getOptions( this );
const res... |
// protect function from too-many re-entries (recursive)
// protect loops from infinite or too-many re-entries
// Based on jsbin loop protect (https://github.com/jsbin/loop-protect)
/*
before:
====
n = 0;
while(n++ < 100000000) {
doSomething();
}
after:
===
n = 0;
while(n++ < 100000000) {
__guard.enterLoop(... |
import Vue from 'vue'
import Router from 'vue-router'
import routes from './routers'
import store from '@/store'
import iView from 'iview'
import {canTurnTo} from '@/libs/util'
import config from '@/config'
Vue.use(Router)
const router = new Router({
routes,
mode: 'history'
})
const turnTo = (to, access, next... |
import React,{Fragment,Children} from "react"
import memoize from "memoize-one"
import {shallowEqual} from "recompose"
import ComposedAllTrigger from "./composed-all-trigger"
import UseCached from "./use-cached"
/**
* make component always update (by calling .render), so AllComposedTrigger would be triggered to corre... |
const app = require('../../src/app')
describe('\'measurements\' service', () => {
it('registered the service', () => {
const service = app.service('measurements')
expect(service).toBeTruthy()
})
})
|
$(document).ready(function() {
$("#current_password").keyup(function () {
var current_password = $("#current_password").val();
$.ajax({
type: "post",
url: "/admin/check-current-password",
data: {current_password},
success: function (res) {
... |
let url = base_url+"/categorias/";
$(document).ready(function(){
/**
* Procedemos a cargar los datos de la tabla
*/
$('#tabla').DataTable(); // End of DataTable
});
$("#form_add").on('submit', function(e){
e.preventDefault();
$(this).parsley().validate();
if ($(this).parsley().isValid())... |
import uuid from 'uuid';
import DBManager from '../managers/DBManager';
const studentSchema = {
id: {
type: String,
hashKey: true
},
firstName: String,
lastName: String,
major: String,
semester: Number,
createdAt: String,
updatedAt: String
};
export default class Student extends DBManager {
... |
"use strict";
exports.__esModule = true;
exports.c_tabs__scroll_button_before_BorderWidth = {
"name": "--pf-c-tabs__scroll-button--before--BorderWidth",
"value": "1px",
"var": "var(--pf-c-tabs__scroll-button--before--BorderWidth)"
};
exports["default"] = exports.c_tabs__scroll_button_before_BorderWidth; |
/**
* @preserve
* jquery.layout 1.4.4
* $Date: 2014-11-29 08:00:00 (Sat, 29 November 2014) $
* $Rev: 1.0404 $
*
* Copyright (c) 2014 Kevin Dalman (http://jquery-dev.com)
* Based on work by Fabrizio Balliano (http://www.fabrizioballiano.net)
*
* Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)... |
jQuery(function($) {
// var initMap;
// var starkMap = {
// zoom: 11,
// center: new google.maps.LatLng(40.706446,-73.953616),
// mapTypeId: 'terrain'
// };
// initMap = new google.maps.Map($('.map')[0], starkMap)
}); |
var searchData=
[
['sentinel_5fdisconnect_5fhandler_5ft',['sentinel_disconnect_handler_t',['../classcpp__redis_1_1sentinel.html#a923e06b5b700c16dffec8a01d2fa9aa4',1,'cpp_redis::sentinel']]],
['subscribe_5fcallback_5ft',['read_callback_t',['../classcpp__redis_1_1subscriber.html#a2ac29261280f488dab483866ae875656',1,'... |
import React from 'react'
export default function Dados(props){//coloca-se props para poder passar seus atributos para outro componente
let n1 = 15 //váriaveis que irão ser carregadas da função
let n2 = 20
return(
<section>
<p>Frase1 : {props.frase1}</p>
<p>Frase 2 : {props.... |
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlug... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
[
... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_backend_error_404Components_vue"],{
/***/ "./resources/js/components/backend/error/404Components.vue":
/*!*****************************************************************!*\
!*** ./resources/js/components/backend/error/404Components... |
QUnit.module('lodash.reject');
(function () {
var array = [
__num_top__,
2,
3
];
QUnit.test('should return elements the `predicate` returns falsey for', function (assert) {
assert.expect(1);
assert.deepEqual(_.reject(array, isEven), [
1,
3
... |
// @flow
import prep from './internal/unmutable';
export const objectHas = (key: string) => (value: *): boolean => key in value;
export const arrayHas = (key: number) => (value: Array<*>): boolean => key < value.length && key >= -value.length;
export default prep({
name: 'has',
immutable: 'has',
record: '... |
const alunos = [{nome: 'joão', nota: 7.3, bolsista: false},
{nome: 'maria', nota: 9.2, bolsista: true},
{nome: 'pedro', nota: 9.8, bolsista: false},
{nome: 'ana', nota: 8.7, bolsista: true}]
//Desafio: todos os alunos são bolsistas?
const todosbolsistas = (resultado, bolsista) => resultado && bolsista
console.log (al... |
console.log('as-it');
console.log(typeof window.document); // eslint-disable-line
|
/*
* Jssor 18.0
* http://www.jssor.com/
*
* TERMS OF USE - Jssor
*
* Copyright 2014 Jssor
*
* 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
* witho... |
// Grab reference to dropdown select element
var selector = d3.select("#selDataset");
// Use list of sample names to populate select options
d3.json("samples.json").then((data) => {
console.log(data);
var names = data.names;
names.forEach((sample) => {
selector
.append("option")
... |
var searchData=
[
['message_0',['message',['../classbadgerdb_1_1_badger_db_exception.html#af2e9da03ce798e35150adf74730068d5',1,'badgerdb::BadgerDbException']]],
['message_5f_1',['message_',['../classbadgerdb_1_1_badger_db_exception.html#a4510b66828c819004489218abeb1cf32',1,'badgerdb::BadgerDbException']]]
];
|
import { ADVANCE, LOAD_HISTORY_COMPLETE } from '../constants/actionTypes/booth';
const initialState = [];
const normalize = entry => ({
_id: entry._id || entry.historyID,
user: entry.user,
media: {
...entry.media.media,
...entry.media
},
timestamp: new Date(entry.timestamp || entry.playedAt).getTime... |
export default class Comparator {
static defaultCompareFunction (a, b) {
if(a === b){
return 0;
}
return a < b ? -1 : 1;
}
constructor(compareFunction) {
this.compare= compareFunction || Comparator.defaultCompareFunction;
}
equal(a, b){
return thi... |
import * as tslib_1 from "tslib";
import { r as registerInstance, d as createEvent, c as getIonMode, h, H as Host, e as getElement } from './chunk-09ec7fc0.js';
import './chunk-1074393c.js';
import { c as popoverController, b as actionSheetController, a as alertController, s as safeCall } from './chunk-d83bfeae.js';
im... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
} from 'react-native';
export default class NavBarButton extends Component {
render() {
const { location, text, color, icon, handleButtonPress } = this.props;
const marg... |
import Compiler from './compiler';
export default function compile(ql, procs) {
return new Compiler(procs).compile(ql);
}
|
const {compareNumbers, compareText, chooseSortsCompareFn, defineCustomElement, TableComponent} = require('../src/wc-grid-table.js');
const {regexFilter, textFilter, compareFilter} = require('../src/filter-utils.js');
jest.mock('../src/wc-grid-table.css')
describe('compareNumbers', () => {
test('when first a... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { NavLink } from 'react-router-dom';
import {
Collapse,
Nav,
Navbar,
NavbarBrand,
NavbarToggler,
NavItem,
} from 'reactstrap';
class Navigation extends Component {
constructor(props) {
super(props);
this.togg... |
// scroll to top of the page
window.onbeforeunload = () => {
window.scrollTo(0, 0);
}
// fill/keep values in input fields (if they are in localStorage)
// listen for button clicks
window.onload = () => {
// show localStorage in input fields
populateValues();
// select all 'buttons'
const buttons = documen... |
import React from 'react';
import PropTypes from 'prop-types';
import { isEqual } from 'lodash';
import { FormattedMessage } from 'react-intl';
import setFieldData from 'final-form-set-field-data';
import { composeValidators, handleSaveKeyCommand, requiredValidator } from '@folio/stripes-erm-components';
import { Title... |
/* allow folding of complete cell, if IPython magic symbol "%" is in first line */
CodeMirror.registerHelper("fold", "magic", function(cm, start) {
var mode = cm.getMode(), Token = "%%";
if (start.line == 0) {
var lineText = cm.getLine(start.line);
var found = lineText.lastIndexOf(Token,0);
if (fo... |
const { VerificationToken, User } = require('../models');
module.exports = {
init(app) {
app.get('/api/users', async (req, res) => {
if (!req.user || req.user.role === 'none') {
return res.jsonp([]);
}
const conditions = {};
if (global.isProduction) {
conditions.verified ... |
function Highlighter(paperEl, highlightClass="is-highlighted") {
function generateTree(node, idx=0) {
let state = {
el: node,
index: idx,
text: false,
size: 0,
children: []
};
const kids = Array.from(node.childNodes);
i... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _flatten2 = _interopRequireDefault(require("lodash/flatten"));
var _Entry = require("../../../valueObjects/Entry");
var _collections = require("../../../reducers/collections");
function _interopRequireDefau... |
import React, { Component } from 'react'
import PropTypes from "prop-types"
import Img from "gatsby-image"
import EmblaCarouselReact from 'embla-carousel-react'
import { motion } from 'framer-motion'
import { IoIosArrowBack, IoIosArrowForward } from 'react-icons/io'
const duration = 0.75
const container = {
visible... |
// prefer default export if available
const preferDefault = m => m && m.default || m
exports.components = {
"component---src-pages-404-js": () => import("/Users/mrakharawit/Documents/Tests/cal_area/src/pages/404.js" /* webpackChunkName: "component---src-pages-404-js" */),
"component---src-pages-index-js": () => im... |
var assert = require('assert');
var EmailObfuscator = require('../index.js');
var obfuse = new EmailObfuscator;
describe('obfuscate', function() {
describe('simple mail', function() {
it('should be obfuscated', function() {
email.random = function() { return 1 };
as... |
export default {RadioBase: `import React from 'react';
import { Radio, withStyles } from '@evg-b/evg-ui';
const styles = {
base: {
display: 'flex',
flexWrap: 'wrap',
'&>*': {
margin: '5px'
}
}
}
const RadioBase = (props) => {
const { classes } = props
return ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{3871:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&... |
/**
* @license Copyright (c) 2003-2022, CKSource - Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import CharacterGridView from '../../src/ui/charactergridview';
import ViewCollection from '@ckeditor/ckeditor5-ui/src/viewcollection';
imp... |
UI.listbox = function(x,y,w,h){
var me = UI.element(x,y,w,h,true);
me.selectedIndex = 0;
var previousSelectedIndex = 0;
var font = window.fontMed;
var items = [];
var visibleIndex = 0;
var visibleIitems = 0;
var lineHeight = 18;
var startY = 10;
var scrollBarItemOffset = 0;
... |
import * as _util from './util';
// chapters 05 and 07
export const util = _util;
// chapter 03
export { default as StackArray } from './data-structures/stack-array';
export { default as Stack } from './data-structures/stack';
export { hanoi } from './others/hanoi';
export { hanoiStack } from './others/hanoi';
export... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
//window.Vue = require('vue');
import Vue from 'vue'
/**
* The followi... |
import React, {PureComponent} from 'react';
import {connect} from 'react-redux';
import moment from 'moment';
import {createEvent, createEventFail} from '../../action';
import Card, {CardContent, CardActions} from 'material-ui/Card';
import IconButton from 'material-ui/IconButton';
import AddIcon from 'material-ui-icon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.