path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/js/components/mobile_list.js | wangi4myself/myFirstReactJs | import React from 'react';
import {Row,Col} from 'antd';
import {Router, Route, Link, browserHistory} from 'react-router'
export default class MobileList extends React.Component {
constructor() {
super();
this.state = {
news: ''
};
}
componentWillMount() {
var myFetchOptions = {
method: 'GET'
};
fe... |
examples/BadgeDropdowns.js | jsbranco/react-materialize | import React from 'react';
import Badge from '../src/Badge';
import Button from '../src/Button';
import Dropdown from '../src/Dropdown';
import Icon from '../src/Icon';
import NavItem from '../src/NavItem';
export default
<Dropdown
trigger={
<Button>Dropdown<Icon right>arrow_drop_down</Icon></Button>
}>
<Nav... |
index.android.js | jdpigeon/neurodoro | import React, { Component } from 'react';
import {
AppRegistry,
DeviceEventEmitter,
} from 'react-native';
import{
Router,
Scene,
}from 'react-native-router-flux';
import{ Provider, connect }from 'react-redux';
import{ createStore, applyMiddleware }from 'redux';
import thunk from 'redux-thunk';
import config f... |
src/components/Main.js | kobeycs/Git_ReactProject | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div c... |
src/containers/Home/Home.js | JimSangwine/react-redux-mocking | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// req... |
assets/javascripts/kitten/components/graphics/icons/no-image-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const NoImageIcon = ({ color, title, ...props }) => (
<svg
width="39"
height="39"
viewBox="0 0 39 39"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M18.... |
app/components/AddUser/UserMaps/index.js | prudhvisays/newsb | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class UserMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPlac... |
src/app/components/user/UsersList.js | michalniemiec288/clocker | import React from 'react'
import {Button} from 'react-bootstrap'
const UsersList = ({users, uids}) =>
<div>
{users && uids.map((uid, i) =>
<Button style={{margin: 10}} bsStyle="info" key={i}>
{users[uid].displayName || users[uid].email}
</Button>
)}
</div>
export default UsersList |
src/App.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { ApolloProvider, ApolloClient, createNetworkInterface } from 'react-apollo'
import { Provider } from 'react-redux'
import Routes from './routes'
// Base stylesheets
import './normalize.css'
import './app.css'
// Se... |
client/src/components/UsedOnTable/tests/UsedOnTable-test.js | silverstripe/silverstripe-admin | /* global jest, describe, beforeEach, it, expect */
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { Component as UsedOnTable } from '../UsedOnTable';
import provideUsedOnData from '../provideUsedOnData';
describe('UsedOnTable', () => {
let props = null;
describe('provideUsed... |
example/src/components/NewItem.js | nheyn/async-dispatcher | /*
* @flow
*/
import React from 'react';
type Props = {
label: string,
onUpdateNewItem: (label: string) => void,
onAddItem: () => void,
};
export default function NewItem({ label, onUpdateNewItem, onAddItem }: Props): React.Element<*> {
return (
<div>
<input type="text" value={label} onChange={({ ... |
src/main/webapp/static/jquery-validation/1.11.1/lib/jquery-1.8.3.js | MX2015/jeesite | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/components/slide6-proptype.js | lucky3mvp/react-demo | import React from 'react'
// export default React.createClass({
export default class proptype extends React.Component{
constructor (props) {
super(props);
}
PropTypes: {
age: React.PropTypes.number.isRequired
}
render () {
let type = typeof this.props.age;
return(
<p className="m-prop-test">我{this.pr... |
app/components/LoadingView.js | myReactNative/iReading | import React from 'react';
import {
ActivityIndicator,
Text,
View,
StyleSheet
} from 'react-native';
const LoadingView = () => (
<View style={styles.loading}>
<ActivityIndicator
size="large"
color="#3e9ce9"
/>
<Text styl={styles.loadingText}>数据加载中...... |
src/components/audioTrack.js | ryu047/DBZ-Scouter-2.0 | import React from 'react';
import ReactDom from 'react-dom';
var AudioTrack = React.createClass({
componentDidUpdate: function(){
ReactDom.findDOMNode(this).play();
},
render: function(){
return <audio className="track" src={this.props.track}></audio>
}
});
module.exports = AudioTrack; |
src/components/AboutAndrew/AboutAndrew.js | afreix/personal-site | import React from 'react';
import '../../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutAndrew = () => {
return (
<div>
<h2 className="alt-header">Header</h2>
<p>
My name is Andrew Freix
</p>
</div>
);
};
expor... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | embrah/Sash-specialist | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/material-ui-icons/src/FilterVintageSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.... |
ajax/libs/primereact/6.5.1/skeleton/skeleton.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < pr... |
app/index.js | futuun/verbose-winner | import React from 'react'
import { render } from 'react-dom'
import injectTapEventPlugin from 'react-tap-event-plugin'
import { AppContainer } from 'react-hot-loader'
import configureStore from './store'
import Root from './root'
import './root.raw.sass'
injectTapEventPlugin()
const store = configureStore()
const root... |
app/tests/components/MainSection-test.js | donpinkus/reactgo-scss | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import MainSection from 'components/MainSection';
import TopicItem from 'components/TopicItem';
const emptyData = [];
const topicItemData = [{
text: '',
id: '',
index: 0,
onIncrement: () => {},
onDecrement: () => {},
on... |
__tests__/component_specs/form_fields/datepicker_input_spec.js | MIK-dev-team/MIK-System | import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import DatePickerInput from '../../../app/javascript/components/form_fields/datepicker_input';
const months = ['Tammikuu', 'Helmikuu', 'Maaliskuu', 'Huhtikuu', 'Toukokuu', 'Kesäkuu',
'Heinäkuu', 'Elokuu', 'Syyskuu', 'Lokaku... |
testeJsGaleria/js/jquery-ui-1.10.3/tests/jquery-1.8.2.js | dereckleme/siteBouts | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*... |
app/javascript/mastodon/containers/account_container.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | webteckie/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
packages/containers/src/ActionIconToggle/ActionIconToggle.connect.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import cmf, { cmfConnect } from '@talend/react-cmf';
import { ActionIconToggle } from '@talend/react-components/lib/Actions';
export function mapStateToProps(state, ownProps) {
let props = {};
if (ownProps.actionId) {
props = cmf.action.getActionInfo(
... |
app/containers/NotFoundPage/index.js | VonIobro/ab-web | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import H1 from '../../components/H1';
import { backgroundBoxed } from '../../variables';
impor... |
src/components/navigation.js | inkdropapp/docs | import { StaticQuery, graphql, Link } from 'gatsby'
import { Container } from 'semantic-ui-react'
import React from 'react'
import { GatsbyImage } from 'gatsby-plugin-image'
import './navigation.less'
const Navigation = () => (
<Container className="app--navigation">
<nav className="ui grid">
<div classNam... |
App/Home/Home.js | wangmengling/MaoMobxBlog | import React, { Component } from 'react';
import { observer } from 'mobx-react';
import DevTools from 'mobx-react-devtools';
import Summary from '../Summary/Summary'
import './Home.scss'
@observer
class Home extends Component {
render() {
const articleLists = this.props.homeState.articleList;
const listItem... |
ajax/libs/forerunnerdb/1.3.677/fdb-core+views.min.js | seogi1004/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... |
3rd_party/packages/jQuery.1.8.2/Content/Scripts/jquery-1.8.2.min.js | valkovnet/IdentityServer | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/layouts/index.js | simpaa/s-andersson-site | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import Header from '../components/header';
import Footer from '../components/footer';
import Data from '../data/SiteConfig';
import './index.css'
const TemplateWrapper = ({
children
}) => (... |
Libraries/Components/MaskedView/MaskedViewIOS.ios.js | makadaw/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/frontend/forms/Invoice/pay.js | Koleso/invoicer | import React from 'react';
import { reduxForm } from 'redux-form';
import { browserHistory } from 'react-router';
// Notifications
import { actions as notifActions } from 'redux-notifications';
const { notifSend } = notifActions;
// Components
import Form from 'components/Form';
import Button from 'components/Button'... |
imports/client/components/Contact/ContactForm.js | evancorl/skate-scenes | import { Meteor } from 'meteor/meteor';
import React from 'react';
import Scroll from 'react-scroll';
import { EzForm } from '../../../modules/ezform';
import contactFormSchema from '../../../modules/schemas/contact-form';
const ScrollElement = Scroll.Element;
class ContactForm extends React.Component {
constructo... |
src/components/Header/MenuItem.js | FAN-CUK/official | import React from 'react';
class MenuItem extends React.Component {
render() {
return(
<li><a href={"/board/" + this.props.idx}>{this.props.name}</a></li>
)
}
};
export default MenuItem;
|
src/layouts/index.js | creaturesagainstcancer/creaturesagainstcancer.github.io | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import './index.css'
const Header = () => (
<div
style={{
background: 'rebeccapurple',
marginBottom: '1.45rem',
}}
>
<div
style={{
margin: '0 auto',
... |
Examples/UIExplorer/ListViewPagingExample.js | mihaigiurgeanu/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,
... |
lesson-2/idea-journal/solution/src/components/Header.js | msd-code-academy/lessons | import React from 'react'
import NewNoteModal from './NewNoteModal'
import logo from '../logo.png'
import '../styles/Header.css'
class Header extends React.Component {
render() {
const {...props} = this.props
return (
<div className="Header">
<div className="Header-logo">
<img src={logo} alt="logo" /... |
es6/Tab/TabPane.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
project-the-best/src/component/home/Home.js | renhongl/Summary |
import React, { Component } from 'react';
import { Background } from '../background';
import { Footer } from '../footer';
import { Setting } from '../setting';
import { application, defaultSetting, notificationStyle } from '../../share/config/globalConfig';
import { colorRgb } from '../../share/tool/globalFunc';
impo... |
app/containers/UGAddTourPage/CheckboxInput.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by yunzhou on 20/11/2016.
*/
import React from 'react';
const CheckboxInput = (props) => <input
id={props.id}
type="checkbox"
name={props.name}
placeholder={props.placeholder}
value={props.value}
onChange={props.onChange}
onBlur={props.onBlur}
>
</input>;
CheckboxInput.propTypes = {
i... |
frontend/app/js/components/rules_v2/edit/addnode.js | serverboards/serverboards | import React from 'react'
import i18n from 'app/utils/i18n'
function AddNode(props){
const {AddNode, gotoStep, onUpdate, id, section, addNode} = props
console.log(props)
let input_id="AddNode_"+id.join("_")
return (
<div className="ui extend with padding">
<h2 className="ui centered header">
... |
components/EditTask.js | reneechar/React-Kanban | import React from 'react';
import styles from './sass/items.scss';
import ReactDOM from 'react-dom';
import {receiveTasks, toggleEditForm} from '../actions/kanbanActions';
import {connect} from 'react-redux';
class EditTask extends React.Component {
constructor() {
super();
this.editData = this.editData.bind... |
web/assets/js/jquery-1.7.2.min.js | mielony/Zubi | /*! 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/component.js | kdoh/color-harmony | import React from 'react'
import { Harmonizer } from 'color-harmony'
class Component extends React.Component {
constructor() {
super();
this.state = {
scheme: 'analogous'
};
}
genColors() {
let colors = []
let h = new Harmonizer;
for(var key in this.props... |
RadioGroup/RadioGroup.js | mmellado/airtame-gooey-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { shallowCompareOptionsArray } from '../_utils';
/**
* RadioGroup component
*
* @export
* @class RadioGroup
* @extends {Component}
*/
export default class RadioGroup extends Component {
/**... |
packages/react-widgets/test/List-test.js | haneev/react-widgets | import React from 'react';
import tsp from 'teaspoon';
import List from '../src/List';
describe('List', () => {
var data = [
{ first: 'jimmy', last: 'smith', id: 0 },
{ first: 'sally', last: 'smith', id: 1 },
{ first: 'pat', last: 'jones', id: 2 },
{ first: 'jason', last: 'quense', id:... |
src/icons/IosTelephone.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosTelephone extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M415.9,335.5c-14.6-15-56.1-43.1-83.3-43.1c-6.3,0-11.8,1.4-16.3,4.3c-13.3,8.5-23.9,15.1-29,15.1c-2.8,0-5.8-2.5-12.4-8... |
example3/index.ios.js | hbarve1/react-native-examples | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import Js from "./js";
const example3 = () => <Js/>;
export default example3;
AppRegistry.registerComponent('example3', () => example3);
|
app/components/Button.js | jastkand/vk-notifications | import React from 'react'
import styles from './Button.css'
export default (props) => {
let modifierClass = styles[props.className]
let btnClass = `${styles.btn}`
if (modifierClass) {
btnClass = `${btnClass} ${modifierClass}`
}
return (
<button onClick={ props.onClick } className={ btnClass }>{ pro... |
src/components/planeditor/listeditoritem.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Name from '../namelist/name';
import Cell from './cell';
const $ = require('jquery');
class ListEditorItem extends React.Component {
constructor() {
super();
this.state = {
ope... |
ajax/libs/yui/3.12.0/simpleyui/simpleyui-debug.js | simudream/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/svg-icons/action/feedback.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFeedback = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
ActionFeedback = pure(Acti... |
docs/app/Examples/elements/Image/Usage/ImageExampleChildren.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Image, Label } from 'semantic-ui-react'
const ImageExampleChildren = () => (
<div>
<Image size='small'>
<Label content='Image not found!' icon='warning' />
</Image>
<span>Some other content</span>
</div>
)
export default ImageExampleChildren
|
src/routes/error/ErrorPage.js | malinowsky/dataroot_03 | /**
* 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 PropTypes from 'prop-... |
jquery.js | Bagyidaw/web-development | /*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
app/components/Game/GameForm.js | cdiezmoran/playgrounds-desktop | // @flow
import React, { Component } from 'react';
import jwtDecode from 'jwt-decode';
import $ from 'jquery';
import toastr from 'toastr';
import type { Game } from '../../utils/globalTypes';
type Props = {
isUploading: boolean,
isEditing: boolean,
macURL: ?string,
winURL: ?string,
macName: ?string,
winN... |
test/TableSpec.js | leozdgao/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
ajax/libs/js-data/2.2.1/js-data-debug.js | dlueth/cdnjs | /*!
* js-data
* @version 2.2.1 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
packages/material-ui-icons/src/DialerSip.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.27-.26.35-.65... |
app/components/ListItem/index.js | bsr203/react-boilerplate | import React from 'react';
import styles from './styles.css';
function ListItem(props) {
return (
<li className={props.className || styles.item}>
<div className={styles.itemContent}>
{props.content}
</div>
</li>
);
}
ListItem.propTypes = {
className: React.PropTypes.string,
conten... |
src/components/video_list.js | danielnavram/React-youtube-api | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} ... |
node_modules/react-router-dom/es/BrowserRouter.js | ChrisMichaelPerezSantiago/CodetrotterFinalProject | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
app/containers/Table/Edit/index.js | rayrw/skygear-apitable | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { reset } from 'redux-form';
import AddFieldDialog from 'components/Table/Edit/AddFieldDialog';
import RemoveFieldDialog from 'components/Table/Edit/RemoveFieldDialog';
import GetEndPointDialog from 'components/Table/Edit/GetEndPoin... |
node_modules/react-icons/fa/delicious.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaDelicious = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 30.7v-10.7h-15.8v-15.7h-10.7q-2 0-3.5 1.4t-1.5 3.6v10.7h15.7v15.7h10.8q2 0 3.5-1.4t1.5-3.6z m1.4-21.4v21.4q0 2.7-1.9 4.6t-4.5 1.8h-21.5q-2.6 0-4.5-1.8t-1.9-4.... |
src/layouts/PublishingApp.js | ghartong/react_falcor | import React from 'react'
import { connect } from 'react-redux'
import falcorModel from '../falcorModel'
import { bindActionCreators } from 'redux'
import articleActions from '../actions/article'
import ArticleCard from '../components/ArticleCard'
const mapStateToProps = (state) => ({
...state
})
const mapDispatc... |
src/Main/ErrorBoundary.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { captureException } from 'common/errorLogger';
import AppBackgroundImage from 'Main/AppBackgroundImage';
import SomethingsGoneWrongBackground from 'Main/Images/somethings-gone-wrong.gif';
import DiscordButton from 'Main/DiscordButton';
class Erro... |
test/unit/src/common/components/share/t_twitter.js | canonical-websites/build.snapcraft.io | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import { Tweet } from '../../../../../../src/common/components/share';
describe('<Tweet />', function() {
let wrapper;
beforeEach(function() {
wrapper = shallow(<Tweet text={ 'foo' } />);
});
it('should be an ancho... |
plugins/content/jw_sigpro/jw_sigpro/includes/jquery/jquery-1.11.3.min.js | adamopoulosg/zagori_site | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
assets/js/layouts/app-header.react.js | Nosferatu-lib/nosferatu-reactjs-auth | import React from 'react';
import classNames from 'classnames';
var AppHeader = React.createClass({
render() {
var classes = classNames({
'app-header': true,
'sticky': true
});
return (
<div className={classes}>App Header</div>
);
}
});
export default AppHeader; |
src/parser/warlock/demonology/modules/talents/BilescourgeBombers.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatThousands } from 'common/format';
import StatisticListBoxItem from 'interface/others/Stati... |
src/app/launcher.js | AGanyushkin/boilerplate_redux_react | /* eslint-disable no-unused-vars */
import React from 'react'
import {Provider} from 'react-redux'
/* eslint-enable no-unused-vars */
import ReactDOM from 'react-dom'
import {routerMiddleware, syncHistoryWithStore, routerReducer} from 'react-router-redux'
import {browserHistory} from 'react-router'
import {createStore... |
node_modules/react-popper/lib/PopperManager.js | wiflsnmo/react_study2 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
test/webpack-demos-master/demo15/App.js | fire17643/Vue-resource | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello World</h1>
);
}
}
|
docs/src/app/components/pages/components/Slider/ExampleControlled.js | andrejunges/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* The slider bar can have a set minimum and maximum, and the value can be
* obtained through the value parameter fired on an onChange event.
*/
export default class SliderExampleControlled extends React.Component {
state = {
firstSlider:... |
assets/js/src/routes.js | nathandao/git.report | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import App from 'app';
import Home from 'pages/Home';
import Selector from 'pages/Selector';
const routes = (
<Router>
<Route path="/" component={ App }>
<IndexRoute component={ Home }/>
<Route path="/selector" comp... |
examples/js/advance/validator-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
... |
src/ButtonGroup.js | roadmanfong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
src/routes/index.js | mm4700/intern-demo | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import App from '../containers/App';
import * as views from '../views';
export default (
<Route path="/" component={App}>
<IndexRedirect to="simulations" />
<Route path="simulations" component={views.HomeView} />
<Route path=... |
ajax/libs/analytics.js/1.5.3/analytics.min.js | upgle/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
src/page/CreateForm.js | opstalent/redux-crud | import React from 'react';
import PropTypes from 'prop-types';
import { reduxForm, Field } from 'redux-form';
import { connect } from 'react-redux';
import { compose } from 'redux';
import resolverContainer from './resolverContainer.js';
import FieldComponent from './form/FieldComponent.js';
import formNamer from './f... |
src/components/Main/ItemList/ItemList.js | keyanzhang/code-only-hacker-news | import React from 'react';
import { map } from 'react-immutable-proptypes';
import SingleItem from './SingleItem';
const getItemLangs = (id, langs) => {
const res = langs.get(id);
if (!res) {
return undefined;
}
return res.keySeq().toArray();
};
const ItemList = ({ itemsToRender, langs, readmes }) => (
... |
src/lib/markers/TimelineMarkersRenderer.js | namespace-ee/react-calendar-timeline | import React from 'react'
import { TimelineMarkersConsumer } from './TimelineMarkersContext'
import { TimelineMarkerType } from './markerType'
import TodayMarker from './implementations/TodayMarker'
import CustomMarker from './implementations/CustomMarker'
import { TimelineStateConsumer } from '../timeline/TimelineStat... |
src/js/components/TableRow.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.TABLE_ROW;
export default class TableRow extends... |
turismo_client/src/components/logout.js | leiverandres/turismo-risaralda | import React from 'react'
import {Redirect} from 'react-router-dom'
import Auth from '../utils/auth'
const Logout = (props) => {
Auth.logout()
return (
<Redirect to='login' />
)
}
export default Logout
|
docs/src/components/Demo/EditorWithMentionHashtag/index.js | michalko/draft-wyswig | /* @flow */
import React from 'react';
import { Editor } from 'react-draft-wysiwyg';
import Codemirror from 'react-codemirror';
import sampleEditorContent from '../../../util/sampleEditorContent';
const EditorWithMentionHashtag = () => (
<div className="demo-section">
<h3>8. Editor with mentions and hashtag. Ty... |
src/routes/UIElement/dataTable/index.js | IssaTan1990/antd-admin | import React from 'react'
import { DataTable } from '../../../components'
import { Table, Row, Col, Card, Select } from 'antd'
class DataTablePage extends React.Component {
constructor (props) {
super(props)
this.state = { filterCase: {
gender: '',
} }
}
handleSelectChange = (gender) => {
... |
code/workspaces/web-app/src/containers/dataStorage/DataStorageContainer.spec.js | NERC-CEH/datalab | import React from 'react';
import { shallow } from 'enzyme';
import createStore from 'redux-mock-store';
import DataStorageContainer, { PureDataStorageContainer } from './DataStorageContainer';
import dataStorageService from '../../api/dataStorageService';
jest.mock('../../api/dataStorageService');
beforeEach(() => {... |
src/routes/register/index.js | agiron123/react-starter-kit-TDDOList | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Register from './Registe... |
ajax/libs/react-instantsearch/5.0.2/Connectors.js | seogi1004/cdnjs | /*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :... |
node_modules/react-dom/dist/react-dom-server.min.js | hkim53/insta | /**
* ReactDOMServer v15.5.4
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same d... |
src/js/components/chart/HotSpots.js | odedre/grommet-final | // (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { padding } from './utils';
import CSSClassnames from '../../utils/CSSClassnames';
import Intl from '../../utils/Intl';
import Keyboa... |
src/pages/registration/index.js | Vision100IT/v100it-template | import React from 'react';
import fm from 'front-matter';
import Index from '../../components';
import {Markdown} from '../../components/markdown';
import content from '../../content/registration.md';
const {body, attributes} = fm(content);
const Registration = () => (
<Index>
<div className="registration-wrapper"... |
ajax/libs/video.js/4.4.1/video.dev.js | ljharb/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
packages/reactor-kitchensink/src/examples/Charts/ChartToolbar.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Label, Spacer, Button, Toolbar, SegmentedButton, Menu, MenuItem } from '@extjs/ext-react';
Ext.require([
'Ext.chart.theme.Blue',
'Ext.chart.theme.Green',
'Ext.chart.theme.Muted',
'Ext.chart.theme.Red',
'Ext.chart.theme.Sky',
'Ext.chart.theme.Ye... |
client/js/needs.js | charitycollective/charitytree | import React from 'react';
import { Link, History } from 'react-router';
exports.Needs = React.createClass({
navigateToDonate: function () {
this.props.navigateToDonate();
},
render: function() {
console.log("Needs/render/this.props:",this.props);
return (
<div className="card blue-grey darken... |
src/apps/dynamicUI/component/form/formItems.js | ziaochina/reactMonkey | import React from 'react'
import { Form } from 'xComponent'
import DynamicComponent from '../../'
import FormItem from './formItem'
export default class FormItemsComponent extends React.Component {
static defaultProps = {
prefixCls: 'z-formitems'
}
getChildComponents(){
let { _getter, _path... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | fiture/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
wp-includes/js/jquery/jquery.js | annegrundhoefer/randy | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.