path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/primitives/form/icon-input/index.js | mpigsley/sectors-without-number | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Input from 'primitives/form/input';
import './style.scss';
const defaultFunc = () => {};
export default function IconInput({
icon,
onIconClick,
wrapperClassName,
className,
...rest
}) {
const Icon ... |
react-native/TechStack/src/components/common/Spinner.js | vanyaland/react-demos | import React from 'react';
import { View, ActivityIndicator } from 'react-native';
const Spinner = ({ size }) => {
return (
<View style={styles.spinnerStyle}>
<ActivityIndicator size={size || 'large'} />
</View>
)
};
const styles = {
spinnerStyle: {
flex: 1,
jus... |
app/javascript/mastodon/components/load_pending.js | pinfort/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadPending extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
count: PropTypes.number,
}
render() {
const { count } = this.props;
return ... |
src-ui/map-editor/palette.js | cdaniel/atlas2 | /*jshint esversion: 6 */
import React from 'react';
import PropTypes from 'prop-types';
import {
Grid,
Row,
Col,
Button
} from 'react-bootstrap';
import SingleMapActions from './single-map-actions';
import NewNodeActions from './dialogs/new-node/create-new-node-actions';
import CanvasActions from './canvas-act... |
node_modules/react-sparklines/__tests__/fixtures.js | rakshitmidha/Weather_App_React | // This file is auto-updated by ../bootstrap-tests.js
import React from 'react';
import { Sparklines, SparklinesBars, SparklinesLine, SparklinesCurve, SparklinesNormalBand, SparklinesReferenceLine, SparklinesSpots } from '../src/Sparklines';
import { sampleData, sampleData100 } from './sampleData';
export default {
... |
frontend/src/Components/Filter/Builder/FilterBuilderRow.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import SelectInput from 'Components/Form/SelectInput';
import IconButton from 'Components/Link/IconButton';
import { filterBuilderTypes, filterBuilderValueTypes, icons } from 'Helpers/Props';
import BoolFilterBuilderRowValue from './BoolFilte... |
examples/huge-apps/routes/Grades/components/Grades.js | hgezim/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
client/js/components/TodoAddTaskForm.js | marlonpp/SailsGrommet | // (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Footer from 'grommet/components/Footer';
import Form from 'grommet/components/Form';
import FormField from 'grommet/components/FormField';
import FormFie... |
analysis/warlockdestruction/src/modules/talents/SoulConduit.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatThousands } from 'common/format';
import Statistic from 'parser/ui/Statistic';
import BoringSpellValueText fr... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ContactItem/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
JS Web/ReactJS/Intro to React/timer/src/App.js | mitaka00/SoftUni | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
const App = ()=>(
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">{new Date(Date.now()).toLocaleTimeString()}... |
client/src/DiscussPhase.js | mit-teaching-systems-lab/swipe-right-for-cs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import StudentProfile from './StudentProfile.js';
import Swipeable from './components/Swipeable.js';
import {Interactions} from './shared/data.js';
import './DiscussPhase.css';
const copyText = `Turn and talk with a partner about the student... |
src/helpers/universalRouter.js | lanceharper/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export function createTr... |
src/components/tweetToolbar.js | philly-d/chirp-for-twitter | import React from 'react'
import classNames from 'classnames'
import { getTweetLength } from 'twitter-text'
function getCharCount(text, hasScreenshots) {
if (hasScreenshots) {
text = text.trim() + ' http://pic.twitter.com'
}
return getTweetLength(text)
}
const TweetToolbar = (props) => {
const... |
src/templates/categories-list-template.js | dalareo/dalareo.github.io | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
import { useSiteMetadata, useCategoriesList } from '../hooks';
const Categor... |
demo/dist/src/App.js | rusty1s/react-dev-config | import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits... |
src/components/Form/NoLabel/ReduxTableSelect.js | UncleYee/crm-ui | import React from 'react';
import Select from 'react-select';
export default class ReduxTableSelect extends React.Component {
static propTypes = {
name: React.PropTypes.string,
options: React.PropTypes.array,
defaultValue: React.PropTypes.string,
getInfo: React.PropTypes.func,
placeholder: React.... |
packages/demos/demo/src/components/Today/index.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { state } from 'cerebral/tags'
import { displayElapsed, displayTime } from '../../helpers/dateTime'
import tasksByDay from '../../compute/tasksByDay'
import Date from '../Date'
export default connect(
{
projects: state`projects.all`,
t... |
frontend/src/components/partners/partnerProfileCountryCell.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { TableCell } from 'material-ui/Table';
import withCountryName from '../common/hoc/withCountryName';
const PartnerProfileCountryCell = (props) => {
const { countryName } = props;
return (
<TableCell>
{countryName}
</TableCell>
);... |
fields/types/textarea/TextareaFilter.js | ligson/keystone | import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Matches', value: 'matches' },
{ label: 'Contains', value: 'contains' },
{ label: 'Begins with', value: 'beginsWith' },
{ lab... |
src/give/TransactionDetails/Transaction.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { compose, withProps } from 'recompose';
import get from 'lodash/get';
import moment from 'moment';
import withTransaction from '@data/withTransaction';
import styled from '@ui/styled';
import { BodyText, H6, H4 }... |
src/app/components/panels/settings/Accounts.js | jimmed/spankhbot | import React from 'react';
import { parse, format } from 'url';
import { parse as querystring } from 'querystring';
const REDIRECT_URI = 'http://localhost';
const CLIENT_ID = 'n83jgvllpoatdvkr5tygp8kdil7x2k2';
const DEFAULT_SCOPE = [
'user_read', // Read access to non-public user information, such as email address.... |
helloWorld/HelloWorld.js | sagasu/reactPlayground | import React from 'react'
export default () => <div>Hello world</div> |
src/svg-icons/file/cloud-done.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (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.96... |
src/components/theme-toggle/index.js | mattmischuk/m1x | // @flow
import React from 'react'
import styled, { keyframes } from 'styled-components'
import theme from 'styled-theming'
import hexToRgba from 'hex-to-rgba'
import { myTheme } from '../../styles'
// Styles
// ----------------------------------------
const { color, borderRadii, breakpoint } = myTheme
const butto... |
src/components/DatePicker.js | mberneti/react-datepicker2 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import momentJalaali from 'moment-jalaali';
import TetherComponent from 'react-tether';
import classnames from 'classnames';
import Calendar from './Calendar';
import MyTimePicker from './CustomTimePicker';
const outsideClickIgnoreClass = 'i... |
spec/components/form.js | soyjavi/react-toolbox | import React from 'react';
import Form from '../../components/form';
const countriesArray = ['Spain', 'England', 'USA', 'Thailand', 'France'];
const countries = [
{ value: 'EN-gb', label: 'England', img: 'http://' },
{ value: 'ES-es', label: 'Spain', img: 'http://' },
{ value: 'TH-th', label: 'Thailand', img: '... |
src/components/Framework.react.js | BlackSwanBay/desktop | import $ from 'jquery';
import _ from 'lodash';
import React from 'react';
import Router from 'react-router';
import Sidebar from './Sidebar.react';
import Header from './Header.react';
import SubHeader from './SubHeader.react';
import metrics from '../utils/MetricsUtil';
import shell from 'shell';
import RetinaImage f... |
components/home/newsletter-form.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
import Container from '../container'
import Button from '../button'
class NewsletterForm extends React.Component {
static propTypes = {
t: PropTypes.func.isRequired
}
render() {
const {t} = this.props
... |
client/src/javascript/components/icons/AddMini.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class AddMini extends BaseIcon {
render() {
return (
<svg className={`icon icon--addmini ${this.props.className}`} viewBox={this.getViewBox()}>
<polygon points="8,3.5 4.5,3.5 4.5,0 3.5,0 3.5,3.5 0,3.5 0,4.5 3.5,4.5 3.5,8 ... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_03/start/src/routes.js | yevheniyc/C | import React from 'react'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import { App, Whoops404 } from './components'
import SkiDayCount from './components/containers/SkiDayCount'
import AddDayForm from './components/containers/AddDayForm'
import SkiDayList from './components/containers/SkiDayLi... |
app/js/main.js | AndrewDeveloper/parking | import React from 'react';
import APP from './components/app';
React.render(
<APP />,
document.getElementById('main')
); |
src/js/admin/articles/article-delete-dialog/article-delete-dialog.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import ConfirmDialog from '$components/dialogs/confirm-dialog'
import { deleteArticleCancel, deleteArticleConfirm } from '$actions/articles'
const ArticleDeleteDialog = ({ visible, deleteConfirm, deleteCancel }) => (
<ConfirmDialog
title="确认删除?"
... |
docs/app/Examples/elements/Input/Variations/InputExampleActionLabeledButton.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleActionLabeledButton = () => (
<Input
action={{ color: 'teal', labelPosition: 'right', icon: 'copy', content: 'Copy' }}
defaultValue='http://ww.short.url/c0opq'
/>
)
export default InputExampleActionLabeledButton
|
src/interface/news/Preview.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import makeUrl from './makeUrl';
class Preview extends React.PureComponent {
static propTypes = {
title: PropTypes.node.isRequired,
children: PropTypes.node.isRequired,
image: PropTypes.string.isRequi... |
src/js/components/Header/Navbar.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
import { IndexLink, Link } from "react-router";
export default class Title extends React.Component {
// toggleCollapse() {
// const collapsed = !this.state.collapsed;
// this.setState({collapsed});
// }
render() {
return (
<... |
src/routes/Admin/routes/Reports/components/TablePie.js | EricThsi/thsi-react-admin | import React from 'react'
import PropTypes from 'prop-types'
import ReactEchartsCore from 'echarts-for-react/lib/core'
import echarts from 'echarts/lib/echarts'
import 'echarts/lib/chart/pie'
// import 'echarts/lib/component/title'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/legendScroll'
cons... |
app/javascript/mastodon/components/regeneration_indicator.js | primenumber/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import illustration from 'mastodon/../images/elephant_ui_working.svg';
const MissingIndicator = () => (
<div className='regeneration-indicator'>
<div className='regeneration-indicator__figure'>
<img src={illustration} alt='' />
<... |
src/components/Feedback/Feedback.js | balmbees/overwatch | /**
* 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/window/data/view/list/view.js | unkyulee/control-center | /******************************************************************************
Search Element
*******************************************************************************/
import React from 'react'
import { ListGroup, ListGroupItem } from 'react-bootstrap'
///
///
///
export default class ListView extends Reac... |
analysis/rogue/src/EnergyDetails.js | anom0ly/WoWAnalyzer | import { formatPercentage } from 'common/format';
import { Panel } from 'interface';
import { Icon } from 'interface';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown';
import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/... |
src/server.js | hakonrossebo/ciq-layout-composer | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
storybook/createStory/ScreenStuff/index.js | Fineighbor/ui-kit | import React from 'react'
import { FlatList, Text } from 'react-native'
const stuff = [...Array(100)].map((a, i) => ({ key: i, value: i }))
export default () => (
<FlatList
data={stuff}
renderItem={({ item }) => <Text>{item.value}</Text>}
/>
)
|
src/components/NotFound.js | loggur/lumbur | import React from 'react';
import PropTypes from 'prop-types';
const NotFound = ({ classes, setStatusCode, setDocumentTitle }) => {
setStatusCode(404);
setDocumentTitle('404 - Not found!');
return (
<div className={classes.NotFound}>
<h1>404</h1>
<h3>Not found!</h3>
</div>
);
}
NotFound.p... |
fields/components/columns/IdColumn.js | Yaska/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
packages/es-components/src/components/containers/table/ResponsiveTable.js | TWExchangeSolutions/es-components | import React from 'react';
import styled from 'styled-components';
import Table from './Table';
const TableBase = styled(Table)`
tbody {
th {
font-family: 'Source Sans Pro', 'Segoe UI', Segoe, Calibri, Tahoma,
sans-serif;
font-weight: normal;
}
}
&&& {
@media (max-width: ${props ... |
src/layouts/PageLayout/PageLayout.js | twelch/kit-client-react | import React from 'react'
class PageLayout extends React.Component {
static propTypes = {
children: React.PropTypes.element
}
render () {
const style = {
page: {
paddingTop: 140,
display: 'flex',
alignItems: 'center',
flexDirection: 'column'
}
}
retu... |
react-flux-mui/js/material-ui/src/svg-icons/av/pause-circle-outline.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2... |
tests/react_modules/es6class-proptypes-module.js | gabelevi/flow | /* @flow */
import React from 'react';
import type {Node} from 'react';
class Hello extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
internals/templates/containers/LanguageProvider/index.js | Dmitry-N-Medvedev/motor-collection | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/menu.js | hong1012/FreePay | import React from 'react'
import {Router, Route, hashHistory, IndexRoute} from 'react-router'
import App from './App'
import FreeBillManager from './modules/FreeBillManager/BillManager'
import FreeBillProgress from './modules/FreeBillProgress/List'
import CostPay from './modules/CostPay/List'
import CostForm from './m... |
src/routes/Home/components/HomeView.js | leviluo/oneToone | import React from 'react'
import Helmet from 'react-helmet'
import Banner from '../../../components/Banner'
import {Link} from 'react-router'
import {connect} from 'react-redux'
import {fetchCatelogue} from '../../../reducers/category'
import {asyncConnect} from 'redux-async-connect'
import { tipShow } from '../../../... |
tech_stack/src/components/LibraryList.js | haaswill/ReactNativeCourses | import React, { Component } from 'react';
import { ListView } from 'react-native';
import { connect } from 'react-redux';
import ListItem from './ListItem';
class LibraryList extends Component {
componentWillMount() {
const ds = new ListView.DataSource({
rowHasChanged: (r1, r2) => r1 !== r2 // true if rows... |
components/Counter.js | palmerev/react-pomodoro | import React from 'react'
import { PropTypes } from 'react'
class Counter extends React.Component {
constructor() {
super()
}
render() {
return (
<div className="counter-component">
<span className="text-before">{this.props.textBefore}</span>
<fieldset disabled={this.props.timerRunnin... |
src/Components/Utils/Timestamp.js | abhishekdhaduvai/readable_react | import React from 'react';
import PropTypes from 'prop-types';
class Timestamp extends React.Component {
PropTypes = {
time: PropTypes.number.isRequired,
}
render() {
const { time } = this.props;
const current_time = Date.now();
const time_passed = current_time - time;
... |
src/templates/new/src/index.js | forstaathletics/rj | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
import history from './store/history'
import routes from './store/router'
import configureStore from './store'
import './styles/app.css'
const initialState =... |
src/svg-icons/editor/multiline-chart.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMultilineChart = (props) => (
<SvgIcon {...props}>
<path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3... |
src/server/frontend/html.react.js | terakilobyte/socketreact | import Component from '../../client/components/component.react';
import React from 'react';
export default class Html extends Component {
render() {
// Only for production. For dev, it's handled by webpack with livereload.
const linkStyles = this.props.isProduction &&
<link
href={`/build/app.c... |
js/BaseComponents/RoundedCornerShadowView.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/components/Form/Form.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import settings from '../../globals/js/settings';
const { prefix } = settings;
/** A form is a group of related input controls that allows users to provide data or configure options. */
const Form = ({ className, child... |
src/index.js | dailybeast/tracking-link | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export const MOUSE_RIGHT_BUTTON = 2;
export default class TrackingLink extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
href: PropTypes.string.isRequired,
class... |
src/components/App.js | CoffeeCodeKevin/Solitude | import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';
import Game from './Game'
class App extends React.Component {
render() {
return (
<div id='app-container'>
<Game />
</div>
)
}
}
App.propTypes = {};
export default App;
|
ReactNative/index.ios.js | ShanghaitechGeekPie/WifiLoginer | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class loginer extends Component {
render() {
return (
<View style={styles.container}>
<Text ... |
ee/client/omnichannel/units/Skeleton.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box, Skeleton } from '@rocket.chat/fuselage';
export const FormSkeleton = (props) => <Box w='full' pb='x24' {...props}>
<Skeleton mbe='x8' />
<Skeleton mbe='x4'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
<Skeleton mbe='x4'/>
<Skeleton mbe='x8'/>
</Box>;
|
src/svg-icons/device/signal-wifi-4-bar-lock.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/docs/examples/TextInput/ExampleOptional.js | ibenavides/ps-react-ibenavides | import React from 'react';
import TextInput from 'ps-react/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChange={() => {}}
... |
modules/Common/Navbar.js | cloudytimemachine/frontend | import React from 'react'
import { Link } from 'react-router'
import SearchBox from './SearchBox'
export default React.createClass({
render() {
return (
<div>
<nav className="navbar navbar-inverse navbar-fixed-top">
<div className="navbar-header">
<Link to="/" className="navb... |
src/js/components/NavLink.js | diajelovic/react-test | import React from 'react';
import { Link } from 'react-router';
export default class NavLink extends React.Component {
static propTypes = {
name: React.PropTypes.string,
};
constructor(props) {
super(props);
}
render() {
return (
<Link {...this.props} activeClassName="active">{this.props.... |
src/widgets/GalleryHub/DirectoryGallery.js | mydearxym/mastani | /*
*
* DirectoryGallery
*
*/
import React from 'react'
import T from 'prop-types'
import { pluck } from 'ramda'
import { ICON_CMD } from '@/config'
import { buildLog } from '@/utils/logger'
import IconText from '@/widgets/IconText'
import InlineTags from './InlineTags'
import {
Wrapper,
Block,
Header,
I... |
app/components/sparkline/SparklinesNormalBand.js | TucsonReactJS/twitbeat | import React from 'react';
import DataProcessor from './DataProcessor';
export default class SparklinesNormalBand extends React.Component {
static propTypes = {
style: React.PropTypes.object
};
static defaultProps = {
style: { fill: 'red', fillOpacity: .1 }
};
render... |
ui/src/components/pages/get-started.js | ssoudan/edisonIsThePilot | /**
* Created by ssoudan on 9/5/15.
*/
/**
* Created by ssoudan on 9/5/15.
*/
import React from 'react';
let { Styles } = require('material-ui');
let FullWidthSection = require('../full-width-section');
let { Spacing } = Styles;
export default class GetStarted extends React.Component {
static contextTypes =... |
src/components/common/LoginLink.js | hugofrely/chat-react-redux | import React from 'react';
import {Link} from 'react-router';
const LoginLink = () => {
return (
<span>
<Link to="/register" activeClassName="active">Sign Up</Link>
{" | "}
<Link to="/login" activeClassName="active">Login</Link>
</span>
);
};
export default LoginLink;
|
src/components/nav.js | gemss/h5maker | // lib mod.
import React from 'react';
import { findDOMNode } from 'react-dom';
// app mod.
import * as Fullscreen from './../kit/fullscreen';
import IOSDropdown from './iOSDropdown';
import WebDropdown from './webDropdown';
class Start extends React.Component {
constructor(props, context) {
super(props, context);... |
src/components/TwitchCast.js | davendesai/twitchcast | import React, { Component } from 'react';
import Header from './Header'
import EntryForm from './EntryForm';
import '../styles/TwitchCast.css';
import logo from '../../res/logo.png';
export default class TwitchCast extends Component {
render() {
return (
<div id="twitchcast-container">
... |
before/src/browser.js | rpearce/react-form-steps-example | import React from 'react';
import { render } from 'react-dom';
import App from './components/App.react';
const container = document.createElement('div');
document.body.appendChild(container);
render(<App />, container);
|
src/components/typography/Link.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import {scale} from 'css-functions'
import injectSheet from '../../utils/jss'
import {transition} from '../../utils/css'
const styles = (theme) => ({
link: {
position: 'relative',
display: 'inline-block',
verticalAli... |
src/js/components/newProject/newProject.js | TheoZimm/SaltyDashboard | import React from 'react';
import {RoleAwareComponent} from 'react-router-role-authorization';
import Header from 'grommet/components/Header';
import Heading from 'grommet/components/Heading';
import FormField from 'grommet/components/FormField';
import Form from 'grommet/components/Form';
import Box from 'grommet/comp... |
lib/ui/example/client/preview.js | nfl/react-storybook | import React from 'react';
const mainStyle = {
padding: 10,
fontFamily: 'arial',
};
export default class Preview extends React.Component {
constructor(globalState) {
super();
this.state = {};
this.globalState = globalState;
this.globalState.on('change', (kind, story) => {
if (this.mounted... |
src/Parser/DeathKnight/Blood/CHANGELOG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Gebuz, joshinator, Yajinni } from 'CONTRIBUTORS';
import Wrapper from 'common/Wrapper';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2... |
src/svg-icons/action/exit-to-app.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
src/Posts.js | davidascher/gambier | import React from 'react'
import { bindToItem } from "firebase-3-react"
import { Post } from './Post'
import { AuthNavbar } from './authbar'
import { authenticatedComponent } from './firebaseUtils.js'
import { Add } from './add'
import Footer from './Footer'
class PostList extends React.Component {
render () {
... |
react/Item/Item.js | morattoo/jekyll-react-firebase | import React, { Component } from 'react';
import moment from 'moment';
import ServiceItem from '../Service/ServiceItem';
class Item extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
getDateDisplay(date) {
moment.locale('fr');
let dateDispl... |
src/components/ShareExperience/InterviewForm/index.js | WendellLiu/GoodJobShare | import React from 'react';
import R from 'ramda';
import Helmet from 'react-helmet';
import { scroller } from 'react-scroll';
import ReactGA from 'react-ga';
import { Heading } from 'common/base';
import SubmitArea from '../../../containers/ShareExperience/SubmitAreaContainer';
import styles from './InterviewForm.mod... |
src/app/Keyboard.js | SeregaMamonT/SeregaMamonT.github.io | import React from 'react';
import Button from './Button';
class Keyboard extends React.Component {
createButton(buttonModel) {
const { store } = this.context;
let actionHandler = buttonModel.action ? () => store.dispatch(buttonModel.action) : undefined;
return <Button text={buttonModel.text} actio... |
src/svg-icons/action/touch-app.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
app/common/components/VocabSynonym/VocabSynonym.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { selectSynonymById } from 'features/synonyms/selectors';
import synonyms from 'features/synonyms/actions';
import { VocabWord } from 'common/components/VocabWord';
import Button from 'common/components/Button'... |
src/containers/App.js | octopitus/feather | import React from 'react'
import Document from './Document'
import styles from './App.css'
export default class App extends React.Component {
render () {
return (
<div className={styles.app}>
{this.props.children}
</div>
)
}
}
|
pages/demos/tooltips.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 'docs/src/pages/demos/tooltips/tooltips.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={... |
client/reactapp/components/App.js | LucaColonnello/loopback-example-react | import React from 'react';
import { RouteHandler } from 'react-router';
export default class App extends React.Component {
static contextTypes = {
router: React.PropTypes.func
}
constructor ( props, context ) {
super( props, context );
this.props = props;
this.state = { };
this.context = context;
}
... |
node_modules/react-flexbox-grid/spec/root.js | SerendpityZOEY/Solr-Search-React-UI | /* global VERSION */
require('./stylesheets/base');
import box from './stylesheets/modules/box';
import React from 'react';
import {Grid, Row, Col} from '../src/index';
const Root = () => (
<div>
<h1>React Flexbox Grid <small>Spec {VERSION}</small></h1>
<Grid>
<Row>
<Col xs={12} sm={3} md={2} ... |
src/components/CoverImage/CoverImage.js | MeetDay/dreampark-web | import React from 'react';
import PropTypes from 'prop-types';
import { appendQiNiuQueryParamsForImageUrl } from '../../helpers/QiNiuHelpers';
export default class CoverImage extends React.Component {
static propTypes = {
src: PropTypes.string.isRequired,
height: PropTypes.number,
};
stati... |
client/components/events/ResultsPage.js | yanigisawa/voting-tornado | import React from 'react';
import {PropTypes} from 'prop-types';
import { connect } from 'react-redux';
import {bindActionCreators} from 'redux';
import {wsUrl} from '../../api/api.config';
class ResultsPage extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
... |
examples/custom-routing/src/containers/About.js | calvinrbnspiess/react-static | /* eslint-disable react/no-unescaped-entities */
import React from 'react'
//
export default () => (
<div>
<h1>This is what we're all about.</h1>
<p>React, static sites, performance, speed. It's the stuff that makes us tick.</p>
</div>
)
|
internals/templates/containers/HomePage/Component.js | akash6190/apollo-starter | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/svg-icons/action/track-changes.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrackChanges = (props) => (
<SvgIcon {...props}>
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s... |
src/Affix.js | leozdgao/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 (... |
examples/webpack-example/src/app/Main.js | alan-cruz2/formsy-material-ui | import React from 'react';
import createClass from 'create-react-class';
import Formsy from 'formsy-react';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedBut... |
src/views/atoms/editor-preview/editor-preview.js | Metaburn/doocrate | import React from 'react';
import PropTypes from 'prop-types';
const EditorPreview = ({ data, onClick, className }) => (
<div
onClick={onClick}
className={className}
dangerouslySetInnerHTML={{ __html: data }}
/>
);
EditorPreview.propTypes = {
data: PropTypes.string,
};
export default EditorPreview;... |
examples/with-cxs/pages/index.js | kevmannn/next.js | import React from 'react'
import cxs from 'cxs'
export default () => (
<div className={cx.root}>
<h1 className={cx.title}>My page</h1>
</div>
)
const cx = {
root: cxs({
width: 80,
height: 60,
background: 'white',
':hover': {
background: 'black'
}
}),
title: cxs({
marginLef... |
src/BarGraph/bar_graph_header.js | jrfferreira/react-cubedb | // @flow
// TODO remove lodash
import _each from 'lodash/each'
import _map from 'lodash/map'
import _difference from 'lodash/difference'
import _size from 'lodash/size'
import React from 'react'
import PropTypes from 'prop-types'
import {
FormGroup,
FormControl,
Button,
ButtonGroup,
ButtonToolbar,
Overla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.