path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
client/src/components/Dashboard/index.js | googleinterns/Pictophone | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import { compose } from 'recompose';
import Banner from '../Banner';
import GameSelector from '../GameSelector';
import CreateGamePage from '../CreateGame';
import JoinGamePage from '../JoinGame';
import {
withAuthorization,
withEm... |
client/analytics/components/partials/ModalsWrapper.js | Haaarp/geo | import React from 'react';
import {connect} from 'react-redux';
import SetThresholdsModal from './modals/SetThresholdsModal';
import * as ModalType from '../../constants/modalType';
class ModalWrapper extends React.Component {
getModal(typeId){
switch(typeId){
case ModalType.SET_THRESHOLDS_MO... |
example/examples/CustomTiles.js | phantomlds/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
docs/components/Navigation/Mobile.js | collegepulse/material-react-components | import PropTypes from 'prop-types';
import React from 'react';
import Shared from './Shared';
import Styles from './Mobile.css';
import TransitionGroup from 'react-transition-group/TransitionGroup';
function FirstChild(props) {
const childrenArray = React.Children.toArray(props.children);
return childrenArray[0] |... |
src/views/Login.js | gaearon/react-redux-universal-hot-example | import React from 'react';
export default class Login {
render() {
return (
<div>
<h1>Login</h1>
</div>
);
}
}
|
fields/types/datearray/DateArrayField.js | cermati/keystone | import ArrayFieldMixin from '../../mixins/ArrayField';
import DateInput from '../../components/DateInput';
import Field from '../Field';
import React from 'react';
import moment from 'moment';
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD';
const DEFAULT_FORMAT_STRING = 'Do MMM YYYY';
module.exports = Field.create({
dis... |
ajax/libs/handsontable/0.10.0/jquery.handsontable.js | abbychau/cdnjs | /**
* Handsontable 0.10.0
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Fri Dec 27 2013 17:46:22 GMT+0100 (Central European... |
react-flux-mui/js/material-ui/src/svg-icons/maps/layers-clear.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayersClear = (props) => (
<SvgIcon {...props}>
<path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-... |
src/svg-icons/communication/present-to-all.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
misc/jquery.js | khalim/rockthedrop |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
fields/types/url/UrlField.js | geminiyellow/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window... |
utils/typography.js | pcm-ca/pcm-ca.github.io | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import { GoogleFont } from 'react-typography'
import CodePlugin from 'typography-plugin-code'
const options = {
googleFonts: [
{
name: 'Montserrat',
styles: [
'700',
],
},
{
... |
frontend/src/app/components/ExperimentCardList.js | mathjazz/testpilot | import React from 'react';
import ExperimentRowCard from './ExperimentRowCard';
import Loading from './Loading';
import LayoutWrapper from './LayoutWrapper';
export default class ExperimentCardList extends React.Component {
getExperiments() {
if (!this.props.except) {
return this.props.experiments;
}
... |
src/Interpolate.js | albertojacini/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
src/components/common/book_table.js | haki-projects/mapping-feminism-v2 | import React, { Component } from 'react';
//will need access to application state and action creators in order to edit, delete, and add new table rows the "add" button can live outside of BookTable of course
class BookTable extends Component{
render(){
return(
<div>
<table className='table tab... |
src/parser/shared/modules/spells/bfa/azeritetraits/BondedSouls.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatNumber } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import Statistic from 'interface/statistics/Statistic';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import Has... |
docs/app/Examples/views/Feed/Content/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const FeedContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Image Label'
descriptio... |
files/rxjs/2.2.24/rx.compat.js | ramda/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
ajax/libs/forerunnerdb/1.3.933/fdb-core+persist.js | AMoo-Miki/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/FieldGroup/index.js | sebacorrea33/todoinstitutos | import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
require('./styles.scss');
function FieldGroup({ id, type, label, help, ...props }) {
return (
<FormGroup controlId={id}>
<ControlLabel>{label}</ControlLabel>
<FormControl type={type} classNa... |
ajax/libs/material-ui/5.0.0-alpha.21/AppBar/AppBar.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import capitalize fr... |
frontend/modules/recipe/containers/Recipe.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Loading from '../../base/components/Loading'
import RecipeScheme from '../components/RecipeScheme'
import * as RecipeActions from '../actions/RecipeActions'
import * as R... |
ajax/libs/forerunnerdb/1.3.552/fdb-core.js | pombredanne/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/forerunnerdb/1.3.482/fdb-core+persist.min.js | dada0423/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
example/examples/ImageOverlayWithAssets.js | lelandrichardson/react-native-maps | import React, { Component } from 'react';
import { StyleSheet, View, Dimensions } from 'react-native';
import MapView from 'react-native-maps';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 35.679976;
const ... |
nivo_stream.min.js | annibal/gmedic | !function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
src/index.js | camboio/yooneau | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
import * as types from './actions/types';
const createStoreWithMiddleware = applyMiddleware(... |
packages/react-error-overlay/src/components/CodeBlock.js | in2core/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
src/routes/search/index.js | aos2006/tesDeploy | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Search from './Search... |
public_html/js/jquery.js | xiayuanchuan/html5 | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
src/parser/shared/modules/spells/bfa/azeritetraits/UnstableCatalyst.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import AzeritePowerStatistic from 'interface/statistics/AzeritePowerStatistic';
import BoringSpellValueText from 'interface/statistics/components/Bori... |
files/core-js/0.9.9/library.js | iMega/jsdelivr | /**
* Core.js 0.9.9
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
src/watchlist/WatchlistPage.js | nuruddeensalihu/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import WatchlistContainer from './WatchlistContainer';
export default (props) => (
<WebPage>
<WatchlistContainer {...props} />
</WebPage>
);
|
files/angularjs/1.0.2/angular-scenario.js | sahat/jsdelivr | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL... |
src/routes/UIElement/editor/index.js | zhouchao0924/SLCOPY | import React from 'react'
import { Editor } from '../../../components'
import { convertToRaw } from 'draft-js'
import { Row, Col, Card } from 'antd'
import draftToHtml from 'draftjs-to-html'
import draftToMarkdown from 'draftjs-to-markdown'
// https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components... |
docs/app/Examples/elements/List/ContentVariations/ListExampleFloated.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Image, List } from 'shengnian-ui-react'
const ListExampleFloated = () => (
<List divided verticalAlign='middle'>
<List.Item>
<List.Content floated='right'>
<Button>Add</Button>
</List.Content>
<Image avatar src='/assets/images/avatar/small/lena... |
ajax/libs/inferno-devtools/3.0.5/inferno-devtools.js | extend1994/cdnjs |
/*!
* Inferno.DevTools v3.0.5
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) :
typeof define === 'function' && define.amd ? define(['inferno',... |
app/components/navbarpatientcard/navbarpatientcard.js | tidepool-org/blip |
/**
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in th... |
src/pages/About/About.js | analogrithems/react-sandbox | import React from 'react';
import { Row } from 'react-bootstrap';
const About = React.createClass({
render() {
return (
<Row>
<p>About Page</p>
</Row>
)
}
})
export default About
|
frontend/src/screens/history/widgets/comment-modal/comment-modal.js | linea-it/qlf | import React from 'react';
import Modal from '@material-ui/core/Modal';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import { FadeLoader } from 'halogenium';
import TextField from '@material-ui/core/TextField';
import Icon from '@material-ui/core/Icon';
import QlfApi from '... |
ajax/libs/babel-core/4.5.4/browser-polyfill.js | maruilian11/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
public/script/my/component/ui/alert.js | yuyang041060120/csfz-food-react | import React from 'react';
import $ from 'jquery';
var AlertComponent = React.createClass({
handleClose: function () {
if (this.props.onClose) {
this.props.onClose(close);
} else {
close();
}
},
handleCertain: function () {
if (this.props.onCertai... |
ajax/libs/yui/3.8.0pr2/event-custom-base/event-custom-base.js | dlueth/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
app/javascript/app/index.js | GiancarlosIO/ecommerce-book-app | /* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import ReduxThunk from 'redux-thunk';
// Actions
import { authUser, setUserData } from './actions/auth-actions';
// Routes
import Route... |
examples/pages/fadein.js | GGGGino/react-event-layer | import React, { Component } from 'react';
import { CSSTransitionGroup } from 'react-transition-group';
import Lazyload from '../../src/';
import Operation from '../components/Operation';
export default class FadeIn extends Component {
render() {
return (
<div className="wrapper">
<Operation type="... |
client2/src/components/whiteboard/whiteboard.js | ibulmer/Board | import React, { Component } from 'react';
import axios from 'axios';
import CanvasDraw from './canvasdraw';
import Gallery from './gallery';
import WhiteboardNav from './whiteboard_nav';
import Webcams from './../webcams/webcam-bar';
import PickColor from './colorbox';
import PickBackground from './bgcolorbox';
import ... |
cli/base-antd-pro/src/components/Result/index.js | CFshuming/react-demo-gather | import React from 'react';
import classNames from 'classnames';
import { Icon } from 'antd';
import styles from './index.less';
export default function Result({
className, type, title, description, extra, actions, ...restProps
}) {
const iconMap = {
error: <Icon className={styles.error} type="close-circle" />,... |
packages/mineral-ui-icons/src/IconBattery30.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBattery30(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
Examples/UIExplorer/GeolocationExample.js | sheep902/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
hw7-frontend/src/components/article/article.js | lanyangyang025/COMP531 | import React from 'react'
import { connect } from 'react-redux'
import { Comment } from './comment'
import { AddComment } from './addComment'
import { searchKeyword,showComments,addArticle,addComments,editPost } from './articleActions'
//content of a card
export const Article = ({ count, article, _id, author, date, t... |
node_modules/@material-ui/core/es/Popper/Popper.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import PopperJS from 'popper.js';
import { chainPropTypes } from '@material-ui/utils';
import Portal from... |
ajax/libs/webshim/1.15.5/dev/shims/moxie/js/moxie-html4.js | viskin/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
packages/material-ui-icons/src/TextRotateVerticalTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="m0 0h24v24H0V0z" /><path d="M15.75 5h-1.5L9.5 16h2.1l.9-2.2h5l.9 2.2h2.1L15.75 5zm-2.62 7L15 6.98 16.87 12h-3.74zM6 20l3-3H7V4H5v13H3l3 3z" /></React.Fragment>
, 'TextRotat... |
src/svg-icons/social/group.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroup = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3... |
ajax/libs/reactstrap/3.7.0/reactstrap.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-addons-transition-group")):"function"==typeof define&&define.amd?define("Reactstrap",["react","react-dom","react-addons-transition-group"],t):"object"==typeof exports?exports.Reactstrap... |
src/helpers/asyncComponent.js | johanwilson/vsm | import React, { Component } from 'react';
import ReactPlaceholder from 'react-placeholder';
import 'react-placeholder/lib/reactPlaceholder.css';
class AsyncComponent extends Component {
state = { Component: undefined };
componentWillUnmount() {
this.mounted = false;
}
async componentDidMount() {
this.m... |
ajax/libs/react-cookie/0.1.7/react-cookie.min.js | Olical/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/App.js | kondoSoft/react-car-rental | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/components/Nav.js | EmilNordling/poesk | import React from 'react'
import styled from 'styled-components'
import { NavLink as Link } from 'react-router-dom'
import { colors } from '../constants'
const Nav = styled.nav`
display: flex;
justify-content: center;
`
const NavLink = styled(Link)`
margin: 0 12px;
font-size: 1.8rem;
text-decoration: none;
... |
packages/react-error-overlay/src/components/Header.js | ConnectedHomes/create-react-web-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { red } from '../styles';
const headerStyle = {
fontSize: '2em',
fontFamily: 'sans-se... |
containers/live/LiveDebate.js | DemocraciaEnRed/democraciaenred.github.io | import React from 'react';
function LiveDebate () {
return(
<div >
<section className='debate-container'>
<div className='container-bulma'>
<h2><span>#VolvamosADebatir</span></h2>
<h1>La Desinformación como Distorsión Democrática <br/> ¿Qué podemos hacer?</h1>
<div cla... |
src/svg-icons/av/playlist-play.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
ajax/libs/survey-react/1.0.5/survey.react.min.js | sufuf3/cdnjs | /*!
* surveyjs - Survey JavaScript library v1.0.5
* Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&d... |
src/components/article/Annotation.js | garfieldduck/twreporter-react | 'use strict'
import commonStyles from './Common.scss'
import classNames from 'classnames'
import styles from './Annotation.scss'
import React from 'react' // eslint-disable-next-line
// lodash
import get from 'lodash/get'
export class AnnotationBlock extends React.Component {
constructor(props) {
super(props)
... |
src/components/Header.js | allygator/allygator.github.io | import React, { Component } from 'react';
class Header extends Component {
render() {
return (
<header className="App-header">
<div id="navContainer">
<nav>
<a href="#about">About</a>
<a href="#projects">Projects</a>
</nav>
</div... |
ajax/libs/styled-components/4.3.1-0/styled-components.browser.cjs.js | extend1994/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stylis = _interopDefault(require('stylis/stylis.min'));
var _insertRulePlugin = _interopDefault(require('stylis-rule-shee... |
node_modules/bower/node_modules/update-notifier/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | dropbox/changes | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/testutils.js | websash/q-and-a-react-redux-app | import React from 'react'
import {render} from 'react-dom'
import {Router, Route, browserHistory} from 'react-router'
import {renderToString} from 'react-dom/server'
function wrap(Component, props) {
return class ComponentWrapper extends React.Component {
render() {
return <Component {...props} />
}
... |
example/pages/flex/index.js | n7best/react-weui | import React from 'react';
import {
Flex,
FlexItem
} from '../../../build/packages';
import Page from '../../component/page';
const FlexDemo = (props) => (
<Page className="flex" title="Flex" subTitle="Flex布局" spacing>
<Flex>
<FlexItem>
<div className="placeholder">weui... |
Rate.UI/app/components/Layout.js | jcnavarro/rateflicks | import React from 'react';
import Footer from './Footer';
import Navbar from './Navbar';
export default class Layout extends React.Component {
render() {
return (
<div>
<Navbar history={this.props.router}/>
{this.props.children}
</div>
);
... |
src/components/Header/Header.js | petarslovic/bas-info | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
const AppBar = require('material-ui/lib/app-ba... |
goober/src/index.js | ampproject/amp-react-prototype | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
|
generators/testIndex/templates/index.template.js | RakanNimer/generator-react-jest-tests | // Auto-generated do not edit
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-undef */
import React from 'react';
import renderer from 'react-test-renderer';
import <%= filename %> from '../components/<%=filename%>';
<%= JSON.stringify(componentProps, 2, 2) />
describe('<%=filename%> tes... |
src/js/components/TodoAppDashboard.js | Gradient-kaist/Gradient | import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
import List from 'grommet/components/List';
import ListItem from 'grommet/components/ListItem';
import Status from 'grommet/components/icons/Status';
import CircleDashboard from './Circl... |
src/components/send/stories.js | LiskHQ/lisk-nano | import React from 'react';
import { Provider } from 'react-redux';
import { storiesOf } from '@storybook/react';
import Send from './send';
import store from '../../store';
const account = {
passphrase: 'wagon stock borrow episode laundry kitten salute link globe zero feed marble',
address: '1631373966167063466... |
assets/javascripts/kitten/components/feedback/timeline/test.js | KissKissBankBank/kitten | import React from 'react'
import renderer from 'react-test-renderer'
import { Timeline } from './index'
describe('<Timeline />', () => {
let component
describe('with default props', () => {
beforeEach(() => {
component = renderer
.create(
<Timeline>
<span>foo</span>
... |
app/containers/CategoryContainer.js | attentiveness/reading | /**
*
* Copyright 2016-present reading
*
* 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... |
ajax/libs/forerunnerdb/1.3.349/fdb-core+views.js | wout/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
docs/app/Examples/collections/Table/Variations/TableExampleSmall.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleSmall = () => {
return (
<Table size='small'>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes<... |
src/svg-icons/navigation/arrow-drop-up.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropUp = (props) => (
<SvgIcon {...props}>
<path d="M7 14l5-5 5 5z"/>
</SvgIcon>
);
NavigationArrowDropUp = pure(NavigationArrowDropUp);
NavigationArrowDropUp.displayName = 'NavigationArrowDrop... |
ajax/libs/react-swipe/2.0.8/react-swipe.min.js | holtkamp/cdnjs | !function(e,o){"undefined"!=typeof module&&module.exports?module.exports=o(require("react/addons"),require("swipe-js-iso")):e.ReactSwipe=o(e.React,e.Swipe)}(this,function(e,o){var i={container:{overflow:"hidden",visibility:"hidden",position:"relative"},wrapper:{overflow:"hidden",position:"relative"},child:{"float":"lef... |
examples/TopicsExample.js | ornl-sava/vis-react-components | import React from 'react'
import { NavLink } from 'react-router-dom'
import TopicsChart from '../src/premade/TopicsChart'
import StoryViewerExample from './StoryViewerExample'
// import {fakePrefixes, fakeData} from '../examples/data/for-hci/hciFakeData'
// import {prefixes, topData, aList} from '../examples/data/for... |
src/Badge/Badge.spec.js | mtsandeep/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Badge from './Badge';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Badge />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
packages/react-ui-components/src/ToggablePanel/toggablePanel.spec.js | mstruebing/PackageFactory.Guevara | import React from 'react';
import {shallow} from 'enzyme';
import toJson from 'enzyme-to-json';
import {createStubComponent} from './../_lib/testUtils';
import ToggablePanel, {
StatelessToggablePanel,
Header,
Contents
} from './toggablePanel';
describe('<ToggablePanel/>', () => {
let props;
before... |
src/svg-icons/notification/airline-seat-flat-angled.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlatAngled = (props) => (
<SvgIcon {...props}>
<path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19.... |
demo/views/content/menu5/menu52.js | 133922249/demo | import React, { Component } from 'react';
export default class Menu52 extends Component {
render() {
return (
<div>
<span>Menu52</span>
</div>
)
};
}
|
ajax/libs/react-chartjs/0.2.1/react-chartjs.js | cdnjs/cdnjs | /*!
* react-charts v0.2.1
* https://github.com/jhudson8/react-charts
*
*
* Copyright (c) 2014 Joe Hudson<joehud_AT_gmail.com>
*
* 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 withou... |
src/issues/IssueCard.js | easyCZ/open-sourcery | import React from 'react';
import { Button, Card, Image } from 'semantic-ui-react'
import { Header } from 'semantic-ui-react'
import { Icon, Label } from 'semantic-ui-react'
const IssueCard = ({ img, owner, name, description, stars, language }) => (
<Card style={{ minWidth: '400px' }}>
<Card.Content style={{
... |
node_modules/react-icons/io/printer.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoPrinter = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.6 10c2.2 0 4.4 1.5 4.4 4.3v10.2c0 2.5-2.2 4.3-4.4 4.3h-3.1v8.7h-20v-8.7h-3.1c-2.2 0-4.4-1.9-4.4-4.9v-9.6c0-3 2.2-4.3 4.4-4.3h3.1v-5h20v5h3.1z m-4.3 26.3v-13.8h-17... |
app/components/ToggleOption/index.js | ESTEBANMURUZABAL/bananaCatReact | import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequired,
message: React.PropTy... |
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDateShorthand.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleSummaryDate = () => (
<Feed>
<Feed.Event>
<Feed.Label image='http://semantic-ui.com/images/avatar/small/jenny.jpg' />
<Feed.Content>
<Feed.Summary
content='You added Jenny Hess to your coworker group... |
modules/der-reader/src/routes/Menu/MainMenu.js | makinacorpus/accessimap-lecteur-der | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Navigation from '../../components/Navigation/Navigation.js'
class MainMenu extends Component {
constructor(props) {
super(props)
this.state = {
activeMenu: 0
}
}
handleAction = () => {
if (this.props.route.c... |
src/popup.js | wiflsnmo/react_study2 | import React from 'react';
import ReactDom from 'react-dom';
import Popup from 'react-popup';
import '../css/popup.css';
ReactDom.render(
<Popup />,
document.getElementById('popupContainer')
); |
src/handbook/internet_policy.js | khayyamj/thunderbirds_troop51 | import React from 'react';
export default function () {
return (
<div>
<p className="p1"><span className="s1"><strong>Internet Policy</strong></span></p>
<p className="p2"> </p>
<p className="p3"><span className="s1">When personal information is posted on the internet, there is the potential that i... |
ajax/libs/cyclejs-core/1.0.0-rc1/cycle.js | LeaYeh/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle = f()}})... |
websrc/components/project/ProjectPage.js | Ricky-Nz/react-relay-example | import React from 'react';
import Relay from 'react-relay';
import { TitleBar, ParallaxBanner, PageFooter } from '../';
import ProjectSegments from './ProjectSegments';
import ProjectPager from './ProjectPager';
class ProjectPage extends React.Component {
componentDidMount() {
setTimeout(() => window.scrollTo(0, 0)... |
otr-project/Scripts/jquery-1.4.4.js | ratneshchandna/rambla | /*!
* Note: While Microsoft is not the author of this file, Microsoft is
* offering you a license subject to the terms of the Microsoft Software
* License Terms for Microsoft ASP.NET Model View Controller 3.
* Microsoft reserves all other rights. The notices below are provided
* for informational purposes onl... |
threeforce/node_modules/react-bootstrap/es/Nav.js | wolfiex/VisACC | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/webshim/1.14.6/dev/shims/es6.js | iwdmb/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
src/client/components/Affinity.js | mearns/image-affinity | import React from 'react';
import {ImageItem} from './ImageItem';
import * as reducer from '../reducer';
import {StateStore} from '../../services/state-store';
export class Affinity extends React.Component {
constructor(props) {
super(props);
this.state = props;
this._stateStore = new Stat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.