path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/profile/ProfileAboutApp.js | jfilter/frag-den-staat-app | import { Text } from 'react-native';
import React from 'react';
import BlankContainer from '../library/BlankContainer';
import FloatingHeading from '../library/FloatingHeading';
const ProfileAboutApp = () => (
<BlankContainer>
<Text>
{`FragDenStaat ist ein Projekt der Open Knowledge Foundation Deutschland... |
src/app/pages/common/SignIn/index.js | jackdon/snoopy | import React from 'react';
import { Centered } from 'common/components/flex';
import Title from 'app/components/Title';
import { protocolAndHost } from "common/utils/url-generator";
// This route is supposed to be opened in a new window, after signing in with
// Github. It should return a postMessage to the parent
exp... |
src/slides/slide4.js | coder36/react-slides | import React from 'react'
export default function() {
return (
<div className="title slide slide4">
<h1>This is React</h1>
</div>
);
} |
app/assets/scripts/components/join-fold.js | openaq/openaq.org | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
import createReactClass from 'create-react-class';
/*
* create-react-class provides a drop-in replacement for the outdated React.createClass,
* see https://reactjs.org/docs/react-without-es6.html
* Please modernize this code using fun... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleToggle.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleToggle = () => (
<Checkbox toggle />
)
export default CheckboxExampleToggle
|
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | Sirlon/react-router | import React from 'react';
class Announcement extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcement: COURSES[params.courseId].announcements[params.announcementId]
//});
//}
render () {
//var { title, body } = this.props.announcement;
var { courseId, annou... |
map/src/containers/Search/GeocoderSearchContainer.js | teikei/teikei | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Autocomplete from 'react-autocomplete'
import { fieldInputPropTypes, fieldPropTypes } from 'redux-form'
import _ from 'lodash'
import classNames from 'classnames'
import { autoCompleteSearch, geocodeAndShowOnPrevi... |
examples/pages/counter-redux/index.js | jeffhandley/react-composite-pages | import React from 'react';
import url from 'url';
import Counter from './containers/Counter';
import reducers from './reducers';
import actionCreators from './actionCreators';
import { bindActionCreators, createStore } from 'redux';
import { Container } from 'react-composite-pages';
import ReactCreateClass from 'create... |
src/backward/Widgets/Button.js | chaitanya0bhagvan/NativeBase | /* @flow */
import React, { Component } from 'react';
import { TouchableOpacity, Platform } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import _ from 'lodash';
import variables from '../../theme/variables/platform';
import { Icon } from './Icon';
import mapPropsToStyleNames from '..... |
src/svg-icons/av/high-quality.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHighQuality = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1.... |
client/features/user/page.js | LestaD/InstaClone | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { Link } from 'react-router-dom'
import { CommonTemplate } from 'ui'
export const UserPage = ({ match }) => (
<CommonTemplate>
<Helmet title={`@${match.params.username}`} />
User: {match.params.username} <... |
src/app/components/media/MediaLog.js | meedan/check-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { withPusher, pusherShape } from '../../pusher';
import MediaRoute from '../../relay/MediaRoute';
import MediasLoading from './MediasLoading';
import Annotations from '../annotations/Annotations... |
client/src/FavoriteButton.js | jghibiki/Doc | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Link from '@material-ui/core/Link';
const styles = theme => ({
});
class RequestButton extends Component {
... |
app/javascript/mastodon/features/ui/components/image_loader.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { LoadingBar } from 'react-redux-loading-bar';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
s... |
examples/Example/pages/refreshLoadMoreExample.js | thegamenicorus/react-native-timeline-listview | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
RefreshControl,
ActivityIndicator
} from 'react-native';
import Timeline from 'react-native-timeline-listview'
export default class Example exten... |
examples/todos/src/index.js | floating/restore | import React from 'react'
import ReactDOM from 'react-dom'
import Restore from 'react-restore'
import App from './App'
import * as actions from './actions'
const initialState = {
visibility: 'All',
todos: []
}
const store = Restore.create(initialState, actions)
const Root = Restore.connect(App, store)
ReactDOM.... |
definitions/npm/redux-forms-react_v0.11.x/flow_v0.34.x-v0.52.x/test_redux-forms-react_v0.11.x.js | echenley/flow-typed | /* @flow */
import React from 'react';
import { Form, Field, FieldArray } from 'redux-forms-react';
let el;
/* ======== */
/* = Form = */
/* ======== */
el = (
<Form name="test" />
);
let f: HTMLFormElement;
el = (
<Form
name="test"
persistent
onSubmit={(values) => new Promise((resolve, reject) => {... |
src/svg-icons/device/network-wifi.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... |
src/components/children/public.js | Alek-S/pseudozen | import React from 'react';
import axios from 'axios';
class Project extends React.Component{
constructor(){
super();
this.state = {
projectName: undefined,
errorMsg: undefined,
projects: []
};
}
//==LIFE CYCLE==
componentWillMount(){
this._fetchProjects();
}
//====//
//==HANDLERS==
_fetch... |
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js | barakmitz/material-ui | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
const CircularProgressExampleSimple = () => (
<div>
<CircularProgress />
<CircularProgress size={1.5} />
<CircularProgress size={2} />
</div>
);
export default CircularProgressExampleSimple;
|
src/app/routes/index.js | skratchdot/audio-editor | import React from 'react';
import { Route } from 'react-router';
import App from '../containers/App';
const packageInfo = require('../../../package.json');
// pages
import NotFound from '../pages/NotFound';
import Home from '../pages/Home';
import About from '../pages/About';
import Editor from '../pages/Editor';
con... |
blueocean-material-icons/src/js/components/svg-icons/social/domain.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialDomain = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2... |
test/regressions/tests/Radio/SimpleRadio.js | AndriusBil/material-ui | // @flow
import React from 'react';
import Radio from 'material-ui/Radio';
export default function SimpleRadio() {
return <Radio />;
}
|
src/components/Footer.js | apisandipas/bryanparonto.com | import React from 'react'
import { Link } from 'react-router-dom'
const Footer = () => (
<footer className="Footer">
<div className="copyright">
© {(new Date()).getFullYear()} Bryan Paronto. All Rights Reserved
</div>
<nav className="footer-nav">
<ul className="pull-right">
<li><... |
src/D3/Axis.js | appier/react-component-template | import React from 'react';
import {select} from 'd3-selection';
const Axis = React.createClass({
getDefaultProps() {
return {
axisFn: () => {},
modifier: () => {},
transform: '',
};
},
componentDidMount() {
this._update(this.props);
},
componentWillReceiveProps(nextProps) {
... |
src/components/ButtonAppBar/ButtonAppBar.js | Ca1YuChen/Lottery | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
import IconButton from 'material-u... |
app/components/archives/index.js | Joe3Ray/blog | import React from 'react'
import Frame from 'com/frame'
import ArticleTitle from 'com/article/title'
import styles from './index.less'
export default class Archives extends React.PureComponent {
render () {
return (
<Frame>
<div className={styles['archives-wrapper']}>
<div className={st... |
src/components/Article/ArticleActions.js | vkarpov15/shidoshi | import { Link } from 'react-router';
import React from 'react';
import agent from '../../agent';
import { connect } from 'react-redux';
const mapDispatchToProps = dispatch => ({
onClickDelete: payload =>
dispatch({ type: 'DELETE_ARTICLE', payload })
});
const ArticleActions = props => {
const article = props.... |
4-routing/src/pages/Login.js | pirosikick/react-hands-on-20171023 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* ログインページ
*/
class Login extends Component {
static propTypes = {
history: PropTypes.shape({
replace: PropTypes.func.isRequired,
}).isRequired,
};
handleClick = () => {
// トップページへリダイレクト
this.props.history.r... |
src/Views/User/Support.js | charlesbao/jinjiu_mission_app | /**
* Created by chalresbao on 16/12/15.
*/
import React from 'react'
import { CardHeader, CardText} from 'material-ui/Card';
import ScrollView from '../../Components/ScrollView'
import ContainerWithBackBar from '../ContainerWithBackBar'
const styles = {
wrapper: {
top:45
},
menu: {
paddi... |
src/icons/AndroidArrowDropdown.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidArrowDropdown extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="128,192 256,320 384,192 "></polygon>
</g>
</g>;
} return <IconBase>
<g>
<polygon point... |
web/components/shared/Tetromino/cosmos.decorator.js | skidding/flatris | // @flow
import React from 'react';
import { GameContainerMock } from '../../../mocks/GameContainerMock';
export default ({ children }: { children: React$Node }) => (
<GameContainerMock cols={8} rows={8}>
{children}
</GameContainerMock>
);
|
src/svg-icons/image/filter-frames.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
src/components/field/Field.js | mariusespejo/semantic-redux-form-fields | import React from 'react';
import { FormInput } from '../input';
import { FormTextArea } from '../textArea';
import { FormDatePicker } from '../datePicker';
import { FormDropdown } from '../dropdown';
import { Field as FormField } from 'redux-form';
class Field extends React.Component {
getComponentType = type => {
... |
components/Cache/index.js | samuelngs/px |
import React, { Component } from 'react';
export default class Wrapper extends Component {
static childContextTypes = {
cache: React.PropTypes.object,
}
state = {
cache: new Map(),
}
getChildContext() {
const { cache } = this.state;
return {
cache,
};
}
render() {
const... |
src/pages/index.js | Vision100IT/v100it-template | import React from 'react';
import Hero from '../components/hero';
import Index from '../components';
import content from '../content';
import {Markdown} from '../components/markdown';
import FeaturedHow from '../components/featured/feature-how';
import FeaturedWho from '../components/featured/feature-who';
import Fea... |
docs/app/Examples/collections/Table/Variations/TableExampleCelled.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCelled = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Tabl... |
blueocean-material-icons/src/js/components/svg-icons/image/camera-roll.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h2v2zm4 9h-2v-2h2v2zm0-9h-2V7h2v2z... |
app/components/GoogleMapInfoWindow/InfoWindow.js | 7ruth/PadStats2 | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOMServer from 'react-dom/server';
export class InfoWindow extends React.Component {
componentDidMount() {
this.renderInfoWindow();
}
componentDidUpdate(prevProps) {
const { google, map } = this.props; //eslint-disable-line
... |
examples/app.js | amirmadani/react-autolink-text | import React from 'react';
import ReactDOM from 'react-dom';
import AutoLinkText from 'react-autolink-text';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {text: ''};
}
_onTextChange(e) {
this.setState({text: e.target.value});
}
render() {
return (
... |
app/assets/javascript/src/nn_performance/index.js | lucashanke/houseofdota | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import NNPerformance from './components/NNPerformance.jsx';
import '../../../scss/index.scss';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
ReactD... |
app/javascript/flavours/glitch/components/icon_button.js | glitch-soc/mastodon | import React from 'react';
import Motion from 'flavours/glitch/util/optional_motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'flavours/glitch/components/icon';
import AnimatedNumber from 'flavours/glitch/components/animated... |
src/scenes/home/profile/profile.js | sethbergman/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
import IconCard from 'shared/components/iconCard/iconCard';
import styles from './profile.css';
const Profile = () => (
<Section title="My Profile" theme="gray">
<div className={styles.profileContainer}>
<div className={sty... |
modules/About.js | effractor/reactjs-tutorial | import React from 'react'
export default React.createClass({
render() {
return <div>About</div>
}
})
|
src/client.js | thisiskylierose/react-boilerplate | // @flow
import 'core-js/es6/map';
import 'core-js/es6/set';
import 'core-js/es6/object';
import 'raf/polyfill';
import 'promise-polyfill/src/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
impor... |
src/app/views/charts.js | nazar/sound-charts-react-spa | import React from 'react';
import TracksContainer from 'components/tracksContainer';
var Charts = React.createClass( {
render() {
return (
<div id="charts">
<TracksContainer initialPage={0} offset={50} />
</div>
);
}
} );
export default Charts; |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | CodeLinkIO/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
imports/ui/QueryMap.js | vocchiogrosso/H23-PennAppsXVI | import React, { Component } from 'react';
import MapboxGl from 'mapbox-gl/dist/mapbox-gl.js';
const icons_colors = {
"drinking-water": "drinking-water-15",
"drinking_water": "drinking-water-15",
"Shelter": "castle-15",
"food": "grocery-15",
"Pet": "dog-park-15"
}
export default class QueryMap extends ... |
public/js/cat_source/es6/actions/CatToolActions.js | matecat/MateCat | import ReactDOM from 'react-dom'
import React from 'react'
import $ from 'jquery'
import _ from 'lodash'
import AppDispatcher from '../stores/AppDispatcher'
import CattolConstants from '../constants/CatToolConstants'
import Notifications from '../sse/sse'
import {QualityReportButton} from '../components/review/Quality... |
src/views/HomeView.js | adammockor/fridge | import React from 'react';
import { connect } from 'react-redux';
import FridgeList from 'containers/fridge/FridgeList';
const mapStateToProps = (state) => ({
fridgeItems: state.fridgeItems,
});
export class HomeView extends React.Component {
render () {
return (
<FridgeList />
);
}
}
export def... |
src/svg-icons/action/build.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBuild = (props) => (
<SvgIcon {...props}>
<path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-... |
lib/editor/components/editors/AllJavaScriptEditor.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'react-bootstrap';
import CodeMirror from 'react-codemirror';
import moment from 'moment';
import * as Action from '../../actions';
import 'codemirror/mode/javascript/javascript';
import 'cod... |
src/index.js | rawris/bill | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Path from './routers/index';
import { Provider } from 'react-redux'
import store from './store/index';
ReactDOM.render(
<Provider store={store}>
{Path}
</Provider>,
document.getElementById('root')
);
|
src/components/StackViewContainer.js | coolshare/ReactReduxPattern | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import {connect} from 'react-redux'
import cs from '../services/CommunicationService'
import Header from './Header'
import Utils from '../common/Utils'
import { browserHistory } from 'react-router';
/**
*
*/
class _MyS... |
frontend/components/select/select.js | apostolidhs/wiregoose | import React from 'react';
import PropTypes from 'prop-types';
import ReactSelect from 'react-select';
export default class Select extends React.Component {
static propTypes = {
value: PropTypes.any,
render: PropTypes.func,
loadOptions: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,... |
201601react/袁圆/app/components/Button/Button.js | zhufengreact/homework | import React, { Component } from 'react';
//import './Button.less';
class Button extends Component {
handleClick(){
alert('戳我干嘛!');
}
render(){
const style = require('./Button.less');
return(
<button className="my-button" onClick={this.handleClick.bind(this)}>
... |
packages/cf-component-form/src/Form.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme }) => ({
border: theme.border,
boxShadow: theme.boxShadow
});
const addLayoutProp = (children, layout) =>
React.Children.map(children, (child, index) => {
if (React.is... |
src/app/Content.js | halhenke/js-study-sydney-calculator | import React from 'react';
import styles from './Content.css';
import * as calc from './calcFunctionality';
// class Calc extends React.Component {
const Calc = React.createClass({
getInitialState() {
return {
result: "Do some Calculatin'!"
};
},
onClick(e) {
e.preventDefault();
calc.queu... |
src/components/TimePicker/TimePicker-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKno... |
src/Visualizations/MapNorway/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import map from './map';
import Visualization from './../index';
function MapNorway(props) {
return (
<Visualization
className={props.className}
viz={map}
{...props}
/>
);
}
export default MapNorway;
|
client/src/components/NewPoll.js | NicholasAsimov/voting-app | import React from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../actions';
import { browserHistory } from 'react-router';
class NewPoll extends React.Component {
handleFormSubmit = ({ title, choices }) => {
const choicesArr = choices.trim().split('\n');
this.props.addPoll({ tit... |
index.js | hden/reduxscript | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import todoApp from './reducers'
const store = createStore(todoApp)
render(
<Provider store={store}>
<App />
</Provider>,
document.getEle... |
app/components/Home.js | sdlfj/eq-roll-tracker | // @flow
import React, { Component } from 'react';
import Settings from './Settings';
import Parser from './Parser';
export default class Home extends Component {
render() {
return (
<div>
<Settings />
<Parser />
</div>
);
}
}
|
client/containers/OneColumnLayout/OneColumnLayout.js | chenfanggm/steven-react-starter-kit | import './OneColumnLayout.scss'
import React from 'react'
import Navbar from '../../components/Navbar'
import Footer from '../../components/Footer'
class OneColumnLayout extends React.Component {
render() {
const { children } = this.props;
return (
<div className='layout-container' >
<Navbar ... |
src/gm3/application.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
src/App.js | GTyexing/react-start-kit | 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/Gallery/Gallery.js | TheLADbibleGroup/hackathon | import React from 'react';
import GalleryItem from './../GalleryItem';
import './Gallery.scss';
const Gallery = ({ items = [] }) => (
<div className='gallery clearfix'>
{
items.map((item, index) => (
<GalleryItem image={item} key={index}/>
))
}
</div>
);
export default Gall... |
packages/ui-toolkit/src/form/textarea.js | geek/joyent-portal | import React from 'react';
import is from 'styled-is';
import PropTypes from 'prop-types';
import Baseline from '../baseline';
import BaseInput, { Stylable } from './base/input';
const TextareaInput = Baseline(BaseInput(Stylable('textarea')));
const BaseTextarea = TextareaInput.extend`
position: relative;
displa... |
app/containers/NotFoundPage/index.js | monkeyzealer/Andrew-Duesler | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
*/
import React from 'react';
export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<h1>
404: Not Found
... |
app/javascript/mastodon/features/compose/components/upload.js | glitch-soc/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } fr... |
docs-ui/components/confirmDelete.stories.js | ifduyue/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import ConfirmDelete from 'app/components/confirmDelete';
import Button from 'app/components/button';
storiesOf('Confirm/ConfirmDelete', module).add(
... |
client/src/components/Album.js | HoussamOtarid/fb-photos-downloader | import React from 'react';
import Spinner from 'react-spinner-material';
export default props => {
const { name, picture, loading } = props.album;
const { url } = picture.data;
const renderButton = loading ? (
<button className="btn btn-primary btn-download" disabled="disabled">
<Spinner size={... |
src/MemoryGame.js | SquaredSee/memory-match-game | import React, { Component } from 'react';
import GameBoard from './GameBoard';
class MemoryGame extends Component {
// Current max sideLength is 8
render() {
return (
<div className="memorygame">
<a href="https://github.com/SquaredSee/memory-match-game">
<img
style={{positio... |
src/svg-icons/content/next-week.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2... |
src/GoalMenuItem/index.js | christianalfoni/ducky-components | import Icon from '../Icon';
import ActionButton from '../ActionButton';
import Wrapper from '../Wrapper';
import Typography from '../Typography';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
function GoalMenuItem(props) {
let... |
src/scripts/Sidebar.js | williamthing/yoda | 'use strict';
import React from 'react';
import SidebarCategories from './SidebarCategories';
import SidebarDownload from './SidebarDownload';
export default React.createClass({
componentWillUpdate(prevProps) {
return this.props.status !== prevProps.status;
},
render() {
return (
<div className="... |
src/components/Feedback/Feedback.js | arolla/Arollydays | /**
* 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... |
public/js/components/admin/Header.react.js | IsuruDilhan/Coupley | /**
* Created by Isuru 1 on 21/01/2016.
*/
import React from 'react';
import { Link } from 'react-router';
import LoginStore from '../../stores/LoginStore';
import HeaderActions from '../../actions/HeaderActions';
import ProfileActions from '../../actions/admin/ProfileActions';
import ProfileStore from '../../stores/... |
app/templates/src/app.js | jermspeaks/generator-react-redux | import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ReduxRouter } from 'redux-router';
import configureStore from './common/store/configureStore';
import { addEventListener } from './utils/DOMUtils';
// Create application containers for... |
src/C3Chart.js | kjhwee91/react-c3js | //import React from 'react';
import PropTypes from 'prop-types';
import {
compose,
setDisplayName,
setPropTypes,
onlyUpdateForKeys
} from 'recompose';
import c3 from 'c3';
class C3Chart extends React.Component {
static get displayName() {
return 'C3Chart';
}
static get propTypes() {
return {
//data: Pr... |
src/app/container/footer-partial.js | all3dp/printing-engine-client | import React from 'react'
import {openIntercom, isIntercomBlocked} from '../service/intercom'
import Footer from '../component/footer'
import Link from '../component/link'
const FooterPartial = () => (
<Footer copyline="© 2020 All3DP">
<Link
label="Contact Us"
href="mailto:support@all3dp.com"
... |
public/js/components/admin/feedback/activity.react.js | IsuruDilhan/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/reactor-conference-app/src/schedule/ScheduleList.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { List } from '@extjs/ext-react';
import { toggleFavorite } from './actions';
import { connect } from 'react-redux';
import days from '../util/days';
import { push } from 'react-router';
import { createTpl } from './EventTpl';
class S... |
src/AutosizeInput.js | JedWatson/react-input-autosize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const sizerStyle = {
position: 'absolute',
top: 0,
left: 0,
visibility: 'hidden',
height: 0,
overflow: 'scroll',
whiteSpace: 'pre',
};
const INPUT_PROPS_BLACKLIST = [
'extraWidth',
'injectStyles',
'inputClassName',
'inputRef',
'... |
src/components/Header.js | DaLancelot/tinyQuotes | import React from 'react';
const Header = (props) => {
const { toggleTheme } = props;
return (
<header id="pendingQ">
<div className='theme' onClick={toggleTheme}>
<p title="Toggle Day/Night theme." id="toggleTheme">D/N</p>
</div>
</header>
);
}
export default Header;
|
src/pages/Product/components/ProductForm/ProductForm.js | kazandzhiro/react_mobx | import React from 'react';
import PropTypes from 'prop-types';
import { Form, Input, Select, Button, InputNumber } from 'antd';
import { inject, observer } from 'mobx-react';
import { withRouter} from 'react-router-dom';
@inject('store')
@observer
class ProductForm extends React.Component {
handleSubmit = (e) => {... |
mlflow/server/js/src/experiment-tracking/components/modals/RenameRunModal.js | mlflow/mlflow | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { GenericInputModal } from './GenericInputModal';
import { RenameForm, NEW_NAME_FIELD } from './RenameForm';
import { setTagApi } from '../../actions';
i... |
src/components/SimbologicItem/SimbologicItem.js | jmoguelruiz/react-common-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class SimbologicItem extends Component {
getStyles(){
return {
container : {
display : "inline-block"
},
elementImage : {
width : "20px",
height... |
src/components/shared/ClipboardCopy.js | chatch/stellarexplorer | import React from 'react'
import PropTypes from 'prop-types'
import Glyphicon from 'react-bootstrap/lib/Glyphicon'
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'
import Tooltip from 'react-bootstrap/lib/Tooltip'
import CopyToClipboard from 'react-copy-to-clipboard'
const CopyIcon = (
<Glyphicon glyp... |
admin/client/Signin/components/Alert.js | helloworld3q3q/keystone | /**
* Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set
* the signedOut prop to true to show the standard signed out message
*/
import React from 'react';
import { Alert } from 'elemental';
const AlertView = function (props) {
if (props.isInvalid) {
return <Alert key="error" type="dange... |
src/icons/Nuclear.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Nuclear extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<circle cx="256" cy="272" r="48"></circle>
<circle cx="256" cy="272" r="48"></circle>
</g>
<g>
<path d="M480,272H... |
demo/components/Title/index.js | css-modules/css-modules-require-hook | import React from 'react';
import base from './Title.css';
export default ({ styles = base, ..._ }) => (
<h1 { ..._ } className={ styles.common }/>
);
|
js/Details.js | enrique7mc/vidflix | import React from 'react'
import { connect } from 'react-redux'
import { getOMDBDetails } from './actionCreators'
import Header from './Header'
const { shape, string, func } = React.PropTypes
const Details = React.createClass({
propTypes: {
show: shape({
title: string,
year: string,
poster: str... |
components/time_picker/ClockMinutes.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { range } from '../utils/utils';
import Hand from './ClockHand';
import Face from './ClockFace';
const minutes = range(0, 60, 5);
const step = 360 / 60;
class Minutes extends Component {
static propTypes = {
center: PropTypes.s... |
docs/app/Examples/collections/Message/States/MessageExampleHidden.js | shengnian/shengnian-ui-react | import React from 'react'
import { Message } from 'shengnian-ui-react'
const MessageExampleHidden = () => (
<Message hidden>
You can't see me
</Message>
)
export default MessageExampleHidden
|
src/docs/Example.js | tlraridon/ps-react-train-tlr | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from './CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
text-dream/webapp/src/components/reconstruct/ReconstructSentence.js | PAIR-code/interpretability | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
src/svg-icons/action/card-giftcard.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H... |
src/components/question-item.js | laurindo/game-react | import React, { Component } from 'react';
import Dialog from './dialog';
import ConstantGeneral from '../constants/general_constant';
import CoreBrain from '../core/brain';
class QuestionItem extends Component {
constructor(props) {
super(props);
this.state = {
showPromptDialog: false,
... |
examples/sidebar/app.js | frankleng/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.