text stringlengths 2 1.04M |
|---|
import './waves.css'
const context = '@@wavesContext'
function handleClick(el, binding) {
function handle(e) {
const customOpts = Object.assign({}, binding.value)
const opts = Object.assign({
ele: el, // 波纹作用元素
type: 'hit', // hit 点击位置扩散 center中心点扩展
... |
import NextHead from 'next/head'
import { string } from 'prop-types'
const defaultDescription = ''
const defaultOGURL = ''
const defaultOGImage = ''
const Head = (props) => (
<NextHead>
<meta charset='UTF-8' />
<title>{props.title || ''}</title>
<meta name='description' content={props.description || def... |
import React, { Component } from 'react'
import {
FlatList
} from 'react-native'
import { connect } from 'react-redux'
import EvaluationListLayout from '../components/evaluation-list-layout'
import EvaluationListItem from '../components/evaluation-list-item'
import EmptyList from '../../utils/empty-list';
import S... |
$.NameSpace('$View.website');
$View.website.Product = function (j) {
var me = this, _fn = function () { };
var owner;
var args = { p: $DB };
var coms, formBtn, infoF, toolBar, uList;
function setDefault(j) { args = $.Util.initArgs(j, args); }
function layout() {
var _userHAry = [
... |
import React, { useEffect } from "react"
import Img from "gatsby-image";
import AOS from 'aos';
import 'aos/dist/aos.css';
const Features = ({ data }) => {
useEffect(() => {
AOS.init();
},[])
return (
<section className="features-section">
<h1>Highlights</h1>
<div className="features-subsection-... |
// Up-to-date as of 2013-04-19.
var textElements = {
a: {
// Conforming
target: "string",
download: "string",
ping: "string",
rel: "string",
relList: {type: "tokenlist", domAttrName: "rel"},
hreflang: "string",
type: "string",
referrerPolicy: {type: "enum", keywords: ["", "no-refer... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoPathTrailingSlash = void 0;
exports.NoPathTrailingSlash = () => {
return {
PathItem(_path, { report, key, location }) {
if (key.endsWith('/') && key !== '/') {
report({
mess... |
import 'array-foreach-async'
import axios from 'axios'
import { stringify } from 'qs'
import { chunkArray } from '../util/chunkArray'
import { deployedEnvironment } from '../../../sharedUtils/deployedEnvironment'
import { getClientId } from '../../../sharedUtils/getClientId'
import { getEarthdataConfig } from '../..... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
/*
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@carbon/icon-helpers'), require('prop-types'), require('react')) :
typeof define === 'function' && define.amd ? define(['@carbon/icon-helpers', 'prop-types', 'react'], factory) :
(global.... |
/*!
* # Semantic UI - Accordion
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
'use strict';
$.isFunction = $.isFunction || function(obj) {
return typeof obj === "function" && typeof ... |
export default {
mounted: function mounted() {
if (typeof document !== 'undefined') {
document.documentElement.addEventListener('click', this._clickOutListener);
}
},
beforeDestroy: function beforeDestroy() {
if (typeof document !== 'undefined') {
document.removeEventListener('click', this... |
import React, { useEffect, useRef, useState } from 'react'
import styled from 'styled-components'
import Module from '../../components/Module'
import Timeline from '../../components/Timeline'
import { useDispatch, useSelector } from 'react-redux'
const StyledModule = styled(Module)`
align-self: flex-start;
.modul... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
const exposes = require('../lib/exposes');
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
const tz = require('../converters/toZigbee');
const ota = require('../lib/ota');
const constants = require('../lib/constants');
const reporting = require('../lib/reporting');
cons... |
/**
* @file track-list.js
*/
import EventTarget from '../event-target';
import * as browser from '../utils/browser.js';
import document from 'global/document';
/**
* Common functionaliy between Text, Audio, and Video TrackLists
* Interfaces defined in the following spec:
* @link https://html.spec.whatwg.org/multi... |
export default function Heading(props) {
return (
<div className="my-6 text-center">
<h1 className="my-2 font-bold text-4xl">{props.title}</h1>
<h2 className="text-xl text-blue-500 font-semibold">{props.subtitle}</h2>
</div>
)
} |
/**
* 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');
import 'jquery-ui/ui/widgets/datepicker.js';
//window.Vue = require('vu... |
import * as React from "react";
import Svg, { Path } from "react-native-svg";
function SvgPauseCircleLine(props) {
return (
<Svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
<Path fill="none" d="M0 0h24v24H0z" />
<Path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10... |
// ==UserScript==
// @name Link to Image
// @namespace https://github.com/jkbhu85
// @version 1.9.0
// @description Link to image
// @author Optimus Prime
// @include /^https?:\/\/(www.)?x?1337x.*/torrent/.*$/
// ==/UserScript==
(function() {
'use strict';
function unstyleImage(ima... |
webpackJsonp([2],{"/ocq":function(t,e,n){"use strict";
/*!
* vue-router v3.1.5
* (c) 2020 Evan You
* @license MIT
/*!
* Vue.js v2.6.11
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
/*!
* vue-resource v1.5.1
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
/*!
* P... |
var WebTriadService = (function () {
//////////////////////////////////////////////////////////////////////////
function WebTriadService(serviceSettings) {
this.self = this;
this.fileApiUrl = "/files";
this.dicomViewerUrl = "/dicomViewerUrl";
this.anonymizationProfileUrl = "/anon... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
var express = require('express');
var router = express.Router();
var async = require('async');
var utils = require('../../../utils');
var teamReposRoute = requir... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class App extends Component {
render() {
return (
<div className="box">
<header>
<div className="header-box">
<h1 className="">
... |
function fetchInformationByCoin(coin) {
const URL_INFO = `https://api.coinmarketcap.com/v1/ticker/${coin.id}/`;
return fetch(URL_INFO, { method: 'GET' })
.then(res => res.json())
.then(res => res[0])
.catch(({ code: 'ERROR_FETCH', message: `Error for coin ${coin.value}.` }));
}
export default fetchInfo... |
import colors from 'kleur'
import { logger } from '../utils.js'
import { get_utils } from './utils.js'
/**
* @param {import('types/config').ValidatedConfig} config
* @param {import('types/internal').BuildData} build_data
* @param {{ cwd?: string, verbose: boolean }} opts
*/
export async function adapt( config, bui... |
module.exports = {
base_url: 'https://www.anbient.com',
} |
(function () {
'use strict';
angular
.module('forms')
.controller('CategoryController', CategoryController);
CategoryController.$inject = ['$scope', '$state', 'categoryResolve','formResolve', '$window', 'Authentication','CategoryService','FormsService','DistrictsService'];
function CategoryController... |
"use strict";
// ui.ts
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const koa_send_1 = __importDefault(require("koa-send"));
const ui_html_1 = __importDefault(requ... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/ |
exports.sentimentSatisfiedSharpImpl = require('@material-ui/icons/SentimentSatisfiedSharp').default; |
import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import LinkedStateMixin from 'react-addons-linked-state-mixin';
import SigninHeader from 'components/user/SigninHeader';
import SignupFooter from 'components/user/SignupFooter';
import { ApiAction } f... |
export const PAGES = {
LOGIN: 0,
SELECT_CAMPAIGN: 1,
NEW_CAMPAIGN: 2,
SHOW_CAMPAIGN: 3,
}; |
// Copyright 2013-2020, University of Colorado Boulder
/**
* Construction of 2D convex hulls from a list of points.
*
* For example:
* #begin canvasExample grahamScan 256x128
* #on
* var points = _.range( 50 ).map( function() {
* return new dot.Vector2( 5 + ( 256 - 10 ) * Math.random(), 5 + ( 128 - 10 ) * Mat... |
import React, { Component } from 'react';
import { Connect } from 'uport-connect';
import Web3 from 'web3';
import { ListGroup, Alert } from "react-bootstrap";
const connect = new Connect('Things', { network: 'rinkeby' })
const provider = connect.getProvider()
const web3 = new Web3(provider)
class UportInfo extends C... |
'use strict'
const { Pact } = require('@pact-foundation/pact')
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
const path = require('path')
const getAdminUsersClient = require('../../../../../app/services/clients/adminusers.client')
const registerFixtures = require('../../../../fixture... |
import React from "react";
class NameSearch extends React.Component {
readName(event) {
event.preventDefault();
let element = document.querySelector("#NAME");
fetch("http://localhost:80/name/" + element.value).then((res) => {
return res.json();
})
.then((p... |
/* global vis */
/* eslint-disable */
function draw() {
/* eslint-enable */
let nodes = [
{ id: 1, label: 'circle', shape: 'circle' },
{ id: 2, label: 'ellipse', shape: 'ellipse' },
{ id: 3, label: 'database', shape: 'database' },
{ id: 4, label: 'box', shape: 'box' },
{ id: 5, label: 'diamond'... |
"use strict"
var _ip = Date.parse( new Date());
/**
* Get position of canvas.
*
* @param {HTMLCanvasElement} canvas
* @param {int} x
* @param {int} y
*/
function windowToCanvas(canvas, x, y) {
var bbox = canvas.getBoundingClientRect();
return {
x: (x - bbox.left) * (canvas.width / bbox.width... |
import React, { useEffect, useState, useRef } from "react";
import { Link } from "react-router-dom";
import PropTypes from "prop-types";
AddToCart.propTypes = {
editCar: PropTypes.func.isRequired,
car: PropTypes.object.isRequired,
};
function AddToCart(props) {
const butAgregar = useRef();
const match = windo... |
"use strict";
import requireDir from "require-dir";
requireDir("./gulp"); |
exports.__es6Module = true;
exports.default = function(source) {
return new Buffer(source.toString("hex") + source.toString("utf-8"), "utf-8"); // eslint-disable-line
};
exports.raw = true; |
/*!
* VERSION: beta 1.9.6
* DATE: 2013-05-07
* UPDATES AND DOCS AT: http://www.greensock.com
*
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
*
* @license Copyright (c) 2008-2013, GreenSo... |
module.exports = require('./over'); |
let count = 0;
let margin = 0;
setTimeout(function() {
setInterval(function(){
var val = document.getElementById("value").innerHTML;
//document.getElementById("val").innerHTML = margin;
//document.getElementById("count").innerHTML = count;
//Triggered state (When something... |
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-class-definitions-static-semantics-early-errors
description: The `await` keyword is interpreted as an identifier within arrow function bodies
info: |
ClassStaticBlo... |
/*
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in com... |
const Component = require('react').Component
const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../../../store/actions')
const { getNetworkDisplayName } = require('../../../../..... |
define(["exports", "../../@polymer/polymer/polymer-element.js", "../hax-body-behaviors/lib/HAXWiring.js", "../hax-iconset/hax-iconset.js", "../../@polymer/paper-input/paper-input.js", "../../@polymer/paper-button/paper-button.js", "../../@polymer/iron-icon/iron-icon.js", "../../@polymer/iron-icons/av-icons.js"], functi... |
// @flow
import * as React from 'react';
import i18n from '@dhis2/d2-i18n';
import { Button } from '../Buttons';
import ConfirmDialog from '../Dialogs/ConfirmDialog.component';
type Props = {
dataEntryHasChanges: boolean,
onCancel: () => void,
}
type State = {
dialogOpen: boolean,
}
export default class ... |
/**
* @license
* Copyright 2017 Google 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... |
const mongoose = require('mongoose')
const signUpSchema = new mongoose.Schema({
username:{
type:String,
required:true
},
email:{
type:String,
required:true
},
password:{
type:String,
required:true
},
date:{
type:Date,
default:D... |
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals console */
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import Plugin from '@ckedi... |
(function(){
// This is for grouping buttons into a bar
// takes an array of `L.easyButton`s and
// then the usual `.addTo(map)`
L.Control.EasyBar = L.Control.extend({
options: {
position: 'topleft', // part of leaflet's defaults
id: null, // an id to tag the Bar with
leafletCla... |
zipdata({
"7000000":[[33,33101,"岡山市北区","オカヤマシキタク",331010000,""," ",""],[33,33102,"岡山市中区","オカヤマシナカク",331020000,""," ",""],[33,33103,"岡山市東区","オカヤマシヒガシク",331030000,""," ",""],[33,33104,"岡山市南区","オカヤマシミナミク",331040000,""," ",""]],
"7000001":[[33,33101,"岡山市北区","オカヤマシキタク",331010095,"宿","シュク",""]],
"7000002":[[33,33101,"岡山市北... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CategoryButton from './Skills/CategoryButton';
import SkillBar from './Skills/SkillBar';
const handleProps = ({ categories, skills }) => ({
buttons: categories.map((cat) => cat.name).reduce((obj, key) => ({
...obj,
[key]: f... |
/**
* Pydio Cells Rest API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit th... |
export function convertWildcardToRegex(wildcardString) {
if (!wildcardString) {
return undefined;
}
let result = wildcardString;
result = result.replace(/[-[\]\/{}()*+?.,\\^$|#\s]/g, "\\$&");
result = result.replace(/\\\?/g, ".");
result = result.replace(/\\\*/g, ".*");
if (
!wildcardString.sta... |
const path = require('path')
const { writeFileSync } = require('./lib/util')
const { publicPackageStructs, bundleStructs } = require('./lib/package-index')
const exec = require('./lib/shell').sync.withOptions({
exitOnError: true,
live: true
})
const PROPS_TO_COPY = [
'homepage',
'bugs',
'repository',
'lice... |
const should = require('chai').should;
const RouterOSAPI = require('../dist/index').RouterOSAPI;
const config = require('./config');
should();
describe('RouterOSAPI', function () {
describe('#connect()', () => {
it('should connect normally on ' + config.host, (done) => {
const conn = new Route... |
import './App.css';
import { useEffect } from 'react';
import LoginButton from './components/auth/auth0/LoginButton';
import LogoutButton from './components/auth/auth0/LogoutButton';
import Profile from './components/auth/auth0/Profile';
import { useAuth0 } from "@auth0/auth0-react";
import logo from './logo.png';
f... |
var path = require('path');
var util = require('util');
var autoprefixer = require('autoprefixer-core');
var pkg = require('../package.json');
var loaders = require('./loaders');
var plugins = require('./plugins');
var DEBUG = process.env.NODE_ENV === 'development';
var TEST = process.env.NODE_ENV === 'test';
var js... |
import React, { Component } from 'react';
import originalScannedCopy from '../../../api/utils/original-scanned-copy';
export default class Word extends Component {
constructor(props) {
super(props);
}
generateGoanChhehLink = (dicString, pageString) => {
let linkHtml = []
if (dicS... |
import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {
term: ''
};
}
render() {
// console.log(window.document.body);
return (
<div className="search-bar">
<input
value={this.state.term}
... |
import { getByTitle } from "@testing-library/dom";
import React from "react";
const NewsItem=(props)=> {
let { title, description, imageUrl, newsUrl, author, date} = props;
return (
<div>
<div class="card" style={{ width: "18rem" }}>
<img src={!imageUrl?"https://westernnews.media.clie... |
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _inject = require('./inject.decorator');
Object.defineProperty(exports, 'Inject', {
enumerable: true,
get: function get() {
return _inject.Inject;
}
});
var _injectable = require('./injectable.decorator');
Object.definePro... |
import Row from '../../../src/models/Row';
import RowCollection from '../../../src/collections/RowCollection';
describe('Row model', () => {
it('initializes the default values if no arguments are given', () => {
const row = new Row();
expect(row.children.isEmpty()).toBeTruthy();
expect(row... |
"use strict";
function Watermark(){
var self = this;
this.init = function(){
self.actions();
self.upload();
setTimeout(function(){
self.render($(".watermark-positions .watermark-position-item.active"));
}, 200);
};
this.actions = function(){
$('input... |
// Copyright 2015 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.
var SyscallsLibrary = {
$SYSCALLS__deps: [
#if SYSCALLS_REQUIRE... |
//@ui5-bundle ns/mitigations/Component-preload.js
jQuery.sap.registerPreloadedModules({
"version":"2.0",
"modules":{
"ns/mitigations/Component.js":function(){sap.ui.define(["sap/ui/core/UIComponent","sap/ui/Device","./model/models","./controller/ErrorHandler"],function(t,s,e,i){"use strict";return t.extend("ns.mitigat... |
#!/bin/env node
// OpenShift sample Node application
var express = require('express');
var fs = require('fs');
/**
* Define the sample application.
*/
var SampleApp = function() {
// Scope.
var self = this;
/* ================================================================ */
/* Helpe... |
window.bookSummaryJSON = "<p><b>After 20 years away from Kragdon-ah, Alex Hawk and his daughters return to the future.</b></p> <p>They find invaders with guns in great numbers. Now, Alex will take the fight to those invaders in their own homeland. He must face a superior force with more advanced technology. The battle ... |
/* OpenID for node.js
*
* http://ox.no/software/node-openid
* http://github.com/havard/node-openid
*
* Copyright (C) 2010 by Håvard Stranden
*
* 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 ... |
/**
* Copyright (c) 2015 Intel Corporation
*
* 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 ... |
import Login from '@/views/LoginPage';
import PatientsList from '@/views/PatientsListPage';
import PatientPage from '@/views/PatientPage';
import Calendar from '@/views/CalendarPage';
import Dashboard from '@/views/DashboardPage';
import Settings from '@/views/SettingsPage';
import Appointment from '@/views/Appointment... |
const expect = require('chai').expect
const getClaimDocumentsHistoricClaim = require('../../../../app/services/data/get-claim-documents-historic-claim')
const internalEligiblityHelper = require('../../../helpers/data/internal/internal-eligibility-helper')
const internalClaimDocumentHelper = require('../../../helpers/da... |
/* global localStorage */
const yo = require('yo-yo')
const modalDialog = require('../ui/modaldialog')
const defaultProfile = {
methods: [],
location: 'sidePanel',
type: 'iframe'
}
module.exports = class LocalPlugin {
/**
* Open a modal to create a local plugin
* @param {Profile[]} plugins The list of t... |
"use strict";
Object.defineProperty(exports, "__esModule", {value: true});
var prefix = "fas";
var iconName = "socks";
var width = 512;
var height = 512;
var ligatures = [];
var unicode = "f696";
var svgPathData = "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 51... |
(function(user){
var data = require('../data');
user.init = function(app){
app.get('/user/:userid', function(req, res){
var userid = req.params.userid;
data.GetUser(userid, function(err, user){
if(err){
console.log(err);
}else{
res.set("Content-Type", "application/json");
... |
import { escapeRegExp, lowerFirst, toString, upperFirst } from './string'
describe('utils/string', () => {
it('lowerFirst works', async () => {
expect(lowerFirst('Upper')).toBe('upper')
expect(lowerFirst(' Upper ')).toBe('upper')
expect(lowerFirst('Upper case')).toBe('upper case')
expect(lowerFirst(n... |
/**
* @module YArray
*/
import {
YEvent,
AbstractType,
typeListGet,
typeListToArray,
typeListForEach,
typeListCreateIterator,
typeListInsertGenerics,
typeListDelete,
typeListMap,
YArrayRefID,
callTypeObservers,
transact,
Doc, Transaction, Item // eslint-disable-line
} from '../internals.js'... |
// @flow
export { default as AbstractAudioMuteButton } from './AbstractAudioMuteButton';
export { default as AbstractButton } from './AbstractButton';
export type { Props as AbstractButtonProps } from './AbstractButton';
export { default as AbstractHangupButton } from './AbstractHangupButton';
export { default as Abst... |
module.exports = require('@thermopylae/dev.environment').configs.eslint; |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import "./Header.css";
import { logoutUser } from "../actions/index";
class Header extends Component {
renderContent = () => {
switch (this.props.auth.isAuthenticated) {
case false:
... |
var classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1gui_1_1_button =
[
[ "Button", "classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1gui_1_1_button.html#af6f7d7704fecda34cb1694f3e05af240", null ],
[ "setDefaultImage", "classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1gui_1_1_butto... |
"use strict";
const kleur = require("kleur");
const _ = require("lodash");
const { table, getBorderCharacters } = require("table");
const { match } = require("../utils");
module.exports = function(vorpal, broker) {
// List services
vorpal
.removeIfExist("services")
.command("services", "List of servic... |
const TEST_API_ANSWER_OVERFLOW = {
searchHits: [],
errorCode: 'search-error-overflow',
errorMessage: 'search-error-overflow',
}
const TEST_API_ANSWER_NO_HITS = {
searchHits: [],
}
const TEST_API_ANSWER_UNKNOWN_ERROR = {
searchHits: [],
errorCode: 'search-error-unknown',
errorMessage: 'search-error-unkno... |
import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
export default Ember.Route.extend(AuthenticatedRouteMixin,{
}); |
export { default as userOperations } from './userOperations';
export { default as userActions } from './userActions';
export { default as userReducers } from './userReducers';
export { default as userSelector } from './userSelector'; |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import { Icon } from '../Icon';
... |
import signal from 'pico-signals';
import { omit, pick, merge, isEqual } from 'lodash';
import { assertDeviceInfo } from './utils/asserts';
import { UnknownDeviceError, InvalidDeviceOperationError } from '../../utils/errors';
import { generateDeviceKeyMaterial, hashSha256 } from '../../utils/crypto';
import { getCurren... |
/**
* @description authRoutes file will contains all the routes and api routes
*/
const passport = require('passport');
module.exports = (app) => {
app.post('/api/login', function(req, res, next) {
if(!req.body.username) {
return res.status(404).send({
error: {
... |
const fetch = require("node-fetch");
const Discord = require("discord.js");
const config = require("../config.json");
const info = require("../controllers/info");
require('dotenv').config();
module.exports = {
name: "repo-info",
description: "Tells repo pull",
async execute(message, args) {
var randomColor =... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import _ from 'lodash';
import chrome from 'ui/chrome';
import React from 're... |
'use strict';
const {Transform} = require('stream');
const defaultInitial = 0;
const defaultReducer = (acc, value) => value;
class Fold extends Transform {
constructor(options) {
super(Object.assign({}, options, {writableObjectMode: true, readableObjectMode: true}));
this._accumulator = defaultInitial;
... |
import { effects, addEffect } from './effects'
export const options = {
// global initial state
// initialState: undefined,
// Should be one of ['browser', 'hash', 'memory']
// Learn more: https://github.com/ReactTraining/history/blob/master/README.md
historyMode: 'browser',
// A list of the standard Red... |
import React, { Component } from 'react';
import { View, StyleSheet, Navigator } from 'react-native';
import Button from './components/Button';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'white',
padding: 20,
justifyContent: 'center',
},
});
export default class Main... |
const path = require('path');
const pak = require('../package.json');
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.json'],
alias: {
[pak.name]: path.join(__dirname, '..', pak.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.