path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/client/components/ProConComponent/ProConPage/PageElements/Topics.js | psu-hci/ReactiveThinker | import React from 'react';
import './Topics.less';
import $ from 'jquery';
// var TopicNames = ['Future of work', 'Community', 'Big Data', 'Shallows'];
class Topics extends React.Component {
constructor (props) {
super(props);
}
changeTopic (index) {
this.props.changeTopic(index);
}
render () {
... |
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button, Menu } from 'semantic-ui-react'
const MenuExampleButtons = () => {
return (
<Menu>
<Menu.Item>
<Button primary>Sign up</Button>
</Menu.Item>
<Menu.Item>
<Button>Log-in</Button>
</Menu.Item>
</Menu>
)
}
export default MenuE... |
src/main.js | flexicious/react-redux-datagrid | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const init... |
app/javascript/mastodon/components/attachment_list.js | salvadorpla/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Icon from 'mastodon/components/icon';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
export ... |
manager/src/components/screens/HomeScreen.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, Image, Text } from 'react-native';
class HomeScreen extends Component {
render(){
return(
<View style={{flex: 1, backgroundColor: '#e6e6e6'}}>
<View style = {styles.fundoLogo}>
<Image style={{width: 300, height: 300}} source={requ... |
site/src/pages/index.js | ajfisher/ajfisher.me | import React from 'react';
import styled from 'styled-components';
import { Link, graphql } from 'gatsby';
import SEO from '../components/seo';
import Layout from '../components/list-layout';
import { ListItems, PostListItem } from '../components/list';
const Intro = styled.p`
margin-top: var(--gutter) !important;
... |
2-alpha/src/Admin/HaystackPreview.js | saturninoharris/primer-design | import React from 'react'
import { connect } from 'react-redux'
import { formValueSelector } from 'redux-form';
import styled from 'styled-components'
import theme from '../styles/theme'
import { Left3, Left5, Right3, Right5 } from '../components/HelperEnds'
import Codons from '../components/Codons'
import HelperPosi... |
test/test_helper.js | digitalphant0m/Scarif | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
webapp/src/app/futureEvents/containers/FutureEventsContainer.js | cpollet/itinerants | import React from 'react';
import moment from 'moment';
import Events from '../screens/FutureEvents';
import {fetchFutureEvents} from '../actions';
import {connect} from 'react-redux';
import {push} from 'react-router-redux';
import Spinner from '../../../widgets/Spinner';
class FutureEventsContainer extends React.Com... |
pages/index/index.js | sullenor/skeleton | import lrApi from 'livereactload-api';
import { comp, toClj } from 'mori';
import { createRedux } from 'redux';
import * as stores from '../../bro/stores';
import React from 'react';
import App from '../../bro/components/App';
function transform(state) {
state.default = toClj(state.default);
return state;
}
func... |
app/routes.js | DerelictLink/butt3r | import React from 'react';
// import { IndexRoute, Route } from 'react-router';
// import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
// import App from './containers/App';
// import HomePage from './containers/HomePage';
// import NotFound from './containers/NotFoundPage';
// import BaseL... |
app/js/views/Icons/FontAwesome/FontAwesome.js | jagatjeevan/dakiya | import React, { Component } from 'react';
class FontAwesome extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="card" id="new">
<div className="card-header">20 New Icons in 4.5</div>
<div className="card-block">
<div className="r... |
src/components/album-item/AlbumItem.js | paramsinghvc/harp | import React, { Component } from 'react';
import { Link } from 'react-router';
require('./AlbumItem.scss');
export default class AlbumItem extends Component {
render() {
return (
<Link to={`/album/${this.props.album.getIn(['id'])}`} className="album-item"
aria-labelledby={`album-${thi... |
examples/js/column-filter/float-filter.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 products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
p... |
src/svg-icons/hardware/smartphone.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
examples/with-url-object-routing/pages/about.js | nelak/next.js | import React from 'react'
import Link from 'next/link'
import Router from 'next/router'
const href = {
pathname: '/about',
query: { name: 'zeit' }
}
const as = {
pathname: '/about/zeit',
hash: 'title-1'
}
const handleClick = () => Router.push(href, as)
export default (props) => (
<div>
<h1>About {prop... |
src/renderer/ui/pages/ColorWheelPage.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import React, { Component } from 'react';
import ColorPicker from '../components/settings/ColorPicker';
import WindowContainer from '../components/generic/WindowContainer';
export default class ColorWheelPage extends Component {
render() {
return (
<WindowContainer title={TranslationProvider.query('title-... |
src/components/app.js | dakotahavel/weather-chart | import React, { Component } from 'react';
import SearchBar from '../containers/search-bar.jsx'
import WeatherList from '../containers/weather-list.jsx'
export default class App extends Component {
render() {
return (
<div>
<SearchBar></SearchBar>
<WeatherList></WeatherList>
</div>
... |
ignite/DevScreens/FaqScreen.js | littletimo/beer-counter | // An All Components Screen is a great way to dev and quick-test components
import React from 'react'
import { View, ScrollView, Text, Image, TouchableOpacity } from 'react-native'
import { Images } from './DevTheme'
import styles from './Styles/FaqScreenStyles'
class ComponentExamplesScreen extends React.Component {
... |
test/kitchensink/src/features/webpack/SvgInclusion.js | egoist/poi | import React from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="logo" />;
|
renderer/components/UI/Dialog.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex } from 'rebass/styled-components'
import { useCloseOnUnmount, useOnKeydown } from 'hooks'
import Button from './Button'
import Card from './Card'
import Heading from './Heading'
import CloseButton from './CloseButton'
const createButtons = butt... |
src/public/js/components/FinanceElementContext.js | datalocale/dataviz-finances-gironde | import React from 'react';
const DELAY = 500;
function animate(elements, widths){
elements.forEach((e, i) => {
e.style.width = widths[i];
})
}
function reset(els){
els.forEach(e => e.style.width = 0);
}
export default class SektorComponent extends React.Component {
constructor(){
... |
app/routes/index.js | Caraxiong/react-demo | import React from 'react'
import {BrowserRouter,Route, Link,Switch} from 'react-router-dom'
import Home from '../views/Home'
import Login from '../views/Account/Login'
import Register from '../views/Account/Register'
const routes = (
<BrowserRouter>
<Switch>
<Route exact path="/" component={Ho... |
assets/javascripts/kitten/components/graphics/icons/bubble-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const BubbleIcon = ({ color, title, ...props }) => (
<svg
width="14"
height="12"
xmlns="http://www.w3.org/2000/svg"
fill={color}
{...props}
>
{title && <title>{title}</title>}
<path
d="M3.417 11.155L1.5 12.732l.43... |
src/utils/ValidComponentChildren.js | xuorig/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
app/javascript/mastodon/features/follow_requests/index.js | alarky/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
docs/app/Examples/collections/Table/States/TableExampleError.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
const TableExampleError = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes<... |
src/svg-icons/communication/call-missed-outgoing.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissedOutgoing = (props) => (
<SvgIcon {...props}>
<path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z"/>
</SvgIcon>
);
CommunicationCallMissedOutgoing = pure(CommunicationCallM... |
examples/huge-apps/components/Dashboard.js | Nedomas/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
src/containers/pages/miscellaneous/privacy-policy/caloppa/content.js | vFujin/HearthLounge | import React from 'react';
const ContentCalOPPA = () => {
return (
<li>
<h3 id="caloppa">California Online Privacy Protection Act (CalOPPA)</h3>
<p>
CalOPPA is the first state law in the nation to require commercial websites and online services to post a privacy policy. The law's reac... |
src/admin/pages/Posts.js | rendact/rendact | import React from 'react';
import ContentType from '../lib/ContentType';
import AdminConfig from '../AdminConfig';
import Query from '../query';
let Posts = React.createClass({
render: function() {
return <ContentType
name="Post"
slug="posts"
tableName="Post"
fields={AdminConfig.PostFields}
list... |
test/helpers/shallowRenderHelper.js | shengwenjia/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
blocks/go-to.js | UXtemple/panels | import React from 'react'
import toCSS from 'style-to-css'
import uniqueId from 'mini-unique-id'
export default class GoTo extends React.Component {
render() {
const {
children,
className,
_ref,
styleActive,
styleHover,
...props
} = this.props
let inlineStyle = null
... |
docs/app/Examples/collections/Message/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const MessageVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Floating'
desc... |
src/components/Footer/Footer.js | CronosMax/firsttryreack | /**
* 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 withStyles from 'isomorp... |
src/client/components/nice-button/nice-button.js | fk1blow/react-presentception | import React from 'react';
import classNames from 'classnames';
class NiceButton extends React.Component {
render() {
const btnCls = classNames(this.props.className, {
'nice-button': true
});
return (
<div className={btnCls}>
{this.props.children}
</div>
);
}
}
export de... |
admin/client/App/components/Navigation/Mobile/index.js | ONode/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
src/components/Messages.js | DragonLegend/game | import React, { Component } from 'react';
import { MESSAGE } from '../constants/AppConstants';
import debugLib from '../lib/debug';
import mediator from '../mediator';
const debug = debugLib('messages');
export default class extends Component {
state = { message: null };
componentDidMount() {
mediator.on(M... |
admin/Menu.js | romainquellec/cuistot | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import compose from 'recompose/compose';
import MenuItem from 'material-ui/MenuItem';
import SettingsIcon from 'material-ui/svg-icons/action/settings';
import LabelIcon from 'material-ui/svg-icons/action/label';
impor... |
admin/client/App/components/Navigation/Secondary/index.js | brianjd/keystone | /**
* The secondary navigation links to inidvidual lists of a section
*/
import React from 'react';
import { connect } from 'react-redux';
import { Container } from '../../../elemental';
import {
setActiveList,
} from '../../../screens/List/actions/active';
import SecondaryNavItem from './NavItem';
var SecondaryN... |
js/components/balloon/BalloonContent.js | a-omsk/Vegreact | import React from 'react';
import Spinner from '../common/Spinner';
import BallonButton from './BallonButton';
import AuthModal from '../common/AuthModal';
import AddLocationModal from '../common/AddLocationModal';
import UserStore from '../../stores/UserStore';
import LocationStore from '../../stores/LocationStore';
i... |
src/encoded/static/components/matrix.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import pluralize from 'pluralize';
import url from 'url';
import { svgIcon } from '../libs/svg-icons';
import Tooltip from '../libs/ui/tooltip';
import { TextFilter } from './search';
/**
* Maximum number of selected items that can be visualized.
* @con... |
public/js/components/admin/feedback/chat.react.js | rajikaimal/Coupley | /**
* Created by Isuru 1 on 07/02/2016.
*/
import React from 'react';
import Table from 'material-ui/lib/table/table';
import TableHeaderColumn from 'material-ui/lib/table/table-header-column';
import TableRow from 'material-ui/lib/table/table-row';
import TableHeader from 'material-ui/lib/table/table-header';
import... |
packages/flow-runtime-docs/src/components/docs/TypeContextPage.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import Example from '../Example';
const simpleCode = `
import t, {TypeContext} from 'flow-runtime';
console.log(t instanceof TypeContext);
t.declare("Foo", t.string());
t.declare("Bar", t.boolean());
const child = t.createC... |
src/components/ErrorMessage/index.js | ortonomy/flingapp-frontend | // react
import React from 'react';
// styles
import styles from './style.module.css';
const ErrorMessage = ({messages, ...props}) => {
return (
<div className={styles.ErrorMessage}>
<p className={[styles.Feedback, styles.error].join(' ')}><i className="fa fa-times"></i> { messages && messages.map( (... |
packages/react-ui-components/src/Icon/index.story.js | neos/neos-ui | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, boolean, text, select} from '@storybook/addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils';
import Icon from '.';
storiesOf('Icon', module)
.addDecorator(withKnobs)
.addWithInfo(
'default',
'F... |
src/svg-icons/action/settings-applications.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsApplications = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c... |
client/src/component/common/assembly-child-remove-modal.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import * as UU5 from 'uu5g03';
const AssemblyChildRemoveModal = React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
UU5.Layout.FlcMixin,
UU5.Common.CcrWriterMixin
],
//@@viewOff:mixins
//@@vie... |
core/src/plugins/gui.ajax/res/js/ui/HOCs/size/providers.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
src/Icon_Flag_BG.js | codefoundries/material-ui-country-flags | 'use strict';
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
// SVG source:
// https://github.com/lipis/flag-icon-css/tree/master/flags/4x3
export default function( props )
{
return(
<SvgIcon viewBox="0 0 640 480" {...props}>
<g fill-rule="evenodd" strokeWidth="1pt">
<path ... |
Libraries/Text/Text.js | shrutic123/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/components/playerComponent/playerSmartComponent.js | craigbilner/quizapp | 'use strict';
import React from 'react';
import radium from 'radium';
import gameActions from '../../actions/gameActions';
class PlayerSmartComponent extends React.Component {
constructor(props) {
super(props);
}
handleClick(opts) {
gameActions.playerAnswered(opts);
}
render() {
const compStyl... |
react_sources/models/UserDataModel.js | nahcnuj/twitter-friends-manager | import ReactDOM from 'react-dom';
import React from 'react';
/**
* @callback listenerCallback
* @param {Array<T>} data user data
*/
export default class UserDataModel {
/**
* create a data model
* @param {Map<String, T>} data array of user data
* @param {listenerCallback} listeners functions called when... |
src/svg-icons/device/settings-system-daydream.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSettingsSystemDaydream = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.... |
webpack/move_to_foreman/components/common/table/components/TableSelectionHeaderCell.js | cfouant/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
const TableSelectionHeaderCell = ({
id, label, checked, onChange, ...props
}) => (
<Table.SelectionHeading aria-label={label}>
<Table.Checkbox
id={i... |
example/src/index.js | benkeen/react-country-region-selector | import React from 'react';
import ReactDOM from 'react-dom';
import Examples from './Examples';
ReactDOM.render(<Examples />, document.getElementById('examples'));
|
src/svg-icons/action/spellcheck.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpellcheck = (props) => (
<SvgIcon {...props}>
<path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-... |
node_modules/native-base/Components/Widgets/Spinner.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import { ActivityIndicator } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
va... |
docs/src/app/pages/components/InputList/ExampleInputList.js | GetAmbassador/react-ions | import React from 'react'
import InputList from 'react-ions/lib/components/InputList/InputList'
import style from './style.scss'
class ExampleInputList extends React.Component {
constructor(props) {
super(props)
}
state = {
value: [
'Test 1',
'Test 2'
],
status: 'Provided values are:... |
src/containers/alert/index.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
/* eslint-disable jsx-a11y/href-no-hash */
const Alert = props => (
<div className={`alert alert-${props.type} alert-dismissable`}>
<a href="#" className="close" aria-label="close" onClick={props.onDismiss}>×</a>
{props.title ? <... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | besarthoxhaj/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
components/hoc/with-errors.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = ... |
components/common/image.js | DarcyChan/darcychan.com | /*
Image Component.
The component that renders one a combination of the following:
- A responsive image using srcSet and sizes.
- An image with a lazyloading wrapper and set height.
- A basic image.
*/
import React from 'react';
import { prefixLink } from 'gatsby-helpers';
import LazyLoad from 'rea... |
src/components/videoList.js | jroxbury/react-video-player | import React from 'react';
import VideoListItem from './videoListItem';
const VideoList = (props) => {
const VideoItems = props.videos.map((video) => {
return <VideoListItem
key={video.etag} video={video}
onVideoSelect={props.onVideoSelect}
/>
})
return (
<ul className="col-md-4 list-group">
... |
app/LoadingBar/LoadingBar.js | RyanWangGit/poi | import React from 'react';
import PropTypes from 'prop-types';
import styles from './LoadingBar.css';
export default class LoadingBar extends React.Component {
static propTypes = {
className: PropTypes.string,
progress: PropTypes.number.isRequired,
};
constructor(props) {
super(pr... |
docs/app/Examples/collections/Grid/Variations/GridExampleColumnCount.js | shengnian/shengnian-ui-react | import React from 'react'
import { Grid, Image } from 'shengnian-ui-react'
const GridExampleColumnCount = () => (
<Grid>
<Grid.Row columns={3}>
<Grid.Column>
<Image src='/assets/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='/assets/images/wireframe/imag... |
src/pages/archive.js | rhostem/blog | import React from 'react'
import * as R from 'ramda'
import { StaticQuery, graphql } from 'gatsby'
import Layout from 'components/layout/DefaultLayout'
import Link from 'gatsby-link'
import SEO from 'components/Seo'
import Head from 'components/Head'
import { getPostRoute } from 'utils/routeResolver'
import styled from... |
client/src/views/Membership/components/membership-form/component.js | DillGromble/TNABT-org | import React from 'react'
import './membership-form.css'
const MemberForm = ({ onSubmit, handleChange, fname, lname, street,
city, zip, phone, email, school, classes, error, phoneError, errMsg }) => (
<div>
<form className="form-tall" onSubmit={onSubmit}>
<div className="member-form-group">
... |
src/pages/community/section/equipment/Equipment.js | HeliumLau/Hoop-react | import React from 'react';
import Part from 'components/Part'
export default class Equipment extends React.Component {
render() {
const list = [
{
icon: 'icon-rocket',
name: '休斯顿火箭队',
num: 12212,
route: '/news'
},
... |
src/shared/components/form/formInput/formInput.js | tal87/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Label from 'shared/components/label/label';
import styles from './formInput.css';
class FormInput extends Component {
constructor() {
super();
this.state = {
text: '',
isValid: true,
};
}
handleChange = ... |
packages/extra/src/AxisRight.js | finnfiddle/number-picture | import React, { Component } from 'react';
import Axis from './Axis';
export default class AxisBottom extends Component {
render() {
return (
<Axis {...this.props} placement='right' />
);
}
}
|
node_modules/react-avatar/src/index.js | together-web-pj/together-web-pj | 'use strict';
import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {cacheFailingSource, hasSourceFailedBefore} from './utils.js';
import gravatarSource from './sources/Gravatar.js';
import facebookSource from './sources/Facebook.js';
import vkontakteSource from './sources/Vkont... |
src/svg-icons/notification/phone-forwarded.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26... |
src/main/webapp/static/js/club/view/back/component/editImage.js | weijiafen/antBlog | import React from 'react'
import Cropper from 'react-cropper';
import { Button , Spin , message } from 'antd';
import backService from '../../../service/backService';
import 'cropperjs/dist/cropper.css';
function getRandomFileName(){
var pool=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"]
var fi... |
src/svg-icons/av/playlist-play.js | rhaedes/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 = '... |
front-end/src/component/skills/heroku_icon.js | axelmichael11/website |
import React from 'react'
export default React.createClass({
render(){
return(
<svg viewBox="0 0 128 128" className="skills-icons">
<path d="M35.3 101.8c-4 0-7.3.5-9.7 1.4-.9 3.2-1.3 6.6-1.3 10.4 0 7 1.2 11.3 9.2 11.3 3.7 0 6.8-1.1 9.3-2.3l-.8-3.6c-2.4.9-5.5 1.7-8.2 1.7-3.5 0-4.6-.9-4.8-6.9h15v-2.2c0-6.1-2... |
client/src/slider.js | BrackCurly/schaudepot | import React, { Component } from 'react';
import {Slides} from './slides';
export class Slider extends Component {
constructor () {
super();
this.state = {current: 0};
}
nextSlide () {
this.setState({current : (this.state.current + 1) % this.props.slides.length });
}
componentDidMount () {
... |
admin/client/components/PopoutHeader.js | mikaoelitiana/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
var PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.isRequired,
transitionDirection: React.Prop... |
src/lib/headers/TimelineHeaders.js | namespace-ee/react-calendar-timeline | import React from 'react'
import classNames from 'classnames'
import { TimelineHeadersConsumer } from './HeadersContext'
import PropTypes from 'prop-types'
import SidebarHeader from './SidebarHeader'
import { RIGHT_VARIANT } from './constants'
class TimelineHeaders extends React.Component {
static propTypes = {
r... |
packages/days-off/src/components/Menu/index.js | simonrelet/days-off | import React from 'react';
import classnames from 'classnames';
import injectSheet from 'react-jss';
import { menuStyles, itemStyles } from './styles';
const menuItemStyles = injectSheet(itemStyles);
const Credits = menuItemStyles(({ classes, user: { credits } }) => {
return (
<div className={classes.item}>
... |
docs/client/components/pages/Mention/RemoteMentionEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createMentionPlugin from 'draft-js-mention-plugin';
import editorStyles from './editorStyles.css';
export default class SimpleMentionEditor extends Component {
constructor(props) ... |
app/components/Register.js | henrikra/gym-diary | import React, { Component } from 'react';
import $ from 'jquery';
import { Alert, Button } from 'react-bootstrap';
export default class Register extends Component {
state = {
email: '',
password: '',
passwordRepeat: '',
message: ''
}
handleSubmit = event => {
event.preventDefault();
const email = this.s... |
frontend/src/DiscoverMovie/Table/DiscoverMovieHeader.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import IconButton from 'Components/Link/IconButton';
import TableOptionsModal from 'Components/Table/TableOptions/TableOptionsModal';
import VirtualTableHeader from 'Components/Table/VirtualTableHeader';
im... |
src/browser/ticket/Search.js | glaserp/Maturita-Project | import Component from 'react-pure-render/component'
import React from 'react'
import Helmet from 'react-helmet'
import Content from './components/Content'
import Header from './components/Header/Header'
import HighLightContainer from './containers/HighLightContainer'
import EventsContainer from './containers/EventsCon... |
sample/components/modal.js | LINKIWI/react-elemental | import React, { Component } from 'react';
import { Button, Modal, Spacing, Text } from 'react-elemental';
const ModalContents = () => (
<Spacing size="large" top right bottom left padding>
<Spacing bottom>
<Text size="delta" color="primary" bold>
Modal title
</Text>
<Text size="epsilon"... |
src/Input/Unit/testkit/Unit.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import Unit from '../Unit';
const unitDriverFactory = ({element}) => {
return {
isEmpty: () => element.children.length === 0,
hasChild: style => !!element.querySelector(style)
};
};
const componentFactory = (props = {})... |
examples/counter/index.js | TallerWebSolutions/redux-devtools-gentest-plugin | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
node_modules/native-base/src/basic/Left.js | odapplications/WebView-with-Lower-Tab-Menu | import React, { Component } from 'react';
import { View } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Left extends Component {
render() {
return (
<View ref={c => this._root = c} {...this.props} />
);
}
}... |
src/routes/home/index.js | cmosguy/react-redux-auth0 | /**
* 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 Home from './Home';
impo... |
src/svg-icons/maps/directions.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefinedButUsed.js | samwgoldman/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
state: State = {
initialValue: this.props.value,
};
}
class MyComponent2 extends React.Component {
render() {
return this.props.children;
}
}
class MyComponent3 extends React.Component {
render() {
const props = {... |
src/svg-icons/places/spa.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
client/source/js/models/account_m.js | Vladimir37/Planshark | import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import {submitting, getData} from '../submitting.js';
import {Waiting, Error} from './templates.js';
import toast from '../toaster.js';
//responses
var registration_r = ['Success!', 'Name is busy', 'Mail is busy', 'Required fields are... |
docs/components/common/button/button.js | t1m0n/air-datepicker | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import cn from 'classnames';
import css from './button.module.scss';
function Button({children, active, size, bordered, className, promo, onClick, Component = 'button', href} = {}) {
let button = <Component
class... |
js/FileExplorer.react.js | Sable/McLab-Web | import AT from './constants/AT';
import classnames from 'classnames';
import Dispatcher from './Dispatcher';
import Dropzone from 'react-dropzone';
import FileExplorerActions from './actions/FileExplorerActions.js'
import OnLoadActions from './actions/OnLoadActions.js'
import FileTile from './FileTile.react';
import Fo... |
src/modules/shelter/components/shelter-container.js | gabrielecker/animapp | import React, { Component } from 'react';
class ShelterContainer extends Component {
render() {
return (
<div>{this.props.children}</div>
);
}
}
ShelterContainer.propTypes = {
children: React.PropTypes.object,
};
export default ShelterContainer;
|
src/svg-icons/av/mic-off.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicOff = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | DSFaresConsultingTeam/JustLetip | 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'));
|
app/index.js | tharyckgusmao/Project-Download-GraphicEx | import React from 'react';
import { render } from 'react-dom';
import './app.global.css';
import Main from './components/main'
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import Reducers from './reducers/Reducers.js';
const store = createStore(Reducers, window.__REDUX_DEVTOOLS_EXTENS... |
src/components/Footer.js | ovidner/bitket | import React from 'react'
import { Grid, Col } from 'react-bootstrap'
const Footer = (props) => (
<footer className="sticky-footer">
<Grid>
<Col md={4}>
<p className="text-muted">
Developed and provided by Vidner Solutions.
</p>
</Col>
<Col md={8}/>
</Grid>
</fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.