path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
redux/todoList/src/appContainer.js
yuanzhaokang/myAwesomeSimpleDemo
import { Provider } from 'react-redux'; import { createStore } from 'redux'; import React, { Component } from 'react'; import reducers from './components/reducers'; import App from './app'; const store = createStore( reducers, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() ); exp...
react-flux-mui/js/material-ui/src/svg-icons/notification/mms.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
src/svg-icons/maps/person-pin-circle.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0...
front/src/scenes/Landing/LandingScene.js
dherault/Aquest
import React, { Component } from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import { Link } from 'react-router-dom'; import SignupForm from './components/SignupForm'; import Footer from '../../components/Footer'; import profileLocationFor from '../../utils/profileLocationFor'; const sMa...
src/components/AppRoot.js
jakedeichert/react-starter
import React from 'react'; import { BrowserRouter, Switch, Redirect, Route } from 'react-router-dom'; import { injectGlobal } from 'styled-components'; import HomePage from 'components/HomePage'; import AboutPage from 'components/AboutPage'; injectGlobal` * { border: 0; box-sizing: border-box; margin: 0;...
app/javascript/flavours/glitch/features/ui/components/list_panel.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchLists } from 'flavours/glitch/actions/lists'; import { connect } from 'react-redux'; import { createSelector } fro...
src/components/conference_room.js
roman01la/ihub-events
import React from 'react'; import Paper from 'material-ui/lib/paper'; import DatePicker from 'material-ui/lib/date-picker/date-picker'; import TimePicker from 'material-ui/lib/time-picker/time-picker'; import RaisedButton from 'material-ui/lib/raised-button'; import InputDate from './input_date'; import InputTime from ...
app/src/components/Portfolio/ProjectCard/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; /* * Local Import */ /* * Component */ const ProjectCard = ({ id, slug, label, logo }) => ( <div className="one-project"> <Link to={`/project/${id}/${slug}`}> <div classN...
examples/src/App.js
borm/react-json-tree
import React from 'react'; import JSONTree from '../../src'; import { Map } from 'immutable'; const getLabelStyle = ({ style }, nodeType, expanded) => ({ style: { ...style, textTransform: expanded ? 'uppercase' : style.textTransform } }); const getBoolStyle = ({ style }, nodeType) => ({ style: { ......
src/js/components/Comment.js
SergeyFrancev/react-comment
import React from 'react'; import UserStory from '../stories/UserStory.js'; class Comment extends React.Component { constructor(props){ super(props); this.state = { comment: props.comment, isEdit: false, isShowFull: false, countVideo: 0 }; this._user = null; this.setUser(props.user); } render...
src/components/home.js
JohnDHamm/trail-tracker-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { wakeUp } from '../actions'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; class Home extends Component { co...
app/components/TableMenu/stories/index.js
VonIobro/ab-web
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, text, boolean/* number */ } from '@storybook/addon-knobs'; import TableMenu from '../index'; import { blocky } from '../../../app.config'; const stories = storiesOf('TableMenu', module); stories.addDecorator(withKnobs); st...
lib/LayoutGrid/stories/BasicUsage.js
folio-org/stripes-components
/** * LayoutGrid: Basic Usage */ import React from 'react'; import Headline from '../../Headline'; import Icon from '../../Icon'; import Button from '../../Button'; import { Row, Col } from '../index'; import css from './LayoutGridExample.css'; export default () => ( <div> <Headline className={css.headline} s...
examples/src/components/StatesField.js
susielu/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var id = 0; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var StatesField = React.createClass({ displayName: 'StatesField', p...
app/js/components/content/TextComponent.js
lukemarsh/tab-hq-react
'use strict'; import React from 'react'; import Editor from 'react-medium-editor'; import PageComponentActions from './PageComponentActions'; import ReorderMixin from '../../mixins/ReorderMixin'; import ComponentActionCreators from '../../actions/ComponentActionCreators'; import TimerMixin from 'react-timer-mixin'; r...
assets/js/components/USAMap.js
KiranJKurian/Election-Data-Exploration
import React from 'react'; import ReactDOM from 'react-dom'; import ReactHighmaps from 'react-highcharts/ReactHighmaps'; import { Card } from 'material-ui/Card'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux' import SelectField from './SelectField'; import abbrState from '../data/abbrStat...
src/components/ListItem.js
ynp7/haphapijoijoi
import React from 'react' export default ({text}) => ( <li>{text}</li> )
src/templates/slides/index.js
jszgb/jszgb.github.io
import React from 'react' import Meetup from '../../components/meetup/index' import Pagination from '../../components/pagination/index' import { PaginationContainer } from './styles' const renderMeetup = ({ frontmatter, html }) => { return <Meetup {...frontmatter} html={html} /> } export default ({ pathContext })...
src/docs/Docs.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import Navigation from './Navigation'; import ComponentPage from './ComponentPage'; import componentData from '../../config/componentData'; export default class Docs extends React.Component { constructor(props) { super(props); this.state = { route: window.location.hash.substr...
src/components/swagBag.js
ThatConference/swagbag
import React from 'react' import PropTypes from 'prop-types' class SwagBag extends React.Component { render () { return ( <div> {/* <button className='btn-lg btn-default' onClick={this.props.loadSampleBags}>load sample bags</button> */} </div> ) } } SwagBag.propTypes = { loadSample...
src/components/NumberField/NumberField.js
djesmond/agileField
import React from 'react'; import PropTypes from 'prop-types'; import AgileTextField, { AgileTextFieldPropTypes } from '../AgileTextField/AgileTextField'; import numberValidator from '../../Utils/Validators/number'; const NumberField = ({ minValue, maxValue, validator = numberValidator(minValue, maxValue), fe...
server/src/index.js
cryo2010/electron-react-starter
import Application from './application'; import {createStore} from 'redux'; import {Provider as StoreProvider} from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import React from 'react'; import ReactDOM from 'react-dom'; import * as actions from './actions'; const initialState = ...
src/React/Properties/PropertyGroup/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactProperties/PropertyGroup.mcss'; import factory from '../PropertyFactory'; export default function render(props) { return ( <div className={props.show(props.viewData) ? style.container : style.hidden} > ...
packages/mineral-ui-icons/src/IconSortByAlpha.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 IconSortByAlpha(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
src/pages/404.js
petecorreia/petecorreia
import React from 'react'; import Layout from '../components/Layout'; const NotFoundPage = () => ( <Layout> <h1>Not Found</h1> <h2>🤷‍♂️</h2> </Layout> ); export default NotFoundPage;
frontend/components/project-upsert/UpsertProject.js
razoorka/projects
import React, { Component } from 'react'; import styles from './upsert-project.sass'; class UpsertProject extends Component { constructor(props) { super(props); } render() { return ( <div className={styles.alert}>Here you can add/update project</div> ) } }; export defau...
src/js/components/common_comments.js
ZSMingNB/react-news
import React from 'react'; import {Row, Col} from 'antd'; import { Menu, Icon, Tabs, message, Form, Input, Button, CheckBox, Modal, Card, notification } from 'antd'; const FormItem = Form.Item; const SubMenu = Menu.SubMenu; const TabPane = Tabs.TabPane; const MenuItemGroup = Menu.ItemGroup; import {Router, R...
src/ReactAnalogClock.js
naomiaro/react-analog-clock
import React from 'react'; import moment from 'moment-timezone'; var ReactAnalogClock = React.createClass({ getDefaultProps: function(){ return { tz: 'America/Vancouver' }; }, getInitialState: function() { return this.extractMomentInfo(moment().tz(this.props.tz)); }, componentDidMount: func...
docs/src/PageFooter.js
tonylinyy/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
src/components/people.js
cosmowiki/cosmowiki
import React from 'react'; import Notes from './notes'; import LetterLinks from './chunks/letter-links'; import {Summary} from './chunks/summary'; const PeopleComponent = ({groupedPeople}) => { const allFirstLetters = Object.keys(groupedPeople); const groupsIterable = allFirstLetters.map(key => groupedPeople[key])...
node_modules/react-scripts/template/src/App.js
Ayaz2589/Ayaz2589.github.io
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/Main/Cooldown.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Icon from 'common/Icon'; import { formatThousands, formatNumber, formatPercentage, formatDuration } from 'common/format'; import { BUILT_IN_SUMMARY_TYPES } from 'Pa...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
hwo411/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; import persianUtils from 'material-ui-persian-date-picker-utils'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlL...
test/test_helper.js
nike331185/weather
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
docs/app/Examples/collections/Grid/Types/GridExampleDividedVertically.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleVerticallyDivided = () => ( <Grid divided='vertically'> <Grid.Row columns={2}> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column> ...
app/javascript/mastodon/features/report/statuses.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import StatusCheckBox from 'mastodon/features/report/containers/status_check_box_container'; import { OrderedSet } from 'immutable'; import { FormattedMessage...
src/components/Blocks/DonationForm/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import { RadioGroup, Radio } from 'react-radio-group' import { Card as CardSecure } from '../../Ui/Secure' import Gifts from './gifts.js' import Amounts from './amounts.js' import { injectStripe, StripeProvider, Elements, CardElement } from 'react-stripe-elemen...
docs/src/pages/components/dividers/InsetDividers.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import Avatar from '@m...
src/components/ExperienceDetail/ReportForm/ReportSuccessFeedback.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Checked from 'common/icons/Checked'; import Feedback from 'common/Feedback'; const ReportSuccessFeedback = ({ buttonClick }) => ( <Feedback buttonClick={buttonClick} heading="檢舉成功" buttonText="回到經驗頁面" Icon={Checked} /> ); Repor...
src/Menus/PitchToolBar.js
kevinleclair1/pitch_fx_visualizer
import React from 'react'; import PropTypes from 'prop-types'; import { ToolbarGroup } from 'material-ui/Toolbar'; import Toggle from 'material-ui/Toggle'; import createContainer from '../containers/GenericContainer.js'; import { createStructuredSelector } from 'reselect'; import { selectors as sceneSelectors, ...
newclient/scripts/components/read-only-attachment-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/svg-icons/av/loop.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLoop = (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-1.97.7-2....
ui/js/components/CalendarGrid.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import moment from 'moment-timezone'; export default class CalendarGrid extends Component { // _scrollToFocus() { // const focusWeek = document.querySelector('.calendar__week--focus'); // i...
src/results/ResultFilters.react.js
DhammaLuke/citybook
// Expect an object of filters, each containing an array of options. // On select, updates active filters import React, { Component } from 'react'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormControl from 'react-bootstrap/lib/FormControl...
src/svg-icons/places/business-center.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesBusinessCenter = (props) => ( <SvgIcon {...props}> <path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1...
src/components/page.js
intrepion/hojberg-mastering-reactjs-tutorial
import React from 'react'; class Page extends React.Component { render() { return ( <div className='page'> {this.props.children} </div> ); } } export default Page;
react/features/device-selection/components/VideoInputPreview.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { VideoTrack } from '../../base/media'; const VIDEO_ERROR_CLASS = 'video-preview-has-error'; /** * React component for displaying video. This component defers to lib-jitsi-meet * logic for rendering the video. * * @extends Component */ class VideoInputPreview ext...
src/parser/mage/arcane/modules/Checklist/Module.js
fyruna/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation...
src/components/ToiletCode.js
pekkis/kino-kobros
import React from 'react'; import styles from './ToiletCode.pcss'; export default function ToiletCode({ ticket }) { const stylez = { 'backgroundImage': `url(https://www.finnkino.fi${ticket.img})` }; return ( <div className={styles.root} style={stylez}> </div> ); }
examples/block-layout/src/index.js
tannerlinsley/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
client/containers/projects/index.js
Elektro1776/Project_3
import React, { Component } from 'react'; import ProjLayout from './Layout'; import ButtonBar from '../../components/ButtonBar/Button_Bar'; import styles from './project_style.css'; import CollaboratorsBar from '../../components/Collaborators'; import { connect } from 'react-redux'; class Projects extends Component { ...
frontend/src/AddMovie/ImportMovie/Import/ImportMovieFooter.js
geogolem/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; // import CheckInput from 'Components/Form/CheckInput'; import FormInputGroup from 'Components/Form/FormInputGroup'; import Icon from 'Components/Icon'; import Button from 'Components/Link/Button'; import SpinnerButton...
src/frontend/app/components/ArticleEntry/ArticleEntry.js
iangregson/skelmorlie-spotlight
import React from 'react' import cx from 'classnames' import { Accordion, Icon } from 'semantic-ui-react' import EventEmitter from 'events' import './ArticleEntry.css' const globalEvents = new EventEmitter() globalEvents.on('articleEntryLoaded', () => { if (document.getElementById('loader')) document.getElementB...
app/js/containers/MarkdownContainer.js
andela-earinde/bellatrix
import React from 'react' import MarkdownComponent from '../components/MarkdownComponent' class MarkdownContainer extends React.Component{ constructor(props) { super(props) this.md; this.state = { text: "" } } componentWillReceiveProps(nextProps) { if (nextProps.editorText !== this....
src/components/Header/index.js
srsheldon/scrootinEyes
import React from 'react'; import Link from 'gatsby-link'; import scrootinEyesLogo from '../../../doc/images/scrootinEyes_banner_logo.svg'; const Header = () => ( <div> <header> <nav className="navbar navbar-expand-lg navbar-light bg-light"> <Link to="/" className="navbar-brand...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
mitchellporter/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
client/src/components/AdminPage.js
rantav/reversim-summit-2017
import React from 'react'; import {Button} from "reactstrap"; import Page from "./Page"; import { observable } from 'mobx'; import { observer } from "mobx-react"; import { Container } from 'reactstrap'; const state = observable({ value: "" }); const AdminPage = observer(({ messages, onRemoveMessage, onAddMessage, ....
src/applications/static-pages/health-care-manage-benefits/get-medical-records-page/components/AuthContent/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import PropTypes from 'prop-types'; import Telephone, { CONTACTS, } from '@department-of-veterans-affairs/component-library/Telephone'; // Relative imports. import CernerCallToAction from '../../../components/CernerCallToAction'; import { getCernerURL } from 'platform/utili...
docs/app/Examples/collections/Message/Types/MessageMessageExample.js
jcarbo/stardust
import React from 'react' import { Message } from 'stardust' const MessageMessageExample = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </Message> ...
docs/app/Examples/elements/Header/Content/HeaderExampleSettingsIcon.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header, Icon } from 'semantic-ui-react' const HeaderExampleSettingsIcon = () => ( <Header as='h2'> <Icon name='settings' /> <Header.Content> Account Settings <Header.Subheader> Manage your preferences </Header.Subheader> </Header.Content> </H...
example/index.android.js
carleryd/react-native-maps
import React from 'react'; import { AppRegistry } from 'react-native'; import App from './App'; class AirMapsExplorer extends React.Component { render() { return <App />; } } AppRegistry.registerComponent('AirMapsExplorer', () => AirMapsExplorer);
client/src/index.js
ciex/mietlimbo
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
app/components/H1/index.js
mxstbr/react-boilerplate-site
import React from 'react'; import styles from './styles.css'; function H1(props) { return ( <h1 className={ styles.heading1 } { ...props } /> ); } export default H1;
pages/WeekView.js
Jack3113/edtBordeaux
import React from 'react'; import { FlatList, Text, TouchableOpacity, View } from 'react-native'; import { MaterialCommunityIcons, MaterialIcons } from '@expo/vector-icons'; import { connect } from 'react-redux'; import moment from 'moment'; import { SafeAreaView } from 'react-navigation'; import CalendarWeek from '.....
src/js/components/mobile_index.js
wangi4myself/myFirstReactJs
import React from 'react'; import MobileHeader from './mobile_header'; import MobileFooter from './mobile_footer'; import {Tabs, Carousel} from 'antd'; const TabPane = Tabs.TabPane; import MobileList from './mobile_list'; export default class MobileIndex extends React.Component { render() { const settings = { dot...
docs/src/PageFooter.js
IveWong/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
examples/04 Sortable/Simple/index.js
jgable/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class SortableSimple extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> ...
assets/javascripts/kitten/components/layout/desk-layout/stories/with-projects.js
KissKissBankBank/kitten
import React from 'react' import styled from 'styled-components' import { CrowdfundingCard, Title, mq } from 'kitten' const Grid = styled.div` width: 100%; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); @media ${mq.mobile} { grid-template-columns: 1fr; } ` const data = [ { tit...
src/components/ItemsWithSeparator/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { View } from 'react-native'; import Styles from './resources/styles'; class ItemsWithSeparator extends React.Component { props: { style: any; separatorStyle: any; children: any; }; render() { const children = []; const length = R...
libraries/comp/consoleprinter/lib/browser/ConsolePrinterUI.js
kevoree/kevoree-js
import React from 'react'; import ConsolePrinter from '../ConsolePrinter'; import s from './styles'; const ConsolePrinterUI = ConsolePrinter.extend({ construct() { this.uiState = { messages: [], maxLines: 25 }; }, in_input(msg) { this._super(msg); this.uiState.messages = [].concat(this.uiState.mes...
app/Stats/Stats.js
idperez/mytopia
import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView } from 'react-native'; import { Icon, Card, Button, Grid, Col, Row } from 'react-native-elements'; import Hr from 'react-native-hr'; import Accordion from 'react-native-collapsible/Accordion'; import StarRating from 'react-native-...
src/components/posts_show.js
reactjs-andru1989/blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions'; class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; // provided by react-router-dom this....
app/javascript/mastodon/components/status_content.js
musashino205/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
docs/app/Examples/elements/Icon/States/IconExampleDisabled.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleDisabled = () => ( <Icon disabled name='users' /> ) export default IconExampleDisabled
RoadtoReact/Ex/App_Lists_in_React.js
eroicaleo/LearningPython
import React from 'react'; const list = [ { title: 'React', url: 'https://reactjs.org/', author: 'Jordan Walke', num_comments: 3, points: 4, objectID: 0, }, { title: 'Redux', url: 'https://redux.js.org/', author: 'Dan Abramov, Andrew Clark', num_comments: 2, points: 5...
src/components/Settings/SettingsBase.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { Card, Col, ControlLabel, FormGroup, } from 'patternfly-react' import { InfoTooltip } from '_/components/tooltips' import style from './style.css' import { Hint, HintBody } from '@patternfly/react-core' const LabelCol = ({ children, tooltip,...
src/react-boilerplate/components/app.js
openh2labs/elastic-erga
import React, { Component } from 'react'; class App extends Component { render() { return (<div>{this.props.children}</div>); } } App.propTypes = { children: React.PropTypes.object, }; export default App;
app/javascript/mastodon/features/report/components/status_check_box.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
src/svg-icons/action/visibility-off.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibilityOff = (props) => ( <SvgIcon {...props}> <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7...
examples/huge-apps/routes/Profile/components/Profile.js
jepezi/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
docs/app/components/Logo/Logo.js
kmees/react-fabric
/* eslint-disable max-len */ import React from 'react' import cssm from 'react-css-modules' import paths from './paths.js' import style from './Logo.scss' const Logo = ({ fill, ...props }) => ( <svg {...props} styleName="logo" viewBox="0 0 256 233"> <g stroke="none" fill={fill} fillRule="evenodd"> <path ...
react-look/button.js
MicheleBertoli/css-in-js
import React, { Component } from 'react'; import Look, { StyleSheet } from 'react-look/dom'; class Button extends Component { render() { return ( <div look={styles.container}> <button look={styles.button}>Click me!</button> </div> ); } } const styles = StyleSheet.create(Button, { con...
docs/src/examples/collections/Table/Types/TableExampleCollapsing.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Header, Image, Table } from 'semantic-ui-react' const TableExampleCollapsing = () => ( <Table basic='very' celled collapsing> <Table.Header> <Table.Row> <Table.HeaderCell>Employee</Table.HeaderCell> <Table.HeaderCell>Correct Guesses</Table.HeaderCell> ...
node_modules/react-bootstrap/es/MediaHeading.js
caughtclean/but-thats-wrong-blog
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/common/components/vanilla-modules/list/index.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import styles from '../../../style/vanilla/css/lists.css'; import customStyles from './customLists.css'; export function List({ children }) { return ( <ul className={styles['p-list']}> { children } </ul...
src/data/compositionTree/nodeTypes.js
Ameobea/noise-asmjs
/** * Defines data about all possible node types in the composition tree. Each node must have the following attributes: * - name: The name of the node as displayed to the user. The key is sent to the backend and used for serialization. * - description: An explanation of what this node does, displayed to the user...
app/components/ModalGroup.js
GongDexing/work-board
/*jshint esversion:6*/ import React, { Component } from 'react'; import Login from './Login'; import Register from './Register'; import NewProject from './NewProject'; import NewTask from './NewTask'; import Setting from './Setting'; export default class ModalGroup extends Component { constructor(props){ super(p...
src/js/components/Footer/stories/DoubleFooter.js
HewlettPackard/grommet
import React from 'react'; import styled from 'styled-components'; import { Grommet as GrommetIcon } from 'grommet-icons'; import { Anchor, Box, Footer, grommet, Grommet, Main, Text } from 'grommet'; import { fiveColumns as data } from './data'; const StyledAnchor = styled(Anchor)` font-weight: 200; `; const Foote...
src/TwilioVideoParticipantView.android.js
blackuy/react-native-twilio-video-webrtc
/** * Component for Twilio Video participant views. * * Authors: * Jonathan Chang <slycoder@gmail.com> */ import { requireNativeComponent } from 'react-native' import PropTypes from 'prop-types' import React from 'react' class TwilioRemotePreview extends React.Component { static propTypes = { trackIdenti...
node_modules/react-bootstrap/es/Collapse.js
hsavit1/gosofi_webpage
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/app/containers/widgets/SalesGraph.js
ucokfm/admin-lte-react
import React from 'react'; export default function SalesGraph() { return ( <div className="box box-solid bg-teal-gradient"> <div className="box-header"> <i className="fa fa-th"></i> <h3 className="box-title">Sales Graph</h3> <div className="box-tools pull-right"> <button...
src/Icon.js
JedWatson/react-octicons
import React from 'react'; import classNames from 'classnames'; import { map, keys } from '../Octicons'; const Icon = React.createClass({ displayName: 'Icon', propTypes: { className: React.PropTypes.string, icon: React.PropTypes.oneOf(keys), type: React.PropTypes.oneOf(['danger', 'default', 'muted', 'primary'...
components/Layout/Footer.js
zendesk/copenhelp
import React from 'react' import Link from '../Link' import s from './Footer.css' class Footer extends React.Component { render() { return ( <footer className={s.footer} role="navigation"> <Link className={s.nav} to="/terms"> Terms </Link> <a className={s.nav} href="https:...
src/svg-icons/image/filter-vintage.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9...
packages/core/admin/admin/src/pages/HomePage/HomeHeader.js
wistityhq/strapi
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Typography } from '@strapi/design-system/Typography'; import { Link } from '@strapi/design-system/Link'; import { Stack } from '@strapi/design-system/Stack'; import { Box...
fields/types/password/PasswordFilter.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
src/components/Hours/Current/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import WeeklyHours from './WeeklyHours' import { hoursOpenStatus } from 'constants/hours' import '../style.css' import './style.css' const statusClassName = (status) => { switch (status) { case hoursOpenStatus.OPEN: return 'open' case hoursO...
web/index.js
mrcnc/spatialconnect-server
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import thunk from 'redux-thunk'; import { createLogger } from 'redux-logger'; import { Router, Route, IndexRoute, browserHistory } from 'react-rou...
src/routes/Login/components/LoginView.js
yhhuang79/admin-web
/* eslint react/jsx-boolean-value: 0 */ import React from 'react' // import { browserHistory } from 'react-router' import FontIcon from 'material-ui/FontIcon' import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import RaisedButton from 'material-ui/RaisedButton' import './LoginView.scss...
.storybook/Style_.stories.js
constelation/monorepo
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import View from '../packages/View' import Style_ from '../packages/Style_' storiesOf('Style_', module) .addWithInfo('Style_Views inside a Style_View', () => ( <Style_ backgroundColor='lightgrey' border='1px solid black' ...