path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/action/perm-identity.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermIdentity = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9... |
src/board/components/AWTodoList.js | corbig/AfterWorkManager | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import Paper from 'material-ui/Paper';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from ... |
src/components/selected.js | ShaneFairweather/React-iTunes | import React, { Component } from 'react';
const Selected = ({selected}) => {
console.log(selected);
function parseTime(milliseconds) {
var minutes = Math.floor(milliseconds / 60000);
var seconds = ((milliseconds % 60000) / 1000).toFixed(0);
return minutes + ":" + (seconds < 10 ? '0' : '... |
src/svg-icons/notification/sync.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
examples/evaluatefed.js | DuncanCragg/ForestJS |
import React from 'react';
import Forest from './forest-common';
import GuiStack from './renderfed';
const uids = Forest.cacheObjects(
[
{ UID: 'uid-1', is: 'guistack', name: 'Forest App', list: ['uid-3', 'uid-2'] },
{ UID: 'uid-2', Evaluator: evalFed, is: 'fedexample', counter: 42, to... |
src/modules/read/index.js | zcfreestyle/moment-react | /**
* Created by dllo on 17/8/24.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import '../../assets/styles/read.styl'
import '../../assets/styles/Classification.styl'
import '../../assets/styles/HotArticles.styl'
import '../../assets/styles/Footer.styl'
import '../../assets/st... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | pjuke/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
client/src/containers/Location/index.js | pqmcgill/stamp-wedding-app | import React from 'react';
import { css } from 'aphrodite';
import styles from './style';
import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite';
//import RSVPButton from '../../components/RSVPButton';
import Map from '../../components/Map';
//import flower from '../../assets/flower2.webp';
export default pro... |
src/components/common/svg-icons/social/people.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/containers/Login.js | jrzimmerman/bestrida-rn | import React from 'react';
import PropTypes from 'prop-types';
import {
Image,
ImageBackground,
Linking,
Platform,
Text,
TouchableOpacity,
StatusBar,
StyleSheet,
WebView
} from 'react-native';
import SafariView from 'react-native-safari-view';
import { connect } from 'react-redux';
import * as userAct... |
src/svg-icons/action/backup.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBackup = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z... |
es/Toolbar/Toolbar.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
pages/api/icon.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './icon.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/Before/app/components/Navigation/index.js | phiratio/Pluralsight-materials | /**
*
* Navigation
*
*/
import React from 'react';
import styles from './styles.css';
function Navigation({ topics }) {
return (
<div className={styles.navigation}>
This is the navigation component, there are {topics.length} topics
</div>
);
}
Navigation.propTypes = {
topics: React.PropTypes.arra... |
frontend/src/app/components/ExperimentCardList.js | clouserw/testpilot | import React from 'react';
import ExperimentRowCard from './ExperimentRowCard';
import Loading from './Loading';
export default class ExperimentCardList extends React.Component {
getExperiments() {
if (!this.props.except) {
return this.props.experiments;
}
return this.props.experiments.filter(expe... |
src/components/userBets/UserList.js | jahuk/bet-platform-react | import React from 'react';
import User from './user/User';
import getMatchPoints from '../../utils/getMatchPoints';
const UserList = ({results, bets, userId}) => (
<table className="table results">
<thead>
<tr>
<th>Result</th>
<th/>
<th/>
<th>Bet</th>
<th>Points</th>
</tr>
... |
app/components/loaders/ProgressBar.android.js | mol42/iett-asistani | import React, { Component } from 'react';
import { ProgressBarAndroid } from 'react-native';
export default class SpinnerNB extends Component {
render() {
return (
<ProgressBarAndroid
{...this.props}
styleAttr="Horizontal"
indeterminate={false}
progress={this.props.progre... |
src/react.js | wfro/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
app/javascript/mastodon/features/account_timeline/components/header.js | honpya/taketodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
app/react-icons/fa/optin-monster.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaOptinMonster extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m8.4 33.6q-0.2 0.3-0.5 0.6t-0.7 0.5q-0.4 0.1-0.9-0.1t-0.5-0.5q0-0.4 0.7... |
docs/build.js | snadn/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
HackathonStarter/src/components/nav/NavTitleComponent.js | chngws/User-Interface | /**
* @providesModule HSNavTitleComponent
*/
import React from 'react'
import { View } from 'react-native'
import { Text } from 'react-native-elements'
const NavTitleComponent = () => (
<View>
<Text>Hello from Nav</Text>
</View>
)
export default NavTitleComponent
|
src/server.js | zbrukas/wwf-store | /**
* 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 'babel-core/polyfill';
import path from 'path';
imp... |
client/src/components/Auth/Signup/component.js | DillGromble/TNABT-org | import React from 'react'
const SignUp = ({ onSubmit, handleChange, passVal, rePassVal, error }) => (
<div>
<div className="auth-container">
<div className="auth-inputs">
<form className="form-auth" onSubmit={onSubmit}>
<input
className={`form-input ${error ? 'error-highlight... |
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation/refresh.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationRefresh = (props) => (
<SvgIcon {...props}>
<path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78... |
frontend/src/admin/branchManagement/groupView/GroupActions.js | rabblerouser/core | import React from 'react';
import { connect } from 'react-redux';
import { DeleteButton, EditButton } from '../../common';
import { editGroup, groupRemoveRequested } from './actions';
export const GroupActions = ({ remove, edit }) => (
<span>
<EditButton onClick={edit} />
<DeleteButton
confirmMessage=... |
src/js/components/productPlacement/Camera.js | r-wittmann/IFD | import React from 'react'
import { Entity } from 'aframe-react'
const Camera = (props) => (
<Entity>
<Entity id='secundary-camera' camera='userHeight: 1.6' look-controls wasd-controls='' position='0 -6 9' {...props}>
<Entity
raycaster='far: 1.6; near: 1;'
cursor='fuse: false'
positi... |
src/svg-icons/editor/border-all.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderAll = (props) => (
<SvgIcon {...props}>
<path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/>
</SvgIcon>
);
EditorBorderAll = pure(EditorBorderAll);
EditorBorderAll.... |
app/app/components/AdminPanel/Entities/EditEntity.js | lycha/masters-thesis | import React from 'react';
import bootstrap from 'bootstrap';
class EditEntity extends React.Component {
constructor(props) {
super(props);
this.displayName = 'EditEntity';
}
getQuery(e) {
e.preventDefault();
let entity = {
id: this.refs.id.value,
expa_id: this.refs.... |
components/Shows/index.js | parkerproject/conceptionarts | import React, { Component } from 'react';
import moment from 'moment';
import axios from 'axios';
import Link from 'next/link';
import { BASE_URL } from '../../actions';
export default class ShowCity extends Component {
constructor(props) {
super(props);
this.state = { name: '' };
}
componentDidMount() ... |
app/javascript/src/App.js | michelson/chaskiq | // src/App.js
import React from 'react'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import history from './history.js'
import AppRouter from './AppRoutes'
import Docs from './pages/docs'
import { Provider } from 'react-redux'
import store from './store'
import ErrorBoundary from './components/E... |
src/components/linkedin/original-wordmark/LinkedinOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './LinkedinOriginalWordmark.svg'
/** LinkedinOriginalWordmark */
function LinkedinOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
classNa... |
Realization/frontend/czechidm-core/src/components/advanced/LongRunningTask/LongRunningTaskName.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
//
import * as Basic from '../../basic';
import * as Utils from '../../../utils';
import { FormAttributeManager } from '../../../redux';
import LongRunningTaskIcon from './LongRunningTaskIcon';
const formAttributeManager = new FormAttributeManager();
/**
... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsInferred.js | claudiopro/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<*, Props> {
static defaultProps = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<*, Props> {
static defaultProps = {... |
src/App.js | lacker/go | import React, { Component } from 'react';
import './App.css';
import Board from './Board';
import BoardView from './BoardView';
class App extends Component {
constructor(props) {
super(props);
this.board = new Board(9);
this.board.makeMove(3, 3, Board.BLACK);
this.board.makeMove(2, 5, Board.WHITE);
... |
fields/types/password/PasswordField.js | Pylipala/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
src/renderer/components/NavigationBar.js | uetchy/cabret | import React from 'react'
export default class NavigationBar extends React.Component {
render() {
return (
<div className="navigation-bar">
<h1 className="navigation-bar--title">{this.props.title}</h1>
<p className="navigation-bar--description">{this.props.description}</p>
</div>
... |
client/components/PhotoGrid.js | rabbitfighter81/yodagram | import React from 'react';
import Photo from './Photo';
const PhotoGrid = React.createClass({
handleSubmit(e) {
e.preventDefault();
this.props.addItem(this.refs.item.value);
},
render() {
return (
<div className="photo-grid">
{this.props.posts.map((post,i) => <Photo {...this.props} ke... |
components/ContactContainer.js | flyingant/tedxguanggu.org | /**
* Created by FlyingAnt on 3/23/16.
*/
import React from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import styles from '../less/main.less'
import cn from 'classnames';
//component
import Navigator from '../components/navigator/Navigator'
class ContactContainer extends Reac... |
web/Editor.js | raine/ramda-cli | import React from 'react'
import { Controlled as CodeMirror } from 'react-codemirror2'
import cm from 'codemirror'
import 'codemirror/lib/codemirror.css'
import 'codemirror/theme/material.css'
import 'codemirror/mode/shell/shell'
import 'codemirror/mode/livescript/livescript'
import 'codemirror/addon/display/placehold... |
project/src/static/daily/orderFill/index.js | Neal-Caffrey/Neal-Caffrey.github.io | import React from 'react';
import {
render
} from 'react-dom';
import {
Provider
} from 'react-redux';
import App from './app.jsx';
import configureStore from './store/init.js'
const store = configureStore();
render(
<Provider store={store}>
<App/>
</Provider>,
document.querySelector('#wrap')
);
|
examples/huge-apps/routes/Course/components/Course.js | limarc/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
admin/client/components/ListDownloadForm.js | mikaoelitiana/keystone | import React from 'react';
import CurrentListStore from '../stores/CurrentListStore';
import Popout from './Popout';
import PopoutList from './PopoutList';
import { Button, Checkbox, Form, FormField, InputGroup, SegmentedControl } from 'elemental';
const FORMAT_OPTIONS = [
{ label: 'CSV', value: 'csv' },
{ label: 'J... |
app/javascript/mastodon/features/account_gallery/index.js | verniy6462/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountMediaTimeline, expandAccountMediaTimeline } from '../../actions/timelines';
impo... |
src/components/Login/LoginButton.js | jseminck/react-native-github-feed | import React from 'react';
import { View, Text, TouchableHighlight } from 'react-native';
export default class LoginButton extends React.Component {
static propTypes = {
onPress: React.PropTypes.func.isRequired
};
render() {
return (
<View style={styles.login}>
... |
src/uploader.js | navjobs/upload | import React from 'react';
import Request from './request';
export default class Uploader extends React.Component {
constructor() {
super();
this.state = {};
}
componentWillUnmount() {
//abort a request if the component is unmounted mid request
if (
this.xhr &&
this.xhr.readyState &&... |
src/js/components/Portfolio/Portfolio1col.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
import {IndexLink , Link } from "react-router";
export default class Portfolio1col extends React.Component {
toggleCollapse() {
const collapsed = !this.state.collapsed;
this.setState({collapsed});
}
render() {
return(
<div class="container">
... |
techCurriculum/ui/solutions/4.4/src/components/User.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
react-apollo/src/App.js | TMaszko/react-apollo | import React, { Component } from 'react';
import Product from './components/Product';
import Cart from './components/Cart';
import CustomerAuthWithMutation from './components/CustomerAuth';
import PropTypes from 'prop-types';
import { graphql, gql, compose } from 'react-apollo'
import {
createCheckout,
checkoutLine... |
webapp/src/routes/rest/Filter.js | templatetools/trace | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { FilterItem } from 'components'
import { Form, Button, Row, Col, DatePicker, Input, Cascader, Switch } from 'antd'
import city from '../../utils/city'
const Search = Input.Search
const { RangePicker } = DatePicker
const C... |
.history/src/components/Row_20170804010739.js | radubrehar/evanghelic.ro | import React from 'react';
const Row = ({ children }) => {
return (
<div
style={{
margin: '0 auto',
maxWidth: 960
}}
>
{children}
</div>
);
};
export default Row;
|
src/docs/components/form/FormExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Form from 'grommet/components/Form';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
import Header from 'grommet/components/Header';
import... |
tests/baselines/reference/reactDefaultPropsInferenceSuccess.js | kitsonk/TypeScript | //// [reactDefaultPropsInferenceSuccess.tsx]
/// <reference path="/.lib/react16.d.ts" />
import React from 'react';
interface BaseProps {
when?: ((value: string) => boolean) | "a" | "b";
error?: boolean;
}
interface Props extends BaseProps {
}
class FieldFeedback<P extends Props = BaseProps> extends React.Comp... |
src/Tabs/Tabs.js | pradel/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import TabTemplate from './TabTemplate';
import InkBar from './InkBar';
import warning from 'warning';
function getStyles(props, context) {
const {tabs} = context.muiTheme;
return {
tabItemContainer: {
width: '100%',
backgroundColor: tab... |
src/index.js | GBLin5566/BackExchange | import React from 'react';
import { render } from 'react-dom';
import { Router } from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
const css = require('./components/mine.css');
const history = createBrowserHistory();
render(
<Router history={h... |
js/components/LoadingButton.react.js | kkka/asd | /**
* LoadingButton.react.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator.react';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
... |
examples/counter/index.js | tracker-common/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
app/containers/Users/AddUser.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Formsy from 'formsy-react';
import FRC from 'formsy-react-components';
import isEmpty from 'lodash.isempty';
import { Modal } from '../../components/Modal';
import { roles } from '../../Data';
im... |
ajax/libs/react-instantsearch/3.2.1/Dom.js | jdh8/cdnjs | /*! ReactInstantSearch 3.2.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
app/components/Settings/components/colors-panel.js | builtwithluv/ZenFocus | import React from 'react';
import PropTypes from 'prop-types';
import { RadioGroup, Radio } from '@blueprintjs/core';
import { Themes } from 'enums';
const ColorsPanel = ({ theme, onSettingsChange, setTheme }) => (
<div className="mt-1">
<RadioGroup
label="Themes"
selectedValue={theme}
onChang... |
src/svg-icons/action/bookmark.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmark = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionBookmark = pure(ActionBookmark);
ActionBookmark.displayName = 'Ac... |
src/Affix.js | Firfi/meteor-react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
import domUtils from './utils/domUtils';
const Affix = React.createClass({
statics: {
domUtils
},
mixins: [AffixMixin],
render() {
let holderStyle = {top: this.state.affixPositionTop};
return (... |
docs/src/app/components/pages/components/Tabs/ExampleSimple.js | spiermar/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
function handleActive(tab) {
alert(`A tab with this route property ${tab.props.route... |
src/components/AboutPage.js | mikejablonski/newo-brew-web | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the... |
app/react-icons/fa/battery-3.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBattery3 extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m4.5 26.7v-13.4h22.4v13.4h-22.4z m33.6-12.3q0.9 0 1.6 0.7t0.6 1.5v6.8q0 0.9... |
KDReactNative/KDClass/Mine/KDMineCell.js | csyibei/KDReactNative | /**
* Created by kaidi on 2016/10/17.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Navigator,
} from 'react-native';
var Dimensions = require('Dimensions');
var Win = Dimensions.get('window');
var KDPushView = require(... |
src/Page-Home.js | bwasilewski/react-playground | import React from 'react'
import Page from './Page'
import Title from './Title'
import _ from 'underscore'
class PageHome extends Page {
constructor(props) {
super(props)
this.state = {
data: {}
}
this.getdata()
}
getdata() {
let that = this
fetch... |
src/class/popup/Watching.js | MrMamen/traktflix | import PropTypes from 'prop-types';
import React from 'react';
import TmdbImage from '../tmdb/TmdbImage';
import TmdbImageContainer from '../tmdb/TmdbImageContainer';
class Watching extends React.Component {
constructor(props) {
super(props);
}
render() {
browser.runtime.sendMessage({type: `sendAppView`... |
packages/mineral-ui-icons/src/IconSentimentVerySatisfied.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSentimentVerySatisfied(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon... |
src/components/Video/Video.js | alexeiaccio/moscowriver | import React from 'react'
import YouTube from 'react-youtube'
import styled from 'styled-components'
const youTubeID = url => url.match(/(?:\?v=)(.*)/)[1]
const opts = id => ({
height: "400",
width: "712",
playerVars: { // https://developers.google.com/youtube/player_parameters
autoplay: 1,
modestbrand... |
src/svg-icons/av/art-track.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
admin/client/App/components/Navigation/Secondary/index.js | creynders/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 SecondaryNavigation... |
examples/painter/app/boot.js | leobauza/microcosm | import React from 'react'
import DOM from 'react-dom'
import Debugger from 'microcosm-debugger'
import { AppContainer } from 'react-hot-loader'
import Repo from './repo'
import Workspace from './views/workspace'
let repo = new Repo({ maxHistory: Infinity })
Debugger(repo)
function render() {
DOM.render(
<AppCo... |
src/client/app/component/ApplyJob/ApplicationForm.js | luckyrose89/Jobbatical-clone | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import styles from './ApplicationForm.scss';
const required = value => value ? undefined : '!'
const renderField = ({ input, className, placeholder, type, meta: { touched, error, warning } }) => (
<span>
<input {...input} className={cla... |
stories/Input/ExampleSizes.js | nirhart/wix-style-react | import React from 'react';
import Input from 'wix-style-react/Input';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px',
verticalAlign: 'top'
};
const defaultProps = {
size: 'normal',
magnifyingGlass: true,
placeholder: 'They did not know it was impossible, ... |
packages/lightning-core/transactions/index.js | DaReaper/lightning-app | import React from 'react'
import { connect } from 'react-redux'
import { store } from 'lightning-store'
import { Head, Page } from '../common'
import { actions } from './reducer'
import TransactionsList from './TransactionsList'
export class Transactions extends React.Component {
componentDidMount() { this.props.on... |
src/svg-icons/image/filter-9.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v... |
src/Answer.js | britishcouncil/react-quiz | import React from 'react'
import classNames from 'classnames'
const Answer = ({ active, onClick, children, customClassNames = {} }) => {
const answerClassName = classNames('rq-Answer', customClassNames['rq-Answer'])
const answerButtonClassName = classNames('rq-Answer-button',
customClassNames['rq-Answer-button... |
src/svg-icons/action/swap-vert.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVert = (props) => (
<SvgIcon {...props}>
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/>
</SvgIcon>
);
ActionSwapVert = pure(ActionSwapVert);
ActionSwapVert.displa... |
packages/mineral-ui-icons/src/IconToc.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconToc(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...iconProps}>
... |
entry_types/scrolled/package/src/frontend/inlineEditing/__stories__/SelectionRect-stories.js | tf/pageflow | import React from 'react';
import {SelectionRect} from '../SelectionRect';
import TextIcon from '../images/text.svg';
import HeadingIcon from '../images/heading.svg';
import ListUlIcon from '../images/listUl.svg';
import ListOlIcon from '../images/listOl.svg';
import QuoteIcon from '../images/quote.svg';
export defau... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | liruqi/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/components/Buttons/Buttons.js | bhj/karaoke-forever | import React from 'react'
import PropTypes from 'prop-types'
import styles from './Buttons.css'
export default class Buttons extends React.Component {
static propTypes = {
btnWidth: PropTypes.number.isRequired,
className: PropTypes.string,
children: PropTypes.any,
isExpanded: PropTypes.bool.isRequire... |
src/svg-icons/action/launch.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
Ac... |
containers/CarouselleApp.js | elliottkember/carouselle | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Carouselle from '../components/Carouselle';
import * as CarouselleActions from '../actions/CarouselleActions';
function mapStateToProps(state) {
return state;
}
const allActions = {}
O... |
CompositeUi/src/views/component/NavigableList.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import ReactDO... |
renderer/components/FileTree.js | reactide/reactide | import React from 'react';
import Directory from './Directory';
import PropTypes from 'prop-types';
const FileTree = ({
fileTree,
dblClickHandler,
clickHandler,
selectedItem,
openCreateMenu,
openMenuId,
createMenuInfo,
createMenuHandler,
createItem,
renameFlag,
renameHandler
}) => {
return (
... |
src/oneTwoThreeApp/components/Five.js | yosuzuk/react-playground | import React from 'react';
const Five = ({ myProp }) => <p>Five! {myProp}</p>;
export default Five;
|
packages/demos/demo/src/components/LangSelector/index.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { signal, state } from 'cerebral/tags'
import translations from '../../common/compute/translations'
import * as LANGS from '../../common/translations'
const LANG_OPTS = Object.keys(LANGS).map(lang => [lang, LANGS[lang].language])
export default... |
js/components/player/mixcloudEmbed.js | frequencyasia/website | import React from 'react';
module.exports = React.createClass({
propTypes: {
link: React.PropTypes.string.isRequired,
onBackClicked: React.PropTypes.func.isRequired,
},
render: function render() {
const url = 'https://www.mixcloud.com/widget/iframe/?autoplay=1&embed_type=widget_standard&emb... |
src/static/containers/DNSRecordRow/index.js | CRUDNS/CRUDNS | import React from 'react';
import { Type, TTL } from '../../components';
class DNSRecordRow extends React.Component {
static propTypes = {
isEditable: React.PropTypes.bool.isRequired,
dnsRecord: React.PropTypes.shape({
type: React.PropTypes.string.isRequired,
host: React.Pr... |
packages/p2p-chat/src/components/Chatting/FilePanel/FileInfo.js | dgeibi/p2p-chat | import React from 'react'
import { Button } from 'antd'
import PropTypes from 'prop-types'
import Card from '../../Common/CustomCard'
import { formatSize } from '../../../utils/format'
import styles from './FileReceive.scss'
import { fileLoadStates } from './constants'
const FileInfo = ({ filename, accept, ignore, si... |
src/Feed.js | jenstitterness/pix | import https from 'https';
import React from 'react';
import ReactDOM from 'react-dom';
import Dialog from 'material-ui/lib/dialog';
import AppBar from 'material-ui/lib/app-bar';
import Avatar from 'material-ui/lib/avatar';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/... |
project-templates/reactfiber/externals/react-fiber/fixtures/dom/src/components/TestCase.js | ItsAsbreuk/itsa-cli | import cn from 'classnames';
import semver from 'semver';
import React from 'react';
import PropTypes from 'prop-types';
import { parse } from 'query-string';
import { semverString } from './propTypes';
const propTypes = {
children: PropTypes.node.isRequired,
title: PropTypes.node.isRequired,
resolvedIn: semverS... |
app/components/Home.js | LetSpotify/letspotify-client | import React, { Component } from 'react';
import styles from './Home.styl';
import {
ToastContainer,
ToastMessage,
} from "react-toastr";
import RoomMenu from './RoomMenu';
import Choice from './Choice';
import RoomMain from './RoomMain';
import Login from './Login';
import Init from './Init';
import Restart from ... |
examples/conditional/app.js | T-Wing/react-tabs | import React from 'react';
import ReactDOM from 'react-dom';
import { Tab, Tabs, TabList, TabPanel } from '../../lib/main';
const App = React.createClass({
getInitialState() {
return {
showA: true,
showB: true,
showC: true
};
},
handleCheckClicked(e) {
const state = {};
state[e... |
src/articles/2018-01-31-1st-Anniversary/Timeline.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import './Timeline.css';
const Timeline = ({ children }) => (
<div className="timeline year-recap">
{children}
</div>
);
Timeline.propTypes = {
children: PropTypes.node.isRequired,
};
export default Timeline;
|
examples/counter/containers/App.js | cyhunter/redux-devtools | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import thunk from 'redux-... |
src/Parser/Paladin/Holy/Modules/Items/MaraadsDyingBreath.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatMilliseconds } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import Combatants from 'Parser/Core/Modules/Co... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleToggle.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleToggle = () => (
<Checkbox toggle />
)
export default CheckboxExampleToggle
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.