path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/SubtitleHeading/SubtitleHeading.js
scottdj92/t7-chicken-native
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; export default class SubtitleHeading extends Component { constructor() { super(); } render() { return ( <View style={Styles.background}> <Text style={Styles.text}>{this.props.subtitle}<...
src/svg-icons/content/font-download.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFontDownload = (props) => ( <SvgIcon {...props}> <path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13...
packages/reactor-kitchensink/src/examples/FormFields/Validation/Validation.js
dbuhrman/extjs-reactor
import React from 'react'; import { Container, Panel, FormPanel, TextField, UrlField, EmailField, NumberField, DatePickerField } from '@extjs/ext-react'; Ext.require("Ext.data.validator.*"); export default function ValidationExample() { return ( <Container scrollable platformConfig...
src/Flags/Monaco.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const red = '#CF0821'; const white = '#FFFFFF'; export default function Monaco() { return ( <LinearFlag gradient={`${gradient([red, white])}`} /> ); }
test/test_helper.js
Albinovich/youtubish
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...
client/src/components/Header/components/MenuButton.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; const MenuButton = props => ( <button aria-expanded={props.displayMenu} className={ 'toggle-button-nav' + (props.displayMenu ? ' reverse-toggle-color' : '') } onClick={props.onClick} ref={props.innerRef} > Menu </button>...
geonode/contrib/monitoring/frontend/src/components/cels/table-row/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { TableRow } from 'material-ui/Table'; import styles from './styles'; class MyTableRow extends React.Component { static propTypes = { children: PropTypes.node, } render() { return ( <TableRow>{this.props.children}</TableRow> ...
frontend/src/components/sidebar.js
b1naryth1ef/rowboat
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import {globalState} from '../state'; import {STATS_ENABLED} from 'config'; class SidebarLink extends Component { render () { const iconClass = `fa fa-${this.props.icon} fa-fw`; return ( <li> <Link to={this.props...
src/modules/pages/feeds/js/FeedListWidget.js
lenxeon/react
import React from 'react'; import { Link } from 'react-router'; import store from './feedStore'; import TagBox from './TagBox'; class FeedListWidget extends React.Component { constructor(props) { super(props); this.state={ 'erro':'网络加载失败', 'list':[], 'loaded':false, } // console.lo...
src/js/methodReact.js
majofeechiou/drawing-board
'use strict'; /* *** 這部份用 ReactJs + redux 做 *** */ import MethodOption from './MethodOption'; import MethodControl from './MethodControl'; import React from 'react'; import ReactDOM from 'react-dom'; import Settings from './Settings'; import MethodSettings from './MethodSettings'; import GloablData from './GloablData...
src/containers/search_bar.js
RolandoArroyos/weather
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; // the onChange function in the <input> tag in the render method is a //call back function which needs to be bound. We accomplish this by bind...
webclient/src/edit/EditTimeline.js
jadiego/bloom
import React, { Component } from 'react'; import { Icon, Form, Input, Segment, Label, Button } from 'semantic-ui-react' import PropTypes from 'prop-types'; import TimelineItem from '../TimelineItem' class EditTimelineItem extends Component { constructor(props) { super(props); this.state = { ...
form/RadioField.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {change} from 'redux-form'; import {types, view} from 'components'; class RadioField extends React.Component { static propTypes = { metaItem: PropTypes.object.isRequired, input: PropTypes.sh...
src/js/components/character-list/character-dashboard.js
trwalker/marvel-react
import React from 'react'; import LoadingProgress from './../shared/loading-progress'; import CharacterListItem from './character-list-item'; import ReloadError from './../shared/reload-error'; class CharacterDashboard extends React.Component { constructor(props) { super(props); this.characterList...
renderer/components/preferences/item/switch.js
wulkano/kap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {SpinnerIcon} from '../../../vectors'; import {handleKeyboardActivation} from '../../../utils/inputs'; class Switch extends React.Component { render() { const {checked, onClick, disabled, loading, onTransi...
src/ContentBlocks/BlockHeading/BlockHeading.js
grommet/grommet-cms-content-blocks
import PropTypes from 'prop-types'; import React from 'react'; import Headline from 'grommet/components/Headline'; import unescape from 'unescape'; export default function BlockHeading({ content, strong, size }) { const strongProp = strong ? strong === 'True' : false; const sizeProp = size ? size.toLowerCase() : '...
src/routes/login/index.js
peeyush1234/react-nodejs-skeleton
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 Layout from '../../co...
demo/react/js/index.js
tmdautov/tmdautov.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/client/app/components/projectSummary.js
JuMBoSLICE/JuMBo
import React, { Component } from 'react'; class ProjectSummary extends Component { constructor(props){ super(props); } render(){ return ( <div id="project-summary"> <h3>Project Summary</h3> <p>{this.props.summary}</p> </div> ) } } export default ProjectSummar...
src/routes.js
polinazolotukhina/redux-movieDB
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import Popular from './containers/Popular/Popular'; import Drama from './containers/Drama/Drama'; import Kids from './containers/Kids/Kids'; import Cinema from ...
src/svg-icons/hardware/cast-connected.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCastConnected = (props) => ( <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ...
app/javascript/mastodon/features/compose/components/compose_form.js
rainyday/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
Quiz/React/quiz/src/game.js
ChrL73/Diaphnea
/* -------------------------------------------------------------------- * * Copyright (C) 2018 * * This file is part of the Diaphnea project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as published by the Fre...
src/components/Template/Navigation.js
karajrish/karajrish.github.io
import React from 'react'; import { Link } from 'react-router-dom'; import Hamburger from './Hamburger'; import routes from '../../data/routes'; // Websites Navbar, displays routes defined in 'src/data/routes' const Navigation = () => ( <header id="header"> <h1 className="index-link"> {routes.filter((l) =...
src/components/chatrooms/chatroomsList/ChatroomLi.js
AleksandrRogachev94/chat-vote-go-frontend
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' const ChatroomLi = ({ title, id }) => { const handleClick = () => { document.body.scrollTop = document.body.scrollHeight } return ( <li> <Link to={`/chatrooms/${id}`} onClick={handleClick} activeClassN...
src/components/Common/Categorybar.js
MattMcFarland/tw-client
import React, { Component } from 'react'; import getCategory from '../../utils/getCategory'; let pathCategory = getCategory(); let categories = [ { id: 'apps', label: 'Apps' }, { id: 'gaming', label: 'Gaming' }, { id: 'gamedev', label: 'Game Development' }, { id: 'webdev', ...
src/components/login_modal.js
17Q4MX2hmktmpuUKHFuoRmS5MfB5XPbhod/dropzone
import React from 'react' import { Input, Modal } from 'react-bootstrap' import Mnemonic from 'bitcore-mnemonic' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' const LoginModal = React.createClass({ getInitialState() { return { isCreatingWallet: false, newWalletMnemonic: null, isL...
app/routesConfig.js
ritishgumber/dashboard-ui
/** * Created by Darkstar on 11/30/2016. */ import React from 'react'; import {Route, IndexRoute} from 'react-router' // custom comps import App from './components/app'; import AppSelected from './components/appSelected'; import Dashboardproject from './components/dashboardproject/dashboardproject.jsx'; import Tabl...
responsive-visualizations-with-react/examples/demo1.js
okonet/slides
import React from 'react' import { VictoryChart, VictoryLine } from 'victory/dist/victory' export default <VictoryChart width={800} height={400}> <VictoryLine y={(data) => Math.sin(1.5 * Math.PI * data.x)} /> </VictoryChart>
src/components/Notes/NoteCard.js
kesean/Dashboard-Frontend
import React from 'react' import Note from './Note' import NoteModal from './NoteModal' import Paper from 'material-ui/Paper' import Divider from 'material-ui/Divider' import CircularProgress from 'material-ui/CircularProgress' import {CardTitle} from 'material-ui/Card' import FlatButton from 'material-ui/FlatButton' i...
client/components/gainloss/GainLoss.js
kanehara/yostock
import React from 'react'; export function GainLoss(props) { return ( <div> <div>${ props.gainLossDollar }</div> <div>%{ (props.gainLossPercentage * 100).toFixed(2) }</div> </div> ) }
client/modules/comments/components/.stories/comment_list.js
luki21213/tripIdeas
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import CommentList from '../comment_list'; storiesOf('comments.CommentList', module) .add('no comments', () => { return ( <CommentList comments={[]}/> ); }) .add('with comments', () => { const comments = [ {...
lib/ui/components/Mocks/MultiSelectView.js
500tech/bdsm
import PropTypes from 'prop-types'; import React from 'react'; import OutlineButton from 'ui/components/common/OutlineButton'; import API from 'api'; import omit from 'lodash/omit'; import { Group } from 'api/models/group'; import { MultiSelectContainer, MultiSelectContainerText } from 'ui/components/Mocks/styled'; imp...
src/components/antd/form/FormItem.js
hyd378008136/olymComponents
import React from 'react'; import { findDOMNode } from 'react-dom'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import PureRenderMixin from 'rc-util/lib/PureRenderMixin'; import Row from '../grid/row'; import Col from '../grid/col'; import { FIELD_META_PROP } from './constants'; import warn...
fields/types/number/NumberFilter.js
frontyard/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { Form, FormField, FormInput, FormSelect, Grid, } from '../../../admin/client/App/elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { ...
src/components/Vote.js
jsfeb26/voting-client
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; export default React.createClass({ mixins: [PureRenderMixin], getPair: function() { return this.props.pair || []; }, isDisabled: function() { return this.props.hasVoted; }, hasVotedFor: function(entry) { r...
frontend/app/js/containers/service/logs.js
serverboards/serverboards
import connect from 'app/containers/connect' import View from 'app/containers/logs' import React from 'react' const Logs = function(props){ return ( <View filter={{service: props.service.uuid}}/> ) } export default Logs
src/svg-icons/communication/phonelink-ring.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
src/components/select/Option.js
heifade/quark-ui
/** * Select Component * @author heifade */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './Select.css'; export default class Option extends Component { static displayName = 'Option'; static defaultProps = { value: ''...
src/App.js
clessg/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
common/views/Components/Tabs/Tabs.js
sauleddy/HomePortal
import React, { Component } from 'react'; import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap'; import classnames from 'classnames'; class Tabs extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { activeTab: '1' }; } ...
src/svg-icons/notification/airline-seat-flat-angled.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlatAngled = (props) => ( <SvgIcon {...props}> <path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19....
src/routes/register/index.js
momomods/momomods
/** * 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 Register from './Registe...
fields/types/relationship/RelationshipFilter.js
belafontestudio/keystone
import React from 'react'; var { Button, FormField, FormInput, InputGroup, SegmentedControl } = require('elemental'); import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Linked To', value: true }, { label: 'NOT Linked To', value: false } ]; const RELATED_ITEMS = [ ...
src/components/about/About.js
jackson-/hireblack.io
import React from 'react' import { Row, Col } from 'react-bootstrap' import './About.css' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' const About = ({animated}) => { return ( <Row className={`About fadeIn ${animated}`}> <Col xs={12} sm={12} md={12} lg={12}> <Row> ...
src/svg-icons/action/today.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToday = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/> </SvgIcon> ); Ac...
hello world/1.6 - style/src/components/footer.js
wumouren/react-demo
import React from 'react'; export default class Footer extends React.Component { // props 演示 render() { let footer = ['2017','10','28']; return ( <footer> <hr/> <h1>这里是页脚</h1> <h2>从父组件传递过来的数据是: {this.props.info}<...
src/svg-icons/image/remove-red-eye.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRemoveRedEye = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
src/components/manage/DistributeTokensStep.spec.js
oraclesorg/ico-wizard
import React from 'react' import { StaticRouter } from 'react-router' import { DistributeTokensStep } from './DistributeTokensStep' import renderer from 'react-test-renderer' import Adapter from 'enzyme-adapter-react-15' import { configure, mount } from 'enzyme' import ReservedTokenStore from '../../stores/ReservedToke...
packages/nausicaa/.storybook/config.js
accosine/poltergeist
import React from 'react'; import { configure, addDecorator } from '@storybook/react'; import Styletron from 'styletron-client'; import { withInfo, setDefaults } from '@storybook/addon-info'; import { StyletronProvider } from 'styletron-react'; import ThemeProvider from '../src/util/ThemeProvider'; import theme from '...
server/sonar-web/src/main/js/apps/component-measures/app/App.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
internals/templates/containers/NotFoundPage/index.js
Dattaya/react-boilerplate-object
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a 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...
docs/src/app/pages/components/PanelGroup/ExamplePanelGroupNode.js
GetAmbassador/react-ions
import React from 'react' import {PanelGroup, Panel, PanelHeader, PanelContent} from 'react-ions/lib/components/PanelGroup' import ProgressBar from 'react-ions/lib/components/ProgressBar' import Button from 'react-ions/lib/components/Button' import Chip from 'react-ions/lib/components/Chip' import style from './style.s...
hello-team/src/App.js
spaceraccoon/code4good-crash-course
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <AppBar position="static" co...
lib/button-outline/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, } from 'react-native'; import { gutter } from '../variables'; const styles = StyleSheet.create({ text: { fontSize: 18, fontWeight: '600', textAlign: 'center', }, }); const ButtonOutline = ({ children, radius, backgroundCo...
src/svg-icons/action/account-balance.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalance = (props) => ( <SvgIcon {...props}> <path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/> </SvgIcon> ); ActionAccountBalance = pure(ActionA...
src/Radio/Radio.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import type { Element } from 'react'; import withStyles from '../styles/withStyles'; import createSwitch from '../internal/SwitchBase'; import RadioButtonCheckedIcon from '../svg-icons/radio-button-checked'; import RadioButtonUncheckedIcon from '../svg-icons/radio-button-unchec...
client/components/nav-link.js
thebearingedge/inqur
import React from 'react' import Link from 'next/link' import styled from 'styled-components' const Anchor = styled.a` vertical-align: middle; font-size: 0.938em; cursor: pointer; text-decoration: none; &:hover { border-radius: 50px; background-color: #50545c; } &:visited { color: inherit; ...
src/app/components/tag/TagMenu.js
meedan/check-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { FormattedMessage, injectIntl } from 'react-intl'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/core/IconButton'; import Popover from '@material-ui/core/P...
example/with-mock-auth/template.js
iansinnott/react-static-webpack-plugin
import React from 'react'; const getRedirect = ({ reactStaticCompilation }) => { return reactStaticCompilation && reactStaticCompilation.redirectLocation; }; const Html = (props) => ( <html lang='en'> <head> <meta charSet='utf-8' /> <meta httpEquiv='X-UA-Compatible' content='IE=edge' /> <met...
examples/index.ios.js
mayuur/react-native-callout
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableHighlight, Animated, View, Dimensions, } from 'react-native'; let { screenWidth, screenHeight } = Dimensions.get('window'); v...
test/helpers/shallowRenderHelper.js
igor-popov/react-demo
import React from 'react'; //import TestUtils from 'react-addons-test-utils'; import {shallow} from 'enzyme'; export function renderShallow(component) { return shallow(component); }
city-forecast/src/components/weather_list_item.js
alexkovalenko/react-redux-learn
import React from 'react'; import Chart from './chart'; import GoogleMap from './google_map'; export default ({city, list}) => { const temps = list.map(weather => weather.main.temp); const pressures = list.map(weather => weather.main.pressure); const humidities = list.map(weather => weather.main.humidity);...
app/javascript/mastodon/components/autosuggest_textarea.js
yukimochi/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
appier/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
blueocean-material-icons/src/js/components/svg-icons/action/settings-voice.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5...
src/parser/warrior/arms/modules/core/Dots/DeepWoundsUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS/index'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticL...
src/todo/TodoGrid.js
carlodicelico/reify
import React from 'react'; const TodoGrid = (props) => { return ( <section className='todo-grid'> <p className='notification is-warning'>Grid of todo lists</p> </section> ); }; export default TodoGrid;
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedTablet.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedTablet = () => ( <Grid reversed='tablet' columns='equal'> <Grid.Column>Tablet Fourth</Grid.Column> <Grid.Column>Tablet Third</Grid.Column> <Grid.Column>Tablet Second</Grid.Column> <Grid.Column>Tablet First</Gr...
src/svg-icons/action/question-answer.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionQuestionAnswer = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); ...
src/components/Icons.js
Hum4n01d/Amango
import React from 'react' const LoadingIcon = props => ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0, 0, 32, 32"> <g id="Layer_1"> <path d="M32,12 L20,12 L24.485,7.515 C22.218,5.249 19.205,4 16,4 C12.795,4 9.781,5.248 7.515,7.515 C5...
src/svg-icons/image/looks.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
src-changed/containers/app.js
aryalprakash/omgyoutube
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browserHistory, Link } from 'react-router' import {getVideoData, getChannelVideos} from '../actions/video.js' import Header from './Header.js' //import Loader from './Loader.js' //import App from './App.js' export default class ...
packages/react/src/components/DataTable/TableSelectRow.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...
src/templates/not-found-template.js
apalhu/website
// @flow strict import React from 'react'; import Sidebar from '../components/Sidebar'; import Layout from '../components/Layout'; import Page from '../components/Page'; import { useSiteMetadata } from '../hooks'; const NotFoundTemplate = () => { const { title, subtitle } = useSiteMetadata(); return ( <Layout...
src/containers/addition.js
cyranosky/rrtimes_hlj
import React from 'react' import { connect } from 'react-redux' import { additionAChange, additionBChange } from '../actions' import Addition from '../components/addition' import { push } from 'react-router-redux' const mapStateToProps = (state) => ({ ...state.reducer.addition }) const mapDispatchToProps = { ...
client/src/app/components/ui/UiDialogLauncher.js
zraees/sms-project
import React from 'react' import ReactDOM from 'react-dom' $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { _title: function (title) { if (!this.options.title) { title.html("&#160;"); } else { title.html(this.options.title); } } })); let UiDialogLaunc...
src/components/ComboBox/ComboBox.js
jzhang300/carbon-components-react
import cx from 'classnames'; import Downshift from 'downshift'; import PropTypes from 'prop-types'; import React from 'react'; import ListBox, { PropTypes as ListBoxPropTypes } from '../ListBox'; const defaultItemToString = item => item && item.label; const defaultShouldFilterItem = ({ inputValue, item, itemToString }...
app/javascript/mastodon/features/ui/components/modal_root.js
robotstart/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import MediaModal from './media_modal'; import OnboardingModal from './onboarding_modal'; import VideoModal from './video_modal'; import BoostModal from './boost_modal'; import ConfirmationModal from './confirmation_modal'; import { TransitionMotion, spring...
pootle/static/js/admin/components/ItemDelete.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const ItemDelete = React.crea...
src/parser/monk/windwalker/modules/spells/azeritetraits/SwiftRoundhouse.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; class SwiftRoundhouse extends Analyzer { totalStacks = 0; stacksUse...
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/HomeScreen.js
Zephyrrus/ubb
import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import { WebBrowser } from 'expo'; import { MonoText } from '../components/StyledText'; export default class HomeScreen extends React.Component { render() { return ( ...
src/components/DataTable/AnimTableBody.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
src/pages/404.js
sqrthree/MyBlog
import React from 'react' import Link from 'gatsby-link' export default () => ( <div style={{ position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, zIndex: 1, background: '#fff', }} > <div style={{ position: 'absolute', top: 0, ...
newclient/scripts/components/user/travel-log/travel-log/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...
app/components/Left/Title.js
SpotifiyOrganization/spotifyHack
import React from 'react'; import { Row, Col } from 'react-materialize'; const Title = () => { return ( <div> <Row style={{marginTop: '20px'}}> <Col s={12} style={{margin: 'auto', textAlign: 'center'}}> <h style={{color: 'white', fontSize: '30px'}}>Song It</h> </Col> </Row> <Row> <Col s={1...
src/client/assets/js/features/help/components/Schema/Schema.js
me-box/platform-sdk
import React, { Component } from 'react'; const _oneof = function(schema, id, selectedid){ return schema.map((item, i)=>{ let tail = null; if (item.type === "object"){ if (item.properties){ tail = _oneofpayload(item, id, selectedid) } } else if (item.type === "oneof"){ if (item.oneOf){ ...
app/react-icons/fa/twitch.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTwitch extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20 9.7v9.7h-3.2v-9.7h3.2z m8.9 0v9.7h-3.3v-9.7h3.3z m0 17l5.6-5.7v-17.8h-26....
public/js/components/searchButton.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; const rp = require('request-promise'); import axios from 'axios'; // '../../../db/isbndb' // '../../../db/isbndb' // const isbndb_fns = require('../../../db/isbndb'); //pg-native error similar to components/user/login. i'm guessing i can't import stuff fr...
src/routes/Reviews/components/CreateReviewBody.js
johnthedesigner/review-ui
//import React, { PropTypes } from 'react' import React from 'react' import { browserHistory } from 'react-router' import { noAuthRedirect } from '../../../utils/utils' import AddReview from './AddReview' class CreateReviewBody extends React.Component { componentWillReceiveProps(nextProps) { noAuthRedirect(next...
examples/basic-server/src/server.js
jaredpalmer/razzle
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; export const renderApp = (req, res) => { const markup = renderToString(<App />); const html = // prettier-ignore `<!doctype html> <html lang=""> <head> <meta htt...
test/TabSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Tab from '../src/Tab'; describe('Tab', function () { it('Should have class', function () { let instance = ReactTestUtils.renderIntoDocument( <Tab>Item content</Tab> ); assert.ok(ReactTestUtils.findRenderedDOMCo...
src/svg-icons/editor/format-line-spacing.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
kit/entry/browser.js
MoosemanStudios/app.moosecraft.us
// Browser entry point, for Webpack. We'll grab the browser-flavoured // versions of React mounting, routing etc to hook into the DOM // ---------------------- // IMPORTS /* NPM */ // Enable async/await and generators, cross-browser import 'regenerator-runtime/runtime'; // Patch global.`fetch` so that Apollo calls...
classic/src/scenes/wbui/ACAvatarCircle2/ACAvatarCircle2Background.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' const styles = { root: { position: 'absolute', top: 1, left: 1, right: 1, bottom: 1, ...
fusion/Avatar.js
pagesource/fusion
import { css } from 'emotion'; import React from 'react'; import { withTheme } from 'theming'; import PropTypes from 'prop-types'; const avatarStyle = css` width: 96px; height: 96px; border-radius: 50%; `; const Avatar = ({ src, alt }) => ( <img src={src} className={avatarStyle} alt={alt} /> ); Avatar.propTy...
docs/app/Examples/elements/Rail/Variations/RailExampleClose.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image, Rail, Segment } from 'shengnian-ui-react' const RailExampleClose = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='/assets/images/wireframe/paragraph.png' /> <Rail close position='left'> <Segment>Left Rail Co...
src/svg-icons/action/launch.js
rscnt/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...
DemoApp/src/containers/all-components.js
andyfen/react-native-UIKit
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView } from 'react-native'; import { AlertMessage, ArticleText, ArticleList, Avatar, AvatarHeader, Button, ButtonOutline, Card, Carousel, Close, DateItem, Divider, FieldError, Grid, GalleryOffset, Heading, ImageCustom, InputFi...
node_modules/react-bootstrap/es/Popover.js
Technaesthetic/ua-tools
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 ...